/* =====================================================================
   Advena — theme.css
   Partagé par toutes les pages du site. Organisation par section.
   ===================================================================== */


/* =====================================================================
   TOKENS
   ===================================================================== */

:root {
  /* BRAND */
  --navy: #1D1C5A;
  --navy-dark: #141343;
  --navy-ink: #0A0A2E;

  /* SIGNAL */
  --orange: #EA6D3F;
  --orange-dark: #D25D33;
  --peach: #FDEEE4;

  /* NEUTRALS */
  --canvas: #FAF7F1;
  --canvas-warm: #F4EFE3;
  --surface: #FFFFFF;
  --line: #E9E4D8;
  --line-soft: rgba(29, 28, 90, 0.08);
  --text-strong: #1D1C5A;
  --text-mid: #4A4A5F;
  --text-soft: #8B8895;

  /* SEMANTIC */
  --success: #10B981;
  --error: #DC2626;
  --warning: #F59E0B;

  /* TYPOGRAPHY */
  --font-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  /* SPACING (8px base) */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px; --s-12: 192px;

  /* RADIUS */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* SHADOWS */
  --shadow-sm: 0 2px 8px rgba(29, 28, 90, 0.06);
  --shadow-md: 0 12px 28px -16px rgba(29, 28, 90, 0.2);
  --shadow-lg: 0 32px 80px -40px rgba(29, 28, 90, 0.2);

  /* MOTION */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-sharp: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 800ms;

  /* LAYOUT */
  --container-max: 1280px;
  --container-margin-desktop: 48px;
  --container-margin-tablet: 32px;
  --container-margin-mobile: 24px;
  --gutter-desktop: 24px;
  --gutter-tablet: 20px;
  --gutter-mobile: 16px;
}


/* =====================================================================
   RESET & BASE
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
  background: var(--canvas);
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

::selection { background: var(--navy); color: var(--canvas); }


/* =====================================================================
   TYPOGRAPHIE (échelle + règles d'emphase)
   ===================================================================== */

.t-display,
h1.t-display {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-strong);
}

h1, .t-h1 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-strong);
}

h2, .t-h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-strong);
}

h3, .t-h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-strong);
}

h4, .t-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-strong);
}

.t-lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  letter-spacing: -0.005em;
  line-height: 1.55;
  color: var(--text-mid);
}

.t-body-sm { font-size: 15px; line-height: 1.55; }
.t-caption { font-size: 14px; line-height: 1.5; font-weight: 500; }

/* Utilitaires typographiques */
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "ss01" 1;
}
.serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
/* Variante de .serif-em pour fond sombre : conserve la couleur canvas
   au lieu de l'orange. Utilisé sur le H1 du hero ERP Odoo (mot "business")
   pour ne pas concurrencer visuellement le logo Odoo coloré déjà présent
   dans la même ligne. */
.serif-em-canvas {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--canvas);
}
.text-strong { color: var(--text-strong); }
.text-mid { color: var(--text-mid); }
.text-soft { color: var(--text-soft); }
.text-orange { color: var(--orange); }

/* Utilitaires de visibilité responsive */
.hide-on-desktop { display: none; }
@media (max-width: 767px) {
  .hide-on-desktop { display: inline; }
}
.text-canvas { color: var(--canvas); }

/* Empêche le wrap d'un groupe — utilisé pour préserver la cohésion d'une
   expression composée de plusieurs spans (typique : "<mono>72 h</mono>
   à <mono>1 semaine</mono>" qui ne doit jamais se couper après "à"). */
.nowrap { white-space: nowrap; }


/* =====================================================================
   EYEBROW (micro-label en Geist Mono)
   ===================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow .mono { color: var(--orange); }
.eyebrow--on-dark { color: rgba(250, 247, 241, 0.6); }
.eyebrow--on-dark .mono { color: var(--orange); }
.eyebrow--center { display: flex; justify-content: center; }


/* =====================================================================
   LAYOUT
   ===================================================================== */

.l-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-margin-desktop);
}
@media (max-width: 1023px) { .l-container { padding-inline: var(--container-margin-tablet); } }
@media (max-width: 767px)  { .l-container { padding-inline: var(--container-margin-mobile); } }

.l-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter-desktop);
}
@media (max-width: 1023px) { .l-grid { grid-template-columns: repeat(6, 1fr); gap: var(--gutter-tablet); } }
@media (max-width: 767px)  { .l-grid { grid-template-columns: repeat(4, 1fr); gap: var(--gutter-mobile); } }

.l-section { padding-block: var(--s-9); }
@media (max-width: 1023px) { .l-section { padding-block: var(--s-8); } }
@media (max-width: 767px)  { .l-section { padding-block: var(--s-7); } }

.l-section--tight { padding-block: var(--s-9); }

/* Grille visible volontairement (baseline structurelle) — usage parcimonieux */
.s-section--gridlines {
  position: relative;
}
.s-section--gridlines::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
  opacity: 0.7;
}

/* Baseline décorative (ligne orange verticale) */
.baseline { position: relative; padding-left: var(--s-5); }
.baseline::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 1px; height: 28px;
  background: var(--orange);
}


/* =====================================================================
   ICONS
   ===================================================================== */

.icon {
  flex-shrink: 0;
  color: inherit;
  vertical-align: middle;
}


/* =====================================================================
   BUTTONS
   ===================================================================== */

.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--duration-fast) ease-out,
              color var(--duration-fast) ease-out,
              border-color var(--duration-fast) ease-out,
              transform var(--duration-fast) ease-out;
  white-space: nowrap;
}

.c-button--primary { background: var(--navy); color: var(--canvas); }
.c-button--primary:hover { background: var(--navy-dark); }

.c-button--accent { background: var(--orange); color: var(--canvas); }
.c-button--accent:hover { background: var(--orange-dark); }

.c-button--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.c-button--outline:hover { background: var(--navy); color: var(--canvas); }

.c-button--outline-light { background: transparent; color: var(--canvas); border-color: rgba(250, 247, 241, 0.3); }
.c-button--outline-light:hover { background: var(--canvas); color: var(--navy-ink); border-color: var(--canvas); }

.c-button--ghost {
  background: transparent;
  color: var(--navy);
  border: none;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--line);
}
.c-button--ghost:hover { color: var(--orange); text-decoration-color: var(--orange); }

.c-button--ghost-light {
  background: transparent;
  color: var(--canvas);
  border: none;
  padding: 8px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(250, 247, 241, 0.3);
}
.c-button--ghost-light:hover { color: var(--orange); text-decoration-color: var(--orange); }

.c-button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.c-button:active { transform: translateY(1px); }
.c-button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Tailles */
.c-button--sm { padding: 10px 20px; font-size: 13px; }
.c-button--lg { padding: 18px 36px; font-size: 17px; }


/* =====================================================================
   BADGES / PASTILLES
   ===================================================================== */

.c-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--peach);
  border-radius: var(--radius-pill);
  line-height: 1;
  white-space: nowrap;
}
.c-badge--muted {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.c-badge--coming {
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange);
}
/* Waitlist — variante "BIENTÔT" sur fond peach + bordure orange semi-transparente.
   Plus discret que --coming, signal sans agressivité. Brief /je-pilote spec. */
.c-badge--waitlist {
  background: var(--peach);
  border: 1px solid rgba(234, 109, 63, 0.4);
  color: var(--orange-dark);
  font-size: 10px;
  padding: 5px 11px;
  letter-spacing: 0.14em;
}


/* =====================================================================
   MONOGRAMMES FONDATEURS (remplacent les portraits en V1)
   ===================================================================== */

.monogram {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--canvas);
  font-family: var(--font-sans);
  font-weight: 900;
  letter-spacing: 0.02em;
  transition: transform 400ms var(--ease);
}
.monogram span { position: relative; z-index: 1; }
.monogram::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  transform: translate(6px, 6px);
  transition: transform 400ms var(--ease);
  pointer-events: none;
}
.monogram:hover { transform: translate(4px, 4px); }
.monogram:hover::before { transform: translate(0, 0); }

.monogram--xl { width: 200px; height: 200px; font-size: 72px; }
.monogram--lg { width: 160px; height: 160px; font-size: 56px; }
.monogram--md { width: 96px; height: 96px; font-size: 32px; }
.monogram--sm { width: 56px; height: 56px; font-size: 18px; }

@media (max-width: 767px) {
  .monogram--xl { width: 140px; height: 140px; font-size: 52px; }
  .monogram--lg { width: 120px; height: 120px; font-size: 44px; }
}


/* =====================================================================
   HEADER
   ===================================================================== */

.c-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: rgba(250, 247, 241, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background var(--duration-base) var(--ease),
              border-color var(--duration-base) var(--ease);
}
.c-header[data-scrolled] {
  background: rgba(250, 247, 241, 0.94);
  border-bottom-color: var(--line);
}
@media (max-width: 767px) { .c-header { height: 64px; } }

.c-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.c-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  transition: opacity var(--duration-fast) ease-out;
}
.c-logo:hover { opacity: 0.7; }
.c-logo__mark {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
}

/* Logo image officielle. Header : 48px desktop / 40px tablet /
   34px mobile. Affiné post-revue pour gagner encore en reconnaissance
   sans déséquilibrer le header. */
.c-logo__img {
  display: block;
  height: 48px;
  width: auto;
}
@media (max-width: 1023px) {
  .c-logo__img { height: 40px; }
}
@media (max-width: 767px) {
  .c-logo__img { height: 46px; }
}

/* Footer : logo plus grand pour donner plus de présence à la
   signature de page. 72px desktop / 64px tablet / 56px mobile. */
.c-footer__brand .c-logo__img {
  height: 72px;
}
@media (max-width: 1023px) {
  .c-footer__brand .c-logo__img { height: 64px; }
}
@media (max-width: 767px) {
  .c-footer__brand .c-logo__img { height: 56px; }
}

/* Sur fond sombre on utilise désormais le fichier dédié
   logo-advena-light.svg (déposé par l'utilisateur depuis sa charte).
   Plus de filter:invert artificiel — le SVG est natif fond sombre. */
.c-logo--on-dark .c-logo__img {
  height: inherit;
}

.c-nav {
  display: flex;
  align-items: center;
  gap: var(--s-7);
}
.c-nav__link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--duration-fast) ease-out;
  letter-spacing: -0.005em;
}
.c-nav__link:hover { color: var(--navy); }
.c-nav__link[aria-current="page"] { color: var(--orange); }
@media (max-width: 1023px) { .c-nav { display: none; } }

.c-header__right {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.c-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.c-lang a { padding: 4px 2px; transition: color var(--duration-fast) ease-out; }
.c-lang a[aria-current="true"] { color: var(--navy); }
.c-lang a:not([aria-current="true"]):hover { color: var(--navy); }
.c-lang__sep { color: var(--line); }
@media (max-width: 767px) { .c-lang { display: none; } }

.c-header__burger {
  display: none;
  color: var(--navy);
  padding: 10px;
  margin: -10px;
  /* Tap target 44×44 (24px icon + 10px padding × 2 = 44) — WCAG 2.5.5 */
}
@media (max-width: 1023px) {
  .c-header__burger { display: inline-grid; place-items: center; }
}


/* =====================================================================
   MOBILE MENU (plein écran)
   ===================================================================== */

.c-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-ink);
  color: var(--canvas);
  transform: translateY(-100%);
  transition: transform 350ms var(--ease);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.c-mobile-menu[data-open] { transform: translateY(0); }

.c-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--container-margin-mobile);
  height: 64px;
  border-bottom: 1px solid rgba(250, 247, 241, 0.08);
}
.c-mobile-menu__close { color: var(--canvas); padding: 8px; margin: -8px; }

.c-mobile-menu__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--s-7) var(--container-margin-mobile);
  gap: var(--s-5);
}
.c-mobile-menu__nav a {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.025em;
  color: var(--canvas);
  padding-block: var(--s-2);
  border-bottom: 1px solid rgba(250, 247, 241, 0.08);
}
.c-mobile-menu__nav a:hover { color: var(--orange); }

.c-mobile-menu__footer {
  padding: var(--s-6) var(--container-margin-mobile) var(--s-7);
  border-top: 1px solid rgba(250, 247, 241, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.c-mobile-menu__footer .c-button { width: 100%; }
.c-mobile-menu__footer .c-lang {
  display: inline-flex;
  align-self: flex-start;
  color: rgba(250, 247, 241, 0.5);
}
.c-mobile-menu__footer .c-lang a[aria-current="true"] { color: var(--canvas); }
.c-mobile-menu__footer .c-lang__sep { color: rgba(250, 247, 241, 0.2); }

/* Logo dans l'overlay : restaure une hauteur explicite pour annuler
   l'effet de `.c-logo--on-dark .c-logo__img { height: inherit }`, sinon
   le SVG retombe sur ses dimensions intrinsèques et déborde. Mêmes
   valeurs que le header fermé pour éviter tout saut visuel. */
.c-mobile-menu__header .c-logo__img {
  height: 40px;
}
@media (max-width: 767px) {
  .c-mobile-menu__header .c-logo__img { height: 46px; }
}

/* Bloc Légal en bas de l'overlay mobile (v1.7.1) */
.c-mobile-menu__legal {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(250, 247, 241, 0.12);
}
.c-mobile-menu__legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.5);
  margin: 0 0 var(--s-3);
}
.c-mobile-menu__legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.c-mobile-menu__legal-list a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(250, 247, 241, 0.7);
  transition: color var(--duration-fast) ease-out;
}
.c-mobile-menu__legal-list a:hover { color: var(--orange); }


/* =====================================================================
   NAV DROPDOWN — desktop hover (v1.15)
   Les 3 piliers de la nav principale ouvrent un panneau enrichi au
   survol. Le délai de fermeture 150ms est géré côté JS via la classe
   .is-open qui maintient le panneau visible le temps de la transition
   souris pilier→panneau.
   ===================================================================== */

.c-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.c-nav-item .c-nav__link {
  display: inline-flex;
  align-items: center;
}

.c-nav-caret {
  margin-left: 4px;
  color: var(--text-mid);
  transition: transform 200ms var(--ease), color 200ms var(--ease);
}
.c-nav-item--has-dropdown:hover .c-nav-caret,
.c-nav-item--has-dropdown.is-open .c-nav-caret,
.c-nav-item--has-dropdown:focus-within .c-nav-caret {
  transform: rotate(180deg);
  color: var(--orange);
}

.c-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px -8px rgba(29, 28, 90, 0.15);
  padding: var(--s-2);
  z-index: 1000;

  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease),
    visibility 0s linear 200ms;
}
.c-nav-item--has-dropdown:hover .c-nav-dropdown,
.c-nav-item--has-dropdown.is-open .c-nav-dropdown,
.c-nav-item--has-dropdown:focus-within .c-nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.c-nav-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-strong);
  transition: background 150ms var(--ease);
}
.c-nav-dropdown__item:hover,
.c-nav-dropdown__item:focus-visible {
  background: var(--canvas-warm);
  outline: none;
}
.c-nav-dropdown__item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.c-nav-dropdown__icon {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

.c-nav-dropdown__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.c-nav-dropdown__name {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.c-nav-dropdown__desc {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.4;
}

.c-nav-dropdown__badge {
  display: inline-block;
  padding: 2px 6px;
  background: var(--peach);
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--orange-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1023px) {
  .c-nav-dropdown { display: none; }
  .c-nav-caret { display: none; }
}


/* =====================================================================
   MOBILE NAV — accordéons sur les piliers (v1.15)
   Remplace la liste plate de liens dans le menu burger. Chaque pilier
   est un <button> qui toggle aria-expanded + l'attribut hidden du
   sous-menu. Pas d'exclusion mutuelle entre accordéons.
   ===================================================================== */

.c-mobile-nav { padding: var(--s-5) var(--container-margin-mobile); }

.c-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-mobile-nav__item {
  border-bottom: 1px solid rgba(250, 247, 241, 0.08);
}
.c-mobile-nav__item:last-child { border-bottom: none; }

.c-mobile-nav__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) 0;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--canvas);
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
}
.c-mobile-nav__trigger:hover { color: var(--orange); }

.c-mobile-nav__caret {
  flex-shrink: 0;
  color: rgba(250, 247, 241, 0.5);
  transition: transform 200ms var(--ease), color 200ms var(--ease);
}
.c-mobile-nav__trigger[aria-expanded="true"] .c-mobile-nav__caret {
  transform: rotate(180deg);
  color: var(--orange);
}

.c-mobile-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--s-4) var(--s-4);
  border-left: 1px solid var(--orange);
}
.c-mobile-nav__sublist li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--s-3) 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: rgba(250, 247, 241, 0.85);
  text-decoration: none;
  letter-spacing: -0.005em;
}
/* Le span du nom prend tout l'espace restant ; le badge éventuel
   reste à sa taille naturelle, collé à droite. */
.c-mobile-nav__sublist li a > span:not(.c-nav-dropdown__badge) {
  flex: 1;
  min-width: 0;
}
.c-mobile-nav__sublist li a:hover { color: var(--orange); }
.c-mobile-nav__sublist li a[aria-current="page"] { color: var(--orange); }

/* Icône à gauche du nom de la sous-page. Couleur orange figée pour
   créer une grille visuelle cohérente avec le dropdown desktop. */
.c-mobile-nav__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--orange);
  transition: opacity 200ms var(--ease);
}
.c-mobile-nav__sublist li a:hover .c-mobile-nav__icon,
.c-mobile-nav__sublist li a:active .c-mobile-nav__icon {
  opacity: 0.85;
}

/* Item "Vue d'ensemble [Pilier]" — texte seul, pas d'icône. Stylé
   comme un eyebrow pour le différencier des sous-pages services.
   Class-based (au lieu de :first-child) pour découpler la sémantique
   visuelle de l'ordre du DOM. */
.c-mobile-nav__sublist-overview a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.5);
}

/* Liens directs (Journal, À propos) au même niveau que les triggers. */
.c-mobile-nav__direct {
  display: block;
  padding: var(--s-4) 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--canvas);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.c-mobile-nav__direct:hover { color: var(--orange); }

/* Badge Bientôt sur le lien Expertise comptable côté mobile. Pattern
   identique au desktop, juste un margin-left pour aérer. */
.c-mobile-nav__sublist li a.has-soon-badge { gap: var(--s-2); }
.c-mobile-nav__sublist li a .c-nav-dropdown__badge { flex-shrink: 0; }

body[data-menu-open] { overflow: hidden; }


/* =====================================================================
   HERO
   ===================================================================== */

.s-hero {
  position: relative;
  padding-top: var(--s-9);
  padding-bottom: var(--s-8);
  background: var(--canvas);
  overflow: hidden;
}
@media (max-width: 767px) { .s-hero { padding-top: var(--s-7); padding-bottom: var(--s-7); } }

.s-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter-desktop);
}
@media (max-width: 1023px) { .s-hero__inner { grid-template-columns: repeat(6, 1fr); gap: var(--gutter-tablet); } }
@media (max-width: 767px)  { .s-hero__inner { grid-template-columns: repeat(4, 1fr); gap: var(--gutter-mobile); } }

.s-hero__inner > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: var(--s-6);
  align-self: start;
}

.s-hero__title {
  grid-column: 1 / span 11;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 84px);
  letter-spacing: -0.045em;
  line-height: 0.97;
  color: var(--text-strong);
  margin-bottom: var(--s-7);
}
.s-hero__title .serif-em {
  color: var(--navy);
  padding: 0 0.04em;
  font-size: 1.05em;
  letter-spacing: -0.02em;
  line-height: 0;
}
@media (max-width: 1023px) { .s-hero__title { grid-column: 1 / -1; } }

.s-hero__lead {
  grid-column: 1 / span 6;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--text-mid);
  margin-bottom: var(--s-7);
  max-width: 52ch;
}
@media (max-width: 1023px) { .s-hero__lead { grid-column: 1 / -1; } }

.s-hero__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
@media (max-width: 767px) {
  .s-hero__actions { gap: var(--s-3); margin-bottom: var(--s-6); }
  .s-hero__actions .c-button { width: 100%; }
  .s-hero__actions .c-button--ghost { width: auto; }
}

/* Slogan signature en bas du hero */
.s-hero__slogan {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  flex-wrap: wrap;
}
.s-hero__slogan-word { display: inline-flex; align-items: center; gap: 12px; }
.s-hero__slogan-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange);
}
.s-hero__slogan-index {
  margin-left: auto;
  color: var(--text-soft);
  letter-spacing: 0.14em;
  font-weight: 400;
}
@media (max-width: 767px) {
  .s-hero__slogan-index { display: none; }
}


/* =====================================================================
   MANIFESTO
   ===================================================================== */

.s-manifesto {
  background: var(--canvas-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.s-manifesto__eyebrow { grid-column: 1 / span 3; }
@media (max-width: 1023px) { .s-manifesto__eyebrow { grid-column: 1 / -1; } }

.s-manifesto__text {
  grid-column: 4 / span 8;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-strong);
}
.s-manifesto__text strong { font-weight: 500; color: var(--navy); }
.s-manifesto__text .mono { font-weight: 400; color: var(--orange); }
@media (max-width: 1023px) { .s-manifesto__text { grid-column: 1 / -1; } }

.s-manifesto__footer {
  grid-column: 4 / span 8;
  margin-top: var(--s-7);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  color: var(--text-soft);
  font-size: 14px;
}
@media (max-width: 1023px) { .s-manifesto__footer { grid-column: 1 / -1; } }
.s-manifesto__footer-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}


/* =====================================================================
   PILIERS
   ===================================================================== */

.s-pillars {
  background: var(--canvas);
}

.s-pillars__intro {
  grid-column: 1 / span 9;
  margin-bottom: var(--s-7);
}
.s-pillars__intro h2 { margin-top: var(--s-4); }
.s-pillars__intro p { margin-top: var(--s-5); max-width: 60ch; }
@media (max-width: 1023px) { .s-pillars__intro { grid-column: 1 / -1; margin-bottom: var(--s-6); } }

.s-pillars__list {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.c-pillar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter-desktop);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
}
.c-pillar:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 1023px) {
  .c-pillar { grid-template-columns: repeat(6, 1fr); gap: var(--gutter-tablet); padding: var(--s-6) 0; }
}
@media (max-width: 767px) {
  .c-pillar { grid-template-columns: repeat(4, 1fr); gap: var(--gutter-mobile); padding: var(--s-5) 0; }
}

.c-pillar__index {
  grid-column: 1 / span 1;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
  position: sticky;
  top: 96px;
  align-self: start;
}
@media (max-width: 1023px) {
  .c-pillar__index { grid-column: 1 / -1; position: static; font-size: 56px; margin-bottom: var(--s-5); }
}

.c-pillar__head {
  grid-column: 3 / span 5;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.c-pillar__head h3 { font-weight: 400; font-size: clamp(32px, 3.2vw, 44px); letter-spacing: -0.03em; line-height: 1.05; }
.c-pillar__head h3 .serif-em { color: var(--navy); }
.c-pillar__head p { font-size: 17px; line-height: 1.6; color: var(--text-mid); max-width: 42ch; }
.c-pillar__head .c-button { align-self: flex-start; margin-top: var(--s-3); }

@media (max-width: 1023px) { .c-pillar__head { grid-column: 1 / -1; } }

.c-pillar__services {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
}
@media (max-width: 1023px) {
  .c-pillar__services { grid-column: 1 / -1; margin-top: var(--s-6); }
}

.c-service {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
  color: var(--text-strong);
  transition: color var(--duration-fast) ease-out, padding-left var(--duration-base) var(--ease);
}
.c-service:last-child { border-bottom: 1px solid var(--line); }
.c-service .icon { color: var(--orange); transition: transform var(--duration-base) var(--ease); }
.c-service__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
}
.c-service__status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.c-service:hover { padding-left: var(--s-3); color: var(--orange); }
.c-service:hover .icon { transform: translateX(2px); }


/* =====================================================================
   DATA (preuve par la donnée)
   ===================================================================== */

.s-data {
  background: var(--navy-ink);
  color: var(--canvas);
  border-top: 1px solid rgba(250, 247, 241, 0.04);
}
.s-data h2 { color: var(--canvas); }
.s-data .eyebrow { color: rgba(250, 247, 241, 0.5); }

.s-data__head {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-self: center;
}
.s-data__head h2 .serif-em { color: var(--orange); }
.s-data__head p { color: rgba(250, 247, 241, 0.65); max-width: 38ch; font-size: 16px; }
@media (max-width: 1023px) { .s-data__head { grid-column: 1 / -1; margin-bottom: var(--s-7); } }

.s-data__blocks {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(250, 247, 241, 0.12);
  border-left: 1px solid rgba(250, 247, 241, 0.12);
}
@media (max-width: 1023px) { .s-data__blocks { grid-column: 1 / -1; } }
@media (max-width: 480px)  { .s-data__blocks { grid-template-columns: 1fr; } }

.c-data-block {
  padding: var(--s-7) var(--s-6);
  border-right: 1px solid rgba(250, 247, 241, 0.12);
  border-bottom: 1px solid rgba(250, 247, 241, 0.12);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: background var(--duration-base) var(--ease);
}
.c-data-block:hover { background: rgba(250, 247, 241, 0.02); }

.c-data-block__number {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: clamp(44px, 4.5vw, 68px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--canvas);
}
.c-data-block__number .unit { color: var(--orange); font-weight: 400; }

.c-data-block__label {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(250, 247, 241, 0.7);
  max-width: 24ch;
}

.c-data-block__note {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.4);
}


/* =====================================================================
   FOUNDERS (fondateurs)
   ===================================================================== */

.s-founders { background: var(--canvas); }

.s-founders__head {
  grid-column: 1 / span 7;
  margin-bottom: var(--s-6);
}
.s-founders__head h2 { margin-top: var(--s-4); }
.s-founders__head p { margin-top: var(--s-5); max-width: 52ch; }
@media (max-width: 1023px) { .s-founders__head { grid-column: 1 / -1; margin-bottom: var(--s-5); } }

.s-founders__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  border-top: 1px solid var(--line);
  padding-top: var(--s-6);
}
@media (max-width: 1023px) {
  .s-founders__grid { grid-template-columns: 1fr; gap: var(--s-8); padding-top: var(--s-5); }
}

.c-founder {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-7);
  align-items: flex-start;
}
@media (max-width: 767px) { .c-founder { grid-template-columns: 1fr; gap: var(--s-5); } }

.c-founder__body { display: flex; flex-direction: column; gap: var(--s-4); }

.c-founder__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.c-founder__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-strong);
}

.c-founder__role {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: 0.02em;
}

.c-founder__posture {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 38ch;
}

.c-founder__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-2);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  transition: color var(--duration-fast) ease-out;
}
.c-founder__link:hover { color: var(--orange); }


/* =====================================================================
   METHOD (méthode — 4 étapes)
   ===================================================================== */

.s-method {
  background: var(--canvas-warm);
  border-top: 1px solid var(--line);
}

.s-method__head {
  grid-column: 1 / span 7;
  margin-bottom: var(--s-6);
}
.s-method__head h2 { margin-top: var(--s-4); }
.s-method__head p { margin-top: var(--s-5); max-width: 54ch; }
@media (max-width: 1023px) { .s-method__head { grid-column: 1 / -1; margin-bottom: var(--s-5); } }

.s-method__steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  position: relative;
}
@media (max-width: 1023px) { .s-method__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .s-method__steps { grid-template-columns: 1fr; } }

.s-method__steps::after {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 24px; height: 1px;
  background: var(--orange);
}

.c-step {
  padding: var(--s-6) var(--s-5) var(--s-5) 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.c-step:last-child { border-right: none; }
@media (max-width: 1023px) {
  .c-step:nth-child(2) { border-right: none; }
  .c-step:nth-child(1), .c-step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .c-step { padding-right: var(--s-5); }
}
@media (max-width: 640px) {
  .c-step { border-right: none; border-bottom: 1px solid var(--line); padding: var(--s-6) 0; }
  .c-step:last-child { border-bottom: none; }
}

.c-step__index {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
}

.c-step__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.2;
}

.c-step__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 28ch;
}


/* =====================================================================
   CTA FINAL
   ===================================================================== */

.s-cta {
  background: var(--navy-ink);
  color: var(--canvas);
  position: relative;
  overflow: hidden;
}

.s-cta__inner {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
}

.s-cta__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 80px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--canvas);
  max-width: 18ch;
}
.s-cta__title .serif-em { color: var(--orange); }

.s-cta__lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: rgba(250, 247, 241, 0.7);
  max-width: 54ch;
}

.s-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-3);
}

.s-cta__channels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-7);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(250, 247, 241, 0.12);
  width: 100%;
  font-size: 14px;
  color: rgba(250, 247, 241, 0.7);
}
.s-cta__channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(250, 247, 241, 0.7);
  transition: color var(--duration-fast) ease-out;
}
.s-cta__channel:hover { color: var(--canvas); }
.s-cta__channel .icon { color: var(--orange); }


/* =====================================================================
   FOOTER
   ===================================================================== */

.c-footer {
  background: var(--navy-ink);
  color: rgba(250, 247, 241, 0.7);
  padding-top: var(--s-8);
}
.c-footer__top {
  display: grid;
  grid-template-columns: 2.4fr 1fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
@media (max-width: 1023px) {
  .c-footer__top { grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-5); }
  .c-footer__brand { grid-column: 1 / -1; margin-bottom: var(--s-5); }
}
@media (max-width: 480px) { .c-footer__top { grid-template-columns: 1fr; } }

.c-footer__brand { display: flex; flex-direction: column; gap: var(--s-4); max-width: 36ch; }
.c-footer__brand .c-logo { color: var(--canvas); }
.c-footer__pitch {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(250, 247, 241, 0.6);
  margin-top: var(--s-2);
}
.c-footer__contact {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 13px;
  color: rgba(250, 247, 241, 0.55);
}
.c-footer__contact a { display: inline-flex; align-items: center; gap: 8px; transition: color var(--duration-fast) ease-out; }
.c-footer__contact a:hover { color: var(--canvas); }
.c-footer__contact .icon { color: var(--orange); }

.c-footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.45);
  margin-bottom: var(--s-4);
}
.c-footer__list { display: flex; flex-direction: column; gap: var(--s-2); }
.c-footer__list a {
  font-size: 14px;
  color: rgba(250, 247, 241, 0.75);
  transition: color var(--duration-fast) ease-out;
}
.c-footer__list a:hover { color: var(--orange); }
/* Lien footer avec badge de statut : empilage vertical (texte en haut, badge
   en-dessous aligné à gauche). Évite que le badge flotte mal à droite quand
   la colonne est étroite et que le libellé wrap sur 2 lignes. */
.c-footer__list a[data-status] {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.c-footer__list a[data-status]::after {
  content: attr(data-status);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.7;
}

.c-footer__bottom {
  border-top: 1px solid rgba(250, 247, 241, 0.12);
  padding-block: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.45);
}
.c-footer__legal { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.c-footer__legal a { transition: color var(--duration-fast) ease-out; }
.c-footer__legal a:hover { color: var(--canvas); }
.c-footer__legal .sep { color: rgba(250, 247, 241, 0.2); }

.c-footer__social {
  display: flex;
  gap: var(--s-4);
}
.c-footer__social a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(250, 247, 241, 0.12);
  border-radius: 2px;
  color: rgba(250, 247, 241, 0.7);
  transition: color var(--duration-fast) ease-out, border-color var(--duration-fast) ease-out;
}
.c-footer__social a:hover { color: var(--orange); border-color: var(--orange); }


/* =====================================================================
   ANIMATION "ascend" (la seule du site)
   ===================================================================== */

@keyframes ascend {
  from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

[data-reveal] { opacity: 0; }
[data-reveal].is-visible {
  animation: ascend 800ms var(--ease) forwards;
}

.reveal-delay-1 { animation-delay: 80ms; }
.reveal-delay-2 { animation-delay: 160ms; }
.reveal-delay-3 { animation-delay: 240ms; }
.reveal-delay-4 { animation-delay: 320ms; }
.reveal-delay-5 { animation-delay: 400ms; }
.reveal-delay-6 { animation-delay: 480ms; }
.reveal-delay-7 { animation-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  html { scroll-behavior: auto; }
}


/* =====================================================================
   FOCUS VISIBLE (global)
   ===================================================================== */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}


/* =====================================================================
   PAGES LÉGALES (v1.7) — 3 snippets + bannière cookies
   - s_hero_legal     : hero compact navy-ink (vs s_hero_service)
   - s_legal_content  : layout 12 cols TOC sticky + corps 720px max
   - s_legal_footer   : encart canvas-warm question/cross-linking
   - c-cookie-banner  : bannière fixed bottom-left, persistance localStorage
   ===================================================================== */

/* ---------- s_hero_legal ---------- */
.s_hero_legal {
  position: relative;
  background: var(--navy-ink);
  color: var(--canvas);
  padding: var(--s-9) 0 var(--s-7);
  min-height: clamp(280px, 35vh, 360px);
  overflow: hidden;
}
.s_hero_legal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent 79px,
    rgba(250, 247, 241, 0.06) 79px,
    rgba(250, 247, 241, 0.06) 80px
  );
  pointer-events: none;
}
@media (max-width: 767px) { .s_hero_legal::before { display: none; } }

.s_hero_legal__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.s_hero_legal__breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.5);
  margin: 0;
}
.s_hero_legal__breadcrumb a {
  color: rgba(250, 247, 241, 0.5);
  text-decoration: none;
  transition: color var(--duration-fast) ease-out;
}
.s_hero_legal__breadcrumb a:hover { color: var(--canvas); }
.s_hero_legal__breadcrumb .sep { margin: 0 6px; opacity: 0.4; }

.s_hero_legal__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0;
}
.s_hero_legal__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--canvas);
  margin: 0;
}
.s_hero_legal__lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(250, 247, 241, 0.7);
  margin: 0;
  max-width: 60ch;
}
.s_hero_legal__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--peach);
  margin-top: var(--s-3);
}

/* ---------- s_legal_content : 2-col grid avec TOC sticky ---------- */
.s_legal_content {
  background: var(--canvas);
  padding: var(--s-9) 0;
}
.s_legal_content .l-container {
  display: grid;
  grid-template-columns: 3fr 1fr 8fr;
  gap: var(--gutter-desktop);
  align-items: start;
}
@media (max-width: 1023px) {
  .s_legal_content .l-container {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}

/* TOC desktop */
.s_legal_content__toc {
  grid-column: 1;
  position: sticky;
  top: calc(var(--s-9) + var(--s-5));
  align-self: start;
}
@media (max-width: 1023px) {
  .s_legal_content__toc {
    position: static;
    grid-column: 1;
  }
}
.s_legal_content__toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 var(--s-5);
}
.s_legal_content__toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.s_legal_content__toc-list a {
  position: relative;
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  text-decoration: none;
  line-height: 1.5;
  padding: 4px 0 4px var(--s-3);
  transition: color var(--duration-fast) ease-out;
}
.s_legal_content__toc-list a:hover { color: var(--orange); }
.s_legal_content__toc-list a.is-active {
  color: var(--navy);
  font-weight: 500;
}
.s_legal_content__toc-list a.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--orange);
}
.s_legal_content__toc-list .toc-sep {
  height: 1px;
  background: var(--line);
  margin: var(--s-3) 0;
}
.s_legal_content__toc-list .toc-group {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0 0 var(--s-2);
  list-style: none;
}
.s_legal_content__toc-list .toc-group::marker { content: ''; }

/* TOC mobile : accordéon repliable */
.s_legal_content__toc-mobile {
  display: none;
}
@media (max-width: 1023px) {
  .s_legal_content__toc { display: none; }
  .s_legal_content__toc-mobile {
    display: block;
    grid-column: 1;
    margin-bottom: var(--s-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
  .s_legal_content__toc-mobile summary {
    cursor: pointer;
    list-style: none;
    padding: var(--s-4);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .s_legal_content__toc-mobile summary::-webkit-details-marker { display: none; }
  .s_legal_content__toc-mobile summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 16px;
    transition: transform var(--duration-fast) ease-out;
  }
  .s_legal_content__toc-mobile[open] summary::after { content: '−'; }
  .s_legal_content__toc-mobile .s_legal_content__toc-list {
    padding: 0 var(--s-4) var(--s-4);
    border-top: 1px solid var(--line);
    padding-top: var(--s-4);
  }
}

/* Corps du contenu */
.s_legal_content__body {
  grid-column: 3;
  max-width: 720px;
  font-family: var(--font-sans);
}
@media (max-width: 1023px) {
  .s_legal_content__body { grid-column: 1; max-width: 100%; }
}

/* Numéro d'article (eyebrow au-dessus de chaque H2) */
.s_legal_content__body .article-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--s-2);
}
.s_legal_content__body h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin: var(--s-8) 0 var(--s-5);
  scroll-margin-top: calc(var(--s-9) + var(--s-3));
}
.s_legal_content__body h2:first-of-type { margin-top: 0; }
.s_legal_content__body h2:first-of-type .article-num { margin-top: 0; }

.s_legal_content__body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--navy);
  margin: var(--s-6) 0 var(--s-3);
}

.s_legal_content__body p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 var(--s-4);
}

.s_legal_content__body ul,
.s_legal_content__body ol {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-5);
  list-style: none;
}
.s_legal_content__body li {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  padding-left: var(--s-3);
  margin-bottom: var(--s-2);
}
.s_legal_content__body li::before {
  content: '·';
  position: absolute;
  left: -8px;
  color: var(--orange);
  font-weight: 700;
}

/* Numérotation interne (1.1, 1.2, etc.) en mono navy */
.s_legal_content__body .num-inline {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--navy);
}

.s_legal_content__body a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) ease-out;
}
.s_legal_content__body a:hover { color: var(--orange-dark); }

/* Termes définis dans les CGV (« Client », « Mission », « RGPD ») —
   italique Geist standard, navy. Pas Instrument Serif. */
.s_legal_content__body em.term {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--navy);
}

/* ---------- s_legal_footer ---------- */
.s_legal_footer {
  background: var(--canvas-warm);
  padding: var(--s-8) 0;
}
.s_legal_footer__inner {
  max-width: 800px;
  margin: 0 auto;
}
.s_legal_footer__updated {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
  margin: 0 0 var(--s-4);
}
.s_legal_footer h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 var(--s-3);
}
.s_legal_footer p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0;
}
.s_legal_footer p a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.s_legal_footer p a:hover { color: var(--orange-dark); }
.s_legal_footer__sep {
  height: 1px;
  background: var(--line);
  margin: var(--s-6) 0 var(--s-4);
}
.s_legal_footer__cross {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.s_legal_footer__cross a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--duration-fast) ease-out;
}
.s_legal_footer__cross a:hover { color: var(--orange); }
.s_legal_footer__cross .sep { color: var(--line); }

/* ---------- c-cookie-banner ---------- */
.c-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: var(--s-5);
  z-index: 100;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.c-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.c-cookie-banner__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 var(--s-2);
}
.c-cookie-banner__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0 0 var(--s-4);
}
.c-cookie-banner__text a {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.c-cookie-banner__text a:hover { color: var(--orange-dark); }
.c-cookie-banner__actions {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 767px) {
  .c-cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c-cookie-banner {
    transition: opacity 0.01ms;
    transform: none;
  }
}

/* Mention légale étendue : ajouter | RCS B307492 dans le footer
   (préservation du copyright existant, juste ajout du lien CGV) */


/* =====================================================================
   WHATSAPP FLOATING (v1.8)
   Pastille orange fixe en bas à droite. Discret au repos (opacité 0.8),
   plein au hover. Apparaît après 200px de scroll. Tooltip desktop.
   Coexiste avec la bannière cookies via :has() (z-index 90 < 100).
   ===================================================================== */

.c-whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: var(--orange);
  color: var(--canvas);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(234, 109, 63, 0.4);
  cursor: pointer;
  z-index: 90;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 400ms ease-out,
    transform 400ms ease-out,
    background 200ms ease-out,
    box-shadow 200ms ease-out;
}
.c-whatsapp-floating.is-visible {
  opacity: 0.8;
  transform: translateY(0);
  pointer-events: auto;
}
.c-whatsapp-floating:hover,
.c-whatsapp-floating:focus-visible {
  opacity: 1;
  background: var(--orange-dark);
  transform: scale(1.05);
  box-shadow: 0 12px 32px -8px rgba(234, 109, 63, 0.6);
}
.c-whatsapp-floating:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.c-whatsapp-floating:active {
  transform: scale(0.98);
  transition-duration: 100ms;
}
.c-whatsapp-floating__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-whatsapp-floating__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tooltip desktop uniquement */
.c-whatsapp-floating__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--navy);
  color: var(--canvas);
  padding: 8px 12px;
  border-radius: 2px;
  font: 500 13px/1.4 var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  box-shadow: var(--shadow-sm);
}
.c-whatsapp-floating:hover .c-whatsapp-floating__tooltip,
.c-whatsapp-floating:focus-visible .c-whatsapp-floating__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 767px) {
  .c-whatsapp-floating {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  .c-whatsapp-floating__icon svg {
    width: 24px;
    height: 24px;
  }
  .c-whatsapp-floating__tooltip { display: none; }
}

/* Coexistence bannière cookies : décalage vertical pendant que la
   bannière est visible. Hauteur estimée : ~140px desktop / ~180px mobile. */
body:has(.c-cookie-banner.is-visible) .c-whatsapp-floating {
  bottom: calc(24px + 140px);
}
@media (max-width: 767px) {
  body:has(.c-cookie-banner.is-visible) .c-whatsapp-floating {
    bottom: calc(20px + 180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-whatsapp-floating,
  .c-whatsapp-floating__tooltip {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
  .c-whatsapp-floating.is-visible,
  .c-whatsapp-floating:hover {
    transform: none !important;
  }
}



/* =====================================================================
   /merci — page de confirmation dynamique (v1.9-forms-email)
   Layout centré vertical aligné gauche, fond canvas, respiration.
   H1 et lead s'adaptent via JS selon ?prenom & ?service.
   ===================================================================== */

.s_merci {
  background: var(--canvas);
  min-height: clamp(60vh, 70vh, 80vh);
  display: flex;
  align-items: center;
  padding: var(--s-9) 0;
}
.s_merci__inner {
  max-width: 720px;
}
.s_merci__eyebrow {
  color: var(--orange);
  margin-bottom: var(--s-5);
}
.s_merci__headline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 var(--s-5);
}
.s_merci__headline .serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}
.s_merci__lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 0 var(--s-7);
}
.s_merci__lead .serif-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
}

/* 3 cards d'actions — grille 3 colonnes desktop, 1 colonne mobile */
.s_merci__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
@media (max-width: 1023px) {
  .s_merci__actions { grid-template-columns: 1fr; }
}
.s_merci__action {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s-5);
  text-decoration: none;
  color: var(--text-strong);
  transition:
    transform var(--duration-base) var(--ease),
    box-shadow var(--duration-base) var(--ease),
    border-color var(--duration-base) var(--ease);
}
.s_merci__action:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}
.s_merci__action h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 var(--s-2);
}
.s_merci__action p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
  margin: 0 0 var(--s-4);
  flex: 1;
}
.s_merci__action-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--orange);
  margin-top: auto;
}
.s_merci__action:hover .s_merci__action-cta { color: var(--orange-dark); }

/* Référence horodatée discrète en bas */
.s_merci__ref {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}


/* =====================================================================
   Forms — état AJAX submit + message d'erreur inline (v1.9.1)
   ===================================================================== */

.c-form-error {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--error);
  margin: var(--s-4) 0 0;
}

/* Pendant la soumission AJAX, le bouton submit est marqué aria-busy
   et désactivé pour éviter les double-soumissions. */
.c-button[aria-busy="true"],
.c-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.c-button[aria-busy="true"]:hover,
.c-button:disabled:hover {
  /* Annule la transformation de hover qui ne doit pas s'appliquer en
     état désactivé. */
  background: var(--navy);
  color: var(--canvas);
}
.c-button--accent[aria-busy="true"]:hover,
.c-button--accent:disabled:hover {
  background: var(--orange);
}
