/* =========================================================
   Dossier Fuite — styles
   Motion design inspiré de Désabo (halo, grille, mot rotatif,
   maquette 3D, cartes flottantes, bandeau, spotlight, confettis)
   ========================================================= */
@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --brand-50: #eaf3fe;
  --brand-100: #d3e6fd;
  --brand-500: #0a66d6;
  --brand-600: #0957b8;
  --brand-700: #07479a;
  --accent: #1fb984;
  --accent-soft: rgba(31, 185, 132, .13);
  --warn: #e08a00;
  --warn-soft: rgba(245, 158, 11, .14);
  --danger: #e5484d;
  --danger-soft: rgba(229, 72, 77, .12);

  --bg: #f6f9fc;
  --bg-elev: #ffffff;
  --bg-soft: #eef3f9;
  --deep: #061a33;
  --text: #0b1b2e;
  --text-muted: #51657c;
  --text-faint: #66798f;
  --border: rgba(11, 27, 46, .08);
  --border-strong: rgba(11, 27, 46, .14);

  --gradient: linear-gradient(120deg, #0a66d6 0%, #16b8d9 50%, #1fb984 100%);
  --gradient-brand: linear-gradient(135deg, #1273e6 0%, #07479a 100%);

  --shadow-sm: 0 1px 2px rgba(11, 27, 46, .06), 0 1px 1px rgba(11, 27, 46, .04);
  --shadow-md: 0 8px 24px -8px rgba(11, 27, 46, .14), 0 2px 6px rgba(11, 27, 46, .05);
  --shadow-lg: 0 30px 60px -20px rgba(7, 71, 154, .3), 0 12px 24px -12px rgba(11, 27, 46, .12);
  --shadow-brand: 0 10px 30px -10px rgba(10, 102, 214, .6);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; letter-spacing: -.006em; font-feature-settings: "cv11"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
h3 { line-height: 1.25; letter-spacing: -.018em; font-weight: 650; }
p { text-wrap: pretty; }
::selection { background: var(--brand-500); color: #fff; }
:focus-visible { outline: 2.5px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 780px; }
.icon { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.22em; }

/* Mot mis en avant : serif italique + dégradé animé */
.gradient-text { background: var(--gradient); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
h1 .gradient-text, h2 .gradient-text {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.1em; line-height: 1.2;
  padding: .1em .12em .18em .06em; margin: 0 -.08em 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@keyframes shine { to { background-position: 200% center; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; background: var(--bg-elev);
  font-weight: 700; font-size: .97rem; white-space: nowrap; cursor: pointer; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(10, 102, 214, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { background: transparent; border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-500); transform: translateY(-2px); }
.btn--soft { background: var(--brand-50); color: var(--brand-600); }
.btn--soft:hover { background: var(--brand-100); transform: translateY(-2px); }
.btn--success { background: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px rgba(31, 185, 132, .8); }
.btn--success:hover { transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--brand-700); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.btn--white:hover { transform: translateY(-2px); }
.btn__arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.spinner { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[data-magnetic] { transition: transform .35s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s; }
.link { color: var(--brand-600); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Barre de progression de lecture ---------- */
.progress-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--gradient); transform-origin: left; transform: scaleX(0); }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.header.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 1px 0 var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em; }
.logo__mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: var(--gradient-brand); box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.25); }
.logo__mark .icon { width: 18px; height: 18px; animation: drip 3.2s var(--ease) infinite; }
@keyframes drip { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(1.5px) scale(.95, 1.05) } }

/* ---------- Pastille avec point pulsant ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.pill__dot--warn { background: #ffb020; animation-name: pulse-warn; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 185, 132, .6) } 70% { box-shadow: 0 0 0 8px rgba(31, 185, 132, 0) } 100% { box-shadow: 0 0 0 0 rgba(31, 185, 132, 0) } }
@keyframes pulse-warn { 0% { box-shadow: 0 0 0 0 rgba(255, 176, 32, .6) } 70% { box-shadow: 0 0 0 8px rgba(255, 176, 32, 0) } 100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0) } }

/* ---------- Halo + grille de fond ---------- */
.glow { position: absolute; z-index: -1; inset: -20% -10% auto; height: 760px; pointer-events: none; will-change: transform;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(10, 102, 214, .22), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(22, 184, 217, .22), transparent 70%),
    radial-gradient(30% 40% at 70% 70%, rgba(31, 185, 132, .14), transparent 70%);
  animation: float-glow 14s ease-in-out infinite alternate; }
@keyframes float-glow { to { transform: translate3d(2%, 3%, 0) scale(1.05); } }
.grid-bg { position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }

/* ---------- Formulaire e-mail « pilule » ---------- */
.mail-form { position: relative; display: flex; gap: 6px; margin-top: 32px; max-width: 520px; padding: 6px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .2s, box-shadow .2s; }
.mail-form:focus-within { border-color: var(--brand-500); box-shadow: var(--shadow-md), 0 0 0 4px var(--brand-100); }
.mail-form input { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent; outline: none; font-size: 1rem; }
.mail-form input::placeholder { color: var(--text-faint); }
.mail-form.is-invalid { border-color: var(--danger); animation: shake .4s; }
.mail-form--center { margin-inline: auto; }
.form-msg { position: absolute; left: 20px; top: calc(100% + 10px); font-size: .88rem; font-weight: 600; color: var(--danger); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); }
.form-msg.is-visible { opacity: 1; transform: none; }
.cta__box .form-msg { color: #ffd3d4; left: 0; right: 0; text-align: center; }
@keyframes shake { 25% { transform: translateX(-6px) } 50% { transform: translateX(5px) } 75% { transform: translateX(-3px) } }
@media (max-width: 520px) {
  .mail-form { flex-direction: column; border-radius: 22px; padding: 8px; }
  .mail-form input { padding: 12px 14px; }
  .mail-form .btn { width: 100%; }
}

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Lumière qui suit la souris ---------- */
[data-spotlight] { position: relative; }
.spotlight::after, [data-spotlight]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(10, 102, 214, .1), transparent 45%); }
.spotlight:hover::after, [data-spotlight]:hover::after { opacity: 1; }
.pro-card[data-spotlight]::after, .cta__box[data-spotlight]::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), transparent 45%); }
.pstep:hover:not(.is-current) { border-color: var(--border-strong); }
.card[data-spotlight]:hover { border-color: var(--border-strong); }
.person { transition: transform .3s var(--ease); }
.person:hover { transform: translateX(3px); }
.tl__dot { transition: transform .3s var(--spring); }
.tl:hover .tl__dot { transform: scale(1.08) rotate(-4deg); }
.qa:active, .chip:active, .option:active, .share-app:active, .pstep__head:active { transform: scale(.97); }

/* ---------- Confettis ---------- */
.confetti { position: fixed; top: 0; left: 0; width: 7px; height: 12px; border-radius: 2px; z-index: 200; pointer-events: none; }

/* =========================================================
   ACCUEIL
   ========================================================= */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 112px; overflow: hidden; isolation: isolate; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.3rem); margin: 22px 0 20px; }
.hero__subtitle { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-muted); max-width: 520px; }
.hero__subtitle strong { color: var(--text); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 52px; font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 3; }
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 80px; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
}

/* Maquette 3D */
.hero__visual { position: relative; perspective: 1400px; max-width: 460px; width: 100%; justify-self: center; }
.mock { position: relative; padding: 24px; border-radius: var(--radius-xl); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transform-style: preserve-3d; transition: transform .6s var(--ease); }
.hero__visual.is-tilting .mock { transition-duration: .12s; }
.mock__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 45%); }
.hero__visual.is-tilting .mock__glare { opacity: 1; }
.mock::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(10, 102, 214, .5), transparent 40%, transparent 60%, rgba(31, 185, 132, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.mock__head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--border-strong); }
.mock__label { font-size: .76rem; color: var(--text-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mock__title { font-size: 1.12rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; }
.mock__sub { font-size: .86rem; color: var(--text-muted); }
.mock__steps { display: grid; gap: 8px; margin-top: 16px; }
.mock__step { transition: transform .3s var(--ease), background .3s; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-size: .9rem; font-weight: 600; background: var(--bg-soft); }
.mock__step.is-current { background: var(--brand-50); box-shadow: inset 0 0 0 1.5px var(--brand-100); }
.mock__step .tick, .mock__step .num { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: .78rem; color: #fff; }
.mock__step .tick { background: var(--accent); }
.mock__step .tick .icon { width: 15px; height: 15px; stroke-width: 3; }
.mock__step .num { background: var(--brand-500); }
.mock__step.is-todo { color: var(--text-faint); }
.mock__step.is-todo .num { background: var(--border-strong); color: var(--text-muted); }

/* Anneau du compte à rebours */
.ring { position: relative; width: 84px; height: 84px; flex: none; }
.ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__bg { stroke: var(--bg-soft); }
.ring__bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease), stroke .3s; }
.ring--intro .ring__bar { animation: ring-in 1.6s var(--ease) both; }
@keyframes ring-in { from { stroke-dashoffset: 264; } }
.ring__val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring__val b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: block; }
.ring__val small { font-size: .62rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .06em; }

/* Cartes flottantes */
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); animation: bob 5s ease-in-out infinite; }
.float-card strong { display: block; font-size: .88rem; }
.float-card small { display: block; font-size: .76rem; color: var(--text-muted); }
.float-card__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); font-size: 1.1rem; flex: none; }
.float-card__inner { display: flex; align-items: center; gap: 12px; transition: opacity .35s, transform .35s var(--ease); }
.float-card__inner.is-swapping { opacity: 0; transform: translateY(8px); }
.float-card--top { top: -46px; right: -22px; min-width: 250px; }
.float-card--bottom { bottom: -44px; left: -26px; animation-delay: -2.5s; }
.float-card--bottom .float-card__icon { background: var(--accent); color: #fff; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 560px) {
  .float-card--top { right: -4px; min-width: 0; }
  .float-card--bottom { left: -4px; }
}

/* Bandeau défilant */
.marquee { padding: 26px 0; border-block: 1px solid var(--border); background: var(--bg-elev); overflow: hidden; }
.marquee__title { text-align: center; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 20px; padding-inline: 20px; }
.marquee__lanes { display: grid; gap: 12px; padding-block: 10px; /* place pour l effet de survol (sinon la puce est rognée) */ mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--speed, 34s) linear infinite; }
.marquee__track--reverse { animation-direction: reverse; --speed: 40s; }
.marquee__lanes:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; gap: 12px; padding-right: 12px; }
.marquee__chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); font-weight: 600; font-size: .92rem; white-space: nowrap; transition: transform .25s var(--ease), color .25s, border-color .25s, box-shadow .25s; }
.marquee__chip:hover { transform: translateY(-3px) scale(1.04); color: var(--brand-600); border-color: var(--brand-500); box-shadow: 0 8px 20px -8px rgba(10, 102, 214, .5); }
.marquee__track--alt .marquee__chip { background: var(--brand-50); border-color: transparent; }
.marquee__track--alt .marquee__chip:hover { background: var(--brand-500); color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; padding: 104px 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0; }
.section__head p { color: var(--text-muted); font-size: 1.08rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-500); }
.rotator { display: inline-block; position: relative; vertical-align: baseline; white-space: nowrap; }
.rotator-title { white-space: nowrap; }
.rotator__word { display: inline-block; }
@media (max-width: 640px) { .section { padding: 76px 0; } .section__head { margin-bottom: 40px; } }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--border); transition: opacity .8s var(--ease), transform .45s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.step__num { position: absolute; top: 20px; right: 24px; font-family: var(--font-serif); font-style: italic; font-size: 2.8rem; line-height: 1; padding: 0 .08em .1em; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step__visual { height: 136px; display: grid; place-items: center; margin-bottom: 22px; border-radius: var(--radius); background: var(--bg-soft); overflow: hidden; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--text-muted); margin-top: 8px; font-size: .96rem; }
.chip-stack { display: grid; gap: 8px; justify-items: center; }
.chip-stack span { padding: 7px 13px; border-radius: 999px; background: var(--bg-elev); box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 600; }
.chip-stack .ok { background: var(--accent); color: #fff; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.reveal.is-visible .chip-stack span, .reveal.is-visible .avatars span, .reveal.is-visible .mini-check span { animation: pop-in .6s var(--spring) both; }
.reveal.is-visible :is(.chip-stack, .avatars, .mini-check) span:nth-child(2) { animation-delay: .14s; }
.reveal.is-visible :is(.chip-stack, .avatars, .mini-check) span:nth-child(3) { animation-delay: .28s; }
.reveal.is-visible :is(.chip-stack, .avatars, .mini-check) span:nth-child(4) { animation-delay: .42s; }
.avatars { display: flex; }
.avatars span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; border: 3px solid var(--bg-soft); margin-left: -10px; }
.avatars span:first-child { margin-left: 0; }
.av1 { background: #0a66d6; } .av2 { background: #7a4fd6; } .av3 { background: #1fb984; } .av4 { background: #e08a00; }
.mini-check { display: grid; gap: 8px; width: 80%; }
.mini-check span { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--bg-elev); font-size: .8rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.mini-check i { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); flex: none; }

/* FAQ */
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s, border-color .3s; }
.faq__item:hover { border-color: var(--border-strong); }
.faq__item[open] { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 650; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--brand-500); transition: transform .35s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 22px 20px; color: var(--text-muted); animation: fade-down .4s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* CTA final */
.cta__box { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 72px 28px 80px; border-radius: var(--radius-xl); background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-lg); }
.cta__glow { position: absolute; z-index: -1; inset: -40%; pointer-events: none; background: radial-gradient(30% 40% at 30% 30%, rgba(22, 184, 217, .55), transparent 70%), radial-gradient(30% 40% at 75% 70%, rgba(31, 185, 132, .4), transparent 70%); animation: float-glow 12s ease-in-out infinite alternate; }
.cta__box h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta__box > p { color: #d6e6fb; margin-top: 12px; font-size: 1.06rem; }
.cta__box .mail-form { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.cta__box .mail-form input { color: #fff; }
.cta__box .mail-form input::placeholder { color: #bcd3f2; }
.cta__box .mail-form:focus-within { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
@media (max-width: 600px) { .cta__box { padding: 56px 20px 64px; border-radius: var(--radius-lg); } }

/* Pied de page */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__copy { color: var(--text-faint); font-size: .9rem; }
.footer__links { display: flex; gap: 20px; font-size: .9rem; color: var(--text-muted); }
.footer__links a:hover { color: var(--brand-500); }

/* =========================================================
   FORMULAIRES & FENÊTRES
   ========================================================= */
.field { margin-top: 16px; }
.field > label, .label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 7px; }
.opt { color: var(--text-faint); font-weight: 500; }
.input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--bg-elev); font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; }
.input:hover { border-color: rgba(11, 27, 46, .24); }
.input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.input::placeholder { color: var(--text-faint); }
textarea.input { min-height: 110px; resize: vertical; }
.form-error { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--danger-soft); color: #b42318; font-weight: 600; font-size: .92rem; animation: shake .4s; }
.hint { color: var(--text-faint); font-size: .82rem; margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--border-strong); background: var(--bg-elev); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--brand-500); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

dialog.sheet { margin: auto; border: 0; padding: 0; background: transparent; max-width: 520px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); overflow: visible; color: var(--text); }
dialog.sheet::backdrop { background: rgba(6, 26, 51, .45); backdrop-filter: blur(5px); animation: fade-in .3s var(--ease); }
dialog.sheet[open] .sheet__in { animation: sheet-in .5s var(--spring); }
dialog.sheet.is-closing .sheet__in { animation: sheet-out .22s var(--ease) forwards; }
dialog.sheet.is-closing::backdrop { animation: fade-out .22s var(--ease) forwards; }
@keyframes fade-in { from { opacity: 0 } } @keyframes fade-out { to { opacity: 0 } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(26px) scale(.97) } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(14px) scale(.98) } }
.sheet__in { position: relative; background: var(--bg-elev); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; max-height: calc(100dvh - 24px); overflow-y: auto; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet__head h2 { font-size: 1.45rem; letter-spacing: -.03em; }
.sheet__lead { color: var(--text-muted); margin-top: 6px; }
.sheet__actions { display: flex; gap: 10px; margin-top: 24px; }
.sheet__actions .btn { flex: 1; }
.x { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--bg-soft); cursor: pointer; display: grid; place-items: center; flex: none; transition: transform .3s var(--spring), background .2s; }
.x:hover { transform: rotate(90deg); background: var(--brand-50); }
@media (max-width: 600px) {
  dialog.sheet { margin: auto 0 0; width: 100%; max-width: none; }
  .sheet__in { border-radius: 26px 26px 0 0; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); }
  @keyframes sheet-in { from { transform: translateY(100%) } }
  @keyframes sheet-out { to { transform: translateY(100%) } }
}

/* Assistant pas à pas */
.wiz__bar { height: 6px; border-radius: 99px; background: var(--bg-soft); margin: 18px 0 8px; overflow: hidden; }
.wiz__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gradient); transition: width .5s var(--ease); }
.wiz__count { font-size: .8rem; font-weight: 700; color: var(--text-faint); }
.wiz__step { animation: slide-in .45s var(--ease); }
.wiz__step.is-back { animation-name: slide-back; }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px) } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-28px) } }
.wiz__step h3 { font-size: 1.35rem; margin: 12px 0 4px; letter-spacing: -.025em; }
.wiz__step > p { color: var(--text-muted); }
.options { display: grid; gap: 10px; margin-top: 16px; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: var(--radius); border: 1.5px solid var(--border-strong); background: var(--bg-elev); cursor: pointer; transition: all .2s var(--ease); }
.option:hover { border-color: var(--brand-500); background: var(--brand-50); transform: translateX(3px); }
.option[aria-pressed="true"] { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.option__emo { font-size: 1.4rem; width: 30px; text-align: center; flex: none; }
.option b { display: block; font-weight: 650; }
.option small { display: block; color: var(--text-muted); font-size: .84rem; }
.result { margin-top: 16px; padding: 20px; border-radius: var(--radius-lg); background: linear-gradient(160deg, #fff7e8, #fff); border: 1px solid #f4dfba; }
.result h3 { margin: 0 0 8px; font-size: 1.15rem; }
.result__who { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #f1e3cd; font-size: .93rem; }

/* Photos */
.drop { display: grid; place-items: center; gap: 6px; text-align: center; margin-top: 18px; padding: 30px 16px; border-radius: var(--radius-lg); border: 2px dashed var(--border-strong); background: var(--bg-soft); cursor: pointer; transition: all .25s var(--ease); }
.drop:hover, .drop.is-over { border-color: var(--brand-500); background: var(--brand-50); }
.drop.is-over { transform: scale(1.01); }
.drop__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-elev); color: var(--brand-500); box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.drop small { color: var(--text-muted); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--bg-soft); animation: pop-in .4s var(--spring); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 9px; background: rgba(6, 26, 51, .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.thumb__state { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 26, 51, .45); color: #fff; }
.thumb__state.is-ok { background: rgba(31, 185, 132, .6); }

/* Partage */
.share-row { display: flex; gap: 8px; margin-top: 18px; }
.share-row .input { font-size: .88rem; }
.share-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.share-app { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg-soft); font-weight: 650; font-size: .86rem; transition: transform .3s var(--spring), border-color .2s, background .2s; }
.share-app:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--bg-elev); }
.share-app span { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); }
.share-app.wa span { background: #e3f8ea; color: #128c4b; }

/* Visionneuse */
dialog.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(3, 12, 24, .9); animation: fade-in .3s; }
dialog.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: var(--radius); animation: pop-in .4s var(--ease); }
dialog.lightbox p { color: #dbe7f5; text-align: center; margin-top: 10px; font-size: .92rem; }
dialog.lightbox .x { position: fixed; top: 14px; right: 14px; background: rgba(255, 255, 255, .14); color: #fff; }

/* Notifications */
.toasts { position: fixed; z-index: 150; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--deep); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); animation: toast-in .45s var(--spring); pointer-events: auto; }
.toast .icon { color: #3ee0a4; }
.toast.is-error .icon { color: #ff8a80; }
.toast.is-out { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96) } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) } }

/* =========================================================
   DOSSIER
   ========================================================= */
.d-page { position: relative; isolation: isolate; overflow: hidden; min-height: 100dvh; }
.d-wrap { max-width: 1120px; margin: 0 auto; padding: calc(var(--header-h) + 12px) 20px 80px; }
.d-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl); padding: 30px; color: #fff; background: var(--deep); box-shadow: var(--shadow-lg); }
.d-hero .cta__glow { inset: -60%; }
.d-hero__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 80% at 70% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 0%, #000 20%, transparent 70%); }
.d-hero__top { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.d-hero .pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #d7e6f8; box-shadow: none; }
.d-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-top: 16px; }
.d-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: #b9cde6; font-size: .95rem; font-weight: 500; }
.d-meta span { display: inline-flex; align-items: center; gap: 6px; }
.d-count { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex: none; width: 340px; }
.d-count .ring { width: 78px; height: 78px; }
.d-count .ring__bg { stroke: rgba(255, 255, 255, .12); }
.d-count .ring__val small { color: #b9cde6; }
.d-count__title { display: block; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.d-count p { font-size: .84rem; color: #b9cde6; margin-top: 3px; }
.d-count.is-warn .ring__bar { stroke: #ffb020; }
.d-count.is-late .ring__bar { stroke: #ff6b6f; }
.d-count.is-done .ring__bar { stroke: #3ee0a4; }
.d-count.is-done .ring__val .icon { width: 32px; height: 32px; color: #3ee0a4; stroke-width: 3; }
.d-count.is-late .ring__val b { color: #ff8a8d; }
@media (max-width: 800px) { .d-hero__top { flex-direction: column; align-items: stretch; } .d-count { width: auto; } .d-hero { padding: 24px 20px; border-radius: var(--radius-lg); } }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.qa { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #fff; font-weight: 650; font-size: .92rem; cursor: pointer; text-align: left; line-height: 1.25; transition: background .25s, transform .3s var(--spring), border-color .25s; }
.qa:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.qa .icon { width: 20px; height: 20px; }
@media (max-width: 640px) { .quick { grid-template-columns: repeat(2, 1fr); } .qa { flex-direction: column; align-items: flex-start; gap: 8px; } }

.d-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-top: 20px; align-items: start; }
.d-main, .d-side { display: grid; gap: 20px; min-width: 0; }
.d-side { position: sticky; top: calc(var(--header-h) + 12px); }
@media (max-width: 960px) { .d-grid { grid-template-columns: 1fr; } .d-side { position: static; } }

.card { position: relative; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.card__head h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.card__meta { color: var(--text-faint); font-size: .86rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .card { padding: 20px 16px; } }

/* Parcours en étapes */
.track { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin-bottom: 18px; }
.track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gradient); transition: width 1s var(--ease); }
.path { display: grid; gap: 10px; }
.pstep { border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg-elev); transition: border-color .3s, background .3s, box-shadow .3s; }
.pstep__head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: inherit; }
.pstep__dot { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: .85rem; background: var(--bg-soft); color: var(--text-muted); transition: background .4s, color .4s, box-shadow .4s; }
.pstep__dot .icon { width: 17px; height: 17px; stroke-width: 3; }
.pstep__title { flex: 1; font-weight: 650; line-height: 1.35; }
.pstep__tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 99px; background: var(--brand-50); color: var(--brand-600); font-size: .72rem; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.pstep__by { display: block; font-size: .8rem; font-weight: 500; color: var(--text-faint); }
.pstep__chev { width: 18px; height: 18px; color: var(--text-faint); transition: transform .35s var(--ease); }
.pstep.is-open .pstep__chev { transform: rotate(180deg); }
.pstep__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.pstep.is-open .pstep__body { grid-template-rows: 1fr; }
.pstep__body > div { overflow: hidden; min-height: 0; }
.pstep__inner { padding: 0 16px 16px 60px; }
.pstep__inner p { color: var(--text-muted); font-size: .95rem; }
.pstep__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pstep.is-done { background: var(--bg); }
.pstep.is-done .pstep__dot { background: var(--accent); color: #fff; }
.pstep.is-done .pstep__title { color: var(--text-muted); }
.pstep.is-current { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50), var(--shadow-md); }
.pstep.is-current .pstep__dot { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand); }
.pstep.is-pop .pstep__dot { animation: pop-in .6s var(--spring); }
@media (max-width: 600px) { .pstep__inner { padding-left: 16px; } .pstep__tag { display: table; margin: 4px 0 0; } .pstep__actions .btn { flex: 1 1 auto; } }
.finished { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--accent-soft); color: #0b6b4c; font-weight: 650; animation: pop-in .6s var(--spring); }
.finished span { font-size: 1.6rem; }

/* Historique */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--border-strong), transparent); }
.tl { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.tl:last-child { padding-bottom: 0; }
.tl__dot { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; position: relative; z-index: 1; background: var(--bg-soft); color: var(--text-muted); box-shadow: 0 0 0 5px var(--bg-elev); }
.tl--photo .tl__dot { background: var(--brand-50); color: var(--brand-500); }
.tl--note .tl__dot { background: #f1edfd; color: #6a4bd1; }
.tl--diagnostic .tl__dot { background: var(--warn-soft); color: var(--warn); }
.tl--etape .tl__dot { background: var(--accent-soft); color: var(--accent); }
.tl__body { flex: 1; min-width: 0; padding-top: 2px; }
.tl__meta { font-size: .82rem; color: var(--text-faint); }
.tl__meta b { color: var(--text); font-weight: 650; }
.tl__text { margin-top: 3px; color: var(--text-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.tl__shot { display: block; margin-top: 10px; max-width: 320px; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); padding: 0; cursor: zoom-in; }
.tl__shot img { width: 100%; max-height: 240px; object-fit: cover; transition: transform .5s var(--ease); }
.tl__shot:hover img { transform: scale(1.04); }
.tl__fallback { padding: 16px; font-size: .88rem; color: var(--text-muted); }
.tl.is-new { animation: tl-in .7s var(--ease) both; }
@keyframes tl-in { from { opacity: 0; transform: translateX(-14px) } }
.more { margin-top: 16px; }

/* Participants */
.people { display: grid; gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; animation: pop-in .5s var(--spring) both; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; flex: none; }
.person b { display: block; font-size: .95rem; font-weight: 650; }
.person small { color: var(--text-faint); font-size: .82rem; }

/* Carte pro */
.pro-card { overflow: hidden; isolation: isolate; color: #fff; border: 0; background: var(--gradient-brand); }
.pro-card .cta__glow { inset: -70%; }
.pro-card h2 { font-size: 1.15rem; }
.pro-card p { color: #d6e6fb; font-size: .93rem; margin: 8px 0 16px; }
.pro-card .done { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .14); font-weight: 600; font-size: .92rem; }

/* Squelette */
.skel { border-radius: var(--radius-lg); background: linear-gradient(90deg, #e9eff6 25%, #f4f8fc 50%, #e9eff6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0 } }
.skel--hero { height: 250px; border-radius: var(--radius-xl); }
.skel--block { height: 340px; }
.skel--side { height: 200px; }
.skel--result { height: 220px; margin-top: 16px; }

/* Pages simples (404, mentions, admin) */
.center-page { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 20px) 20px 40px; position: relative; isolation: isolate; overflow: hidden; }
.center-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.center-page p { color: var(--text-muted); margin: 12px auto 26px; max-width: 440px; }
.big-drop { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 30px; display: grid; place-items: center; color: #fff; background: var(--gradient-brand); box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.big-drop .icon { width: 44px; height: 44px; }
.simple { max-width: 780px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 80px; }
.simple h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 16px; }
.simple h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.simple p { color: var(--text-muted); margin-top: 8px; }
.todo { background: var(--warn-soft); color: #9a5b00; padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.admin { max-width: 1120px; margin: 0 auto; padding: calc(var(--header-h) + 24px) 20px 80px; }
.admin h1 { font-size: 2rem; }
.admin .sub { color: var(--text-muted); }
.login { max-width: 420px; margin: 40px auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 18px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); }
.stat b { display: block; font-size: 1.8rem; letter-spacing: -.04em; }
.stat small { color: var(--text-faint); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); padding: 10px; border-bottom: 1px solid var(--border); }
td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
td a { color: var(--brand-600); font-weight: 600; }
td .input { padding: 8px 12px; font-size: .86rem; border-radius: 10px; }
.empty { text-align: center; color: var(--text-faint); padding: 28px 10px; }

/* ---------- Impression : résumé pour le constat ---------- */
.print-only { display: none; }
@media print {
  @page { margin: 15mm; }
  body { background: #fff; font-size: 10.5pt; }
  .header, .progress-bar, .quick, .no-print, .toasts, dialog, .glow, .grid-bg, .cta__glow, .d-hero__grid { display: none !important; }
  .print-only { display: block; margin-bottom: 10px; }
  .d-wrap { padding: 0; }
  .d-hero { background: none; color: var(--text); box-shadow: none; padding: 0; }
  .d-hero .pill { display: none; }
  .d-meta, .d-count p, .d-count .ring__val small { color: var(--text-muted); }
  .d-count { background: none; border: 1px solid var(--border-strong); }
  .d-grid { display: block; }
  .card { box-shadow: none; break-inside: avoid; margin-top: 12px; }
  .pstep__body { grid-template-rows: 1fr; }
  .pstep__actions { display: none; }
  .tl { break-inside: avoid; }
  .tl.is-new { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Moins d'animations si demandé ---------- */
/* Animations réduites (réglage Windows / téléphone) : comme Désabo, on garde la vie
   (bandeau plus lent, fondus, survols) mais on retire les mouvements amples. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { --speed: 70s; }
  .marquee__track--reverse { --speed: 80s; }
  .float-card, .glow, .cta__glow, .gradient-text, .pill__dot, .logo__mark .icon, .big-drop { animation: none; }
  .mock { transform: none; }
  .reveal { transform: none; transition: opacity .6s ease; }
}

/* =========================================================
   v2 — documents, dommages, rapport, syndics, pros
   ========================================================= */
.card__lead { color: var(--text-muted); font-size: .92rem; margin: -6px 0 14px; }
.side-actions { display: grid; gap: 8px; margin-top: 16px; }

/* Documents prêts */
.doc-list { display: grid; gap: 8px; }
.doc-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg-elev); text-align: left; cursor: pointer; font-size: .92rem; transition: border-color .2s, transform .25s var(--ease), background .2s; }
.doc-btn:hover { border-color: var(--brand-500); background: var(--brand-50); transform: translateX(3px); }
.doc-btn:active { transform: scale(.98); }
.doc-btn span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); flex: none; transition: transform .3s var(--spring); }
.doc-btn:hover span { transform: rotate(-6deg) scale(1.08); }
.doc-btn b { font-weight: 650; }

/* Dommages */
.dommages { display: grid; gap: 8px; margin-bottom: 14px; }
.dommage { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); animation: pop-in .4s var(--spring); }
.dommage__piece { font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-50); color: var(--brand-600); white-space: nowrap; }
.dommage__desc { color: var(--text); font-size: .93rem; min-width: 0; overflow-wrap: anywhere; }
.dommage__montant { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dommage__del { width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.dommage__del:hover { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 520px) { .dommage { grid-template-columns: 1fr auto auto; } .dommage__piece { grid-column: 1 / -1; justify-self: start; } }

/* Rapport */
.rapport-card { border-color: rgba(31, 185, 132, .35); background: linear-gradient(160deg, #f0fbf6, #fff 60%); }
.rapport__who { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .88rem; font-weight: 600; }
.rapport__origine { font-size: 1.05rem; font-weight: 600; margin-top: 8px; }
.rapport__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rapport__tags span { padding: 4px 11px; border-radius: 99px; background: var(--bg-soft); font-size: .8rem; font-weight: 650; }
.rapport__tags .is-ok { background: var(--accent-soft); color: #0b6b4c; }
.rapport__note { color: var(--text-muted); margin-top: 10px; font-size: .93rem; }

/* Fenêtres v2 */
dialog.sheet--wide { max-width: 640px; }
textarea.input.letter-body { min-height: 300px; font-size: .93rem; line-height: 1.55; }
.sheet__actions--wrap { flex-wrap: wrap; }
.sheet__actions--wrap .btn { flex: 1 1 140px; }
.check-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; font-size: .93rem; cursor: pointer; }
.check-line input { width: 20px; height: 20px; accent-color: var(--accent); }

/* Documents imprimés */
.print-area { display: none; }
.doc { color: #111; font-size: 11pt; line-height: 1.5; }
.doc h1 { font-size: 18pt; margin: 4px 0 10px; letter-spacing: -.02em; }
.doc h2 { font-size: 12pt; margin: 18px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #ddd; }
.doc p { margin: 6px 0; }
.doc-kicker { color: #0a66d6; font-weight: 700; font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; }
.doc-note { background: #f3f7fb; padding: 8px 12px; border-radius: 6px; font-size: 10pt; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 10pt; }
.doc-table th, .doc-table td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
.doc-table th { width: 32%; color: #555; font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 10pt; }
.doc-table--grid th { width: auto; background: #f5f7fa; }
.doc-total td { font-weight: 700; }
.doc-foot { margin-top: 18px !important; color: #777; font-size: 9pt; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.doc-sign span { border-top: 1px solid #999; padding-top: 6px; font-size: 9pt; color: #555; height: 70px; }
.doc--lettre .doc-from { font-weight: 700; }
.doc--lettre .doc-date { text-align: right; margin: 20px 0; }
.doc--lettre .doc-obj { margin-bottom: 18px; }
.doc--lettre .doc-body { white-space: pre-wrap; }
@media print {
  body.print-doc > *:not(#printArea) { display: none !important; }
  body.print-doc #printArea { display: block !important; }
  body.print-doc { background: #fff; }
}

/* =========================================================
   Pages Syndic & Pro
   ========================================================= */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 56px) 0 64px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 20px 0 16px; max-width: 760px; }
.page-hero .hero__subtitle { max-width: 620px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr; } }
.perk { position: relative; padding: 22px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--border); transition: opacity .8s var(--ease), transform .45s var(--ease), box-shadow .4s, border-color .3s; }
.perk:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.perk__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); margin-bottom: 14px; }
.perk h3 { font-size: 1.05rem; }
.perk p { color: var(--text-muted); font-size: .93rem; margin-top: 6px; }
.form-wrap { max-width: 620px; margin: 0 auto; }
.form-card { padding: 30px; box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } .form-card { padding: 22px 18px; } }
.success { text-align: center; padding: 30px 10px; animation: pop-in .6s var(--spring); }
.success .big-drop { background: linear-gradient(145deg, #3ee0a4, #1fb984); }
.success p { color: var(--text-muted); margin: 10px auto 20px; max-width: 440px; }

/* Tableau de bord syndic */
.dash { max-width: 1120px; margin: 0 auto; padding: calc(var(--header-h) + 20px) 20px 80px; }
.dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.dash__head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dash__head p { color: var(--text-muted); }
.keybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid rgba(224, 138, 0, .25); margin-bottom: 20px; font-size: .9rem; }
.keybox b { color: #8a4b00; }
.keybox .btn { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { position: relative; padding: 18px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat small { color: var(--text-faint); font-weight: 600; }
.stat--alert b { color: var(--danger); }
.imm { margin-bottom: 16px; }
.imm__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.imm__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); flex: none; }
.imm__title { flex: 1; min-width: 180px; }
.imm__title b { display: block; font-size: 1.05rem; }
.imm__title small { color: var(--text-muted); }
.imm__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dlist { display: grid; gap: 8px; margin-top: 16px; }
.drow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); transition: border-color .2s, transform .25s var(--ease); }
.drow:hover { border-color: var(--brand-500); transform: translateX(3px); }
.drow__state { width: 10px; height: 10px; border-radius: 50%; background: #ffb020; box-shadow: 0 0 0 4px rgba(255, 176, 32, .18); }
.drow__state.is-done { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.drow__main b { display: block; font-size: .95rem; }
.drow__main small { color: var(--text-faint); }
.drow__steps { font-size: .82rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.drow__alert { color: var(--danger); }
@media (max-width: 560px) { .drow { grid-template-columns: auto 1fr; } .drow__steps { grid-column: 2; } .drow .btn { grid-column: 1 / -1; } }
.dempty { color: var(--text-faint); font-size: .9rem; margin-top: 12px; }

/* Affiche QR (aperçu + impression A4) */
.poster-preview { display: grid; place-items: center; padding: 10px 0; }
.poster { width: 100%; max-width: 380px; aspect-ratio: 210 / 297; border-radius: 12px; box-shadow: var(--shadow-md); background: #fff; color: #0b1b2e; padding: 7% 8%; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--border); container-type: inline-size; }
.poster__logo { display: flex; align-items: center; gap: 2cqw; font-weight: 800; font-size: 4.2cqw; }
.poster__logo span { width: 8cqw; height: 8cqw; border-radius: 2.4cqw; display: grid; place-items: center; background: linear-gradient(135deg, #1273e6, #07479a); color: #fff; }
.poster__logo span svg { width: 4.6cqw; height: 4.6cqw; }
.poster h2 { font-size: 9cqw; line-height: 1.05; margin: 6cqw 0 2cqw; letter-spacing: -.03em; }
.poster h2 em { font-family: var(--font-serif); font-weight: 400; color: #0a66d6; }
.poster__sub { font-size: 4cqw; color: #51657c; }
.poster__qr { width: 58cqw; height: 58cqw; margin: 6cqw 0 3cqw; padding: 2.5cqw; border-radius: 4cqw; border: .6cqw solid #0a66d6; }
.poster__qr svg { width: 100%; height: 100%; display: block; }
.poster__scan { font-weight: 800; font-size: 4.6cqw; }
.poster__perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqw 3cqw; margin-top: 4cqw; font-size: 3cqw; color: #51657c; font-weight: 600; }
.poster__foot { margin-top: auto; font-size: 3cqw; color: #66798f; }
.poster__foot b { color: #0b1b2e; }
@media print {
  @page { size: A4; margin: 10mm; }
  body.print-doc #printArea .poster { max-width: none; width: 190mm; height: 275mm; aspect-ratio: auto; box-shadow: none; border: 0; border-radius: 0; padding: 12mm 10mm; }
}

/* Accueil : section pros */
.audiences { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .audiences { grid-template-columns: 1fr; } }
.audience { position: relative; padding: 30px; border-radius: var(--radius-xl); background: var(--bg-elev); border: 1px solid var(--border); overflow: hidden; transition: opacity .8s var(--ease), transform .45s var(--ease), box-shadow .4s, border-color .3s; }
.audience:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.audience__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand); margin-bottom: 18px; transition: transform .4s var(--spring); }
.audience:hover .audience__icon { transform: rotate(-8deg) scale(1.06); }
.audience h3 { font-size: 1.35rem; }
.audience ul { margin: 14px 0 22px; display: grid; gap: 8px; color: var(--text-muted); font-size: .95rem; }
.audience li { display: flex; gap: 10px; }
.audience li .icon { color: var(--accent); margin-top: 3px; }
.imm-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--brand-100); box-shadow: var(--shadow-sm); margin-top: 22px; max-width: 520px; font-size: .92rem; animation: pop-in .6s var(--spring); }
.imm-banner .imm__icon { width: 38px; height: 38px; }
.imm-banner b { display: block; }
.imm-banner small { color: var(--text-muted); }
.header__nav { display: flex; align-items: center; gap: 6px; }
.header__link { padding: 8px 12px; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--text-muted); transition: background .2s, color .2s; }
.header__link:hover { background: var(--bg-soft); color: var(--text); }
@media (max-width: 720px) { .header__link { display: none; } }

/* =========================================================
   v3 — constat signé en ligne + correctifs d'espacement
   ========================================================= */
/* Le texte d'introduction ne colle plus au titre */
.card__lead { margin: 0 0 16px; }
.card__head + .card__lead { margin-top: -4px; }
.form-card h2 + .card__lead, .form-card h2 + p { margin-top: 10px; margin-bottom: 8px; }

/* État du constat dans le dossier */
.ct-parties { display: grid; gap: 8px; margin-bottom: 4px; }
.ct-partie { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg); transition: border-color .3s, background .3s; }
.ct-partie.is-signed { border-color: rgba(31, 185, 132, .4); background: #f0fbf6; }
.ct-partie__badge { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--brand-50); color: var(--brand-600); flex: none; }
.ct-partie.is-signed .ct-partie__badge { background: var(--accent); color: #fff; }
.ct-partie__main { flex: 1; min-width: 0; }
.ct-partie__main b { display: block; font-size: .95rem; }
.ct-partie__main small { color: var(--text-faint); font-size: .82rem; }
.ct-partie__ok { color: var(--accent); }
.ct-partie__ok .icon { width: 22px; height: 22px; stroke-width: 3; }

/* Fenêtre du constat */
.ct-warn { padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: #8a4b00; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.wiz__step h3.ct-sep { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--border-strong); }
.ct-recap { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); font-size: .9rem; margin: 14px 0; }
.option:disabled { opacity: .5; cursor: not-allowed; transform: none; background: var(--bg-soft); }
.sig-wrap { position: relative; border-radius: 16px; border: 2px dashed var(--border-strong); background: #fff; overflow: hidden; }
.sig-pad { display: block; width: 100%; height: auto; aspect-ratio: 600 / 220; touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; left: 16px; bottom: 12px; font-size: .78rem; font-weight: 600; color: var(--text-faint); pointer-events: none; }
.sig-hint::before { content: "✕ "; }

/* Constat imprimé */
.doc--constat .constat-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.doc--constat h3 { font-size: 12pt; margin: 0 0 6px; color: #0a66d6; }
.doc--constat .constat-partie .doc-table th { width: 40%; }
.constat-sign { margin-top: 10px; border: 1px solid #ddd; border-radius: 6px; padding: 6px; min-height: 90px; display: grid; place-items: center; text-align: center; }
.constat-sign img { max-width: 100%; max-height: 80px; }
.constat-sign small { display: block; color: #666; font-size: 8.5pt; margin-top: 4px; }
.constat-sign__vide { color: #999; font-size: 9pt; }
.doc-brouillon { border: 2px solid #e08a00; color: #8a4b00; text-align: center; font-weight: 700; padding: 6px; border-radius: 6px; margin-bottom: 10px !important; }

/* Accueil : étape 3 plus claire (fait / à faire / ensuite) */
.mini-check { width: 86%; }
.mini-check span { justify-content: space-between; }
.mini-check span > em { font-style: normal; display: flex; align-items: center; gap: 10px; }
.mini-check i { display: grid; place-items: center; color: #fff; }
.mini-check i .icon { width: 12px; height: 12px; stroke-width: 3.5; }
.mini-check .is-now i { background: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.mini-check .is-later i { background: var(--border-strong); }
.mini-check .is-now { outline: 1.5px solid var(--brand-100); }
.mini-check .is-later { color: var(--text-faint); }
.mini-tag { font-size: .66rem; font-weight: 800; letter-spacing: .02em; padding: 2px 7px; border-radius: 99px; background: var(--accent-soft); color: #0b6b4c; white-space: nowrap; }
.mini-tag--now { background: var(--brand-50); color: var(--brand-600); }
.mini-tag--later { background: var(--bg-soft); color: var(--text-faint); }

/* Gratuit bien visible */
.free-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: #0b6b4c; font-weight: 800; font-size: .8rem; }
.cta-free { margin-top: 14px !important; font-weight: 600; color: #d6e6fb; }

.step__visual--tall { height: 176px; }

/* =========================================================
   v4 — pages légales, urgence, mes dossiers, guides
   ========================================================= */
.legal h3 { font-size: 1rem; margin: 18px 0 6px; }
.legal ul { list-style: disc; padding-left: 22px; color: var(--text-muted); margin-top: 8px; display: grid; gap: 6px; }
.legal-date { font-size: .88rem; color: var(--text-faint) !important; }
.todo-box { padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: #8a4b00 !important; margin: 14px 0; }
.legal-key { margin: 22px 0; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.legal-key h2 { margin-top: 0; }
.legal-table { margin-top: 10px; }
.legal-table td { color: var(--text-muted); }
.legal a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.legal a.btn { text-decoration: none; color: var(--brand-600); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .86rem; color: var(--text-muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand-500); }
.consent a, .form-legal a { color: var(--brand-600); text-decoration: underline; }
.form-legal { font-size: .8rem; color: var(--text-faint); margin-top: 12px; text-align: center; }

/* Premiers gestes d'urgence */
.urgence { border-color: rgba(229, 72, 77, .3); background: linear-gradient(160deg, #fff5f5, #fff 55%); }
.urgence .card__head h2 { display: flex; align-items: center; gap: 10px; }
.urgence__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 rgba(229, 72, 77, .6); animation: pulse-red 2s infinite; }
@keyframes pulse-red { 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0) } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0) } }
.gestes { display: grid; gap: 8px; counter-reset: g; }
.geste { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); font-size: .93rem; }
.geste::before { counter-increment: g; content: counter(g); width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--danger-soft); color: #b42318; font-weight: 800; font-size: .8rem; }
.geste b { display: block; }
.geste small { color: var(--text-muted); }
.urgence__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hint-box { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); font-size: .88rem; }

/* Mes dossiers (accueil) */
.mes-dossiers { margin-top: 26px; max-width: 520px; }
.mes-dossiers__title { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.mes-dossiers a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--border); margin-bottom: 8px; transition: border-color .2s, transform .25s var(--ease); }
.mes-dossiers a:hover { border-color: var(--brand-500); transform: translateX(3px); }
.mes-dossiers a b { display: block; font-size: .93rem; }
.mes-dossiers a small { color: var(--text-faint); font-size: .8rem; }
.mes-dossiers a > span:nth-child(2) { flex: 1; min-width: 0; }
.mes-dossiers .imm__icon { width: 36px; height: 36px; }

/* Guides */
.guide { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 60px; }
.guide h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); margin: 14px 0 14px; }
.guide .lead { font-size: 1.12rem; color: var(--text-muted); }
.guide h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.guide p, .guide li { color: var(--text-muted); }
.guide p { margin-top: 10px; }
.guide ol, .guide ul { padding-left: 22px; margin-top: 10px; display: grid; gap: 8px; }
.guide ol { list-style: decimal; } .guide ul { list-style: disc; }
.guide strong { color: var(--text); }
.guide-cta { margin: 36px 0; padding: 28px; border-radius: var(--radius-xl); background: var(--gradient-brand); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.guide-cta h2 { margin: 0 0 8px; color: #fff; }
.guide-cta p { color: #d6e6fb; margin-bottom: 18px; }
.guide-meta { font-size: .85rem; color: var(--text-faint); }
.guide-list { display: grid; gap: 12px; margin-top: 18px; }
.guide-list a { display: block; padding: 18px 20px; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s; }
.guide-list a:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.guide-list b { display: block; font-size: 1.05rem; }
.guide-list small { color: var(--text-muted); }
.guide-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .93rem; }
.guide-table th, .guide-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); }

/* Pied de page : les liens passent à la ligne (sinon la page dézoome sur mobile) */
.footer__links { flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 640px) { .footer__inner { flex-direction: column; text-align: center; } .footer__links { justify-content: center; } }

/* Le halo du tableau de bord reste dans son bloc (sinon dézoom sur mobile) */
.dash { position: relative; isolation: isolate; overflow: hidden; }
html, body { overflow-x: clip; }

/* ---------- v6 : sauvegarde du lien, espaces syndic / pro, retrouver un accès ---------- */
.savebox { display: grid; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid rgba(224, 138, 0, .25); margin-bottom: 20px; font-size: .9rem; }
.savebox__txt { display: grid; gap: 4px; }
.savebox__txt b { color: #8a4b00; }
.savebox__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.savebox.is-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; background: rgba(31, 185, 132, .1); border-color: rgba(31, 185, 132, .3); padding: 12px 16px; }
.savebox__ok { display: flex; align-items: flex-start; gap: 8px; color: var(--text); }
.savebox__ok > svg { color: var(--accent); flex: none; margin-top: 2px; }
.card .savebox { margin: 12px 0 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-600); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acces-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.acces-form .input { flex: 1 1 240px; min-width: 0; }
.acces-card { margin-top: 18px; }
.acces-card h3 { font-size: 1rem; margin-bottom: 4px; }
.espace-card select { width: 100%; margin: 10px 0; }
.pro-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--warn-soft); color: #8a4b00; }
.pro-badge.is-ok { background: rgba(31, 185, 132, .14); color: #0d7a55; }
.lead-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--border); }
.lead-row:first-child { border-top: 0; }
.lead-row small { color: var(--text-muted); display: block; }
.lead-row__btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
@media (max-width: 560px) { .lead-row { grid-template-columns: 1fr; } .lead-row__btns { justify-content: flex-start; } }
.header__espace { display: none; }
.header__espace.is-on { display: inline-flex; }
.espace-ok { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .92rem; margin: 0; }
.espace-ok > svg { color: var(--accent); }
.espace-card > div + p, .espace-card > p + div { margin-top: 12px; }
.drow__btns { display: flex; gap: 8px; align-items: center; }
@media (max-width: 560px) {
  .drow .drow__btns { grid-column: 1 / -1; }
  .drow__btns .btn--primary { flex: 1; }
  .savebox__btns .btn { flex: 1 1 auto; justify-content: center; }
}
.nouveautes { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--brand-50); border: 1px solid rgba(10, 102, 214, .25); display: grid; gap: 10px; animation: pop-in .4s var(--ease); }
.nouveautes__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.nouveautes__head small { color: var(--text-muted); }
.nouveautes__badge { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--brand-500); color: #fff; font-weight: 700; font-size: .85rem; }
.nouveautes ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; color: var(--text-muted); }
.nouveautes__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.tl--unseen .tl__dot { box-shadow: 0 0 0 4px rgba(10, 102, 214, .25); }
.tl--unseen .tl__meta::after { content: "Nouveau"; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--brand-500); color: #fff; font-size: .7rem; font-weight: 700; }

/* ---------- v8 : dossier complet, attestation ---------- */
.doc-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.doc-photos figure { margin: 0; break-inside: avoid; }
.doc-photos img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.doc-photos figcaption { font-size: 8pt; color: #555; margin-top: 2px; }
.doc-bloc { margin: 8px 0 12px; }
.doc-histo__date { white-space: nowrap; width: 1%; color: #555; }
.doc--complet h2 { break-after: avoid; }
.doc-btn--star { border-color: var(--brand-500); background: var(--brand-50); }
.doc-btn--star b { color: var(--brand-700); }
.rapport-card [data-action="attestation"] { margin-top: 12px; }
.dash__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-assureur { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 6px; justify-items: start; }
