:root {
  --bg: #fafafa;
  --bg-cream: #fafafa;
  --bg-card: #ededed;
  --fg: #0f0f0f;
  --fg-muted: #6b6b68;
  --fg-soft: #3a3a38;
  --border: #ececec;
  --border-strong: #d6d6d6;
  --max: 1320px;
  --gutter: 32px;

  /* Échelle typographique, rapport 1,25 — plancher à 11px */
  --text-xs:  11px;
  --text-sm:  14px;
  --text-md:  17px;
  --text-lg:  21px;
  --text-xl:  27px;
  --text-2xl: 34px;
  --text-3xl: 42px;

  /* Échelle d'espacement, multiples de 4 */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-24: 96px; --space-32: 128px;

  /* Mouvement : une seule courbe, deux durées.
     Le battement et l'intro sortent de la règle : ce sont des animations
     de marque, pas des transitions d'interface. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-court: 220ms;
  --dur-moyen: 300ms;
  --dur-battement: 1150ms;
  --dur-intro: 1900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }


/* ---------- OPENING OVERLAY ---------- */
.opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: var(--bg);
}
.opening.is-active {
  animation: opening-overlay 2.0s var(--ease) forwards;
}
.opening-line {
  background: rgba(250, 250, 250, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.opening-line.is-active {
  animation: opening-line-overlay 1900ms var(--ease) forwards;
}
.line-bar {
  width: clamp(240px, 34vh, 480px);
  aspect-ratio: 763 / 1218;
  height: auto;
  display: block;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
  transform-origin: 50% 55%;
  will-change: transform;
  backface-visibility: hidden;
}
.opening-line.is-active .line-bar {
  animation: battement 1150ms var(--ease) 220ms infinite;
}
@keyframes opening-line-overlay {
  0%   { opacity: 1; visibility: visible; }
  78%  { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes battement {
  0%    { transform: scale(1); }
  8%    { transform: scale(1.035); }
  16%   { transform: scale(1.002); }
  24%   { transform: scale(1.018); }
  38%   { transform: scale(1); }
  100%  { transform: scale(1); }
}

/* Stack HUMAN / MODELS */
.opening-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  color: var(--fg);
}
.opening-mark .om-top,
.opening-mark .om-bot { display: flex; overflow: visible; }
.opening-mark .om-top {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: clamp(54px, 13vw, 168px);
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.opening-mark .om-bot {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(14px, 2.2vw, 21px);
  letter-spacing: 0.42em;
  text-indent: 0;
  padding-left: 0.42em;
  margin-top: 16px;
  color: var(--fg-muted);
}
.opening-mark .om-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(48%);
}
.opening.is-active .opening-mark .om-letter {
  animation: letter-rise 0.85s var(--ease) forwards;
}
.opening.is-active .opening-mark .om-top  .om-letter { animation-delay: calc(var(--i, 0) * 55ms + 100ms); }
.opening.is-active .opening-mark .om-bot  .om-letter { animation-delay: calc(var(--i, 0) * 40ms + 300ms); }

@keyframes opening-overlay {
  0%   { opacity: 1; visibility: visible; }
  70%  { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes letter-rise {
  0%   { opacity: 0; transform: translateY(48%) skewY(2deg); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) skewY(0); }
}


/* ---------- TYPOGRAPHY ---------- */
.display {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- LAYOUT (sidebar + main) ---------- */
.layout {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}
.sidebar {
  width: 288px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  height: 100dvh;
  padding: 32px 24px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--bg);
  z-index: 40;
}
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.main-content > main {
  flex: 1;
  min-height: 100vh;
  min-height: 100dvh;
}
.main-content > main.home { min-height: 0; }


.sidebar-section { display: flex; flex-direction: column; gap: 0; }
.sidebar-brand {
  margin-bottom: 56px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  color: var(--fg);
  text-transform: uppercase;
  text-align: left;
}
.sidebar-brand .brand-top {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.sidebar-brand .brand-bot {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0;
  margin-top: 8px;
  color: var(--fg-muted);
  padding-left: 0;
  margin-left: 0;
}
.sidebar-brand:hover { color: var(--fg-muted); }

.sidebar-nav {
  display: grid;
  gap: 16px;
}
.sidebar-nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 4px 0;
  transition: color 220ms var(--ease), padding-left 220ms var(--ease);
  position: relative;
}
.sidebar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 300ms var(--var(--ease));
}
.sidebar-nav a:hover,
.sidebar-nav a:focus-visible { color: var(--fg); padding-left: 8px; }
.sidebar-nav a:hover::after,
.sidebar-nav a:focus-visible::after { transform: scaleX(1); }
.sidebar-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* La barre repart par la droite quand le pointeur quitte le lien */
.sidebar-nav a:not(:hover)::after { transform-origin: right center; }
.sidebar-nav a.is-active { color: var(--fg); }
.sidebar-nav a.is-active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--fg);
}

.sidebar-sub {
  display: grid;
  gap: 8px;
  margin: 0 0 16px 0;
  padding: 0;
  list-style: none;
}
.sidebar-sub a {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--fg-muted);
  padding: 4px 0;
  transition: color 220ms var(--ease);
}
.sidebar-sub a:hover { color: var(--fg); }

.lang-toggle-fixed {
  position: fixed;
  bottom: 22px;
  left: 32px;
  z-index: 50;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--fg-muted);
  transition: color 220ms var(--ease);
}
.lang-toggle-fixed:hover { color: var(--fg); }


.search-trigger-topright {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 50;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 0;
  transition: color 220ms var(--ease);
}
.search-trigger-topright:hover { color: var(--fg-muted); }
.search-trigger-topright svg { width: 14px; height: 14px; flex-shrink: 0; }


.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--var(--ease)), visibility 220ms;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay-inner {
  width: 100%;
  max-width: 720px;
  position: relative;
}
.search-close {
  position: absolute;
  top: -56px;
  right: 0;
  background: transparent;
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  color: var(--fg);
  padding: 4px 0;
}
.search-close:hover { color: var(--fg-muted); }
.search-input {
  all: unset;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(21px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  border-radius: 0;
  background: transparent;
  cursor: text;
}
.search-input:focus {
  outline: none;
  border-bottom-color: var(--fg);
}
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-results-button,
.search-input::-webkit-search-results-decoration { display: none; -webkit-appearance: none; }
.search-input::placeholder {
  color: var(--fg-muted);
  font-style: normal;
  font-weight: 400;
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.search-results li { list-style: none; }
.search-results a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: padding-left 220ms var(--var(--ease)), color 220ms var(--ease);
  gap: 16px;
}
.search-results a:hover { padding-left: 8px; color: var(--fg-muted); }
.search-results .meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.search-empty {
  margin-top: 28px;
  font-size: 14px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.sidebar-nav-group { position: relative; }
.sidebar-nav-trigger {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 4px 0;
  cursor: pointer;
  display: block;
  transition: color 220ms var(--ease), padding-left 220ms var(--ease);
}
.sidebar-nav-group:hover .sidebar-nav-trigger,
.sidebar-nav-group:focus-within .sidebar-nav-trigger {
  color: var(--fg-muted);
  padding-left: 8px;
}
.sidebar-nav-sub {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 220ms var(--var(--ease)), opacity 220ms var(--ease), padding-top 220ms var(--ease);
}
.sidebar-nav-group:hover .sidebar-nav-sub,
.sidebar-nav-group:focus-within .sidebar-nav-sub {
  max-height: 120px;
  opacity: 1;
  padding-top: 12px;
}
.sidebar-nav-sub a {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--fg-muted);
  padding: 4px 0 4px 12px;
  transition: color 220ms var(--ease);
  display: block;
}
.sidebar-nav-sub a:hover { color: var(--fg); }


.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.sidebar-meta {
  display: grid;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.sidebar-meta-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 4px;
  display: block;
}
.sidebar-meta a {
  color: var(--fg-muted);
  transition: color 220ms var(--ease);
}
.sidebar-meta a:hover { color: var(--fg); }
.sidebar-meta .lang-toggle {
  font-size: 11px;
  letter-spacing: 0.22em;
  border-bottom: none;
  padding: 0;
  display: inline-block;
}
.sidebar-meta .lang-toggle:hover { color: var(--fg); border-bottom: none; }


.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--fg);
  padding: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  align-items: center;
  gap: 12px;
}
.mobile-nav-toggle .menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav-toggle .menu-bars span {
  width: 16px;
  height: 1px;
  background: currentColor;
}


/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 88px 0;
}
.section-sm { padding: 56px 0; }
.section-lg { padding: 112px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: clamp(27px, 3.6vw, 42px);
  letter-spacing: -0.015em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.section-head .eyebrow { margin-bottom: 12px; display: block; }


/* ---------- HERO ---------- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-mark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  letter-spacing: -0.025em;
  line-height: 0.86;
  text-transform: uppercase;
  font-size: clamp(54px, 13vw, 168px);
  margin: 0;
}
.hero-mark .accent {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-stretch: 100%;
  font-size: 0.1em;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 28px;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-meta p {
  max-width: 48ch;
  font-size: 17px;
  color: var(--fg-soft);
  line-height: 1.7;
  margin: 0;
}
.hero-meta .meta-side {
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  line-height: 1.8;
}
.hero-meta .meta-side strong {
  display: block;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.04em;
}


/* ---------- COMP CARD GRID ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}


.comp-card {
  display: block;
  cursor: pointer;
}
.comp-card-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  overflow: hidden;
  transition: background 220ms var(--ease);
}
.comp-card-frame::before,
.comp-card-frame::after {
  content: '';
  position: absolute;
  background: rgba(15, 15, 15, 0.06);
}
.comp-card-frame::before { top: 0; left: 50%; bottom: 0; width: 1px; }
.comp-card-frame::after  { left: 0; right: 0; top: 50%; height: 1px; }

.corners::before,
.corners::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid rgba(15, 15, 15, 0.12);
}
.corners::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.corners::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.comp-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(250, 250, 250, 0.8);
  padding: 4px 8px;
  font-weight: 500;
}
.comp-card-stats {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 15, 15, 0.92) 100%);
  color: var(--bg);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.comp-card-stats dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.comp-card-stats dt { color: rgba(250, 250, 250, 0.6); text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; }
.comp-card-stats dd { margin: 0; font-weight: 500; }
.comp-card:hover .comp-card-stats,
.comp-card:focus-within .comp-card-stats { opacity: 1; }

.comp-card-name {
  margin-top: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.comp-card-meta {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---------- NEWS GRID ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}


.news-card {
  display: block;
  cursor: pointer;
}
.news-card-frame {
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.news-card-frame::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(15, 15, 15, 0.08);
}
.news-card-tag {
  position: absolute;
  top: 16px; left: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 12px;
  font-weight: 500;
}
.news-card-date {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.news-card-title {
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: 21px;
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--fg);
}
.news-card-excerpt {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.6;
  max-width: 36ch;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 24px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  transition: background 220ms var(--ease), color 220ms var(--ease);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--fg); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--bg); }

/* ---------- LINK ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--fg);
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.link-arrow:hover { color: var(--fg-muted); border-color: var(--fg-muted); }

/* ---------- FORMS ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}
.form-row { grid-column: 1 / -1; }


.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 12px 0;
  outline: none;
  transition: border-color 220ms var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--fg); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}


.team-card {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.team-card .role {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.team-card .name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: clamp(21px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 12px;
  line-height: 0.98;
}
.team-card .bio {
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.7;
}
.team-card .contact-link {
  margin-top: 16px;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg);
  padding-bottom: 4px;
}

/* ---------- FULL-VIEWPORT CTA (button centered to viewport, not main-content) ---------- */
.full-viewport-cta {
  display: flex;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 56px var(--gutter) 88px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.full-viewport-cta > div { display: contents; }


/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg);
  color: var(--fg);
  padding: 72px 0 24px;
  margin-top: 80px;
  border-top: 1px solid var(--border);
}
.site-footer .footer-mark {
  margin: 0 0 48px;
  text-transform: uppercase;
  display: block;
}
.site-footer .footer-mark .fm-top {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-footer .footer-mark .fm-bot {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  margin-top: 8px;
  color: var(--fg-muted);
}
.site-footer .footer-mark .accent {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--fg-muted);
  margin-top: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding-top: 0;
}

.footer-grid h3 {
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a {
  font-size: 14px;
  color: var(--fg);
  transition: color 220ms var(--ease);
}
.footer-grid a:hover { color: var(--fg-muted); }
.footer-grid p { margin: 0; font-size: 14px; color: var(--fg-soft); line-height: 1.7; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  flex-wrap: wrap;
  gap: 16px;
}


/* ---------- BREADCRUMB ---------- */
.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-head .crumb {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.page-head h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: clamp(21px, 2.6vw, 34px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}
.page-head .lead {
  margin-top: 28px;
  max-width: 60ch;
  font-size: 17px;
  color: var(--fg-soft);
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}


.manifesto p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--fg-soft);
  margin: 0 0 16px;
}
.manifesto p:first-child {
  font-size: 21px;
  line-height: 1.55;
  color: var(--fg);
  font-weight: 500;
}

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}


.contact-block {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-bottom: 28px;
}
.contact-block .label { display: block; margin-bottom: 12px; color: var(--fg-muted); }
.contact-block p { margin: 0; font-size: 17px; line-height: 1.7; }
.contact-block a { display: block; }
.contact-block a:hover { color: var(--fg-muted); }

/* ---------- FEATURED CARDS (Home) ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}


/* ---------- ICON ---------- */
.icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- FOCUS ---------- */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--bg);
  color: var(--fg);
  border-top: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  padding: 16px var(--gutter);
  transform: translateY(100%);
  transition: transform 300ms var(--var(--ease));
  pointer-events: none;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
  flex-wrap: wrap;
}
.cookie-banner-text {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  color: var(--fg);
  text-align: center;
}
.cookie-banner-text em {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 4px;
  vertical-align: -0.05em;
}
.cookie-banner-text a {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  margin-left: 12px;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.cookie-banner-text a:hover { color: var(--fg-muted); border-color: var(--fg-muted); }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
}
.btn-cookie {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 16px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.btn-cookie:hover {
  background: var(--fg);
  color: var(--bg);
}
.btn-cookie-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-cookie-primary:hover {
  background: transparent;
  color: var(--fg);
}


/* ---------- LEGAL CONTENT ---------- */
.legal-content {
  max-width: 880px;
}
.legal-content .legal-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0 0 20px;
}
.legal-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 56px 0 20px;
  line-height: 1;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-of-type { padding-top: 16px; }
.legal-content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 32px 0 12px;
  color: var(--fg);
}
.legal-content p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--fg-soft);
  margin: 0 0 16px;
}
.legal-content a {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 4px;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.legal-content a:hover { color: var(--fg-muted); border-color: var(--fg-muted); }
.legal-list {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: none;
}
.legal-list li {
  position: relative;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg-soft);
  margin-bottom: 8px;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0.85em;
  width: 8px;
  height: 1px;
  background: var(--fg-muted);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 32px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.legal-table th {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom-color: var(--border-strong);
}
.legal-table td { color: var(--fg-soft); }
.legal-table td:first-child { font-weight: 500; color: var(--fg); }

/* ---------- HOME (FEED) ---------- */
body.is-home { overflow-x: hidden; }

.home {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  flex: none;
  padding: 5vh 0 0;
}
.main-content > main.home {
  flex: none;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
}

.home-feed {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.feed-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: feed-scroll 90s linear infinite;
  padding: 0 32px;
}
.feed-track:hover { animation-play-state: paused; }
@keyframes feed-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


.feed-card {
  flex-shrink: 0;
  width: clamp(240px, 17vw, 340px);
  display: block;
  cursor: pointer;
}
.feed-card-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  overflow: hidden;
  transition: background 220ms var(--ease);
}
.feed-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms var(--var(--ease));
}
.feed-card:hover .feed-card-img { transform: scale(1.03); }
/* Vignette ajoutee a la main : pas de post a ouvrir */
.feed-card--fixe { cursor: default; }

/* Le credit se lit sous la vignette, pas par-dessus la photo */
.feed-card-credit {
  display: block;
  padding-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}
.fc-house { font-weight: 500; color: var(--fg); }


/* ---------- BECOME A MODEL FORM ---------- */
.form-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: 0; }
.form-section .form-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.form-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.form-section .form-section-num {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


.photo-upload {
  position: relative;
}
.photo-upload input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.photo-upload label {
  display: block;
  cursor: pointer;
}
.upload-thumb {
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid var(--border-strong);
  transition: border-color 220ms var(--ease), background-color 220ms var(--ease);
}
.upload-thumb::before,
.upload-thumb::after {
  content: '';
  position: absolute;
  background: rgba(15, 15, 15, 0.08);
  transition: opacity 220ms var(--ease);
}
.upload-thumb::before { top: 0; left: 50%; bottom: 0; width: 1px; }
.upload-thumb::after  { left: 0; right: 0; top: 50%; height: 1px; }
.upload-thumb .upload-plus {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: 34px;
  color: var(--fg);
  transition: opacity 220ms var(--ease);
}
.photo-upload label:hover .upload-thumb { border-color: var(--fg); }
.upload-thumb.has-image::before,
.upload-thumb.has-image::after,
.upload-thumb.has-image .upload-plus { opacity: 0; }

.upload-meta {
  margin-top: 16px;
  display: block;
}
.upload-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;

  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: block;
}
.upload-hint {
  font-size: 11.5px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--fg-soft);
  line-height: 1.6;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  accent-color: var(--fg);
  width: 18px; height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ---------- LOGO DE LA SIDEBAR ---------- */
.sidebar-logo {
  width: 100%;
  max-width: 216px;
  height: auto;
  display: block;
}


/* ---------- BOARD EN PREPARATION ---------- */
.soon-panel {
  min-height: calc(100vh - 260px);
  min-height: calc(100dvh - 260px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0;
}
.soon-word {
  display: inline-flex;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  color: var(--fg-muted);
}
.soon-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  /* Une seule apparition, ensemble, sans cascade ni respiration en boucle. */
  animation: soon-monte var(--dur-moyen) var(--ease) forwards;
}
@keyframes soon-monte {
  to { opacity: 1; transform: none; }
}
@keyframes soon-souffle {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.42; }
}


/* ==========================================================================
   CONTACT — composition centrée : le pôle domine, les noms suivent
   ========================================================================== */

.team-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
  margin-top: clamp(32px, 5vh, 72px);
}

.team-block { text-align: center; }

.team-heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: 0.16em;
  text-indent: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--fg);
  margin: 0 0 clamp(28px, 3.4vh, 44px);
  padding-bottom: clamp(16px, 2vh, 24px);
  border-bottom: 1px solid var(--border);
}

.team-block .team-grid {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
}

.team-card {
  border: 0;
  padding: 0;
  margin-bottom: clamp(24px, 3vh, 38px);
}
.team-card:last-child { margin-bottom: 0; }
.team-card .role {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fg-soft);
  margin: 4px 0 0;
  order: 2;
}
.team-card .name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
  text-transform: none;
  color: var(--fg);
  margin: 0 0 4px;
}
.team-card .contact-link {
  display: inline;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fg-soft);
  border-bottom: 0;
  padding: 4px 4px;
  background-image: linear-gradient(var(--bg-card), var(--bg-card));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: left center;
  transition: background-size 300ms var(--var(--ease)), color 220ms var(--ease);
}
.team-card .contact-link:hover,
.team-card .contact-link:focus-visible {
  color: var(--fg);
  background-size: 100% 100%;
}


/* ---------- ECRAN D'ARRIVEE : le cœur, le logo dessous ---------- */
.opening-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vh, 56px);
}
.opening-logo {
  width: clamp(160px, 15vw, 240px);
  height: auto;
  opacity: 0;
  transform: translateY(8px);
  animation: intro-logo 300ms var(--ease) 300ms forwards;
}
@keyframes intro-logo { to { opacity: 1; transform: none; } }

/* Le menu se place sous le logo plutôt qu'au milieu de la colonne */
.sidebar > .sidebar-section:nth-of-type(2) { margin-top: clamp(56px, 14vh, 150px); }
.sidebar > .sidebar-section:last-child { margin-top: auto; }

/* Cette respiration est faite pour la colonne de bureau. En mobile, le menu
   se déplie sous le burger : la marge y creuserait un vide. Déclaré ici et
   pas plus haut, sinon les deux règles ci-dessus l'emporteraient. */


/* ---------- CONTACT : la maison, avec le plan ---------- */
.house {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(64px, 9vh, 128px);
  padding-top: clamp(40px, 5vh, 64px);
  border-top: 1px solid var(--border);
  text-align: left;
}
.house-address {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  line-height: 1.9;
  color: var(--fg);
  margin: 0 0 16px;
  padding-top: 4px;
}
.house-line {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 2;
  color: var(--fg-muted);
  margin: 0;
}
.house-line .contact-link { font-size: 11px; }

/* Le plan reste en noir et blanc, dans la retenue du site */
.house-map {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.house-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
  transition: filter 300ms var(--ease);
  pointer-events: none;
}
.house-map:hover iframe { filter: grayscale(1) contrast(1.12) brightness(0.98); }

/* ==========================================================================
   ADAPTATIONS D'ÉCRAN
   Regroupées en fin de fichier, du plus large au plus étroit. Dispersées
   au milieu des règles de base, elles se faisaient écraser par ce qui
   les suivait — trois bugs le 09/09/2026, dont la navigation mobile
   inaccessible sur les huit pages.
   ========================================================================== */

@media (max-width: 1024px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 880px) {
  .main-content > main { min-height: calc(100vh - 64px); }
}

@media (max-width: 880px) {
  .lang-toggle-fixed { bottom: 18px; left: 20px; font-size: 11px; }
}

@media (max-width: 880px) {
  .search-trigger-topright { top: 18px; right: 64px; }
  .search-trigger-topright span { display: none; }
}

@media (max-width: 880px) {
  .sidebar-nav-sub {
    max-height: 120px;
    opacity: 1;
    padding-top: 8px;
  }
}

@media (max-width: 880px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    background: rgba(250, 250, 250, 0.94);
  }
  .sidebar-brand { margin-bottom: 0; }
  .sidebar-section:not(.sidebar-brand-wrap) { display: none; }
}

@media (max-width: 880px) {
  /* Déclaré ici, et pas plus haut : la règle de base « display: none »
     se trouve au-dessus et l'emporterait sinon, à spécificité égale. */
  .mobile-nav-toggle { display: inline-flex; }

  /* Logo à gauche, burger à droite — dans les DEUX états.
     .sidebar-section impose flex-direction:column : sans ce rappel,
     les deux éléments s'empilent tant que le menu est fermé. */
  .sidebar-brand-wrap {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .sidebar-brand { margin-bottom: 0; }
  .sidebar-logo { max-width: 148px; }


  .sidebar.is-open {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 8px;
    padding: 20px;
  }
  .sidebar.is-open .sidebar-section:not(.sidebar-brand-wrap) {
    display: flex;
    width: 100%;
  }
  .sidebar.is-open .sidebar-brand-wrap {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 880px) {
  .full-viewport-cta { width: 100%; margin-left: 0; padding: 48px var(--gutter) 64px; margin-top: 56px; }
}

@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; } }

@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

@media (max-width: 880px) {
  .home { height: calc(100vh - 64px); height: calc(100dvh - 64px); min-height: calc(100vh - 64px); padding: 24px 0 0; }
  .main-content > main.home { height: calc(100vh - 64px); height: calc(100dvh - 64px); min-height: calc(100vh - 64px); }
}

@media (max-width: 880px) {
  .team-blocks { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 880px) {
  .sidebar > .sidebar-section:nth-of-type(2) { margin-top: 24px; }
  .sidebar > .sidebar-section:last-child { margin-top: 16px; }
}

@media (max-width: 880px) {
  .house { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 760px) {
  .hero-meta .meta-side { text-align: left; }
}

@media (max-width: 760px)  { .board-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }

@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .site-footer { padding: 56px 0 20px; margin-top: 56px; }
}

@media (max-width: 760px) {
  .cookie-banner { padding: 16px 16px; }
  .cookie-banner-inner { gap: 16px; flex-direction: column; }
  .cookie-banner-text { font-size: 10.5px; letter-spacing: 0.14em; }
  .cookie-banner-text em { font-size: 12.5px; }
  .cookie-banner-text a { display: inline-block; margin-left: 8px; }
}

@media (max-width: 760px) {
  /* Le bandeau se cale sous l'en-tête au lieu d'être centré dans la hauteur
     de l'écran : sur un téléphone, le centrage creusait 300 px de vide. */
  .home {
    height: auto;
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px 0 40px;
  }
  .feed-card { width: clamp(200px, 60vw, 280px); }
}

@media (max-width: 760px) { .photo-upload-grid { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
  .sidebar-logo { max-width: 168px; }
}

@media (max-width: 600px)  { .news-grid { grid-template-columns: 1fr; } }

@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (prefers-reduced-motion: reduce) {
  .opening { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .feed-track { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .soon-letter { opacity: 1; transform: none; animation: none; }
}
