/* Hallmark · genre: atmospheric · macrostructure: Bento Grid · theme: custom
 * vibe: « produit SaaS sombre, orbes lumineux, dégradé signature »
 * paper oklch(17% 0.030 265) #060B18 · accent oklch(58% 0.198 262) #1B6EF3 cool
 * display: Bricolage Grotesque · body: Instrument Sans · mono: IBM Plex Mono
 * axes: dark / grotesk-sans / cool  ·  nav: N10 scroll-morph × N11 mega-menu
 * footer: Ft1 masthead × Ft3 index SEO local × Ft7 newsletter
 * enrichment: Tier-A dashboard CSS (sans chrome navigateur) · polish: HP3 cursor-spotlight
 * Hallmark · pre-emit critique: P5 H5 E5 S4 R4 V5
 * Écarts assumés, demandés explicitement par le brief client :
 *   gate 2 (gradient text) et glassmorphism — marqueurs identitaires ici,
 *   avec fallback `color` déclaré et contrastes vérifiés sur fond sombre.
 */

/* ==========================================================================
   base.css — reset, typographie, utilitaires, effets de fond, contrôles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;              /* jamais `hidden` : casse position:sticky */
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-dark);
  color: var(--on-dark-2);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--lh-normal);
  letter-spacing: var(--ls-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; font-style: normal; }
p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

/* --------------------------------------------------------------------------
   2. FOCUS — visible, instantané, jamais animé
   -------------------------------------------------------------------------- */
:focus { outline: none; }

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

.on-light :focus-visible,
.section--light :focus-visible { outline-color: var(--blue-500); }

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  padding: var(--space-sm) var(--space-lg);
  background: var(--blue-500);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHIE
   -------------------------------------------------------------------------- */
.display,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 600;                 /* Bricolage Grotesque : 600 tient le display */
  font-optical-sizing: auto;        /* l'axe opsz suit la taille de rendu */
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--on-dark);
  overflow-wrap: anywhere;   /* évite le débordement des mots longs en mobile */
  min-width: 0;
}

.display { font-size: var(--text-display); font-weight: 700; }
.h1      { font-size: var(--text-4xl); font-weight: 700; }
.h2      { font-size: var(--text-3xl); font-weight: 600; line-height: var(--lh-snug); }
.h3      { font-size: var(--text-xl);  line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }
.h4      { font-size: var(--text-lg);  line-height: var(--lh-snug); letter-spacing: var(--ls-tight); }

.section--light .display,
.section--light .h1,
.section--light .h2,
.section--light .h3,
.section--light .h4 { color: var(--ink); }

/* Parti pris fort du thème : des cards SOMBRES posées sur fond clair.
   Elles doivent donc réimposer leur propre échelle de couleurs, sinon
   les règles `.section--light .h*` ci-dessus les repeignent en encre. */
.section--light .card .display,
.section--light .card .h1,
.section--light .card .h2,
.section--light .card .h3,
.section--light .card .h4,
.section--light .duo__block--dark .h2,
.section--light .duo__block--dark .h3 { color: var(--on-dark); }

.section--light .card .lede,
.section--light .card .text-muted,
.section--light .duo__block--dark .text-muted { color: var(--on-dark-3); }

.section--light .card .eyebrow,
.section--light .card .link-arrow { color: var(--blue-400); }

.section--light .card :focus-visible,
.section--light .duo__block--dark :focus-visible { outline-color: var(--focus-ring); }

.lede {
  font-size: var(--text-lg);
  line-height: var(--lh-loose);
  color: var(--on-dark-2);
  max-width: var(--measure);
}
.section--light .lede { color: var(--ink-2); }

.text-muted   { color: var(--on-dark-3); }
.section--light .text-muted { color: var(--ink-3); }
.measure      { max-width: var(--measure); }
.measure-sm   { max-width: var(--measure-sm); }

/* Eyebrow mono — utilisé avec parcimonie (2 max par page hors sections) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--blue-400);
}
.section--light .eyebrow { color: var(--blue-500); }

/* --------------------------------------------------------------------------
   4. .grad — LE marqueur identitaire du site
   Dégradé signature 96deg, réservé aux fonds sombres.
   Fallback `color` déclaré : si background-clip:text n'est pas supporté,
   le texte reste lisible en bleu clair sur fond sombre (≈ 9.6:1).
   -------------------------------------------------------------------------- */
.grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue-300);
  /* le clip coupe les jambages des g/j/p sans ce padding */
  padding-inline-end: 0.06em;
}

/* Variante éco — même mécanique, famille verte (tokens §13). S'écrit
   toujours avec .grad : `class="grad grad--eco"`. Le fallback `color`
   suit le même principe (≈ 12:1 sur --bg-dark). */
.grad--eco {
  background: var(--gradient-eco-text);
  color: var(--eco-300);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad { -webkit-text-fill-color: currentColor; background: none; }
}

/* Forced colors (mode contraste élevé Windows) : on désactive le clip */
@media (forced-colors: active) {
  .grad {
    -webkit-text-fill-color: currentColor;
    background: none;
    color: LinkText;
  }
}

/* --------------------------------------------------------------------------
   4b. .accent — la mise en valeur SUR FOND CLAIR
   Remplace l'ancien .grad-light (dégradé bleu → violet sur le texte), qui
   lisait comme un effet automatique plutôt que comme une intention.
   Ici : aplat bleu de marque + filet tiré sous la ligne de base. Le filet
   est peint en background-image, donc il suit les retours à la ligne.
   -------------------------------------------------------------------------- */
.accent {
  color: var(--blue-500);
  background-image: linear-gradient(90deg, rgba(27,110,243,.34) 0%, rgba(74,155,255,.34) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.075em;
  background-position: 0 93%;
  padding-bottom: 0.05em;
}
@media (forced-colors: active) {
  .accent { background-image: none; color: LinkText; }
}

/* --------------------------------------------------------------------------
   5. GABARIT
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: var(--shell-narrow); }

.section {
  position: relative;
  padding-block: var(--section-y);
  isolation: isolate;
}
.section--tight { padding-block: var(--section-y-sm); }

.section--dark    { background: var(--bg-dark); color: var(--on-dark-2); }
.section--darkest { background: var(--bg-darkest); color: var(--on-dark-2); }
.section--light   { background: var(--bg-light); color: var(--ink-2); }
/* Bande claire légèrement plus dense : sert à séparer deux sections claires
   consécutives sans repasser par du sombre. */
.section--light-alt { background: var(--bg-light-2); }

/* En-tête de section : toujours empilé (tag au-dessus du titre),
   jamais le pattern label-gauche / titre-droite. */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 760px;
  margin-bottom: var(--space-2xl);
}
.sec-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}
.sec-head p { max-width: var(--measure); }

/* --------------------------------------------------------------------------
   6. EFFETS DE FOND — orbes, grain, grille, séparateurs
   -------------------------------------------------------------------------- */

/* 6a. Calque conteneur des orbes : posé sous le contenu, jamais cliquable */
.fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--orb-blur));
  opacity: var(--orb-opacity);
  will-change: transform;    /* uniquement sur les orbes animés (cf. §6b) */
}
.orb--blue   { background: radial-gradient(circle at 50% 50%, #1B6EF3 0%, rgba(27,110,243,0) 68%); }
.orb--indigo { background: radial-gradient(circle at 50% 50%, #5B4BE8 0%, rgba(91,75,232,0) 68%); }
.orb--cyan   { background: radial-gradient(circle at 50% 50%, #29D3F0 0%, rgba(41,211,240,0) 68%); }
/* Orbe éco — réservée aux écrans « numérique responsable » (tokens §13) */
.orb--eco    { background: radial-gradient(circle at 50% 50%, #10B981 0%, rgba(16,185,129,0) 68%); }

/* 6b. Flottement très lent — transform + opacity uniquement */
@keyframes orb-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(4%, -6%, 0) scale(1.12); }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-5%, 5%, 0) scale(0.94); }
}
@keyframes orb-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.96); }
  50%      { transform: translate3d(3%, 7%, 0) scale(1.1); }
}
.orb--drift-a { animation: orb-drift-a 26s var(--ease-in-out) infinite; }
.orb--drift-b { animation: orb-drift-b 32s var(--ease-in-out) infinite; }
.orb--drift-c { animation: orb-drift-c 22s var(--ease-in-out) infinite; }

/* 6c. Grille fine — masquée en radial pour se fondre sur les bords */
.fx-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(147,193,255,.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(147,193,255,.6) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: var(--grid-opacity);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 0%, transparent 100%);
          mask-image: radial-gradient(ellipse 78% 62% at 50% 42%, #000 0%, transparent 100%);
}
.fx-grid--top {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

/* 6d. Grain global — fixed, au-dessus des fonds, sous le contenu */
.grain {
  position: fixed;
  inset: -120px;              /* déborde pour éviter les bords nets */
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: var(--grain-opacity);
  background-image: var(--grain-url);
  mix-blend-mode: overlay;
}
/* Le grain doit surtout se voir sur les zones sombres : on le neutralise
   partiellement au-dessus des bandes claires via un masque local. */
.section--light .grain-damp {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: var(--bg-light);
  opacity: 0;
}

/* 6e. Séparateur lumineux */
.rule-glow {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--gradient-rule);
}
.rule-glow--soft { opacity: .55; }

/* 6f. Bandes de transition sombre → clair */
.fade-to-light {
  position: relative;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-light) 100%);
}
.fade-to-dark {
  position: relative;
  background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-dark) 100%);
}

/* --------------------------------------------------------------------------
   7. CARD SOMBRE PREMIUM — la signature n°3 du thème
   Fond en dégradé, bordure 1px en dégradé (pseudo-élément masqué),
   inner-glow haut, spotlight curseur, et illumination au hover.
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  isolation: isolate;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(158deg, var(--surface-dark) 0%, var(--surface-dark-2) 100%);
  box-shadow: var(--shadow-card), var(--inner-top);
  color: var(--on-dark-2);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

/* Bordure en dégradé : le masque XOR ne laisse que l'anneau de 1px */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
  transition: background var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}

/* Spotlight qui suit le curseur — piloté par --mx / --my depuis le JS */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(74,155,255,.16) 0%,
    rgba(74,155,255,.05) 42%,
    transparent 72%);
  transition: opacity var(--dur-slow) var(--ease-out);
}

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

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--inner-top), var(--glow-blue);
}
.card:hover::before,
.card:focus-within::before { background: var(--gradient-border-hot); }
.card:hover::after         { opacity: 1; }

/* Variante « verre » — pour le formulaire et les panneaux flottants */
.card--glass {
  background: linear-gradient(158deg, rgba(12,21,38,.82) 0%, rgba(17,30,54,.72) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
          backdrop-filter: blur(12px) saturate(150%);
}

/* Variante compacte / plate (FAQ, listes) */
.card--flat { padding: var(--space-lg); border-radius: var(--radius-md); }
.card--flat:hover { transform: none; box-shadow: var(--shadow-card), var(--inner-top); }

/* Card claire, pour la colonne TPE/PME de la section double cible */
.card-light {
  position: relative;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface-light);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-light);
  color: var(--ink-2);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card-light:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(11,18,32,.06), 0 24px 56px -26px rgba(27,110,243,.38);
}

/* --------------------------------------------------------------------------
   8. BOUTONS — 8 états couverts
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.8125rem 1.375rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--ls-normal);
  white-space: nowrap;          /* jamais de libellé cliquable sur 2 lignes */
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
}
.btn:active,
.btn.is-active { transform: translateY(1px); }

.btn[disabled],
.btn[aria-disabled="true"],
.btn.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* Primaire — aplat bleu, filet lumineux intérieur, glow discret permanent.
   Plus de dégradé bicolore : la profondeur vient du liseré et de l'ombre. */
.btn--primary {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: var(--btn-primary-shadow);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--btn-primary-hover);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover,
.btn--primary.is-hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    0 1px 2px rgba(3,6,15,.34),
    0 16px 40px -14px rgba(27,110,243,1);
}
.btn--primary:hover::before,
.btn--primary.is-hover::before { opacity: 1; }

/* Secondaire ghost — bordure translucide sur fond sombre */
.btn--ghost {
  background: rgba(255,255,255,.03);
  color: var(--on-dark);
  border: 1px solid var(--line-dark-strong);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.btn--ghost:hover,
.btn--ghost.is-hover {
  background: rgba(74,155,255,.10);
  border-color: rgba(74,155,255,.55);
  box-shadow: 0 0 30px -10px rgba(74,155,255,.7);
}

/* Sur fond clair */
.btn--solid-dark {
  background: var(--ink);
  color: #fff;
}
.btn--solid-dark:hover { background: #16203a; box-shadow: 0 14px 34px -18px rgba(11,18,32,.7); }

.btn--outline-light {
  border: 1px solid var(--line-light-strong);
  color: var(--ink);
  background: #fff;
}
.btn--outline-light:hover { border-color: var(--blue-500); color: var(--blue-500); }

.btn--sm { padding: 0.5625rem 1rem; font-size: var(--text-sm); }
.btn--lg { padding: 0.9375rem 1.75rem; font-size: var(--text-md); }
.btn--block { width: 100%; }

/* États asynchrones */
.btn[data-state="loading"] { pointer-events: none; }
.btn[data-state="loading"] .btn__label { opacity: .55; }
.btn[data-state="loading"] .btn__spin {
  display: block;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.32);
  border-top-color: #fff;
  animation: spin 720ms linear infinite;
}
.btn__spin { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn[data-state="success"] { background: #0F9D6B; box-shadow: none; }
.btn[data-state="success"]::before { opacity: 0; }
.btn[data-state="error"]   { background: #D9455F; box-shadow: none; }
.btn[data-state="error"]::before   { opacity: 0; }

/* Lien fléché — la flèche avance au hover */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--blue-400);
  white-space: nowrap;
}
.link-arrow svg { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--light .link-arrow { color: var(--blue-500); }

/* --------------------------------------------------------------------------
   9. PILLS / BADGES
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line-dark-strong);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--on-dark-2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

/* Point pulsant du badge de hero */
.dot-pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}
.dot-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(.65); opacity: .9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Les badges de stack technique vivent désormais dans le marquee
   de la section sur-mesure : voir .tech-chip dans sections.css. */

/* --------------------------------------------------------------------------
   10. FORMULAIRES
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.4375rem; }

.field label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--on-dark-2);
}
.field .req { color: var(--blue-400); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 0.9375rem;
  border-radius: var(--radius-sm);
  background-color: rgba(6,11,24,.6);
  border: 1px solid var(--line-dark-strong);
  color: var(--on-dark);
  font-size: var(--text-base);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--on-dark-4); }

.input:hover, .select:hover, .textarea:hover { border-color: rgba(255,255,255,.26); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  background-color: rgba(6,11,24,.9);
  box-shadow: 0 0 0 3px rgba(74,155,255,.16), 0 0 28px -10px rgba(74,155,255,.8);
}
/* Le focus clavier garde en plus l'anneau système */
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.textarea { min-height: 130px; resize: vertical; }

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2393A4C0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.select option { background: var(--surface-dark); color: var(--on-dark); }

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: #E4657B;
  box-shadow: 0 0 0 3px rgba(228,101,123,.14);
}
.field-error {
  display: none;
  font-size: var(--text-sm);
  color: #FF97A8;
}
.field-error.is-visible { display: block; }

.form-note { font-size: var(--text-sm); color: var(--on-dark-3); }
.form-status {
  display: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
}
.form-status.is-visible { display: block; }
.form-status[data-tone="success"] {
  background: rgba(15,157,107,.12);
  border: 1px solid rgba(15,157,107,.4);
  color: #6FE3B6;
}
.form-status[data-tone="error"] {
  background: rgba(217,69,95,.12);
  border: 1px solid rgba(217,69,95,.42);
  color: #FF97A8;
}

/* Variante fond clair — le formulaire de contact vit sur la bande claire.
   La newsletter du footer reste sur la variante sombre. */
.section--light .field label { color: var(--ink-2); }
.section--light .field .req  { color: var(--blue-500); }

/* `background-color` et non le raccourci `background` : le raccourci remet
   background-repeat à `repeat` et background-position à 0 0, ce qui faisait
   tapisser le chevron du <select> sur toute la largeur du champ. */
.section--light .input,
.section--light .select,
.section--light .textarea {
  background-color: #fff;
  border-color: var(--line-light-strong);
  color: var(--ink);
}
.section--light .input::placeholder,
.section--light .textarea::placeholder { color: var(--ink-3); }

.section--light .input:hover,
.section--light .select:hover,
.section--light .textarea:hover { border-color: rgba(11,18,32,.30); }

.section--light .input:focus,
.section--light .select:focus,
.section--light .textarea:focus {
  border-color: var(--blue-500);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(27,110,243,.14), 0 6px 22px -14px rgba(27,110,243,.9);
}
.section--light .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2364748F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section--light .select option { background: #fff; color: var(--ink); }
.section--light .form-note   { color: var(--ink-3); }
.section--light .field-error { color: #C0344B; }

.section--light .form-status[data-tone="success"] {
  background: rgba(15,157,107,.10);
  border-color: rgba(15,157,107,.34);
  color: #0B7A53;
}
.section--light .form-status[data-tone="error"] {
  background: rgba(217,69,95,.09);
  border-color: rgba(217,69,95,.32);
  color: #B03248;
}

/* --------------------------------------------------------------------------
   11. REVEALS AU SCROLL (IntersectionObserver ajoute .is-in)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--dur-slower) var(--ease-out),
    transform var(--dur-slower) var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Cascade : le JS pose --i sur chaque enfant */
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 70ms); }

.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   12. PREFERS-REDUCED-MOTION
   Orbes figés, reveals désactivés, transitions ramenées à un fondu court.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    scroll-behavior: auto !important;
  }

  .orb--drift-a, .orb--drift-b, .orb--drift-c { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card::after { display: none; }          /* plus de spotlight curseur */
  .dot-pulse::after { animation: none; opacity: .5; }
}

/* --------------------------------------------------------------------------
   12b. CTA FLOTTANT MOBILE
   Barre d'action collée en bas, hors du flux. Elle n'existe qu'en dessous de
   860px : au-dessus, le bouton « Démarrer un projet » du header suffit.
   -------------------------------------------------------------------------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-dock);
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem var(--gutter);
  padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 11, 24, .88);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -22px 44px -30px rgba(3, 6, 15, .95);

  /* Au repos : rangée sous l'écran, et retirée de l'ordre de tabulation */
  transform: translate3d(0, 130%, 0);
  visibility: hidden;
  transition:
    transform var(--dur-slow) var(--ease-out),
    visibility 0s linear var(--dur-slow);
}
@media (max-width: 860px) { .dock { display: flex; } }

.dock.is-in {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
/* Menu ou modale ouverts : la barre s'efface, elle passerait par-dessus */
.no-scroll .dock {
  transform: translate3d(0, 130%, 0);
  visibility: hidden;
}

.dock .btn {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.75rem;
  font-size: var(--text-sm);
}
.dock__call { gap: 0.4375rem; }
.dock__call svg { flex: none; }
.dock__quote { flex: 1.1 1 0; }

/* La barre couvre le bas du document : on rend au pied de page la hauteur
   qu'elle lui prend, sinon la dernière ligne passe dessous. */
@media (max-width: 860px) {
  .foot { padding-bottom: 4.5rem; }
}

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

/* --------------------------------------------------------------------------
   13. UTILITAIRES
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.no-scroll { overflow: hidden; }
.stack     { display: flex; flex-direction: column; }
.cluster   { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.gap-md    { gap: var(--space-md); }
.gap-lg    { gap: var(--space-lg); }
.mt-lg     { margin-top: var(--space-lg); }
.mt-xl     { margin-top: var(--space-xl); }
.mt-2xl    { margin-top: var(--space-2xl); }
