/* AADA Systems — styles du site (accueil, ETP, CoSaaS, pages légales) */

/* Polices auto-hébergées (SIL OFL) : aucun appel à un serveur tiers */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/inter-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/caveat-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, .t-light {
  --bg: #FBFBFD; --panel: #FFFFFF;
  --fg: #0B0D10; --fg2: #4E5560; --fg3: #646B76;
  --line: rgba(11, 13, 16, 0.10);
  --accent: #0B0D10; --on-accent: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.72);
  color-scheme: light;
}
/* ETP : graphite et jaune de signalisation */
.t-etp {
  --bg: #0E0F11; --panel: #16181B;
  --fg: #F2F3F4; --fg2: #A3A8AF; --fg3: #868C95;
  --line: rgba(255, 255, 255, 0.10);
  --accent: #FFD60A; --on-accent: #0E0F11;
  --glass: rgba(22, 24, 27, 0.72);
  color-scheme: dark;
}
/* CoSaaS : bleu nuit et bleu vif */
.t-cs {
  --bg: #050E22; --panel: #0B1836;
  --fg: #FFFFFF; --fg2: #A9B4CC; --fg3: #8492B0;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #116DFF; --on-accent: #FFFFFF;
  --glass: rgba(8, 18, 44, 0.70);
  color-scheme: dark;
}
:root {
  --ink: #0B0D10; --link: #0B57D0;
  --green: #10B981; --blue: #116DFF; --yellow: #FFD60A;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg); color: var(--fg);
  font-size: 1.0625rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.t-etp, .t-cs, .t-light { background: var(--bg); color: var(--fg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.skip { position: absolute; z-index: 300; left: 1rem; top: -4rem; padding: 0.75rem 1.25rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 0.95rem; transition: top 0.2s var(--ease); }
.skip:focus { top: 1rem; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--focus, var(--fg)); outline-offset: 3px; border-radius: 6px; }

/* Apparition au défilement (inactive sans JS) */
.js .rv { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; translate: 0 0; }
/* Panneaux et tuiles : la règle .js .rv écrasait leur transition de survol, qui sautait d'un coup. On y remet le soulèvement, sans le décalage d'apparition. */
.js .panel.rv { transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s; }
.js .tile.rv { transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s; }

/* ---------- Boutons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.pill:hover { transform: scale(1.04); }
.pill:active { transform: scale(0.98); }
.pill--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.pill--ghost:hover { border-color: var(--fg); }
.pill svg { width: 1em; height: 1em; transition: translate 0.3s var(--ease); }
.pill:hover svg, a:hover > .pill svg { translate: 3px 0; }

.tag { display: inline-flex; align-items: center; gap: 0.7em; font-weight: 600; font-size: 0.95rem; }
.tag img { width: 40px; height: 40px; border-radius: 10px; }
.kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 14px; z-index: 50; margin-top: 14px; padding-inline: var(--gutter); pointer-events: none; }
.nav__in {
  pointer-events: auto; max-width: 880px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
/* Logo AADA Systems : identique au site d'origine (Space Grotesk, italique gras + léger, carré vert) */
.wordmark { position: relative; font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-size: 1.18rem; line-height: 1; display: inline-flex; align-items: baseline; gap: 0.32em; }
.wordmark::after { content: ""; position: absolute; inset: -14px -6px; }
.wordmark b { font-weight: 700; font-style: italic; letter-spacing: -0.03em; }
.wordmark span { font-weight: 300; letter-spacing: 0.01em; }
.wordmark i { width: 0.4em; height: 0.4em; border-radius: 2px; background: var(--green); align-self: center; transform: translateY(-0.04em); flex: none; }
.nav__links { display: flex; gap: clamp(0.9rem, 2.4vw, 1.9rem); font-size: 0.92rem; font-weight: 500; color: var(--fg2); }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--fg); }
.nav .pill { padding: 0.6em 1.1em; font-size: 0.88rem; }
.pill__short { display: none; }
/* Barre de sections : remplace les liens du menu une fois le haut de page passé (site.js) */
.nav__mid { display: grid; align-items: center; justify-items: center; }
.nav__mid > * { grid-area: 1 / 1; transition: opacity 0.4s var(--ease), translate 0.4s var(--ease), visibility 0.4s; }
.nav__secs { position: relative; display: flex; gap: 0.1rem; font-size: 0.88rem; font-weight: 500; color: var(--fg2); opacity: 0; visibility: hidden; translate: 0 10px; }
.nav__secs a { position: relative; z-index: 1; padding: 0.42em 0.8em; border-radius: 999px; white-space: nowrap; transition: color 0.3s; }
.nav__secs a:hover, .nav__secs a[aria-current] { color: var(--fg); }
.nav__ind { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; opacity: 0; background: color-mix(in srgb, var(--accent) 20%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); transition: translate 0.45s var(--ease), width 0.45s var(--ease), opacity 0.3s; }
.nav--secs .nav__links { opacity: 0; visibility: hidden; translate: 0 -10px; }
.nav--secs .nav__secs { opacity: 1; visibility: visible; translate: 0 0; }
@media (max-width: 860px) { .nav__mid { display: none; } }

/* ---------- Menu mobile (site.js) : un bouton ouvre un panneau sous la pastille ---------- */
.nav__in { position: relative; }
.nav__menu { display: none; align-items: center; gap: 0.5em; min-height: 44px; min-width: 44px; padding: 0 0.95em; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background-color 0.3s, border-color 0.3s; }
.nav__menu:hover, .nav__menu[aria-expanded="true"] { border-color: var(--fg); }
.nav__menu svg { width: 18px; height: 18px; flex: none; }
.nav__menu .l1, .nav__menu .l2 { transform-origin: center; transform-box: fill-box; transition: transform 0.35s var(--ease); }
.nav__menu[aria-expanded="true"] .l1 { transform: translateY(3px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .l2 { transform: translateY(-3px) rotate(-45deg); }
.nav__panel { position: absolute; top: calc(100% + 10px); left: 0; right: 0; padding: 0.5rem; border-radius: 28px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45); pointer-events: auto; animation: fadein 0.3s var(--ease); }
.nav__panel[hidden] { display: none; }
.nav__panel a { display: flex; align-items: center; min-height: 48px; padding: 0 1rem; border-radius: 16px; font-weight: 600; font-size: 1.02rem; }
.nav__panel a:hover, .nav__panel a[aria-current] { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.nav__panel hr { border: 0; height: 1px; margin: 0.4rem 1rem; background: var(--line); }
.nav__panel hr + a, .nav__panel hr ~ a { min-height: 44px; font-weight: 500; font-size: 0.95rem; color: var(--fg2); }
@media (max-width: 860px) {
  .js .nav__menu { display: inline-flex; margin-left: auto; margin-right: -0.5rem; }
  .nav .pill { min-height: 44px; }
  /* Sans script, les liens restent atteignables : ils passent sur une seconde ligne */
  html:not(.js) .nav__in { flex-wrap: wrap; border-radius: 28px; padding-block: 0.5rem; }
  html:not(.js) .nav__links { display: flex; order: 3; width: 100%; justify-content: space-between; padding: 0 0.75rem 0.4rem; }
}
@media (max-width: 520px) {
  .pill__long { display: none; }
  .pill__short { display: inline; }
  .nav__menu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav__menu { padding: 0; width: 44px; }
}

/* ---------- Titres ---------- */
.h-xl { font-size: clamp(2.7rem, 8.2vw, 6.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; }
.h-lg { font-size: clamp(2rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.h-md { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--fg2); text-wrap: pretty; }
.grad { background: linear-gradient(100deg, var(--green) 0%, var(--blue) 55%, #7A5CFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.acc { color: var(--accent); }
.sec { padding-block: clamp(4rem, 10vw, 8rem); }

/* ---------- Hero accueil ---------- */
.hero { position: relative; padding-top: clamp(4rem, 10vw, 7.5rem); text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 0.6em; font-size: 0.85rem; font-weight: 500; color: var(--fg2); padding: 0.4em 0.9em 0.4em 0.5em; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
.hero .h-xl { margin: 1.4rem auto 0; max-width: 14ch; }
.hero .lede { margin: 1.5rem auto 0; max-width: 46ch; }
.cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero .cta { justify-content: center; }

.stage { position: relative; margin-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(4rem, 10vw, 9rem); }
.ribbon { position: absolute; left: 0; right: 0; top: 22%; bottom: 0; transform: skewY(-7deg); transform-origin: 0 50%; overflow: hidden; }
.ribbon canvas { position: absolute; inset: -12%; width: 124%; height: 124%; filter: blur(34px) saturate(1.25); }
.stage__in { position: relative; perspective: 1700px; }
.device {
  position: relative; margin-inline: auto; width: min(100%, 1060px);
  border-radius: clamp(10px, 1.6vw, 20px); overflow: hidden; background: #fff;
  border: 1px solid rgba(128, 134, 145, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 40px 90px -20px rgba(0, 0, 0, 0.5);
  transform-origin: 50% 0;
}
.phone { border-radius: clamp(14px, 2.4vw, 30px); overflow: hidden; background: #000; border: clamp(3px, 0.5vw, 6px) solid var(--ink); box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6); }

/* ---------- Accueil : un grand panneau par produit ---------- */
.panels { display: grid; gap: clamp(1rem, 2vw, 1.5rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.panel { position: relative; display: block; isolation: isolate; border-radius: clamp(28px, 4vw, 48px); border: 1px solid var(--line); transition: transform 0.6s var(--ease); will-change: transform; }
/* L'ombre est dessinée une fois pour toutes sur un calque à part : au survol seule son opacité change, plus aucun flou à recalculer à chaque image */
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.6s var(--ease); }
.panel:hover { transform: translateY(-6px); }
.panel:hover::before { opacity: 1; }
.panel__in {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3rem);
  border-radius: inherit; padding: clamp(2rem, 5vw, 4.5rem) 0 0 clamp(1.5rem, 5vw, 4.5rem);
  min-height: clamp(420px, 48vw, 600px);
}
.panel__txt { padding-bottom: clamp(2rem, 5vw, 4.5rem); align-self: center; position: relative; z-index: 1; }
.panel .h-lg { margin-top: 1.4rem; }
.panel p { margin-top: 1rem; color: var(--fg2); max-width: 36ch; font-size: 1.08rem; }
.panel .pill { margin-top: 1.75rem; }
.panel__shot { align-self: end; }
.panel__shot img { width: 118%; max-width: none; border-radius: 16px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: -30px -10px 80px -20px rgba(0, 0, 0, 0.5); transition: translate 0.8s var(--ease); }
.panel:hover .panel__shot img { translate: -14px -10px; }
.panel__glow { position: absolute; width: 70%; aspect-ratio: 1; right: -15%; top: -40%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 65%); }
.panel.t-etp .panel__in::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }

/* ---------- Scène épinglée : le texte avance, l'écran change ---------- */
.scene__scroll { height: 420vh; }
.scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.scene__glow { position: absolute; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px; right: -20%; top: -30%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 66%); }
.scene__grid { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.scene .h-md { margin-top: 1rem; }
.steps { margin-top: 2rem; display: grid; gap: 0.25rem; list-style: none; }
.step { position: relative; padding: 0.9rem 0 0.9rem 1.25rem; opacity: 0.55; transition: opacity 0.5s var(--ease); }
.step::before { content: ""; position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem; width: 3px; border-radius: 3px; background: var(--line); transition: background 0.5s; }
.step__b { display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.step__b:focus-visible { outline-offset: 6px; }
.step:hover { opacity: 0.8; }
.step.on, .step.on:hover { opacity: 1; }
.step.on::before { background: color-mix(in srgb, var(--accent) 28%, var(--line)); }
/* Jauge de progression : se remplit au fil du défilement dans l'étape active */
.step::after { content: ""; position: absolute; left: 0; top: 0.9rem; bottom: 0.9rem; width: 3px; border-radius: 3px; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.step.on::after { transform: scaleY(1); }
/* Barre de progression de la section, sous la liste des étapes */
.steps::after { content: ""; display: block; height: 3px; margin-top: 1rem; border-radius: 3px; background: linear-gradient(var(--accent), var(--accent)) left / calc(var(--lp, 1) * 100%) 100% no-repeat, var(--line); }
.step b { display: block; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.step span { display: block; max-height: 0; overflow: hidden; color: var(--fg2); font-size: 0.98rem; transition: max-height 0.6s var(--ease), margin 0.6s var(--ease); }
.step.on span { max-height: 6em; margin-top: 0.3rem; }
.views { position: relative; aspect-ratio: var(--ar, 16 / 10); scale: calc(0.88 + 0.12 * var(--in, 1)); opacity: calc(0.25 + 0.75 * var(--in, 1)); translate: 0 calc((0.5 - var(--p, 0.5)) * 36px); transform-origin: 50% 60%; }
.views img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7); opacity: 0; scale: 0.96; translate: 0 22px; transition: opacity 0.7s var(--ease), scale 0.7s var(--ease), translate 0.7s var(--ease); }
.views img.on { opacity: 1; scale: 1; translate: 0 0; }
/* Mode piloté par la molette : la position vient de site.js, on ne garde qu'un lissage court */
.scrub .views img { scale: 1; translate: 0 0; transform-origin: 50% 0; will-change: transform; transition: transform 0.22s linear, opacity 0.22s linear, filter 0.22s linear; }

/* ---------- Grille de tuiles ---------- */
.bento { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.tile { position: relative; isolation: isolate; will-change: transform; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); padding: clamp(1.4rem, 2.6vw, 2.2rem); min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform 0.5s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.5s var(--ease); }
.tile:hover::after { opacity: 1; }
.tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot, color-mix(in srgb, var(--green) 18%, transparent)), transparent 60%); }
.tile:hover::before { opacity: 1; }
.tile > * { position: relative; }
.tile h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.tile p { margin-top: 0.5rem; color: var(--fg2); font-size: 0.98rem; max-width: 42ch; }
.tile__art { margin-bottom: auto; padding-bottom: 1.5rem; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
.tile--inv { background: var(--ink); --focus: #fff; color: #fff; border-color: transparent; --spot: rgba(16, 185, 129, 0.35); }
.tile--inv p { color: #A8AEB8; }
.tile .big { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }

.people { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.people span { padding: 0.45em 0.95em; border-radius: 999px; background: color-mix(in srgb, var(--fg) 6%, transparent); font-size: 0.9rem; font-weight: 500; animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.1s); }
@keyframes bob { 50% { translate: 0 -6px; } }
.mailchip { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.55em 1em; border-radius: 14px; background: color-mix(in srgb, var(--fg) 6%, transparent); font-weight: 600; font-size: 0.95rem; }
.mailchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }

/* ---------- Sélecteur à segments ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; cursor: pointer; padding: 0.55em 1.1em; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--fg2); transition: background 0.35s var(--ease), color 0.35s; }
.seg button[aria-pressed="true"] { background: var(--seg-on, var(--fg)); color: var(--seg-on-fg, var(--bg)); }
[data-show] { display: none; }
[data-state="a"] [data-show="a"], [data-state="b"] [data-show="b"], [data-state="c"] [data-show="c"] { display: block; animation: fadein 0.5s var(--ease); }
@keyframes fadein { from { opacity: 0; translate: 0 8px; } }

/* ---------- Appel final + pied ---------- */
.end { padding: 0 var(--gutter) clamp(2rem, 5vw, 4rem); }
.end__in { position: relative; overflow: hidden; max-width: var(--wrap); margin-inline: auto; border-radius: clamp(28px, 4vw, 48px); background: var(--ink); --focus: #fff; color: #fff; text-align: center; padding: clamp(3.5rem, 9vw, 7rem) var(--gutter); border: 1px solid var(--line); }
.end__in canvas { position: absolute; inset: -20%; width: 140%; height: 140%; filter: blur(60px); opacity: 0.55; }
.end__in > :not(canvas) { position: relative; }
.end p { margin: 1.2rem auto 0; max-width: 40ch; color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; }
.end .pill { margin-top: 2rem; }
.end--plain .end__in { background: var(--accent); color: var(--on-accent); --focus: var(--on-accent); border: 0; }
.end--plain p { color: inherit; }
.end--plain .pill { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.foot { padding: 1.5rem var(--gutter) 2.5rem; }
.foot__in { max-width: var(--wrap); margin-inline: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.85rem; color: var(--fg3); }
.foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot a:hover { color: var(--fg); }

/* ---------- Hero des pages produit ---------- */
.ph { position: relative; overflow: clip; padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.ph__in { position: relative; }
.ph .h-xl { margin-top: 1.5rem; max-width: 13ch; font-size: clamp(2.6rem, 7.2vw, 5.6rem); }
.ph .lede { margin-top: 1.5rem; max-width: 50ch; }
.ph .stage { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.ph__glow { position: absolute; width: 90vw; height: 90vw; max-width: 1200px; max-height: 1200px; right: -25%; top: -35%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), rgba(122, 92, 255, 0.16) 45%, transparent 68%); }

/* ETP : trame technique discrète + filet jaune */
.ph__grid { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.rule { display: block; width: 56px; height: 4px; background: var(--accent); }
/* La trame part du bord droit : le schéma, calé à 72 px du bord, tombe pile sur les lignes */
.t-etp .ph { --cell: clamp(44px, 5vw, 72px); }
.t-etp .ph__grid { background-position: right top; background-size: var(--cell) var(--cell); }

/* ETP : début de schéma de principe dessiné sur la trame */
.ph__sketch { position: absolute; right: var(--cell); top: var(--cell); width: calc(var(--cell) * 6); height: calc(var(--cell) * 5); pointer-events: none; overflow: visible; display: none; }
@media (min-width: 760px) { .ph__sketch { display: block; } }
.ph__sketch .sk { fill: none; stroke: rgba(242, 243, 244, 0.62); stroke-width: 1.6; stroke-linejoin: round; }
.ph__sketch .sk--thin { stroke-width: 1.3; }
.ph__sketch .sk--bg { fill: var(--bg); }
.ph__sketch .sk-hot { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.ph__sketch .sk-cold { fill: none; stroke: #7F9CC4; stroke-width: 2; stroke-dasharray: 7 6; }
.ph__sketch .sk--fill { fill: currentColor; stroke-dasharray: none; stroke-width: 1; }
.ph__sketch .sk-hot.sk--fill { fill: var(--accent); }
.ph__sketch .sk-cold.sk--fill { fill: #7F9CC4; }
.ph__sketch text { fill: var(--fg3); font: 500 10px ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace; letter-spacing: 0.02em; text-anchor: middle; }
.ph__sketch .sk-l { text-anchor: start; fill: var(--fg2); }
.ph__sketch .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sk-draw 1.1s var(--ease) var(--t, 0s) forwards; }
.ph__sketch .sk-f { animation: sk-in 0.6s var(--ease) var(--t, 0s) both; }
.ph__sketch .sk-ghost { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 5 6; opacity: 0.75; animation: flow 1.2s linear infinite reverse; }
.ph__sketch .sk-handle { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; }
.ph__sketch .sk-cursor path { fill: none; stroke: #fff; stroke-width: 1.2; }
.ph__sketch .sk-cursor rect { fill: none; stroke: var(--accent); stroke-width: 1.4; }
.ph__sketch .sk-cursor { animation: sk-nudge 3.2s ease-in-out infinite; }
.ph__sketch .sk-tip rect { fill: var(--accent); }
.ph__sketch .sk-tip text { fill: var(--on-accent); font-weight: 700; font-size: 9px; }
/* Chaudière : flamme en contour façon néon, et sa lueur qui éclaire le corps de chauffe */
.ph__sketch .sk-glow { opacity: 0.7; transform-box: fill-box; transform-origin: center; animation: sk-glow 2.4s ease-in-out infinite; }
.ph__sketch .sk-lit { animation: sk-lit 2.4s ease-in-out infinite; }
.ph__sketch .sk-flame { fill: none; stroke: #FFB347; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; filter: drop-shadow(0 0 2px #FFC56B) drop-shadow(0 0 7px rgba(255, 140, 30, 0.85)); animation: sk-neon 4.2s ease-in-out infinite; }
@keyframes sk-neon { 0%, 100% { opacity: 1; transform: scale(1); } 46% { opacity: 0.92; transform: scale(1.025); } 50% { opacity: 0.72; } 52% { opacity: 1; } 56% { opacity: 0.8; } 58% { opacity: 1; } }
@keyframes sk-glow { 0%, 100% { opacity: 0.55; transform: scale(0.93); } 40% { opacity: 1; transform: scale(1.07); } 70% { opacity: 0.7; transform: scale(0.98); } }
@keyframes sk-lit { 0%, 100% { stroke: rgba(255, 196, 120, 0.6); } 40% { stroke: rgba(255, 190, 90, 0.95); } }
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
@keyframes sk-in { from { opacity: 0; } }
@keyframes sk-nudge { 50% { transform: translate(-5px, 0); } }

/* CoSaaS : note manuscrite et sa traduction dans l'outil */
.memo { position: absolute; right: max(4vw, calc(50% - 590px)); top: clamp(4.5rem, 9vw, 7rem); font-size: clamp(0.66rem, 1.3vw, 1rem); width: 15.6em; display: none; pointer-events: none; }
@media (min-width: 760px) { .memo { display: block; } }
.memo__note { position: relative; padding: 1.15em 1.2em 1.5em; rotate: 3deg; color: #2B2410; font-family: "Caveat", "Segoe Print", cursive; background: linear-gradient(170deg, #FFEB8C, #FFD964); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 28px 40px -18px rgba(0, 0, 0, 0.65); border-radius: 2px 2px 2px 26px / 2px 2px 2px 8px; animation: memo-in 0.9s var(--ease) 0.5s both; }
.memo__note::before { content: ""; position: absolute; left: 50%; top: -11px; width: 84px; height: 22px; translate: -50% 0; rotate: -2deg; background: rgba(255, 255, 255, 0.28); backdrop-filter: blur(2px); border-left: 1px dashed rgba(255, 255, 255, 0.35); border-right: 1px dashed rgba(255, 255, 255, 0.35); }
.memo__note b { display: block; font-size: 1.7em; line-height: 1; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: rgba(17, 109, 255, 0.75); }
.memo__note ul { list-style: none; margin-top: 0.5em; display: grid; gap: 0.1em; font-size: 1.32em; line-height: 1.15; font-weight: 500; }
.memo__note li { padding-left: 1.05rem; position: relative; animation: sk-in 0.5s var(--ease) both; }
.memo__note li::before { content: "–"; position: absolute; left: 0; }
.memo__note li:nth-child(1) { animation-delay: 1.2s; }
.memo__note li:nth-child(2) { animation-delay: 1.5s; }
.memo__note li:nth-child(3) { animation-delay: 1.8s; }
.memo__note li:nth-child(4) { animation-delay: 2.1s; }
.memo__note li.done { color: rgba(43, 36, 16, 0.55); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.memo__note li.done::before { content: "✓"; color: #0E8F5F; text-decoration: none; }
.memo__chip { display: inline-flex; align-items: center; gap: 0.5rem; margin: 1.1em 0 0 0.3em; padding: 0.6em 1em; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); font-size: 0.8em; font-weight: 600; color: var(--fg); white-space: nowrap; animation: fadein 0.6s var(--ease) 2.7s both; }
.memo__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
@keyframes memo-in { from { opacity: 0; rotate: -4deg; translate: 0 -18px; } }

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs div { padding: 1.1rem 1.25rem 1.2rem 0; }
.specs div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.specs dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); }
.specs dd { margin-top: 0.35rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }

.pains { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.pains h3 { margin-top: 1.1rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.pains p { margin-top: 0.5rem; color: var(--fg2); }

/* ETP : poste seul ou réseau local */
.net { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.net__txt p { margin-top: 1rem; color: var(--fg2); max-width: 44ch; font-size: 1.08rem; }
.net .seg { margin-top: 1.75rem; --seg-on: var(--accent); --seg-on-fg: var(--on-accent); }
.net__pane { min-height: 9.5rem; margin-top: 1.25rem; }
.net__pane b { display: block; font-size: 1.15rem; }
.net__fig { border-radius: 28px; background: var(--panel); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }
.net__fig svg { display: block; width: 100%; height: auto; }
.net__fig .box { fill: #1F2226; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
.net__fig .main { stroke: var(--accent); stroke-width: 2; }
.net__fig text { fill: #F2F3F4; font: 600 13px "Inter", sans-serif; text-anchor: middle; }
.net__fig .sub { fill: #8A9098; font-weight: 500; font-size: 11px; }
.net__fig .wire { stroke: var(--accent); stroke-width: 2; fill: none; stroke-dasharray: 5 7; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.net__fig .peer, .net__fig .wire { opacity: 0; transition: opacity 0.6s var(--ease); }
.net__fig .solo { transition: opacity 0.4s; }
[data-state="b"] .net__fig .peer, [data-state="b"] .net__fig .wire { opacity: 1; }
[data-state="b"] .net__fig .solo { opacity: 0; }

/* CoSaaS : du bureau à la tournée (carte, puis itinéraire qui se trace) */
.trip .grid path { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; fill: none; }
.trip .pt { fill: #5C8DF0; opacity: 0.9; transition: opacity 0.6s var(--ease); }
.trip .pt--p { fill: none; stroke: #8FA6D6; stroke-width: 2; }
.trip .stop { fill: #5C8DF0; stroke: transparent; stroke-width: 2; transition: r 0.5s var(--ease), fill 0.5s, stroke 0.5s; }
.trip .num { font-size: 12px; font-weight: 700; fill: #fff; }
.trip .home { fill: #fff; }
.trip .route { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.5s var(--ease); }
.trip .car { fill: #fff; stroke: var(--accent); stroke-width: 3.5; opacity: 0; offset-path: path("M70 235 C100 200 120 170 150 150 S215 100 250 95 S320 120 345 150 S385 200 400 230"); offset-rotate: 0deg; offset-distance: 0%; }
.trip .ring { fill: none; stroke: #8FB2FF; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 1.8s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.8); opacity: 0; } }
.trip .link { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; fill: none; }
.trip .card rect { fill: #13244D; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; }
.trip .card text { text-anchor: start; }
.trip .card .card__t { font-size: 13px; font-weight: 700; }
.trip .card .card__s { font-size: 10.5px; font-weight: 500; fill: #8FA6D6; }
.trip .card .card__l { font-size: 10.5px; font-weight: 500; fill: #A9B4CC; }
.trip .card .card__v { font-size: 11px; font-weight: 700; text-anchor: end; }
.trip .card__rule { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
[data-state="a"] .trip .card { animation: fadein 0.6s var(--ease) both; }
[data-state="b"] .trip .pt { opacity: 0.25; }
[data-state="b"] .trip .stop { r: 12px; fill: var(--accent); stroke: #fff; }
[data-state="b"] .trip .stop:nth-of-type(8) { transition-delay: 0.25s; }
[data-state="b"] .trip .stop:nth-of-type(9) { transition-delay: 0.5s; }
[data-state="b"] .trip .stop:nth-of-type(10) { transition-delay: 0.75s; }
[data-state="b"] .trip .route { stroke-dashoffset: 0; transition-duration: 2s; }
[data-state="b"] .trip .car { offset-distance: 100%; animation: drive 2.6s var(--ease) both; }
@keyframes drive { from { offset-distance: 0%; opacity: 0; } 12%, 88% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }

/* ---------- Captures agrandissables ---------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--focus, var(--fg)); outline-offset: 3px; }
.lb { position: fixed; inset: 0; z-index: 200; display: none; overflow: auto; background: rgba(5, 7, 10, 0.9); backdrop-filter: blur(10px); cursor: zoom-out; }
.lb.open { display: grid; place-items: center; animation: sk-in 0.25s ease both; }
.lb img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); cursor: zoom-in; }
.lb.full { display: block; }
.lb.full img { max-width: none; max-height: none; margin: 24px; cursor: zoom-out; }
.lb__x { position: fixed; top: 16px; right: 20px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(20, 22, 26, 0.8); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lb__x:hover { background: rgba(255, 255, 255, 0.18); }

/* CoSaaS : trois téléphones */
.phones { margin-top: clamp(2.5rem, 6vw, 4rem); display: flex; justify-content: center; align-items: center; gap: clamp(0.75rem, 3vw, 2.5rem); }
.phones .phone { width: clamp(96px, 22vw, 250px); }
.phones .phone:nth-child(2) { width: clamp(110px, 26vw, 290px); }

/* ---------- Accueil : les deux logos entourés de fragments d'interface ---------- */
.hero .stage { padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(1rem, 3vw, 2.75rem); max-width: 1120px; margin-inline: auto; font-size: clamp(0.68rem, 0.5rem + 0.62vw, 1rem); }
.mosaic__logos { grid-column: 2; grid-row: 1; display: flex; gap: 1.1em; padding: 1.1em; border-radius: 2.4em; background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.9); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 30px 70px -30px rgba(11, 13, 16, 0.45); }
.app { display: grid; justify-items: center; gap: 0.15em; padding: 0.9em 1.1em 0.8em; border-radius: 1.6em; text-align: center; transition: background 0.3s, transform 0.4s var(--ease); }
.app:hover { background: rgba(11, 13, 16, 0.05); transform: translateY(-4px); }
.app img { width: 6.6em; height: 6.6em; margin-bottom: 0.7em; border-radius: 22%; box-shadow: 0 16px 30px -12px rgba(11, 13, 16, 0.5); }
.app b { font-size: 1.25em; font-weight: 700; letter-spacing: -0.02em; }
.app span { font-size: max(0.85em, 11px); color: var(--fg2); white-space: nowrap; }
.mosaic__side { display: grid; gap: 1em; }
.mosaic__side--etp { grid-column: 1; grid-row: 1; justify-items: end; }
.mosaic__side--cs { grid-column: 3; grid-row: 1; justify-items: start; }
.frag { text-align: left; width: min(100%, 19em); padding: 1.1em 1.2em; border-radius: 1.3em; background: var(--panel); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 26px 50px -24px rgba(11, 13, 16, 0.6); animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); }
.mosaic__side--etp .frag--in { margin-right: 2.2em; }
.mosaic__side--cs .frag--in { margin-left: 2.2em; }
.frag__k { display: block; font-size: 0.72em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); }
.frag__rows { margin-top: 0.7em; display: grid; grid-template-columns: 1fr auto; gap: 0.3em 1em; font-size: 0.9em; color: var(--fg2); }
.frag__rows dd { text-align: right; font-variant-numeric: tabular-nums; }
.frag__sum { margin-top: 0.7em; padding-top: 0.7em; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1em; font-size: 0.9em; }
.frag__sum b { font-size: 1.2em; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.t-etp .frag__sum b { color: var(--accent); }
.frag__t { display: block; margin-top: 0.55em; font-size: 1.15em; font-weight: 700; letter-spacing: -0.01em; }
.frag__s { display: block; font-size: 0.85em; color: var(--fg2); }
.stagebar { display: flex; gap: 3px; }
.stagebar i { width: 1.5em; height: 0.36em; border-radius: 99px; background: var(--accent); }
.stagebar i:last-child { background: var(--line); }
.gantt { margin-top: 0.8em; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.5em 0.9em; font-size: 0.82em; color: var(--fg2); }
.gantt i { height: 0.62em; border-radius: 99px; background: rgba(255, 255, 255, 0.24); margin-left: calc(var(--s) * 1%); width: calc(var(--w) * 1%); }
.gantt i.hot { background: var(--accent); }
.frag--chip { width: auto; display: inline-flex; align-items: center; gap: 0.6em; padding: 0.65em 1.1em; border-radius: 99px; font-size: 0.88em; font-weight: 600; white-space: nowrap; }
.frag--chip i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--green); }
.frag__map { display: block; width: 100%; height: auto; margin-top: 0.6em; }
.frag__map .road { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.frag__map .home { fill: #fff; }
.frag__map .stops circle { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.frag__map .nums text { fill: #fff; font: 700 10px "Inter", sans-serif; text-anchor: middle; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; font-size: clamp(0.72rem, 3.2vw, 0.9rem); }
  .mosaic__logos { grid-column: 1 / -1; justify-self: center; }
  .mosaic__side--etp, .mosaic__side--cs { grid-row: 2; justify-items: stretch; }
  .mosaic__side--etp { grid-column: 1; }
  .mosaic__side--cs { grid-column: 2; }
  .mosaic__side .frag--in { margin-inline: 0; }
  .frag { width: 100%; padding: 0.95em 1em; }
  .frag--chip { width: auto; justify-self: start; }
}

/* ---------- Film de présentation (site.js) ---------- */
.film { aspect-ratio: 16 / 9; background: var(--ink); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__btn { position: absolute; right: clamp(10px, 1.6vw, 18px); bottom: clamp(10px, 1.6vw, 18px); display: inline-flex; align-items: center; gap: 0.55em; padding: 0.65em 1.05em 0.65em 0.85em; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(11, 13, 16, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: inherit; font-size: 0.875rem; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color 0.25s, border-color 0.25s, color 0.25s, opacity 0.3s; }
.film__btn:hover, .film__btn:focus-visible { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.film__btn svg { width: 1.15em; height: 1.15em; flex: none; }
.film--sound .film__btn { opacity: 0; pointer-events: none; }
@media (max-width: 520px) { .film__btn { font-size: 0.8125rem; } }

/* ---------- Pied de page : bouton cookies ---------- */
.foot button { background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 860px), (pointer: coarse) {
  .foot { padding-top: 0.5rem; }
  .foot__in { row-gap: 0; }
  .foot a, .foot button { display: inline-flex; align-items: center; min-height: 44px; }
  .foot nav { column-gap: 1.25rem; row-gap: 0; }
  .seg button { min-height: 44px; }
  .film__btn { min-height: 44px; }
}
.foot button:hover { color: var(--fg); }
/* Petits écrans : les trois choix restent sur une seule ligne, à largeur égale, au lieu de passer à la ligne dans la pastille */
@media (max-width: 560px) {
  .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; gap: 2px; }
  .seg button { padding: 0.6em 0.25em; font-size: clamp(0.78rem, 3.7vw, 0.92rem); white-space: nowrap; text-align: center; }
}

/* ---------- Bandeau de consentement ---------- */
.consent { position: fixed; z-index: 150; left: 50%; bottom: 16px; translate: -50% 0; width: min(calc(100% - 2rem), 780px); padding: 1.1rem 1.25rem; border-radius: 22px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.45); }
.consent[hidden] { display: none; }
.consent__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.consent__body { flex: 1 1 320px; font-size: 0.9rem; color: var(--fg2); }
.consent__body strong { display: block; margin-bottom: 0.2rem; font-size: 1rem; color: var(--fg); }
.consent__body a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: flex; gap: 0.5rem; }
.consent .pill, .legal .pill { padding: 0.65em 1.2em; font-size: 0.9rem; cursor: pointer; }

/* ---------- Pages légales ---------- */
.lg-head { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.lg-head .h-lg { margin-top: 1rem; }
.lg-head .lede { margin-top: 1.25rem; max-width: 58ch; }
.legal { max-width: 56ch; padding-bottom: clamp(4rem, 8vw, 6rem); font-size: 1rem; line-height: 1.65; }
.legal h2 { margin-top: 2.75rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.legal h3 { margin-top: 1.75rem; font-size: 1.1rem; font-weight: 650; }
.legal p, .legal ul, .legal ol { margin-top: 0.9rem; color: var(--fg2); }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li + li { margin-top: 0.4rem; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.legal a.pill, .legal button.pill { text-decoration: none; color: var(--fg); }
.legal code { padding: 0.1em 0.4em; border-radius: 6px; background: color-mix(in srgb, var(--fg) 7%, transparent); font: 0.88em ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--fg); }
.legal dl { margin-top: 1rem; display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); border-top: 1px solid var(--line); }
.legal dt, .legal dd { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.legal dt { padding-right: 1rem; color: var(--fg3); font-size: 0.92rem; }
.legal dd { color: var(--fg); font-weight: 500; }
.legal__table-wrap { margin-top: 1.1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; }
.legal th { font-weight: 600; color: var(--fg); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.legal td { color: var(--fg2); border-top: 1px solid var(--line); }
.legal .todo { padding: 0.1em 0.45em; border-radius: 6px; background: #FFF1B8; color: #5C4400; font-weight: 600; font-size: 0.9em; }
.legal__updated { margin-top: 3rem !important; font-size: 0.88rem; color: var(--fg3) !important; }
@media (max-width: 560px) {
  .legal dl { grid-template-columns: minmax(0, 1fr); }
  .legal dt { padding-bottom: 0; border-bottom: 0; }
  .legal dd { padding-top: 0.15rem; }
}

@media (max-width: 860px) {
  .js .nav__links { display: none; }
  .panel__in { grid-template-columns: minmax(0, 1fr); padding: 2rem 0 0 1.5rem; }
  .panel__txt { padding: 0 1.5rem 0 0; }
  .panel__shot img { width: 108%; }
  .scene__grid { grid-template-columns: minmax(0, 1fr); }
  .scene__grid > :first-child { order: 2; }
  .scene .cta { display: none; }
  /* Mobile : l'écran suivant glisse à l'intérieur du cadre, le texte de l'étape fond en dessous */
  .views { overflow: hidden; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.7); }
  .views img, .scrub .views img { border: 0; border-radius: 0; box-shadow: none; }
  .steps { margin-top: 1.25rem; gap: 0; }
  .step { grid-area: 1 / 1; padding-block: 0.4rem; transition: opacity 0.4s var(--ease), translate 0.5s var(--ease); }
  .step:not(.on) { opacity: 0; translate: 0 14px; pointer-events: none; transition-duration: 0.2s, 0.5s; }
  .step.on { transition-delay: 0.18s; }
  .step span, .step.on span { max-height: none; margin-top: 0.3rem; }
  .step::before, .step::after { top: 0.4rem; bottom: 0.4rem; }
  .steps::after { grid-row: 2; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile { grid-column: auto !important; min-height: 210px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pains, .net { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .rv { opacity: 1; translate: 0 0; }
  .ph__sketch .draw { stroke-dashoffset: 0; }
}
