/* ==========================================================================
   ALAND Groupe — feuille de style principale
   Mobile first · Design tokens · Contrastes vérifiés WCAG 2.1 AA / RGAA 4.1
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Polices auto-hébergées (aucun appel à un tiers — conformité RGPD/CNIL)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-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: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-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: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-900-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: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-var-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: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   Les ratios de contraste indiqués sont calculés (WCAG 2.1) et vérifiés :
   tout texte < 24px atteint au moins 4,5:1 sur son fond réel.
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque */
  --c-ink: #172029;         /* 16,5:1 sur blanc */
  --c-deep: #16343f;        /* 13,2:1 sur blanc */
  --c-slate: #2e3a44;       /* 11,6:1 sur blanc */
  --c-body: #546672;        /* 6,0:1 blanc · 5,3:1 crème · 5,1:1 gris */
  --c-accent: #22637a;      /* 6,7:1 blanc · 5,9:1 crème · 5,7:1 gris */
  --c-accent-bright: #2c7d9a; /* décoratif + texte sur blanc (4,7:1) */
  --c-gold: #e5c471;        /* 9,8:1 sur encre — décor et fonds */
  --c-gold-deep: #c3a366;   /* fond de survol doré uniquement, jamais du texte */
  --c-gold-text: #8f7028;   /* 4,7:1 sur blanc — version texte de l'or */
  --c-green: #4a6b5d;       /* 5,9:1 sur blanc */
  --c-terracotta: #9e5f35;  /* 5,1:1 sur blanc */
  --c-sky: #a2d1e1;         /* 10,0:1 sur encre */
  --c-success: #7fe0a8;     /* 9,6:1 sur encre */

  /* Fonds */
  --bg-page: #ffffff;
  --bg-cream: #f2f1ec;
  --bg-mist: #ebedf1;
  --bg-dark: #172029;

  /* Traits */
  --line-soft: #ebedf1;     /* séparateurs décoratifs */
  --line: #d8dbe3;          /* bordures de cartes (décoratives) */
  --line-strong: #8a959b;   /* bordures de composants d'interface, ≥ 3:1 */
  --line-on-dark: #9aa6ac;  /* 5,3:1 sur le dégradé sombre */

  /* Texte sur fond sombre */
  --on-dark: #ffffff;
  --on-dark-soft: #c3cbd0;  /* 8,0:1 sur #16343f */
  --on-dark-mute: #aeb8be;  /* 6,5:1 sur #16343f */

  /* Typographie */
  --font-sans: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --fs-eyebrow: 0.75rem;
  --fs-small: 0.875rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.0625rem, 1rem + 0.3vw, 1.3125rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 2vw, 3.625rem);
  --fs-h1: clamp(1.75rem, 1.4rem + 1.8vw, 3rem);
  --fs-display: clamp(3.5rem, 2rem + 8vw, 8.5rem);

  /* Rythme */
  --gutter: clamp(1.25rem, 5vw, 7.5rem);
  --section-y: clamp(3.5rem, 9vw, 9.375rem);
  --measure: 66ch;
  --radius: 8px;
  --nav-h: 4.5rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 12px 32px rgba(23, 32, 41, 0.09);
}

/* --------------------------------------------------------------------------
   3. Reset et bases
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Ancres : compense l'en-tête collant (RGAA — repérage de la cible) */
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul[role='list'],
ul.plain {
  list-style: none;
  padding: 0;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--c-deep);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--c-gold);
  color: var(--c-ink);
}

/* Indicateur de focus : visible, épais, jamais supprimé (RGAA 10.7) */
:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.section--dark :focus-visible,
.site-footer :focus-visible,
.stats :focus-visible {
  outline-color: var(--c-gold);
}

/* Contenu réservé aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Lien d'évitement (RGAA 12.7) */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 200;
  padding: 0.875rem 1.25rem;
  background: var(--c-ink);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   4. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
}

.section {
  padding: var(--section-y) var(--gutter);
}

.section--cream {
  background: var(--bg-cream);
}

.section--mist {
  background: var(--bg-mist);
}

.section--hairline {
  border-top: 1px solid var(--line-soft);
}

.section--dark {
  background: linear-gradient(180deg, #172029, #16343f);
  color: var(--on-dark);
}

.rule {
  height: 1px;
  margin-inline: var(--gutter);
  background: var(--line-soft);
  border: 0;
}

/* Sur-titre de section */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.eyebrow::before {
  content: '';
  flex: 0 0 auto;
  width: 4rem;
  height: 2px;
  background: var(--c-gold);
}

.eyebrow > span {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.section--dark .eyebrow > span {
  color: var(--c-sky);
}

.stats .eyebrow > span {
  color: #fff;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--fs-h2);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  text-wrap: balance;
  max-width: 24ch;
}

.section--dark .section-title {
  color: var(--on-dark);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--c-body);
  max-width: var(--measure);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.75rem;              /* cible tactile ≥ 44px (RGAA 13.x) */
  padding: 0.9375rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease,
    border-color 0.2s ease, color 0.15s ease;
}

.btn__arrow {
  font-size: 1em;
  line-height: 1;
}

.btn--gold {
  background: var(--c-gold);
  color: var(--c-ink);
}

.btn--gold:hover {
  background: var(--c-gold-deep);
  color: var(--c-ink);
  transform: translateY(-1px);
}

.btn--ink {
  background: var(--c-ink);
  color: #fff;
}

.btn--ink:hover {
  background: var(--c-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--c-deep);
  font-weight: 700;
}

.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-deep);
  background: rgba(34, 99, 122, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   6. En-tête et navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line-soft);
}

@supports (backdrop-filter: blur(12px)) {
  .site-header {
    backdrop-filter: blur(12px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  height: 2.375rem;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--c-deep);
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 1.125rem;
  height: 0.75rem;
  flex: 0 0 auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars > span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.15s ease;
}

.nav-toggle__bars::before {
  top: 0;
}

.nav-toggle__bars > span {
  top: 5px;
}

.nav-toggle__bars::after {
  bottom: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars > span {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* Panneau de navigation — plein écran sous l'en-tête sur mobile.
   L'état fermé utilise visibility:hidden, qui retire réellement les liens
   du parcours clavier et de l'arbre d'accessibilité (RGAA 10.8). */
.main-nav {
  /* Positionnement absolu par rapport à l'en-tête, et non fixed : le
     backdrop-filter de l'en-tête en fait un bloc conteneur, ce qui
     écraserait un panneau fixed à la hauteur de la barre. */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: calc(100dvh - var(--nav-h));
  padding: 1.5rem var(--gutter) 2.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 16px 32px rgba(23, 32, 41, 0.12);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  /* visibility n'est volontairement pas animée : une transition sur cette
     propriété laisse les liens focalisables après la fermeture. */
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.site-header.is-open .main-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.main-nav__link {
  display: block;
  padding: 0.9375rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--c-deep);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.main-nav__link:hover {
  color: var(--c-accent);
}

.main-nav__link[aria-current='true'] {
  color: var(--c-accent);
}

.main-nav__cta {
  margin-top: 1.5rem;
  align-self: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  .main-nav {
    transition: visibility 0s;
  }
}

@media (min-width: 60em) {
  .nav-toggle {
    display: none;
  }

  /* La navigation redevient une barre horizontale toujours visible. */
  .main-nav,
  .site-header.is-open .main-nav {
    position: static;
    inset: auto;
    z-index: auto;
    flex-direction: row;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2.25rem);
    max-height: none;
    padding: 0;
    background: none;
    border-bottom: 0;
    box-shadow: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .main-nav__link {
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    font-size: var(--fs-small);
  }

  .main-nav__link[aria-current='true'] {
    border-bottom-color: var(--c-gold);
  }

  .main-nav__cta {
    margin-top: 0;
    align-self: auto;
  }
}

/* --------------------------------------------------------------------------
   7. Sommaire latéral (pastilles) — grands écrans uniquement
   -------------------------------------------------------------------------- */
.rail {
  display: none;
}

@media (min-width: 82.5em) {
  .rail {
    position: fixed;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .rail__link {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;       /* cible ≥ 24px (WCAG 2.5.8) */
    border-radius: 50%;
  }

  .rail__link::before {
    content: '';
    width: 0.5625rem;
    height: 0.5625rem;
    border: 1px solid var(--c-body);
    border-radius: 50%;
    transition: background-color 0.3s ease, border-color 0.3s ease,
      transform 0.3s ease;
  }

  .rail__link:hover::before {
    background: var(--c-gold);
    border-color: var(--c-gold-deep);
  }

  .rail__link[aria-current='true']::before {
    background: var(--c-accent);
    border-color: var(--c-accent);
    transform: scale(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rail__link[aria-current='true']::before {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 7rem) var(--gutter) clamp(3rem, 8vw, 8rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 700px 460px at 18% 46%,
    rgba(229, 196, 113, 0.13),
    transparent 70%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__title {
  margin: 0;
  font-size: var(--fs-h1);
}

.hero__logo {
  width: clamp(15rem, 52vw, 41.25rem);
  height: auto;
}

.hero__tagline {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(0.8125rem, 0.75rem + 0.4vw, 1.1875rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-deep);
}

.hero__grid {
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: end;
}

@media (min-width: 48em) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__claim {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.18;
  color: var(--c-ink);
  text-wrap: balance;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* --------------------------------------------------------------------------
   9. Territoires
   -------------------------------------------------------------------------- */
.territories {
  display: grid;
  gap: clamp(0.875rem, 1.6vw, 1.5rem);
  margin-top: clamp(2.5rem, 6vw, 5.25rem);
  padding: 0;
  list-style: none;
}

@media (min-width: 30em) {
  .territories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .territories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.territory {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.territory:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--c-gold-deep);
}

@media (prefers-reduced-motion: reduce) {
  .territory:hover {
    transform: none;
  }
}

.territory::before {
  content: '';
  position: absolute;
  left: 0;
  top: clamp(1.25rem, 2vw, 2rem);
  width: 3px;
  height: 2.5rem;
  background: var(--territory-color, var(--c-accent));
}

.territory__index {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--territory-color, var(--c-accent));
}

.territory__mark {
  display: block;
  width: 2.25rem;
  height: 2.3125rem;
  background: var(--territory-color, var(--c-accent));
  -webkit-mask-image: url('../assets/img/a-capitale.png');
  mask-image: url('../assets/img/a-capitale.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.territory__title {
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1.24;
  color: var(--c-ink);
}

.territory__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--c-body);
}

.t--conseil {
  --territory-color: var(--c-green);
}
.t--data {
  --territory-color: var(--c-terracotta);
}
.t--logiciel {
  --territory-color: var(--c-accent-bright);
}
.t--infra {
  --territory-color: var(--c-slate);
}

/* --------------------------------------------------------------------------
   10. Bandeau chiffres + photo
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 70vh, 47.5rem);
  padding: clamp(3rem, 8vw, 6.875rem) var(--gutter);
  background: var(--c-deep);
  color: var(--on-dark);
  isolation: isolate;
}

.stats__media,
.stats__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.stats__media img {
  object-fit: cover;
  object-position: 50% 42%;
}

/* Voile assombrissant : les opacités sont dimensionnées pour que le texte
   reste au-dessus de 4,5:1 même sur un pixel de photo entièrement blanc. */
.stats__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(23, 32, 41, 0.45) 0%,
    rgba(23, 32, 41, 0.72) 35%,
    rgba(22, 52, 63, 0.86) 70%,
    rgba(22, 52, 63, 0.96) 100%
  );
}

.stats__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: end;
  width: 100%;
}

@media (min-width: 48em) {
  .stats__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
}

.stat__value {
  font-weight: 900;
  font-size: var(--fs-display);
  line-height: 0.9;
  color: var(--c-gold);
}

.stat__label {
  font-size: clamp(1.125rem, 0.9rem + 0.9vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.stats__note {
  max-width: 42ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #fff;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   11. Marques du groupe
   -------------------------------------------------------------------------- */
.brands {
  display: grid;
  /* minmax(0, …) : sans cela la colonne ne peut pas descendre sous la largeur
     minimale du logo, et la grille déborde puis se fait rogner. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 5.25rem);
  padding: 0;
  list-style: none;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (min-width: 64em) {
  .brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.brands > li {
  display: grid;
  place-items: center;
  min-height: clamp(7rem, 22vw, 9rem);
  padding: clamp(0.875rem, 4vw, 1.5rem);
  background: #fff;
}

.brands img {
  max-width: min(10.625rem, 100%);
  max-height: 4.625rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brands img.is-tall {
  max-width: min(6rem, 100%);
  max-height: 6.25rem;
}

.cities {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 3vw, 3.5rem);
  margin-top: clamp(2.5rem, 6vw, 6rem);
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.cities li + li::before {
  content: '·';
  margin-right: clamp(0.75rem, 3vw, 3.5rem);
  color: var(--c-gold-text);
}

/* --------------------------------------------------------------------------
   12. Clients
   -------------------------------------------------------------------------- */
.clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  justify-items: center;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 0;
  list-style: none;
}

@media (min-width: 40em) {
  .clients {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .clients {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .clients > .is-wide {
    grid-column: span 2;
  }
}

.clients > li {
  display: grid;
  place-items: center;
  width: 100%;
  height: 5.5rem;
}

.clients img {
  max-width: 100%;
  max-height: 4.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.clients img.is-wordmark {
  max-height: 2.5rem;
}

/* --------------------------------------------------------------------------
   13. À propos
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 6rem);
}

@media (min-width: 56em) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 54ch;
}

.about__body p {
  font-size: var(--fs-lead);
  line-height: 1.65;
  text-wrap: pretty;
}

.about__body p:first-child {
  color: var(--c-deep);
}

.about__body p + p {
  color: var(--c-body);
}

.badge {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.badge__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--c-gold-text);
  border-radius: 50%;
  color: var(--c-accent);
}

.badge__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.badge__title {
  font-size: var(--fs-base);
  font-weight: 900;
  color: var(--c-ink);
}

.badge__text {
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--c-body);
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 62.5rem;
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
}

.faq__item {
  border-top: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
  font-weight: 700;
  color: var(--c-ink);
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--c-accent);
}

.faq__question::after {
  content: '';
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  background: var(--c-accent);
  -webkit-mask-image: var(--icon-plus);
  mask-image: var(--icon-plus);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  transition: transform 0.2s var(--ease);
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__question::after {
    transition: none;
  }
}

:root {
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7 0h2v7h7v2H9v7H7V9H0V7h7z'/%3E%3C/svg%3E");
}

.faq__answer {
  margin: 0 0 1.75rem;
  max-width: var(--measure);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-body);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
}

@media (min-width: 56em) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__intro {
  margin-top: 2rem;
  max-width: 40ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--on-dark-soft);
  text-wrap: pretty;
}

.offices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

.offices dt,
.office__city {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.office__tag {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--on-dark-soft);
}

.office__tag::before {
  content: '· ';
  color: var(--c-gold);
}

.office__address {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.contact__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin: 2.5rem 0 0;
}

.contact__direct dt {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.contact__direct dd {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}

.contact__direct a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.contact__direct a:hover {
  color: var(--c-gold);
  text-decoration-color: currentColor;
}

/* Formulaire */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}

.form__row {
  display: grid;
  gap: 1.375rem;
}

@media (min-width: 30em) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field__label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.field__hint {
  font-size: var(--fs-small);
  color: var(--on-dark-mute);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 0;
  border-bottom: 1px solid var(--line-on-dark);
  border-radius: 0;
  color: #fff;
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.field input:hover,
.field textarea:hover {
  border-bottom-color: #fff;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-bottom-color: var(--c-gold);
  border-bottom-width: 2px;
}

.field__error {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-gold);
}

.field__error:empty {
  display: none;
}

/* Piège à robots — masqué pour tous, y compris les lecteurs d'écran */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form__status {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-success);
}

.form__status[data-state='error'] {
  color: var(--c-gold);
}

.form__status-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.form__status-link:hover {
  color: var(--c-gold);
}

.form__consent {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--on-dark-soft);
}

/* Case à cocher : 1,5 rem de côté pour satisfaire la taille de cible
   minimale, et bordure suffisamment contrastée sur le fond sombre. */
.form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form__consent input[type='checkbox'] {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  accent-color: var(--c-gold);
  border: 1px solid var(--line-on-dark);
  cursor: pointer;
}

.form__consent input[type='checkbox']:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 2px;
}

.form__consent a {
  color: var(--on-dark-soft);
}

.form__consent a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   16. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  background: var(--bg-dark);
  color: var(--on-dark-mute);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.site-footer img {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__cities {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
}

.site-footer__links a {
  color: var(--on-dark-soft);
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__legal {
  width: 100%;
  font-size: 0.75rem;
  color: var(--on-dark-mute);
}

/* --------------------------------------------------------------------------
   17. Pages de contenu (mentions légales, confidentialité, accessibilité, 404)
   -------------------------------------------------------------------------- */
.page-header {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-cream);
}

.breadcrumb {
  margin-bottom: 1.25rem;
  font-size: var(--fs-small);
  color: var(--c-body);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--c-body);
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.25;
  color: var(--c-ink);
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--c-ink);
}

.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin-top: 1rem;
  color: var(--c-body);
  text-wrap: pretty;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.prose dt {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--c-ink);
}

.prose a {
  text-decoration: underline;
}

.todo {
  padding: 0.0625rem 0.375rem;
  background: #fff4d6;
  border: 1px dashed var(--c-terracotta);
  border-radius: 3px;
  color: #6b3f1d;
  font-size: 0.9em;
  font-weight: 700;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: var(--section-y) var(--gutter);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: var(--c-gold-text);
}

/* --------------------------------------------------------------------------
   18. Animation d'apparition — désactivée si le mouvement est réduit
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   20. Utilitaires (évitent tout attribut style= et permettent une CSP stricte)
   -------------------------------------------------------------------------- */
.brand__mark {
  height: 2.375rem;
  width: auto;
}

.u-center {
  text-align: center;
}

.u-center .eyebrow {
  justify-content: center;
}

.u-center .section-title,
.u-center .lead {
  margin-inline: auto;
}

.u-narrow {
  max-width: 32ch;
}

.error-page .lead {
  margin-block: 1.5rem 2.5rem;
}

/* --------------------------------------------------------------------------
   21. Impression
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .rail,
  .form,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section,
  .stats {
    padding: 1rem 0;
    background: none !important;
    color: #000 !important;
    min-height: 0;
  }

  .stats__media {
    display: none;
  }

  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
  }

  .faq__answer {
    display: block !important;
  }
}
