/* ============================================================
   AL Solutions Web — feuille de style commune
   Partagée par index.html et mentions-legales.html
   ============================================================ */

/* Polices auto-hébergées (Inter, Space Grotesk — SIL Open Font License 1.1).

   Générées depuis fonts.googleapis.com, sous-ensembles latin + latin-ext.

   Auto-hébergées pour éviter tout appel tiers depuis le navigateur du visiteur. */



@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('Inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('Inter-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('SpaceGrotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('SpaceGrotesk-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;
}


/* ============================================
   TOKENS — thème clair, encre bleu nuit
   ============================================ */
:root {
  /* Fonds */
  --bg:        #f7f9fc;
  --bg-2:      #edf1f7;
  --white:     #ffffff;

  /* Encre */
  --ink:       #0b1a2b;
  --ink-2:     #46586d;
  --ink-3:     #647689;   /* 4.5:1 sur le fond : lisible en petit corps */

  --line:      #e3e9f0;
  --line-2:    #cdd8e4;

  /* Marque */
  --brand:     #2d5f62;
  --brand-600: #24504f;
  --brand-400: #3f8b90;
  --brand-200: #a9d2d4;
  --brand-50:  #eaf4f4;

  --accent:    #f0c040;
  --accent-2:  #ffd76a;
  --accent-3:  #d9a927;

  /* Panneaux sombres */
  --navy:      #0e1d2e;
  --navy-2:    #14273c;
  --navy-3:    #1d3550;
  --on-navy:   #eaf1f8;
  --on-navy-2: rgba(234, 241, 248, .70);
  --on-navy-3: rgba(234, 241, 248, .45);
  --navy-line: rgba(255, 255, 255, .12);
  --navy-line-2: rgba(255, 255, 255, .24);
  --navy-surf: rgba(255, 255, 255, .06);
  --navy-surf-2: rgba(255, 255, 255, .11);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(11, 26, 43, .04), 0 6px 16px rgba(11, 26, 43, .05);
  --shadow:    0 2px 4px rgba(11, 26, 43, .04), 0 14px 36px rgba(11, 26, 43, .07);
  --shadow-lg: 0 4px 8px rgba(11, 26, 43, .04), 0 28px 70px rgba(11, 26, 43, .10);

  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

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

/* Les ancres s'arrêtent sous la barre fixe, au lieu de passer dessous.
   Vaut aussi bien pour un clic dans le menu que pour une arrivée sur #contact. */
section[id] { scroll-margin-top: 96px; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* `display` des classes de composants l'emporte sur le [hidden] du navigateur :
   on le rétablit explicitement. */
[hidden] { display: none !important; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Le logo est teal foncé : version blanche pour les panneaux sombres */
.logo-light { filter: brightness(0) invert(1); }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================
   BARRE DE PROGRESSION
   ============================================ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-400) 50%, var(--accent) 100%);
}

/* ============================================
   LOADER
   ============================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--bg);
}

.loader-logo { height: 92px; width: auto; }

.loader-bar {
  position: relative;
  width: 180px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.loader-bar__fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

/* ============================================
   AFFICHAGE DE LA PAGE
   ============================================ */
#page-content { opacity: 0; visibility: hidden; }
#page-content.is-ready { opacity: 1; visibility: visible; }
.no-gsap #page-content { opacity: 1 !important; visibility: visible !important; }
.no-gsap #loader { display: none; }

/* ============================================
   NAV — pilule flottante
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height .4s var(--ease);
}

.nav.is-scrolled { height: 72px; }

.nav__inner {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  justify-content: center;
}

/* Une seule pilule pour tout le menu. Elle ne change jamais de forme :
   elle s'élargit simplement pour laisser rentrer le logo et le bouton. */
.nav__pill {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  padding: 7px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 8px 30px rgba(11, 26, 43, .08);
  transition: box-shadow .4s var(--ease), background .4s var(--ease);
}

.nav.is-scrolled .nav__pill { box-shadow: 0 12px 38px rgba(11, 26, 43, .13); }

.nav__brand {
  flex: none;
  display: flex;
  align-items: center;
  padding-inline: 10px;
  margin-right: 16px;
}

.nav__logo { height: 40px; width: auto; transition: height .4s var(--ease); }
.nav.is-scrolled .nav__logo { height: 36px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__links a {
  position: relative;
  display: block;
  padding: 9px 17px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .25s var(--ease), background .25s var(--ease);
}

.nav__links a:hover { color: var(--ink); background: var(--bg-2); }

.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-3);
  transform: translate(-50%, 4px) scale(0);
  transition: transform .35s var(--ease);
}

.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after { transform: translate(-50%, 0) scale(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: 20px;
  padding: 9px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.nav__cta:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 26, 43, .2);
}

.nav__cta svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

.burger {
  display: none;
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

.burger:hover { background: var(--bg-2); border-color: var(--line-2); }

/* Les barres sont centrées par translate plutôt que par des décalages en dur :
   le centrage ne dépend plus ni de l'épaisseur de la bordure ni de la taille
   du bouton, et l'état croix reste sur le même axe. */
.burger span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}

.burger span:nth-child(1) { transform: translate(-50%, -50%) translateY(-5.5px); }
.burger span:nth-child(2) { transform: translate(-50%, -50%); }
.burger span:nth-child(3) { transform: translate(-50%, -50%) translateY(5.5px); }

.burger.is-active span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(.35); }
.burger.is-active span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ============================================
   BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; flex: none; }

/* Action principale : pilule bleu nuit */
.btn--accent {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(11, 26, 43, .18);
}

.btn--accent:hover {
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(45, 95, 98, .28);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line-2);
}

.btn--ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: #fff;
  transform: translateY(-2px);
}

.btn--dark {
  color: var(--navy);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(240, 192, 64, .3);
}

.btn--dark:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(240, 192, 64, .4);
}

.btn--paper-ghost {
  color: var(--on-navy);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--navy-line-2);
}

.btn--paper-ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
  transform: translateY(-2px);
}

/* ============================================
   PRIMITIVES DE SECTION
   ============================================ */
.section { position: relative; padding: 140px 0; }

.rule {
  display: block;
  height: 1px;
  margin-bottom: 60px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--line-2) 0%, transparent 85%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-400) 45%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-400);
}

.section__head { max-width: 700px; margin-bottom: 40px; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 20px 0 22px;
}

.section__sub {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--ink-2);
  line-height: 1.7;
}

.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; }

/* ---------- Titre en machine à écrire ---------- */
/* La hauteur est réservée pour la phrase la plus longue ; le texte part
   du haut du bloc, l'espace restant se trouve donc en dessous. */
.type-line { display: block; width: 100%; }
.type { white-space: pre-wrap; }

.caret {
  display: inline-block;
  width: .055em;
  height: .82em;
  margin-left: .04em;
  vertical-align: -.06em;
  border-radius: 2px;
  background: var(--brand-400);
  opacity: 0;
}

.caret.is-on { animation: caretBlink 1.05s steps(1, end) infinite; }

@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.grad {
  background: linear-gradient(95deg, #1f4d50 0%, #3f8b90 42%, #a8781a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   HERO — fond aurora très pâle
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 84px) 0 104px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb { position: absolute; border-radius: 50%; filter: blur(90px); }

.orb--1 {
  width: 720px; height: 720px;
  top: -220px; right: -160px;
  background: radial-gradient(circle at 40% 40%, rgba(63, 139, 144, .28), rgba(63, 139, 144, 0) 70%);
}

.orb--2 {
  width: 620px; height: 620px;
  bottom: -200px; left: -180px;
  background: radial-gradient(circle at 50% 50%, rgba(240, 192, 64, .26), rgba(240, 192, 64, 0) 70%);
}

.orb--3 {
  width: 480px; height: 480px;
  top: 26%; left: 44%;
  background: radial-gradient(circle at 50% 50%, rgba(169, 210, 212, .34), rgba(169, 210, 212, 0) 70%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 26, 43, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 26, 43, .05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 92% 75% at 50% 42%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 92% 75% at 50% 42%, #000 35%, transparent 100%);
}

/* ---------- Croquis du logo en filigrane ---------- */
/* Contours vectorisés depuis assets/Logo.png (marching squares + ajustement
   de Bézier par moindres carrés) : ils se dessinent en boucle en fond de section. */
.hero__sketch {
  position: absolute;
  top: 54%;
  right: 2%;
  width: min(40vw, 545px);
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(45, 95, 98, .22);
  stroke-width: 1.1;
  stroke-linejoin: round;
  stroke-linecap: round;
  overflow: visible;
}

.hero__inner { position: relative; z-index: 1; max-width: 960px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 13px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(11, 26, 43, .05);
  margin-bottom: 34px;
}

.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 0 4px rgba(63, 139, 144, .16);
}

.hero__title {
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 8vw, 6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.055em;
  margin-bottom: 34px;
}

.hero__sub {
  max-width: 580px;
  font-size: clamp(1.06rem, 1.7vw, 1.26rem);
  color: var(--ink-2);
  line-height: 1.62;
  margin-bottom: 46px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 46px;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--line-2), transparent);
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--brand-400);
  animation: scrollDot 2.2s var(--ease) infinite;
}

@keyframes scrollDot { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ============================================
   SERVICES
   ============================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}

/* Halo qui monte du coin haut-gauche au survol */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(63, 139, 144, .10), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}

.card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-lg); }
.card:hover::after { opacity: 1; }

.card > * { position: relative; z-index: 1; }

/* Numéro fantôme, en filigrane dans le coin */
.card__num {
  position: absolute;
  top: 18px;
  right: 26px;
  z-index: 0;
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  color: rgba(11, 26, 43, .055);
  transition: color .45s var(--ease), transform .55s var(--ease);
}

.card:hover .card__num {
  color: rgba(63, 139, 144, .14);
  transform: translateY(-4px);
}

.card__icon {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--brand-50);
  border: 1px solid var(--line);
  margin-bottom: 26px;
  transition: background .45s var(--ease), border-color .45s var(--ease),
              transform .55s var(--ease), box-shadow .45s var(--ease);
}

.card:hover .card__icon {
  transform: translateY(-3px) rotate(-6deg);
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 12px 26px rgba(11, 26, 43, .22);
}

.card__icon svg {
  width: 25px;
  height: 25px;
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .45s var(--ease), transform .55s var(--ease);
}

.card:hover .card__icon svg { stroke: var(--accent); transform: rotate(6deg); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.card p { color: var(--ink-2); font-size: .95rem; line-height: 1.7; margin-bottom: 22px; }

/* Mots-clés en bas de carte */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-bottom: 32px;
}

.card__tags li {
  padding: 5px 12px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}

.card:hover .card__tags li {
  color: var(--brand);
  border-color: var(--brand-200);
  background: var(--brand-50);
}

/* Filet d'accent qui se déploie au survol */
.card__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-400) 55%, var(--accent) 100%);
  transition: transform .5s var(--ease);
}

.card:hover .card__line { transform: scaleX(1); }

/* ============================================
   WORKFLOW HORIZONTAL — carte bleu nuit
   ============================================ */
.wf-intro { max-width: 640px; margin: 104px 0 34px; }

.wf-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -.035em;
  margin-bottom: 12px;
}

.wf-intro p { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }

.wf {
  padding: 24px 26px 28px;
  color: var(--on-navy);
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(63, 139, 144, .28), transparent 62%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.wf__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--navy-line);
}

.wf__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(240, 192, 64, .5);
}

.wf__head-title {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--on-navy-2);
}

.wf__head-tag {
  margin-left: auto;
  padding: 3px 10px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-navy-3);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
}

.wf__scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.wf__scroll::-webkit-scrollbar { height: 6px; }
.wf__scroll::-webkit-scrollbar-thumb { background: var(--navy-line-2); border-radius: 999px; }

.wf__rail {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  padding-bottom: 4px;
}

.wf__node {
  position: relative;
  flex: none;
  width: 140px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 14px 15px;
  background: var(--navy-surf);
  border: 1px solid var(--navy-line);
  border-radius: 16px;
}

.wf__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-surf-2);
  border: 1px solid var(--navy-line);
  margin-bottom: 6px;
}

.wf__icon svg {
  width: 17px; height: 17px;
  stroke: var(--brand-200);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wf__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wf__title {
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  color: var(--on-navy);
}

.wf__meta { font-size: .72rem; line-height: 1.4; color: var(--on-navy-3); }

.wf__amount {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.wf__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
}

.wf__check svg { width: 11px; height: 11px; stroke: var(--navy); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.wf__list { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 5px; }

.wf__chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .71rem;
  color: var(--on-navy-2);
}

.wf__chip::before {
  content: '';
  width: 5px; height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-200);
}

.wf__link {
  flex: none;
  align-self: center;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-200), rgba(169, 210, 212, .3));
}

/* Hauteur et positions calculées en JS d'après les branches réelles */
.wf__fork {
  position: relative;
  flex: none;
  align-self: center;
  width: 42px;
  height: var(--forkH, 94px);
}

.wf__fork span { position: absolute; background: var(--brand-200); border-radius: 2px; }

.wf__fork-stem { left: 0; top: calc(50% - 1px); width: 18px; height: 2px; transform-origin: 0 50%; }
.wf__fork-bar  { left: 17px; top: 1px; width: 2px; height: var(--barH, 92px); transform-origin: 50% 50%; }
.wf__fork-arm  { left: 17px; width: 25px; height: 2px; transform-origin: 0 50%; }
.wf__fork-arm--up   { top: 0; }
.wf__fork-arm--down { top: var(--armDown, 92px); }

.wf__branches { flex: none; align-self: center; display: flex; flex-direction: column; gap: 16px; }

.wf__node--sm {
  width: 196px;
  min-height: 76px;
  justify-content: center;
  padding: 14px 16px;
}

.wf__node--ok { border-color: rgba(169, 210, 212, .35); }
.wf__node--warn { border-style: dashed; border-color: rgba(240, 192, 64, .4); }
.wf__node--warn .wf__title { color: var(--accent-2); }

.wf__node.is-live {
  background: var(--navy-surf-2);
  border-color: rgba(169, 210, 212, .5);
  box-shadow: 0 0 0 1px rgba(169, 210, 212, .14), 0 12px 30px rgba(3, 10, 18, .4);
}

.wf__node.is-live .wf__icon {
  background: rgba(169, 210, 212, .2);
  border-color: rgba(169, 210, 212, .45);
}

.wf__node--warn.is-live {
  border-color: rgba(240, 192, 64, .6);
  box-shadow: 0 0 0 1px rgba(240, 192, 64, .16), 0 12px 30px rgba(3, 10, 18, .4);
}

.wf__hint { display: none; margin-top: 16px; font-size: .74rem; color: var(--on-navy-3); }

@media (max-width: 1180px) {
  .wf__hint { display: block; }

  .wf__scroll {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .wf__rail { padding-inline: 2px; }
}

/* ============================================
   BLOC TARIF
   ============================================ */
.offer {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  margin-top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.offer__main { padding: 46px 48px 48px; }

.offer__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin: 18px 0 18px;
}

.offer__text {
  max-width: 560px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.offer__list { display: grid; gap: 12px; }

.offer__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.offer__list svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  stroke: var(--brand);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 40px 48px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(240, 192, 64, .16), transparent 62%),
    linear-gradient(180deg, var(--brand-50) 0%, #ffffff 100%);
}

.offer__label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.offer__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
}

.offer__price span { font-size: .52em; font-weight: 600; color: var(--brand); }

.offer__note {
  font-size: .84rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 14px 0 8px;
}

/* Mention obligatoire en franchise en base de TVA */
.offer__vat {
  font-size: .78rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 24px;
}

.offer__side .btn { width: 100%; }

/* ============================================
   BANDE SOMBRE — ASSONAC
   ============================================ */
.showcase {
  position: relative;
  color: var(--on-navy);
  padding: 140px 0 128px;
  background:
    radial-gradient(ellipse 65% 55% at 12% 0%, rgba(63, 139, 144, .34), transparent 62%),
    radial-gradient(ellipse 55% 50% at 92% 100%, rgba(240, 192, 64, .13), transparent 62%),
    linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 100%);
  clip-path: inset(0% 0% 0% 0% round 0px);
}

.showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
}

.showcase > * { position: relative; z-index: 1; }

.showcase .rule { background: linear-gradient(90deg, var(--navy-line-2) 0%, transparent 85%); }

.showcase .eyebrow {
  background: linear-gradient(90deg, var(--brand-200) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase .eyebrow::before { background: var(--brand-200); }

.showcase__head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 76px;
}

.showcase__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 20px 0 22px;
}

.showcase__text {
  color: var(--on-navy-2);
  font-size: 1.04rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

/* Le logo Assonac tient lieu de titre de section */
.showcase__logo {
  height: clamp(44px, 5.4vw, 70px);
  width: auto;
  filter: brightness(0) invert(1);
}

.tags { display: flex; flex-wrap: wrap; gap: 9px; }

.tag {
  padding: 8px 16px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--on-navy-2);
  background: var(--navy-surf);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.tag:hover { transform: translateY(-2px); border-color: var(--navy-line-2); color: var(--on-navy); }

/* ---------- Écran de bureau ---------- */
.monitor { max-width: 1000px; margin-inline: auto; }

/* Châssis blanc facon tout-en-un : fines bordures et menton sous la dalle */
.monitor__screen {
  position: relative;
  padding: 11px 11px 44px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 58%, #e7ebf0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(11, 26, 43, .06),
    0 0 0 1px rgba(11, 26, 43, .08),
    0 44px 90px rgba(2, 8, 15, .5);
}

.monitor__inner {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #0a1725;
  box-shadow: 0 0 0 1px rgba(11, 26, 43, .16);
}

.monitor__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f2f4f7 0%, #e8ebef 100%);
  border-bottom: 1px solid #d7dce2;
}

.monitor__dot { width: 11px; height: 11px; border-radius: 50%; }
.monitor__dot:nth-child(1) { background: #ff5f57; }
.monitor__dot:nth-child(2) { background: #febc2e; }
.monitor__dot:nth-child(3) { background: #28c840; }

.monitor__url {
  margin-left: 12px;
  padding: 4px 16px;
  font-size: .72rem;
  color: #6b7684;
  background: #ffffff;
  border: 1px solid #dde2e8;
  border-radius: 999px;
}

.monitor__glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 6px;
  background: linear-gradient(122deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

.monitor__sweep {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg,
    transparent 38%,
    rgba(255, 255, 255, .22) 48%,
    rgba(255, 255, 255, .38) 51%,
    rgba(255, 255, 255, .22) 54%,
    transparent 64%);
}

/* Plaque verticale, vue de face */
.monitor__neck {
  width: 84px;
  height: 66px;
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg,
    #94a0ad 0%, #c9d2da 18%, #e2e8ee 40%,
    #cad2da 62%, #a9b4c0 84%, #8d99a7 100%);
  box-shadow:
    inset 0 1px 0 rgba(11, 26, 43, .10),
    inset 0 -1px 0 rgba(11, 26, 43, .16);
}

/* Socle plat */
.monitor__base {
  width: 220px;
  height: 9px;
  margin: 0 auto;
  border-radius: 3px 3px 9px 9px;
  background: linear-gradient(180deg, #e0e6ec 0%, #b9c2cc 48%, #8f9baa 100%);
  box-shadow: 0 20px 34px rgba(2, 8, 15, .55);
}

/* ---------- Carrousel ---------- */
.carousel__track {
  position: relative;
  aspect-ratio: 1436 / 811;
  background: #0a1725;
}

.carousel__track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}

.carousel__track img.is-active { opacity: 1; transform: scale(1); }

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 23, 37, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.carousel__btn:hover { background: rgba(10, 23, 37, .9); transform: translateY(-50%) scale(1.07); }
.carousel__btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn--prev { left: 18px; }
.carousel__btn--next { right: 18px; }

.carousel__dots { display: flex; justify-content: center; gap: 8px; padding-top: 34px; }

.carousel__dot {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--navy-line-2);
  transition: background .3s var(--ease), width .3s var(--ease);
}

.carousel__dot.is-active { background: var(--accent); width: 42px; }

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

.infos { display: flex; flex-direction: column; gap: 12px; }

.info {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.info:hover { transform: translateX(4px); border-color: var(--brand-200); box-shadow: var(--shadow); }

.info__icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-50);
  border: 1px solid var(--line);
}

.info__icon svg {
  width: 20px; height: 20px;
  stroke: var(--brand);
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}

.info__value { display: block; font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em; }

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 46px;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--on-navy);
  background:
    radial-gradient(ellipse 70% 60% at 8% 0%, rgba(63, 139, 144, .35), transparent 62%),
    linear-gradient(155deg, var(--navy-2) 0%, var(--navy) 100%);
  box-shadow: var(--shadow-lg);
}

.cta__glow {
  position: absolute;
  width: 340px; height: 340px;
  right: -120px; bottom: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 192, 64, .22), transparent 70%);
  pointer-events: none;
}

.cta > *:not(.cta__glow) { position: relative; z-index: 1; }

.cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 16px;
}

.cta p {
  max-width: 400px;
  color: var(--on-navy-2);
  line-height: 1.7;
  margin-bottom: 34px;
}

.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: 84px 0 34px;
  color: var(--on-navy);
  background:
    radial-gradient(ellipse 60% 70% at 8% 0%, rgba(63, 139, 144, .28), transparent 62%),
    radial-gradient(ellipse 50% 60% at 95% 100%, rgba(240, 192, 64, .10), transparent 62%),
    linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 100%);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
}

.footer > * { position: relative; z-index: 1; }

.footer__top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 52px;
}

.footer__logo { height: 48px; width: auto; }

.footer__tag {
  max-width: 330px;
  margin-top: 22px;
  font-size: .96rem;
  line-height: 1.7;
  color: var(--on-navy-2);
}

.footer__col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-navy-3);
  margin-bottom: 20px;
}

.footer__list { display: grid; gap: 12px; }

.footer__list li { font-size: .95rem; color: var(--on-navy-2); line-height: 1.4; }
.footer__list a { transition: color .25s var(--ease); }
.footer__list a:hover { color: var(--accent); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--navy-line);
}

.footer__copy { font-size: .85rem; color: var(--on-navy-3); }

.footer__legal {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--navy-line);
  color: var(--on-navy-2);
  transition: color .25s var(--ease);
}

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

.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--on-navy-2);
  border: 1px solid var(--navy-line);
  border-radius: 999px;
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background .25s var(--ease), transform .25s var(--ease);
}

.footer__up:hover {
  color: var(--navy);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer__up svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .offer { grid-template-columns: 1fr; margin-top: 76px; }
  .offer__main { padding: 36px 30px 34px; }
  .offer__side { padding: 34px 30px 36px; border-left: 0; border-top: 1px solid var(--line); }

  .section { padding: 0; }
  .showcase {
    padding: 0 0 96px;
    margin: 50px 0;
  }
  .services__grid { grid-template-columns: 1fr; }
  .showcase__head { grid-template-columns: 1fr; gap: 44px; }
  .contact__grid { grid-template-columns: 1fr; }
  .rule { margin-bottom: 46px; }
  .wf-intro { margin-top: 80px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 44px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .nav__inner { padding-inline: 20px; }
  .burger { display: block; }
  .nav__cta {display: none; }

  .nav__pill {
    position: relative;
    width: 100%;
    justify-content: space-between;
    padding: 8px 8px 8px 4px;
  }

  .nav__brand { margin-right: 0; }
  .nav__menu { display: contents; }

  /* Le backdrop-filter de la pilule en fait le bloc conteneur de ses
     descendants positionnés : le menu se cale donc sur la pilule
     (position: absolute) et non sur la fenêtre. */
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s var(--ease), opacity .3s var(--ease), visibility .3s;
  }

  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav__links a { padding: 14px 16px; font-size: 1rem; border-radius: var(--r-sm); }
  /* Pas de pastille dans le menu déroulant : la section courante se lit à sa
     couleur d'encre et à son fond. */
  .nav__links a::after { display: none; }
  .nav__links a.is-current { background: var(--bg-2); }

  .hero { min-height: auto; padding: calc(var(--nav-h) + 56px) 0 92px; }
  .hero__scroll { display: none; }

  /* En mobile le croquis passe derrière le texte, plus grand et plus discret */
  .hero__sketch {
    top: 46%;
    right: -22%;
    width: 92vw;
    stroke: rgba(45, 95, 98, .13);
  }
  .hero__actions .btn { flex: 1 1 auto; }

  .section__head { margin-bottom: 20px; }
  .card { padding: 30px 26px 32px; }
  .cta {
    padding: 40px 28px;
    margin-bottom: 20px;
  }
  .wf { padding: 20px 18px 22px; border-radius: var(--r-lg); }

  /* ---------- Workflow : rail vertical ---------- */
  .wf__scroll {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .wf__rail {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    padding-inline: 0;
  }

  .wf__node {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
  }

  .wf__icon { margin-bottom: 0; }
  .wf__text { flex: 1; }
  .wf__check { position: static; margin-left: auto; }

  .wf__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 0;
    padding-top: 6px;
  }

  .wf__amount { margin-top: 0; padding-top: 4px; }

  /* Liaisons verticales */
  .wf__link {
    align-self: center;
    width: 2px;
    height: 20px;
    transform-origin: 50% 0;
    background: linear-gradient(180deg, var(--brand-200), rgba(169, 210, 212, .3));
  }

  /* Embranchement pivoté d'un quart de tour */
  .wf__fork { width: 100%; height: 48px; }

  .wf__fork-stem {
    left: calc(50% - 1px);
    top: 0;
    width: 2px;
    height: 20px;
    transform-origin: 50% 0;
  }

  .wf__fork-bar {
    left: calc(50% - var(--barW, 120px) / 2);
    top: 19px;
    width: var(--barW, 120px);
    height: 2px;
    transform-origin: 50% 50%;
  }

  .wf__fork-arm {
    top: 19px;
    width: 2px;
    height: 29px;
    transform-origin: 50% 0;
  }

  .wf__fork-arm--up { left: calc(50% - var(--barW, 120px) / 2 - 1px); }
  .wf__fork-arm--down { left: calc(50% + var(--barW, 120px) / 2 - 1px); top: 19px; }

  /* Les deux issues côte à côte sous l'embranchement */
  .wf__branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }

  .wf__node--sm {
    width: auto;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    padding: 14px;
  }

  .wf__hint { display: none; }

  .monitor__screen { padding: 7px 7px 26px; border-radius: 14px; }
  .monitor__neck { width: 54px; height: 42px; }
  .monitor__base { width: 138px; height: 7px; }
  .carousel__btn { width: 38px; height: 38px; }
  .carousel__btn--prev { left: 9px; }
  .carousel__btn--next { right: 9px; }
  .monitor__url { display: none; }

  .footer { padding: 64px 0 30px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rule { transform: scaleX(1); }
}

/* ============================================
   PAGES DE CONTENU (mentions légales)
   ============================================ */
.container--narrow { max-width: 880px; }

/* ---------- Barre supérieure des pages secondaires ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(247, 249, 252, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__logo { height: 42px; width: auto; }

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}

.topbar__back:hover { background: var(--brand); transform: translateY(-1px); }
.topbar__back svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---------- En-tête de page ---------- */
.page-head { padding: 88px 0 56px; }

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.05em;
  margin: 20px 0 18px;
}

.page-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 620px; line-height: 1.7; }
.page-head time { display: block; margin-top: 18px; font-size: .875rem; color: var(--ink-3); }

/* ---------- Contenu rédactionnel ---------- */
.prose { padding-bottom: 110px; }
.prose section + section { margin-top: 20px; }

.doc-card {
  padding: 34px 36px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
}

.doc-card h2 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.doc-card h3 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 26px 0 10px;
}

.doc-card p { color: var(--ink-2); margin-bottom: 14px; }
.doc-card p:last-child { margin-bottom: 0; }
.doc-card a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.doc-card a:hover { color: var(--accent-3); }

/* Paires libellé / valeur */
.facts { display: grid; grid-template-columns: 200px 1fr; gap: 2px 24px; }

.facts dt {
  padding: 11px 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

.facts dd {
  padding: 11px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.facts dt:first-of-type, .facts dd:first-of-type { border-top: 0; }
.facts .num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.note {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--brand-50);
  border-radius: var(--r);
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.note svg {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  stroke: var(--brand);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bullets { display: grid; gap: 11px; margin: 4px 0 0; }

.bullets li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }

.bullets svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  stroke: var(--brand);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ============================================
   ASSISTANT DE CADRAGE (definir-mon-projet)
   ============================================ */
.brief { padding-bottom: 110px; }

.brief__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.brief__main {
  padding: 32px 34px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Progression ---------- */
.brief__progress { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }

.brief__bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}

.brief__bar-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-400) 55%, var(--accent) 100%);
  transition: width .45s var(--ease);
}

.brief__count { font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.brief__count b { color: var(--ink); font-weight: 600; }

/* ---------- Étapes ---------- */
.step { display: none; border: 0; padding: 0; margin: 0; }
.step.is-active { display: block; animation: stepIn .4s var(--ease) both; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.step__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  padding: 0;
  margin-bottom: 10px;
}

.step__hint { color: var(--ink-2); font-size: .95rem; line-height: 1.6; margin-bottom: 24px; }

.step__label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 26px 0 12px;
}

.step__label:first-of-type { margin-top: 0; }

/* ---------- Options ---------- */
.opts { display: grid; gap: 10px; }
.opts--row { grid-template-columns: repeat(3, 1fr); }

.opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}

.opt:hover { border-color: var(--line-2); transform: translateY(-1px); }

.opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.opt__box {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.opt input[type="checkbox"] ~ .opt__box { border-radius: 6px; }

.opt__box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: #fff;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .25s var(--ease);
}

.opt input:checked ~ .opt__box { border-color: var(--brand); background: var(--brand); }
.opt input:checked ~ .opt__box::after { transform: translate(-50%, -50%) scale(1); }
.opt input:focus-visible ~ .opt__box { outline: 2px solid var(--brand); outline-offset: 3px; }

.opt:has(input:checked) { border-color: var(--brand-200); background: var(--brand-50); }

.opt__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.opt__text b { font-size: .96rem; font-weight: 600; letter-spacing: -.01em; }
.opt__text em { font-style: normal; font-size: .82rem; color: var(--ink-3); line-height: 1.45; }

.opt--sm { padding: 13px 15px; }
.opt--sm .opt__text b { font-size: .9rem; }

/* ---------- Champs ---------- */
.field { display: block; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field__label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.field__label .req { color: var(--accent-3); }

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  resize: vertical;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 95, 98, .12);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c0392b; }

.brief__error {
  margin-top: 4px;
  font-size: .88rem;
  color: #c0392b;
}

/* ---------- Navigation ---------- */
.brief__nav {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.brief__nav .btn { padding: 13px 24px; }
.brief__nav [data-next], .brief__nav [data-send] { margin-left: auto; }

/* ---------- Récapitulatif ---------- */
.recap {
  position: sticky;
  top: 96px;
  padding: 26px 26px 24px;
  color: var(--on-navy);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(63, 139, 144, .28), transparent 62%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.recap__title {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-navy-3);
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--navy-line);
}

.recap__empty { font-size: .9rem; line-height: 1.6; color: var(--on-navy-3); margin: 0; }

.recap__list { display: grid; gap: 15px; margin: 0; }

.recap__list dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-navy-3);
  margin-bottom: 4px;
}

.recap__list dd { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--on-navy); }
.recap__list dd + dt { margin-top: 11px; }

.recap__actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--navy-line); }

.recap__actions .btn {
  width: 100%;
  padding: 12px 18px;
  font-size: .88rem;
  color: var(--on-navy);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--navy-line-2);
}

.recap__actions .btn:hover { background: rgba(255, 255, 255, .14); color: var(--on-navy); }

.recap__note {
  margin-top: 14px;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--on-navy-3);
}

.recap__note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .brief__grid { grid-template-columns: 1fr; }
  .recap { position: static; }
  .brief__main { padding: 26px 22px 24px; }
  .opts--row { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .brief__nav { flex-wrap: wrap; }
  .brief__nav .btn { flex: 1 1 auto; }
}

@media (max-width: 720px) {
  .page-head { padding: 64px 0 44px; }
  .prose { padding-bottom: 80px; }
  .doc-card { padding: 26px 22px 28px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dt { padding-bottom: 0; border-top: 1px solid var(--line); }
  .facts dd { padding-top: 4px; border-top: 0; }
  .facts dd:first-of-type { padding-top: 4px; }
}

