/* ---------- Fondations ---------- */
:root {
  color-scheme: dark;
  --fond: #08090b; --surface: #111317; --surface-2: #171a1f; --surface-3: #1f232a;
  --trait: rgba(255, 255, 255, .07); --trait-2: rgba(255, 255, 255, .13);
  --texte: #f3f6f9; --doux: #9ba5b1; --pale: #6b7480;
  --or: #5cb8ee; --rose: #2b86d0; --encre: #ffffff;
  --degrade: linear-gradient(135deg, #46b0ec 0%, #2b9ad8 50%, #1f6fc0 100%);
  --ok: #8fd5a8; --attente: #f0c27e; --alerte: #f3917f; --info: #a3c6ff;
  --r-xl: 26px; --r: 18px; --r-s: 12px;
  --ombre: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -28px rgba(0, 0, 0, .75);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--fond); color: var(--texte);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 88% -8%, rgba(92, 184, 238, .09), transparent 62%),
    radial-gradient(760px 520px at -10% 20%, rgba(43, 134, 208, .06), transparent 60%); }
::selection { background: rgba(92, 184, 238, .3); }
a { color: var(--or); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font: 500 clamp(1.75rem, 1.2rem + 1.7vw, 2.55rem)/1.12 var(--serif); letter-spacing: -.02em; }
h2 { font-size: 1.05rem; font-weight: 650; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--pale); font-weight: 700; margin-bottom: 10px; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
.ico { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sur { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--or); font-weight: 700; margin-bottom: 8px; }
.sous { color: var(--doux); margin: 10px 0 0; max-width: 64ch; }
.muet { color: var(--doux); }
.aide { color: var(--pale); font-size: .86rem; }
.alerte { color: var(--alerte); }
.vide { color: var(--pale); padding: 18px; border: 1px dashed var(--trait-2); border-radius: var(--r); text-align: center; margin: 0; }
.note { border-left: 2px solid var(--attente); padding: 2px 0 2px 12px; color: var(--texte); }

/* ---------- Marque ---------- */
.marque { display: inline-flex; align-items: center; gap: 11px; color: var(--texte); }
.marque:hover { text-decoration: none; }
.logo { width: 34px; height: 34px; flex: none; color: var(--texte); }
.marque b { display: block; font: 800 1.02rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.marque small { display: block; margin-top: 4px; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pale); }

/* ---------- Champs et boutons ---------- */
form { display: grid; gap: 14px; justify-items: start; margin: 14px 0 0; }
label { display: grid; gap: 6px; width: 100%; color: var(--doux); font-size: .88rem; font-weight: 550; }
label.case { display: flex; align-items: center; gap: 10px; color: var(--texte); font-weight: 500; }
input, textarea, select { width: 100%; font: inherit; font-size: 16px; color: var(--texte); background: var(--surface-2);
  border: 1px solid var(--trait-2); border-radius: var(--r-s); padding: 12px 14px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
textarea { line-height: 1.5; resize: vertical; }
select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a19b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
input:hover, textarea:hover, select:hover { border-color: rgba(255, 255, 255, .2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--or); box-shadow: 0 0 0 4px rgba(92, 184, 238, .14); }
input[readonly] { color: var(--doux); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--or); }
input[type=file] { padding: 8px; color: var(--doux); font-size: .9rem; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--texte); background: var(--surface-3);
  border: 1px solid var(--trait-2); border-radius: 9px; padding: 7px 14px; margin-right: 12px; cursor: pointer; }
button, .bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650;
  background: var(--degrade); color: var(--encre); border: 0; border-radius: var(--r-s); padding: 12px 22px; min-height: 48px;
  cursor: pointer; text-decoration: none; box-shadow: 0 10px 28px -14px rgba(43, 154, 216, .75); transition: transform .15s, filter .15s, box-shadow .15s; }
button:hover, .bouton:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
button:active, .bouton:active { transform: none; }
button:focus-visible, .bouton:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }
button.second, .bouton.second { background: rgba(255, 255, 255, .04); color: var(--texte); border: 1px solid var(--trait-2); box-shadow: none; }
button.second:hover, .bouton.second:hover { background: rgba(255, 255, 255, .08); }
button.lien { background: none; color: var(--doux); padding: 6px 0; min-height: 0; font-weight: 550; box-shadow: none; }
button.lien:hover { color: var(--texte); transform: none; }
button.occupe { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; }
.actions form { margin: 0; }
.copie { display: flex; gap: 8px; }
.copie button { flex: none; }

/* ---------- Pastilles d'état ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 650; line-height: 1; padding: 6px 11px 6px 9px;
  border-radius: 999px; white-space: nowrap; color: var(--doux); background: rgba(255, 255, 255, .05); border: 1px solid var(--trait); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { color: var(--ok); background: rgba(143, 213, 168, .08); border-color: rgba(143, 213, 168, .18); }
.b-attente { color: var(--attente); background: rgba(240, 194, 126, .08); border-color: rgba(240, 194, 126, .2); }
.b-alerte { color: var(--alerte); background: rgba(243, 145, 127, .09); border-color: rgba(243, 145, 127, .22); }
.b-info { color: var(--info); background: rgba(163, 198, 255, .08); border-color: rgba(163, 198, 255, .18); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.compteur { font-size: .74rem; font-weight: 700; background: var(--degrade); color: var(--encre); border-radius: 999px; padding: 2px 9px; }
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--trait); color: var(--texte); font-size: .86rem; font-weight: 550; }
.pastille:hover { border-color: var(--trait-2); text-decoration: none; }

/* ---------- Cartes ---------- */
.carte, .demande { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--surface);
  border: 1px solid var(--trait); border-radius: var(--r-xl); padding: 22px; margin-bottom: 16px; box-shadow: var(--ombre); overflow-wrap: anywhere; }
.carte.archive { opacity: .55; }
.carte.en-avant { border-color: rgba(92, 184, 238, .35); background: linear-gradient(160deg, rgba(92, 184, 238, .1), transparent 55%), var(--surface); }
.succes { padding: 12px 14px; border-radius: var(--r-s); background: rgba(143, 213, 168, .1); border: 1px solid rgba(143, 213, 168, .25); color: #d4f5df; }
pre { white-space: pre-wrap; font: inherit; color: var(--texte); background: var(--surface-2); border: 1px solid var(--trait);
  border-radius: var(--r-s); padding: 14px 16px; margin: 12px 0; }
video, img.media { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--r); margin: 14px 0; background: #000; }
details { margin-top: 14px; border-top: 1px solid var(--trait); padding-top: 12px; }
summary { cursor: pointer; color: var(--doux); font-weight: 550; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; width: 8px; height: 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; margin-right: 4px; }
details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
summary:hover { color: var(--texte); }
details.archives { border: 0; margin: 22px 0; padding: 0; }
details.archives > summary { padding: 14px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--trait); margin-bottom: 14px; }
.tete { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; justify-content: space-between; margin-bottom: 10px; }
.tete > div { flex: 1; min-width: 0; }
.tete h2 { margin: 0 0 2px; }
.tete .muet { margin: 0; font-size: .88rem; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; width: 100%; }
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.deux > .carte { margin-bottom: 0; }
.deux + * { margin-top: 16px; }
.blocs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--trait); }
.blocs > div { background: var(--surface-2); border: 1px solid var(--trait); border-radius: var(--r); padding: 16px; }
.portrait { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--fond), 0 0 0 3px rgba(92, 184, 238, .45); }
.initiale { display: grid; place-items: center; background: var(--surface-3); font: 600 1.5rem var(--serif); color: var(--or); }
.compte { padding: 14px 0; border-top: 1px solid var(--trait); }
.compte:first-of-type { border-top: 0; padding-top: 0; }
ul.taches, ul.journal, ul.liste, ul.versements { list-style: none; margin: 0; padding: 0; }
ul.taches li + li, ul.journal li + li, ul.liste li + li, ul.versements li + li { border-top: 1px solid var(--trait); }
ul.taches a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 4px; color: var(--texte); }
ul.taches a:hover { text-decoration: none; color: var(--or); }
ul.journal li { padding: 8px 0; font-size: .86rem; color: var(--doux); }
ul.journal time { color: var(--texte); margin-right: 6px; font-variant-numeric: tabular-nums; }
ul.liste li { display: flex; align-items: center; gap: 10px; padding: 10px 0; }

/* ---------- Chiffres clés ---------- */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.chiffre { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--trait); color: var(--texte); transition: border-color .15s, transform .15s; }
.chiffre:hover { text-decoration: none; border-color: var(--trait-2); transform: translateY(-1px); }
.chiffre span { display: flex; align-items: center; gap: 8px; color: var(--doux); font-size: .82rem; font-weight: 550; }
.chiffre strong { font: 500 2rem/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.chiffre.chaud { border-color: rgba(240, 194, 126, .35); background: linear-gradient(160deg, rgba(240, 194, 126, .1), transparent 60%), var(--surface); }
.chiffre.chaud strong { color: var(--attente); }
.chiffre.or { background: linear-gradient(150deg, rgba(92, 184, 238, .16), rgba(31, 111, 192, .06) 70%), var(--surface); border-color: rgba(92, 184, 238, .28); }
.chiffre.or strong { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Studio (équipe) ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.barre { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 24px 16px;
  border-right: 1px solid var(--trait); background: rgba(9, 11, 14, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 20; }
.barre .marque { padding: 0 8px; }
.menu { display: grid; gap: 3px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--doux); font-weight: 560; transition: background .15s, color .15s; }
.menu a:hover { background: var(--surface-2); color: var(--texte); text-decoration: none; }
.menu a[aria-current=page] { background: var(--surface-3); color: var(--texte); box-shadow: inset 0 0 0 1px var(--trait); }
.menu a[aria-current=page] .ico { color: var(--or); }
.menu .court { display: none; }
.barre-pied { margin: auto 0 0; padding: 14px 12px 0; border-top: 1px solid var(--trait); }
.barre-pied button { gap: 10px; }
.page { width: 100%; max-width: 1180px; padding: clamp(20px, 3.4vw, 48px); }
.entete { margin-bottom: 28px; }
.entete .sur::first-letter { text-transform: uppercase; }

/* Plan de l'open space */
.ensemble { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.colonne { display: grid; }
.plan { position: relative; border: 1px solid var(--trait); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--ombre); }
.plan > img { display: block; width: 100%; filter: saturate(.85) brightness(.85); }
.poste { position: absolute; transform: translate(-50%, -50%); display: grid; gap: 1px; min-width: 104px; max-width: 46%; padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(10, 12, 15, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--texte); text-align: center; text-decoration: none; font-size: .9rem; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); transition: transform .15s, border-color .15s; }
.poste:hover { text-decoration: none; border-color: var(--or); transform: translate(-50%, -52%); }
.poste span { font-size: .72rem; color: var(--doux); }
.poste.attention { border-color: rgba(240, 194, 126, .6); }
.poste.attention span { color: var(--attente); }
.poste.eteint { background: rgba(10, 10, 10, .75); border-style: dashed; color: #8a8580; }
.poste.eteint span { color: #6d6965; }
.p-manager { left: 57%; top: 33%; } .p-contrats { left: 26%; top: 53%; } .p-veille { left: 73%; top: 53%; }
.p-chat { left: 26%; top: 74%; } .p-publication { left: 73%; top: 74%; } .p-contenu { left: 26%; top: 91%; } .p-commentaires { left: 73%; top: 91%; }

/* ---------- Écrans d'accès ---------- */
.porte { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100dvh; }
.visuel { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(28px, 4vw, 56px); background: #07090c; border-right: 1px solid var(--trait); }
.visuel::before { content: ""; position: absolute; inset: -25%; z-index: -1;
  background: radial-gradient(30% 26% at 62% 30%, rgba(110, 196, 245, .85), transparent 70%),
    radial-gradient(34% 30% at 78% 62%, rgba(38, 120, 210, .8), transparent 70%),
    radial-gradient(30% 28% at 45% 78%, rgba(60, 70, 170, .6), transparent 70%),
    radial-gradient(26% 24% at 30% 50%, rgba(20, 90, 160, .45), transparent 70%);
  filter: blur(38px); animation: derive 22s ease-in-out infinite alternate; }
.visuel::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7, 9, 12, .82) 0%, rgba(7, 9, 12, .35) 55%, rgba(7, 9, 12, .05) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 72px); }
@keyframes derive { from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); } to { transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.08); } }
.slogan { font: 500 clamp(2rem, 1.3rem + 2.4vw, 3.4rem)/1.08 var(--serif); letter-spacing: -.02em; max-width: 14ch; margin: 0; }
.garantie { display: inline-flex; align-items: center; gap: 9px; color: var(--doux); font-size: .86rem; margin: 0;
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--trait); width: fit-content; backdrop-filter: blur(8px); }
.formulaire { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 36px; padding: clamp(28px, 5vw, 64px) 22px; }
.boite { width: min(420px, 100%); }
.boite h1 { margin-bottom: 4px; }
.boite form { justify-items: stretch; margin-top: 26px; }
.boite form button { margin-top: 4px; }
.boite .aide { margin-top: 18px; }
.identite { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--trait); }
.identite small { display: block; color: var(--pale); font-size: .74rem; }
.identite .ico { color: var(--or); }
.message-erreur + p { margin-top: 18px; }
.message-erreur { margin: 20px 0 0; padding: 12px 14px; border-radius: var(--r-s); color: #ffd5cd; background: rgba(243, 145, 127, .1); border: 1px solid rgba(243, 145, 127, .25); }
.langues { width: min(420px, 100%); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; color: var(--pale); }
.langues .ico { width: 16px; height: 16px; margin-right: 4px; }
.langues a { padding: 4px 8px; border-radius: 8px; color: var(--pale); font-size: .8rem; font-weight: 550; }
.langues a:hover { color: var(--texte); text-decoration: none; }
.langues a[aria-current] { color: var(--texte); background: var(--surface-2); }

/* ---------- Espace créatrice ---------- */
.haut { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 11, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--trait); }
.haut-int { max-width: 1160px; margin: auto; display: flex; align-items: center; gap: 22px; padding: 12px clamp(16px, 3vw, 32px); }
.ancres { display: flex; gap: 4px; margin: 0 auto; }
.ancres a { padding: 8px 12px; border-radius: 10px; color: var(--doux); font-weight: 560; font-size: .92rem; }
.ancres a:hover { color: var(--texte); background: var(--surface-2); text-decoration: none; }
.outils { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.outils form { margin: 0; }
.choix-langue label { display: flex; align-items: center; gap: 0; position: relative; color: var(--doux); }
.choix-langue .ico { position: absolute; left: 11px; width: 17px; height: 17px; pointer-events: none; }
.choix-langue select { min-height: 40px; width: auto; padding: 8px 34px 8px 36px; font-size: .88rem; border-radius: 999px; background-color: var(--surface-2); background-position: right 12px center; background-size: 14px; }
.rond { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; background: var(--surface-2); color: var(--doux); border: 1px solid var(--trait-2); box-shadow: none; }
.rond:hover { color: var(--texte); }
.espace-page { max-width: 1160px; margin: auto; padding: clamp(20px, 3.5vw, 40px) clamp(16px, 3vw, 32px) 64px; }
.accueil { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: end;
  padding: clamp(22px, 3.5vw, 40px); margin-bottom: 26px; border-radius: 30px; border: 1px solid var(--trait); background: #0d1014; box-shadow: var(--ombre); }
.accueil::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 180%; z-index: -1;
  background: radial-gradient(closest-side, rgba(92, 184, 238, .22), transparent), radial-gradient(40% 40% at 30% 70%, rgba(31, 111, 192, .2), transparent 70%);
  filter: blur(30px); }
.accueil .sur::first-letter { text-transform: uppercase; }
.accueil .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.accueil .chiffre { background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.accueil .chiffre strong { font-size: 1.75rem; overflow-wrap: normal; }
.bandeau { padding: 14px 18px; border-radius: var(--r); background: rgba(240, 194, 126, .08); border: 1px solid rgba(240, 194, 126, .25); color: #ffe1ad; margin-bottom: 22px; }
.espace-grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.cote { position: sticky; top: 88px; display: grid; gap: 16px; }
.cote .carte { margin: 0; }
.groupe { margin-bottom: 30px; }
.groupe > h2 { font-size: 1.15rem; margin-bottom: 14px; }
.groupe > h2 .ico { color: var(--or); }
.demande { padding: 22px; }
.demande-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.demande-tete h3 { font: 500 1.35rem/1.2 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--texte); margin: 0 0 6px; }
.repere { display: flex; align-items: center; gap: 7px; color: var(--doux); font-size: .88rem; margin: 0; }
.repere .ico { width: 16px; height: 16px; color: var(--or); }
.progression { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; margin: 20px 0 6px; }
.progression li { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .72rem; color: var(--pale); }
.progression li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface-3); position: relative; z-index: 1; }
.progression li + li::after { content: ""; position: absolute; top: 5px; right: 50%; width: 100%; height: 2px; background: var(--surface-3); }
.progression li.fait::before { background: var(--or); border-color: var(--or); }
.progression li.fait::after, .progression li.actuel::after { background: linear-gradient(90deg, var(--or), var(--rose)); }
.progression li.actuel::before { background: var(--fond); border-color: var(--or); box-shadow: 0 0 0 5px rgba(92, 184, 238, .16); }
.progression li.actuel.refaire::before { border-color: var(--alerte); box-shadow: 0 0 0 5px rgba(243, 145, 127, .16); }
.progression li.actuel span { color: var(--texte); font-weight: 650; }
.progression span { line-height: 1.25; padding: 0 2px; }
.consigne { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--trait); }
.consigne.chaude { background: rgba(243, 145, 127, .07); border-color: rgba(243, 145, 127, .24); }
.consigne .sur, .brief .sur { margin-bottom: 6px; font-size: .68rem; }
.brief { margin: 16px 0 0; padding: 16px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .025); border: 1px solid var(--trait); }
.brief p:last-child { white-space: pre-wrap; }
form.envoi { justify-items: stretch; }
.depot { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 28px 18px; border-radius: var(--r);
  border: 1.5px dashed rgba(92, 184, 238, .35); background: linear-gradient(180deg, rgba(92, 184, 238, .05), transparent); color: var(--texte); cursor: pointer; transition: border-color .15s, background .15s; }
.depot:hover, .depot.survol { border-color: var(--or); background: rgba(92, 184, 238, .08); }
.depot.choisi { border-style: solid; border-color: var(--ok); background: rgba(143, 213, 168, .06); }
.depot > .ico { width: 30px; height: 30px; color: var(--or); margin-bottom: 6px; }
.depot strong { font-size: 1rem; }
.depot span { color: var(--doux); font-size: .84rem; font-weight: 500; }
.depot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.gains .montant { font: 500 2.6rem/1 var(--serif); letter-spacing: -.02em; margin: 4px 0 6px; background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
ul.versements { margin-top: 14px; }
ul.versements li { display: grid; gap: 2px; padding: 10px 0; font-size: .86rem; color: var(--doux); }
ul.versements time { color: var(--texte); font-weight: 600; }
#compte form button.lien { gap: 8px; margin-top: 4px; }
.onglets { display: none; }

/* ---------- Tablette ---------- */
@media (max-width: 1080px) {
  .espace-grille { grid-template-columns: minmax(0, 1fr); }
  .cote { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .accueil { grid-template-columns: minmax(0, 1fr); }
  .accueil .chiffres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ensemble { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .app { display: block; }
  /* Sans flou ici : il piégerait le menu fixé en bas de l'écran. */
  .barre { position: sticky; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; border-right: 0;
    border-bottom: 1px solid var(--trait); background: rgba(9, 11, 14, .96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .barre-pied { margin: 0 0 0 auto; padding: 0; border: 0; }
  .barre-pied span { display: none; }
  .menu { position: fixed; left: 0; right: 0; bottom: 0; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(9, 11, 14, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--trait); }
  .menu a { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: .66rem; border-radius: 10px; box-shadow: none !important; background: none !important; }
  .menu a[aria-current=page] { color: var(--texte); }
  .menu .long { display: none; }
  .menu .court { display: inline; }
  .page { padding: 22px 16px calc(96px + env(safe-area-inset-bottom)); }
  .porte { grid-template-columns: minmax(0, 1fr); }
  .visuel { gap: 22px; padding: 22px 20px 26px; border-right: 0; border-bottom: 1px solid var(--trait); }
  .slogan { font-size: 1.45rem; max-width: 20ch; }
  .garantie { display: none; }
  .formulaire { justify-content: flex-start; gap: 28px; padding: 30px 20px 40px; }
  .ancres { display: none; }
  .marque small { display: none; }
  .espace-page { padding: 18px 14px calc(100px + env(safe-area-inset-bottom)); }
  .accueil { border-radius: 24px; padding: 22px 18px; gap: 20px; }
  .accueil .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .accueil .chiffre { padding: 13px 14px; }
  .accueil .chiffre strong { font-size: 1.5rem; }
  .carte, .demande { padding: 18px; border-radius: 22px; }
  .demande-tete { flex-direction: column-reverse; gap: 10px; }
  .demande-tete h3 { font-size: 1.22rem; }
  .progression li { font-size: .62rem; }
  .cote { grid-template-columns: minmax(0, 1fr); }
  .onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(9, 11, 14, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--trait); }
  .onglets a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; color: var(--doux); font-size: .64rem; font-weight: 560; text-align: center; }
  .onglets a:hover, .onglets a:active { color: var(--or); text-decoration: none; }
  .onglets span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  button, .bouton { width: 100%; }
  .actions button, .actions .bouton, .copie button, button.lien, .barre-pied button { width: auto; }
  .actions form { flex: 1 1 100%; }
  .actions form button { width: 100%; }
  .blocs > div { padding: 14px; }
  .poste { min-width: 0; padding: 4px 8px; font-size: .72rem; }
  .poste span { font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
