/* ============================================================
   GO PROJECT — Oujda, Région de l'Oriental, Maroc
   Système de design "Tech Forward / Moderniste"
   Énergie · Menuiserie · Digital
   HTML5 / CSS3 / Vanilla JS — aucun framework
   ============================================================ */

/* ------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Palette de marque — stricte */
  --violet:        #9582ff;
  --indigo:        #433077;
  --bleu:          #c0dbf8;
  --noir:          #000b14;
  --lime:          #d4ff3d;

  /* Fond de référence en RVB — bascule en mode clair pour les surfaces
     vitrées (en-tête, menus, panneaux) qui se composent en rgba(). */
  --bg-rgb:        0, 11, 20;
  /* Halo violet ambiant (hero, formulaires) — s'adoucit en mode clair. */
  --glow-rgb:      67, 48, 119;
  /* Accent lime en RVB (bordures, halos, états valides) — passe au violet
     en mode clair, où le vert ne colle pas à l'identité. */
  --lime-rgb:      212, 255, 61;

  /* Surfaces dérivées (teintées, jamais grises) */
  --surface-0:     #000b14;
  --surface-1:     #04101f;
  --surface-2:     #08172b;
  --surface-3:     #0d1e37;

  /* Texte */
  --text-hi:       #eef4fd;
  --text-mid:      #a9bdd6;
  --text-low:      #6b82a0;

  /* Lignes */
  --line:          rgba(192, 219, 248, 0.12);
  --line-strong:   rgba(192, 219, 248, 0.24);
  --line-violet:   rgba(149, 130, 255, 0.38);

  /* Rôles sémantiques */
  --accent:        var(--lime);        /* interactif uniquement */
  --brand:         var(--violet);
  --danger:        #ff5f6d;

  /* Typographie */
  --font-display:  "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body:     "DejaVu Sans", "Verdana", "Segoe UI", system-ui, sans-serif;

  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    clamp(1.25rem, 0.9rem + 1.1vw, 1.75rem);
  --fs-xl:    clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --fs-2xl:   clamp(2.25rem, 1.3rem + 4vw, 4.5rem);
  --fs-3xl:   clamp(2.75rem, 1.1rem + 7vw, 7.5rem);

  /* Espacement */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  16px;
  --space-4:  24px;
  --space-5:  32px;
  --space-6:  48px;
  --space-7:  64px;
  --space-8:  96px;
  --space-9:  128px;

  /* Géométrie */
  --radius:     2px;
  --chevron:    22px;
  --container:  1340px;
  --gutter:     clamp(20px, 5vw, 72px);
  --header-h:   88px;

  /* Mouvement */
  --ease-out:    cubic-bezier(0.16, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-mask:   cubic-bezier(0.76, 0, 0.24, 1);
  /* Une animation d'interface reste sous 300 ms : au-delà, elle se fait
     sentir comme une latence plutôt que comme une réponse. */
  --t-fast:      120ms;
  --t-base:      200ms;
  --t-slow:      280ms;
}

/* ------------------------------------------------------------
   2. RESET
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;

  /* La jauge de lecture en haut de page indique déjà la position : la
     barre native du navigateur fait double emploi et coupe le bord
     droit des sections pleine largeur.

     Masquée pour la fenêtre seulement. Les conteneurs qui défilent
     horizontalement — tableau comparatif, listes de l'administration —
     gardent la leur : là, elle est le seul indice qu'il reste du
     contenu à droite. La molette, le clavier et le tactile ne sont pas
     affectés. */
  scrollbar-width: none;              /* Firefox */
  -ms-overflow-style: none;           /* anciens Edge */
}
html::-webkit-scrollbar { width: 0; height: 0; }   /* Chrome, Safari */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-mid);
  background: var(--noir);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: var(--radius);
}
::selection { background: var(--lime); color: var(--noir); }

/* ------------------------------------------------------------
   3. STRUCTURE
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 10vw, 150px); position: relative; }
.section--tight { padding-block: clamp(52px, 7vw, 100px); }

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-3);
  z-index: 300;
  padding: var(--space-3) var(--space-4);
  background: var(--lime);
  color: var(--noir);
  font-family: var(--font-display);
  font-weight: 600;
  transition: top var(--t-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); }

/* La trame millimétrée est réservée aux surfaces qui mesurent réellement
   quelque chose : le schéma de flux et le plan de situation. Ailleurs
   elle n'était qu'un décor. */

/* Forme signature : chevron découpé en diagonale */
.chevron-cut {
  clip-path: polygon(
    0 0, calc(100% - var(--chevron)) 0, 100% var(--chevron),
    100% 100%, var(--chevron) 100%, 0 calc(100% - var(--chevron))
  );
}

/* Grain — texture de tirage argentique */
/* Texture fixe : un grain animé en continu coûte du GPU en permanence
   pour un effet que personne ne remarque consciemment. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Jauge de progression de lecture */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--violet), var(--lime));
  will-change: transform;
}
/* ------------------------------------------------------------
   4. PRÉLOADER
   Affiché une seule fois par session (sessionStorage) et sauté
   entièrement en `prefers-reduced-motion`.
   ------------------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: var(--noir);
  clip-path: inset(0 0 0 0);
  transition: clip-path 900ms var(--ease-mask), visibility 900ms;
}
.preloader.is-done {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
/* Sans JavaScript, le voile ne doit jamais masquer la page */
.no-js .preloader { display: none; }

.preloader__inner { display: grid; justify-items: center; gap: var(--space-5); }
.preloader__mark {
  width: 72px;
  height: 72px;
  animation: pre-spin 1.6s var(--ease-in-out) infinite;
}
@keyframes pre-spin {
  0%, 100% { transform: rotate(0deg)   scale(1); }
  50%      { transform: rotate(-90deg) scale(0.88); }
}
.preloader__bar {
  width: min(240px, 50vw);
  height: 2px;
  background: var(--line-strong);
  overflow: hidden;
}
/* scaleX plutôt que width : la barre est repeinte à chaque frame. */
.preloader__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
}
.preloader__count {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--text-low);
  font-variant-numeric: tabular-nums;
}

/* Voile de transition entre pages.
   Il monte depuis le bas au départ, puis se retire vers le haut à
   l'arrivée : la continuité du geste fait lire les deux pages comme
   un même espace. Neutralisé en `prefers-reduced-motion`. */
.veil {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: var(--indigo);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  visibility: hidden;
}
.veil.is-in {
  visibility: visible;
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 460ms var(--ease-mask);
}
.veil.is-out {
  visibility: visible;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 460ms var(--ease-mask);
}

/* ------------------------------------------------------------
   5. TYPOGRAPHIE
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  /* Aux grandes tailles d'affichage, un mot français un peu long
     dépasse sa colonne au lieu de se couper — et pousse toute la page
     avec lui. « systématiquement » réclamait 339 px dans une colonne
     de 300, d'où 19 px de débordement horizontal sur l'accueil à
     340 px. `break-word` ne coupe qu'en dernier recours, quand le mot
     ne peut tenir autrement. */
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-3xl); font-weight: 700; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: var(--fs-md); letter-spacing: -0.01em; line-height: 1.35; }

p { max-width: 68ch; }
.section-head { max-width: 780px; margin-bottom: var(--space-7); }
.section-head > * + * { margin-top: var(--space-3); }

.text-accent { color: var(--lime); }
.text-brand  { color: var(--violet); }
.is-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet);
}

.index-num {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-low);
  font-variant-numeric: tabular-nums;
}

/* Révélation typographique mot à mot */
.word {
  display: inline-block;
  overflow: hidden;          /* masque le mot pendant qu'il monte */
  vertical-align: top;
  /* Le masque doit laisser passer les jambages. Mesurée sur Poppins,
     la descente de « exigence. » atteint 0,28 em ; à 0,14 em il en
     manquait 10 px et le bas des « p », « g » et « q » des grands
     titres était tranché. La marge négative annule l'effet de ce
     rembourrage sur la mise en page. */
  padding-bottom: 0.3em;
  margin-bottom: -0.3em;

  /* Et à droite, pour la même raison, dans l'autre sens.
     `letter-spacing` s'applique aussi *après* la dernière lettre : la
     boîte du mot est donc plus étroite que son encre de la valeur de
     l'interlettrage. Sur les grands titres il vaut −0,035 em, soit
     −4,2 px à 120 px, et le masque tranchait le flanc droit de la
     dernière lettre. Mesuré sur « Trois pôles. Une exigence. » :
     « Une » débordait de 2,19 px, « exigence. » de 0,27, « pôles. »
     de 0,16 — le « e » et le point final y perdaient leur contour.
     0,08 em couvre l'interlettrage et le trait de 1,5 px du titre
     ajouré, à toutes les tailles où ce style sert. */
  padding-right: 0.08em;
  margin-right: -0.08em;
}
.word > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(110%);
  transition: transform 760ms var(--ease-out);
  transition-delay: var(--wd, 0ms);
}
.is-split.is-revealed .word > i { transform: none; }
.no-js .word > i { transform: none; }

/* ------------------------------------------------------------
   6. BOUTONS
   ------------------------------------------------------------ */
.btn {
  --btn-chevron: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 54px;
  padding: 0 var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  overflow: hidden;
  clip-path: polygon(
    0 0, calc(100% - var(--btn-chevron)) 0, 100% var(--btn-chevron),
    100% 100%, var(--btn-chevron) 100%, 0 calc(100% - var(--btn-chevron))
  );
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}
/* Retour au clic : l'interface doit prouver qu'elle a entendu l'appui. */
.btn:active { transform: scale(0.97); }
.btn > * { position: relative; z-index: 1; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--t-base) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

/* Balayage lumineux au survol */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transform: translateX(-101%) skewX(-12deg);
  transition: transform 520ms var(--ease-out), opacity var(--t-fast);
}
.btn:hover::before { transform: translateX(101%) skewX(-12deg); opacity: 0.16; }

.btn--primary { background: var(--lime); color: var(--noir); }
.btn--primary:hover { box-shadow: 0 14px 44px -14px rgba(var(--lime-rgb), 0.75); }

.btn--brand { background: var(--violet); color: var(--noir); }
.btn--brand:hover { box-shadow: 0 14px 44px -14px rgba(149, 130, 255, 0.85); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text-hi); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bleu);
  transition: color var(--t-base) var(--ease-out), gap var(--t-base) var(--ease-out);
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { color: var(--lime); gap: var(--space-3); }

/* ------------------------------------------------------------
   7. EN-TÊTE
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--t-slow) var(--ease-out),
    border-color var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
}
.site-header.is-stuck {
  background: rgba(var(--bg-rgb), 0.84);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}
/* ------------------------------------------------------------
   La marque de l'en-tête se charge au défilement

   En haut de page, posée sur le hero sans fond derrière elle, la
   marque est en blanc : le dégradé y perd la moitié de sa lisibilité
   sur un noir presque pur. À mesure qu'on descend, elle se remplit de
   la gauche vers la droite jusqu'à retrouver ses couleurs.

   Deux calques superposés du même fichier : le dégradé dessous, un
   aplat blanc dessus qui recule. `--charge` va de 0 à 1 et n'est
   écrit que par le défilement — pas de transition, sans quoi le
   remplissage traînerait derrière le doigt.
   ------------------------------------------------------------ */
/* Le verrouillage porte déjà le nom : la baseline se pose dessous, pas
   à côté. La marque passe donc en colonne dans l'en-tête — le pied de
   page, lui, garde le symbole et sa disposition en ligne. */
.site-header .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.brand__verrou {
  position: relative;
  display: block;
  height: 30px;
  width: 148px;              /* ratio 4,92 du verrouillage horizontal */
}
.brand__verrou img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  /* Logo monochrome : blanc en sombre, noir en clair (voir override).
     Pas d'animation de remplissage. */
  filter: brightness(0) invert(1);
}
.brand__verrou-charge {
  display: none;             /* animation de charge retirée */
  position: absolute; inset: 0;
  background: var(--text-hi);
  -webkit-mask: url("../images/marque/verrouillage-horizontal-degrade.png") left center / contain no-repeat;
  mask: url("../images/marque/verrouillage-horizontal-degrade.png") left center / contain no-repeat;
  /* À 0 le blanc couvre tout ; à 1 il est entièrement rogné. */
  clip-path: inset(0 0 0 calc(var(--charge, 0) * 100%));
}

/* Sans JavaScript, la marque reste dans ses couleurs : mieux vaut le
   dégradé figé qu'un logo blanc que rien ne viendra jamais remplir. */
.no-js .brand__verrou-charge { display: none; }

/* Au pied de page, la marque est blanche — et le reste. Rien à
   remplir : ce bloc n'a pas d'état collé. Un seul calque suffit donc,
   le filtre remplaçant la superposition : `brightness(0)` écrase les
   pixels au noir en gardant le canal alpha, `invert(1)` les remonte au
   blanc. La silhouette exacte, sans second fichier. */
.brand__verrou--blanc img { filter: brightness(0) invert(1); }

/* Même disposition qu'en en-tête : le verrouillage porte le nom, la
   baseline se pose dessous. */
.site-footer .brand,
footer .brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}

/* En-tête et pied portent tous deux le verrouillage horizontal : le
   symbole seul et le nom composé en Poppins n'ont plus d'emploi ici.
   `.brand__mark`, `.brand__text` et `.brand__name` sont retirés plutôt
   que laissés à traîner — le symbole reste servi en favicone et comme
   masque de l'avatar de l'assistant, depuis `images/goproject.png`. */
.brand { display: inline-flex; align-items: center; gap: var(--space-3); flex: none; }
.brand__tag {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-top: 3px;
}

.nav__menu { display: flex; align-items: center; gap: var(--space-1); }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  /* Une entrée de menu ne se coupe pas : entre 860 et ~1000 px la barre
     est juste assez large, et « À Propos » repassait à la ligne après
     le « À ». Plutôt serrer les entrées que casser un libellé. */
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-mid);
  transition: color var(--t-base) var(--ease-out);
}
/* Le trait s'ancre au texte, pas à la boîte de 44px : `top: 50%` puis
   une marge en `em` le pose sous la ligne quelle que soit la taille de
   police. Un `bottom` fixe le renvoyait au milieu des lettres. */
.nav__link::after {
  content: "";
  position: absolute;
  left: var(--space-3); right: var(--space-3);
  top: 50%;
  margin-top: 0.92em;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover { color: var(--text-hi); }
.nav__link:hover::after { transform: scaleX(1); }

/* Page courante : trait violet tenu en permanence */
.nav__link[aria-current="page"] { color: var(--text-hi); }
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--violet);
}
/* Au survol de la page courante, le trait passe au lime sans disparaître */
.nav__link[aria-current="page"]:hover::after { background: var(--lime); }

.nav__actions { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.nav__cta { min-height: 44px; padding-inline: var(--space-4); }
.nav__menu > li:last-child { display: none; }

.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  flex: none;
}
.nav__toggle span {
  position: relative;
  display: block;
  width: 20px; height: 2px;
  background: var(--text-hi);
  transition: background-color var(--t-fast) var(--ease-out);
}
.nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 20px; height: 2px;
  background: var(--text-hi);
  transition: transform var(--t-base) var(--ease-out);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------
   8. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(150px, 20vh, 230px);
  padding-bottom: clamp(64px, 9vw, 110px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -25%; left: 50%;
  width: min(1200px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--glow-rgb), 0.6) 0%, rgba(var(--bg-rgb), 0) 62%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__inner { max-width: 1040px; }
.hero__title { margin-block: var(--space-4) var(--space-5); }
.hero__title span.line { display: block; }
.hero__lead { font-size: clamp(1rem, 0.9rem + 0.45vw, 1.3rem); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.hero__locale {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
}
.hero__locale svg { width: 15px; height: 15px; color: var(--violet); }

.hero--inner { padding-top: clamp(150px, 20vh, 210px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero--inner .hero__title { font-size: var(--fs-2xl); }

.breadcrumb {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: var(--space-4);
}
.breadcrumb a { transition: color var(--t-fast) var(--ease-out); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb span[aria-hidden] { color: var(--indigo); }

/* Relevés chiffrés */
.readout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 88px);
  background: var(--line);
  border: 1px solid var(--line);
}
.readout__cell { background: var(--surface-0); padding: var(--space-4) var(--space-4) var(--space-5); }
.readout__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 1.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.readout__value .unit { color: var(--violet); }
.readout__label {
  margin-top: var(--space-2);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
}

/* ------------------------------------------------------------
   9. BANDEAU DÉFILANT
   ------------------------------------------------------------ */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface-1);
  padding-block: var(--space-4);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  padding-inline: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  flex: none;
}
.marquee__item:nth-child(even) { color: var(--text-low); }
.marquee__item:nth-child(even)::after { background: var(--violet); }

/* ------------------------------------------------------------
   10. GRILLE BENTO — LES TROIS PÔLES
   ------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-3); }

.pole {
  --chevron: 26px;
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  background: var(--surface-1);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}
/* Halo suivant le curseur */
.pole::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(149, 130, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
}
.pole:hover { border-color: var(--line-violet); transform: translateY(-5px); }
.pole:hover::before { opacity: 1; }

/* Enveloppe interne : relaie l'étirement vertical de la carte */
.pole__inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }

/* Bento à modules inégaux — la hiérarchie se lit dans les surfaces.
   Déclaré APRÈS `.pole` : à spécificité égale, c'est l'ordre qui tranche. */
.pole--lg   { grid-column: span 4; }
.pole--sm   { grid-column: span 2; }
.pole--full { grid-column: span 6; }
.pole--full .pole__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.pole--full .pole__media {
  aspect-ratio: auto;
  height: 100%;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.pole--full .pole__media::after {
  background: linear-gradient(to right, rgba(var(--bg-rgb), 0) 45%, var(--surface-1) 100%);
}
.pole--full .pole__body { padding: clamp(28px, 3.5vw, 48px); }

.pole__media {
  position: relative;
  aspect-ratio: 14 / 8;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pole__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out), filter var(--t-slow) var(--ease-out);
  filter: saturate(0.9);
}
.pole:hover .pole__media img { transform: scale(1.09); filter: saturate(1.15); }
.pole__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0) 35%, var(--surface-1) 100%);
}
.pole__badge {
  position: absolute;
  z-index: 2;
  top: var(--space-3); left: var(--space-3);
  padding: 6px var(--space-3);
  background: rgba(var(--bg-rgb), 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bleu);
}

.pole__body { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; padding: var(--space-5); }
.pole__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.pole__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; flex: none;
  border: 1px solid var(--line-strong);
  color: var(--violet);
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.pole__icon svg { width: 24px; height: 24px; }
.pole:hover .pole__icon { color: var(--lime); border-color: var(--lime); }

.pole__title { margin-bottom: var(--space-3); }
.pole__desc { font-size: var(--fs-sm); flex: 1; }
.pole__list {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: grid; gap: var(--space-2);
}
.pole__list li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--text-mid);
}
.pole__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.pole__link { margin-top: var(--space-5); }

/* ------------------------------------------------------------
   11. RÉALISATIONS
   ------------------------------------------------------------ */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
/* Image et texte partagent une seule case de grille : la carte prend la
   hauteur du plus grand des deux.

   Auparavant le texte était en `position: absolute` ancré au bas, et la
   hauteur de la carte venait du seul ratio 16/10 de l'image. Les deux
   variaient indépendamment : dès que le texte dépassait, il sortait par
   le haut, où `overflow: hidden` le tranchait. À 320 px, 63 px de titre
   disparaissaient ; à 1024 px, cinq cartes sur six perdaient leurs
   étiquettes. Un seuil de largeur n'y pouvait rien — le défaut tient au
   motif, pas à une taille d'écran. */
.work-card {
  --chevron: 26px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-1);
  transition: border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.work-card:hover { border-color: var(--line-violet); transform: translateY(-5px); }
.work-card__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  grid-area: 1 / 1;
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1000ms var(--ease-out);
}
.work-card:hover .work-card__media img { transform: scale(1.07); }
.work-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--bg-rgb), 0.94) 0%, rgba(var(--bg-rgb), 0.15) 55%, transparent 100%);
}
.work-card__body {
  grid-area: 1 / 1;          /* superposé au visuel, même case */
  align-self: end;           /* posé au bas, comme avant */
  z-index: 2;
  padding: var(--space-5);
}
.work-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.work-card__tag {
  padding: 5px var(--space-3);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bleu);
  background: rgba(var(--bg-rgb), 0.55);
}
.work-card__tag--accent { color: var(--lime); border-color: rgba(var(--lime-rgb), 0.45); }
.work-card__title { margin-bottom: var(--space-2); }
.work-card__desc { font-size: var(--fs-sm); max-width: 46ch; }
.work-card__cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.work-card:hover .work-card__cta,
.work-card:focus-visible .work-card__cta { opacity: 1; transform: none; }
.work-card__cta svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------
   12. PROCESSUS
   ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step { position: relative; background: var(--surface-0); padding: var(--space-5) var(--space-4) var(--space-6); transition: background-color var(--t-base) var(--ease-out); }
.step:hover { background: var(--surface-1); }
.step__num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700; line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--indigo);
  transition: -webkit-text-stroke-color var(--t-base) var(--ease-out);
}
.step:hover .step__num { -webkit-text-stroke-color: var(--violet); }
.step__title { margin-block: var(--space-3) var(--space-2); }
.step__desc { font-size: var(--fs-sm); }

/* ------------------------------------------------------------
   13. BLOCS DE CONTENU
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.split--form { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.split--faq  { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.sticky-head { position: sticky; top: calc(var(--header-h) + 40px); }

.rule-list { display: grid; gap: var(--space-5); }
.rule-list__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.rule-list__item:last-child { border-bottom: 0; padding-bottom: 0; }
.rule-list__marker {
  width: 12px; height: 12px; margin-top: 8px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  flex: none;
}
.rule-list__title { margin-bottom: var(--space-2); }
.rule-list__desc { font-size: var(--fs-sm); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-3); }
.card {
  --chevron: 20px;
  position: relative;
  padding: var(--space-5);
  background: var(--surface-1);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.card::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(149, 130, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
}
.card:hover { border-color: var(--line-violet); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: var(--space-4);
  border: 1px solid var(--line-strong);
  color: var(--bleu);
  transition: color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.card__icon svg { width: 22px; height: 22px; }
.card:hover .card__icon { color: var(--lime); border-color: var(--lime); }
.card__title { margin-bottom: var(--space-2); }
.card__desc { font-size: var(--fs-sm); }

/* Zone d'intervention */
.zone-map {
  position: relative;
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.zone-map img { width: 100%; height: auto; display: block; }

.zone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.zone-cell {
  background: var(--surface-0);
  padding: var(--space-4);
  transition: background-color var(--t-base) var(--ease-out);
}
.zone-cell:hover { background: var(--surface-2); }
.zone-cell__name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.zone-cell__note { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-low); margin-top: var(--space-1); }

.timeline { position: relative; display: grid; gap: var(--space-6); padding-left: var(--space-6); }
.timeline::before {
  content: "";
  position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--violet), var(--indigo), transparent);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute; left: calc(-1 * var(--space-6) + 1px); top: 6px;
  width: 11px; height: 11px;
  background: var(--noir);
  border: 2px solid var(--violet);
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.timeline__item:hover::before { background: var(--lime); border-color: var(--lime); }
.timeline__year { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.1em; color: var(--violet); }
.timeline__title { margin-block: var(--space-2) var(--space-2); }
.timeline__desc { font-size: var(--fs-sm); }

.meters { display: grid; gap: var(--space-5); }
.meter__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.meter__label { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; color: var(--text-hi); }
.meter__value { font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 700; color: var(--violet); font-variant-numeric: tabular-nums; }
.meter__track { height: 6px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
/* scaleX plutôt que width : la largeur déclenche layout + paint à chaque
   frame, le transform reste sur le GPU. */
.meter__fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--indigo), var(--violet));
  transition: transform 900ms var(--ease-out);
}

/* Le liseré épais sur un seul côté est le tic le plus reconnaissable des
   UI générées. Un filet de 1px et un guillemet dessiné portent mieux. */
.quote {
  position: relative;
  padding: var(--space-6);
  padding-left: clamp(40px, 5vw, 64px);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.quote::before {
  content: "";
  position: absolute;
  left: 0; top: var(--space-6); bottom: var(--space-6);
  width: 1px;
  background: linear-gradient(to bottom, var(--violet), transparent);
}
.quote__text {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500; line-height: 1.45; letter-spacing: -0.02em;
  color: var(--text-hi); max-width: none;
}
.quote__author { margin-top: var(--space-4); font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-low); }

/* ------------------------------------------------------------
   14. BANDEAU CTA
   ------------------------------------------------------------ */
.cta-band {
  --chevron: 40px;
  position: relative;
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 76px);
  background: linear-gradient(120deg, var(--indigo) 0%, #2a1f4d 55%, var(--surface-1) 100%);
  overflow: hidden;
}
/* Une seule diagonale, cohérente avec la découpe en chevron du bloc. */
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  background: linear-gradient(118deg, transparent 48%, rgba(var(--lime-rgb), 0.07) 48%);
  pointer-events: none;
}
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.cta-band__title { max-width: 18ch; margin-block: var(--space-3) var(--space-3); }
.cta-band__text { max-width: 46ch; font-size: var(--fs-sm); color: var(--bleu); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ------------------------------------------------------------
   15. FORMULAIRE
   ------------------------------------------------------------ */
.form-shell { --chevron: 28px; padding: clamp(28px, 4vw, 52px); background: var(--surface-1); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
/* `min-width: 0` : un élément de grille a pour minimum automatique le
   min-content de son contenu. Le <select> du pôle est large de 433 px —
   la largeur de son option la plus longue — et poussait la colonne
   au-delà du conteneur : 107 px de débordement horizontal à 375 px. */
.field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mid);
}
.field__label .req { color: var(--lime); }

.field__control {
  min-height: 54px;
  padding: var(--space-3);
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  transition: border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.field__control::placeholder { color: var(--text-low); }
.field__control:hover { border-color: var(--line-violet); }
.field__control:focus {
  outline: none;
  border-color: var(--violet);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(149, 130, 255, 0.18);
}
textarea.field__control { min-height: 150px; resize: vertical; line-height: 1.6; }
select.field__control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239582ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}
select.field__control option { background: var(--surface-2); color: var(--text-hi); }
.field__hint { font-size: var(--fs-xs); color: var(--text-low); }

.field__error { display: none; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.field__error svg { width: 14px; height: 14px; flex: none; }
.field.is-invalid .field__control { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 95, 109, 0.14); }
.field.is-invalid .field__error { display: flex; }
.field.is-valid .field__control { border-color: rgba(var(--lime-rgb), 0.55); }

.checkfield { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; cursor: pointer; font-size: var(--fs-sm); }
.checkfield input { position: absolute; opacity: 0; width: 22px; height: 22px; cursor: pointer; }
.checkfield__box {
  display: grid; place-items: center;
  width: 22px; height: 22px; margin-top: 2px;
  border: 1px solid var(--line-strong);
  background: var(--surface-0);
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.checkfield__box svg { width: 14px; height: 14px; color: var(--noir); opacity: 0; transform: scale(0.6); transition: opacity var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.checkfield input:checked ~ .checkfield__box { background: var(--lime); border-color: var(--lime); }
.checkfield input:checked ~ .checkfield__box svg { opacity: 1; transform: scale(1); }
.checkfield input:focus-visible ~ .checkfield__box { outline: 2px solid var(--lime); outline-offset: 3px; }
.checkfield-wrap.is-invalid .checkfield__box { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 95, 109, 0.14); }

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5); padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.form-status {
  display: none; align-items: flex-start; gap: var(--space-3);
  margin-bottom: var(--space-5); padding: var(--space-4);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-size: var(--fs-sm);
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-status svg[hidden] { display: none; }
.form-status--ok  { border-color: rgba(var(--lime-rgb), 0.5); color: var(--lime); }
.form-status--err { border-color: rgba(255, 95, 109, 0.5); color: var(--danger); }

.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start;
  padding: var(--space-4);
  background: var(--surface-0);
  transition: background-color var(--t-base) var(--ease-out);
}
.contact-item:hover { background: var(--surface-1); }
.contact-item__icon { color: var(--violet); }
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-low); margin-bottom: var(--space-1); }
.contact-item__value { font-size: var(--fs-sm); color: var(--text-hi); display: block; }
.contact-item a.contact-item__value { transition: color var(--t-fast) var(--ease-out); }
.contact-item a.contact-item__value:hover { color: var(--lime); }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; min-height: 64px; padding: var(--space-4) 0;
  text-align: left;
  font-family: var(--font-display); font-size: var(--fs-base); font-weight: 600;
  color: var(--text-hi);
  transition: color var(--t-base) var(--ease-out);
}
.accordion__trigger:hover { color: var(--lime); }
.accordion__icon { position: relative; width: 16px; height: 16px; flex: none; }
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 16px; height: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-out);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease-in-out); }
.accordion__panel > div { overflow: hidden; }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel p { padding-bottom: var(--space-5); font-size: var(--fs-sm); }

/* ------------------------------------------------------------
   16. PIED DE PAGE
   ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-1); padding-block: clamp(48px, 6vw, 80px) var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--space-6) var(--space-5); }
.footer__desc { font-size: var(--fs-sm); margin-top: var(--space-4); max-width: 34ch; }
.footer__heading { font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-hi); margin-bottom: var(--space-4); }
.footer__list { display: grid; gap: var(--space-3); }
.footer__list a, .footer__list span { display: inline-block; font-size: var(--fs-sm); color: var(--text-mid); }
.footer__list a { transition: color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.footer__list a:hover { color: var(--lime); transform: translateX(3px); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-top: clamp(40px, 5vw, 64px); padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs); color: var(--text-low);
}
.footer-bottom__legal { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom a { transition: color var(--t-fast) var(--ease-out); }
.footer-bottom a:hover { color: var(--bleu); }

/* ------------------------------------------------------------
   17. RÉSEAUX SOCIAUX
   ------------------------------------------------------------ */
.social { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.social__link {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  color: var(--text-mid);
  transition:
    color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}
.social__link svg { width: 20px; height: 20px; }
.social__link:hover {
  transform: translateY(-3px);
  color: var(--noir);
  background: var(--lime);
  border-color: var(--lime);
}
.social__link--wa:hover { background: var(--lime); border-color: var(--lime); color: var(--noir); }
.social__link--fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.social__link--ig:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: #dc2743; color: #fff; }
.social__link--li:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.social__link--yt:hover { background: #ff0033; border-color: #ff0033; color: #fff; }

.social-block { display: grid; gap: var(--space-4); }
.social-note { font-size: var(--fs-sm); }

/* ------------------------------------------------------------
   18. ACTIONS FLOTTANTES
   ------------------------------------------------------------ */
/* Barre d'action mobile — appeler / WhatsApp / devis */
.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 110;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(var(--bg-rgb), 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-strong);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.action-bar__item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  min-height: 64px;
  padding: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mid);
  border-right: 1px solid var(--line);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.action-bar__item:last-child { border-right: 0; }
.action-bar__item svg { width: 21px; height: 21px; }
.action-bar__item:active { background: var(--surface-2); }
.action-bar__item--wa { color: var(--lime); }
.action-bar__item--cta { background: var(--lime); color: var(--noir); }

/* Boutons flottants bureau */
.float-stack {
  position: fixed;
  right: var(--space-4); bottom: var(--space-4);
  z-index: 105;
  display: grid; gap: var(--space-2);
}
.float-btn {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--t-base) var(--ease-out),
    visibility var(--t-base),
    transform var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}
.float-btn svg { width: 22px; height: 22px; }
.float-btn.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-btn:hover { background: var(--lime); color: var(--noir); border-color: var(--lime); }
.float-btn--wa {
  opacity: 1; visibility: visible; transform: none;
  background: var(--lime); border-color: var(--lime); color: var(--noir);
}
.float-btn--wa:hover { background: var(--lime); border-color: var(--lime); color: var(--noir); }

/* Repères de section (scrollspy) */
.dots {
  position: fixed;
  right: var(--space-5); top: 50%;
  z-index: 95;
  transform: translateY(-50%);
  display: grid; gap: var(--space-3);
}
.dots__item { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); }
.dots__label {
  font-family: var(--font-display);
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-low);
  white-space: nowrap;
  opacity: 0; transform: translateX(6px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out);
}
.dots__dot {
  width: 10px; height: 10px; flex: none;
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.dots__item:hover .dots__label,
.dots__item.is-active .dots__label { opacity: 1; transform: none; }
.dots__item:hover .dots__dot { border-color: var(--violet); transform: scale(1.25); }
.dots__item.is-active .dots__dot { background: var(--lime); border-color: var(--lime); transform: scale(1.25); }
.dots__item.is-active .dots__label { color: var(--lime); }

/* ------------------------------------------------------------
   19. TABLEAU COMPARATIF
   ------------------------------------------------------------ */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare th, .compare td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-hi);
  background: var(--surface-2);
  white-space: nowrap;
}
.compare thead th.is-us { color: var(--lime); }
.compare tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-hi);
  width: 30%;
}
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: rgba(149, 130, 255, 0.05); }
.compare td.is-us { background: rgba(149, 130, 255, 0.08); color: var(--text-hi); }
.compare__mark { display: inline-flex; align-items: center; gap: var(--space-2); }
.compare__mark svg { width: 15px; height: 15px; flex: none; }
.compare__mark--yes { color: var(--lime); }
.compare__mark--no { color: var(--text-low); }

/* ------------------------------------------------------------
   20. ÉQUIPE & MÉTIERS
   ------------------------------------------------------------ */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-cell { background: var(--surface-0); padding: var(--space-5) var(--space-4); transition: background-color var(--t-base) var(--ease-out); }
.team-cell:hover { background: var(--surface-1); }
.team-cell__count {
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 700; line-height: 1;
  letter-spacing: -0.04em;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.team-cell__role { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 600; color: var(--text-hi); margin-top: var(--space-3); }
.team-cell__desc { font-size: var(--fs-sm); margin-top: var(--space-2); }

/* ------------------------------------------------------------
   21. RYTHME DES SECTIONS
   ------------------------------------------------------------ */
.section--raised { background: var(--surface-1); border-block: 1px solid var(--line); }
.section--deep {
  background:
    radial-gradient(ellipse 70% 90% at 15% 0%, rgba(var(--glow-rgb), 0.5), transparent 65%),
    var(--surface-0);
  border-block: 1px solid var(--line);
}

/* Repère d'étape sur les listes de facteurs */
.factor-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.factor {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--surface-0);
  transition: background-color var(--t-base) var(--ease-out);
}
.factor:hover { background: var(--surface-1); }
.factor__idx {
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}
.factor__title { font-family: var(--font-display); font-size: var(--fs-base); font-weight: 600; color: var(--text-hi); }
.factor__desc { font-size: var(--fs-sm); margin-top: var(--space-1); }
.factor__weight {
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
}

/* Champ fichier */
.filefield {
  position: relative;
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 54px; padding: var(--space-3);
  background: var(--surface-0);
  border: 1px dashed var(--line-strong);
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out);
}
.filefield:hover { border-color: var(--violet); background: var(--surface-2); }
.filefield input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filefield svg { width: 20px; height: 20px; color: var(--violet); flex: none; }
.filefield__text { font-size: var(--fs-sm); color: var(--text-low); }
.filefield.has-file { border-style: solid; border-color: rgba(var(--lime-rgb), 0.5); }
.filefield.has-file .filefield__text { color: var(--text-hi); }

/* Choix segmenté */
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.segmented label {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 50px; padding: var(--space-2);
  background: var(--surface-0);
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mid);
  cursor: pointer;
  text-align: center;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.segmented label svg { width: 16px; height: 16px; flex: none; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:hover { background: var(--surface-2); color: var(--text-hi); }
.segmented label:has(input:checked) { background: var(--lime); color: var(--noir); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ------------------------------------------------------------
   22. FLUX D'AUTOMATISATION (graphe de nœuds animé)
   Animations CSS pures : elles tournent en continu, indépendamment
   du défilement, et s'arrêtent seules en `prefers-reduced-motion`.
   ------------------------------------------------------------ */
.wf-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-5) 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(var(--glow-rgb), 0.35), transparent 70%),
    var(--surface-1);
}
.wf-wrap::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
}
.wf { position: relative; display: block; width: 100%; min-width: 700px; height: auto; }

/* --- Câbles ------------------------------------------------------------- */
.wf__cable {
  fill: none;
  stroke: var(--violet);
  stroke-opacity: 0.3;
  stroke-width: 2;
}
/* Chaque câble porte pathLength="100" : le paquet a donc exactement la
   même allure quelle que soit la longueur réelle du tracé. */
.wf__pulse {
  fill: none;
  stroke: var(--violet);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 9 91;
  animation: wf-flow 5s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes wf-flow {
  0%        { stroke-dashoffset: 0;    opacity: 0; }
  3%        { opacity: 1; }
  20%       { stroke-dashoffset: -100; opacity: 1; }
  23%, 100% { stroke-dashoffset: -100; opacity: 0; }
}

/* --- Nœuds -------------------------------------------------------------- */
.wf__box {
  fill: var(--surface-2);
  stroke: var(--lime);
  stroke-opacity: 0.32;
  stroke-width: 1.5;
  animation: wf-fire 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes wf-fire {
  0%, 13%   { stroke-opacity: 1;    fill: var(--surface-3); }
  24%, 100% { stroke-opacity: 0.32; fill: var(--surface-2); }
}
.wf__led {
  fill: var(--lime);
  animation: wf-led 5s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes wf-led {
  0%, 13%   { opacity: 1; }
  24%, 100% { opacity: 0.28; }
}
.wf__port { fill: var(--violet); }
.wf__idx {
  font-family: var(--font-display);
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.6px;
  fill: var(--text-low);
}
.wf__label {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.2px;
  fill: var(--text-hi);
}
.wf__sub {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--text-low);
}

.wf-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  margin-top: var(--space-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-low);
}
.wf-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.wf-legend i { width: 22px; height: 3px; flex: none; }
.wf-legend .is-node { background: var(--lime); }
.wf-legend .is-cable { background: var(--violet); }

/* ------------------------------------------------------------
   23. PLAN DE SITUATION
   La carte Google n'est chargée qu'au clic : rien n'est envoyé
   à un tiers tant que le visiteur ne le demande pas.
   ------------------------------------------------------------ */
.geo {
  --chevron: 30px;
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface-1);
  overflow: hidden;
}
/* Le panneau est frère de la scène, pas enfant : sinon il déborde du
   cadre à ratio fixe et recouvre la carte en dessous de 780px. */
.geo__map { position: relative; }
.geo__stage { position: relative; aspect-ratio: 16 / 9; min-height: 320px; }

.geo__still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity var(--t-slow) var(--ease-out);
}
/* Teinte de marque, posée sur le plan */
.geo__tint {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 1;
  background:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(var(--lime-rgb), 0.1), transparent 60%),
    linear-gradient(135deg, rgba(149, 130, 255, 0.3), transparent 55%);
  mix-blend-mode: screen;
}

/* Trame conservée ici : c'est un plan, une surface qui mesure. */
.geo__grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(192, 219, 248, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(192, 219, 248, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

.geo__panel {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  max-width: min(460px, 82%);
  padding: var(--space-5);
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}
.geo__name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  margin-bottom: var(--space-2);
}
.geo__addr { font-size: var(--fs-sm); margin-bottom: var(--space-3); }
.geo__coords {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.geo__coords svg { width: 14px; height: 14px; flex: none; }
.geo__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.geo__actions .btn { --btn-chevron: 11px; min-height: 46px; padding-inline: var(--space-4); font-size: var(--fs-xs); }

.geo__note {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--text-low);
}
.geo__note svg { width: 14px; height: 14px; flex: none; color: var(--violet); }

@media (max-width: 780px) {
  .geo__stage { aspect-ratio: 4 / 3; min-height: 280px; }
  .geo__panel {
    position: static;
    max-width: none;
    border-right: 0;
  }
  .geo__actions .btn { width: 100%; }
}

/* ------------------------------------------------------------
   24. ASSISTANT DE DISCUSSION
   Balisage entièrement construit par js/chatbot.js — absent de la
   page contact, où le formulaire tient déjà ce rôle.
   ------------------------------------------------------------ */
.chat__launcher {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 106;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: 56px;
  padding: 0 var(--space-4);
  background: var(--lime);
  color: var(--noir);
  border: 1px solid var(--lime);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  box-shadow: 0 14px 40px -16px rgba(var(--lime-rgb), 0.7);
  transition: background-color var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out),
              opacity var(--t-base) var(--ease-out),
              visibility var(--t-base);
}
.chat__launcher svg { width: 20px; height: 20px; flex: none; }
.chat__launcher:hover { background: var(--lime); }
.chat__launcher:active { transform: scale(0.97); }
.chat.is-open .chat__launcher { opacity: 0; visibility: hidden; }

/* Les boutons flottants existants remontent au-dessus du lanceur */
.chat ~ .float-stack,
body:has(.chat) .float-stack { bottom: calc(var(--space-4) + 56px + var(--space-2)); }

.chat__panel {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 107;
  display: flex;
  flex-direction: column;
  width: min(384px, calc(100vw - 2 * var(--space-4)));
  height: min(560px, calc(100vh - 2 * var(--space-4) - var(--header-h)));
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              visibility var(--t-base);
}
.chat.is-open .chat__panel { opacity: 1; visibility: visible; transform: none; }

.chat__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
/* Avatar de l'assistant — dérivé du logo, pas une copie.
   Le fichier source est `images/goproject.png` : remplacez le logo,
   l'avatar suit. Trois écarts le distinguent de la marque en en-tête :
   le contour circulaire (le site n'a que des angles coupés en chevron),
   l'anneau lime (couleur de l'interactif), et la pastille de présence. */
.chat__avatar {
  position: relative;
  isolation: isolate;              /* confine le fondu de teinte */
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  background: var(--noir);
  border: 1px solid rgba(var(--lime-rgb), 0.45);
  border-radius: 50%;
}
/* Repli : le logo tel quel, si son fond n'est pas transparent.
   C'est l'état par défaut — js/chatbot.js n'active la silhouette
   qu'après avoir vérifié le canal alpha du fichier. */
.chat__logo {
  width: 26px; height: 26px;
  object-fit: contain;
}
.chat__mark { display: none; }

/* Silhouette pleine en lime : le masque découpe sur l'alpha du logo.
   Une fusion de couleur avait été essayée d'abord — elle rendait le
   sigle olive et éteint. Le masque garde le dessin net. */
.chat__avatar.is-mask .chat__logo { display: none; }
.chat__avatar.is-mask .chat__mark {
  display: block;
  width: 26px; height: 26px;
  background: var(--lime);
  -webkit-mask: url("../images/goproject.png") center / contain no-repeat;
  mask: url("../images/goproject.png") center / contain no-repeat;
}

.chat__presence {
  position: absolute;
  right: -1px; bottom: -1px;
  z-index: 1;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--surface-2);
}
.chat__presence--off { background: var(--text-low); }
.chat__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.2;
}
.chat__status {
  display: flex; align-items: center; gap: 6px;
  margin-top: 3px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
}

.chat__close {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  color: var(--text-mid);
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.chat__close svg { width: 16px; height: 16px; }
.chat__close:hover { color: var(--lime); border-color: var(--lime); }

.chat__log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  scrollbar-width: thin;
}

.chat__msg {
  max-width: 86%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  line-height: 1.55;
  border: 1px solid var(--line);
}
.chat__msg--bot { align-self: flex-start; background: var(--surface-2); color: var(--text-mid); }
.chat__msg--user {
  align-self: flex-end;
  background: var(--indigo);
  border-color: var(--line-violet);
  color: var(--text-hi);
}
.chat__msg--error { align-self: stretch; max-width: none; border-color: rgba(255, 95, 109, 0.5); color: var(--danger); }
.chat__msg a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.chat__msg p + p { margin-top: var(--space-2); }

.chat__typing { align-self: flex-start; display: flex; gap: 5px; padding: var(--space-3) var(--space-4); }
.chat__typing i {
  width: 6px; height: 6px;
  background: var(--violet);
  animation: chat-blink 1.2s ease-in-out infinite;
}
.chat__typing i:nth-child(2) { animation-delay: 0.18s; }
.chat__typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes chat-blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.chat__quick { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0 var(--space-4) var(--space-3); }
.chat__chip {
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.chat__chip:hover { color: var(--lime); border-color: var(--lime); }

.chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.chat__input {
  min-height: 46px;
  max-height: 120px;
  padding: var(--space-3);
  background: var(--surface-0);
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  font-size: var(--fs-sm);
  line-height: 1.45;
  resize: none;
}
.chat__input::placeholder { color: var(--text-low); }
.chat__input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(149, 130, 255, 0.18); }

.chat__send {
  display: grid; place-items: center;
  width: 46px; min-height: 46px;
  background: var(--lime);
  color: var(--noir);
  transition: background-color var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.chat__send svg { width: 18px; height: 18px; }
.chat__send:disabled { opacity: 0.4; cursor: not-allowed; }
.chat__send:not(:disabled):active { transform: scale(0.95); }

.chat__note {
  padding: var(--space-2) var(--space-4) var(--space-3);
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--text-low);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.chat__note a { color: var(--text-mid); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  /* La barre d'action mobile occupe déjà le bas de l'écran */
  .chat__launcher { bottom: calc(64px + var(--space-3)); right: var(--space-3); }
  .chat ~ .float-stack,
  body:has(.chat) .float-stack { bottom: calc(64px + var(--space-3) + 56px + var(--space-2)); }
  .chat__panel {
    right: var(--space-2);
    left: var(--space-2);
    bottom: calc(64px + var(--space-2));
    width: auto;
    height: min(72vh, calc(100vh - 64px - var(--header-h) - var(--space-4)));
  }
}

@media (max-width: 420px) {
  .chat__launcher span { display: none; }
  .chat__launcher { padding: 0; width: 56px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .chat__typing i { animation: none; opacity: 0.7; }
}

/* ------------------------------------------------------------
   25. PAGES DOCUMENTAIRES (CGV, mentions, confidentialité)
   Mode lecture : sommaire ancré à gauche, articles numérotés.
   La numérotation est ici porteuse de sens — on cite « article 4 ».
   ------------------------------------------------------------ */
.legal {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}

.legal__toc { position: sticky; top: calc(var(--header-h) + 32px); }
.legal__toc h2 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
  margin-bottom: var(--space-4);
}
.legal__toc ol { display: grid; gap: 2px; counter-reset: toc; }
.legal__toc a {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  align-items: center;
  gap: var(--space-2);
  /* min-height : une entrée de sommaire reste une cible tactile */
  min-height: 44px;
  padding: var(--space-2) var(--space-2) var(--space-2) 0;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--text-mid);
  border-left: 1px solid var(--line);
  padding-left: var(--space-3);
  transition: color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.legal__toc li { counter-increment: toc; }
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-low);
  font-variant-numeric: tabular-nums;
}
.legal__toc a:hover { color: var(--text-hi); border-left-color: var(--violet); }
.legal__toc a:hover::before { color: var(--lime); }

.legal__body { counter-reset: art; max-width: 72ch; }
.legal__article {
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  counter-increment: art;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal__article:first-child { border-top: 0; padding-top: 0; }
.legal__article > h2 {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: var(--space-2);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}
.legal__article > h2::before {
  content: counter(art, decimal-leading-zero);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35em;
}
.legal__article p + p,
.legal__article ul + p,
.legal__article p + ul { margin-top: var(--space-3); }
.legal__article h3 {
  font-size: var(--fs-base);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.legal__list { display: grid; gap: var(--space-2); }
.legal__list li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--fs-sm);
}
.legal__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--violet);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-low);
}
.legal__meta b { color: var(--text-hi); font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Champ à renseigner par le client avant mise en ligne */
.tofill {
  display: inline-block;
  padding: 1px 7px;
  border: 1px dashed rgba(var(--lime-rgb), 0.5);
  background: rgba(var(--lime-rgb), 0.07);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid rgba(var(--lime-rgb), 0.4);
  background: rgba(var(--lime-rgb), 0.05);
  font-size: var(--fs-sm);
}
.notice svg { width: 18px; height: 18px; color: var(--lime); margin-top: 2px; }

/* ------------------------------------------------------------
   26. TABLEAU DE CARACTÉRISTIQUES (produits)
   ------------------------------------------------------------ */
.spec-group { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-0);
  transition: background-color var(--t-base) var(--ease-out);
}
.spec-row:hover { background: var(--surface-1); }
.spec-row dt {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-hi);
}
.spec-row dd { font-size: var(--fs-sm); color: var(--text-mid); }

@media (max-width: 900px) {
  .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
}

/* ------------------------------------------------------------
   27. FILTRE DES RÉALISATIONS
   ------------------------------------------------------------ */
.filters {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.filter {
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mid);
  transition: color var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out);
}
.filter:hover { color: var(--text-hi); border-color: var(--line-violet); }
.filter[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--noir); }
.filter__count { opacity: 0.55; margin-left: 6px; }

.work-card.is-filtered {
  display: none;
}

/* ------------------------------------------------------------
   28. RÉVÉLATION AU DÉFILEMENT
   ------------------------------------------------------------ */
/* Entrée discrète et courte : elle sert à éviter l'apparition brutale,
   pas à se faire remarquer. Le seul moment typographique authorisé est
   le titre du hero. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.parallax { will-change: transform; }

/* ------------------------------------------------------------
   29. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1280px) {
  .dots { display: none; }
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pole--lg, .pole--sm { grid-column: span 3; }
  .pole--full .pole__inner { grid-template-columns: 1fr; }
  .pole--full .pole__media { aspect-ratio: 21 / 8; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .pole--full .pole__media::after { background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0) 35%, var(--surface-1) 100%); }
}

@media (max-width: 980px) {
  .split--form, .split--faq { grid-template-columns: minmax(0, 1fr); }
  .sticky-head { position: static; }
  .work { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__actions .nav__cta { display: none; }
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-6);
    background: rgba(var(--bg-rgb), 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out), visibility var(--t-base);
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__menu > li:last-child { display: block; }
  .nav__link { min-height: 56px; padding-inline: 0; font-size: var(--fs-md); border-bottom: 1px solid var(--line); }
  /* Le calage vertical en `em` reste valable ici : seule la largeur change. */
  .nav__link::after { left: 0; right: auto; width: 32px; }
  .nav__menu .btn { margin-top: var(--space-4); width: 100%; }
}

@media (max-width: 860px) {
  /* La barre d'action prend le relais des flottants sur mobile */
  .action-bar { display: grid; }
  body { padding-bottom: 64px; }
  .float-stack { right: var(--space-3); bottom: calc(64px + var(--space-3)); }
  .float-btn--wa { display: none; }
  .segmented { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pole--lg, .pole--sm, .pole--full { grid-column: span 6; }
  .pole--full .pole__media { aspect-ratio: 14 / 8; }
  .factor { grid-template-columns: auto 1fr; }
  .factor__weight { grid-column: 2; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band { --chevron: 24px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .work-card__body { padding: var(--space-4); }
}

@media (max-width: 420px) {
  :root { --chevron: 16px; }
  .brand__tag { display: none; }
}

/* Le plancher de 320 px de `.split` dépasse la largeur utile dès que
   l'écran descend sous ~360 px : le conteneur retire 40 px de marges,
   la colonne en réclame 320, et la page déborde de 39 px — visible sur
   l'accueil, les services, à-propos, la FAQ et les produits.

   En dessous de 700 px la grille n'a de toute façon qu'une colonne :
   on la déclare sans plancher. `minmax(min(320px, 100%), 1fr)` serait
   plus élégant, mais le pourcentage n'est pas résolu de façon fiable
   dans une fonction de dimensionnement de piste — mesuré, la colonne
   restait à 320 px. */
@media (max-width: 700px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* Réalisations — empilées plutôt que superposées sur petit écran.

   La case de grille partagée (§ `.work-card`) garantit que rien n'est
   coupé. Reste que sur un téléphone, superposer six lignes de texte à
   une image large de 320 px donne un bloc dense et peu lisible : on
   sépare franchement le visuel du texte. Le dégradé n'assombrit alors
   plus rien d'utile. */
@media (max-width: 560px) {
  .work-card__media { grid-area: auto; }
  .work-card__body { grid-area: auto; padding-top: var(--space-4); }
  .work-card__media::after { display: none; }
}

/* Cibles tactiles — au doigt, la hauteur d'une ligne de texte ne suffit
   pas. Ces liens ne faisaient que 20 à 23 px : la hauteur de leur
   propre interligne, sans aucun rembourrage. C'est sous le minimum de
   24 px du WCAG 2.5.8, et loin des 44 px recommandés au toucher.
   Concernés : toute la navigation du pied de page — dont le numéro de
   téléphone et le lien WhatsApp, les deux intentions de clic les plus
   fortes du site — et les liens fléchés du corps de page.
   Le rembourrage remplace l'espacement de la liste : les cibles se
   touchent, sans zone morte entre elles. */
@media (max-width: 860px) {
  .footer__list { gap: 0; }
  .footer__list a { padding-block: 11px; }
  /* Le rembourrage sépare déjà les lignes : l'écart de la grille s'y
     ajouterait et détacherait le lien passé à la ligne. */
  .footer-bottom__legal { row-gap: 0; }
  .footer-bottom__legal a { padding-block: 13px; }
  .link-arrow { padding-block: 11px; }
  /* Coordonnées de la page Contact : e-mail, fixe et mobile. Mêmes
     intentions de clic que dans le pied de page, même contrainte. */
  a.contact-item__value { padding-block: 11px; }
  .breadcrumb a { padding-block: 12px; }
  /* Suggestions et fermeture de l'assistant : mêmes contraintes, et
     elles s'utilisent exclusivement au doigt sur mobile. */
  .chat__chip { min-height: 44px; }
  .chat__close { width: 44px; height: 44px; }
}

/* ------------------------------------------------------------
   30. PRÉFÉRENCES UTILISATEUR
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .word > i { transform: none; }
  .grain { display: none; }
  .marquee__track { animation: none; }
}

@media print {
  .site-header, .cta-band, .nav__toggle, .grain, .progress, .marquee,
  .float-stack, .action-bar, .dots, .preloader { display: none; }
  body { background: #fff; color: #000; }
}
