/* SM CLIC : feuille de style (maquette Livrable 1)
   Charte SE2M : vert #30603C, vert profond #23462D, lime #70AD47, noir #010202 */

:root {
  --vert: #30603C;
  --vert-profond: #23462D;
  --lime: #70AD47;
  --lime-clair: #A6D485;
  --encre-lime: #0D1F12;
  --noir: #010202;

  --bg: #F4F7F4;
  --surface: #FFFFFF;
  --surface2: #EBF1EC;
  --ink: #010202;
  --ink2: #55635A;
  --line: #DCE4DE;
  --brand: #30603C;
  --side: #23462D;
  --limeSoft: #E8F3DF;
  --shadow: rgba(1, 2, 2, .08);
  --okBg: #E4EDF8;  --okFg: #1E4F8A;
  --waitBg: #FBF0D6; --waitFg: #7A520C;
  --noBg: #FBE4E0;  --noFg: #9B2C1E;
  --lateBg: #FDE7D3; --lateFg: #984709;
  --neuBg: #EBF1EC; --neuFg: #55635A;

  --f-texte: 'Figtree', system-ui, sans-serif;
  --f-titre: 'Barlow', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --px: 18px;
  --ressort: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --px: 32px; } }
@media (min-width: 1040px) { :root { --px: 48px; } }

:root[data-theme="sombre"] {
  --bg: #132619;
  --surface: #1A3321;
  --surface2: #22432B;
  --ink: #F0F5F1;
  --ink2: #A9BBAE;
  --line: #2C4E35;
  --brand: #A6D485;
  --side: #0E1E13;
  --limeSoft: #27482E;
  --shadow: rgba(0, 0, 0, .35);
  --okBg: #1C3656;  --okFg: #B5CFF2;
  --waitBg: #493915; --waitFg: #F3D48C;
  --noBg: #4E231D;  --noFg: #F5AFA4;
  --lateBg: #4D2F14; --lateFg: #F7C08C;
  --neuBg: #22432B; --neuFg: #A9BBAE;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-texte); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; color: inherit; }
input { font: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; flex: none; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--f-mono); }
/* Visibilité selon l'écran : m = mobile (< 720 px), d = ordinateur (>= 1040 px) */
@media (max-width: 719px) { .cache-m { display: none !important; } }
@media (min-width: 720px) { .seul-m { display: none !important; } }
@media (max-width: 1039px) { .seul-d { display: none !important; } }
@media (min-width: 1040px) { .cache-d { display: none !important; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

@keyframes clicSpin { to { transform: rotate(360deg); } }
@keyframes clicPulse { 0% { box-shadow: 0 0 0 0 rgba(112,173,71,.55); } 100% { box-shadow: 0 0 0 12px rgba(112,173,71,0); } }
@keyframes entree { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes secousse { 0%,100% { transform: translateX(0); } 20% { transform: translateX(12px); } 40% { transform: translateX(-10px); } 60% { transform: translateX(7px); } 80% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.ecran { animation: entree .45s var(--ressort) both; }
#app > div { overflow-x: clip; } /* les cercles décoratifs ne doivent jamais créer de défilement horizontal */

/* ---------- Éléments communs ---------- */

.rond { position: absolute; border-radius: 50%; pointer-events: none; }
.conteneur { max-width: 1240px; margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }
.surtitre { font-family: var(--f-mono); font-size: 12px; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.titre-2 { font-family: var(--f-titre); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
@media (min-width: 720px) { .titre-2 { font-size: 48px; } }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: clicSpin .7s linear infinite; }

/* Bouton lime à ombre décalée, signature CLIC */
.btn-lime {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 16px; background: var(--lime); color: var(--encre-lime); font-weight: 700;
  box-shadow: 4px 4px 0 var(--vert-profond); transition: transform .18s, box-shadow .18s, background .3s, color .3s;
}
.btn-lime:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--vert-profond); }
.btn-lime:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--vert-profond); }
.btn-lime.ombre-noire { box-shadow: 4px 4px 0 var(--noir); }
.btn-lime.ombre-noire:hover { box-shadow: 6px 6px 0 var(--noir); }
.btn-lg { padding: 17px 26px; font-size: 17px; }
.btn-md { padding: 16px 24px; font-size: 16px; }
.btn-contour {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600;
  transition: border-color .2s;
}
.btn-contour:hover { border-color: var(--brand); text-decoration: none; }
.btn-icone {
  width: 40px; height: 40px; flex: none; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: grid; place-items: center; position: relative;
}

/* Logotype CLIC */
.marque-c {
  position: relative; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--vert);
  display: grid; place-items: center; box-shadow: 2px 2px 0 rgba(1,2,2,.25);
}
.marque-c b { font-family: var(--f-titre); font-weight: 800; color: #fff; font-size: 20px; line-height: 1; }
.marque-c i { position: absolute; right: 5px; bottom: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.marque-c.t36 { width: 36px; height: 36px; border-radius: 11px; } .marque-c.t36 b { font-size: 24px; } .marque-c.t36 i { right: 6px; bottom: 7px; width: 7px; height: 7px; }
.marque-c.t38 { width: 38px; height: 38px; border-radius: 11px; box-shadow: 2px 2px 0 rgba(1,2,2,.35); } .marque-c.t38 b { font-size: 25px; } .marque-c.t38 i { right: 6px; bottom: 7px; width: 7px; height: 7px; }
.marque-c.t52 { width: 52px; height: 52px; border-radius: 15px; box-shadow: 3px 3px 0 rgba(1,2,2,.3); } .marque-c.t52 b { font-size: 34px; } .marque-c.t52 i { right: 8px; bottom: 10px; width: 9px; height: 9px; }
.marque-nom { display: flex; flex-direction: column; line-height: 1; }
.marque-nom b { font-family: var(--f-titre); font-weight: 800; font-size: 17px; letter-spacing: .02em; color: var(--brand); white-space: nowrap; }
.marque-nom small { font-family: var(--f-mono); font-size: 10px; color: var(--ink2); margin-top: 2px; }

.pastille {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; transition: background .3s, color .3s; white-space: nowrap;
}
.pastille::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-wait { background: var(--waitBg); color: var(--waitFg); }
.st-ok { background: var(--okBg); color: var(--okFg); }
.st-no { background: var(--noBg); color: var(--noFg); }
.st-late { background: var(--lateBg); color: var(--lateFg); }
.st-neu { background: var(--neuBg); color: var(--neuFg); }

.carte { border-radius: 28px; background: var(--surface); border: 1px solid var(--line); padding: 20px; }
@media (min-width: 720px) { .carte { padding: 28px; } }
.carte h2 { font-family: var(--f-titre); font-weight: 700; font-size: 24px; line-height: 1.1; }

/* ============ ACCUEIL ============ */

.site-entete {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.site-entete .conteneur { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 12px; }
@media (min-width: 720px) { .site-entete .conteneur { gap: 20px; } }
.marques { display: flex; align-items: center; gap: 14px; }
.marques .logo-se2m { height: 30px; }
.marques .sep { width: 1px; height: 28px; background: var(--line); }
.marques .clic { display: flex; align-items: center; gap: 8px; }
.espace-flex { flex: 1; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 14px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px; }
.site-nav a:hover { background: var(--surface2); text-decoration: none; }
.btn-entete { padding: 11px 18px; font-size: 15px; border-radius: 13px; box-shadow: 3px 3px 0 var(--vert-profond); }
.btn-entete:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--vert-profond); }

.hero { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; padding-top: 36px; padding-bottom: 40px; }
@media (min-width: 720px) { .hero { padding-top: 72px; } }
@media (min-width: 1040px) { .hero { grid-template-columns: 1.05fr 1fr; } }
.hero-texte { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--limeSoft); color: var(--brand); font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-family: var(--f-titre); font-weight: 800; font-size: 48px; line-height: .96; letter-spacing: -.02em; margin: 22px 0; text-wrap: balance; }
@media (min-width: 720px) { .hero h1 { font-size: 64px; } }
@media (min-width: 1040px) { .hero h1 { font-size: 86px; } }
.hero h1 .vert { color: var(--brand); } .hero h1 .point { color: var(--lime); }
.hero-intro { font-size: 19px; color: var(--ink2); max-width: 520px; margin-bottom: 32px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn-contour { padding: 17px 24px; font-size: 17px; border-radius: 16px; }
.hero-lots { display: flex; align-items: center; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-lots .pions { display: flex; padding-left: 6px; }
.hero-lots .pion { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line); margin-left: -6px; display: grid; place-items: center; color: var(--brand); }
.hero-lots span { font-size: 14px; color: var(--ink2); }

.hero-visuel { position: relative; min-height: 380px; }
@media (min-width: 720px) { .hero-visuel { min-height: 560px; } }
.hero-visuel .r1 { width: 118%; aspect-ratio: 1; background: var(--vert-profond); right: -38%; top: -16%; }
.hero-visuel .r2 { width: 40%; aspect-ratio: 1; background: var(--lime); left: -8%; bottom: -6%; }
.hero-photo { position: relative; z-index: 1; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 12px 12px 0 rgba(1,2,2,.18); }
@media (min-width: 720px) { .hero-photo { margin-left: 80px; } }
@media (min-width: 1040px) { .hero-photo { margin-left: 36px; } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; }
.hero-photo .etiquette { position: absolute; top: 16px; right: 16px; padding: 8px 12px; border-radius: 12px; background: rgba(1,2,2,.62); backdrop-filter: blur(8px); color: #fff; font-family: var(--f-mono); font-size: 12px; }
.carte-decision-hero {
  position: absolute; z-index: 2; left: 12px; bottom: 28px; width: 300px; max-width: calc(100% - 24px); padding: 16px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px var(--shadow), 4px 4px 0 rgba(1,2,2,.08);
}
@media (min-width: 1040px) { .carte-decision-hero { left: -8px; } }
.carte-decision-hero .tete { display: flex; gap: 12px; align-items: center; }
.ico-carre { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--limeSoft); color: var(--brand); display: grid; place-items: center; }
.carte-decision-hero small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.carte-decision-hero b { font-weight: 600; font-size: 15px; }
.carte-decision-hero button {
  margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 0;
  border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--lime); color: var(--encre-lime); transition: background .3s, color .3s;
}
.carte-decision-hero button.fait { background: var(--okBg); color: var(--okFg); }

.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); border-top: 1px solid var(--line); }
.chiffre { padding: 28px 24px 8px 0; }
.chiffre b { display: block; font-family: var(--f-titre); font-weight: 800; font-size: 60px; line-height: 1; letter-spacing: -.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.chiffre p { margin-top: 10px; color: var(--ink2); font-size: 15px; max-width: 220px; }

.section { padding-top: 56px; padding-bottom: 56px; }
.section-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.section-tete .surtitre { margin-bottom: 12px; }
.section-tete h2 { max-width: 640px; }
.section-tete > p { color: var(--ink2); max-width: 380px; }
.grille-metiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.metier { padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ressort), box-shadow .25s; }
.metier:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--lime); }
.metier .ico { width: 52px; height: 52px; border-radius: 15px; background: var(--vert); color: #fff; display: grid; place-items: center; box-shadow: 3px 3px 0 rgba(1,2,2,.18); }
.metier h3 { font-family: var(--f-titre); font-weight: 700; font-size: 23px; margin-top: 22px; line-height: 1.1; }
.metier small { display: block; font-family: var(--f-mono); font-size: 12px; color: var(--ink2); margin-top: 4px; }
.metier p { margin-top: 14px; color: var(--ink2); font-size: 15px; text-wrap: pretty; }

.bandeau { position: relative; overflow: hidden; border-radius: 36px; background: var(--vert-profond); color: #fff; padding: 36px 24px; }
@media (min-width: 720px) { .bandeau { padding: 64px 56px; } }
.bandeau .r1 { width: 360px; height: 360px; background: var(--lime); right: -110px; top: -150px; }
.bandeau .r2 { width: 520px; height: 520px; background: var(--vert); left: -220px; bottom: -330px; }
.bandeau .contenu { position: relative; }
.bandeau .surtitre { color: var(--lime-clair); }
.bandeau h2 { margin: 14px 0 40px; max-width: 640px; }
.etapes-promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.etapes-promo > div { border-top: 1px solid rgba(255,255,255,.2); padding-top: 18px; }
.etapes-promo small { font-family: var(--f-mono); font-size: 13px; color: var(--lime-clair); }
.etapes-promo h3 { font-family: var(--f-titre); font-weight: 700; font-size: 22px; margin-top: 8px; }
.etapes-promo p { margin-top: 8px; color: rgba(255,255,255,.8); font-size: 15px; }
.bandeau .btn-lime { margin-top: 40px; }

.lien-fleche { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.grille-refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.ref { display: flex; flex-direction: column; gap: 14px; }
.ref .photo { aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; position: relative; background: var(--surface2); }
.ref .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ressort); }
.ref:hover .photo img { transform: scale(1.04); }
.ref .photo.vide { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface2) 0 10px, var(--bg) 10px 20px); }
.ref .photo.vide span { font-family: var(--f-mono); font-size: 12px; color: var(--ink2); background: var(--surface); padding: 6px 10px; border-radius: 8px; }
.ref .meta { display: flex; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--ink2); }
.ref h3 { font-family: var(--f-titre); font-weight: 700; font-size: 22px; line-height: 1.15; margin-top: -6px; }
.ref p { font-size: 14px; color: var(--ink2); }

.pied { position: relative; overflow: hidden; background: var(--side); color: #fff; margin-top: 48px; }
.pied .r1 { width: 420px; height: 420px; background: var(--vert); right: -140px; top: -200px; }
.pied .r2 { width: 180px; height: 180px; background: var(--lime); right: 220px; bottom: -120px; }
.pied .conteneur { position: relative; padding-top: 56px; padding-bottom: 32px; }
.pied-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 36px; }
.pied .logo-blanc { height: 40px; }
.pied .clic-nom { margin-top: 18px; font-family: var(--f-titre); font-weight: 800; font-size: 20px; white-space: nowrap; }
.pied .clic-nom span { font-family: var(--f-mono); font-weight: 400; font-size: 13px; color: rgba(255,255,255,.75); }
.pied .desc { color: rgba(255,255,255,.78); font-size: 14px; margin-top: 8px; max-width: 260px; }
.pied-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: rgba(255,255,255,.85); align-items: flex-start; }
.pied-col .surtitre { color: var(--lime-clair); margin-bottom: 4px; }
.pied-col button, .pied-col a { border: 0; background: none; padding: 0; color: rgba(255,255,255,.85); font-size: 15px; text-align: left; }
.pied-col button:hover, .pied-col a:hover { color: #fff; text-decoration: none; }
.pied-bas { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,.7); }

/* ============ CONNEXION ============ */

.ecran-connexion { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: var(--vert-profond); }
.ecran-connexion .r1 { width: 760px; height: 760px; background: var(--vert); right: -300px; top: -320px; }
.ecran-connexion .r2 { width: 520px; height: 520px; background: var(--lime); left: -220px; bottom: -260px; }
.ecran-connexion .r3 { width: 120px; height: 120px; border: 2px solid rgba(166,212,133,.5); right: 18%; bottom: 12%; }
.connexion-cadre { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 20px var(--px); }
.connexion-haut { display: flex; justify-content: space-between; align-items: center; }
.btn-retour { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; font-weight: 500; }
.btn-retour:hover { background: rgba(255,255,255,.12); }
.connexion-haut img { height: 28px; }
.connexion-centre { flex: 1; display: grid; place-items: center; padding: 32px 0; }
.carte-connexion { width: 100%; max-width: 440px; background: var(--surface); border-radius: 30px; padding: 24px 20px; box-shadow: 10px 10px 0 rgba(1,2,2,.35); }
@media (min-width: 720px) { .carte-connexion { padding: 36px; } }
.carte-connexion.secoue { animation: secousse .35s linear; }
.carte-connexion .entete { display: flex; align-items: center; gap: 12px; }
.carte-connexion .entete .marque-nom b { font-size: 28px; text-shadow: 2px 2px 0 rgba(1,2,2,.12); }
.carte-connexion .entete .marque-nom small { font-size: 11px; margin-top: 4px; }
.carte-connexion h1 { font-family: var(--f-titre); font-weight: 800; font-size: 32px; line-height: 1.05; margin: 26px 0 8px; letter-spacing: -.01em; }
.carte-connexion .intro { color: var(--ink2); font-size: 15px; margin-bottom: 24px; }
.segments { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--surface2); margin-bottom: 22px; }
.segments button { padding: 10px; border: 0; border-radius: 11px; font-size: 14px; font-weight: 600; background: transparent; color: var(--ink); transition: all .2s; }
.segments button[aria-selected="true"] { background: var(--surface); box-shadow: 0 2px 8px var(--shadow); }
.libelle { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.saisie {
  width: 100%; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.saisie:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(112,173,71,.18); }
.saisie.code { font-family: var(--f-mono); font-size: 18px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.pin { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pin .case {
  height: 58px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 24px; font-weight: 600; transition: border-color .15s, transform .15s;
}
.pin .case.pleine { border-color: var(--brand); transform: translateY(-2px); }
.pin .case.active { border: 2px solid var(--lime); }
.pin input { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 24px; cursor: text; }
.erreur-login { margin-top: 10px; font-size: 13px; color: var(--noFg); font-weight: 500; }
.btn-connexion { margin-top: 22px; width: 100%; height: 56px; font-size: 16px; }
.btn-connexion.ok { background: var(--vert); color: #fff; }
.demo { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink2); }
.demo span { font-family: var(--f-mono); }
.demo button { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 600; font-size: 13px; }
.note-lien { margin-top: 14px; font-size: 13px; color: var(--ink2); }
.lien-envoye { text-align: center; padding: 8px 0; }
.lien-envoye .rond-ok { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--lime); color: var(--encre-lime); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--vert-profond); }
.lien-envoye h2 { font-family: var(--f-titre); font-weight: 700; font-size: 22px; margin-top: 16px; }
.lien-envoye p { margin: 6px 0 20px; color: var(--ink2); font-size: 15px; }
.lien-envoye .btn-contour { width: 100%; height: 52px; }
.connexion-bas { text-align: center; color: rgba(255,255,255,.75); font-size: 13px; }

/* ============ SÉLECTEUR DE PROJET ============ */

.ecran-projets { min-height: 100vh; background: var(--bg); }
.projets-haut { max-width: 1180px; margin: 0 auto; padding: 18px var(--px); display: flex; align-items: center; gap: 12px; }
.projets-haut .nom { font-family: var(--f-titre); font-weight: 800; font-size: 20px; color: var(--brand); white-space: nowrap; }
.btn-deconnexion { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; }
.projets-corps { max-width: 1180px; margin: 0 auto; padding: 32px var(--px) 64px; position: relative; }
.projets-corps .r1 { width: 180px; height: 180px; background: var(--lime); right: -40px; top: -30px; opacity: .9; }
.projets-corps .r2 { width: 90px; height: 90px; background: var(--vert); right: 110px; top: 90px; }
.projets-corps .surtitre { position: relative; color: var(--ink2); letter-spacing: .06em; }
.projets-corps h1 { position: relative; margin: 12px 0 10px; }
.projets-corps .intro { position: relative; margin-bottom: 36px; color: var(--ink2); font-size: 17px; max-width: 520px; }
.grille-projets { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.carte-projet {
  text-align: left; padding: 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  display: flex; flex-direction: column; gap: 18px; transition: transform .25s var(--ressort), box-shadow .25s; animation: entree .5s var(--ressort) both;
}
.carte-projet:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--vert); }
.carte-projet .ligne { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.code-projet { font-family: var(--f-mono); font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: 8px; background: var(--surface2); color: var(--brand); }
.carte-projet .pastille { padding: 5px 10px; }
.carte-projet h2 { font-family: var(--f-titre); font-weight: 700; font-size: 26px; line-height: 1.1; }
.carte-projet .type { color: var(--ink2); font-size: 14px; margin-top: 6px; }
.carte-projet .avance { width: 100%; }
.carte-projet .avance-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.carte-projet .avance-tete span { font-size: 13px; color: var(--ink2); }
.carte-projet .avance-tete strong { color: var(--ink); }
.carte-projet .avance-tete b { font-family: var(--f-titre); font-weight: 800; font-size: 28px; color: var(--brand); }
.segments-phase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.segments-phase i { height: 6px; border-radius: 3px; background: var(--surface2); }
.segments-phase i.fait { background: var(--vert); }
.segments-phase i.cours { background: var(--lime); }
.carte-projet .pied-carte { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-top: 16px; border-top: 1px solid var(--line); }
.mini-lots { display: flex; gap: 6px; }
.mini-lots span { width: 30px; height: 30px; border-radius: 9px; background: var(--surface2); color: var(--brand); display: grid; place-items: center; }
.ouvrir { display: flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: 14px; }

/* ============ ESPACE CLIENT ============ */

.ecran-espace { display: flex; min-height: 100vh; }
.barre-laterale {
  width: 272px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden;
  /* cercle décoratif dessiné en fond : il ne crée pas de barre de défilement */
  background: radial-gradient(circle 110px at 20px 100%, var(--vert) 99.5%, transparent 100%), var(--side);
  color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
}
.barre-laterale .marque { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.barre-laterale .marque-nom b { font-size: 21px; color: #fff; }
.barre-laterale .marque-nom small { color: rgba(255,255,255,.7); margin-top: 3px; }
.choix-projet {
  position: relative; text-align: left; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; gap: 10px;
}
.choix-projet:hover { background: rgba(255,255,255,.1); }
.choix-projet div { flex: 1; min-width: 0; }
.choix-projet small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--lime-clair); }
.choix-projet b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-laterale { position: relative; display: flex; flex-direction: column; gap: 4px; }
.nav-laterale button {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 13px; background: transparent;
  color: rgba(255,255,255,.84); font-size: 15px; font-weight: 500; text-align: left; transition: background .2s, color .2s;
}
.nav-laterale button:hover { background: rgba(255,255,255,.07); }
.nav-laterale button[aria-current="page"] { background: var(--lime); color: var(--encre-lime); font-weight: 700; }
.nav-laterale button span { flex: 1; }
.nav-laterale em { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--lime); color: var(--encre-lime); font-size: 12px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.nav-laterale button[aria-current="page"] em { background: var(--encre-lime); color: #fff; }
.utilisateur { position: relative; margin-top: auto; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--lime); color: var(--encre-lime); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.utilisateur > div:not(.avatar) { flex: 1; min-width: 0; line-height: 1.3; }
.utilisateur b { display: block; font-weight: 600; font-size: 14px; }
.utilisateur small { display: block; font-size: 12px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utilisateur button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.utilisateur button:hover { background: rgba(255,255,255,.1); }

.espace-principal { flex: 1; min-width: 0; background: var(--bg); }
.barre-haute {
  position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.barre-haute > div { max-width: 1180px; margin: 0 auto; padding: 12px var(--px); display: flex; align-items: center; gap: 12px; }
.titre-onglet { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; color: var(--ink); line-height: 1.25; }
.titre-onglet small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); }
.titre-onglet b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compteur { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--lime); color: var(--encre-lime); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.contenu-espace { max-width: 1180px; margin: 0 auto; padding: 24px var(--px) 120px; }
@media (min-width: 1040px) { .contenu-espace { padding-bottom: 64px; } }

.carte-hero-projet { position: relative; overflow: hidden; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); padding: 22px; }
@media (min-width: 720px) { .carte-hero-projet { padding: 36px; } }
.carte-hero-projet .r1 { width: 340px; height: 340px; background: var(--vert-profond); right: -120px; top: -170px; }
@media (max-width: 719px) { .carte-hero-projet .r1 { width: 180px; height: 180px; right: -90px; top: -110px; } }
.carte-hero-projet .r2 { width: 130px; height: 130px; background: var(--lime); right: 150px; top: -70px; }
.carte-hero-projet .contenu { position: relative; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 8px; }
.etiquettes span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: var(--surface2); color: var(--ink2); }
.etiquettes .code-projet { font-size: 12px; }
.carte-hero-projet h1 { font-family: var(--f-titre); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -.015em; margin: 16px 0 10px; max-width: 640px; text-wrap: balance; }
@media (min-width: 720px) { .carte-hero-projet h1 { font-size: 46px; } }
.adresse { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 15px; }
.lots-projet { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lots-projet span { display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 500; }
.lots-projet svg { color: var(--brand); }
.frise { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; }
.frise > div { position: relative; padding-right: 8px; }
.frise .ligne-pt { display: flex; align-items: center; }
.frise .pt { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: #fff; border: 2px solid var(--line); }
.frise .fait .pt { background: var(--vert); border: 0; }
.frise .cours .pt { border-color: var(--lime); animation: clicPulse 1.8s ease-out infinite; }
.frise .cours .pt::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.frise .trait { flex: 1; height: 3px; border-radius: 2px; margin-left: 8px; background: var(--line); }
.frise .fait .trait { background: var(--vert); }
.frise > div:last-child .trait { opacity: 0; }
.frise b { display: block; font-weight: 600; font-size: 14px; margin-top: 10px; color: var(--ink2); }
.frise .fait b, .frise .cours b { color: var(--ink); }
.frise small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); }

.grille-dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
@media (min-width: 1040px) { .grille-dash { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.grille-dash-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
@media (min-width: 900px) { .grille-dash-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.decisions-tete { display: flex; align-items: center; gap: 10px; }
.decisions-tete em { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--lime); color: var(--encre-lime); font-weight: 700; font-size: 14px; font-style: normal; display: grid; place-items: center; transition: transform .3s; }
.decisions-tete em.rebond { transform: scale(1.25); }
.sous-titre-carte { margin: 6px 0 8px; color: var(--ink2); font-size: 14px; }
.decision { overflow: hidden; max-height: 320px; transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .35s; }
.decision.repli { max-height: 0; opacity: 0; }
.decision > div { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.decision .gauche { flex: 1 1 280px; display: flex; gap: 14px; min-width: 0; }
.decision .gauche .ico-carre { width: 46px; height: 46px; border-radius: 14px; }
.decision .gauche > div:last-child { min-width: 0; }
.decision .type-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.decision .type-ligne small { font-family: var(--f-mono); font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .05em; }
.decision h3 { font-weight: 600; font-size: 17px; margin-top: 4px; line-height: 1.3; }
.decision .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13px; color: var(--ink2); }
.decision .meta span:first-child { font-family: var(--f-mono); }
.decision .montant { font-family: var(--f-titre); font-weight: 700; font-size: 20px; margin-top: 6px; }
.decision .actions { display: flex; gap: 8px; flex: 1 1 100%; }
@media (min-width: 720px) { .decision .actions { flex: 0 0 auto; } }
.decision .actions .btn-contour { padding: 12px 14px; border-radius: 13px; background: transparent; font-size: 14px; }
.decision .actions .btn-lime { flex: 1; min-width: 150px; padding: 12px 18px; border-radius: 13px; font-size: 14px; box-shadow: 3px 3px 0 var(--vert-profond); }
.decision .actions .btn-lime.fait { background: var(--okBg); color: var(--okFg); box-shadow: none; transform: none; cursor: default; }
.a-jour { padding: 28px 0 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; animation: entree .4s both; }
.illus-ok { position: relative; width: 120px; height: 84px; }
.illus-ok .g { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: var(--vert-profond); left: 0; top: 0; }
.illus-ok .p { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); right: 0; bottom: 0; display: grid; place-items: center; color: var(--encre-lime); box-shadow: 3px 3px 0 rgba(1,2,2,.2); }
.a-jour h3 { font-family: var(--f-titre); font-weight: 700; font-size: 20px; margin-top: 16px; }
.a-jour p { margin-top: 4px; color: var(--ink2); font-size: 14px; max-width: 300px; }

.jauge { position: relative; width: 200px; height: 200px; margin: 22px auto 8px; }
.jauge svg { transform: rotate(-90deg); }
.jauge .centre { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.jauge .valeur { font-family: var(--f-titre); font-weight: 800; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.jauge .valeur span { font-size: 26px; color: var(--brand); }
.jauge small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.barres-lots { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.barre-lot .lib { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.barre-lot .lib svg { color: var(--brand); }
.barre-lot .lib span { flex: 1; font-weight: 500; }
.barre-lot .lib b { font-family: var(--f-mono); font-weight: 400; color: var(--ink2); }
.barre-lot .piste { height: 7px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.barre-lot .piste i { display: block; height: 100%; border-radius: 4px; background: var(--vert); width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

.etape { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.etape .date { width: 56px; flex: none; text-align: center; padding: 6px 0; border-radius: 12px; background: var(--surface2); }
.etape .date b { display: block; font-family: var(--f-titre); font-weight: 800; font-size: 20px; line-height: 1; }
.etape .date small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); margin-top: 2px; }
.etape > div:last-child { flex: 1; min-width: 0; }
.etape h3 { font-weight: 600; font-size: 15px; line-height: 1.3; }
.etape .bas { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.etape .lot { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink2); }
.historique-tete { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.historique-tete small { font-family: var(--f-mono); font-size: 12px; color: var(--ink2); }
.entree { display: flex; gap: 12px; padding: 12px 10px; margin: 0 -10px; border-radius: 14px; transition: background 1.4s ease; }
.entree.nouvelle { background: var(--limeSoft); animation: entree .4s both; }
.entree .av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--vert); color: #fff; }
.entree .av.client { background: var(--lime); color: var(--encre-lime); }
.entree > div:last-child { flex: 1; min-width: 0; }
.entree p { font-size: 14px; line-height: 1.4; }
.entree p strong { font-weight: 600; }
.entree small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); margin-top: 3px; }

.bientot { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 16px; animation: entree .4s both; }
.illus-bientot { position: relative; width: 150px; height: 110px; }
.illus-bientot .g { position: absolute; width: 110px; height: 110px; border-radius: 50%; background: var(--vert-profond); left: 0; top: 0; }
.illus-bientot .p { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: var(--lime); right: 0; bottom: -6px; display: grid; place-items: center; color: var(--encre-lime); box-shadow: 3px 3px 0 rgba(1,2,2,.2); }
.bientot h1 { font-family: var(--f-titre); font-weight: 800; font-size: 30px; margin-top: 22px; }
.bientot p { margin: 6px 0 22px; color: var(--ink2); max-width: 360px; }
.bientot .btn-lime { padding: 13px 20px; border-radius: 14px; box-shadow: 3px 3px 0 var(--vert-profond); }

.page-plus h1 { font-family: var(--f-titre); font-weight: 800; font-size: 30px; margin: 8px 0 16px; }
.liste-plus { display: flex; flex-direction: column; gap: 10px; }
.liste-plus button { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; }
.liste-plus button span { flex: 1; }
.liste-plus .ico-carre { border-radius: 12px; }
.liste-plus .danger { color: var(--noFg); }
.liste-plus .danger .ico-carre { background: var(--noBg); color: var(--noFg); }

.nav-basse {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
@media (min-width: 1040px) { .nav-basse { display: none; } }
.nav-basse button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 52px; border: 0; background: none; color: var(--ink2); font-size: 11px; font-weight: 500; transition: color .2s; }
.nav-basse button div { position: relative; width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .25s; }
.nav-basse button[aria-current="page"] { color: var(--brand); font-weight: 700; }
.nav-basse button[aria-current="page"] div { background: var(--limeSoft); }
.nav-basse em { position: absolute; top: -2px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); border: 2px solid var(--surface); }

/* ============ AVERTISSEMENT VERSION DE TEST ============ */

.bandeau-test {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 7px 16px; background: #FBF0D6; color: #5C3D06; font-size: 13px; text-align: center;
  border-bottom: 1px solid #EBD9A8;
}
.bandeau-test b { font-weight: 700; }
.bandeau-test button { border: 0; background: none; padding: 0; color: #5C3D06; font-weight: 700; font-size: 13px; text-decoration: underline; }
.voile.voile-avis { z-index: 90; align-items: center; padding: 16px; }
.modale.avis { border-radius: 28px; text-align: left; }
.avis-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avis-badge { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--waitBg); color: var(--waitFg); }
.modale.avis h2 { margin: 22px 0 14px; font-size: 26px; }
.modale.avis p { color: var(--ink2); font-size: 15px; line-height: 1.55; }
.modale.avis p + p { margin-top: 10px; }
.modale.avis strong { color: var(--ink); font-weight: 700; }
.modale.avis .btn-lime { width: 100%; margin-top: 24px; padding: 15px 20px; font-size: 16px; }

/* ============ NOTIFICATIONS, MODALE, TOAST ============ */

.notifs {
  position: fixed; z-index: 60; top: 64px; right: 16px; width: 360px; max-width: calc(100% - 32px); border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(1,2,2,.18); padding: 8px;
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none;
  transition: opacity .2s, transform .25s var(--ressort);
}
.notifs.ouvert { opacity: 1; transform: none; pointer-events: auto; }
.notifs .tete { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; }
.notifs .tete b { font-family: var(--f-titre); font-weight: 700; font-size: 18px; }
.notifs .tete button { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 13px; padding: 0; }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 14px; }
.notif.non-lue { background: var(--bg); }
.notif .ico-carre { width: 36px; height: 36px; border-radius: 11px; background: var(--surface2); }
.notif > div:nth-child(2) { flex: 1; min-width: 0; }
.notif b { display: block; font-weight: 600; font-size: 14px; }
.notif p { font-size: 13px; color: var(--ink2); }
.notif small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); margin-top: 3px; }
.notif .point { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--lime); flex: none; }

.voile {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; padding: 0;
  background: rgba(1,2,2,.48); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
@media (min-width: 720px) { .voile { align-items: center; padding: 24px; } }
.voile.ouvert { opacity: 1; pointer-events: auto; }
.modale {
  width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 28px;
  box-shadow: 8px 8px 0 rgba(1,2,2,.25); transform: translateY(24px) scale(.96); transition: transform .35s cubic-bezier(.2,.9,.25,1.15);
}
@media (min-width: 720px) { .modale { border-radius: 28px; } }
.voile.ouvert .modale { transform: none; }
.modale .tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modale .tete small { font-family: var(--f-mono); font-size: 12px; color: var(--ink2); }
.modale h2 { font-family: var(--f-titre); font-weight: 800; font-size: 28px; line-height: 1.05; margin-top: 6px; }
.modale .fermer { width: 38px; height: 38px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; }
.modale .sous { margin: 10px 0 18px; color: var(--ink2); font-size: 15px; }
.recap { border-radius: 18px; background: var(--bg); border: 1px solid var(--line); padding: 6px 16px; }
.recap > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 14px; }
.recap > div + div { border-top: 1px solid var(--line); }
.recap span:first-child { color: var(--ink2); }
.recap .val { font-family: var(--f-mono); }
.recap .total { align-items: baseline; padding: 12px 0; }
.recap .total span:first-child { font-weight: 600; color: var(--ink); }
.recap .total b { font-family: var(--f-titre); font-weight: 800; font-size: 24px; color: var(--brand); }
.recap .petit { font-size: 13px; }
.case-accord { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; font-size: 14px; }
.case-accord input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--vert); flex: none; }
.modale .boutons { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modale .boutons .btn-contour { padding: 14px 18px; background: transparent; }
.modale .boutons .btn-lime { flex: 1; padding: 14px 18px; border-radius: 14px; box-shadow: 3px 3px 0 var(--vert-profond); }
.modale .boutons .btn-lime:disabled { background: var(--surface2); color: var(--ink2); box-shadow: none; transform: none; cursor: not-allowed; }
.accuse { text-align: center; }
.accuse .medaille { position: relative; width: 132px; height: 96px; margin: 4px auto 0; }
.accuse .medaille .g { position: absolute; width: 96px; height: 96px; border-radius: 50%; background: var(--vert-profond); left: 0; top: 0; transform: scale(0); transition: transform .5s cubic-bezier(.2,.9,.25,1.3); }
.accuse .medaille .p { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); right: 0; bottom: -4px; display: grid; place-items: center; color: var(--encre-lime); box-shadow: 3px 3px 0 rgba(1,2,2,.25); transform: scale(0); transition: transform .5s cubic-bezier(.2,.9,.25,1.4) .12s; }
.accuse.visible .medaille .g, .accuse.visible .medaille .p { transform: scale(1); }
.accuse h2 { margin: 22px 0 6px; }
.accuse > p { margin-bottom: 18px; color: var(--ink2); font-size: 15px; }
.accuse .recap { border-style: dashed; text-align: left; padding: 14px 16px; }
.accuse .recap > div { padding: 5px 0; font-size: 13px; border: 0; }
.accuse .recap .val.fort { font-weight: 600; }
.accuse .boutons .btn-contour, .accuse .boutons .btn-lime { flex: 1; padding: 14px; }

.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .4s cubic-bezier(.2,.9,.25,1.2), opacity .25s; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--vert-profond); color: #fff; box-shadow: 0 16px 40px rgba(1,2,2,.3);
  max-width: calc(100% - 32px); width: max-content;
}
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
body.avec-nav-basse .toast { bottom: 96px; }
@media (min-width: 1040px) { body.avec-nav-basse .toast { bottom: 24px; } }
.toast .rond-ok { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--lime); color: var(--encre-lime); display: grid; place-items: center; }
.toast b { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
.toast span { display: block; color: rgba(255,255,255,.78); font-size: 13px; }
