/* ==========================================================================
   PsyDev21 — Feuille de style
   Direction : « Synapse ». Bleu nuit profond, lumière pervenche (la tech),
   éclat ambre (l'humain). Bricolage Grotesque en titrage, Geist en texte.
   Polices auto-hébergées : aucune requête vers un service tiers (RGPD).
   ========================================================================== */

/* ---------- Polices ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  --abysse: #0d1a3a;
  --encre: #142553;
  --encre-2: #1b3068;
  --lait: #f3f5fb;
  --brume: #aab5d3;
  --brume-2: #7d89ab;
  --peri: #8ea2ff;
  --peri-2: #c4ceff;
  --peri-deep: #4c5fd6;
  --ambre: #ffb86b;
  --ambre-2: #ffd9ad;
  --orange: #ff7a1a;
  --orange-2: #ffa04d;
  --orange-glow: 0 0 28px rgba(255, 122, 26, .35);
  --rouge: #ff7a7a;
  --vert: #6fe3b0;

  --line: rgba(196, 206, 255, .14);
  --line-2: rgba(196, 206, 255, .26);
  --glass: rgba(27, 48, 104, .55);
  --glass-2: rgba(255, 255, 255, .035);

  --grad: linear-gradient(120deg, var(--peri-2) 0%, var(--peri) 50%, var(--ambre) 100%);

  --f-display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --f-text: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.6rem);
  --step-5: clamp(3rem, 1.4rem + 7vw, 7.6rem);

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1280px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; min-height: 100vh;
  background: var(--abysse); color: var(--lait);
  font-family: var(--f-text); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before { /* lumière ambiante fixe */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(96, 120, 240, .28), transparent 70%),
    radial-gradient(50vw 40vh at -10% 110%, rgba(255, 122, 26, .08), transparent 70%),
    var(--abysse);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--peri-2); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--lait); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong, b { font-weight: 600; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; font-family: var(--f-display); font-weight: 650; line-height: 1.05; letter-spacing: -.025em; color: var(--lait); text-wrap: balance; }
h1 { font-size: var(--step-4); font-stretch: 88%; }
h2, .h2 { font-size: var(--step-3); font-stretch: 90%; color: var(--orange); text-shadow: var(--orange-glow); }
/* Tous les gros titres en orange : H1 (accueil et pages), H2, grands titres de la vitrine */
h1, .hero__title, .page-hero__title, .showcase__text h3 { color: var(--orange); text-shadow: var(--orange-glow); }
/* Titres d'interface : restent clairs */
.modal__title, .footer-title, .aside-card h2, .form-card h2, .tile h3 { color: var(--lait); text-shadow: none; }
.footer-title { color: var(--brume-2); }
h3 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -.015em; }
h4, h5 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -.01em; }
::selection { background: var(--peri); color: var(--abysse); }
.icon { width: 1.4rem; height: 1.4rem; flex: none; }
.icon--duo { stroke: url(#grad-duo); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.muted { color: var(--brume); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--brume); max-width: 62ch; }

/* ---------- Accessibilité ---------- */
.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: 1rem; top: -100px; z-index: 1000;
  padding: .8rem 1.2rem; border-radius: var(--r-s);
  background: var(--lait); color: var(--abysse); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--ambre); outline-offset: 3px; border-radius: 6px; }
.placeholder { background: rgba(255, 184, 107, .15); color: var(--ambre-2); padding: 0 .3em; border-radius: 4px; }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 860px; }
.section-head h2 { margin: 0; }
.section-head p:not(.kicker) { margin: 0; color: var(--brume); font-size: var(--step-1); max-width: 60ch; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
.kicker {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem;
  font-size: var(--step--1); font-weight: 500; color: var(--peri-2); letter-spacing: .01em;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 26, .2), 0 0 12px rgba(255, 122, 26, .6); }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split--center { align-items: center; }
.split--wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.stack > * + * { margin-top: 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(13, 26, 58, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.brand { display: inline-flex; flex: none; }
.brand__logo { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem;
  color: var(--brume); font-size: .95rem; font-weight: 500; text-decoration: none; border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--lait); }
.nav-item.is-active > .nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--ambre);
}
.sub-toggle {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.6rem; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--brume); cursor: pointer;
}
.sub-toggle .icon { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.nav-item.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub-list {
  position: absolute; top: calc(100% + 12px); left: -1rem; z-index: 10; width: 340px; margin: 0; padding: .6rem; list-style: none;
  background: rgba(20, 37, 83, .92); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line-2); border-radius: var(--r-m);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.nav-item--sub:hover .sub-list, .nav-item--sub:focus-within .sub-list, .nav-item.is-open .sub-list {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav-item--sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.sub-link { display: flex; align-items: center; gap: .9rem; padding: .7rem; border-radius: 12px; color: var(--lait); text-decoration: none; transition: background .2s; }
.sub-link:hover, .sub-link[aria-current="page"] { background: rgba(142, 162, 255, .1); color: var(--lait); }
.sub-link strong { display: block; font-weight: 550; font-size: .95rem; }
.sub-link small { display: block; color: var(--brume-2); font-size: .82rem; }
.header-tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--glass-2); color: var(--lait); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .07); }
.icon-btn .icon { width: 1.2rem; height: 1.2rem; }
.nav-toggle { display: none; }

/* ---------- Boutons ---------- */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.5rem; isolation: isolate; overflow: hidden;
  font: inherit; font-weight: 550; font-size: 1rem; text-decoration: none; text-align: center; line-height: 1.2;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease-out), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease-out); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn--primary {
  background: var(--lait); color: var(--abysse);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 12px 40px -12px rgba(142, 162, 255, .7);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad);
  opacity: 0; transition: opacity .35s;
}
.btn--primary:hover { color: var(--abysse); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost, .btn--secondary { background: rgba(20, 37, 83, .55); color: var(--lait); border-color: var(--line-2); }
.btn--ghost:hover, .btn--secondary:hover { border-color: var(--peri); color: var(--lait); background: rgba(142, 162, 255, .1); }
.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--lait); font-weight: 550; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1px; color: var(--lait); }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pastilles d'icônes ---------- */
.icon-tile {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(196, 206, 255, .14), rgba(142, 162, 255, .03));
  box-shadow: 0 0 0 1px rgba(196, 206, 255, .16) inset, 0 1px 0 rgba(255, 255, 255, .12) inset, 0 14px 30px -14px rgba(76, 95, 214, .8);
}
.icon-tile::after { /* reflet */
  content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: 15px 15px 40% 40%;
  background: linear-gradient(rgba(255, 255, 255, .09), transparent); pointer-events: none;
}
.icon-tile .icon { width: 26px; height: 26px; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile--sm .icon { width: 20px; height: 20px; }
.icon-tile--xl { width: 76px; height: 76px; border-radius: 22px; }
.icon-tile--xl .icon { width: 38px; height: 38px; }

/* ---------- Hero d'accueil ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem; overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero__fade { position: absolute; inset: auto 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--abysse)); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem; align-items: center; }
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  margin: 0 0 1.6rem; font-size: clamp(3rem, 1.1rem + 5.4vw, 6.6rem); font-weight: 650; font-stretch: 86%; line-height: .95; letter-spacing: -.024em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 52ch; margin-bottom: 2.2rem; color: var(--brume); font-size: var(--step-1); }
.hero__poles { margin-top: 3rem; }
.hero__poles p { margin: 0 0 .8rem; color: var(--brume-2); font-size: var(--step--1); }
.pole-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.pole-switch button {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .4rem .9rem .4rem .55rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(20, 37, 83, .7);
  color: var(--brume); font: inherit; font-size: .88rem; cursor: pointer; transition: all .3s var(--ease);
}
.pole-switch button .icon, .pole-switch button img { width: 1.1rem; height: 1.1rem; }
.pole-switch button img { object-fit: contain; }
.pole-switch button[aria-pressed="true"] img { filter: brightness(0) saturate(100%) invert(5%) sepia(30%) saturate(3000%) hue-rotate(210deg); }
.pole-switch button:hover { color: var(--lait); border-color: var(--line-2); }
.pole-switch button[aria-pressed="true"] { color: var(--abysse); background: var(--lait); border-color: var(--lait); }
.pole-switch button[aria-pressed="true"] .icon { stroke: var(--abysse); }
.hero__stage { position: relative; height: min(70vh, 640px); pointer-events: none; }
.hero__caption {
  position: absolute; right: 0; bottom: 4%; display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem .7rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(20, 37, 83, .6); backdrop-filter: blur(10px); color: var(--lait); font-size: .92rem;
}
.hero__caption .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 0 0 rgba(255, 184, 107, .6); animation: pulse 2s infinite; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid var(--line-2); border-radius: 999px;
}
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--lait); animation: scrollcue 2s var(--ease) infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 184, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 184, 107, 0); } }
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Entrée orchestrée du hero (un seul moment chorégraphié) */
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.js .hero__lead, .js .hero .btn-row, .js .hero__poles, .js .hero__caption { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .is-loaded .hero__title .line > span { transform: none; }
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.js .is-loaded .hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.js .is-loaded .hero__lead { opacity: 1; transform: none; transition-delay: .35s; }
.js .is-loaded .hero .btn-row { opacity: 1; transform: none; transition-delay: .45s; }
.js .is-loaded .hero__poles { opacity: 1; transform: none; transition-delay: .55s; }
.js .is-loaded .hero__caption { opacity: 1; transform: none; transition-delay: .9s; }

/* ---------- Bandeau de preuves ---------- */
.proof { border-block: 1px solid var(--line); background: rgba(20, 37, 83, .4); }
.proof__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.proof__list li { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.2rem; border-left: 1px solid var(--line); }
.proof__list li:first-child { border-left: 0; padding-left: 0; }
.proof__list b { display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 650; font-stretch: 88%; line-height: 1; letter-spacing: -.02em; }
.proof__list span { color: var(--brume); font-size: .9rem; line-height: 1.35; }

/* ---------- Page intérieure : hero ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem)) 0 clamp(3.5rem, 7vw, 6rem); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--abysse) 20%, rgba(13, 26, 58, .75) 55%, rgba(13, 26, 58, .35)), linear-gradient(0deg, var(--abysse), transparent 50%); }
.page-hero__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) saturate(.8) contrast(1.05); }
.page-hero__glow { position: absolute; z-index: -1; right: -10%; top: -30%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(76, 95, 214, .35), transparent); filter: blur(20px); pointer-events: none; }
.page-hero__head { display: flex; align-items: flex-end; gap: 1.6rem; }
.page-hero__title { margin: 0; max-width: 18ch; }
.page-hero__lead { max-width: 60ch; margin: 1.8rem 0 0; color: var(--brume); font-size: var(--step-1); }
.breadcrumb { margin-bottom: 2.5rem; font-size: .88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; color: var(--brume-2); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line-2); }
.breadcrumb a { color: var(--brume); text-decoration: none; }
.breadcrumb a:hover { color: var(--lait); }
.breadcrumb [aria-current] { color: var(--lait); }

/* ---------- Bento des expertises ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 1rem; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0;
  padding: calc(52px + clamp(2.6rem, 4vw, 3.6rem)) clamp(1.4rem, 2.4vw, 2rem) clamp(1.4rem, 2.4vw, 2rem); overflow: hidden; isolation: isolate;
  border-radius: var(--r-l); border: 1px solid var(--line); background: var(--encre);
  color: var(--lait); text-decoration: none;
  transition: border-color .4s, transform .6s var(--ease-out);
}
.tile:hover { border-color: rgba(142, 162, 255, .45); color: var(--lait); }
.tile::before { /* projecteur qui suit le pointeur */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(142, 162, 255, .18), transparent 45%);
}
.tile:hover::before { opacity: 1; }
.tile__media { position: absolute; inset: 0; z-index: -1; }
.tile__media .photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.55); transform: scale(1.04); transition: transform 1.2s var(--ease-out), filter .8s; }
.tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 26, 58, .2) 0%, rgba(13, 26, 58, .55) 45%, rgba(13, 26, 58, .96) 100%), linear-gradient(120deg, rgba(76, 95, 214, .35), transparent 60%); mix-blend-mode: normal; }
.tile:hover .tile__media .photo { transform: scale(1.1); filter: grayscale(.2) contrast(1.05) brightness(.6); }
.tile .icon-tile { position: absolute; top: clamp(1.4rem, 2.4vw, 2rem); left: clamp(1.4rem, 2.4vw, 2rem); z-index: 2; }
.tile__go {
  position: absolute; top: clamp(1.4rem, 2.4vw, 2rem); right: clamp(1.4rem, 2.4vw, 2rem); z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(13, 26, 58, .4); backdrop-filter: blur(6px);
  transition: background .3s, transform .5s var(--ease-out), border-color .3s;
}
.tile__go .icon { width: 1.1rem; height: 1.1rem; }
.tile:hover .tile__go { background: var(--lait); border-color: var(--lait); color: var(--abysse); transform: rotate(45deg); }
.tile:hover .tile__go .icon { stroke: var(--abysse); }
.tile__body { position: relative; z-index: 2; max-width: 46ch; }
.tile h3 { margin-bottom: .4rem; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); }
.tile p { margin: 0; color: var(--brume); font-size: .98rem; }
.tile__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; padding: 0; list-style: none; }
.tile__tags li { padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--brume); font-size: .8rem; background: rgba(13, 26, 58, .35); }
.tile--a { grid-column: span 7; grid-row: span 2; }
.tile--b { grid-column: span 5; }
.tile--c { grid-column: span 5; }
.tile--d { grid-column: span 4; }
.tile--e { grid-column: span 4; }
.tile--f { grid-column: span 4; }
.tile--g { grid-column: span 12; min-height: 220px; }
.tile--g .tile__body { max-width: 60ch; }
.tile__code {
  position: absolute; top: 22%; right: 6%; z-index: 0; width: min(54%, 380px);
  font-family: var(--f-mono); font-size: .78rem; line-height: 1.7; color: var(--brume);
  padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 26, 58, .7); backdrop-filter: blur(6px);
  transform: rotate(-3deg); box-shadow: 0 30px 60px -30px #000;
}
.tile__code .k { color: var(--peri); } .tile__code .s { color: var(--ambre); } .tile__code .c { color: var(--brume-2); }

/* ---------- Vitrine d'interfaces ---------- */
.showcase { position: relative; overflow: hidden; }
.showcase__tabs { display: flex; gap: .4rem; margin: 0 0 2.5rem; padding: .35rem; list-style: none; width: max-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: rgba(20, 37, 83, .6); scrollbar-width: none; }
.showcase__tabs::-webkit-scrollbar { display: none; }
.showcase__tab {
  display: inline-flex; align-items: center; gap: .5rem; flex: none; min-height: 44px; padding: .5rem 1.1rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--brume); font: inherit; font-size: .94rem; font-weight: 500; cursor: pointer;
  transition: color .3s, background .3s;
}
.showcase__tab .icon { width: 1.1rem; height: 1.1rem; }
.showcase__tab:hover { color: var(--lait); }
.showcase__tab[aria-selected="true"] { background: var(--lait); color: var(--abysse); }
.showcase__tab[aria-selected="true"] .icon { stroke: var(--abysse); }
.showcase__panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.showcase__panel[hidden] { display: none; }
.showcase__panel.is-entering .stage { animation: stageIn .9s var(--ease-out) both; }
.showcase__panel.is-entering .showcase__text { animation: textIn .7s var(--ease-out) both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes textIn { from { opacity: 0; transform: translateX(-16px); } }
.showcase__text h3 { font-size: var(--step-3); font-stretch: 90%; }
.showcase__text p { color: var(--brume); }
.feature-list { display: grid; gap: .7rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; }
.feature-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: .2rem; border-radius: 50%;
  background: rgba(142, 162, 255, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4ceff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 1px rgba(142, 162, 255, .3) inset;
}
.caption-note { display: flex; gap: .5rem; align-items: center; margin-top: 1.4rem; color: var(--brume-2); font-size: .85rem; }
.caption-note .icon { width: 1rem; height: 1rem; }

.stage { --rx: 0deg; --ry: 0deg; position: relative; perspective: 1600px; min-height: 420px; }
.stage__inner { position: relative; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.stage__glow { position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(142, 162, 255, .45), transparent); filter: blur(40px); }
.stage .mock-browser { width: 100%; }
.stage .mock-phone { position: absolute; right: -2%; bottom: -8%; width: 30%; min-width: 170px; transform: translateZ(60px); }
.stage--phones { display: flex; justify-content: center; gap: 4%; align-items: center; min-height: 520px; }
.stage--phones .mock-phone { position: relative; right: auto; bottom: auto; width: 40%; max-width: 270px; min-width: 0; }
.stage--phones .mock-phone:nth-child(2) { transform: translateY(40px) translateZ(40px) rotate(4deg); }
.stage--phones .mock-phone:nth-child(1) { transform: rotate(-4deg); }
.stage--phones .mock-phone:only-child { transform: none; width: 52%; }

/* ---------- Démarche (séquence réelle : numérotée) ---------- */
.process { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); }
.process__intro { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.process__track { position: relative; }
.process__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.process__track::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.process__bar { position: absolute; left: 27px; top: 10px; width: 1px; height: calc(var(--p, 0) * (100% - 20px)); background: linear-gradient(var(--peri), var(--ambre)); box-shadow: 0 0 12px var(--peri); }
.process__steps li { position: relative; padding: 0 0 3.2rem 5.2rem; counter-increment: step; }
.process__steps li:last-child { padding-bottom: 0; }
.process__steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--abysse); color: var(--brume);
  font-family: var(--f-mono); font-size: .9rem; transition: all .5s var(--ease);
}
.process__steps li.is-active::before { background: var(--lait); color: var(--abysse); border-color: var(--lait); box-shadow: 0 0 0 6px rgba(142, 162, 255, .15); }
.process__steps h3 { margin: .7rem 0 .5rem; }
.process__steps p { margin: 0; color: var(--brume); max-width: 52ch; }

/* ---------- Liste de domaines avec aperçu photo ---------- */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr) 44px; gap: 1.5rem; align-items: center;
  padding: 1.8rem 0; border-bottom: 1px solid var(--line); color: var(--lait); text-decoration: none;
  transition: padding .5s var(--ease-out);
}
.row h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); font-stretch: 88%; transition: color .3s; }
.row p { margin: 0; color: var(--brume); }
.row .tile__go { position: static; }
a.row:hover { padding-inline: 1rem; color: var(--lait); }
a.row:hover h3 { color: var(--peri-2); }
a.row:hover .tile__go { background: var(--lait); border-color: var(--lait); transform: rotate(45deg); }
a.row:hover .tile__go .icon { stroke: var(--abysse); }
.row-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 280px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .4s var(--ease-out);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.row-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.row-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Blocs de fonctionnalités ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.feature--rev { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.feature--rev .feature__copy { order: 2; }
.feature__copy p { color: var(--brume); }
.feature__visual { position: relative; }
.checks { display: grid; gap: .65rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks .icon { width: 1.2rem; height: 1.2rem; margin-top: .2rem; stroke: var(--peri); }
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.6rem; }

/* ---------- Cartes simples ---------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1.8rem;
  border: 1px solid var(--line); border-radius: var(--r-m); background: linear-gradient(180deg, rgba(27, 48, 104, .65), rgba(20, 37, 83, .4));
  overflow: hidden; transition: border-color .35s;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(142, 162, 255, .12), transparent 50%); }
.card:hover { border-color: rgba(142, 162, 255, .35); }
.card:hover::before { opacity: 1; }
.card .icon-tile { margin-bottom: 1.3rem; }
.card__title { margin: 0 0 .5rem; font-size: 1.3rem; }
.card__text { margin: 0; color: var(--brume); font-size: .98rem; }
.card__meta { margin: 0 0 .3rem; color: var(--ambre); font-size: .85rem; font-weight: 500; }
.card__link { margin-top: auto; padding-top: 1.3rem; }
.card .checks { margin: 1.2rem 0 0; font-size: .95rem; }
.card--plain { background: transparent; }

/* ---------- Bloc de détail (pages activités) ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.detail__aside .icon-tile { margin-bottom: 1.6rem; }
.detail__aside p { color: var(--brume); }
.detail__media { margin-top: 2rem; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); }
.detail__media .photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.8); }
.pill-list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.pill-list li {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(20, 37, 83, .5); transition: border-color .3s, transform .4s var(--ease-out);
}
.pill-list li:hover { border-color: var(--line-2); transform: translateX(4px); }
.pill-list .icon { width: 1.2rem; height: 1.2rem; stroke: var(--peri); }

/* ---------- Directeur : parcours ---------- */
.timeline { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--abysse); border: 1px solid var(--peri); }
.timeline b { display: block; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.timeline span { color: var(--brume); }
.bigquote { margin: 0; font-family: var(--f-display); font-size: var(--step-3); font-weight: 500; font-stretch: 90%; line-height: 1.1; letter-spacing: -.025em; }
.bigquote .icon { width: 2.6rem; height: 2.6rem; margin-bottom: 1.5rem; stroke: var(--ambre); }
.stat-inline { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.stat-inline b { display: block; font-family: var(--f-display); font-size: 3rem; font-weight: 650; font-stretch: 85%; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-inline span { color: var(--brume); font-size: .92rem; }

/* ---------- Partenaires ---------- */
.partners { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.partner h3 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); font-stretch: 85%; }
.partner p { margin: .4rem 0 0; color: var(--brume); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.tag { display: inline-block; padding: .3rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--peri-2); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.faq__head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 0;
  font-family: var(--f-display); font-size: 1.25rem; font-weight: 550; letter-spacing: -.01em; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 1.4rem; height: 1.4rem; flex: none; padding: .3rem; box-sizing: content-box; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .4s var(--ease-out), background .3s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--lait); stroke: var(--abysse); }
.faq__answer { padding: 0 3rem 1.6rem 0; color: var(--brume); }
.faq__answer p { margin: 0; }

/* ---------- Bandeau d'appel à l'action ---------- */
.cta { padding-block: clamp(3rem, 8vw, 6rem); }
.cta__box {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.5rem, 7vw, 6rem);
  border-radius: clamp(24px, 4vw, 44px); border: 1px solid var(--line-2);
  background: radial-gradient(80% 120% at 100% 0%, rgba(142, 162, 255, .35), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(255, 184, 107, .18), transparent 60%), var(--encre);
}
.cta__box::after { /* grille fine */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000, transparent);
}
.cta__box h2 { max-width: 16ch; font-size: var(--step-4); }
.cta__box p { max-width: 54ch; margin-bottom: 2.2rem; color: var(--brume); font-size: var(--step-1); }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; padding-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand p { max-width: 40ch; margin: 1.4rem 0 1.8rem; color: var(--brume); }
.footer-title { margin: 0 0 1.1rem; font-family: var(--f-text); font-size: .9rem; font-weight: 500; color: var(--brume-2); letter-spacing: 0; }
.footer-links { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--lait); text-decoration: none; }
.footer-links a:hover { color: var(--peri-2); text-decoration: underline; }
.footer-links--contact li { display: flex; align-items: center; gap: .7rem; color: var(--brume); }
.footer-links--contact .icon { width: 1.1rem; height: 1.1rem; stroke: var(--peri); }
.footer-wordmark {
  margin: clamp(3rem, 6vw, 5rem) 0 0; font-family: var(--f-display); font-weight: 750; font-stretch: 75%;
  font-size: clamp(5rem, 22vw, 21rem); line-height: .9; padding-bottom: .12em; letter-spacing: -.06em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(196, 206, 255, .22);
  background: linear-gradient(180deg, rgba(142, 162, 255, .16), transparent 85%); -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); color: var(--brume-2); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.footer-legal a, .footer-legal .link-button { color: var(--brume); text-decoration: none; }
.footer-legal a:hover, .footer-legal .link-button:hover { color: var(--lait); text-decoration: underline; }

/* ---------- Formulaires, contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form-card { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--r-l); background: linear-gradient(180deg, rgba(27, 48, 104, .7), rgba(20, 37, 83, .5)); }
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; gap: 1.2rem; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.field label, .field .label { display: block; margin-bottom: .45rem; color: var(--brume); font-size: .92rem; font-weight: 500; }
.req { color: var(--ambre); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 54px; padding: .85rem 1rem; font: inherit; color: var(--lait);
  background: rgba(13, 26, 58, .6); border: 1px solid var(--line-2); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(196, 206, 255, .35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--peri); background: rgba(13, 26, 58, .85); box-shadow: 0 0 0 4px rgba(142, 162, 255, .2); }
.field.has-error input, .field.has-error textarea { border-color: var(--rouge); }
.field__error { margin: .4rem 0 0; color: var(--rouge); font-size: .9rem; }
.checkbox { display: flex; align-items: flex-start; gap: .75rem; color: var(--brume); font-size: .95rem; }
.checkbox input { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; accent-color: var(--peri); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-legal { margin: 0; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(13, 26, 58, .5); color: var(--brume-2); font-size: .84rem; line-height: 1.55; }
.alert { margin-bottom: 1.4rem; padding: 1rem 1.25rem; border: 1px solid; border-radius: 14px; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert--success { color: #c9f6e2; background: rgba(111, 227, 176, .1); border-color: rgba(111, 227, 176, .4); }
.alert--error { color: #ffd0d0; background: rgba(255, 122, 122, .1); border-color: rgba(255, 122, 122, .45); }
.alert a { color: inherit; }
.contact-aside { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.contact-list { display: grid; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list a { color: var(--lait); }
.map { height: 320px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--encre); }
.map-consent { display: grid; place-items: center; gap: .8rem; height: 100%; padding: 1.5rem; text-align: center; color: var(--brume); font-size: .92rem; }
.map-consent p { margin: 0; max-width: 34ch; }
.notice { padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-left: 3px solid var(--ambre); border-radius: 12px; background: rgba(20, 37, 83, .5); color: var(--brume); }

/* ---------- Pages de texte (mentions, confidentialité) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 2.6rem 0 .8rem; font-size: var(--step-2); }
.prose h3 { margin: 1.8rem 0 .6rem; font-size: var(--step-1); }
.prose p, .prose li { color: var(--brume); }
.prose li + li { margin-top: .35rem; }
.prose strong { color: var(--lait); }
.list-check { padding: 0; list-style: none; }
.list-check li { position: relative; padding-left: 1.8rem; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }

/* ---------- Modales ---------- */
body.modal-open { overflow: hidden; }
html:not(.js) [data-a11y-open], html:not(.js) [data-cookie-settings] { display: none; }
.modal {
  width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; color: var(--lait);
  background: var(--encre); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modalIn .45s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal::backdrop { background: rgba(6, 12, 30, .7); backdrop-filter: blur(6px); }
.modal__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.modal__title { margin: 0; font-size: 1.35rem; }
.modal__title:focus { outline: none; }
.modal__body { padding: 1.5rem; overflow-y: auto; color: var(--brume); }
.modal__body > :last-child { margin-bottom: 0; }
.modal__body strong { color: var(--lait); }
.modal__status { font-weight: 600; color: var(--peri-2); }
.modal__footer { display: flex; flex-wrap: wrap; gap: .75rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); background: rgba(13, 26, 58, .4); }
.modal__footer .btn { flex: 1 1 150px; }
.a11y-group { margin: 0 0 1.4rem; padding: 0; border: 0; min-width: 0; }
.a11y-group legend { margin-bottom: .7rem; padding: 0; color: var(--lait); font-weight: 600; }
.a11y-options { display: grid; gap: .8rem; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; padding: .3rem; border: 1px solid var(--line); border-radius: 999px; }
.seg button { flex: 1 1 80px; min-height: 44px; padding: .4rem .8rem; font: inherit; font-weight: 500; color: var(--brume); background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { color: var(--abysse); background: var(--lait); }
.wcag-info { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(13, 26, 58, .5); }
.wcag-info summary { font-weight: 600; color: var(--lait); cursor: pointer; }
.wcag-info[open] summary { margin-bottom: .8rem; }

/* ==========================================================================
   MAQUETTES D'INTERFACES
   Tout est dimensionné en unités de conteneur (cqi) : la maquette se comporte
   comme une capture d'écran qui se redimensionne d'un bloc.
   ========================================================================== */
.mock { position: relative; }
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock-dots i:nth-child(2) { background: #febc2e; }
.mock-dots i:nth-child(3) { background: #28c840; }

.mock-browser {
  border-radius: 14px; overflow: hidden; background: #1a2140;
  box-shadow: 0 0 0 1px rgba(196, 206, 255, .18), 0 50px 100px -30px rgba(0, 0, 0, .85), 0 30px 60px -40px rgba(76, 95, 214, .6);
}
.mock-browser__bar { display: flex; align-items: center; gap: 1rem; height: 38px; padding: 0 14px; background: linear-gradient(#1f2748, #1a2140); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mock-browser__url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; max-width: 420px; margin: 0 auto; height: 24px; border-radius: 8px; background: rgba(13, 26, 58, .55); color: #9aa5c8; font-size: 12px; white-space: nowrap; overflow: hidden; }
.mock-browser__url .icon { width: 11px; height: 11px; }
.mock-browser__sp { width: 42px; }
.mock-browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; background: #f5f6fb; }

.mock-phone {
  aspect-ratio: 9 / 19.2; padding: 3.2%; border-radius: 15% / 7.2%;
  background: linear-gradient(145deg, #3a4266, #151a30 40%, #2a3152);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 0 2px #0a0e1e, 0 50px 90px -30px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(76, 95, 214, .55);
}
.mock-phone__screen { position: relative; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; container-type: inline-size; background: #f6f7fb; color: #141a2e; }
.mock-phone__status { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; height: 11cqi; padding: 0 8cqi; font-size: 4.4cqi; font-weight: 600; }
.mock-phone__island { position: absolute; left: 50%; top: 2.6cqi; width: 30cqi; height: 8.6cqi; margin-left: -15cqi; border-radius: 99px; background: #05070f; }
.mock-phone__sys { display: inline-flex; gap: 1.2cqi; align-items: center; }
.mock-phone__sys i { width: 1.1cqi; height: 3cqi; border-radius: 1px; background: currentColor; }
.mock-phone__sys i:first-child { height: 2cqi; }
.mock-phone__sys b { width: 6.5cqi; height: 3.2cqi; border-radius: 1cqi; border: .5cqi solid currentColor; }
.mock-phone__screen.is-dark { background: #0d1124; color: #eef1ff; }
.mock-phone__home { position: absolute; left: 50%; bottom: 2.4cqi; width: 36cqi; height: 1.3cqi; margin-left: -18cqi; border-radius: 9px; background: currentColor; opacity: .5; }
.m-phone { padding: 3cqi 6cqi 10cqi; font-size: 4.3cqi; line-height: 1.35; }
.m-phone h5 { margin: 0; color: inherit; font-family: var(--f-display); font-size: 7.2cqi; line-height: 1.08; letter-spacing: -.02em; }
.m-cta { display: block; margin-top: 6cqi; padding: 4.4cqi; border-radius: 99px; background: #141a2e; color: #fff; font-weight: 600; text-align: center; }
.m-cta--sm { display: inline-block; margin: 0; padding: 2.6cqi 5cqi; }

/* Composants communs aux applis "web" */
.m-app { display: flex; height: 100%; font-size: 1.32cqi; line-height: 1.35; color: #141a2e; font-family: var(--f-text); }
.m-app h4 { margin: 0; color: #141a2e; font-family: var(--f-display); font-size: 2.3cqi; letter-spacing: -.02em; }
.m-app small { color: #6b7391; font-size: .9em; }
.m-side { display: flex; flex-direction: column; width: 18%; padding: 2.2cqi 1.6cqi; background: #0f1530; color: #c9d0ee; }
.m-side__logo { display: flex; align-items: center; gap: .8cqi; margin-bottom: 2.6cqi; color: #fff; font-weight: 650; font-size: 1.4cqi; }
.m-logo-dot { width: 2cqi; height: 2cqi; border-radius: .6cqi; background: linear-gradient(135deg, #8ea2ff, #ffb86b); }
.m-logo-dot--g { background: linear-gradient(135deg, #6fe3b0, #3aa0ff); }
.m-side ul { display: grid; gap: .4cqi; margin: 0; padding: 0; list-style: none; }
.m-side li { display: flex; align-items: center; gap: 1cqi; padding: 1cqi 1.1cqi; border-radius: .8cqi; }
.m-side li .icon { width: 1.6cqi; height: 1.6cqi; }
.m-side li.is-on { background: rgba(142, 162, 255, .18); color: #fff; }
.m-side__foot { display: flex; align-items: center; gap: 1cqi; margin-top: auto; }
.m-side__foot b { display: block; color: #fff; font-size: 1.15cqi; }
.m-side__foot small { color: #8b93b8; }
.m-av { display: inline-grid; place-items: center; flex: none; width: 3.2cqi; height: 3.2cqi; border-radius: 50%; color: #fff; font-size: 1.05cqi; font-weight: 600; }
.m-av--1 { background: linear-gradient(135deg, #8ea2ff, #5b6ff0); }
.m-av--2 { background: linear-gradient(135deg, #ffb86b, #f08a4b); }
.m-av--3 { background: linear-gradient(135deg, #6fe3b0, #2bb07c); }
.m-av--4 { background: linear-gradient(135deg, #f5a3c7, #d4689b); }
.m-main { flex: 1; min-width: 0; padding: 2.2cqi 2.4cqi; }
.m-top { display: flex; align-items: center; gap: 1.6cqi; margin-bottom: 1.8cqi; }
.m-top > div:first-child { flex: 1; }
.m-search { display: flex; align-items: center; gap: .8cqi; width: 28%; padding: 1cqi 1.3cqi; border-radius: 99px; background: #fff; color: #9097b3; box-shadow: 0 0 0 1px #e4e7f2; }
.m-search .icon { width: 1.4cqi; height: 1.4cqi; }
.m-btn { padding: 1cqi 1.6cqi; border-radius: 99px; background: #141a2e; color: #fff; font-weight: 600; white-space: nowrap; }
.m-btn--ghost { background: transparent; color: #141a2e; box-shadow: 0 0 0 1px #d8dcec; }
.m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4cqi; margin-bottom: 1.4cqi; }
.m-kpi { padding: 1.4cqi 1.6cqi; border-radius: 1.2cqi; background: #fff; box-shadow: 0 0 0 1px #e8ebf4; }
.m-kpi b { display: block; margin: .3cqi 0; font-family: var(--f-display); font-size: 2.6cqi; letter-spacing: -.02em; }
.m-kpi em { font-style: normal; color: #6b7391; font-size: 1.05cqi; }
.m-kpi em.up { color: #1f9d6a; }
.m-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.4cqi; }
.m-col { display: grid; gap: 1.4cqi; align-content: start; }
.m-card { padding: 1.4cqi 1.6cqi; border-radius: 1.2cqi; background: #fff; box-shadow: 0 0 0 1px #e8ebf4; }
.m-card__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2cqi; }
.m-seg { display: inline-flex; padding: .3cqi; border-radius: 99px; background: #f0f2f8; }
.m-seg i { padding: .3cqi 1cqi; border-radius: 99px; font-style: normal; color: #6b7391; }
.m-seg i.is-on { background: #fff; color: #141a2e; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.m-cal__grid { position: relative; display: grid; grid-template-columns: 3.4cqi repeat(5, 1fr); grid-template-rows: 2.4cqi repeat(8, 3.1cqi); gap: .3cqi .5cqi; }
.m-cal__d { grid-row: 1; text-align: center; color: #6b7391; font-size: 1.05cqi; }
.m-cal__d.is-today { color: #4c5fd6; font-weight: 700; }
.m-cal__h { grid-column: 1; color: #a0a7c2; font-size: .95cqi; }
.m-ev { grid-column: calc(var(--d) + 1); grid-row: calc(var(--s) + 1) / span var(--l); padding: .5cqi .7cqi; border-radius: .7cqi; border-left: .35cqi solid; overflow: hidden; font-size: 1cqi; line-height: 1.25; }
.m-ev b { display: block; font-weight: 600; } .m-ev span { opacity: .75; }
.m-ev--a { background: #eef0ff; border-color: #6d7ff5; color: #2b368f; }
.m-ev--b { background: #fff3e6; border-color: #f5a04b; color: #8a4a0b; }
.m-ev--c { background: #e8f8f1; border-color: #2fb37d; color: #135c3f; }
.m-ev--d { background: #f3f3f7; border-color: #a0a7c2; color: #4a5070; }
.m-cal__now { position: absolute; left: 3.6cqi; right: 0; top: var(--t); height: 2px; background: #ff5a5a; }
.m-cal__now::before { content: ""; position: absolute; left: -.5cqi; top: -.4cqi; width: 1cqi; height: 1cqi; border-radius: 50%; background: #ff5a5a; }
.m-list { display: grid; gap: 1cqi; margin: 0; padding: 0; list-style: none; }
.m-list li { display: flex; align-items: center; gap: 1cqi; }
.m-list li > div { flex: 1; min-width: 0; }
.m-list b { display: block; font-size: 1.15cqi; }
.m-pill { padding: .3cqi .9cqi; border-radius: 99px; background: #f0f2f8; color: #4a5070; font-style: normal; font-size: .95cqi; }
.m-pill--new { background: #fff1e3; color: #b25e10; }
.m-bars { display: flex; align-items: flex-end; gap: .8cqi; height: 9cqi; }
.m-bars i { flex: 1; height: var(--v); border-radius: .5cqi .5cqi .2cqi .2cqi; background: linear-gradient(#8ea2ff, #c4ceff); transform-origin: bottom; }
.m-bars i:last-child { background: linear-gradient(#ffb86b, #ffd9ad); }
.is-live .m-bars i { animation: growY 1s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes growY { from { transform: scaleY(0); } }

/* Phobies */
.m-phobia { background: linear-gradient(180deg, #eef0ff 0%, #f6f7fb 55%); height: 100%; }
.m-phobia__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4cqi; font-weight: 600; }
.m-back, .m-dotsv { color: #6b7391; font-size: 6cqi; line-height: 1; }
.m-steps { display: flex; gap: 1.4cqi; margin-bottom: 3cqi; }
.m-steps i { flex: 1; height: 1.4cqi; border-radius: 9px; background: #dfe3f3; }
.m-steps i.is-done { background: #6d7ff5; }
.m-steps i.is-on { background: linear-gradient(90deg, #6d7ff5 50%, #dfe3f3 50%); }
.m-phobia__lvl { margin: 0 0 1.4cqi; color: #6d7ff5; font-weight: 600; }
.m-breath { position: relative; display: grid; place-content: center; justify-items: center; width: 62cqi; height: 62cqi; margin: 7cqi auto; text-align: center; }
.m-breath__c { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(109, 127, 245, .25), rgba(109, 127, 245, .05) 70%); box-shadow: 0 0 0 1px rgba(109, 127, 245, .3) inset; animation: breathe 8s ease-in-out infinite; }
.m-breath__c--2 { inset: 16%; background: radial-gradient(circle, #8ea2ff, #6d7ff5); box-shadow: 0 10px 30px rgba(109, 127, 245, .45); animation-delay: -.4s; }
.m-breath b { position: relative; color: #fff; font-family: var(--f-display); font-size: 6.4cqi; }
.m-breath small { position: relative; color: rgba(255, 255, 255, .85); font-size: 3.8cqi; }
@keyframes breathe { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1); } }
.m-suds { padding: 4cqi; border-radius: 5cqi; background: #fff; box-shadow: 0 0 0 1px #e6e9f4; }
.m-suds__h { display: flex; justify-content: space-between; margin-bottom: 2.4cqi; }
.m-suds__h b { color: #6d7ff5; font-family: var(--f-display); font-size: 5.2cqi; }
.m-suds__track { position: relative; height: 2cqi; border-radius: 9px; background: linear-gradient(90deg, #6fe3b0, #ffd36b, #ff7a7a); }
.m-suds__track i { position: absolute; left: var(--v); top: 50%; width: 5.6cqi; height: 5.6cqi; margin: -2.8cqi 0 0 -2.8cqi; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.m-suds__s { display: flex; justify-content: space-between; margin-top: 1.8cqi; color: #8a91ad; font-size: 3.4cqi; }

/* Tests psychotechniques */
.m-psy { height: 100%; background: #fbfaf7; }
.m-psy__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3cqi; font-weight: 600; }
.m-psy__top b { padding: 1cqi 2.6cqi; border-radius: 99px; background: #141a2e; color: #fff; font-family: var(--f-mono); font-size: 3.6cqi; }
.m-psy__prog { height: 1.6cqi; margin-bottom: 6cqi; border-radius: 9px; background: #ece9e1; }
.m-psy__prog i { display: block; width: var(--v); height: 100%; border-radius: 9px; background: #f08a4b; }
.m-psy__q { margin: 0 0 5cqi; font-family: var(--f-display); font-size: 6cqi; line-height: 1.15; }
.m-psy__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3cqi; padding: 4cqi; border-radius: 5cqi; background: #fff; box-shadow: 0 0 0 1px #ece9e1; }
.m-shape { aspect-ratio: 1; border-radius: 3cqi; background: #f1efe9; }
.m-shape--1 { background: #6d7ff5; border-radius: 50%; transform: scale(.7); }
.m-shape--2 { background: #2fb37d; transform: scale(.65); }
.m-shape--3 { background: #141a2e; clip-path: polygon(50% 8%, 92% 92%, 8% 92%); transform: scale(.75); }
.m-shape.is-target { background: #f08a4b; transform: rotate(45deg) scale(.62); border-radius: 2cqi; box-shadow: 0 0 0 4cqi rgba(240, 138, 75, .18); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 1cqi rgba(240, 138, 75, .1); } }
.m-psy__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqi; margin-top: 5cqi; }
.m-psy__stats div { padding: 3.4cqi; border-radius: 4cqi; background: #fff; box-shadow: 0 0 0 1px #ece9e1; }
.m-psy__stats small { display: block; color: #8a8576; font-size: 3.4cqi; }
.m-psy__stats b { font-family: var(--f-display); font-size: 6cqi; }

/* Temps d'écran (sombre) */
.m-st { color: #eef1ff; }
.m-st__day { margin: 0 0 4cqi; color: #9aa3c7; font-weight: 500; }
.m-st__ring { position: relative; width: 60cqi; margin: 0 auto 6cqi; }
.m-st__ring svg { width: 100%; transform: rotate(-90deg); }
.m-st__ring circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 11; }
.m-st__ring .m-st__arc { stroke: url(#grad-duo); stroke-linecap: round; stroke-dasharray: 89 100; }
.is-live .m-st__arc { animation: dash 1.6s var(--ease-out) both; }
@keyframes dash { from { stroke-dasharray: 0 100; } }
.m-st__ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.m-st__ring b { font-family: var(--f-display); font-size: 9cqi; letter-spacing: -.03em; }
.m-st__ring small { color: #9aa3c7; font-size: 3.6cqi; }
.m-st__list { display: grid; gap: 3.6cqi; margin: 0 0 5cqi; padding: 0; list-style: none; }
.m-st__list li { display: flex; align-items: center; gap: 3cqi; }
.m-st__list li > div { flex: 1; }
.m-st__list b { display: block; margin-bottom: 1.2cqi; font-weight: 500; font-size: 3.8cqi; }
.m-st__list i { display: block; width: var(--v); height: 1.4cqi; border-radius: 9px; background: linear-gradient(90deg, #8ea2ff, #c4ceff); }
.m-st__list small { color: #9aa3c7; font-size: 3.4cqi; }
.m-st__ic { width: 8cqi; height: 8cqi; border-radius: 2.4cqi; }
.m-st__ic--a { background: linear-gradient(135deg, #f5a3c7, #d4689b); }
.m-st__ic--b { background: linear-gradient(135deg, #ff7a7a, #e04848); }
.m-st__ic--c { background: linear-gradient(135deg, #ffb86b, #f08a4b); }
.m-st__ic--d { background: linear-gradient(135deg, #6fe3b0, #2bb07c); }
.m-st__focus { display: flex; justify-content: space-between; align-items: center; padding: 4cqi; border-radius: 5cqi; background: rgba(142, 162, 255, .12); box-shadow: 0 0 0 1px rgba(142, 162, 255, .25) inset; }
.m-st__focus b { display: block; } .m-st__focus small { color: #9aa3c7; font-size: 3.4cqi; }
.m-toggle { position: relative; width: 12cqi; height: 7cqi; border-radius: 99px; background: #3b4470; }
.m-toggle::after { content: ""; position: absolute; top: .8cqi; left: .8cqi; width: 5.4cqi; height: 5.4cqi; border-radius: 50%; background: #fff; transition: transform .3s; }
.m-toggle.is-on { background: #8ea2ff; } .m-toggle.is-on::after { transform: translateX(5cqi); }

/* Orthophonie */
.m-ortho { height: 100%; background: linear-gradient(180deg, #fff6ea, #fffaf3 60%); }
.m-ortho__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5cqi; }
.m-ortho__stars { color: #f5a04b; font-size: 5.6cqi; letter-spacing: .5cqi; } .m-ortho__stars em { font-style: normal; color: #e5d6c2; }
.m-ortho__lvl { padding: 1cqi 3cqi; border-radius: 99px; background: #fff; box-shadow: 0 0 0 1px #f1e3cf; font-weight: 600; font-size: 3.6cqi; }
.m-ortho h5 b { color: #e0782f; }
.m-ortho__play { display: flex; align-items: center; gap: 4cqi; margin: 7cqi 0; padding: 4cqi; border-radius: 6cqi; background: #fff; box-shadow: 0 10px 30px -12px rgba(224, 120, 47, .35); }
.m-play { display: grid; place-items: center; flex: none; width: 15cqi; height: 15cqi; border-radius: 50%; background: #e0782f; color: #fff; }
.m-play .icon { width: 7cqi; height: 7cqi; }
.m-wave { flex: 1; display: flex; align-items: center; gap: 1cqi; height: 15cqi; }
.m-wave i { flex: 1; height: var(--h); border-radius: 9px; background: #f5b27a; animation: wave 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -90ms); transform-origin: center; }
@keyframes wave { to { transform: scaleY(.45); } }
.m-ortho__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqi; }
.m-card-w { display: grid; justify-items: center; gap: 1cqi; padding: 7cqi 2cqi; border-radius: 6cqi; background: #fff; box-shadow: 0 0 0 1px #f1e3cf; }
.m-card-w b { font-family: var(--f-display); font-size: 7.4cqi; }
.m-card-w small { color: #a8977d; }
.m-card-w.is-ok { box-shadow: 0 0 0 .8cqi #2fb37d; background: #effaf5; }
.m-ortho__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6cqi; color: #1f9d6a; font-weight: 600; }

/* Jeu */
.m-game { height: 100%; background: radial-gradient(120% 60% at 50% 0%, #3b2a7a, #120f2e); color: #fff; }
.m-game__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5cqi; font-weight: 600; }
.m-game__top b { font-family: var(--f-display); font-size: 7cqi; }
.m-game__top span:last-child { color: #ff7a9c; }
.m-game__board { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2cqi; padding: 3cqi; border-radius: 5cqi; background: rgba(255, 255, 255, .06); }
.m-tile { aspect-ratio: 1; border-radius: 2.6cqi; box-shadow: inset 0 -1.2cqi 0 rgba(0, 0, 0, .2), inset 0 1cqi 0 rgba(255, 255, 255, .3); }
.m-tile--a { background: #ff7a9c; } .m-tile--b { background: #8ea2ff; } .m-tile--c { background: #ffd36b; } .m-tile--d { background: #6fe3b0; }
.m-tile.is-pop { animation: pop 1.4s ease-in-out infinite; }
@keyframes pop { 50% { transform: scale(1.12); box-shadow: 0 0 0 1.4cqi rgba(255, 255, 255, .35); } }
.m-game__bar { height: 2cqi; margin: 6cqi 0 2cqi; border-radius: 9px; background: rgba(255, 255, 255, .12); }
.m-game__bar i { display: block; width: var(--v); height: 100%; border-radius: 9px; background: linear-gradient(90deg, #ffd36b, #ff7a9c); }
.m-game p { margin: 0; color: #c9c3f0; text-align: center; }

/* CFA */
.m-cfa { flex-direction: column; background: #f5f6fb; }
.m-cfa__top { display: flex; align-items: center; gap: 2cqi; padding: 1.3cqi 2.4cqi; background: #fff; border-bottom: 1px solid #e8ebf4; }
.m-cfa__top .m-side__logo { margin: 0; color: #141a2e; }
.m-cfa__top nav { display: flex; gap: .6cqi; margin-left: 2cqi; flex: 1; }
.m-cfa__top nav span { padding: .7cqi 1.4cqi; border-radius: 99px; color: #6b7391; }
.m-cfa__top nav span.is-on { background: #e9f8f1; color: #1f7f57; font-weight: 600; }
.m-cfa__body { display: grid; grid-template-columns: 1.9fr 1fr; gap: 1.4cqi; padding: 2cqi 2.4cqi; flex: 1; min-height: 0; }
.m-legend { display: inline-flex; align-items: center; gap: .5cqi; color: #6b7391; font-size: 1cqi; }
.m-legend i { width: 1cqi; height: 1cqi; margin-left: .8cqi; border-radius: .3cqi; }
.m-legend i.e { background: #6d7ff5; } .m-legend i.n { background: #2fb37d; } .m-legend i.v { background: #f5a04b; }
.m-g__grid { display: grid; grid-template-columns: 8.5cqi repeat(10, 1fr); grid-template-rows: 2.2cqi repeat(5, 4.6cqi); gap: .7cqi .3cqi; align-items: center; }
.m-g__w { grid-row: 1; color: #a0a7c2; font-size: .9cqi; text-align: center; }
.m-g__who { grid-column: 1; line-height: 1.1; }
.m-g__who b { display: block; font-size: 1.1cqi; } .m-g__who small { font-size: .9cqi; }
.m-g__b { height: 3.4cqi; display: flex; align-items: center; padding: 0 .7cqi; border-radius: .7cqi; color: #fff; font-size: .9cqi; font-weight: 600; overflow: hidden; white-space: nowrap; }
.m-g__b--e { background: linear-gradient(90deg, #6d7ff5, #8ea2ff); }
.m-g__b--n { background: linear-gradient(90deg, #2fb37d, #6fe3b0); }
.m-g__b--v { background: linear-gradient(90deg, #f08a4b, #ffb86b); }
.m-qual__bar { height: 1cqi; margin-bottom: .9cqi; border-radius: 9px; background: #eef0f6; }
.m-qual__bar i { display: block; width: var(--v); height: 100%; border-radius: 9px; background: linear-gradient(90deg, #2fb37d, #6fe3b0); }
.m-qual p { margin: 0 0 1cqi; font-size: 1.1cqi; } .m-qual p b { font-family: var(--f-display); font-size: 1.8cqi; }
.m-qual ul { display: grid; gap: .7cqi; margin: 0; padding: 0; list-style: none; }
.m-qual li { display: flex; align-items: center; gap: .8cqi; font-size: 1cqi; color: #4a5070; }
.m-qual li .icon, .m-qual li > i { width: 1.5cqi; height: 1.5cqi; flex: none; border-radius: 50%; }
.m-qual li .icon { padding: .2cqi; background: #2fb37d; stroke: #fff; stroke-width: 3; }
.m-qual li > i { box-shadow: 0 0 0 1px #c9cee0 inset; }
.m-rdv p { margin: 0; display: flex; align-items: center; gap: 1cqi; }
.m-big { font-family: var(--f-display); font-size: 3.4cqi; color: #e0782f; line-height: 1; }

/* Coach */
.m-coach { flex-direction: column; padding: 2.2cqi 2.6cqi; background: #f7f7fb; }
.m-coach__head { display: flex; align-items: center; gap: 1.2cqi; margin-bottom: 1.8cqi; }
.m-coach__head > div { flex: 1; } .m-coach__head b { display: block; font-size: 1.6cqi; }
.m-coach__head .m-av { width: 4.4cqi; height: 4.4cqi; font-size: 1.4cqi; }
.m-coach__body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.4cqi; }
.m-radar { position: relative; display: grid; place-items: center; padding: 3cqi; }
.m-radar svg { width: 72%; overflow: visible; }
.m-radar__web polygon, .m-radar__axes line { fill: none; stroke: #e0e3ef; stroke-width: 1; }
.m-radar__b { fill: rgba(255, 184, 107, .18); stroke: #f5a04b; stroke-width: 1.5; stroke-dasharray: 4 3; }
.m-radar__a { fill: rgba(109, 127, 245, .22); stroke: #6d7ff5; stroke-width: 2; }
.m-radar__l { position: absolute; inset: 3cqi; }
.m-radar__l span { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); color: #4a5070; font-size: 1.05cqi; font-weight: 600; white-space: nowrap; }
.m-prog { display: grid; gap: 1.2cqi; margin: 0; padding: 0; list-style: none; }
.m-prog li { display: grid; grid-template-columns: 8cqi 1fr 2.4cqi; align-items: center; gap: 1cqi; font-size: 1.05cqi; }
.m-prog i { height: 1cqi; border-radius: 9px; background: #eef0f6; position: relative; overflow: hidden; }
.m-prog i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 9px; background: linear-gradient(90deg, #6d7ff5, #8ea2ff); }
.m-note { background: #fffaf2; box-shadow: 0 0 0 1px #f4e3c8; }
.m-note p { margin: .6cqi 0 0; color: #6b6150; font-size: 1.1cqi; }

/* Assistant IA */
.m-ai { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #1b3068, #142553); box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -30px #000; font-size: .95rem; }
.m-ai__head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.m-ai__head small { margin-left: auto; color: var(--vert); font-size: .8rem; }
.m-ai__head small::before { content: "● "; }
.m-ai__msgs { display: grid; gap: .9rem; padding: 1.3rem 1.2rem; }
.m-msg { margin: 0; max-width: 88%; padding: .85rem 1rem; border-radius: 18px; line-height: 1.5; }
.m-msg--me { justify-self: end; border-bottom-right-radius: 6px; background: var(--peri); color: var(--abysse); }
.m-msg--ai { border-bottom-left-radius: 6px; background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px var(--line) inset; color: var(--lait); }
.m-msg--ai p { margin: 0 0 .6rem; }
.m-msg--ai ul { display: grid; gap: .45rem; margin: 0 0 .8rem; padding: 0; list-style: none; color: var(--brume); }
.m-msg--ai li { display: flex; gap: .6rem; align-items: baseline; }
.m-msg--ai li i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.m-msg--ai li i.r { background: var(--rouge); } .m-msg--ai li i.o { background: var(--ambre); } .m-msg--ai li i.g { background: var(--vert); }
.m-msg--ai b { color: var(--lait); }
.m-ai__act { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 !important; }
.m-ai__act span { padding: .35rem .75rem; border-radius: 99px; background: rgba(142, 162, 255, .14); color: var(--peri-2); font-size: .82rem; }
.m-msg--typing { display: inline-flex; gap: 5px; padding: .9rem 1rem; }
.m-msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--abysse); opacity: .5; animation: typing 1.2s infinite; }
.m-msg--typing i:nth-child(2) { animation-delay: .15s; } .m-msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { opacity: 1; transform: translateY(-3px); } }
.m-ai__input { display: flex; align-items: center; justify-content: space-between; margin: 0 1.2rem 1.2rem; padding: .7rem .7rem .7rem 1.1rem; border-radius: 99px; background: rgba(13, 26, 58, .6); box-shadow: 0 0 0 1px var(--line) inset; color: var(--brume-2); }
.m-ai__input .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--lait); stroke: var(--abysse); }

/* Terminal d'audit */
.m-term { overflow: hidden; border-radius: 18px; background: #060914; box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -30px #000; font-family: var(--f-mono); font-size: .84rem; }
.m-term__bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--brume-2); font-size: .78rem; }
.m-term__body { padding: 1.2rem 1.3rem 1.4rem; }
.m-term__cmd { margin: 0 0 1rem; color: var(--lait); } .m-term__cmd b { color: var(--ambre); }
.m-term__list { display: grid; gap: .55rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.m-term__list li { display: grid; grid-template-columns: 82px 1fr auto; gap: .8rem; align-items: center; color: var(--brume); }
.m-term__list em { font-style: normal; color: var(--brume-2); font-size: .78rem; }
.m-term__s { padding: .15rem .4rem; border-radius: 5px; font-size: .7rem; font-weight: 600; text-align: center; }
.m-term__s--ok { background: rgba(111, 227, 176, .12); color: var(--vert); }
.m-term__s--warn { background: rgba(255, 184, 107, .14); color: var(--ambre); }
.m-term__s--crit { background: rgba(255, 122, 122, .15); color: var(--rouge); }
.js .m-term__list li { opacity: 0; transform: translateX(-8px); }
.is-live .m-term__list li { opacity: 1; transform: none; transition: opacity .4s, transform .4s var(--ease-out); transition-delay: calc(var(--i) * 280ms); }
.m-term__score { display: flex; align-items: center; gap: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-2); font-family: var(--f-text); }
.m-term__score small { display: block; color: var(--brume-2); font-size: .78rem; }
.m-term__score b { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--ambre); }
.m-term__score b.is-good { color: var(--vert); }
.m-term__arrow .icon { stroke: var(--brume-2); }

/* Retour vidéo de drone */
.hud { position: relative; overflow: hidden; border-radius: var(--r-l); aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -30px #000; container-type: inline-size; }
.hud__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.hud::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 1px, transparent 1px 3px), radial-gradient(closest-side, transparent 60%, rgba(0, 0, 0, .45)); pointer-events: none; }
.hud__svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hud__svg * { vector-effect: non-scaling-stroke; }
.hud__box { stroke: var(--ambre); stroke-dasharray: 5 4; animation: boxpulse 2s ease-in-out infinite; }
@keyframes boxpulse { 50% { opacity: .4; } }
.hud > div { position: absolute; z-index: 3; color: #fff; font-family: var(--f-mono); font-size: max(10px, 1.6cqi); letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.hud__tl { top: 6%; left: 6%; display: flex; align-items: center; gap: .5rem; }
.hud__rec { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: blinkrec 1.2s steps(1) infinite; }
@keyframes blinkrec { 50% { opacity: 0; } }
.hud__tr { top: 6%; right: 6%; }
.hud__bl { bottom: 6%; left: 6%; display: flex; gap: 1.4rem; }
.hud__br { bottom: 6%; right: 6%; color: var(--ambre-2) !important; }
.hud__tag { left: var(--x); top: var(--y); padding: .2rem .5rem; border-radius: 4px; background: var(--ambre); color: var(--abysse) !important; text-shadow: none !important; font-weight: 600; }

/* ---------- Concepts de sites ---------- */
.concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.concept figcaption { margin-top: 1.1rem; }
.concept figcaption b { display: block; font-family: var(--f-display); font-size: 1.2rem; }
.concept figcaption span { color: var(--brume); font-size: .92rem; }
.concept .mock-browser { transition: transform .7s var(--ease-out); }
.concept:hover .mock-browser { transform: translateY(-6px); }
.c-site { position: relative; height: 100%; overflow: hidden; font-size: 2.6cqi; }
.c-site h5 { margin: 0; color: inherit; }
.c-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 4cqi; padding: 3.4cqi 5cqi; font-size: 2.5cqi; }
.c-nav b { margin-right: auto; font-size: 3.4cqi; }
.c-pill { padding: 1.2cqi 2.6cqi; border-radius: 99px; background: currentColor; }
.c-btn { display: inline-block; padding: 2cqi 4cqi; border-radius: 99px; font-weight: 600; }
.c-oree { background: #f2ede4; color: #2b241c; font-family: Georgia, "Times New Roman", serif; }
.c-oree .c-nav b { font-style: italic; letter-spacing: .02em; }
.c-oree__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqi; padding: 3cqi 5cqi; align-items: center; }
.c-oree__hero p { margin: 0 0 2cqi; color: #8b7a63; font-size: 2.4cqi; font-family: var(--f-text); }
.c-oree__hero h5 { font-family: Georgia, serif; font-weight: 400; font-size: 6cqi; line-height: 1.05; margin-bottom: 4cqi; }
.c-oree .c-btn { background: #2b241c; color: #f2ede4; font-family: var(--f-text); }
.c-oree__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30cqi 30cqi 2cqi 2cqi; }
.c-oree__row { display: flex; gap: 5cqi; padding: 3cqi 5cqi; border-top: 1px solid #d8cfbf; color: #8b7a63; font-family: var(--f-text); font-size: 2.3cqi; }
.c-alt { color: #fff; font-family: var(--f-text); }
.c-alt__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-alt::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .55)); }
.c-nav--light .c-pill { background: #fff; color: #0e2a1f; }
.c-nav--light b { font-family: var(--f-display); font-stretch: 80%; letter-spacing: -.02em; font-size: 4cqi; }
.c-alt__hero { position: absolute; z-index: 2; left: 5cqi; right: 5cqi; bottom: 6cqi; }
.c-alt__hero h5 { max-width: 14ch; margin-bottom: 4cqi; font-family: var(--f-display); font-stretch: 80%; font-size: 8cqi; line-height: .95; letter-spacing: -.03em; }
.c-alt__search { display: flex; align-items: center; gap: 3cqi; padding: 1.6cqi 1.6cqi 1.6cqi 3cqi; border-radius: 99px; background: rgba(255, 255, 255, .95); color: #31443a; font-size: 2.3cqi; }
.c-alt__search span { display: flex; align-items: center; gap: 1cqi; flex: 1; }
.c-alt__search .icon { width: 2.6cqi; height: 2.6cqi; }
.c-alt__search b { padding: 1.6cqi 3.4cqi; border-radius: 99px; background: #0e2a1f; color: #fff; }
.c-lien { background: linear-gradient(160deg, #eef3f1, #f7f4ef); color: #23332e; font-family: var(--f-text); }
.c-lien .c-nav b { font-family: var(--f-display); }
.c-lien .c-pill { background: #2f5d50; color: #fff; }
.c-lien__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4cqi; padding: 3cqi 5cqi; align-items: center; }
.c-lien__hero p { margin: 0 0 1.6cqi; color: #2f5d50; font-weight: 600; font-size: 2.4cqi; }
.c-lien__hero h5 { margin-bottom: 2cqi; font-family: var(--f-display); font-size: 5.6cqi; line-height: 1.05; letter-spacing: -.02em; }
.c-lien__hero small { color: #5f6f69; font-size: 2.3cqi; }
.c-lien__book { padding: 3cqi; border-radius: 3cqi; background: #fff; box-shadow: 0 2cqi 6cqi -2cqi rgba(35, 51, 46, .25); font-size: 2.2cqi; }
.c-lien__book > b { display: block; margin-bottom: 2cqi; }
.c-lien__days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2cqi; margin-bottom: 2cqi; text-align: center; }
.c-lien__days span { padding: 1.2cqi 0; border-radius: 1.6cqi; background: #f1f4f2; line-height: 1.2; }
.c-lien__days span.is-on { background: #2f5d50; color: #fff; }
.c-lien__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqi; margin-bottom: 2.4cqi; }
.c-lien__slots span { padding: 1cqi 0; border-radius: 1.4cqi; box-shadow: 0 0 0 1px #d6e0dc inset; text-align: center; }
.c-lien__slots span.is-on { background: #e3efe9; box-shadow: 0 0 0 2px #2f5d50 inset; font-weight: 600; }
.c-lien__slots span.is-off { color: #b5bfbb; text-decoration: line-through; }
.c-lien .c-btn { display: block; background: #2f5d50; color: #fff; text-align: center; }

/* ==========================================================================
   AMBIANCE ET MOUVEMENT
   ========================================================================== */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--lait); mix-blend-mode: difference; }
  .cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(196, 206, 255, .5); transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s, border-color .35s; }
  .cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(142, 162, 255, .12); border-color: rgba(142, 162, 255, .6); }
}

/* Apparition au défilement : sobre, une seule fois */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 40ms); }
.js [data-split].is-visible .w > span { transform: none; }

/* ==========================================================================
   PRÉFÉRENCES D'ACCESSIBILITÉ (attributs posés sur <html>)
   ========================================================================== */
html[data-a11y-text="1"] { font-size: 112.5%; }
html[data-a11y-text="2"] { font-size: 125%; }
html[data-a11y-contrast="1"] {
  --brume: #e6eaf6; --brume-2: #d0d6ea; --line: rgba(255, 255, 255, .45); --line-2: rgba(255, 255, 255, .7);
}
html[data-a11y-contrast="1"] body::before, html[data-a11y-contrast="1"] .grain, html[data-a11y-contrast="1"] .hero__canvas { display: none; }
html[data-a11y-contrast="1"] body { background: #000; }
html[data-a11y-contrast="1"] .tile__media, html[data-a11y-contrast="1"] .page-hero__media { opacity: .25; }
html[data-a11y-contrast="1"] a { text-decoration: underline; }
html[data-a11y-contrast="1"] .footer-wordmark { -webkit-text-stroke-color: #fff; }
html[data-a11y-font="1"] body, html[data-a11y-font="1"] button, html[data-a11y-font="1"] input, html[data-a11y-font="1"] textarea,
html[data-a11y-font="1"] h1, html[data-a11y-font="1"] h2, html[data-a11y-font="1"] h3, html[data-a11y-font="1"] h4 {
  font-family: Verdana, Tahoma, "Segoe UI", sans-serif !important; font-stretch: 100% !important; letter-spacing: .01em !important;
}
html[data-a11y-spacing="1"] :where(p, li, a, span, label, dd, dt, summary) { letter-spacing: .12em !important; word-spacing: .16em !important; line-height: 1.8 !important; }
html[data-a11y-spacing="1"] p { margin-bottom: 2em; }
html[data-a11y-links="1"] a { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-a11y-motion="1"] { scroll-behavior: auto; }
html[data-a11y-motion="1"] *, html[data-a11y-motion="1"] *::before, html[data-a11y-motion="1"] *::after { transition: none !important; animation: none !important; }
html[data-a11y-motion="1"].js .reveal, html[data-a11y-motion="1"].js [data-split] .w > span,
html[data-a11y-motion="1"].js .hero__title .line > span, html[data-a11y-motion="1"].js .hero__lead, html[data-a11y-motion="1"].js .hero .btn-row,
html[data-a11y-motion="1"].js .hero__poles, html[data-a11y-motion="1"].js .hero__caption, html[data-a11y-motion="1"].js .m-term__list li { opacity: 1 !important; transform: none !important; }
html[data-a11y-motion="1"] .cursor { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js [data-split] .w > span, .js .hero__title .line > span, .js .hero__lead, .js .hero .btn-row, .js .hero__poles, .js .hero__caption, .js .m-term__list li { opacity: 1; transform: none; }
  .cursor { display: none !important; }
}

/* ==========================================================================
   ADAPTATIONS ÉCRANS
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-link { padding: 0 .6rem; font-size: .9rem; }
  .site-nav { gap: 1rem; }
}

@media (max-width: 1080px) {
  .nav-toggle {
    position: relative; display: inline-grid; place-content: center; gap: 7px; width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: var(--glass-2); cursor: pointer;
  }
  .nav-toggle__bar { display: block; width: 18px; height: 1.5px; background: var(--lait); transition: transform .4s var(--ease-out); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .header-tools { margin-left: auto; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 2rem; margin: 0;
    padding: 2rem var(--gutter) 3rem; overflow-y: auto; background: rgba(13, 26, 58, .97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s, transform .45s var(--ease-out), visibility 0s .45s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  html:not(.js) .site-nav { position: static; opacity: 1; visibility: visible; transform: none; background: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; min-height: 64px; padding: 0; font-family: var(--f-display); font-size: 1.7rem; font-weight: 550; color: var(--lait); }
  .nav-item.is-active > .nav-link::after { left: auto; right: 0; bottom: 50%; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; border: 1px solid var(--line); }
  .sub-list { position: static; width: 100%; display: none; padding: 0 0 1rem; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; backdrop-filter: none; }
  .nav-item.is-open .sub-list { display: block; }
  .nav-item--sub:hover .sub-list { display: none; }
  .nav-item--sub.is-open:hover .sub-list { display: block; }
  .nav-item--sub::after { display: none; }
  .nav-cta { align-self: flex-start; }
  body.nav-open { overflow: hidden; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { position: absolute; inset: 0; height: auto; z-index: -1; opacity: .55; }
  .hero__caption { display: none; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile--a { grid-column: span 6; grid-row: auto; min-height: 420px; }
  .tile--b, .tile--c, .tile--d, .tile--e, .tile--f { grid-column: span 3; }
  .tile--g { grid-column: span 6; }
  .showcase__panel { grid-template-columns: 1fr; }
  .showcase__text { max-width: 640px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .concepts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand__logo { height: 34px; }
  .split, .split--wide, .feature, .feature--rev, .process, .detail, .faq__inner, .contact-layout, .section-head--split { grid-template-columns: 1fr; }
  .feature--rev .feature__copy { order: 0; }
  .process__intro, .detail__aside, .faq__head, .contact-aside { position: static; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__list { grid-template-columns: 1fr 1fr; }
  .proof__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .row { grid-template-columns: 52px minmax(0, 1fr) 44px; }
  .row p { grid-column: 2 / 3; }
  .row .tile__go { grid-row: 1; grid-column: 3; }
  .partner { grid-template-columns: 1fr; gap: 1rem; }
  .row-preview { display: none; }
  .concepts { grid-template-columns: 1fr; }
  .checks--2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4, .form__row--2 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e, .tile--f, .tile--g { grid-column: 1 / -1; min-height: 300px; }
  .tile__code { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.5rem); }
  .hero__title { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero__scroll { display: none; }
  .proof__list { grid-template-columns: 1fr; }
  .proof__list li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .proof__list li:first-child { border-top: 0; }
  .page-hero__head { flex-direction: column; align-items: flex-start; }
  .stage { min-height: 0; }
  .stage .mock-phone { position: relative; right: auto; bottom: auto; width: 56%; margin: -30% 0 0 auto; transform: none; }
  .stage--phones { min-height: 0; }
  .stage--phones .mock-phone { width: 48%; }
  .footer-top { grid-template-columns: 1fr; }
  .faq__answer { padding-right: 0; }
  .mock-browser__bar { height: 30px; }
  .mock-dots i { width: 8px; height: 8px; }
  .mock-browser__url { font-size: 10px; height: 20px; }
  .btn { width: 100%; }
  .btn-row .btn, .nav-cta { width: auto; }
}

@media print {
  .site-header, .site-footer, .grain, .cursor, .hero__canvas, .cta, .modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Compléments pages intérieures ---------- */
.card__media { margin: -1.8rem -1.8rem 1.4rem; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.card__media .photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) brightness(.75); transition: transform 1s var(--ease-out), filter .6s; }
.card:hover .card__media .photo { transform: scale(1.05); filter: grayscale(0) brightness(.85); }
.card .icon-tile + .card__title { margin-top: 0; }
.card--media .icon-tile { margin-top: -3.4rem; position: relative; z-index: 1; }
.product { scroll-margin-top: calc(var(--header-h) + 1rem); }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.product__cat { color: var(--ambre); font-size: .9rem; font-weight: 500; }
.store-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.label-concept { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(255, 184, 107, .12); color: var(--ambre-2); font-size: .8rem; font-weight: 500; }
.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: ns; display: grid; gap: 1rem; }
.next-steps li { position: relative; padding-left: 2.6rem; counter-increment: ns; color: var(--brume); }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--line-2); color: var(--lait); font-size: .85rem; font-family: var(--f-mono); }
.next-steps b { color: var(--lait); display: block; }
.aside-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-m); background: rgba(20, 37, 83, .55); }
.aside-card h2, .aside-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.label-concept .icon { width: .9rem; height: .9rem; }
.concept figcaption .label-concept { margin-bottom: .6rem; }
.stage + .caption-note { margin-top: 2.5rem; }
.stage:has(.stage--phones) + .caption-note { margin-top: 4rem; }
