/* ============================================================================
   GARAGE FRÉDO & ANGE - version 2, identité logo
   Bleu mécanique + rouge + noir + blanc, repris du logo officiel.
   Couleurs échantillonnées directement dans le fichier du client :
     bleu outils   #002785
     rouge Garage  #C42111
     noir wordmark #010000
   Le bleu porte l'identité, le rouge ne sert que d'accent (CTA, numéros,
   détails), le blanc et le gris clair font respirer.
   ========================================================================== */

/* ---------------------------------------------------------------- TOKENS -- */
:root {
  --blue:        #002785;   /* bleu du logo */
  --blue-deep:   #001A55;   /* aplats et sections sombres */
  --blue-ink:    #001038;
  --blue-soft:   #E8ECF7;   /* voile bleuté pour les survols */
  --red:         #C42111;   /* rouge du logo */
  --red-hover:   #A6190B;
  /* Même teinte que le rouge du logo, luminosité relevée : sur bleu foncé, le
     #C42111 tombe à 2,8:1 et devient illisible. Ici on reste à 4,9:1. */
  --red-bright:  #FF4A38;
  --ink:         #0A0A0A;
  --ink-soft:    #43474F;
  --ink-faint:   #6B7078;
  --surface:     #FFFFFF;
  --bg:          #F2F2F0;
  --bg-alt:      #E9EAE7;
  --on-dark:     #FFFFFF;   /* titres sur fond bleu : blanc franc */
  --on-dark-copy:#E6EBF5;   /* textes descriptifs : très clairs, sous les titres */
  --on-dark-soft:#C6D0E6;   /* mentions tertiaires seulement */
  --line:        rgba(10, 10, 10, 0.13);
  --line-strong: rgba(10, 10, 10, 0.26);
  --line-blue:   rgba(0, 39, 133, 0.22);
  --line-dark:   rgba(255, 255, 255, 0.16);

  --r:   4px;    /* rayon unique, léger : moderne sans être arrondi partout */
  --r-sm: 2px;

  --nav-h: 76px;
  /* Barre d'appel mobile : hauteur fixe, volontairement constante (voir
     « BARRE MOBILE » plus bas). Sert aussi à réserver la place en pied de page. */
  --bar-h: 46px;
  --gut: clamp(20px, 4.4vw, 68px);
  --maxw: 1440px;

  /* Échelle verticale indexée sur la largeur : mobile compact, desktop aéré. */
  --sp-sm: clamp(20px, 2.2vw, 34px);
  --sp-md: clamp(26px, 3.6vw, 54px);
  --sp-lg: clamp(34px, 6.2vw, 100px);
  --sp-xl: clamp(40px, 7.6vw, 128px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-mech: cubic-bezier(0.33, 0, 0.12, 1); /* course mécanique, sans rebond */
}

@media (min-width: 940px) { :root { --nav-h: 96px; } }

/* Variante sombre : la page passe en bleu nuit, l'identité reste la même. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:         #F3F4F6;
    --ink-soft:    #AFB6C4;
    --ink-faint:   #8A92A2;
    --surface:     #111A33;
    --bg:          #0A1024;
    --bg-alt:      #0E1630;
    --blue-soft:   #16204A;
    --blue-deep:   #001238;
    --line:        rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.28);
    --line-blue:   rgba(120, 150, 230, 0.32);
  }
}
:root[data-theme="dark"] {
  --ink:         #F3F4F6;
  --ink-soft:    #AFB6C4;
  --ink-faint:   #8A92A2;
  --surface:     #111A33;
  --bg:          #0A1024;
  --bg-alt:      #0E1630;
  --blue-soft:   #16204A;
  --blue-deep:   #001238;
  --line:        rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --line-blue:   rgba(120, 150, 230, 0.32);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(15.5px, 0.34vw + 14.2px, 17.5px);
  line-height: 1.58;
  font-variation-settings: "wdth" 100, "wght" 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--blue); color: #FFFFFF; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--r);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ TYPOGRAPHIE --
   Le wordmark du logo est un grotesque condensé, gras, italique. Archivo en
   chasse 80 avec italique sur les mots clés reprend exactement ce geste.      */
.display {
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-variation-settings: "wdth" 80, "wght" 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.008em;
}
.display em {
  font-style: italic;
  font-variation-settings: "wdth" 80, "wght" 800;
  line-height: 1.08;              /* dégagement des jambages en italique */
  padding-bottom: 0.06em;
  display: inline-block;
}

.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.label--on-dark { color: var(--on-dark-soft); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .label { color: #7E9BE8; }
}
:root[data-theme="dark"] .label { color: #7E9BE8; }

.dot { color: var(--red); }
.hl  { color: var(--red); font-variation-settings: "wdth" 100, "wght" 600; }
.q   { color: var(--red); }
.amp { font-variation-settings: "wdth" 100, "wght" 500; font-style: italic; }

/* --------------------------------------------------------------- BOUTONS -- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 1.02rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.15s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn .arw { transition: transform 0.4s var(--ease-mech); }
.btn:hover .arw { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }

/* CTA principal : le rouge du logo, partout où il faut décrocher le téléphone. */
.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
  box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.10);
}
.btn--red:hover { background: var(--red-hover); border-color: var(--red-hover); }

.btn--outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #FFFFFF; }
.btn--outline:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--blue); }

.btn--blue-outline { background: transparent; border-color: var(--line-blue); color: var(--blue); }
.btn--blue-outline:hover { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--blue-outline { color: #8FA8EC; }
}
:root[data-theme="dark"] .btn--blue-outline { color: #8FA8EC; }

.btn--sm { padding: 0.78rem 1.1rem; font-size: 0.67rem; }
.btn--lg { padding: 1.18rem 1.9rem; font-size: 0.76rem; }

/* ------------------------------------------------------------ NAVIGATION -- */
#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  background: var(--surface);
  transition: box-shadow 0.4s var(--ease);
}
.nav.is-stuck { box-shadow: 0 6px 24px rgba(0, 26, 85, 0.10); }

/* Filet de marque sous le header : le bleu du logo, amorcé de rouge. */
.nav__stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--blue);
}
.nav__stripe::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: clamp(64px, 12vw, 132px);
  background: var(--red);
}

.nav__inner {
  width: min(100% - (var(--gut) * 2), var(--maxw));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
}

.brand { display: block; margin-right: auto; line-height: 0; }
.brand__logo {
  height: 52px;          /* +13 % : logo un cran plus présent */
  width: auto;          /* proportions strictement conservées */
  object-fit: contain;
}
@media (min-width: 940px) { .brand__logo { height: 72px; } }

.nav__links { display: none; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a {
  position: relative;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-block: 8px;
  transition: color 0.3s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-mech);
}
.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: none; }

.burger {
  width: 44px; height: 44px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--blue);
  transition: transform 0.4s var(--ease-mech), width 0.4s var(--ease-mech);
}
.burger span:nth-child(1) { width: 26px; }
.burger span:nth-child(2) { width: 18px; }
.burger[aria-expanded="true"] span:nth-child(1) { width: 26px; transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { width: 26px; transform: translateY(-4px) rotate(-45deg); }

/* Mobile et tablette : le logo est centré sur la largeur de l'écran, pas dans
   l'espace laissé par le menu. Le bouton menu reste à droite, en dehors du flux
   du logo, donc le centrage ne bouge pas d'une largeur d'écran à l'autre.
   .nav__inner est centré et symétrique : son 50 % est bien le 50 % de l'écran. */
@media (max-width: 939px) {
  .nav__inner { position: relative; }
  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .burger { margin-left: auto; position: relative; z-index: 1; }
}

@media (min-width: 940px) {
  .nav__links, .nav__cta { display: flex; }
  .burger { display: none; }
}

/* ---------------------------------------------------------------- DRAWER -- */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 89;
  background: var(--surface);
  padding: clamp(24px, 6vw, 56px) var(--gut) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  animation: drawer-in 0.4s var(--ease-mech) both;
}
.drawer[hidden] { display: none; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.drawer__links { display: grid; gap: 2px; }
.drawer__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-variation-settings: "wdth" 82, "wght" 800;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1;
}
.drawer__idx {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red);
}
.drawer__foot { display: grid; gap: 10px; }
.drawer__foot .btn { justify-content: space-between; }

/* ------------------------------------------------ EMPLACEMENTS PHOTO ------ */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background-color: var(--blue-deep);
  background-image:
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 10px);
  color: var(--on-dark);
  isolation: isolate;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.ph__inner {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 36px);
  z-index: 2;
}
.ph__id {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.ph__desc {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--on-dark-soft);
  max-width: 48ch;
}

/* ------------------------------------------------------------ 01 / HERO --- */
/* Grande image, voile bleu du logo, typo blanche : on voit l'atelier tout de
   suite, et le texte reste parfaitement lisible. */
.hero {
  position: relative;
  /* `100dvh` se recalcule en continu sur iOS pendant que Safari replie ou
     déplie sa barre d'outils : le hero changeait de hauteur à chaque
     défilement, la page entière était remise en page, et le bandeau d'appel
     fixe était redessiné au milieu de l'animation. `100svh` est la hauteur
     basse, barres visibles : même cadrage, mais figée une fois pour toutes. */
  min-height: 100vh;   /* repli pour les navigateurs sans unités dynamiques */
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-deep);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(94deg,
      rgba(0, 20, 66, 0.95) 0%,
      rgba(0, 24, 78, 0.88) 34%,
      rgba(0, 26, 85, 0.55) 66%,
      rgba(0, 26, 85, 0.30) 100%);
}
@media (max-width: 860px) {
  .hero__bg { object-position: 66% 40%; }
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(0, 20, 66, 0.72) 0%,
        rgba(0, 22, 72, 0.86) 42%,
        rgba(0, 24, 78, 0.96) 100%);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(40px, 8vh, 96px);
}
.hero__inner .wrap { display: grid; gap: clamp(18px, 2.4vw, 30px); justify-items: start; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.tick { width: 26px; height: 3px; background: var(--red); display: inline-block; }

.hero__title {
  font-size: clamp(2.5rem, 8.4vw, 6.2rem);
  color: var(--on-dark);
  max-width: 16ch;
}
.hero__title em { color: var(--on-dark); }
.hero__title .q { color: var(--red-bright); }

.hero__sub {
  max-width: 44ch;
  font-size: clamp(1.02rem, 0.5vw + 0.92rem, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.94);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bandeau de réassurance : texte blanc franc, coches rouges plus affirmées.
   Le rouge reste un accent, il ne colore que les coches. */
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(14px, 2vw, 26px);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.hero__proof span { display: inline-flex; align-items: baseline; gap: 0.5em; white-space: nowrap; }
.hero__proof i {
  color: var(--red-bright);
  font-style: normal;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Ouverture : les lignes de titre montent, le reste suit. */
.line {
  display: block;
  overflow: hidden;
  padding-top: 0.16em;
  margin-top: -0.16em;
  padding-bottom: 0.05em;
}
.line__in { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: hero-in 1.4s var(--ease-mech) both; }
  @keyframes hero-in { from { transform: scale(1.06); opacity: 0.6; } to { transform: none; opacity: 1; } }
  .hero__title .line__in { animation: line-up 1s var(--ease-mech) both; }
  .hero__title .line:nth-child(1) .line__in { animation-delay: 0.12s; }
  .hero__title .line:nth-child(2) .line__in { animation-delay: 0.20s; }
  .hero__title .line:nth-child(3) .line__in { animation-delay: 0.28s; }
  .hero__kicker { animation: soft-up 0.8s var(--ease-mech) 0.06s both; }
  .hero__sub    { animation: soft-up 0.9s var(--ease-mech) 0.40s both; }
  .hero__cta    { animation: soft-up 0.9s var(--ease-mech) 0.50s both; }
  .hero__proof  { animation: soft-up 0.9s var(--ease-mech) 0.60s both; }

  @keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
  @keyframes soft-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------- 02 / VOUS AVEZ BESOIN DE QUOI -- */
.needs {
  background: var(--surface);
  padding-block: var(--sp-lg);
}
.needs__head { display: grid; gap: 14px; margin-bottom: var(--sp-md); }
.needs__title { font-size: clamp(1.9rem, 5.6vw, 3.6rem); }
.needs__sub {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.16rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.needs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 clamp(20px, 3vw, 48px);
  border-top: 1px solid var(--line);
}
@media (min-width: 640px)  { .needs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .needs__grid { grid-template-columns: repeat(3, 1fr); } }

.need {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 4px clamp(12px, 1.4vw, 18px);
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: border-color 0.35s var(--ease);
}
.need:is(:hover, :focus-visible) { border-bottom-color: var(--blue); }

.need__num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--blue);
}
.need__title {
  font-variation-settings: "wdth" 84, "wght" 700;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 1.2vw + 0.85rem, 1.45rem);
  line-height: 1.05;
  transition: color 0.3s var(--ease);
}
.need:is(:hover, :focus-visible) .need__title { color: var(--blue); }
.need__copy {
  grid-column: 2 / -1;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 32ch;
}
.need__arw {
  align-self: center;
  grid-row: 1;
  grid-column: 3;
  font-size: 1rem;
  color: var(--ink-faint);
  transition: transform 0.45s var(--ease-mech), color 0.3s var(--ease);
}
.need:is(:hover, :focus-visible) .need__arw { transform: translateX(7px); color: var(--red); }

/* -------------------------------------------------------- 03 / MANIFESTE -- */
.manifesto {
  padding-block: var(--sp-lg);
  background: var(--bg);
}
.manifesto__grid { display: grid; gap: var(--sp-md); }
.manifesto__title {
  font-size: clamp(2rem, 5.6vw, 4rem);
  max-width: 17ch;
}
.manifesto__title em { color: var(--blue); }
.manifesto__body {
  max-width: 46ch;
  font-size: clamp(1.02rem, 0.55vw + 0.92rem, 1.24rem);
  color: var(--ink-soft);
}
@media (min-width: 900px) {
  .manifesto__grid { grid-template-columns: 1.15fr 0.85fr; align-items: end; }
  .manifesto__title { padding-left: clamp(0px, 5vw, 100px); }
  .manifesto__body { padding-bottom: 0.4rem; }
}

/* --------------------------------------------------------- 04 / SERVICES -- */
.svc {
  background: var(--bg-alt);
  padding-block: var(--sp-lg);
}
.svc__head { display: grid; gap: 14px; margin-bottom: var(--sp-md); }
.svc__title { font-size: clamp(2.4rem, 8vw, 5rem); }

.svc__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.6vw, 22px);
}
@media (min-width: 700px)  { .svc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .svc__grid { grid-template-columns: repeat(3, 1fr); } }

/* Fiche technique d'atelier : filet bleu en tête, numéro, icône mécanique,
   ligne de spécifications en bas. */
.card {
  --pad: clamp(22px, 2.2vw, 32px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.8vw, 22px);
  min-height: clamp(230px, 24vw, 330px);
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--r);
  color: inherit;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              transform 0.35s var(--ease-mech);
}
.card:is(:hover, :focus-visible) {
  border-top-color: var(--red);
  box-shadow: 0 10px 34px rgba(0, 26, 85, 0.12);
  transform: translateY(-2px);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.card__num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--blue);
  padding-top: 4px;
  transition: color 0.3s var(--ease);
}
.card:is(:hover, :focus-visible) .card__num { color: var(--red); }

.card__icon {
  display: block;
  width: clamp(52px, 5vw, 64px);
  color: var(--blue);
  transition: transform 0.5s var(--ease-mech);
}
.card__icon svg { width: 100%; height: auto; display: block; overflow: visible; }
/* Le tracé accentué de chaque icône reprend le rouge du logo. */
.card__icon .draw { stroke: var(--red); }
.card:is(:hover, :focus-visible) .card__icon { transform: translateY(-3px); }

.card__text { display: grid; gap: 10px; }
.card__title {
  font-size: clamp(1.3rem, 1.3vw + 1rem, 1.7rem);
  font-variation-settings: "wdth" 82, "wght" 800;
  line-height: 1;
  transition: color 0.3s var(--ease);
}
.card:is(:hover, :focus-visible) .card__title { color: var(--blue); }
.card__copy {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
}
.card__specs {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  padding-right: 28px;
  border-top: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.63rem;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card__arw {
  position: absolute;
  right: var(--pad);
  bottom: calc(var(--pad) - 2px);
  font-size: 1.05rem;
  color: var(--ink-faint);
  transition: transform 0.45s var(--ease-mech), color 0.3s var(--ease);
}
.card:is(:hover, :focus-visible) .card__arw { transform: translateX(6px); color: var(--red); }

/* Redessin du tracé rouge au survol. Court, mécanique, sans rebond. */
.card .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .card:is(:hover, :focus-visible) .draw { animation: icon-draw 0.75s var(--ease-mech); }
  @keyframes icon-draw {
    from { stroke-dashoffset: 1; }
    to   { stroke-dashoffset: 0; }
  }
}

.svc__more {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.svc__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--blue);
  font-variation-settings: "wdth" 100, "wght" 600;
  border-bottom: 2px solid var(--line-blue);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.svc__more a .arw { transition: transform 0.45s var(--ease-mech); }
.svc__more a:hover { color: var(--red); border-color: var(--red); }
.svc__more a:hover .arw { transform: translateX(5px); }

/* ---------------------------------------------------- 05 / POURQUOI NOUS -- */
/* Le grand aplat bleu du site : c'est là que l'identité du logo s'impose. */
.why {
  background: var(--blue-deep);
  color: var(--on-dark);
  padding-block: var(--sp-xl);
}
.why__head { display: grid; gap: 14px; margin-bottom: var(--sp-md); }
.why__title { font-size: clamp(2rem, 5.6vw, 4rem); color: var(--on-dark); }
.why__title .amp { color: var(--red-bright); }
.why__title .q { color: var(--red-bright); }

.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 clamp(24px, 3.4vw, 56px);
}
@media (min-width: 700px)  { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }

.why__item {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-top: 1px solid var(--line-dark);
}
.why__num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--red-bright);
}
.why__item-title {
  font-variation-settings: "wdth" 86, "wght" 700;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 0.7vw + 0.9rem, 1.28rem);
  line-height: 1.12;
  color: var(--on-dark);
}
.why__copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--on-dark-copy);
  max-width: 34ch;
}

.why__item--cta .why__item-title { color: var(--red-bright); }
.why__phone {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 4px;
  color: var(--on-dark);
  font-variation-settings: "wdth" 92, "wght" 700;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  transition: color 0.3s var(--ease);
}
.why__phone .arw { font-size: 0.8em; transition: transform 0.45s var(--ease-mech); }
.why__phone:hover { color: var(--red-bright); }
.why__phone:hover .arw { transform: translateX(5px); }

/* ---------------------------------------------------------- 06 / PROCESS -- */
.proc {
  background: var(--surface);
  padding-block: var(--sp-lg);
}
.proc__head { display: grid; gap: 14px; margin-bottom: var(--sp-md); }
.proc__title { font-size: clamp(2.3rem, 7vw, 4.4rem); }

.proc__steps { position: relative; display: grid; gap: clamp(26px, 3.4vw, 58px); }

.proc__rail {
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line-blue);
}
.proc__rail-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
}
/* Le trait se remplit avec le défilement et se rétracte quand on remonte. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .proc__rail-fill {
      animation: rail-fill linear both;
      animation-timeline: view();
      animation-range: entry 62% exit 22%;
    }
    @keyframes rail-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}
html.js-reveal .proc__rail-fill { transition: transform 0.9s var(--ease-mech); }
html.js-reveal .proc__steps.is-in .proc__rail-fill { transform: scaleY(1); }

.proc__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(16px, 3vw, 34px);
}
.proc__num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red);
  padding-left: 26px;
  position: relative;
  padding-top: 0.42rem;
}
.proc__num::before {
  content: "";
  position: absolute;
  left: 0; top: 0.9rem;
  width: 14px; height: 14px;
  background: var(--surface);
  border: 3px solid var(--red);
  border-radius: 50%;
}
.proc__body { display: grid; gap: 10px; max-width: 52ch; }
.proc__step-title {
  font-variation-settings: "wdth" 84, "wght" 700;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.02;
}
.proc__body p { color: var(--ink-soft); }

@media (min-width: 900px) {
  .proc__step:nth-child(3) .proc__body { padding-left: 4vw; }
  .proc__step:nth-child(4) .proc__body { padding-left: 8vw; }
  .proc__step:nth-child(5) .proc__body { padding-left: 12vw; }
}

/* -------------------------------------------------------- 07 / IMMERSIF --- */
.imm {
  position: relative;
  min-height: clamp(430px, 62vh, 700px);
  display: flex;
  align-items: flex-end;
  overflow: clip;
  background: var(--blue-deep);
}
.imm__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.imm::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(0, 18, 56, 0.93) 0%,
      rgba(0, 20, 64, 0.72) 34%,
      rgba(0, 24, 78, 0.24) 62%,
      rgba(0, 26, 85, 0.14) 100%);
}
.imm__statement {
  position: relative;
  z-index: 2;
  margin-right: auto;
  padding: clamp(36px, 6vw, 92px);
  max-width: min(100%, 720px);
}
.imm__statement h2 {
  font-size: clamp(2.1rem, 5.6vw, 4.2rem);
  color: var(--on-dark);
}
.imm__statement em { color: var(--red-bright); font-style: italic; }
.imm__statement .dot { color: var(--red-bright); }
@media (max-width: 780px) {
  .imm { min-height: clamp(400px, 58vh, 520px); }
  .imm__img { object-position: 68% 50%; }
  .imm::after {
    background:
      linear-gradient(180deg,
        rgba(0, 18, 56, 0.32) 0%,
        rgba(0, 20, 64, 0.62) 45%,
        rgba(0, 20, 66, 0.94) 100%);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .imm__statement {
      animation: imm-parallax linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes imm-parallax {
      from { transform: translateY(44px); }
      to   { transform: translateY(-44px); }
    }
  }
}

/* ------------------------------------------------------------ 08 / ABOUT -- */
.about {
  background: var(--bg);
  padding-block: var(--sp-xl);
}
.about__grid { display: grid; gap: clamp(28px, 5.4vw, 78px); }
.about__text { display: grid; gap: var(--sp-sm); align-content: start; }
.about__title { font-size: clamp(2.1rem, 6vw, 3.8rem); }
.about__body { display: grid; gap: 1.1rem; max-width: 52ch; color: var(--ink-soft); font-size: 1.03rem; }
.about__lead {
  position: relative;
  padding-left: 18px;
  font-variation-settings: "wdth" 92, "wght" 600;
  font-size: clamp(1.15rem, 1vw + 0.95rem, 1.42rem);
  line-height: 1.3;
  color: var(--ink);
}
.about__lead::before {
  content: "";
  position: absolute;
  left: 0; top: 0.34em; bottom: 0.24em;
  width: 3px;
  background: var(--red);
}
.about__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--line-blue);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.about__link .arw { transition: transform 0.45s var(--ease-mech); }
.about__link:hover { color: var(--red); border-color: var(--red); }
.about__link:hover .arw { transform: translateX(5px); }

.about__media {
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--blue-deep);
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.02fr 0.98fr; align-items: start; }
  .about__media { margin-top: clamp(20px, 6vw, 80px); }
}

/* ------------------------------------------------------------- 09 / TEAM -- */
.team {
  background: var(--surface);
  padding-block: var(--sp-xl);
}
.team__head { display: grid; gap: 14px; margin-bottom: var(--sp-md); }
.team__title { font-size: clamp(2rem, 5.6vw, 4rem); }
.team__title .amp { color: var(--red); }
.team__sub { max-width: 52ch; color: var(--ink-soft); font-size: 1.02rem; }

.team__grid { display: grid; gap: clamp(30px, 5vw, 62px); }
.team__person { margin: 0; display: grid; gap: 18px; }
.ph--portrait { aspect-ratio: 4 / 5; }

/* Les deux portraits : même cadre 4/5, même traitement que les autres photos
   du site (rayon unique, recadrage propre, jamais de déformation). */
.team__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--blue-deep);
}
.team__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.team__caption {
  display: grid;
  gap: 6px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
}
.team__caption h3 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-variation-settings: "wdth" 82, "wght" 800;
}
.team__role {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (min-width: 820px) {
  .team__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------------------------------------------------------- 10 / CONTACT -- */
.final {
  background: var(--bg);
  padding-block: var(--sp-xl);
}
.final__title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  letter-spacing: -0.015em;
}
.final__sub {
  margin-top: var(--sp-sm);
  max-width: 42ch;
  font-size: clamp(1.02rem, 0.5vw + 0.92rem, 1.22rem);
  color: var(--ink-soft);
}
.final__cta {
  margin-top: var(--sp-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.final__cta .btn { flex: 1 1 240px; justify-content: space-between; }
@media (min-width: 700px) { .final__cta .btn { flex: 0 0 auto; justify-content: flex-start; } }

.infos {
  margin-top: var(--sp-md);
  display: grid;
  gap: 0;
}
.infos__block {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(22px, 3vw, 32px) 0;
  border-top: 2px solid var(--blue);
}
.infos__main {
  font-variation-settings: "wdth" 90, "wght" 700;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.16;
}
/* Deux numéros à la suite : ils se lisent comme un bloc, pas comme deux lignes
   séparées. Le `gap: 10px` du bloc est resserré uniquement entre eux. */
.infos__main + .infos__main { margin-top: -6px; }
.infos__main a { transition: color 0.3s var(--ease); }
.infos__main a:hover { color: var(--red); }
.infos__note { font-size: 0.86rem; color: var(--ink-faint); }

/* Le samedi est une exception : il est signalé comme tel, jamais noyé. */
.infos__sat {
  position: relative;
  padding-left: 14px;
  font-variation-settings: "wdth" 96, "wght" 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
}
.infos__sat::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28em; bottom: 0.2em;
  width: 3px;
  background: var(--red);
}
.infos__sat span {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

@media (min-width: 820px) {
  .infos { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); }
  .infos__block { padding: clamp(22px, 2.4vw, 30px) 0 0; }
}

/* ------------------------------------------------------------- PIED DE PAGE */
.foot {
  background: var(--blue-deep);
  color: var(--on-dark);
  padding-top: var(--sp-lg);
  /* Place réservée à la barre d'appel mobile : constante elle aussi. */
  padding-bottom: calc(var(--sp-sm) + var(--bar-h));
}
.foot__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: var(--sp-md);
}
@media (min-width: 760px)  { .foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; } }

.foot__brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
/* Le logo est fourni sur fond blanc : on lui donne une plaque, on ne le retouche pas. */
.foot__plaque {
  display: inline-block;
  background: #FFFFFF;
  border-radius: var(--r);
  padding: 12px 16px;
}
.foot__plaque img { height: 62px; width: auto; }
.foot__tag {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--on-dark-copy);
}

.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__line { font-size: 0.95rem; line-height: 1.6; color: var(--on-dark-copy); }
.foot__star {
  display: inline-block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.foot__link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.foot__link:hover { color: var(--red-bright); border-color: var(--red-bright); }

.foot__phone {
  font-variation-settings: "wdth" 92, "wght" 800;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.1;
}
/* Les deux numéros se lisent comme un bloc : on resserre l'écart entre eux. */
.foot__phone + .foot__phone { margin-top: -8px; }
.foot__col--cta { gap: 14px; justify-items: start; }

.foot__bottom {
  display: grid;
  gap: 16px;
  padding-top: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line-dark);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.foot__links a,
.foot__legal {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.foot__links a { transition: color 0.3s var(--ease); }
.foot__links a:hover { color: var(--on-dark); }
@media (min-width: 760px) {
  .foot { padding-bottom: var(--sp-lg); }
  .foot__bottom { grid-template-columns: 1fr auto; align-items: center; }
}

/* --------------------------------------------------------- BARRE MOBILE --- */
/* Bandeau strictement statique : même hauteur et même largeur à la descente,
   à la remontée, en haut, au milieu et en bas de page. Aucun JS ne le touche.
   Attention : `env(safe-area-inset-bottom)` n'est PAS une constante sur iOS.
   Safari le fait passer de 0 à 34 px quand il replie sa barre d'outils au
   défilement : branché sur une hauteur ou un padding, il faisait respirer le
   bandeau selon le sens du scroll. On ne s'en sert donc plus du tout ici, et
   on réserve l'encoche par une valeur fixe à l'intérieur de la hauteur. */
.bar {
  position: fixed;
  z-index: 88;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  display: grid;
  /* Hauteur verrouillée aux trois bornes : aucune réflexion, aucun contenu et
     aucun changement de viewport ne peut la faire varier. Jamais de vh/dvh ici. */
  height: var(--bar-h);
  min-height: var(--bar-h);
  max-height: var(--bar-h);
  background: var(--red);
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.14);
  /* Safari iOS ne redessine pas les éléments fixes pendant qu'il déplie sa barre
     d'outils : il met à l'échelle le calque de la page, et un bandeau collé en
     bas s'étire visiblement (c'est le symptôme constaté sur iPhone 16, très net
     en remontée rapide). Isolé sur son propre calque de composition, le bandeau
     n'est plus mis à l'échelle avec la page. Transformation constante, jamais
     animée : elle ne dépend ni de la position ni du sens du défilement. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Ceinture et bretelles : rien ne peut animer ce bandeau. */
  transition: none;
  animation: none;
}
.bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  /* Hauteur en pixels, pas `100%` : elle ne dépend d'aucun parent redimensionné. */
  height: var(--bar-h);
  /* 8 px constants sous le libellé : l'indicateur d'accueil iOS ne vient
     jamais le recouvrir, et la hauteur ne bouge pas pour autant. */
  padding: 0 16px 8px;
  color: #FFFFFF;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bar__btn .arw { font-size: 0.85em; }
.bar__btn:active { background: var(--red-hover); }
@media (min-width: 760px) { .bar { display: none; } }

/* ---------------------------------------------------- RÉVÉLATIONS SCROLL -- */
/* Réversibles : liées à la progression du défilement, ou basculées par
   IntersectionObserver dans les deux sens. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 6% cover 26%;
    }
    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: none; }
    }
  }
}
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-mech);
}
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .proc__rail-fill { transform: scaleY(1); }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
