/* ==========================================================================
   BIFE Auditors — feuille de style du site
   Commune aux pages française (index.html) et anglaise (en/index.html).
   Fidèle à la maquette Claude Design « BIFE Auditors — Site vitrine (accueil) ».

   Sommaire
     1. Polices            7. En-tête & menu       13. Équipe
     2. Jetons de design   8. Héros                14. Bandeau d'appel
     3. Base               9. Clients              15. Contact & formulaire
     4. Utilitaires       10. Expertises           16. Pied de page
     5. Boutons           11. Le cabinet           17. Animations
     6. Barre d'infos     12. Références
   ========================================================================== */


/* 1. Polices — auto-hébergées (licence SIL OFL 1.1, voir Assets/fonts/LICENSE-OFL.txt)
   ========================================================================== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/newsreader-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/newsreader-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 2. Jetons de design — modifiez ici les couleurs et polices de tout le site
   ========================================================================== */
:root {
  /* Marque */
  --navy: #0B1D39;
  --navy-deep: #081629;
  --navy-raised: #13294B;
  --navy-soft: #1A3159;
  --gold: #D4A23A;          /* or principal — variantes proposées dans la maquette : #C8A04E, #E2B04A */
  --gold-ink: #8F6610;      /* or foncé, lisible sur fond clair */
  --gold-wash: #FBF4E4;
  --gold-tint: #FBF1DC;
  --gold-line: #DCC490;

  /* Textes */
  --ink: #24324A;
  --text: #4B5568;
  --muted: #5B6577;
  --muted-2: #687387;
  --faint: #8A93A3;
  --on-dark: #C3CCDA;
  --on-dark-muted: #A9B5C7;
  --on-dark-faint: #8E9AAE;

  /* Surfaces et filets */
  --white: #FFFFFF;
  --surface: #F4F6F9;
  --line: #E3E8EF;
  --line-soft: #EEF1F5;
  --line-faint: #E9EDF3;
  --line-strong: #CDD5E0;
  --line-input: #D5DCE6;
  --line-grid: #DDE3EB;
  --line-band: #D8DEE7;

  /* États du formulaire */
  --error: #B42318;
  --success-bg: #EEF7F1;
  --success-line: #CFE6D8;
  --success-ink: #1E5B3A;
  --error-bg: #FDF1F0;
  --error-line: #F3D3CF;

  /* Typographie — pour des titres sans empattement : --font-heading: var(--font-sans); --heading-weight: 700; */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Newsreader', Georgia, 'Times New Roman', serif;
  --heading-weight: 500;

  /* Mise en page */
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 10vw, 140px);
  --header-h: 84px;

  /* Mouvement : une seule courbe et deux durées pour tout le site (voir section 17) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-hover: 0.25s;
  --dur-reveal: 0.8s;
}


/* 3. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
}
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
address { font-style: normal; }
input, select, textarea, button { font: inherit; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.is-dark :focus-visible { outline-color: var(--gold); }
main:focus { outline: none; }

section[id] { scroll-margin-top: var(--header-h); }
input, select, textarea { scroll-margin-top: calc(var(--header-h) + 48px); }

/* Visiteurs ayant demandé à réduire les animations (réglage du système) : aucun mouvement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}


/* 4. Utilitaires
   ========================================================================== */
.page { width: 100%; overflow-x: clip; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Icônes : le trait suit la couleur du texte (currentColor) */
.ico { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow--gold { color: var(--gold); }

.heading {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  color: var(--navy);
}
.h2 {
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.balance { text-wrap: balance; }

.rule {
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.rule--sm { width: 48px; }

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}

/* Liens texte : un filet se dessine sous le lien au survol */
.lnk {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.35s var(--ease-out), color 0.2s ease;
}
.lnk:hover,
.lnk:focus-visible { background-size: 100% 1px; }

.arrow-lnk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-ink);
}
.arrow-lnk:hover { color: var(--gold-ink); }
.arrow-lnk .ico { transition: transform var(--dur-hover) var(--ease-out); }
.arrow-lnk:hover .ico,
.arrow-lnk:focus-visible .ico { transform: translateX(4px); }

/* Ligne de séparation surmontée d'un trait or (piliers, membres de l'équipe) */
.topline {
  position: relative;
  border-top: 1px solid var(--line-strong);
}
.topline::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 44px; height: 3px;
  background: var(--gold);
}

/* Emplacements photo — ajoutez une <img> en premier enfant pour remplacer le motif */
.photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--photo-bg, var(--navy-raised));
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, var(--grid-a, 0.04)) 0 1px, transparent 1px var(--grid-s, 32px)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, var(--grid-a, 0.04)) 0 1px, transparent 1px var(--grid-s, 32px));
}
.photo > img {
  position: absolute;
  inset: 0;
  z-index: -1; /* l'image reste sous le contenu du bloc (monogramme, badge) */
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 22, 41, 0.7);
  font-size: 12px;
  font-weight: 500;
  color: var(--on-dark-muted);
}


/* 5. Boutons
   ========================================================================== */
.btn {
  --btn-h: 48px;
  --btn-px: 22px;
  --btn-fs: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border-radius: 6px;
  font-size: var(--btn-fs);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease,
              translate 0.4s var(--ease-out);
}
/* La flèche avance au survol ; le bouton s'enfonce légèrement au clic */
.btn > .ico:last-child,
.btn__bubble .ico { transition: transform var(--dur-hover) var(--ease-out); }
.btn:hover > .ico:last-child,
.btn:focus-visible > .ico:last-child { transform: translateX(3px); }
.btn:hover .btn__bubble .ico,
.btn:focus-visible .btn__bubble .ico { transform: translateY(2px); }
.btn--md { --btn-h: 50px; }
.btn--lg { --btn-h: 56px; --btn-px: 28px; --btn-fs: 16px; }
.btn--xl { --btn-h: 58px; --btn-px: 28px; --btn-fs: 16px; }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover {
  color: var(--navy);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(212, 162, 58, 0.9);
}

.btn-ghost {
  --btn-px: 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn__bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
}
.btn-ghost:has(.btn__bubble) { gap: 12px; }

.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.08s; }


/* 6. Barre d'infos
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: var(--on-dark);
  font-size: 13px;
}
.topbar__inner {
  padding-block: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}
.topbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 30px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar__item .ico { color: var(--gold); }
.topbar .lnk { background-image: none; }
.topbar .lnk:hover { color: var(--white); }
.topbar__end {
  display: flex;
  align-items: center;
  gap: 8px 24px;
}
.topbar__regions { letter-spacing: 0.04em; }

@media (max-width: 760px) {
  .topbar-extra,
  .topbar__end { display: none; } /* vide à cette taille : il ajouterait une ligne à la barre */
}

/* Sélecteur de langue FR | EN — une seule règle pour toutes ses occurrences (barre d'infos, en-tête).
   Chaque lien est une zone cliquable de 44 × 44 px ; la pastille visible, plus petite, est dessinée
   à l'intérieur (::before) pour que le sélecteur reste discret. Les couleurs passent par des variables
   que le fond sombre de la barre d'infos (.is-dark) redéfinit. */
.lang {
  --lang-fg: var(--muted);
  --lang-fg-hover: var(--navy);
  --lang-bg-hover: var(--surface);
  --lang-ring: var(--line-strong);
  --lang-active-bg: var(--navy);
  --lang-active-fg: var(--white);
  --lang-focus: var(--navy);
  position: relative;
  display: inline-flex;
  align-items: center;
}
.is-dark .lang {
  --lang-fg: var(--on-dark);
  --lang-fg-hover: var(--white);
  --lang-bg-hover: color-mix(in srgb, var(--white) 10%, transparent);
  --lang-ring: color-mix(in srgb, var(--white) 22%, transparent);
  --lang-active-bg: var(--white);
  --lang-active-fg: var(--navy);
  --lang-focus: var(--gold);
}
.lang::before { /* contour arrondi commun aux deux langues */
  content: "";
  position: absolute;
  inset: 6px 0;
  border: 1px solid var(--lang-ring);
  border-radius: 10px;
  pointer-events: none;
}
.lang__item {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--lang-fg);
  transition: color 0.2s ease;
}
.lang__item::before { /* pastille visible : 26 px de haut dans la zone de 44 px */
  content: "";
  position: absolute;
  inset: 9px 3px;
  z-index: -1;
  border-radius: 7px;
  transition: background-color 0.2s ease;
}
.lang__item:hover { color: var(--lang-fg-hover); }
.lang__item:hover::before { background: var(--lang-bg-hover); }
.lang__item[aria-current],
.lang__item[aria-current]:hover { color: var(--lang-active-fg); }
.lang__item[aria-current]::before { background: var(--lang-active-bg); }
.lang__item:focus-visible { outline: none; }
.lang__item:focus-visible::before { outline: 2px solid var(--lang-focus); outline-offset: 3px; }

.lang--topbar { margin-block: -10px; } /* garde la barre d'infos à 44 px de haut */
.lang--header { display: none; }


/* 7. En-tête & menu
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease-out);
}
/* Ombre discrète une fois l'en-tête collé en haut de l'écran (classe posée par main.js) */
.site-header.is-scrolled { box-shadow: 0 14px 30px -26px rgba(11, 29, 57, 0.5); }
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--navy);
}
.brand__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--gold-ink);
}
.brand--on-dark .brand__mark { background: var(--navy-raised); }
.brand--on-dark .brand__name { color: var(--white); }
.brand--on-dark .brand__tag { color: var(--gold); }

/* Navigation principale */
.nav {
  position: relative;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 34px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.nav__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}
/* Réserve la largeur du libellé en gras pour éviter les sauts quand le lien devient actif */
.nav__link::after {
  content: attr(data-label) / "";
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
  pointer-events: none;
  user-select: none;
}
.nav__link[aria-current] {
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.nav__link:hover { color: var(--gold-ink); }

/* Trait or qui glisse vers la section en cours de lecture (créé par main.js ;
   sans JavaScript, le trait fixe ci-dessus reste affiché) */
.nav__ink {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 3px;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: translateX(var(--ink-x, 0px)) scaleX(var(--ink-w, 0));
  pointer-events: none;
}
.nav__ink.is-ready { transition: transform 0.5s var(--ease-out); }
.nav.has-ink .nav__link[aria-current] { box-shadow: none; }

.site-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header__cta { white-space: nowrap; }

/* Bouton du menu mobile */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Panneau du menu mobile */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(11, 29, 57, 0.35);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav__inner {
  padding-block: 8px 28px;
  display: flex;
  flex-direction: column;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: padding-left 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), color 0.2s ease;
}
.mobile-nav__link[aria-current] {
  padding-left: 14px;
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold);
}
.mobile-nav__cta {
  margin-top: 24px;
  justify-content: center;
}
.mobile-nav__tel {
  align-self: center;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--navy);
}
.mobile-nav__tel .ico { color: var(--gold-ink); }

/* Menu complet à partir de 1181 px : en dessous, il n'a pas la place de tenir sur une ligne */
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .lang--topbar { display: none; }
  .lang--header { display: flex; }
}
@media (min-width: 1181px) {
  .mobile-nav { display: none !important; }
}
/* Sous 700 px, le bouton cède la place au sélecteur de langue (il reste dans le menu) */
@media (max-width: 700px) {
  .site-header__cta { display: none; }
}
/* Téléphones : seul le lien vers l'autre langue reste à côté du menu */
@media (max-width: 420px) {
  .lang--header .lang__item[aria-current] { display: none; }
}
/* Très petits téléphones : l'en-tête se resserre */
@media (max-width: 360px) {
  .site-header__inner { gap: 12px; }
  .site-header__actions { gap: 4px; }
  .brand { gap: 10px; }
  .brand__tag { letter-spacing: 0.1em; }
}


/* 8. Héros
   ========================================================================== */
.hero {
  position: relative;
  background-color: var(--navy);
  background-image: radial-gradient(circle at 88% 12%, rgba(212, 162, 58, 0.10), transparent 42%);
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  padding-block: clamp(72px, 8vw, 112px) clamp(80px, 9vw, 128px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(56px, 6vw, 72px);
}
.hero__content {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero__title {
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--white);
}
.hero__title .accent { color: var(--gold); }
.hero__lead {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--on-dark);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.assurances {
  margin-top: 8px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr));
  gap: 24px;
}
.assurance {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.assurance__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 162, 58, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.assurance__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.assurance__title { font-size: 15px; font-weight: 600; color: var(--white); }
.assurance__desc { font-size: 13.5px; line-height: 1.5; color: var(--on-dark-muted); }

/* Visuel du héros */
.hero__media { flex: 1 1 440px; min-width: 0; }
.hero__visual { position: relative; min-height: 540px; }
.hero__corner {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 132px;
  height: 132px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-top-right-radius: 20px;
}
.hero__photo {
  --photo-bg: var(--navy-raised);
  --grid-s: 36px;
  --grid-a: 0.04;
  position: absolute;
  top: 0; right: 0; bottom: 64px; left: 44px;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 18px;
}
/* Dégradé bleu nuit en bas de la photo : détache la carte « Suivi de mission » et fond la photo dans le héros */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(8, 22, 41, 0.62) 0%, rgba(8, 22, 41, 0.42) 40%, rgba(8, 22, 41, 0.22) 58%, rgba(8, 22, 41, 0) 76%);
}
/* Sur petit écran, le badge photo se réduit pour ne pas passer sous « Depuis 2002 » */
@media (max-width: 480px) {
  .hero__photo .photo-chip__detail { display: none; }
}
.hero__since {
  position: absolute;
  top: 40px;
  left: 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__since-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.hero__since-value {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}

/* Carte « Suivi de mission » */
.mission {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(340px, 88%);
  padding: 24px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mission__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mission__titles { display: flex; flex-direction: column; gap: 3px; }
.mission__title { font-size: 15px; font-weight: 600; }
.mission__sub { font-size: 12.5px; color: var(--muted); }
.pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 600;
}
.mission__divider { height: 1px; background: var(--line-faint); }
.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.step { display: flex; align-items: center; gap: 12px; }
.step__dot {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step--done .step__dot { background: var(--navy); color: var(--white); }
.step--current { font-weight: 600; }
.step--current .step__dot { border: 2px solid var(--gold); }
.step--current .step__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.step--todo { color: var(--faint); }
.step--todo .step__dot { border: 2px solid var(--line-input); }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress__track {
  height: 6px;
  border-radius: 3px;
  background: var(--line-soft);
  overflow: hidden;
}
.progress__bar {
  width: 70%;
  height: 100%;
  border-radius: 3px;
  background: var(--gold);
}
.progress__label { font-size: 12px; color: var(--muted); }


/* 9. Clients
   ========================================================================== */
.clients {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.clients__inner {
  padding-block: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.clients__title {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.clients__title::before,
.clients__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-band);
}
.clients__title p {
  flex: 0 1 auto;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.clients__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 52px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted-2);
}
.clients__list .is-serif {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
}


/* 10. Expertises
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--white { background: var(--white); }
.section--surface { background: var(--surface); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 72px;
}
.section-head__main {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section-head__aside {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-head__aside .arrow-lnk { align-self: flex-start; }

.expertises__inner {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.expertises .h2 { max-width: 640px; }

/* 4 colonnes en grand écran, 2 sur tablette, 1 sur mobile (jamais de carte orpheline) */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
@container (min-width: 524px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 1072px) {
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative;
  isolation: isolate;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out);
}
.card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 28px 50px -32px rgba(11, 29, 57, 0.35);
  transform: translateY(-3px);
}
/* Halo doré qui suit le curseur sur la carte survolée (position fournie par main.js) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 162, 58, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover .card__link .ico { transform: translateX(4px); }
/* Toute la carte mène au formulaire, pas seulement le lien « Nous consulter » */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
@supports selector(:has(*)) {
  .card:has(.card__link:focus-visible) {
    border-color: var(--gold-line);
    box-shadow: 0 28px 50px -32px rgba(11, 29, 57, 0.35);
    transform: translateY(-3px);
    outline: 2px solid var(--navy);
    outline-offset: 3px;
  }
  .card__link:focus-visible { outline: none; }
}
.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-wash);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.card__num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-ink);
}
.card__title {
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.card__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}
.card__link {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
}


/* 11. Le cabinet
   ========================================================================== */
.cabinet__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.cabinet__row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px 56px;
}

.about-card {
  flex: 1 1 600px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  border-radius: 14px;
  overflow: hidden;
  overflow: clip; /* « clip » plutôt que « hidden » : nécessaire à la parallaxe de la photo */
  background: var(--navy);
  box-shadow: 0 40px 70px -48px rgba(11, 29, 57, 0.55);
}
.about-card__photo {
  --photo-bg: var(--navy-soft);
  --grid-s: 32px;
  --grid-a: 0.045;
  flex: 1 1 220px;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.about-card__body {
  flex: 1.35 1 300px;
  min-width: 0;
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  color: var(--white);
}
.about-card__title {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--white);
}
.about-card__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-dark);
  text-wrap: pretty;
}
.about-card__body .btn { align-self: flex-start; margin-top: 6px; }

/* Chiffres clés : 1, 2 ou 4 colonnes selon la place (jamais de case vide) */
.stats-wrap {
  flex: 1 1 420px;
  min-width: 0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
}
.stats {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line-grid);
  border: 1px solid var(--line-grid);
  border-radius: 14px;
  overflow: hidden;
}
@container (min-width: 403px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 805px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat {
  background: var(--white);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stat .ico { color: var(--gold-ink); }
.stat__value {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.stat__label {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px 48px;
}
.pillar {
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pillar__title { font-size: 23px; letter-spacing: -0.01em; }
.pillar__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}


/* 12. Références
   ========================================================================== */
.refs__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 88px;
}
.refs__intro {
  flex: 1 1 340px;
  min-width: 0;
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.refs__intro .btn { --btn-h: 52px; align-self: flex-start; margin-top: 8px; }
/* Colonne d'introduction collante uniquement quand les deux colonnes sont côte à côte */
@media (max-width: 1100px) {
  .refs__intro { position: static; }
}

.refs {
  flex: 1.6 1 560px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.ref {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.ref__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.ref__body {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ref__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.ref__title { font-size: 23px; letter-spacing: -0.01em; }
.ref__count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.ref__list {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}


/* 13. Équipe
   ========================================================================== */
.team__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.team .section-head__main { flex-basis: 520px; }

.motto {
  flex: 0 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.motto blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--ink);
}
.motto figcaption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.team__body {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 8vw, 104px);
}

.leader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 80px;
}
.leader__media { flex: 0 1 400px; min-width: 0; }
.portrait {
  --photo-bg: var(--navy);
  --grid-s: 32px;
  --grid-a: 0.04;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
}
/* Fond générique en attendant un portrait : l'image est teintée de bleu marine sous le monogramme */
.portrait--generic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 29, 57, 0.55) 0%, rgba(11, 29, 57, 0.88) 100%);
}
.portrait__monogram {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
}
.portrait__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 18px 22px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.portrait__badge-value {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.portrait__badge-label { font-size: 13.5px; color: var(--text); }

.leader__body {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.leader__role {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.leader__name {
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.leader__bio {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}

.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px 48px;
}
.member {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.member__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  color: var(--gold);
}
.avatar > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member__id {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.member__name { font-size: 23px; line-height: 1.2; }
.member__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.member__bio {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}
.member__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.member__meta strong { font-weight: 600; color: var(--navy); }


/* 14. Bandeau d'appel
   ========================================================================== */
.cta-band { background: var(--navy); color: var(--white); }
.cta-band__inner {
  padding-block: clamp(56px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 44px;
}
.cta-band__icon {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.cta-band__text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta-band__title {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--white);
}
.cta-band__lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--on-dark);
}
.cta-band__actions {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


/* 15. Contact & formulaire
   ========================================================================== */
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 56px 88px;
}
.contact__info {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__info .lead { max-width: 440px; }

.coords {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.coord {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.coord__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-wash);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-ink);
}
.coord__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.coord__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.coord__value {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
}
.coord__value.lnk { align-self: flex-start; }
.coord__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.coord__note {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}
.coord__note a { color: var(--navy); font-weight: 500; }

.contact-form {
  flex: 1.3 1 520px;
  min-width: 0;
  margin: 0;
  padding: clamp(28px, 3.6vw, 48px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 40px 80px -56px rgba(11, 29, 57, 0.4);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-form__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form__title {
  font-size: clamp(26px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.contact-form__intro { font-size: 15px; color: var(--text); }

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.field__optional { font-weight: 400; color: var(--muted); }

.input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line-input);
  background-color: var(--white);
  color: var(--navy);
  font-size: 16px;
  transition: border-color 0.2s ease;
}
.input:hover { border-color: var(--line-strong); }
textarea.input {
  padding: 14px 16px;
  line-height: 1.55;
  resize: vertical;
}
select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 48px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1D39' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.input:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.input[aria-invalid="true"] { border-color: var(--error); }
.input[aria-invalid="true"]:focus { outline-color: var(--error); }
.field__error {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--error);
}

/* Champ piège anti-spam, invisible pour les visiteurs */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  justify-content: center;
  border: 0;
  cursor: pointer;
}
.contact-form__submit[disabled] { opacity: 0.7; cursor: progress; }

.form-status {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.form-status a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-status[data-tone="info"] {
  background: var(--gold-wash);
  border-color: var(--gold-line);
  color: var(--ink);
}
.form-status[data-tone="success"] {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--success-ink);
}
.form-status[data-tone="error"] {
  background: var(--error-bg);
  border-color: var(--error-line);
  color: var(--error);
}


/* 16. Pied de page
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); }
.site-footer__inner {
  padding-block: 80px 32px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 44px 48px;
}
.site-footer__about {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer__about p {
  max-width: 280px;
  font-size: 14.5px;
  line-height: 1.65;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14.5px;
}
.site-footer__col .lnk { align-self: flex-start; }
.site-footer__col--contact { line-height: 1.55; }
.site-footer__heading {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer__bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13.5px;
  color: var(--on-dark-faint);
}
.site-footer__motto { letter-spacing: 0.04em; }
.site-footer__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.site-footer__lang { font-weight: 600; color: var(--on-dark); }
.site-footer__lang:hover { color: var(--white); }


/* 17. Animations
   Peu d'effets, tous discrets et au service de la lecture :
   — apparition douce des blocs au défilement (17.1) et arrivée du héros (17.2) ;
   — parallaxe légère, pilotée par le défilement lui-même (17.3) ;
   — effets liés au curseur, à la souris uniquement (17.4).
   Les survols (boutons, liens, cartes, menu) sont déclarés avec chaque composant.
   Tout mouvement est supprimé si le visiteur a demandé à réduire les animations.
   ========================================================================== */

/* 17.1 Apparition au défilement — main.js ajoute .rv aux blocs encore sous l'écran au chargement,
        puis .rv-in quand ils y entrent. Sans JavaScript, tout reste visible. */
@media (prefers-reduced-motion: no-preference) {
  .rv:not(.rv-in) { opacity: 0; translate: 0 var(--rv-y, 18px); }
  .rv-in { animation: rv-in var(--dur-reveal) var(--ease-out) var(--rv-delay, 0ms) backwards; }

  /* Les filets or se dessinent juste après leur bloc */
  .rv-in .rule,
  .rv-in.topline::before {
    transform-origin: 0 50%;
    animation: draw 0.9s var(--ease-out) calc(var(--rv-delay, 0ms) + 0.25s) backwards;
  }
}

/* 17.2 Arrivée sur la page : le héros se compose en moins de deux secondes */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise 0.9s var(--ease-out) backwards; }
  .hero__content > :nth-child(2) { animation-delay: 0.08s; }
  .hero__content > :nth-child(3) { animation-delay: 0.16s; }
  .hero__content > :nth-child(4) { animation-delay: 0.24s; }
  .hero__content > :nth-child(5) { animation-delay: 0.32s; }
  .hero__photo { animation: settle 1.2s var(--ease-out) 0.1s backwards; }
  .hero__corner { animation: fade-in 1s ease 0.6s backwards; }
  .hero__since { animation: rise 0.9s var(--ease-out) 0.45s backwards; }
  .mission { animation: rise 0.9s var(--ease-out) 0.55s backwards; }
  /* La barre de la carte « Suivi de mission » se remplit une seule fois */
  .progress__bar { animation: fill 1.4s var(--ease-out) 1.1s backwards; }
}

/* 17.3 Parallaxe — liée au défilement par le navigateur lui-même (fluide, aucun calcul en JavaScript).
        Navigateurs qui ne la gèrent pas encore : pas de parallaxe, tout le reste est identique. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Héros : les deux cartes remontent un peu plus vite que la photo */
    .hero__since,
    .mission {
      animation-name: rise, float;
      animation-duration: 0.9s, auto;
      animation-timing-function: var(--ease-out), linear;
      animation-delay: 0.45s, 0s;
      animation-fill-mode: backwards, both;
      animation-timeline: auto, scroll(root);
      animation-range-start: normal, 0px;
      animation-range-end: normal, 100vh;
    }
    .hero__since { --float: -20px; }
    .mission { --float: -34px; animation-delay: 0.55s, 0s; }

    /* Le cabinet : l'image glisse doucement dans son cadre */
    .about-card__photo {
      view-timeline: --about-photo block;
      background-image: none;
    }
    .about-card__photo::before {
      content: "";
      position: absolute;
      inset: -36px 0;
      z-index: -1;
      background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, var(--grid-a)) 0 1px, transparent 1px var(--grid-s)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, var(--grid-a)) 0 1px, transparent 1px var(--grid-s));
    }
    .about-card__photo > img {
      inset: -36px 0;
      height: calc(100% + 72px);
    }
    .about-card__photo::before,
    .about-card__photo > img {
      animation: drift linear both;
      animation-timeline: --about-photo;
    }
  }
}

/* 17.4 Effets liés au curseur (souris uniquement ; main.js fournit les positions) */
/* Héros : la photo se décale à peine, à l'opposé du curseur ; les cartes restent : effet de profondeur */
.hero__photo,
.hero__corner {
  translate: calc(var(--hx, 0) * -14px) calc(var(--hy, 0) * -10px);
  transition: translate 1s var(--ease-out);
}
/* Boutons principaux « aimantés » : ils suivent le curseur de quelques pixels */
.is-magnetic { translate: var(--mag-x, 0px) var(--mag-y, 0px); }

@keyframes rv-in { from { opacity: 0; translate: 0 var(--rv-y, 18px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } }
@keyframes settle { from { opacity: 0; transform: scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fill { from { width: 0; } }
@keyframes float { to { translate: 0 var(--float, -24px); } }
@keyframes drift { from { translate: 0 -28px; } to { translate: 0 28px; } }

@media print {
  .rv { opacity: 1 !important; translate: none !important; }
}
