/* AquaCréneaux — site vitrine — design system
   Base claire, accent bleu employé avec parcimonie, produit au centre. */

:root {
  /* Encres */
  --ink-900: #0b1218;
  --ink-800: #16232d;
  --ink-700: #2d3e4a;
  --ink-500: #62737f;
  --ink-400: #8a98a3;

  /* Surfaces */
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --foam-50: #fbfcfd;
  --foam-100: #f4f6f8;
  --foam-200: #e9edf1;
  --line: rgba(11, 18, 24, 0.09);
  --line-strong: rgba(11, 18, 24, 0.16);

  /* Bleu AquaCréneaux — accent */
  --sea-700: #0a4f7a;
  --sea-600: #0d6299;
  --sea-500: #1279b8;
  --sea-400: #4ba3d8;
  --sea-100: #e4f0f9;
  --sea-50: #f1f7fc;

  /* États */
  --teal-600: #0b7a6f;
  --teal-500: #0d9488;
  --teal-50: #e8f6f4;
  --buoy-600: #b3520c;
  --buoy-500: #dd6b13;
  --buoy-50: #fdf3e8;

  --text: var(--ink-800);
  --text-dim: var(--ink-500);
  --shadow: 0 2px 6px rgba(11, 18, 24, .04), 0 12px 32px -14px rgba(11, 18, 24, .16);
  --shadow-lg: 0 4px 12px rgba(11, 18, 24, .05), 0 40px 80px -40px rgba(11, 18, 24, .30);
  --focus: 0 0 0 3px rgba(18, 121, 184, .32);

  --cta-bg: #0d6299;
  --cta-bg-hover: #ea580c;
  --brand-aqua: #1a6fa3;
  --brand-orange: #ea580c;
  --hover-orange: #c2410c;
  --hover-orange-bg: rgba(234, 88, 12, .08);
  --cta-fg: #ffffff;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Inter, Arial, sans-serif;

  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink-900: #f2f6f9; --ink-800: #e3eaef; --ink-700: #c6d2da; --ink-500: #93a2ad; --ink-400: #76858f; --bg: #0a0e12; --bg-raised: #12191f;
    --foam-50: #0d1319; --foam-100: #151d24; --foam-200: #1d262e;
    --line: rgba(233, 240, 245, 0.12); --line-strong: rgba(233, 240, 245, 0.22);
    --sea-700: #8cc4e6; --sea-600: #6cb2dd; --sea-500: #4fa1d5; --sea-400: #3a8ec4;
    --sea-100: #14293a; --sea-50: #101c26;
    --teal-600: #6fd6c9; --teal-500: #4cc3b4; --teal-50: #10241f;
    --buoy-600: #f5b57a; --buoy-500: #e79a4f; --buoy-50: #241a10;
    --shadow: 0 2px 8px rgba(0,0,0,.4), 0 16px 40px -20px rgba(0,0,0,.7);
    --shadow-lg: 0 4px 14px rgba(0,0,0,.5), 0 48px 90px -46px rgba(0,0,0,.85);
    --focus: 0 0 0 3px rgba(79,161,213,.45);
    --cta-bg: #1279b8; --cta-bg-hover: #ea580c; --cta-fg: #ffffff;
    --brand-aqua: #5aa9dc; --brand-orange: #f97316; --hover-orange: #fb923c; --hover-orange-bg: rgba(249, 115, 22, .12);
  }
}
:root[data-theme="dark"] {
  --ink-900: #f2f6f9; --ink-800: #e3eaef; --ink-700: #c6d2da; --ink-500: #93a2ad; --ink-400: #76858f; --bg: #0a0e12; --bg-raised: #12191f;
  --foam-50: #0d1319; --foam-100: #151d24; --foam-200: #1d262e;
  --line: rgba(233, 240, 245, 0.12); --line-strong: rgba(233, 240, 245, 0.22);
  --sea-700: #8cc4e6; --sea-600: #6cb2dd; --sea-500: #4fa1d5; --sea-400: #3a8ec4;
  --sea-100: #14293a; --sea-50: #101c26;
  --teal-600: #6fd6c9; --teal-500: #4cc3b4; --teal-50: #10241f;
  --buoy-600: #f5b57a; --buoy-500: #e79a4f; --buoy-50: #241a10;
  --shadow: 0 2px 8px rgba(0,0,0,.4), 0 16px 40px -20px rgba(0,0,0,.7);
  --shadow-lg: 0 4px 14px rgba(0,0,0,.5), 0 48px 90px -46px rgba(0,0,0,.85);
  --focus: 0 0 0 3px rgba(79,161,213,.45);
  --cta-bg: #1279b8; --cta-bg-hover: #ea580c; --cta-fg: #ffffff;
  --brand-aqua: #5aa9dc; --brand-orange: #f97316; --hover-orange: #fb923c; --hover-orange-bg: rgba(249, 115, 22, .12);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
/* height:auto est indispensable : sans lui, les attributs width/height des
   balises <img> s'appliquent tels quels et déforment l'image. */
img, svg { display: block; max-width: 100%; height: auto; }
/* Les maquettes animées masquent leurs éléments via l'attribut hidden : sans
   cette règle, un display:flex d'auteur l'emporterait sur la feuille du
   navigateur et l'élément resterait visible. */
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
::selection { background: var(--sea-100); color: var(--sea-700); }

h1, h2, h3, h4 {
  font-family: var(--sans); font-weight: 600; margin: 0; color: var(--ink-900);
  letter-spacing: -.025em; text-wrap: balance; line-height: 1.1;
}
p { margin: 0; }
.lede { color: var(--text-dim); font-size: 1.14rem; line-height: 1.55; max-width: 58ch; }

.eyebrow {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea-600); font-weight: 600; display: inline-block;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer;
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn-cta { background: var(--cta-bg); color: var(--cta-fg); }
.btn-cta:hover { background: var(--cta-bg-hover); }
.btn-ghost { background: transparent; color: var(--ink-800); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand-orange); color: var(--hover-orange); }
.btn-plain { background: transparent; color: var(--sea-600); padding: 12px 6px; font-weight: 500; white-space: normal; text-align: left; }
.btn-plain:hover { color: var(--hover-orange); }
.btn-plain .chev { transition: transform .18s var(--ease); }
.btn-plain:hover .chev { transform: translateX(3px); }
.btn-lg { font-size: 1rem; padding: 14px 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1120px; margin: 0 auto; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand-word { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-word .a, .foot-brand .a { color: var(--brand-aqua); }
.brand-word .c, .foot-brand .c { color: var(--brand-orange); }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.nav-links a.link {
  text-decoration: none; font-size: .92rem; color: var(--text-dim); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.nav-links a.link:hover { color: var(--hover-orange); background: var(--hover-orange-bg); }
.nav-links a.link.current { color: var(--ink-900); font-weight: 500; }
.nav-links .btn { font-size: .9rem; padding: 9px 18px; }
.nav-links .btn-ghost { margin-left: 8px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border: none; background: transparent; border-radius: 10px; cursor: pointer;
}
.nav-toggle:hover { background: var(--foam-100); }
.nav-toggle .bar { position: relative; display: block; width: 18px; height: 1.5px; background: var(--ink-800); border-radius: 2px; transition: background .2s ease; }
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink-800); border-radius: 2px;
  transition: transform .22s var(--ease);
}
.nav-toggle .bar::before { top: -5px; }
.nav-toggle .bar::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--sea-400) 16%, transparent), transparent 70%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 0 24px; text-align: center; }
.hero-eyebrow {
  display: inline-block; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea-600); font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  color: var(--ink-900); font-size: clamp(2.35rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.038em;
  max-width: 19ch; margin: 0 auto; font-weight: 600;
}
.hero h1 em { font-style: normal; color: var(--sea-600); }
/* Surligneur tracé à main levée, qui se dessine de gauche à droite à l'arrivée sur la page */
.hero h1 .hl {
  position: relative; isolation: isolate; white-space: nowrap;
  color: inherit; background: none; padding: 0 .06em;
}
.hero h1 .hl::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -.14em; right: -.18em; top: 34%; bottom: -.02em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 60' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='0'%3E%3Cstop offset='0' stop-color='%23fdba74'/%3E%3Cstop offset='.55' stop-color='%23fb923c'/%3E%3Cstop offset='1' stop-color='%23f97316'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M4 31 C2 17 12 8.5 32 7.5 C78 5.5 128 5 176 3.5 C214 2.3 252 1.8 278 3 C293 3.8 299 13 298 26 C297 42 288 51.5 268 53 C226 55.5 180 56 132 57.5 C92 58.8 56 59.4 30 59.2 C12 59 5 47 4 31 Z'/%3E%3Cpath fill='%23f97316' fill-opacity='.32' d='M150 15 C190 12.5 234 10 264 10.8 C282 11.3 290 18 289 28 C288 38 279 43.5 263 44.2 C226 45.5 190 46.5 156 48 C145 48.5 140 40 141 31 C142 22 145 15.4 150 15 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .58; transform: rotate(-1.4deg); transform-origin: left center;
  clip-path: inset(0 100% 0 0);
  animation: hlDraw 1.05s cubic-bezier(.62, 0, .3, 1) .45s forwards;
}
@keyframes hlDraw { to { clip-path: inset(0 0 0 0); } }
:root[data-theme="dark"] .hero h1 .hl::before { opacity: .5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl::before { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .hl::before { animation: none; clip-path: none; } }
/* Texte en dégradé de bleu */
.hero h1 .grad {
  background-image: linear-gradient(95deg, #0a4f7a 0%, #1279b8 45%, #3fa3dc 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
:root[data-theme="dark"] .hero h1 .grad { background-image: linear-gradient(95deg, #6cb2dd 0%, #4fa1d5 45%, #8fd0f2 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .grad { background-image: linear-gradient(95deg, #6cb2dd 0%, #4fa1d5 45%, #8fd0f2 100%); } }

.hero .lede { color: var(--text-dim); max-width: 60ch; margin: 26px auto 0; font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

.hero.compact { padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px); }
.hero.compact .hero-inner { text-align: left; }
.hero.compact h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 20ch; margin-left: 0; }
.hero.compact .lede { margin-left: 0; margin-right: 0; }
.hero.compact .hero-cta { justify-content: flex-start; }
.hero-crumb { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 16px; }
.hero-crumb a { color: var(--sea-600); text-decoration: none; }
.hero-crumb a:hover { text-decoration: underline; }

/* Scène produit du hero */
.hero-stage { margin-top: clamp(40px, 6vw, 68px); position: relative; }
.hero-stage::after {
  content: ""; position: absolute; left: 50%; bottom: -60px; transform: translateX(-50%);
  width: 70%; height: 120px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sea-500) 18%, transparent), transparent);
  filter: blur(20px);
}

/* ---------- Rythme des sections ---------- */
.section { padding: clamp(72px, 9.5vw, 128px) 0; }
.section.tight { padding: clamp(56px, 7vw, 92px) 0; }
.section.soft { background: var(--foam-50); }
.section.line-top { border-top: 1px solid var(--line); }
.section-head { max-width: 46ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > div + .lede, .section-head .lede { margin-top: 20px; }
.section-head h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); letter-spacing: -.033em; margin-top: 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head.wide { max-width: 56ch; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   MAQUETTES PRODUIT — le vocabulaire visuel de l'application
   ============================================================ */

/* Fenêtre applicative flottante */
.app-window {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
@keyframes slotIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Séquence animée du hero ---------- */
.stage {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(18px, 3vw, 34px); align-items: start;
  max-width: 1000px; margin: 0 auto;
}
.stage-admin { position: relative; text-align: left; }
.stage-user { position: relative; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.stage-caption {
  display: flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin-bottom: 12px; justify-content: flex-start;
}
.stage-caption .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sea-500); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
.stage-toasts { margin-top: 14px; min-height: 84px; }
.stage-hours {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px;
  padding: 12px 16px; border-radius: 14px; background: var(--foam-100); font-size: .84rem; color: var(--text-dim);
}
.stage-hours b { color: var(--ink-900); font-variant-numeric: tabular-nums; font-weight: 600; }
.stage-hours .bump { animation: bump .6s var(--ease) both; }
@keyframes bump { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.stage-steps { display: flex; gap: 6px; justify-content: center; margin-top: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.stage-step {
  font-size: .76rem; color: var(--ink-400); padding: 6px 12px; border-radius: 999px; border: 1px solid transparent;
  transition: color .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.stage-step.on { color: var(--sea-600); background: var(--sea-50); border-color: color-mix(in srgb, var(--sea-500) 25%, transparent); }

/* ---------- Piliers ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 48px); }
.pillar { position: relative; padding-top: 26px; border-top: 1px solid var(--line-strong); }
.pillar .num { font-size: .76rem; font-weight: 600; letter-spacing: .12em; color: var(--sea-600); }
.pillar h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); margin-top: 14px; letter-spacing: -.028em; }
.pillar p { margin-top: 12px; color: var(--text-dim); font-size: .97rem; }

/* ---------- Avant / après ---------- */
.shift { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(18px, 3vw, 40px); align-items: center; }
.shift-card { border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); background: var(--bg-raised); }
.shift-card.before { background: var(--foam-100); box-shadow: none; }
.shift-card.after { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--sea-500) 25%, transparent); }
.shift-card h3 { font-size: 1.05rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.shift-card .sub { font-size: .82rem; color: var(--text-dim); margin-top: 6px; }
.scatter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.scatter span {
  font-size: .84rem; padding: 7px 13px; border-radius: 10px; background: var(--bg-raised);
  border: 1px solid var(--line); color: var(--text-dim);
}
.chain { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.chain-item {
  display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-800);
  padding: 10px 14px; border-radius: 10px; background: var(--sea-50); border: 1px solid color-mix(in srgb, var(--sea-500) 16%, transparent);
}
.chain-item .n { width: 20px; height: 20px; border-radius: 50%; background: var(--sea-600); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.shift-arrow { color: var(--ink-400); display: grid; place-items: center; }
.shift-arrow svg { width: 26px; height: 26px; }

/* ---------- Flux temps réel ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow-step { position: relative; padding: 0 12px; text-align: center; }
.flow-step::before {
  content: ""; position: absolute; top: 19px; left: -50%; right: 50%; height: 1px; background: var(--line-strong);
}
.flow-step:first-child::before { display: none; }
.flow-ico {
  position: relative; width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 12px;
  background: var(--bg-raised); border: 1px solid var(--line); color: var(--sea-600);
  display: grid; place-items: center; z-index: 2;
  transition: border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.flow-ico svg { width: 18px; height: 18px; }
.flow-step.on .flow-ico { background: var(--sea-600); border-color: var(--sea-600); color: #fff; transform: scale(1.1); }
.flow-step h4 { font-size: .92rem; letter-spacing: -.018em; }
.flow-step p { font-size: .82rem; color: var(--text-dim); margin-top: 6px; }

/* ---------- Grille de fonctionnalités ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--bg-raised); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; transition: background .25s var(--ease); }
.feature:hover { background: var(--foam-50); }
.f-icon { width: 26px; height: 26px; color: var(--sea-600); }
.feature h3 { font-size: 1rem; letter-spacing: -.022em; }
.feature p { color: var(--text-dim); font-size: .9rem; line-height: 1.5; }
.feature .pill {
  align-self: flex-start; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--bg-raised); background: var(--ink-900); padding: 3px 9px; border-radius: 999px; margin-top: -4px;
}

/* ---------- Blocs à deux colonnes ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.wide-left { grid-template-columns: 1.05fr .95fr; }
.split.wide-right { grid-template-columns: .95fr 1.05fr; }
.split-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.033em; margin-top: 14px; }
.split-copy .lede { margin-top: 20px; }
.check-list { margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.check-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; color: var(--ink-700); }
.check-list svg { flex: none; width: 17px; height: 17px; color: var(--teal-500); margin-top: 4px; }

/* ---------- Étapes numérotées ---------- */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: clamp(16px, 3vw, 32px); padding: 30px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-size: 1.5rem; font-weight: 600; color: var(--sea-500); letter-spacing: -.03em; line-height: 1.2; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -.025em; }
.step p { color: var(--text-dim); max-width: 62ch; }
.step-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag { font-size: .76rem; padding: 5px 11px; border-radius: 999px; background: var(--foam-100); color: var(--ink-700); }

/* ---------- Constat / enjeux ---------- */
.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stake { background: var(--bg-raised); padding: 28px 26px; }
.stake .num { color: var(--sea-600); font-size: .78rem; font-weight: 600; letter-spacing: .1em; }
.stake h3 { font-size: 1.02rem; margin-top: 10px; letter-spacing: -.02em; }
.stake p { margin-top: 8px; color: var(--text-dim); font-size: .9rem; }

/* ---------- Mobile mockup ---------- */
.iphone-wrap { position: relative; margin: 0 auto; width: 292px; max-width: 100%; }
.iphone {
  position: relative; width: 100%; aspect-ratio: 292 / 596; border-radius: 52px;
  background: linear-gradient(155deg, #43484e, #15171a 58%, #2b2e33);
  padding: 12px; box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.1);
}
.iphone::before { content: ""; position: absolute; left: -3px; top: 116px; width: 3px; height: 26px; background: #1b1d20; border-radius: 2px 0 0 2px; }
.iphone::after { content: ""; position: absolute; left: -3px; top: 156px; width: 3px; height: 50px; background: #1b1d20; border-radius: 2px 0 0 2px; }
.iphone-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--foam-50); box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); }
.iphone-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; background: #0a0a0a; border-radius: 14px; z-index: 5; }
.iphone-screen img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.iphone-wrap::after {
  content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sea-500) 16%, transparent), transparent 70%);
}
/* Écran mobile reconstitué en HTML */
.caption { text-align: center; font-size: .76rem; color: var(--ink-400); margin-top: 16px; letter-spacing: .02em; }

/* ---------- Écrans de l'application (reconstitution de la version actuelle) ----------
   L'écran est dessiné à la largeur réelle de l'app (430 px) avec ses vraies valeurs,
   puis réduit à la taille du téléphone (--k, recalculé en JS). Couleurs figées :
   un écran d'application ne suit pas le thème du site. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 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: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.demo-phone { position: relative; }
.iphone-screen { --k: .6233; }
.ax-app {
  position: absolute; top: 0; left: 0; width: 430px; height: calc(100% / var(--k));
  transform: scale(var(--k)); transform-origin: 0 0; overflow: hidden;
  display: flex; flex-direction: column; background: #fafafa; color: #262626; text-align: left;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; letter-spacing: normal;
}
.ax-app svg { display: block; flex: none; }
.ax-status { flex: none; height: 50px; background: #b7d6ee; }
.ax-top {
  flex: none; height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  background: #b7d6ee; position: relative; z-index: 2;
  box-shadow: 0 10px 24px 6px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
}
.ax-top .hb, .ax-top .ic { width: 36px; height: 36px; display: grid; place-items: center; color: #262626; }
.ax-top .hb svg, .ax-top .ic svg { width: 22px; height: 22px; }
.ax-top .tt { flex: 1; font-size: 19px; font-weight: 700; color: #171717; }
.ax-viewport { position: relative; flex: 1; overflow: hidden; }
.ax-track { position: absolute; top: 0; left: 0; right: 0; transition: transform 1s cubic-bezier(.62, .02, .18, 1); }
.ax-body { padding: 12px 10px 28px; }

.ax-hello { background: #dbeeff; border: 1px solid rgba(23,23,23,.1); border-radius: 14px; padding: 24px 20px; margin-bottom: 14px; color: #171717; }
.ax-hello .d { font-size: 12px; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.ax-hello .h { font-size: 22.4px; font-weight: 800; line-height: 1.2; }
.ax-hello .s { font-size: 13.6px; opacity: .85; margin-top: 4px; color: #262626; }

.ax-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.ax-stat { background: #fff; border: 1px solid rgba(23,23,23,.1); border-radius: 10px; padding: 14px 12px; text-align: center; }
.ax-stat .n { font-size: 25.6px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.ax-stat .n.blue { color: #1a6fa3; }
.ax-stat .n.teal { color: #0d9488; }
.ax-stat .n.green { color: #16a34a; }
.ax-stat .l { font-size: 9.92px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #737373; margin-top: 8px; line-height: 1.35; }
.ax-bump { animation: axBump .6s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes axBump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.ax-card { background: #fff; border: 1px solid rgba(23,23,23,.1); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.ax-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ax-card-t { display: flex; align-items: center; gap: 8px; font-size: 14.4px; font-weight: 700; color: #171717; }
.ax-card-t svg { width: 18px; height: 18px; }
.ax-card-d { font-size: 14.4px; font-weight: 700; color: #1a6fa3; }

.ax-next { display: flex; align-items: center; gap: 14px; background: #eaf3fd; border: 1px solid #d6e6f7; border-radius: 10px; padding: 12px 14px; }
.ax-tile { width: 46px; height: 46px; border-radius: 10px; background: #2b6aa3; color: #fff; display: grid; place-items: center; flex: none; }
.ax-tile svg { width: 24px; height: 24px; }
.ax-next .t { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #171717; }
.ax-next .t svg { width: 16px; height: 16px; }
.ax-next .p { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #525252; margin-top: 4px; }
.ax-next .p svg { width: 15px; height: 15px; }

.ax-count { display: inline-block; background: #dcfce7; color: #14532d; border-radius: 20px; padding: 3px 10px; font-size: 11.2px; font-weight: 700; margin: -2px 0 12px; }
.ax-slots { display: flex; flex-direction: column; gap: 8px; }
.ax-slot {
  --pc: #0891b2; --pb: #cffafe; --pt: #0e7490;
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px;
  border: 1.5px dashed var(--pc); max-height: 96px; overflow: hidden;
  transition: transform .25s ease, opacity .45s ease, max-height .55s ease, padding .55s ease, margin .55s ease, border-width .55s ease;
}
.ax-slot::before { content: ""; position: absolute; inset: 0; border-radius: 8px; background: repeating-linear-gradient(135deg, var(--pb) 0, var(--pb) 4px, #fff 4px, #fff 8px); }
.ax-slot > * { position: relative; z-index: 1; }
.ax-slot.tour { --pc: #16a34a; --pb: #dcfce7; --pt: #166534; }
.ax-slot.nen { --pc: #0891b2; --pb: #cffafe; --pt: #0e7490; }
.ax-slot .m { flex: 1; min-width: 0; }
.ax-slot .dt { font-size: 15px; font-weight: 700; color: #171717; }
.ax-slot .hr { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--pt); margin-top: 2px; }
.ax-slot .hr svg, .ax-slot .pl svg { width: 15px; height: 15px; }
.ax-slot .pl { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #525252; margin-top: 3px; }
.ax-slot.tapped { transform: scale(.965); }
.ax-slot.gone { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: -8px; border-width: 0; }
.ax-badge { flex: none; padding: 2px 8px; border-radius: 20px; font-size: 10.4px; font-weight: 700; white-space: nowrap; }
.ax-badge.mns { background: #ffedd5; color: #c2410c; }
.ax-badge.bnssa { background: #ccfbf1; color: #0b7c72; }
.ax-more { margin-top: 12px; background: #dcfce7; border: 1px solid #dcfce7; border-radius: 8px; padding: 8px; text-align: center; font-size: 12.48px; font-weight: 600; color: #16a34a; }
.ax-empty { padding: 20px 12px; border: 1.5px dashed rgba(23,23,23,.14); border-radius: 8px; text-align: center; font-size: 13px; color: #737373; }

/* Alerte push reçue par l'agent quand un créneau est publié */
.ax-push {
  position: absolute; top: 58px; left: 12px; right: 12px; z-index: 6;
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 24px;
  background: rgba(246,246,248,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.04); color: #171717;
}
.ax-push img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.ax-push .b { flex: 1; min-width: 0; }
.ax-push .h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #6b6b6b; }
.ax-push .h b { color: #171717; font-weight: 600; }
.ax-push .t { font-size: 15.5px; font-weight: 600; margin-top: 2px; }
.ax-push .x { font-size: 14.5px; color: #262626; margin-top: 1px; line-height: 1.35; }
.ax-push.enter { animation: axPush .55s cubic-bezier(.22, .61, .36, 1) both; }
.ax-push.leave { animation: axPushOut .4s ease both; }
@keyframes axPush { from { opacity: 0; transform: translateY(-40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes axPushOut { to { opacity: 0; transform: translateY(-30px) scale(.97); } }

/* Réservation confirmée, telle que la liste « Mes réservations » l'affiche */
.ax-res { background: #f2f2f2; border: 1px solid rgba(23,23,23,.1); border-left: 3px solid #0d9488; border-radius: 8px; padding: 12px 14px; }
.ax-res .top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(23,23,23,.1); }
.ax-res .dt { font-size: 15px; font-weight: 700; color: #1a6fa3; }
.ax-res .tm { font-size: 13px; color: #737373; }
.ax-res .row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #262626; }
.ax-enter { animation: axIn .45s cubic-bezier(.22, .61, .36, 1) both; }

/* Fenêtre « Confirmer la réservation » */
.ax-modal { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.ax-modal.enter { animation: axFade .22s ease both; }
.ax-modal.enter .ax-sheet { animation: axIn .3s cubic-bezier(.22, .61, .36, 1) both; }
.ax-sheet { width: 100%; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.ax-mh { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(23,23,23,.1); color: #171717; }
.ax-mh svg { width: 18px; height: 18px; }
.ax-mh b { flex: 1; font-size: 14.4px; font-weight: 700; }
.ax-mh .x { font-size: 22px; line-height: 1; color: #737373; }
.ax-mb { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ax-recap { background: #fafafa; border: 1.5px solid #f2f2f2; border-radius: 8px; padding: 12px 14px; font-size: 14px; line-height: 1.95; color: #262626; }
.ax-recap b { font-weight: 700; color: #171717; }
.ax-owner { background: #eff6ff; border: 1.5px solid #f2f2f2; border-radius: 8px; padding: 10px 12px; }
.ax-owner .k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #737373; }
.ax-owner .v { display: block; font-size: 15.2px; font-weight: 700; color: #1a6fa3; margin-top: 2px; }
.ax-mf { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; background: #fafafa; border-top: 1px solid rgba(23,23,23,.1); }
.ax-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; transition: transform .15s ease, filter .15s ease; }
.ax-btn svg { width: 15px; height: 15px; }
.ax-btn.ghost { background: #fafafa; border: 1.5px solid rgba(23,23,23,.1); color: #262626; }
.ax-btn.go { background: #ee6a2b; color: #fff; }
.ax-btn.pressed { transform: scale(.93); filter: brightness(.9); }
@keyframes axFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes axIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* Indicateur tactile : un appui, puis un glissement vers le haut */
.touch {
  position: absolute; left: 50%; bottom: 84px; width: 40px; height: 40px; border-radius: 50%;
  pointer-events: none; z-index: 8; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,.18) 62%, transparent);
  box-shadow: 0 0 0 1.5px rgba(11,18,24,.18), 0 6px 18px -6px rgba(11,18,24,.5);
  transform: translate(-50%, 0) scale(.72);
}
.touch.swipe { animation: touchSwipe 1.55s cubic-bezier(.62, .02, .18, 1) both; }
.touch.tap { animation: touchTap 1.15s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes touchTap {
  0%   { opacity: 0; transform: translate(-50%, 16px) scale(.8); }
  22%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
  42%  { opacity: 1; transform: translate(-50%, 0) scale(.74); }
  62%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -6px) scale(.9); }
}
@keyframes touchSwipe {
  0%   { opacity: 0; transform: translate(-50%, 20px) scale(.72); }
  14%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
  26%  { opacity: 1; transform: translate(-50%, 0) scale(.88); }
  74%  { opacity: 1; transform: translate(-50%, -132px) scale(.88); }
  100% { opacity: 0; transform: translate(-50%, -160px) scale(.8); }
}

/* Légendes synchronisées avec le défilement */
.demo-steps { list-style: none; counter-reset: demo; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.demo-steps li {
  counter-increment: demo; position: relative; padding: 14px 16px 14px 46px; border-radius: 12px;
  transition: background .45s var(--ease), opacity .45s var(--ease);
  opacity: .45;
}
.demo-steps li::before {
  content: counter(demo); position: absolute; left: 14px; top: 15px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .66rem; font-weight: 700; color: var(--text-dim);
  background: var(--foam-200); transition: background .45s var(--ease), color .45s var(--ease);
}
.demo-steps li.on { opacity: 1; background: var(--bg-raised); }
.demo-steps li.on::before { background: var(--sea-600); color: #fff; }
.demo-steps .d { display: block; font-size: .94rem; font-weight: 600; color: var(--ink-900); letter-spacing: -.02em; }
.demo-steps .t { display: block; font-size: .86rem; color: var(--text-dim); margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
    .touch { display: none; }
  .demo-steps li { opacity: 1; }
}

/* Titre sur deux colonnes, pour laisser toute la largeur au visuel dessous */
.section-head.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); max-width: none; align-items: start; }
.section-head.split-head h2 { margin-top: 14px; }
.section-head.split-head .lede { margin-top: 0; }
.section-head.split-head .check-list { margin-top: 22px; }

/* Le cadre ne doit jamais se dimensionner d'après l'écran mis à l'échelle qu'il contient :
   sinon la colonne s'élargit, le zoom recalculé la conforte et la page déborde. */
.app-window { min-width: 0; contain: inline-size; }
.split > *, .stage > *, .comm-grid > * { min-width: 0; }

/* ---------- Écrans administrateur (reconstitution de la version actuelle) ----------
   Dessinés à une largeur de référence (data-base) puis mis à l'échelle par zoom en JS,
   pour garder les vraies tailles de l'app tout en laissant la hauteur suivre le contenu. */
.ax-admin {
  width: 720px; zoom: .78; background: #fafafa; color: #262626; text-align: left;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.4; letter-spacing: normal; -webkit-font-smoothing: antialiased;
}
.ax-admin svg { display: block; flex: none; }
.adm-top { height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #b7d6ee; position: relative; z-index: 1; box-shadow: 0 10px 24px 6px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06); }
.adm-top .hb, .adm-top .ic { width: 36px; height: 36px; display: grid; place-items: center; color: #262626; }
.adm-top .hb svg, .adm-top .ic svg { width: 20px; height: 20px; }
.adm-top .brand { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-top .brand img { width: 34px; height: 34px; border-radius: 9px; }
.adm-top .brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.adm-top .brand .a { color: #1a6fa3; }
.adm-top .brand .c { color: #ea580c; }
.adm-top .brand small { display: block; font-size: 11.5px; color: #525252; margin-top: 2px; }
.adm-body { padding: 16px; }
.adm-card { background: #fff; border: 1px solid rgba(23,23,23,.1); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.adm-card-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.adm-card-t { display: flex; align-items: center; gap: 8px; font-size: 14.4px; font-weight: 700; color: #171717; }
.adm-card-t svg { width: 17px; height: 17px; }
.adm-sub { font-size: 12.5px; font-weight: 500; color: #737373; }
.adm-chipbtn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1.5px solid rgba(23,23,23,.1); border-radius: 6px; background: #fafafa; font-size: 12px; font-weight: 600; }
.adm-chipbtn svg { width: 13px; height: 13px; }
.adm-month { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: #dbeeff; font-size: 12.5px; font-weight: 700; color: #171717; }
.adm-month svg { width: 13px; height: 13px; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-field .lb { display: block; font-size: 10.9px; font-weight: 700; color: #737373; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.adm-field .in { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 11px; border: 1.5px solid rgba(23,23,23,.1); border-radius: 6px; background: #fff; font-size: 14px; color: #262626; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.adm-field .in svg { width: 14px; height: 14px; color: #737373; }
.adm-field .in.focus { border-color: #1a6fa3; box-shadow: 0 0 0 3px rgba(26,111,163,.14); background: #f8fbff; }
.adm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 6px; font-size: 14px; font-weight: 600; transition: transform .15s ease, filter .15s ease; }
.adm-btn svg { width: 15px; height: 15px; }
.adm-btn.primary { background: #ee6a2b; color: #fff; }
.adm-btn.warn { background: #fef3c7; color: #b45309; }
.adm-btn.pressed { transform: scale(.96); filter: brightness(.9); }

.adm-table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.adm-table th { background: #fafafa; padding: 8px 10px; text-align: left; font-weight: 700; color: #737373; border-bottom: 2px solid rgba(23,23,23,.1); font-size: 10.9px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.adm-table td { padding: 9px 10px; border-bottom: 1px solid rgba(23,23,23,.06); vertical-align: middle; white-space: nowrap; color: #262626; }
.adm-table .r { text-align: center; }
.adm-table tr.appear td { animation: slotIn .5s var(--ease) both; background: #fff8f3; }
.adm-table tr.sum td { font-weight: 700; background: #fafafa; border-bottom: none; }
.adm-table tr.sum td.hl { background: #dbeeff; color: #1a6fa3; font-weight: 800; }
.adm-sumlbl { display: inline-flex; align-items: center; gap: 7px; }
.adm-sumlbl svg { width: 14px; height: 14px; }
.adm-type { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 9.9px; font-weight: 700; }
.adm-type.mn { background: #fff7ed; color: #c2410c; }
.adm-type.bnssa { background: #ccfbf1; color: #0b7c72; }
.adm-pool { display: inline-flex; align-items: center; gap: 7px; }
.adm-pool i { width: 8px; height: 8px; border-radius: 50%; background: #0891b2; }
.adm-pool.tour i { background: #16a34a; }
.adm-st { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.adm-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.adm-st.dispo { color: #16a34a; }
.adm-st.res { color: #b91c1c; }

.adm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.adm-kpi { border-radius: 12px; padding: 16px; }
.adm-kpi.total { background: #dbeeff; }
.adm-kpi.mn { background: #ffedd5; }
.adm-kpi.bn { background: #e8fcf1; }
.adm-kpi .k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #171717; }
.adm-kpi.mn .k { color: #c2410c; }
.adm-kpi.bn .k { color: #15803d; }
.adm-kpi .k svg { width: 14px; height: 14px; }
.adm-kpi .n { font-size: 25.6px; font-weight: 800; color: #171717; margin-top: 8px; line-height: 1.1; }
.adm-kpi .s { font-size: 12.5px; color: #404040; margin-top: 4px; }
.adm-emp { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: #171717; }
.adm-av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #145b87, #4a8fbc); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11.2px; }
.adm-role { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: #f3e8ff; border: 1px solid #d8b4fe; color: #6b21a8; font-size: 11.2px; font-weight: 700; }
.adm-role svg { width: 12px; height: 12px; }
.adm-num { font-weight: 600; font-size: 13.6px; }
.adm-num.mn { color: #c2410c; }
.adm-num.bn { color: #0b7c72; }
.adm-tot { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #f2f2f2; font-weight: 800; color: #171717; }

/* Planning de la semaine, filtrable par piscine */
.adm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.adm-filter { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 7px; border-radius: 999px; border: 1.5px solid rgba(23,23,23,.14); background: #fff; font-size: 13px; font-weight: 600; color: #737373; transition: border-color .35s ease, background .35s ease, color .35s ease; }
.adm-filter .cb { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid rgba(23,23,23,.25); display: grid; place-items: center; color: #fff; transition: background .35s ease, border-color .35s ease; }
.adm-filter .cb svg { width: 11px; height: 11px; opacity: 0; transition: opacity .25s ease; }
.adm-filter.on .cb svg { opacity: 1; }
.adm-filter.nen.on { border-color: #0891b2; background: #e6fbfe; color: #155e75; }
.adm-filter.nen.on .cb { background: #1a8fbd; border-color: #1a8fbd; }
.adm-filter.tour.on { border-color: #16a34a; background: #ecfdf3; color: #166534; }
.adm-filter.tour.on .cb { background: #16a34a; border-color: #16a34a; }
.adm-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #404040; }
.adm-key i { width: 13px; height: 13px; border-radius: 3px; }
.adm-key.dispo i { border: 1.5px dashed #0891b2; }
.adm-key.mn i { border: 1.5px solid #ea580c; border-left-width: 4px; }
.adm-hours { display: grid; grid-template-columns: 76px repeat(14, 1fr); font-size: 11px; color: #737373; margin-bottom: 6px; }
.adm-day { display: grid; grid-template-columns: 76px 1fr; align-items: center; margin-bottom: 6px; }
.adm-day .dl { font-size: 12.5px; font-weight: 700; color: #171717; text-align: right; padding-right: 10px; line-height: 1.2; }
.adm-day .dl small { display: block; font-size: 11px; font-weight: 500; color: #737373; }
.adm-lane { position: relative; height: 54px; border: 1px solid rgba(23,23,23,.08); border-radius: 6px; background-color: #fcfcfc;
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 14 - 1px), rgba(23,23,23,.06) calc(100% / 14 - 1px), rgba(23,23,23,.06) calc(100% / 14)); }
.adm-bar {
  --c: #0891b2; --b: #cffafe;
  position: absolute; top: 5px; height: 20px; left: calc((var(--s) - 6) / 14 * 100%); width: calc((var(--e) - var(--s)) / 14 * 100%);
  display: flex; align-items: center; padding: 0 7px; border-radius: 4px; font-size: 10.5px; font-weight: 600; color: #1f2937;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .45s ease, transform .45s ease;
}
.adm-bar.row2 { top: 29px; }
.adm-bar.nen { --c: #0891b2; --b: #cffafe; }
.adm-bar.tour { --c: #16a34a; --b: #dcfce7; }
.adm-bar.res { background: #fff; border: 1.5px solid var(--c); box-shadow: inset 0 0 0 20px color-mix(in srgb, var(--b) 75%, transparent); }
.adm-bar.dispo { border: 1.5px dashed var(--c); background: repeating-linear-gradient(135deg, var(--b) 0, var(--b) 4px, #fff 4px, #fff 8px); }
.adm-bar.mn { border-left: 4px solid #ea580c; }
.adm-bar.off { opacity: 0; transform: scaleY(.3); }

/* ---------- Communication : annonce, note de service, notifications, messagerie ---------- */
.comm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); align-items: start; }
.comm-item h3 { font-size: 1.06rem; letter-spacing: -.022em; margin-top: 18px; }
.comm-item p { color: var(--text-dim); font-size: .93rem; margin-top: 6px; }
.adm-dim { background: #75787c; padding: 26px 14px; }
.adm-modal { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.adm-modal-h { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: #dbeeff; border-bottom: 1px solid rgba(23,23,23,.1); font-size: 14.4px; font-weight: 700; color: #171717; }
.adm-modal-h svg { width: 17px; height: 17px; }
.adm-modal-b { padding: 22px 20px; text-align: center; }
.adm-modal-b .big { display: grid; place-items: center; color: #1a6fa3; margin-bottom: 12px; }
.adm-modal-b .big svg { width: 24px; height: 24px; }
.adm-msg { text-align: left; background: #fafafa; border-radius: 8px; padding: 14px; font-size: 14px; line-height: 1.6; color: #262626; }
.adm-sign { text-align: right; font-size: 11.5px; color: #737373; margin-top: 8px; }
.adm-modal-f { display: flex; justify-content: center; padding: 12px 18px; background: #fafafa; border-top: 1px solid rgba(23,23,23,.1); }
.adm-btn.wide { min-width: 140px; }
.adm-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; justify-content: center; }
.adm-opt { font-size: 11.5px; font-weight: 600; color: #404040; background: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 10px; }

.adm-pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-pchip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; border: 1.5px solid rgba(23,23,23,.1); background: #fff; font-size: 13.5px; font-weight: 700; color: #171717; }
.adm-pchip svg { width: 16px; height: 16px; }
.adm-pchip.on { background: #2f6aa1; border-color: #2f6aa1; color: #fff; }
.adm-note h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15.5px; font-weight: 700; color: #171717; letter-spacing: normal; }
.adm-note h4 svg { width: 17px; height: 17px; }
.adm-note .sub { font-size: 12.5px; color: #737373; margin-top: 3px; }
.adm-note .body { margin-top: 14px; font-size: 14px; line-height: 1.8; color: #262626; }
.adm-note .body b { display: block; font-weight: 700; color: #171717; }

.ax-push.static { position: relative; top: auto; left: auto; right: auto; margin-bottom: 14px; }
.adm-card.notif { border-top: 3px solid #ea580c; }
.adm-nh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.adm-nh b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: #171717; }
.adm-nh b svg { width: 17px; height: 17px; }
.adm-nh small { display: block; font-size: 12.5px; color: #737373; margin-top: 3px; }
.adm-on { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff1e6; color: #c2410c; font-size: 12px; font-weight: 700; white-space: nowrap; }
.adm-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.adm-sec { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #737373; margin: 14px 0 6px; }
.adm-group { border: 1px solid rgba(23,23,23,.08); border-radius: 10px; padding: 0 12px; background: #fafafa; }
.adm-tg { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; font-size: 13.5px; font-weight: 600; color: #171717; border-bottom: 1px solid rgba(23,23,23,.06); }
.adm-group .adm-tg:last-child { border-bottom: none; }
.adm-tg.main { padding: 12px 0; border-bottom: 1px solid rgba(23,23,23,.1); }
.adm-toggle { position: relative; width: 42px; height: 25px; border-radius: 999px; background: #e2622a; flex: none; }
.adm-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }

.adm-pools { display: flex; flex-wrap: wrap; gap: 18px; padding: 11px 12px; border: 1px solid rgba(23,23,23,.08); border-radius: 8px; background: #fafafa; }
.adm-cbx { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #171717; }
.adm-cbx i { width: 18px; height: 18px; border-radius: 5px; background: #1a8fbd; color: #fff; display: grid; place-items: center; }
.adm-cbx.tour i { background: #16a34a; }
.adm-cbx i svg { width: 12px; height: 12px; }
.adm-hint { display: block; font-size: 11.5px; color: #737373; margin-top: 6px; }
.adm-actions.one { grid-template-columns: 1fr; }
.adm-poolcol { display: flex; flex-direction: column; gap: 4px; }

.adm-chat { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.2); }
.adm-chat-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(23,23,23,.1); font-size: 15px; font-weight: 700; color: #171717; }
.adm-chat-h .x { font-size: 20px; line-height: 1; color: #737373; font-weight: 400; }
.adm-chat-m { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.adm-bub { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 13.6px; line-height: 1.4; }
.adm-bub.me { align-self: flex-end; background: #ea580c; color: #fff; }
.adm-bub.them { align-self: flex-start; background: #f2f2f2; color: #262626; }
.adm-bub .t { font-size: 10.4px; opacity: .7; margin-top: 3px; }
.adm-chat-f { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid rgba(23,23,23,.1); }
.adm-chat-f .in { flex: 1; min-height: 58px; padding: 8px 10px; border: 1px solid rgba(23,23,23,.1); border-radius: 10px; font-size: 14px; line-height: 1.4; color: #a3a3a3; }
.adm-msgs-h { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: #171717; }
.adm-msgs-h svg { width: 18px; height: 18px; }
.adm-msgs-d { font-size: 12.5px; color: #525252; margin-top: 4px; line-height: 1.5; }
.adm-msgs-a { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }

@media (max-width: 860px) {
  .comm-grid { grid-template-columns: 1fr; max-width: 520px; }
}

/* Sur petit écran, les écrans admin passent à la mise en page étroite de l'app ;
   le planning garde une taille lisible et défile horizontalement. */
.ax-admin.narrow .adm-grid, .ax-admin.narrow .adm-actions { grid-template-columns: 1fr; }
.ax-admin.narrow .adm-table .c-hide { display: none; }
.ax-admin.narrow .adm-table td { white-space: normal; }
.app-window.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-hint { display: none; text-align: center; font-size: .78rem; color: var(--ink-400); margin-top: 10px; }
.browser-wrap.has-scroll .scroll-hint { display: block; }

/* ---------- Cadre navigateur ---------- */
.browser-wrap { margin-top: clamp(28px, 4vw, 52px); }
.browser-frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-raised); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.browser-chrome { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--foam-100); border-bottom: 1px solid var(--line); }
.browser-chrome span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--line-strong); }
.browser-chrome .bar {
  margin-left: 10px; flex: 1; height: 22px; border-radius: 999px; background: var(--bg-raised);
  border: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px;
  font-size: .68rem; color: var(--ink-400);
}
.browser-frame img.shot { width: 100%; display: block; }

/* ---------- Collectivités ---------- */
.badges-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badges-row span { font-size: .88rem; padding: 9px 16px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--ink-700); }

/* ---------- Citation ---------- */
/* La largeur est portée par le paragraphe : en ch, elle suit alors sa propre taille de police. */
.quote { max-width: 900px; margin: 0 auto; text-align: center; }
.quote p { max-width: 32ch; margin: 0 auto; font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.03em; line-height: 1.28; color: var(--ink-900); font-weight: 500; text-wrap: balance; }
.quote .who { font-size: .86rem; color: var(--text-dim); margin-top: 24px; }

/* ---------- Rôles ---------- */
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px; }
.role { padding: 22px 0; border-top: 1.5px solid var(--ink-900); }
.role .k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sea-600); font-weight: 600; }
.role h3 { font-size: 1rem; margin-top: 10px; letter-spacing: -.02em; }
.role p { margin-top: 8px; font-size: .88rem; color: var(--text-dim); }

/* ---------- Valeurs ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.value h3 svg { width: 19px; height: 19px; color: var(--sea-600); flex: none; }
.value p { margin-top: 10px; color: var(--text-dim); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; max-width: 780px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.02rem; letter-spacing: -.022em; }
.faq-item p { color: var(--text-dim); max-width: 70ch; font-size: .96rem; line-height: 1.6; }
.faq-item p a { color: var(--sea-600); text-decoration: underline; text-underline-offset: 3px; }
.faq-item p + p { margin-top: 10px; }
/* Version repliable */
details.faq-item { padding: 0; }
details.faq-item > summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px; font-size: 1.02rem; font-weight: 600; color: var(--ink-900);
  letter-spacing: -.022em; line-height: 1.4;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary .sign { flex: none; width: 20px; height: 20px; position: relative; margin-top: 3px; color: var(--ink-400); transition: color .2s ease; }
details.faq-item > summary .sign::before, details.faq-item > summary .sign::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease);
}
details.faq-item > summary .sign::before { top: 9px; left: 2px; width: 16px; height: 1.5px; }
details.faq-item > summary .sign::after { top: 2px; left: 9px; width: 1.5px; height: 16px; }
details.faq-item[open] > summary .sign::after { transform: rotate(90deg); opacity: 0; }
details.faq-item[open] > summary { color: var(--sea-600); }
details.faq-item > summary:hover .sign { color: var(--sea-600); }
.faq-answer { padding: 0 0 24px; max-width: 70ch; }
.faq-answer p { color: var(--text-dim); font-size: .96rem; line-height: 1.62; }

/* ---------- Formulaire de contact ---------- */
.contact-box { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; text-align: left; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact-box-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.contact-box-head h2, .contact-box-head h3 { font-size: 1.3rem; letter-spacing: -.026em; }
.contact-box-eta { font-size: .8rem; color: var(--text-dim); }
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-optional { text-transform: none; font-weight: 400; letter-spacing: 0; color: var(--ink-400); }
.form-field label { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 8px; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink-900); font-family: var(--sans); font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-400); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--sea-400); box-shadow: var(--focus); }
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.form-submit { width: 100%; margin-top: 6px; padding: 14px 18px; font-size: .98rem; }
.form-submit span { transition: transform .15s ease; }
.form-submit:hover span { transform: translateX(3px); }
.form-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; }
.form-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sea-600); cursor: pointer; }
.form-consent label { font-size: .82rem; line-height: 1.55; color: var(--text-dim); cursor: pointer; }
.form-consent label a { color: var(--sea-600); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-consent .form-required { display: inline-block; margin-left: 4px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--buoy-600); }
.form-alert { padding: 14px 16px; border-radius: 12px; font-size: .9rem; line-height: 1.55; margin-bottom: 18px; }
.form-alert.success { background: var(--teal-50); color: var(--teal-600); border: 1px solid color-mix(in srgb, var(--teal-500) 30%, transparent); }
.form-alert.error { background: var(--buoy-50); color: var(--buoy-600); border: 1px solid color-mix(in srgb, var(--buoy-500) 30%, transparent); }
.form-alert.error div + div { margin-top: 4px; }
.contact-box-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.contact-box-foot .fine { font-size: .8rem; color: var(--text-dim); line-height: 1.5; }
.contact-box-foot .fine a { color: var(--sea-600); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA final ---------- */
.cta { background: var(--foam-50); border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 120px) 0; text-align: center; }
.cta.tight { padding: clamp(56px, 7vw, 88px) 0; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 0; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.036em; max-width: 18ch; margin: 14px auto 0; }
.cta .lede { color: var(--text-dim); margin: 20px auto 0; max-width: 52ch; text-align: center; }
.cta .hero-cta, .cta-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.cta .eyebrow { color: var(--sea-600); }

/* ---------- Footer ---------- */
footer { padding: 56px 0 44px; border-top: 1px solid var(--line); background: var(--bg); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-brand img { width: 22px; height: 22px; border-radius: 6px; }
.foot-brand > span { font-weight: 800; letter-spacing: -.02em; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: .86rem; color: var(--text-dim); text-decoration: none; }
.foot-links a:hover { color: var(--ink-900); }
footer .fine { font-size: .8rem; color: var(--ink-400); width: 100%; text-align: center; }
footer .fine a { color: var(--sea-600); font-weight: 600; text-decoration: none; }
footer .fine a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer .other-sol { margin-top: -4px; }
footer .other-sol a { color: var(--sea-600); font-weight: 600; text-decoration: none; }
footer .other-sol a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .stage { grid-template-columns: 1fr; max-width: 560px; }
  .stage-user { margin-top: 8px; }
  .stage-toasts { position: static; margin-top: 12px; }
  .flow { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .flow-step p { display: none; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap, .nav-inner, .hero-inner { padding-left: 20px; padding-right: 20px; }
  .section-head.split-head, .pillars, .stakes, .roles-grid, .values, .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; }
  .shift { grid-template-columns: 1fr; gap: 16px; }
  .shift-arrow { transform: rotate(90deg); }
  .roles-grid { gap: 8px; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step-num { font-size: 1.1rem; }
  .split .iphone-wrap { order: -1; margin-bottom: 20px; }
  /* Frise verticale : l'icône occupe les deux lignes, le titre et le texte restent côte à côte à droite */
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin: 0 auto; }
  .flow-step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 2px; text-align: left; padding: 12px 0; align-items: start; }
  .flow-ico { grid-row: 1 / span 2; margin: 0; }
  .flow-step h4 { grid-column: 2; margin-top: 2px; }
  .flow-step p { grid-column: 2; display: block; margin-top: 2px; }
  .flow-step::before { left: 19px; right: auto; width: 1px; top: 0; height: 32px; }
  .flow-step::after { content: ""; position: absolute; left: 19px; width: 1px; top: 32px; bottom: 0; background: var(--line-strong); }
  .flow-step:first-child::before, .flow-step:last-child::after { display: none; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .contact-box { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .stage-steps { display: none; }
}

/* Grille de fonctionnalités : la dernière carte comble sa rangée au lieu de laisser des cases vides */
.features > .feature:last-child:nth-child(4n+1) { grid-column: span 4; }
.features > .feature:last-child:nth-child(4n+2) { grid-column: span 3; }
.features > .feature:last-child:nth-child(4n+3) { grid-column: span 2; }
@media (max-width: 1000px) {
  .features > .feature:last-child:nth-child(n) { grid-column: auto; }
  .features > .feature:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .features > .feature:last-child:nth-child(n) { grid-column: auto; }
}

/* Listes question / réponse non repliables (page sécurité) */
div.faq-item { padding: 24px 0; }
div.faq-item h3 + p { margin-top: 8px; }

/* Petits téléphones : le halo derrière le téléphone reste dans la largeur de l'écran */
@media (max-width: 380px) {
  .iphone-wrap::after { inset: -16px 0; }
}

/* Liens vers les pages détaillées */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); text-decoration: none; color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.related a:hover { border-color: var(--brand-orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.related b { font-size: 1.02rem; color: var(--ink-900); letter-spacing: -.02em; }
.related span { font-size: .9rem; color: var(--text-dim); }
.related .go { color: var(--hover-orange); font-weight: 500; margin-top: auto; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* Menu : quatre liens + deux boutons ne tiennent qu'au-delà de 1100 px */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .3s var(--ease), opacity .22s ease;
  }
  .nav-links.open { max-height: 460px; opacity: 1; pointer-events: auto; }
  .nav-links .link { display: block; padding: 15px 20px; border-bottom: 1px solid var(--line); border-radius: 0; white-space: normal; }
  .nav-links .btn { margin: 12px 20px 0; }
  .nav-links .btn:last-child { margin-bottom: 18px; }
  .nav-links .btn-ghost { margin-left: 20px; }
  .nav-inner { position: relative; }
}

/* ---------- Page contact ---------- */
.contact-hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 76px) 0 clamp(64px, 8vw, 110px); }
.contact-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, color-mix(in srgb, var(--sea-400) 16%, transparent), transparent 70%);
}
.contact-hero .wrap { position: relative; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(32px, 5vw, 72px); row-gap: 40px;
  grid-template-areas: "head form" "steps form"; align-items: start;
}
.contact-head { grid-area: head; }
.contact-form-col { grid-area: form; position: sticky; top: 96px; }
.contact-steps { grid-area: steps; }
.contact-head .eyebrow { display: block; margin-top: 4px; }
.contact-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.038em; margin-top: 14px; max-width: 16ch; }
.contact-head .lede { margin-top: 20px; max-width: 50ch; }
.contact-head h1 .grad {
  background-image: linear-gradient(95deg, #0a4f7a 0%, #1279b8 45%, #3fa3dc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
:root[data-theme="dark"] .contact-head h1 .grad { background-image: linear-gradient(95deg, #6cb2dd 0%, #4fa1d5 45%, #8fd0f2 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-head h1 .grad { background-image: linear-gradient(95deg, #6cb2dd 0%, #4fa1d5 45%, #8fd0f2 100%); } }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ct-chips span { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--ink-700); padding: 7px 13px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--line); }
.ct-chips svg { width: 14px; height: 14px; color: var(--teal-500); }
.ct-box-title { font-size: 1.3rem; letter-spacing: -.026em; }
.contact-form-col .contact-box { box-shadow: var(--shadow-lg); }
.ct-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); font-weight: 600; margin: 0 0 14px; }
.ct-label + .ct-steps { margin-top: 0; }
.ct-steps { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ct-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.ct-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--sea-600); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.ct-steps b { display: block; font-size: .98rem; color: var(--ink-900); letter-spacing: -.018em; margin-top: 3px; }
.ct-steps p { font-size: .9rem; color: var(--text-dim); margin-top: 3px; }
.ct-checks { margin-top: 0; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; grid-template-areas: "head" "form" "steps"; row-gap: 32px; }
  .contact-form-col { position: static; }
}

/* Encadré « Pensé pour vos vacataires » */
.vac-note {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; margin-top: clamp(24px, 3vw, 36px);
  padding: 20px 22px; border-radius: var(--radius-lg); background: var(--bg-raised);
  border: 1px solid color-mix(in srgb, var(--brand-orange) 30%, var(--line));
}
.vac-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--hover-orange); background: color-mix(in srgb, var(--brand-orange) 13%, transparent); }
.vac-ico svg { width: 22px; height: 22px; }
.vac-note b { display: block; font-size: 1.05rem; color: var(--ink-900); letter-spacing: -.02em; }
.vac-note p { margin-top: 4px; color: var(--text-dim); font-size: .96rem; line-height: 1.55; }
