/* BizTools — feuille de styles principale. Aucune dépendance externe. */

/* ---------- Polices (auto-hébergées, licence SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Repli métrique pour limiter le décalage de mise en page pendant le chargement. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* ---------- Jetons ---------- */
:root {
  --night: #0A1022;
  --ink: #151D35;
  --cobalt: #315CFF;
  --cobalt-deep: #2340C9;
  --electric: #6E8BFF;
  --lime: #C8F169;
  --apricot: #FF9C73;
  --ivory: #F6F5F0;
  --fog: #DCE2F0;
  --mist: #ECEFF6;
  --white: #FFFFFF;
  --muted: #4A5370;        /* texte secondaire sur fonds clairs */
  --muted-dark: #AEB8D3;   /* texte secondaire sur fonds sombres */

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", "Inter Fallback", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: var(--cobalt);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"], .nav-list, .footer-nav ul, .hero-tags, .breadcrumb ol { list-style: none; }

a { color: var(--cobalt); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

.site-header, .hero, .section-dark, .site-footer, .id-card { --focus: var(--lime); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: 12px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--lime);
  color: var(--night);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.mono { font-family: var(--font-mono); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.45rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--lime);
  color: var(--night);
  box-shadow: 0 8px 24px -10px rgba(200, 241, 105, .7);
}
.btn-primary:hover { box-shadow: 0 14px 34px -12px rgba(200, 241, 105, .9); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(220, 226, 240, .4);
}
.btn-ghost:hover { border-color: var(--ivory); background: rgba(246, 245, 240, .06); }
.btn-sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .95rem; }

/* ---------- Libellés ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.eyebrow-lime { color: var(--lime); }
.eyebrow-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  padding: .1rem .45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 16, 34, .97);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(220, 226, 240, .08);
  color: var(--ivory);
  transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled {
  background: rgba(10, 16, 34, .88);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7);
}
/* Lueur d'ambiance qui dérive lentement derrière l'en-tête. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(240px 70px at var(--glow-x, 20%) 100%, rgba(49, 92, 255, .28), transparent 70%),
    radial-gradient(160px 50px at calc(100% - var(--glow-x, 20%)) 0%, rgba(200, 241, 105, .08), transparent 70%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: inherit;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  background: linear-gradient(100deg, var(--ivory) 42%, var(--lime) 50%, var(--ivory) 58%) 100% 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position .9s var(--ease);
}
.brand:hover .brand-name { background-position: 0 0; }
.logo-mark { flex: none; transition: transform .6s var(--ease), filter .6s; }
.brand:hover .logo-mark {
  transform: rotate(-10deg) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(110, 139, 255, .7));
}
.logo-pc { filter: drop-shadow(0 0 6px rgba(49, 92, 255, .45)); }
.brand:hover .logo-pc {
  transform: perspective(120px) rotateY(-22deg) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(200, 241, 105, .55));
}

.site-nav { display: flex; align-items: center; gap: 1.25rem; }

/* Capsule de navigation et indicateur glissant (positionné par main.js). */
.nav-track { position: relative; }
.nav-list { display: flex; gap: .15rem; }
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  color: var(--fog);
  text-decoration: none;
  font-weight: 500;
  font-size: .97rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  transition: color .3s;
}
.nav-list a:hover, .nav-list a.is-active { color: var(--ivory); }
.nav-num {
  display: none;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--lime);
  opacity: .7;
  transition: opacity .3s;
}
.nav-list a:hover .nav-num, .nav-list a.is-active .nav-num { opacity: 1; }
.nav-indicator {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  width: var(--w, 0px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(49, 92, 255, .38), rgba(110, 139, 255, .16));
  box-shadow: inset 0 0 0 1px rgba(110, 139, 255, .35), 0 0 22px -6px rgba(49, 92, 255, .9);
  transform: translateX(var(--x, 0px));
  opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
  pointer-events: none;
}
.nav-indicator::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  width: 18px; height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px 1px rgba(200, 241, 105, .8);
}
.nav-track.has-indicator .nav-indicator { opacity: 1; }

@media (min-width: 900px) {
  .nav-track {
    padding: 5px;
    border: 1px solid rgba(220, 226, 240, .1);
    border-radius: 999px;
    background: rgba(246, 245, 240, .03);
  }
  .nav-track .nav-indicator { top: 5px; bottom: 5px; }
  .nav-list a { position: relative; z-index: 1; }
}
@media (min-width: 1120px) {
  .nav-num { display: inline; }
}

/* Bouton d'appel : reflet qui balaie le bouton, flèche qui avance au survol. */
.nav-cta { position: relative; overflow: hidden; isolation: isolate; }
.nav-cta::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.nav-cta-arrow { flex: none; transition: transform .35s var(--ease); }
.nav-cta:hover .nav-cta-arrow { transform: translateX(4px); }
.nav-cta.is-active { box-shadow: 0 0 0 3px rgba(200, 241, 105, .25), 0 14px 34px -12px rgba(200, 241, 105, .9); }

/* Bouton du menu mobile : pastille de verre, barres qui se croisent à l'ouverture. */
.nav-toggle {
  position: relative;
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid rgba(220, 226, 240, .22);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(110, 139, 255, .4), rgba(21, 29, 53, .7) 70%);
  box-shadow: inset 0 1px 0 rgba(246, 245, 240, .1), 0 8px 22px -12px rgba(49, 92, 255, .9);
  color: var(--ivory);
  cursor: pointer;
  transition: background-color .35s, border-color .35s, box-shadow .35s, color .35s, transform .35s var(--ease);
}
.nav-toggle:active { transform: scale(.92); }
/* Anneau lumineux qui tourne autour du bouton ouvert. */
.nav-toggle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(from var(--ring, 0deg), transparent 0 60%, var(--lime) 80%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.nav-toggle-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-toggle-bars { position: relative; display: block; width: 20px; height: 14px; }
.nav-toggle-bars i {
  position: absolute;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top .4s var(--ease), width .4s var(--ease), transform .4s var(--ease), opacity .25s, background-color .35s;
}
.nav-toggle-bars i:nth-child(1) { top: 0; width: 20px; }
.nav-toggle-bars i:nth-child(2) { top: 6px; width: 12px; background: var(--lime); }
.nav-toggle-bars i:nth-child(3) { top: 12px; width: 16px; }
.nav-toggle:hover .nav-toggle-bars i { width: 20px; }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--night);
  box-shadow: 0 0 26px -4px rgba(200, 241, 105, .75);
}
.nav-toggle[aria-expanded="true"]::before { opacity: 1; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { top: 6px; width: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; transform: translateX(10px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { top: 6px; width: 20px; transform: rotate(-45deg); }
@property --ring { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes nav-ring { to { --ring: 360deg; } }

.nav-foot { display: none; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-grid; }
  /* Panneau plein écran sous l'en-tête. */
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
    padding: 1.75rem var(--gutter) calc(1.75rem + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(rgba(220, 226, 240, .04) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, rgba(220, 226, 240, .04) 1px, transparent 1px) 0 0 / 40px 40px,
      radial-gradient(90% 50% at 100% 0%, rgba(49, 92, 255, .35), transparent 70%),
      radial-gradient(70% 40% at 0% 100%, rgba(200, 241, 105, .1), transparent 70%),
      var(--night);
  }
  .site-header.nav-open .site-nav { display: flex; }
  html.nav-locked { overflow: hidden; }

  /* Liste en capsule verticale, indicateur glissant comme sur ordinateur. */
  .nav-track {
    padding: 6px;
    border: 1px solid rgba(220, 226, 240, .1);
    border-radius: 24px;
    background: rgba(246, 245, 240, .03);
  }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -.02em;
  }
  .nav-list a::after {
    content: "";
    width: 9px; height: 9px;
    margin-left: auto;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .35;
    transition: transform .35s var(--ease), opacity .35s, color .35s;
  }
  .nav-list a:hover::after, .nav-list a.is-active::after { opacity: 1; color: var(--lime); transform: translateX(4px) rotate(45deg); }
  .nav-num { display: inline; min-width: 1.6rem; font-size: .8rem; }
  .nav-indicator {
    top: 0; bottom: auto; left: 6px; right: 6px;
    width: auto;
    height: var(--h, 0px);
    border-radius: 18px;
    transform: translateY(var(--y, 0px));
    transition: transform .45s var(--ease), height .45s var(--ease), opacity .3s;
  }
  .nav-indicator::after { left: 0; top: 50%; bottom: auto; width: 3px; height: 22px; margin: -11px 0 0; }
  .nav-cta { width: 100%; min-height: 54px; font-size: 1.05rem; }
  .nav-foot {
    display: block;
    margin-top: auto;
    text-align: center;
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-dark);
  }
}

/* Sans JavaScript, le menu reste affiché en clair. */
@media (max-width: 899px) and (scripting: none) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex; height: auto; overflow: visible; padding-inline: 0; box-shadow: none; border: 0; background: none; }
  .header-inner { flex-wrap: wrap; padding-block: .75rem; }
}

/* Animations de l'en-tête (jamais avec mouvement réduit). */
@media (prefers-reduced-motion: no-preference) {
  .site-header::before { animation: hdr-glow 14s ease-in-out infinite alternate; }

  /* Le logo-ordinateur s'assemble au chargement, puis du code s'y tape en boucle. */
  .logo-pc :is(.lp-depth, .lp-monitor, .lp-neck, .lp-base) { transform-box: fill-box; animation: logo-in .8s var(--ease) backwards; }
  .logo-pc .lp-monitor { --from: translateY(-35%); transform-origin: center; animation-delay: .05s; }
  .logo-pc .lp-depth { --from: translate(-14%, -14%); animation-delay: .25s; }
  .logo-pc .lp-neck { --from: scaleY(0); transform-origin: top; animation-delay: .35s; }
  .logo-pc .lp-base { --from: translateY(60%); transform-origin: center; animation-delay: .45s; }
  .logo-pc .lp-code rect { transform-box: fill-box; transform-origin: left center; animation: logo-type 6s var(--ease) infinite both; }
  .logo-pc .lp-code rect:nth-child(1) { animation-delay: .8s; }
  .logo-pc .lp-code rect:nth-child(2) { animation-delay: 1s; }
  .logo-pc .lp-code rect:nth-child(3) { animation-delay: 1.25s; }
  .logo-pc .lp-code rect:nth-child(4) { animation-delay: 1.45s; }
  .logo-pc .lp-code rect:nth-child(5) { animation-delay: 1.7s; }
  .logo-pc .lp-code rect:nth-child(6) { animation-delay: 1.9s; }
  .logo-pc .lp-code rect:nth-child(7) { animation-delay: 2.15s; }
  .logo-pc .lp-caret { animation: pc-blink 1s steps(1) infinite; }
  .logo-pc .lp-band { animation: logo-band 3s ease-in-out infinite; }
  .brand-name { animation: hdr-drop .7s var(--ease) .3s backwards; }
  .nav-cta::after { animation: cta-shine 5s var(--ease) 2s infinite; }

  @media (min-width: 900px) {
    .nav-track { animation: hdr-drop .7s var(--ease) .3s backwards; }
    .nav-list li { animation: hdr-drop .6s var(--ease) backwards; }
    .nav-list li:nth-child(1) { animation-delay: .4s; }
    .nav-list li:nth-child(2) { animation-delay: .47s; }
    .nav-list li:nth-child(3) { animation-delay: .54s; }
    .nav-list li:nth-child(4) { animation-delay: .61s; }
    .nav-cta { animation: hdr-pop .7s var(--ease) .7s backwards; }
  }

  @media (max-width: 899px) {
    .site-header.nav-open .site-nav { animation: menu-open .6s var(--ease); }
    .site-header.nav-open .nav-track { animation: menu-item .5s var(--ease) .05s backwards; }
    .site-header.nav-open .nav-list li,
    .site-header.nav-open .nav-cta,
    .site-header.nav-open .nav-foot { animation: menu-item .55s var(--ease) backwards; }
    .site-header.nav-open .nav-list li:nth-child(1) { animation-delay: .12s; }
    .site-header.nav-open .nav-list li:nth-child(2) { animation-delay: .18s; }
    .site-header.nav-open .nav-list li:nth-child(3) { animation-delay: .24s; }
    .site-header.nav-open .nav-list li:nth-child(4) { animation-delay: .3s; }
    .site-header.nav-open .nav-cta { animation-delay: .38s; }
    .site-header.nav-open .nav-foot { animation-delay: .46s; }
    .nav-toggle[aria-expanded="true"]::before { animation: nav-ring 2.4s linear infinite; }
  }
}
@keyframes hdr-glow { to { --glow-x: 80%; } }
@property --glow-x { syntax: "<percentage>"; inherits: false; initial-value: 20%; }
@keyframes logo-in { from { opacity: 0; transform: var(--from); } }
@keyframes logo-type {
  0%        { transform: scaleX(0); }
  8%, 80%   { transform: scaleX(1); }
  88%, 100% { transform: scaleX(0); }
}
@keyframes logo-band {
  0%, 100% { fill: #C8F169; }
  50%      { fill: #E3FF9E; }
}
@keyframes hdr-drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes hdr-pop { from { opacity: 0; transform: scale(.85); } }
@keyframes cta-shine {
  0%       { left: -60%; }
  25%, 100% { left: 130%; }
}
@keyframes menu-open {
  from { clip-path: circle(0 at calc(100% - var(--gutter) - 23px) -36px); }
  to   { clip-path: circle(150% at calc(100% - var(--gutter) - 23px) -36px); }
}
@keyframes menu-item { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 78% 40%, rgba(49, 92, 255, .32), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(200, 241, 105, .08), transparent 70%),
    var(--night);
  color: var(--ivory);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 226, 240, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 226, 240, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 60% 40%, #000 30%, transparent 85%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3.5rem, 8vw, 6.5rem);
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}
.hero-title {
  font-size: clamp(2.35rem, 1.3rem + 4.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 15ch;
}
.hl { color: var(--lime); }
.hero-lead {
  margin-top: 1.5rem;
  max-width: 56ch;
  color: var(--fog);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2.5rem;
}
.hero-tags li {
  padding: .35rem .8rem;
  border: 1px solid rgba(220, 226, 240, .2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted-dark);
}

/* Visuel : image SVG d'abord, ordinateur CSS 3D ensuite (chargé par computer.js). */
.hero-visual {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  justify-self: center;
}
@media (max-width: 899px) {
  .hero-visual { width: min(72%, 320px); }
}
.pc-fallback {
  width: 100%;
  transition: opacity .8s var(--ease);
}
.hero-visual.has-pc .pc-fallback { opacity: 0; }

.pc-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1100px;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.hero-visual.has-pc .pc-scene { opacity: 1; }
.pc-scene.is-paused, .pc-scene.is-paused * { animation-play-state: paused !important; }
.pc-glow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 92, 255, .5), transparent 65%);
}
.pc-shadow {
  position: absolute;
  bottom: 9%;
  width: 62%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent);
}
.pc-tilt {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
}
.pc {
  --w: clamp(190px, 29vw, 330px);
  --h: calc(var(--w) * .62);
  --d: calc(var(--w) * .05);
  position: relative;
  width: var(--w);
  height: calc(var(--h) + var(--w) * .24);
  transform-style: preserve-3d;
  transform: rotateX(-8deg) rotateY(-24deg);
  animation: pc-sway 11s ease-in-out infinite;
}
@keyframes pc-sway {
  0%, 100% { transform: translateY(0) rotateX(-8deg) rotateY(-24deg); }
  50%      { transform: translateY(-8px) rotateX(-4deg) rotateY(-6deg); }
}
.pc-face { position: absolute; }

/* Écran : boîtier de verre en six faces. */
.pc-monitor {
  position: absolute;
  top: 0; left: 0;
  width: var(--w);
  height: var(--h);
  transform-style: preserve-3d;
}
.pc-front {
  inset: 0;
  border: 1.5px solid rgba(246, 245, 240, .6);
  border-radius: calc(var(--w) * .05);
  background: linear-gradient(145deg, rgba(110, 139, 255, .66), rgba(35, 64, 201, .55));
  box-shadow: inset 0 0 calc(var(--w) * .12) rgba(169, 187, 255, .45);
}
.pc-front { transform: translateZ(calc(var(--d) / 2)); }
.pc-left, .pc-right {
  top: 5%; bottom: 5%;
  left: calc(50% - var(--d) / 2);
  width: var(--d);
  background: linear-gradient(180deg, rgba(42, 79, 230, .9), rgba(15, 36, 130, .95));
}
.pc-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 1px)); }
.pc-left  { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2 - 1px)); }
.pc-top, .pc-bottom {
  left: 5%; right: 5%;
  top: calc(50% - var(--d) / 2);
  height: var(--d);
  background: rgba(110, 139, 255, .8);
}
.pc-top    { transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 1px)); }
.pc-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 1px)); background: rgba(15, 36, 130, .9); }

/* Ruban lime qui ceint l'écran, comme sur le logo. */
.pc-chin, .pc-left::after, .pc-right::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px;
  bottom: 7%;
  height: 7%;
  background: linear-gradient(90deg, #C8F169, #A6D14A);
  box-shadow: 0 0 18px rgba(200, 241, 105, .45);
}
.pc-left::after, .pc-right::after { left: 0; right: 0; bottom: 2.2%; height: 7.8%; }

.pc-screen {
  position: absolute;
  inset: 5% 4.5% 17%;
  overflow: hidden;
  padding: calc(var(--w) * .03) calc(var(--w) * .035);
  border: 1px solid rgba(110, 139, 255, .5);
  border-radius: calc(var(--w) * .025);
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(49, 92, 255, .28), transparent 70%),
    linear-gradient(160deg, #151D35, #0A1022);
  box-shadow: inset 0 0 calc(var(--w) * .08) rgba(49, 92, 255, .3);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: calc(var(--w) * .034);
  line-height: 1.5;
}
/* Lignes de balayage et reflet du verre. */
.pc-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .12), transparent 38%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.pc-bar {
  display: flex;
  align-items: center;
  gap: calc(var(--w) * .012);
  margin-bottom: calc(var(--w) * .02);
}
.pc-bar i {
  width: calc(var(--w) * .02);
  height: calc(var(--w) * .02);
  border-radius: 50%;
  background: var(--apricot);
}
.pc-bar i:nth-child(2) { background: var(--lime); }
.pc-bar i:nth-child(3) { background: var(--electric); }
.pc-tab {
  margin-left: auto;
  padding: 0 .6em;
  border-radius: 999px;
  background: rgba(246, 245, 240, .06);
  color: var(--muted-dark);
  font-size: .85em;
}
.pc-line { min-height: 1.5em; white-space: pre; }
.tk-c { color: #7F8AA8; }
.tk-k { color: #8FA6FF; }
.tk-v { color: var(--ivory); }
.tk-f { color: var(--apricot); }
.tk-a { color: var(--lime); }
.tk-s { color: #E3F6B0; }
.tk-p { color: var(--fog); }
.pc-caret {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(200, 241, 105, .8);
  animation: pc-blink 1s steps(1) infinite;
}
@keyframes pc-blink { 50% { opacity: 0; } }

/* Pied : colonne et socle. */
.pc-neck {
  position: absolute;
  left: calc(50% - var(--w) * .06);
  top: calc(var(--h) - var(--w) * .02);
  width: calc(var(--w) * .12);
  height: calc(var(--w) * .22);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--d) * -1.2));
}
.pc-neck .pc-front {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(42, 79, 230, .95), rgba(110, 139, 255, .8));
  box-shadow: none;
  transform: translateZ(calc(var(--w) * .03));
}
.pc-neck .pc-left, .pc-neck .pc-right {
  top: 0; bottom: 0;
  left: calc(50% - var(--w) * .03);
  width: calc(var(--w) * .06);
}
.pc-neck .pc-right { transform: rotateY(90deg) translateZ(calc(var(--w) * .06)); }
.pc-neck .pc-left  { transform: rotateY(-90deg) translateZ(calc(var(--w) * .06)); }
.pc-neck .pc-left::after, .pc-neck .pc-right::after { display: none; }
.pc-base {
  position: absolute;
  left: calc(50% - var(--w) * .25);
  top: calc(var(--h) + var(--w) * .05);
  width: calc(var(--w) * .5);
  height: calc(var(--w) * .3);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--d) * -1.2));
}
.pc-base .pc-top {
  inset: 0;
  height: auto;
  border: 1.5px solid rgba(246, 245, 240, .5);
  border-radius: calc(var(--w) * .05);
  background: linear-gradient(145deg, rgba(169, 187, 255, .75), rgba(49, 92, 255, .55));
  transform: rotateX(90deg);
}
.pc-base .pc-edge {
  left: calc(var(--w) * .03); right: calc(var(--w) * .03);
  top: 50%;
  height: calc(var(--w) * .022);
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #C8F169, #A6D14A);
  box-shadow: 0 0 14px rgba(200, 241, 105, .45);
  transform: translateZ(calc(var(--w) * .15));
}

/* Fenêtre de terminal qui flotte devant l'écran. */
.pc-chip {
  position: absolute;
  right: -14%;
  top: 44%;
  padding: .55em .85em;
  border: 1px solid rgba(200, 241, 105, .45);
  border-radius: 10px;
  background: rgba(21, 29, 53, .88);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7), 0 0 22px -6px rgba(200, 241, 105, .5);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: calc(var(--w) * .034);
  line-height: 1.5;
  white-space: nowrap;
  transform: translateZ(calc(var(--w) * .2));
  animation: pc-chip 5s ease-in-out infinite alternate;
}
@keyframes pc-chip {
  from { transform: translateZ(calc(var(--w) * .2)) translateY(0); }
  to   { transform: translateZ(calc(var(--w) * .26)) translateY(-10px); }
}
.orbit {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  animation: orbit 14s linear infinite;
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.orbit::before { top: 6%; left: 50%; width: 14px; height: 14px; background: var(--apricot); }
.orbit::after { bottom: 14%; left: 10%; width: 8px; height: 8px; background: var(--lime); }
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-light { background: var(--ivory); }
.section-ivory { background: var(--mist); }
/* Le cobalt standard n'atteint pas 4,5:1 sur la brume : version plus profonde pour le texte. */
.section-ivory .eyebrow, .section-ivory .principles li::before { color: var(--cobalt-deep); }
.section-dark { background: var(--night); color: var(--ivory); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  letter-spacing: -.03em;
}
.section-lead { margin-top: 1.25rem; max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.section-dark .section-lead { color: var(--muted-dark); }

/* Offres */
.offers {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.offer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--cobalt), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 92, 255, .35);
  box-shadow: 0 30px 60px -36px rgba(21, 29, 53, .45);
}
.offer-card:hover::before { transform: scaleX(1); }
.offer-icon {
  --offer-bg: var(--night);
  width: 64px; height: 64px;
  padding: 10px;
  border-radius: 18px;
  background: var(--night);
  color: var(--ivory);
  transition: transform .5s var(--ease);
}
.offer-icon-accent { stroke: var(--lime); }
.offer-card:hover .offer-icon { transform: rotate(-6deg) scale(1.05); }
.offer-title { font-size: 1.5rem; }
.offer-card > p { color: var(--muted); }
.offer-list {
  list-style: none;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--fog);
  display: grid;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .85rem;
}
.offer-list li { display: flex; align-items: baseline; gap: .6rem; }
.offer-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--cobalt);
  transform: translateY(-1px) rotate(45deg);
}
.offers-note {
  margin-top: 2rem;
  max-width: 75ch;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--cobalt);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: .95rem;
}
.offers-note strong { color: var(--ink); }

/* Méthode */
.steps {
  position: relative;
  display: grid;
  gap: 1rem;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps::before {
    content: "";
    position: absolute;
    top: 2.6rem; left: 2rem; right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--cobalt), var(--electric), var(--lime));
    opacity: .5;
  }
}
@media (max-width: 1023px) {
  .steps { padding-left: 1.25rem; }
  .steps::before {
    content: "";
    position: absolute;
    top: 1rem; bottom: 1rem; left: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--cobalt), var(--lime));
    opacity: .5;
  }
}
.step {
  position: relative;
  padding: 1.5rem;
  background: var(--ink);
  border: 1px solid rgba(220, 226, 240, .1);
  border-radius: var(--radius);
  transition: border-color .4s, transform .4s var(--ease);
}
.step:hover { border-color: rgba(200, 241, 105, .5); transform: translateY(-3px); }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem; height: 2.4rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--night);
  border: 1px solid rgba(200, 241, 105, .55);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: .85rem;
  transition: background-color .4s, color .4s;
}
.step:hover .step-num, .step.is-active .step-num { background: var(--lime); color: var(--night); }
.step-title { font-size: 1.3rem; margin-bottom: .5rem; }
.step p { color: var(--muted-dark); font-size: .97rem; }

/* Approche */
.approach-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 960px) {
  .approach-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); }
  .id-card { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.principles {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  counter-reset: principle;
}
.principles li {
  counter-increment: principle;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--fog);
  border-radius: var(--radius);
}
.principles li::before {
  content: counter(principle, decimal-leading-zero);
  display: block;
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--cobalt);
}
.principles h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.principles p { color: var(--muted); font-size: .97rem; }

.id-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(49, 92, 255, .35), transparent 70%),
    var(--night);
  color: var(--ivory);
}
.id-card-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.25rem;
}
.id-list { margin: 0; display: grid; }
.id-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
  border-bottom: 1px solid rgba(220, 226, 240, .12);
}
.id-list dt { color: var(--muted-dark); font-size: .9rem; }
.id-list dd { margin: 0; text-align: right; font-weight: 500; }
.id-card-note { margin-top: 1.25rem; font-size: .92rem; color: var(--fog); }

/* FAQ */
.faq-grid { display: grid; gap: 1rem 4rem; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.faq { border-top: 1px solid var(--fog); }
.faq-item { border-bottom: 1px solid var(--fog); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 11px no-repeat;
  transition: transform .35s var(--ease), background-color .3s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--lime);
}
.faq-item summary:hover { color: var(--cobalt); }
.faq-body { padding: 0 3rem 1.5rem 0; color: var(--muted); }

/* Contact */
.contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 90% 100%, rgba(49, 92, 255, .4), transparent 70%),
    var(--night);
}
.contact-inner { position: relative; }
.contact-inner > * { max-width: 980px; }
.contact-title {
  font-size: clamp(2.6rem, 1.4rem + 6vw, 6rem);
  line-height: .98;
  letter-spacing: -.04em;
}
.contact-lead { margin-top: 1.5rem; max-width: 56ch; color: var(--fog); font-size: 1.15rem; }
.contact-channels { display: grid; gap: .75rem; margin-top: 2rem; }
.contact-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1rem;
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-kind {
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-dark);
}
.contact-note { margin-top: 1.5rem; color: var(--muted-dark); font-size: .95rem; }
.contact-note a, .section-dark a:not(.btn):not(.contact-link) { color: var(--lime); }
.contact-pending {
  margin-top: 2rem;
  max-width: 62ch;
  padding: 1.5rem;
  border: 1.5px dashed rgba(200, 241, 105, .55);
  border-radius: var(--radius);
  background: rgba(21, 29, 53, .7);
  color: var(--fog);
}
.contact-pending-title {
  margin-bottom: .5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ivory);
}

/* Formulaire de contact : compose un e-mail, n'envoie rien (contact-form.js). */
.contact-inner > .contact-layout { max-width: none; }
.contact-layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .contact-layout .contact-title { font-size: clamp(2.8rem, 1rem + 3.6vw, 4.6rem); }
  .contact-intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}
.contact-or {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.contact-or + .contact-channels { margin-top: .75rem; }
.contact-layout .contact-link { font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }

/* Sans JavaScript, le formulaire ne peut rien préparer : seuls les liens directs restent. */
@media (scripting: none) { .contact-form { display: none; } }

.contact-form {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  border: 1px solid rgba(110, 139, 255, .25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 50% at 100% 0%, rgba(49, 92, 255, .22), transparent 70%),
    linear-gradient(165deg, rgba(21, 29, 53, .95), rgba(10, 16, 34, .95));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(246, 245, 240, .06);
}
/* Liseré lumineux qui fait le tour de la carte. */
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--cf-angle, 0deg), transparent 0 55%, rgba(110, 139, 255, .9) 72%, rgba(200, 241, 105, .95) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
@property --cf-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes cf-border { to { --cf-angle: 360deg; } }

.cf-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.cf-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
}
.cf-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(220, 226, 240, .1); overflow: hidden; }
.cf-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cobalt), var(--electric), var(--lime));
  box-shadow: 0 0 12px rgba(200, 241, 105, .6);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.cf-progress-text { min-width: 3.2rem; text-align: right; font-family: var(--font-mono); font-size: .8rem; color: var(--muted-dark); }
.contact-form.is-complete .cf-progress-text { color: var(--lime); }

.cf-group { min-width: 0; margin: 0 0 1.75rem; padding: 0; border: 0; }
.cf-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .6rem;
  margin-bottom: .9rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ivory);
}
.cf-step {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  padding: .05rem .45rem;
  border: 1px solid rgba(200, 241, 105, .55);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 400;
  color: var(--lime);
}
.cf-optional {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

/* Pastilles à cocher. */
.cf-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.cf-chip { position: relative; display: inline-flex; }
.cf-chip input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cf-chip span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 1px solid rgba(220, 226, 240, .2);
  border-radius: 999px;
  background: rgba(246, 245, 240, .03);
  color: var(--fog);
  font-size: .93rem;
  line-height: 1.2;
  transition: border-color .3s, background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease);
}
.cf-chip span::before {
  content: "";
  flex: none;
  width: 15px; height: 15px;
  border: 1.5px solid rgba(220, 226, 240, .45);
  border-radius: 4px;
  background: center / 11px no-repeat;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.cf-chip-radio span::before { border-radius: 50%; }
.cf-chip:hover span { border-color: rgba(200, 241, 105, .5); color: var(--ivory); transform: translateY(-1px); }
.cf-chip input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 3px; }
.cf-chip input:checked + span {
  border-color: var(--lime);
  background: rgba(200, 241, 105, .1);
  color: var(--ivory);
  box-shadow: 0 0 24px -8px rgba(200, 241, 105, .75);
}
.cf-chip input:checked + span::before {
  border-color: var(--lime);
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%230A1022' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cf-chip-radio input:checked + span::before { background-image: none; box-shadow: inset 0 0 0 3px var(--night); }

/* Champs à libellé flottant et faisceau de focus. */
.cf-fields { display: grid; gap: .9rem; }
@media (min-width: 640px) { .cf-fields { grid-template-columns: 1fr 1fr; } }
.cf-field { position: relative; }
.cf-field input, .cf-field textarea {
  display: block;
  width: 100%;
  padding: 1.5rem 1rem .55rem;
  border: 1px solid rgba(220, 226, 240, .18);
  border-radius: 14px;
  background: rgba(10, 16, 34, .65);
  color: var(--ivory);
  font: inherit;
  font-size: 1rem;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.cf-field textarea { min-height: 9.5rem; max-height: 26rem; line-height: 1.55; resize: none; }
.cf-field input:hover, .cf-field textarea:hover { border-color: rgba(220, 226, 240, .32); }
.cf-field input:focus, .cf-field textarea:focus {
  border-color: rgba(200, 241, 105, .6);
  background: rgba(21, 29, 53, .9);
  box-shadow: 0 0 0 4px rgba(200, 241, 105, .08), 0 12px 30px -16px rgba(200, 241, 105, .45);
}
.cf-field label {
  position: absolute;
  left: 1rem; top: 1.05rem;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted-dark);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .3s var(--ease), color .3s;
}
.cf-field :is(input, textarea):is(:focus, :not(:placeholder-shown)) + label { transform: translateY(-.65rem) scale(.78); }
.cf-field :is(input, textarea):focus + label { color: var(--lime); }
.cf-beam {
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease);
  pointer-events: none;
}
.cf-field :is(input, textarea):focus ~ .cf-beam { transform: scaleX(1); }
.cf-field [aria-invalid="true"] { border-color: var(--apricot); }
.cf-field.is-shaking { animation: cf-shake .45s var(--ease); }
@keyframes cf-shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.cf-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--muted-dark);
}
.cf-count { flex: none; font-family: var(--font-mono); font-size: .78rem; }
.cf-count.is-near { color: var(--apricot); }
.cf-error { margin-top: .5rem; color: var(--apricot); font-size: .92rem; font-weight: 500; }

.cf-actions { display: grid; gap: 1rem; }
.cf-submit { position: relative; overflow: hidden; isolation: isolate; justify-self: start; min-height: 54px; padding-inline: 1.75rem; font-size: 1.05rem; }
.cf-submit:hover .nav-cta-arrow { transform: translateX(4px); }
/* Remplissage pendant la préparation. */
.cf-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #A6D14A, #E3FF9E);
  transform: scaleX(0);
  transform-origin: left;
}
.contact-form.is-sending .cf-submit { cursor: progress; }
.contact-form.is-sending .cf-submit::before { transform: scaleX(1); transition: transform .85s var(--ease); }
.cf-note { max-width: 52ch; font-size: .88rem; color: var(--muted-dark); }

/* Repli du formulaire en mobile (classe posée par contact-form.js). */
.cf-toggle { display: none; }
.contact-form.is-collapsible .cf-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: -.25rem 0 1.5rem;
  padding: 1rem 1rem 1rem 1.15rem;
  border: 1px solid rgba(200, 241, 105, .45);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(200, 241, 105, .14), rgba(49, 92, 255, .14));
  color: var(--ivory);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.contact-form.is-collapsed .cf-toggle { margin-bottom: 0; }
.contact-form.is-done .cf-toggle { display: none; }
.cf-toggle strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.cf-toggle small { display: block; margin-top: .15rem; font-family: var(--font-mono); font-size: .74rem; color: var(--muted-dark); }
.cf-toggle-icon {
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px -4px rgba(200, 241, 105, .7);
  transition: transform .45s var(--ease);
}
.cf-toggle-icon::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 9px; height: 9px;
  margin: -7px 0 0 -4.5px;
  border-right: 2px solid var(--night);
  border-bottom: 2px solid var(--night);
  transform: rotate(45deg);
}
.contact-form:not(.is-collapsed) .cf-toggle-icon { transform: rotate(180deg); }
.contact-form.is-collapsed .cf-body { display: none; }

/* Écran de confirmation. */
.cf-done {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* La carte prend la hauteur du message généré. */
.contact-form.is-done :is(.cf-head, .cf-body) { display: none; }
.cf-done[hidden] { display: none; }
.cf-done-icon { flex: none; color: var(--lime); filter: drop-shadow(0 0 12px rgba(200, 241, 105, .6)); }
.cf-done-title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); letter-spacing: -.03em; }
.cf-done-title:focus { outline: none; }
.cf-done-text { max-width: 56ch; color: var(--fog); }
.cf-done-text strong { color: var(--lime); font-weight: 600; overflow-wrap: anywhere; }
.cf-preview {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(110, 139, 255, .3);
  border-radius: 14px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 3px),
    #070B18;
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.cf-preview::after {
  content: "";
  display: inline-block;
  width: .55em; height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--lime);
  animation: pc-blink 1s steps(1) infinite;
}
.cf-done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.cf-edit {
  min-height: 44px;
  padding: .5rem .25rem;
  border: 0;
  background: none;
  color: var(--lime);
  font: 500 .95rem var(--font-body);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .contact-form::before { animation: cf-border 7s linear infinite; }
  .contact-form.is-complete .cf-submit { animation: cf-ready 2.4s ease-in-out infinite; }
  .contact-form.is-collapsed .cf-toggle-icon { animation: cf-ready 2.4s ease-in-out infinite; }
  .contact-form.is-collapsible:not(.is-collapsed) .cf-body { animation: cf-unfold .55s var(--ease); }
  .cf-chip input:checked + span::before { animation: cf-pop .35s var(--ease); }
  .contact-form.is-done .cf-done { animation: cf-reveal .7s var(--ease); }
  .contact-form.is-done .cf-done-icon circle { stroke-dasharray: 170; animation: cf-draw .8s var(--ease) .1s backwards; }
  .contact-form.is-done .cf-done-icon path { stroke-dasharray: 40; animation: cf-draw-check .5s var(--ease) .6s backwards; }
  .contact-form.is-done .cf-done > :not(.cf-done-icon) { animation: hdr-drop .6s var(--ease) backwards; }
  .contact-form.is-done .cf-done > :nth-child(2) { animation-delay: .2s; }
  .contact-form.is-done .cf-done > :nth-child(3) { animation-delay: .3s; }
  .contact-form.is-done .cf-done > :nth-child(4) { animation-delay: .4s; }
  .contact-form.is-done .cf-done > :nth-child(5) { animation-delay: .5s; }
}
@keyframes cf-ready {
  0%, 100% { box-shadow: 0 8px 24px -10px rgba(200, 241, 105, .7); }
  50%      { box-shadow: 0 0 0 6px rgba(200, 241, 105, .15), 0 14px 40px -10px rgba(200, 241, 105, 1); }
}
@keyframes cf-pop { 50% { transform: scale(1.35); } }
@keyframes cf-unfold { from { opacity: 0; transform: translateY(-12px); } }
@keyframes cf-reveal {
  from { clip-path: circle(0% at 20% 92%); }
  to   { clip-path: circle(150% at 20% 92%); }
}
@keyframes cf-draw { from { stroke-dashoffset: 170; } }
@keyframes cf-draw-check { from { stroke-dashoffset: 40; } }

/* Réalisations (affichées seulement si des références vérifiées existent) */
.works { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.work-card { padding: 1.5rem; background: var(--white); border: 1px solid var(--fog); border-radius: var(--radius-lg); }
.work-card img { border-radius: var(--radius-sm); margin-bottom: 1rem; }
.work-client { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer {
  background: #070B18;
  color: var(--fog);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.footer-brand .brand { color: var(--ivory); }
.footer-tagline { margin-top: 1rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--ivory); }
.footer-title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.footer-nav ul { display: grid; gap: .35rem; }
.footer-nav a {
  display: inline-block;
  padding-block: .3rem;
  color: var(--fog);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--lime); text-decoration: underline; }
.footer-meta {
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(220, 226, 240, .1);
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted-dark);
}

/* ---------- Pages légales ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(4rem, 8vw, 6rem); }
.legal-inner { max-width: 860px; }
.legal h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.5rem); letter-spacing: -.03em; margin-bottom: 2rem; }
.legal h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
.legal h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.legal p + p { margin-top: .9rem; }
.legal-list { margin: 0; border-top: 1px solid var(--fog); }
.legal-list div {
  display: grid;
  gap: .25rem 1.5rem;
  padding-block: .85rem;
  border-bottom: 1px solid var(--fog);
}
@media (min-width: 640px) { .legal-list div { grid-template-columns: 15rem 1fr; } }
.legal-list dt { color: var(--muted); font-weight: 500; }
.legal-list dd { margin: 0; }

.breadcrumb { margin-bottom: 1.5rem; font-family: var(--font-mono); font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a[aria-current="page"] { color: var(--ink); text-decoration: none; }

.draft-notice {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: #FFEDE4;
  border-left: 4px solid var(--apricot);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}
.pending {
  display: inline-block;
  padding: .05rem .5rem;
  border: 1px dashed #D9622F;
  border-radius: 6px;
  background: #FFEDE4;
  color: #8A3311;
  font-size: .9em;
}

.not-found .btn { margin-top: 1.5rem; }

/* ---------- Apparition au défilement (ajoutée par JS, jamais sans) ---------- */
.reveal-pending { opacity: 0; transform: translateY(20px); }
.reveal-in { transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* Cascade : les éléments d'une même rangée apparaissent l'un après l'autre. */
.reveal-in:nth-child(2) { transition-delay: .08s; }
.reveal-in:nth-child(3) { transition-delay: .16s; }
.reveal-in:nth-child(4) { transition-delay: .24s; }
.reveal-in:nth-child(5) { transition-delay: .32s; }

/* ---------- Jauge de lecture ---------- */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--electric), var(--lime));
  box-shadow: 0 0 10px rgba(200, 241, 105, .45);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Anneaux de visée autour de l'ordinateur ---------- */
.hero-visual::before, .hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-visual::before { inset: 1%; border: 1px dashed rgba(110, 139, 255, .45); }
.hero-visual::after {
  inset: 11%;
  border: 1.5px solid transparent;
  border-top-color: rgba(200, 241, 105, .75);
  border-right-color: rgba(200, 241, 105, .15);
}
.hero-visual.has-pc::before { opacity: 1; animation: orbit 80s linear infinite reverse; }
.hero-visual.has-pc::after { opacity: 1; animation: orbit 9s linear infinite; }

/* ---------- Effets futuristes (classe .fx posée par fx.js, jamais sans) ---------- */
.fx-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  -webkit-mask-image: radial-gradient(90% 80% at 60% 45%, #000 35%, transparent 90%);
  mask-image: radial-gradient(90% 80% at 60% 45%, #000 35%, transparent 90%);
}
.fx-network.is-on { opacity: 1; }

/* Changement de section : faisceau le long du bord haut et grille holographique. */
.section { position: relative; overflow: clip; }
.section > .container { position: relative; }
.fx .section::before, .fx .section::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  pointer-events: none;
  opacity: 0;
}
.fx .section::before {
  --grid: rgba(49, 92, 255, .14);
  height: min(60%, 320px);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.fx .section-dark::before { --grid: rgba(220, 226, 240, .09); }
.fx .section::after {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--electric) 70%, var(--lime));
  box-shadow: 0 0 14px rgba(200, 241, 105, .6);
}
.fx .section.is-scanned::before { animation: fx-grid 1.8s var(--ease) both; }
.fx .section.is-scanned::after { animation: fx-beam 1.3s var(--ease) both; }
@keyframes fx-beam {
  0%   { opacity: 1; transform: translateX(-100%); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}
@keyframes fx-grid {
  0%   { opacity: 0; }
  12%  { opacity: 1; }
  18%  { opacity: .35; }
  26%  { opacity: .9; }
  100% { opacity: 0; }
}

/* Libellé décodé, chiffres et lettres qui se stabilisent. */
.fx-decode { white-space: pre; }

/* Titres imprimés au laser. */
.fx .fx-print { position: relative; width: fit-content; }
.fx .fx-print.fx-pending { clip-path: inset(-20% 100% -20% 0); }
.fx .fx-print.is-printing { animation: fx-print 1.1s var(--ease) .15s both; }
.fx .fx-print.is-printing::after {
  content: "";
  position: absolute;
  top: -.1em; bottom: -.1em;
  width: 3px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 16px 3px rgba(200, 241, 105, .75);
  animation: fx-laser 1.1s var(--ease) .15s both;
}
@keyframes fx-print {
  from { clip-path: inset(-20% 100% -20% 0); }
  to   { clip-path: inset(-20% 0 -20% 0); }
}
@keyframes fx-laser {
  0%   { left: -3px; opacity: 1; }
  65%  { opacity: 1; }
  100% { left: calc(100% - 3px); opacity: 0; }
}

/* Icônes des offres tracées trait par trait, accent lumineux. */
.fx .offer-card.fx-draw .offer-icon :is(path, rect, circle) { stroke-dasharray: 220; stroke-dashoffset: 220; }
.fx .offer-card.fx-draw.is-drawn .offer-icon :is(path, rect, circle) {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--ease) .25s;
}
.fx .offer-card.is-drawn .offer-icon-accent { animation: fx-glow 3.2s ease-in-out 1.6s infinite; }
@keyframes fx-glow {
  0%, 100% { filter: none; }
  50%      { filter: drop-shadow(0 0 4px rgba(200, 241, 105, .9)); }
}

/* Cartes holographiques : inclinaison et reflet suivant la souris. */
.offer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--fx-gx, 50%) var(--fx-gy, 0%), rgba(110, 139, 255, .16), transparent 45%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.fx .offer-card.is-tilting {
  transform: perspective(900px) translateY(-4px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg));
  transition: transform .12s linear, box-shadow .35s var(--ease), border-color .35s;
}
.fx .offer-card.is-tilting::after { opacity: 1; }

/* Méthode : la ligne de temps se charge, puis une impulsion de données la parcourt. */
.fx .steps.fx-charge::before { transform: scale(0, 1); transform-origin: left; transition: transform 1.8s var(--ease); }
.fx .steps.fx-charge.is-charged::before { transform: none; }
.fx .steps.is-charged::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px 4px rgba(200, 241, 105, .6);
  pointer-events: none;
  animation: fx-pulse-y 4s var(--ease) 1.8s infinite both;
}
@media (min-width: 1024px) {
  .fx .steps.is-charged::after { top: 2.6rem; animation-name: fx-pulse-x; }
}
@media (max-width: 1023px) {
  .fx .steps.fx-charge::before { transform: scale(1, 0); transform-origin: top; }
  .fx .steps.fx-charge.is-charged::before { transform: none; }
  .fx .steps.is-charged::after { left: calc(1.2rem - 1px); }
}
@keyframes fx-pulse-x {
  0%   { left: 2rem; opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { left: calc(100% - 2rem); opacity: 0; }
}
@keyframes fx-pulse-y {
  0%   { top: 1rem; opacity: 0; }
  10%, 85% { opacity: 1; }
  100% { top: calc(100% - 1rem); opacity: 0; }
}

/* Fiche d'identité façon affichage tête haute : coins de visée et ligne de balayage. */
@media (max-width: 959px) { .id-card { position: relative; } }
.id-card { overflow: hidden; }
.fx .id-card::before, .fx .id-card::after { content: ""; position: absolute; pointer-events: none; }
.fx .id-card::before {
  --c: rgba(200, 241, 105, .7);
  inset: 10px;
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 1.5px,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) top right / 16px 1.5px,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 1.5px,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 16px,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 1.5px,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 16px;
  background-repeat: no-repeat;
}
.fx .id-card::after {
  left: 0; right: 0; top: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(110, 139, 255, .12) 90%, rgba(200, 241, 105, .35));
  animation: fx-sweep 6s linear infinite;
}
@keyframes fx-sweep {
  from { transform: translateY(-100%); }
  to   { transform: translateY(250%); }
}

/* Contact : interférence chromatique à l'arrivée sur la section. */
.fx .contact.is-scanned .contact-title { animation: fx-glitch .9s steps(1) .2s both; }
@keyframes fx-glitch {
  0%   { text-shadow: 3px 0 var(--cobalt), -3px 0 var(--lime); transform: translateX(2px); }
  15%  { text-shadow: -4px 0 var(--cobalt), 4px 0 var(--lime); transform: translateX(-3px) skewX(-6deg); }
  30%  { text-shadow: 2px 0 var(--apricot), -2px 0 var(--electric); transform: none; }
  45%  { text-shadow: -1px 0 var(--cobalt), 1px 0 var(--lime); transform: translateX(1px); }
  60%, 100% { text-shadow: none; transform: none; }
}

/* Les contenus défilants horizontalement ne doivent pas élargir les colonnes de grille. */
.hero-copy, .approach-grid > *, .contact-layout > *, .faq-grid > * { min-width: 0; }

/* ---------- Carrousels (offres, principes) : indicateur ajouté par main.js ---------- */
.carousel-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .25rem; }
.carousel-dots[hidden] { display: none; }
.carousel-dots span {
  width: 7px; height: 7px;
  border-radius: 4px;
  background: rgba(21, 29, 53, .2);
  transition: width .35s var(--ease), background-color .35s;
}
.carousel-dots span.is-active { width: 24px; background: var(--cobalt); }

/* ---------- Bouton d'appel flottant (mobile, ajouté par main.js) ---------- */
.mobile-cta { display: none; }
@media (max-width: 899px) {
  .mobile-cta {
    position: fixed;
    left: var(--gutter); right: var(--gutter);
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: flex;
    min-height: 52px;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55), 0 8px 24px -10px rgba(200, 241, 105, .7);
    transform: translateY(calc(100% + 24px));
    visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .mobile-cta.is-visible { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .mobile-cta:hover { transform: none; }
}

/* ---------- Version mobile ---------- */
@media (max-width: 899px) {
  /* Accroche : visuel compact en tête, boutons pleine largeur, étiquettes défilantes. */
  .hero-inner { gap: .5rem; padding-block: 1.5rem 3rem; }
  .hero-visual { order: -1; width: min(66%, 270px); }
  .pc { --w: clamp(165px, 44vw, 250px); }
  .hero-title { font-size: clamp(2.2rem, 1.1rem + 5.2vw, 3.4rem); }
  .hero-lead { margin-top: 1.1rem; font-size: 1.02rem; }
  .hero-actions { display: grid; gap: .65rem; margin-top: 1.75rem; }
  .hero-actions .btn { width: 100%; }
  .hero-tags { gap: .45rem; margin-top: 1.75rem; }
  .hero-tags li { padding: .3rem .7rem; font-size: .74rem; white-space: nowrap; }
  /* Les deux étiquettes courtes partagent la première ligne. */
  .hero-tags li:nth-child(2) { order: 1; }
}

@media (max-width: 759px) {
  .section { padding-block: 3.75rem; }
  .section-head { margin-bottom: 2rem; }
  .section-lead { margin-top: 1rem; font-size: 1.02rem; }

  /* Offres et principes : cartes à faire glisser. */
  .offers[data-carousel], .principles[data-carousel] {
    position: relative;
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    /* Carte centrée, voisines visibles des deux côtés, y compris pour la première et la dernière. */
    --card: min(82vw, 340px);
    margin-inline: calc(var(--gutter) * -1);
    padding: .25rem calc((100vw - var(--card)) / 2) 1.25rem;
    scrollbar-width: none;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  .offers[data-carousel] > li, .principles[data-carousel] > li { flex: 0 0 var(--card); scroll-snap-align: center; }
  .offer-card { gap: .85rem; padding: 1.4rem; }
  .offer-icon { width: 54px; height: 54px; padding: 8px; border-radius: 15px; }
  .offer-title { font-size: 1.35rem; }
  .offer-card > p { font-size: .97rem; }
  .offers-note { margin-top: 1.5rem; font-size: .9rem; }
  .principles li { padding: 1.35rem; }

  /* Fiche d'identité : libellé au-dessus de la valeur. */
  .id-list div { flex-direction: column; gap: .1rem; padding-block: .65rem; }
  .id-list dd { text-align: left; }

  .faq-item summary { padding: 1.15rem 0; }
  .faq-body { padding-right: 0; }

  /* Formulaire : pastilles sur deux colonnes, actions pleine largeur. */
  .contact-form { padding: 1.25rem; border-radius: var(--radius); }
  .cf-head { margin-bottom: 1.4rem; }
  .cf-group { margin-bottom: 1.5rem; }
  .cf-chips { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .cf-chip span { width: 100%; padding: .5rem .75rem; font-size: .88rem; }
  .cf-submit { justify-self: stretch; }
  .cf-done-actions { display: grid; }
  .cf-done-actions .btn { width: 100%; }
  .cf-edit { justify-self: center; }
  .contact-or { margin-top: 1.5rem; }

  /* Pied de page : marque puis deux colonnes de liens. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-meta { margin-top: 2rem; }
}

/* Méthode : frise compacte, numéro posé sur la ligne. */
@media (max-width: 1023px) {
  .steps { gap: 0; padding-left: 0; }
  .steps::before { top: 1.6rem; bottom: 1.6rem; left: calc(1.2rem - 1px); }
  .step {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    column-gap: 1rem;
    padding: .85rem 0;
    background: none;
    border: 0;
    border-radius: 0;
  }
  .step:hover { transform: none; }
  .step-num { position: relative; grid-row: span 2; margin: 0; }
  .step-title { align-self: center; margin-bottom: .2rem; font-size: 1.2rem; }
  .step p { grid-column: 2; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
  .hero-visual::before, .hero-visual::after { display: none; }
}

@media print {
  .site-header, .skip-link, .hero-visual, .nav-toggle, .fx-network { display: none; }
  .fx .fx-print.fx-pending { clip-path: none; }
  .hero, .section-dark, .site-footer { background: none; color: #000; }
  .reveal-pending { opacity: 1; transform: none; }
}
