/* =============================================================================
   PURPLE SECTOR MANAGEMENT — style.css
   -----------------------------------------------------------------------------
   Sommaire
     01. Polices (self-hosted)
     02. Tokens / design system
     03. Reset & base
     04. Typographie utilitaire (étiquettes, titres de section)
     05. Boutons
     06. Header sticky / navigation / langue / progression
     07. Hero
     08. Sections : média de fond + overlay
     09. À propos
     10. Équipe
     11. Parcours du pilote (timeline)
     12. Services
     13. Deux publics
     14. Pilotes
     15. Partenaires
     16. Contact
     17. Footer
     18. Modale pilote
     19. Animations de révélation
     20. Media queries
   ========================================================================== */


/* -----------------------------------------------------------------------------
   01. POLICES — self-hosted, aucun appel réseau.

   Les deux fichiers WOFF2 ne sont pas fournis pour l'instant : les piles de
   secours système (Bahnschrift / Franklin Gothic / Segoe UI pour les titres,
   Inter / Segoe UI / Helvetica pour le corps) assurent un rendu cohérent.

   POUR ACTIVER LES POLICES DÉFINITIVES :
   1. déposer psm-display.woff2 et psm-text.woff2 dans /assets/fonts
      (voir assets/fonts/README.md) ;
   2. décommenter les deux lignes « src: » ci-dessous.
   Aucune requête réseau n'est effectuée tant que les blocs restent commentés.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'PSM Display';
  /* src: url('../fonts/psm-display.woff2') format('woff2'); */
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'PSM Text';
  /* src: url('../fonts/psm-text.woff2') format('woff2'); */
  font-weight: 300 700;
  font-display: swap;
}


/* -----------------------------------------------------------------------------
   02. TOKENS
   -------------------------------------------------------------------------- */
:root {
  --bg: #0B0B10;
  --surface: #16151F;
  --surface-2: #1E1D2A;
  --text: #FFFFFF;
  --text-muted: #9A9AA8;
  --line: rgba(255, 255, 255, 0.10);

  --purple: #A32BB0;
  --purple-bright: #C24FCF;
  --purple-deep: #7A1E86;
  --purple-soft: rgba(163, 43, 176, 0.14);

  --font-display: 'PSM Display', 'Bahnschrift', 'Franklin Gothic Medium',
                  'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
                  'Helvetica Neue', Arial, sans-serif;
  --font-text: 'PSM Text', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-py-desktop: clamp(72px, 7vw, 110px);
  --section-py-mobile: clamp(48px, 9vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;

  --header-h: 68px;
}


/* -----------------------------------------------------------------------------
   03. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-text);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--purple); color: #fff; }

:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }


/* -----------------------------------------------------------------------------
   04. TYPOGRAPHIE UTILITAIRE
   -------------------------------------------------------------------------- */

/* Étiquette de section : trois trattini viola + mot espacé */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-text);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.eyebrow-dash {
  display: inline-block;
  width: 70px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--purple) 0 18px, transparent 18px 26px);
}

/* Titre de section : grottesco condensé très lourd, maiuscolo, point final identitaire */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.98;
  color: var(--text);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  margin-bottom: 20px;
  overflow-wrap: break-word;
  hyphens: none;
}
@media (min-width: 768px) {
  .section-title { margin-bottom: 24px; }
}

.section-intro {
  max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--text-muted);
  margin-bottom: clamp(32px, 6vw, 48px);
}

.is-purple { color: var(--purple); }
.is-white { color: var(--text); }


/* -----------------------------------------------------------------------------
   05. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--purple); color: #fff; }
.btn-solid:hover { background: var(--purple-bright); }

.btn-outline { border-color: rgba(255,255,255,.35); color: var(--text); }
.btn-outline:hover { border-color: var(--purple); color: #fff; background: var(--purple-soft); }

.btn-sm { padding: 10px 18px; font-size: .78rem; }
.btn-block { width: 100%; }


/* -----------------------------------------------------------------------------
   06. HEADER STICKY / NAV / LANGUE / PROGRESSION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 16, 0.55);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 16, 0.82);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

/* Marque */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark { color: var(--text); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-size: 1.12rem;
}
.brand-suffix {
  font-family: var(--font-text);
  font-size: .58rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Nav */
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.nav-link {
  position: relative;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--purple);
  transition: right .28s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.site-nav + .header-actions { margin-left: 0; }
.site-nav:not(:last-child) { margin-right: 0; }

/* Bouton partenaire dans le header */
.btn-partner { white-space: nowrap; }

/* Variante du lien partenaire affichée uniquement dans le menu mobile */
.btn-partner-mobile { display: none; }

/* Bascule de langue : pill, état actif sur fond violet */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.lang-btn {
  padding: 7px 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang-btn.is-active { background: var(--purple); color: #fff; }
.lang-btn:not(.is-active):hover { color: var(--text); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Barre de progression scroll : 2px sous l'header */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* Progressive enhancement : barre pilotée par le scroll natif si supporté.
   Sinon, main.js met à jour transform sur l'évènement scroll. */
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress-grow linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes scroll-progress-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}


/* -----------------------------------------------------------------------------
   07. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(60px, 12vh, 140px) clamp(48px, 9vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.section-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}
.section-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,16,.72) 0%, rgba(11,11,16,.55) 42%, rgba(11,11,16,.95) 100%),
    rgba(11,11,16,.30);
}
.hero .section-bg-overlay {
  background:
    linear-gradient(180deg, rgba(11,11,16,.55) 0%, rgba(11,11,16,.45) 38%, rgba(11,11,16,.92) 100%),
    linear-gradient(90deg, rgba(11,11,16,.65) 0%, rgba(11,11,16,.15) 60%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  color: var(--text);
  margin-bottom: .35em;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.92;
  font-size: clamp(3.6rem, 17vw, 10.5rem);
  margin-bottom: .28em;
}
.hero-lead {
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  color: var(--text-muted);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(44px, 7vw, 84px); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 7vw, 72px);
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.stat { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--purple);
}
.stat-label {
  font-size: .82rem;
  line-height: 1.45;
  color: var(--text-muted);
}


/* -----------------------------------------------------------------------------
   08. SECTIONS : structure commune
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-py-mobile);
  isolation: isolate;
  overflow: hidden;
}
.section-media { position: absolute; inset: 0; z-index: -1; }
.section-bg-overlay.is-strong {
  background:
    linear-gradient(180deg, rgba(11,11,16,.86) 0%, rgba(11,11,16,.80) 40%, rgba(11,11,16,.97) 100%),
    rgba(11,11,16,.55);
}

/* Photos de fond des sections (hors hero) : présence discrète, à peine
   perceptible sous l'overlay — juste une texture. */
.section-timeline .timeline-outer { padding-block: 24px; }
.section-timeline .section-bg-img {
  object-position: 50% 50%;
  opacity: 1;
  filter: saturate(0.8);
}
.section-bg-overlay.is-timeline {
  background:
    linear-gradient(180deg, rgba(11,11,16,1) 0%, rgba(11,11,16,.58) 18%, rgba(11,11,16,.58) 82%, rgba(11,11,16,1) 100%);
}

.section-about .section-bg-img,
.section-contact .section-bg-img {
  opacity: 0.55;
  filter: saturate(0.6) blur(1px);
}

.section-team { background: linear-gradient(180deg, var(--bg), #0d0d14); }
.section-services { background: linear-gradient(180deg, #0d0d14, var(--bg)); }
.section-pilotes { background: var(--bg); }

/* Fonds sombres adjacents : liseré discret plutôt qu'un espace supplémentaire */
.section-timeline,
.section-services { border-top: 1px solid rgba(255,255,255,.08); }

@media (min-width: 768px) {
  .section { padding-block: var(--section-py-desktop); }
}


/* -----------------------------------------------------------------------------
   09. À PROPOS
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.4em; }
.prose p {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  color: #C7C7D2;
  line-height: 1.8;
}
.prose p:first-child::first-letter {
  color: var(--purple);
}


/* -----------------------------------------------------------------------------
   10. ÉQUIPE
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.team-card { display: block; }

.team-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}
/* Léger assombrissement en bas pour détacher la photo du nom, rien d'autre */
.team-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,11,16,.55) 100%);
  pointer-events: none;
}

.team-photo .portrait-monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.6rem, 8vw, 5.5rem);
  letter-spacing: .02em;
  color: rgba(255,255,255,.14);
  line-height: 1;
}

.team-line {
  width: 40px;
  height: 2px;
  background: var(--purple);
  margin-bottom: 14px;
  transition: width .4s var(--ease);
}
.team-card:hover .team-line,
.team-card:focus-within .team-line { width: 100%; }

.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 6px;
}
.team-role {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.team-bio {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* -----------------------------------------------------------------------------
   11. PARCOURS DU PILOTE (timeline)
   -------------------------------------------------------------------------- */
.timeline-outer { position: relative; margin-top: clamp(40px, 6vw, 64px); }
.timeline-viewport { position: relative; }

/* ---- Base (mobile / tablette < 1024px) : liste verticale ---- */
.timeline-list {
  list-style: none;
  position: relative;
  padding-left: 30px;
}
.timeline-rail {
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.timeline-rail-fill {
  position: absolute;
  left: 5px; top: 6px;
  width: 1px;
  height: 0%;
  background: var(--purple);
  transition: height .6s var(--ease);
}
.timeline-stop {
  position: relative;
  padding-bottom: clamp(34px, 7vw, 52px);
}
.timeline-stop:last-child { padding-bottom: 0; }

.timeline-node {
  position: absolute;
  left: 0; top: 2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.28);
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.timeline-node:focus-visible { outline-offset: 5px; }
.timeline-node.is-active {
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 0 7px rgba(163,43,176,.18);
}
.timeline-connector {
  display: none;
  background: rgba(255,255,255,.15);
  transition: background-color .3s var(--ease);
}
.timeline-node.is-active ~ .timeline-connector { background: var(--purple); }

/* ---- La tappe comme fiche : fond --surface, photo optionnelle en couche,
   numéro et pictogramme en filigrane, contenu au-dessus ---- */
.timeline-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  opacity: .4;
  transform: none;
  transition: opacity .5s cubic-bezier(.4,0,.2,1),
              transform .5s cubic-bezier(.4,0,.2,1),
              border-color .5s cubic-bezier(.4,0,.2,1);
}
.timeline-card.is-active {
  opacity: 1;
  border-color: rgba(163,43,176,.35);
  transform: translateY(-6px);
}
/* Liseré violet du bord supérieur, qui grandit de gauche à droite */
.timeline-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--purple);
  z-index: 3;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.timeline-card.is-active::before { width: 100%; }

.timeline-card.is-active 
.timeline-card-number {
  position: absolute;
  top: -10px; right: -6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.13);
  z-index: 2;
  user-select: none;
  pointer-events: none;
  transition: color .5s var(--ease), -webkit-text-stroke-color .5s var(--ease);
}
.timeline-card.is-active .timeline-card-number {
  color: rgba(163,43,176,.07);
  -webkit-text-stroke-color: rgba(163,43,176,.45);
}

.timeline-card-icon {
  position: absolute;
  right: 6px; bottom: 6px;
  width: 90px; height: 90px;
  color: var(--text);
  opacity: .06;
  z-index: 2;
  pointer-events: none;
  transition: opacity .5s var(--ease), color .5s var(--ease);
}
.timeline-card.is-active .timeline-card-icon { opacity: .14; color: var(--purple); }

.timeline-card-content {
  position: relative;
  z-index: 4;
  width: 100%;
}

.timeline-stage-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 0;
}
.timeline-stage-line {
  font-size: 14px;
  font-style: italic;
  color: var(--purple-bright);
  margin: 10px 0 20px;
}
.timeline-points {
  list-style: none;
  display: grid;
  gap: 10px;
}
.timeline-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.timeline-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 5px; height: 5px;
  background: var(--purple);
}

.timeline-nav { display: none; }


/* -----------------------------------------------------------------------------
   12. SERVICES
   -------------------------------------------------------------------------- */
.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 96px);
  border-top: 1px solid var(--line);
}
.service-row {
  padding-block: clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line);
}
.service-row-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  color: var(--text);
  margin-bottom: 8px;
}
.service-row-text {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 48ch;
}


/* -----------------------------------------------------------------------------
   14. PILOTES
   -------------------------------------------------------------------------- */
.pilotes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pilote-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.pilote-card:hover { border-color: rgba(163,43,176,.5); transform: translateY(-3px); }

.pilote-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
}
.pilote-card-media img { width: 100%; height: 100%; object-fit: cover; }

.pilote-card-media.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(163,43,176,.18), transparent 60%),
    var(--surface-2);
}
.pilote-monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 6rem);
  color: rgba(255,255,255,.13);
  line-height: 1;
}
.pilote-photo-pending {
  position: absolute;
  left: 14px; bottom: 14px;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Badge catégorie : bordure violette, en haut à gauche */
.pilote-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(11,11,16,.7);
  border: 1px solid var(--purple);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.pilote-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pilote-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text);
}
.pilote-cc {
  font-family: var(--font-text);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--purple);
  vertical-align: middle;
  margin-left: 4px;
}
.pilote-team {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.pilote-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pilote-ig {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.pilote-ig svg { width: 17px; height: 17px; }
.pilote-ig:hover { color: var(--text); border-color: var(--purple); }
.pilote-more { margin-left: auto; }

.pilote-card.is-cta {
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 3vw, 36px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(163,43,176,.16), transparent 55%),
    var(--surface);
}
.pilote-card.is-cta .pilote-card-body { padding: 0; gap: 14px; }
.pilote-card.is-cta .pilote-name { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }


/* -----------------------------------------------------------------------------
   15. PARTENAIRES
   -------------------------------------------------------------------------- */
.partners-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}
.partner-item img {
  height: clamp(26px, 3.4vw, 40px);
  width: auto;
  filter: grayscale(1) brightness(1.6);
  opacity: .5;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.partner-item img:hover { filter: none; opacity: 1; }


/* -----------------------------------------------------------------------------
   16. CONTACT
   -------------------------------------------------------------------------- */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}
/* Titre plus compact : il partage la ligne avec le formulaire,
   « CONSTRUISONS » doit tenir sur une seule ligne. */
.contact-col-info .section-title {
  margin-bottom: .4em;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  overflow-wrap: normal;
  hyphens: none;
}

.contact-details {
  display: grid;
  gap: 22px;
  margin-top: clamp(28px, 4vw, 44px);
}
.contact-detail dt {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
}
.contact-detail dd {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-detail dd a:hover { color: var(--purple-bright); }
.contact-detail dd.is-pending { color: var(--text-muted); }

.social-list {
  list-style: none;
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social-link {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { color: #fff; border-color: var(--purple); background: var(--purple-soft); }

/* Formulaire */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #E0518A; }

.field-error {
  font-size: .8rem;
  color: #F08AB0;
}
.form-success {
  font-size: .88rem;
  color: var(--purple-bright);
  padding: 12px 14px;
  border: 1px solid rgba(163,43,176,.4);
  border-radius: var(--radius);
  background: var(--purple-soft);
}


/* -----------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #08080C;
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 80px);
}
.footer-inner {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.footer-tagline { font-size: .92rem; color: var(--text-muted); max-width: 40ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s var(--ease);
}
.footer-nav a:hover { color: var(--text); }
.footer-social { margin-top: 2px; }
.footer-rights {
  font-size: .78rem;
  color: var(--text-muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  width: 100%;
}


/* -----------------------------------------------------------------------------
   18. MODALE PILOTE
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.modal.is-open { opacity: 1; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, .82);
  backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transform: translateY(16px) scale(.98);
  transition: transform .28s var(--ease);
}
.modal.is-open .modal-dialog { transform: none; }
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
  background: rgba(11,11,16,.6);
  border-radius: 999px;
}
.modal-close:hover { background: var(--purple); }
.modal-content { display: grid; grid-template-columns: 0.8fr 1.2fr; }
.modal-media {
  position: relative;
  min-height: 100%;
  background: var(--surface-2);
}
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-media.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.modal-body { padding: clamp(24px, 3.5vw, 44px); }
.modal-badge {
  display: inline-block;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--purple);
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 16px;
}
.modal-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  color: var(--text);
  margin-bottom: 8px;
}
.modal-team {
  font-size: .92rem;
  color: var(--purple-bright);
  margin-bottom: 24px;
}
.modal-section + .modal-section { margin-top: 22px; }
.modal-section-label {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.modal-bio { font-size: .98rem; line-height: 1.75; color: #C7C7D2; }
.modal-palmares { list-style: none; display: grid; gap: 8px; }
.modal-palmares li {
  position: relative;
  padding-left: 20px;
  font-size: .95rem;
  color: var(--text);
}
.modal-palmares li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 1px;
}


/* -----------------------------------------------------------------------------
   19. ANIMATIONS DE RÉVÉLATION
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .timeline-rail-fill,
  .timeline-card,
  .timeline-card-number,
  .timeline-card-icon,
  .timeline-node,
  .timeline-connector,
  .team-line { transition: none; }
  /* Toutes les tappes pleinement visibles, sans décalage */
  .timeline-card,
  .timeline-card.is-active { transform: none; opacity: 1; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* -----------------------------------------------------------------------------
   20. MEDIA QUERIES
   -------------------------------------------------------------------------- */

/* ---- Desktop large : on autorise des titres encore plus grands ---- */
@media (min-width: 1600px) {
  :root { --wrap: 1400px; }
  .hero-title { font-size: clamp(8rem, 15vw, 12rem); }
}

/* ---- >= 1024px : timeline horizontale (« Le parcours du pilote ») ----
   Rail + remplissage : left fixe, largeur posée en JS (scrollWidth de la
   liste) afin de traverser correctement tout le contenu défilable.
   Cartes alternées au-dessus / en dessous du binaire, reliées par un
   connecteur vertical ; navigation par défilement natif + boutons. ---- */
@media (min-width: 1024px) {
  .timeline-list {
    display: flex;
    align-items: stretch;
    /* Assez haut pour loger carte (~280-300px) + connecteur (26px) de
       chaque côté du binaire sans que .timeline-list (overflow-y: hidden,
       imposé par overflow-x: auto) ne rogne le haut des fiches. */
    height: clamp(690px, 46vw, 720px);
    padding: 0 clamp(28px, 6vw, 90px);
    margin: 0;
    gap: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .timeline-list::-webkit-scrollbar { display: none; }

  .timeline-rail {
    left: 0; right: auto; top: 50%; bottom: auto;
    height: 1px; width: 0; /* largeur réelle posée par main.js */
    transform: translateY(-50%);
  }
  .timeline-rail-fill {
    left: 0; top: 0; bottom: 0;
    height: auto; width: 0%;
  }

  /* Largeur de fiche fixe : 300px sur les écrans étroits, 340px au-delà */
  .timeline-stop {
    position: relative;
    flex: 0 0 300px;
    padding-bottom: 0;
    scroll-snap-align: center;
  }
  .timeline-card { min-height: 280px; }
  .timeline-card-number { font-size: 104px; top: -14px; right: -8px; }
  .timeline-card-icon { width: 120px; height: 120px; }

  .timeline-node {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }

  .timeline-connector {
    display: block;
    position: absolute;
    left: 50%;
    width: 2px;
    height: 26px;
    background: rgba(255,255,255,.15);
    transform: translateX(-50%);
  }
  .timeline-node.is-active ~ .timeline-connector { background: var(--purple); }

  .timeline-card {
    position: absolute;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
  }
  .timeline-card.is-active { transform: translateX(-50%) translateY(-6px); }

  .timeline-stop:nth-child(odd) .timeline-connector { bottom: 50%; }
  .timeline-stop:nth-child(odd) .timeline-card { bottom: calc(50% + 26px); }

  .timeline-stop:nth-child(even) .timeline-connector { top: 50%; }
  .timeline-stop:nth-child(even) .timeline-card { top: calc(50% + 26px); }
}

@media (min-width: 1366px) {
  .timeline-stop { flex-basis: 340px; }
}

@media (min-width: 1024px) {

  .timeline-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(11,11,16,.65);
    color: var(--text);
    z-index: 5;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
  }
  .timeline-nav:hover { border-color: var(--purple); background: var(--purple-soft); }
  .timeline-nav svg { width: 16px; height: 16px; }
  .timeline-nav-prev { left: 0; }
  .timeline-nav-next { right: 0; }
}

/* Sous forme horizontale, le centrage (translateX -50%) doit être conservé
   même sans mouvement réduit : seul le décalage vertical actif disparaît.
   (Placé après le bloc >=1024px ci-dessus pour gagner la cascade à spécificité égale.) */
@media (prefers-reduced-motion: reduce) and (min-width: 1024px) {
  .timeline-card,
  .timeline-card.is-active { transform: translateX(-50%); }
}

/* ---- <= 1024px : nav repliée ---- */
@media (max-width: 1024px) {
  :root { --header-h: 62px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 11, 16, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .site-header.nav-open .site-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-link::after { display: none; }

  .btn-partner { display: none; }
  .btn-partner-mobile {
    display: block;
    margin-top: 14px;
    color: var(--text);
    border: 1px solid var(--purple);
    border-radius: var(--radius);
    text-align: center;
  }
  .btn-partner-mobile.nav-link { border-bottom: 1px solid var(--purple); }

  .contact-inner { grid-template-columns: 1fr; }
}

/* ---- <= 900px : grilles 2 colonnes ---- */
@media (max-width: 900px) {
  .pilotes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-content { grid-template-columns: 1fr; }
  .modal-media { min-height: 240px; max-height: 42vh; }
}

/* ---- <= 767px : équipe et publics en une colonne ---- */
@media (max-width: 767px) {
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .team-photo { aspect-ratio: 4 / 5; }

}

/* ---- 768–1023px : équipe en 2 colonnes, la 3e carte centrée ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid .team-card:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - 12px); margin-inline: auto; }
}

/* ---- <= 640px : tout en une colonne ---- */
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - var(--header-h)); }
  .hero-title { font-size: clamp(3.4rem, 22vw, 5.6rem); }
  .hero-stats { gap: 22px 40px; }

  .services-list,
  .pilotes-grid { grid-template-columns: 1fr; }
  .services-list { column-gap: 0; }

  .hero-cta .btn,
  .btn-block { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }

  .header-actions { gap: 10px; }
}

/* ---- très petits écrans (<= 360px) : garde-fous anti-overflow ---- */
@media (max-width: 360px) {
  .hero-title { font-size: 3rem; letter-spacing: -0.02em; }
  .section-title { font-size: 2.3rem; }
  .brand-suffix { display: none; }
}
