:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --ink: #15231d;
  --muted: #5b6b63;
  --line: #dbe3de;
  --brand: #0b5d43;
  --brand-soft: #e1f0e9;
  --brand-ink: #ffffff; --cd: #f2b705;
  --sun: #f2b705;
  --sun-soft: #fff4cc;
  --wa: #1fa855;
  --danger: #b4231b;
  --danger-soft: #fde8e6;
  --info: #155e8a;
  --info-soft: #e2f0f8;
  --shadow: 0 1px 2px rgba(15, 35, 28, .06), 0 4px 16px rgba(15, 35, 28, .06);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Roboto, system-ui, sans-serif;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1714; --surface: #17221d; --ink: #e6efe9; --muted: #9db0a6; --line: #2a3a33;
    --brand: #3fbf8a; --brand-soft: #173a2d; --brand-ink: #06150f; --cd: #06150f; --sun: #f5c533; --sun-soft: #3a3110;
    --wa: #33c46c; --danger: #ff7b70; --danger-soft: #3d1a17; --info: #7cc3ec; --info-soft: #14303f;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1714; --surface: #17221d; --ink: #e6efe9; --muted: #9db0a6; --line: #2a3a33;
  --brand: #3fbf8a; --brand-soft: #173a2d; --brand-ink: #06150f; --cd: #06150f; --sun: #f5c533; --sun-soft: #3a3110;
  --wa: #33c46c; --danger: #ff7b70; --danger-soft: #3d1a17; --info: #7cc3ec; --info-soft: #14303f;
  --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: 1.7rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--brand); letter-spacing: -.01em; }
.logo span { color: var(--sun); }
a.logo { text-decoration: none; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.theme-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.compte { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; }
.compte .qui { color: var(--muted); text-decoration: none; font: inherit; cursor: pointer; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.launch-band { background: var(--brand); color: var(--brand-ink); font-size: .9rem; }
.launch-band div { max-width: 1080px; margin: 0 auto; padding: 8px 16px; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; justify-content: center; text-align: center; }
.launch-band .cd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.launch-band .cd b { font-family: var(--display); font-size: 1.05rem; color: var(--cd); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font-weight: 700; }

main { max-width: 1080px; margin: 0 auto; padding-block: 20px 60px; padding-inline: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 820px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { color: var(--muted); max-width: 62ch; }

/* Publication texte, sans image */
.post { display: flex; flex-direction: column; gap: 10px; }
.post-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-family: var(--display); background: var(--brand-soft); color: var(--brand); flex: none; }
img.avatar { object-fit: cover; display: block; background: var(--line); }
.avatar.locked { background: var(--line); color: var(--muted); }
.quote { font-size: 1.05rem; line-height: 1.55; border-left: 4px solid var(--sun); padding: 4px 0 4px 12px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.cert { background: var(--sun-soft); color: var(--ink); border-color: var(--sun); }
.chip.warn { background: var(--sun-soft); color: var(--ink); border-color: transparent; }
.chip.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip.green { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.stars { color: var(--sun); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn.sun { background: var(--sun); color: #15231d; border-color: var(--sun); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.sm { padding: 6px 10px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9rem; min-width: 0; }
.f input, .f select, .f textarea { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 400; width: 100%; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.form .full { grid-column: 1 / -1; }
.counter { font-weight: 400; font-size: .8rem; color: var(--muted); text-align: right; }

.notice { border-radius: 12px; padding: 12px 14px; background: var(--brand-soft); }
.notice.sun { background: var(--sun-soft); }
.notice.info { background: var(--info-soft); }
.notice.bad { background: var(--danger-soft); }

.lock { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line); font-size: .9rem; }

.proposal { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.zones { display: flex; flex-direction: column; gap: 6px; }
.zone { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.dots { letter-spacing: 2px; color: var(--brand); white-space: nowrap; }
.dots .off { color: var(--line); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.tile b { display: block; font-family: var(--display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }

.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.step { padding: 4px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.step.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.step.done { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.plan { border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.plan:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.plan input { accent-color: var(--brand); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; font-size: .9rem; }
.slot:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-weight: 700; letter-spacing: .06em; background: var(--bg); border: 1px dashed var(--brand); padding: 2px 8px; border-radius: 8px; }

.overlay { position: fixed; inset: 0; background: rgba(10, 20, 16, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 18px; padding: 20px; width: min(520px, 100%); max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 60; max-width: calc(100% - 32px); font-weight: 700; }
.ratepick { display: flex; gap: 4px; }
.ratepick button { font-size: 1.8rem; background: none; border: 0; cursor: pointer; color: var(--line); padding: 0 2px; }
.ratepick button.on { color: var(--sun); }
.review { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
@media (prefers-reduced-motion: no-preference) { .card, .modal { animation: rise .18s ease-out; } }
@keyframes rise { from { transform: translateY(4px); opacity: .6; } to { transform: none; opacity: 1; } }

.chargement { padding: 40px 0; text-align: center; color: var(--muted); }
.erreur { color: var(--danger); font-weight: 700; }
.cni-img { width: 100%; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
.f input[type=file] { padding: 7px; }
.pied { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: .85rem; }
.choix { display: grid; gap: 10px; }
.choix-item { display: grid; gap: 4px; text-align: left; width: 100%; padding: 14px; background: var(--surface); color: inherit; font: inherit; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choix-item:hover, .choix-item:focus-visible { border-color: var(--brand); }
.install-bar { position: fixed; left: 0; right: 0; bottom: var(--nav-h); z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.install-bar img { border-radius: 10px; flex: none; }
.install-txt { flex: 1; min-width: 0; display: grid; }
.install-x { background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; padding: 4px 6px; cursor: pointer; }
.install-bar[hidden] { display: none; }
.bell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.bell[aria-current="page"] { border-color: var(--brand); color: var(--brand); }
.bell-n { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.notifs { display: grid; gap: 8px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.notif.nouveau { border-color: var(--brand); background: var(--brand-soft); }
.notif-i { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg); font-size: 1rem; }
.notif-t { display: grid; gap: 2px; min-width: 0; }

/* Afficher / masquer le mot de passe */
.mdp-wrap { position: relative; display: block; }
.mdp-wrap input { width: 100%; padding-right: 90px; }
.mdp-oeil { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px 8px; color: var(--brand); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
/* Nom et note moyenne côte à côte */
.nom-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.nom-note h1 { margin: 0; }
.note-nom { white-space: nowrap; }
/* Avis entre confrères : choix sélectionné */
.btn.reco-oui { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.reco-non { background: var(--danger); color: #fff; border-color: var(--danger); }
/* Parrainage : arbre des filleuls */
.arbre { list-style: none; margin: 0; padding-left: 18px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.arbre.racine { padding-left: 0; border-left: 0; }
.arbre .arbre { margin-top: 8px; margin-left: 6px; }
.noeud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.noeud > span { min-width: 0; }
.code-parrain { font-size: 1.6rem; letter-spacing: .08em; color: var(--brand); }

/* Formation */
.chip.sun { background: var(--sun); color: #15231d; border-color: transparent; }
.chip.forme { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.forma-hero h1 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
.texte { display: grid; gap: 10px; line-height: 1.6; }
.texte p, .texte ul { margin: 0; }
.texte ul { padding-left: 20px; display: grid; gap: 4px; }
.barre-prix { text-decoration: line-through; color: var(--muted); font-weight: 700; }
.forma-hero .price { font-size: 1.6rem; }
.etapes-forma { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.modules { display: grid; gap: 10px; }
.module { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }
.module > .stack { min-width: 0; flex: 1 1 220px; }
.module.ouvert { border-color: var(--brand); }
.module.verrou { opacity: .65; }
.barre { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.barre span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.lecon h1 { font-size: clamp(1.4rem, 5vw, 2rem); }
.certificat { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 36px 22px; border: 3px double var(--brand); border-radius: 18px; background: var(--surface); outline: 1px solid var(--sun); outline-offset: -12px; }
.cert-marque { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--brand); }
.cert-marque span { color: var(--sun); }
.cert-titre { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cert-nom { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.4rem); color: var(--ink); border-bottom: 2px solid var(--sun); padding: 0 12px 4px; overflow-wrap: anywhere; }
.certificat p { margin: 0; }
@media print {
  .topbar, .nav-bas, .pied, .no-print, #lancement, .install-bar, #toast { display: none !important; }
  body { background: #fff; }
  .certificat { margin: 40px auto; max-width: 700px; }
}

/* Barre d'icônes en bas de l'écran */
:root { --nav-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
body { padding-bottom: var(--nav-h); }
body:has(.install-bar:not([hidden])) { padding-bottom: calc(var(--nav-h) + 72px); }
.toast { bottom: calc(var(--nav-h) + 14px); }
body:has(.install-bar:not([hidden])) .toast { bottom: calc(var(--nav-h) + 86px); }
.nav-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(15, 35, 28, .08); padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav-bas:empty { display: none; }
.nav-in { max-width: 640px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 64px; }
.nav-i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 700; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.nav-i::-webkit-details-marker { display: none; }
.nav-i svg { flex: none; transition: transform .15s; }
.nav-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-i[aria-current="page"] { color: var(--brand); }
.nav-i[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.nav-i[aria-current="page"] svg { transform: translateY(-1px); stroke-width: 2.2; }
.nav-i .count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--sun); color: #15231d; font-size: .68rem; line-height: 18px; }
.nav-plus { position: relative; display: flex; min-width: 0; }
.nav-plus > summary { flex: 1; }
.nav-menu { position: absolute; right: 6px; bottom: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 6px; display: grid; }
.nav-menu .nav-i { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px; font-size: .95rem; color: var(--ink); border-radius: 10px; }
.nav-menu .nav-i[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-menu .nav-i[aria-current="page"]::before { display: none; }
.nav-menu .nav-i .count { position: static; margin-left: auto; }

/* Bouton jour / nuit */
.jour-nuit { position: relative; flex: none; width: 64px; height: 34px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: .95rem; line-height: 1; }
.jour-nuit .jn-bille { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .25s ease, background .25s; }
.jour-nuit[aria-pressed="true"] .jn-bille { transform: translateX(30px); background: var(--brand); }
.jour-nuit span:not(.jn-bille) { position: relative; z-index: 1; }
.jour-nuit:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .jour-nuit .jn-bille { transition: none; } }

/* Formation (page publique et aperçu) */
.prix-forma { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.prix-carte { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prix-carte.une { border: 2px solid var(--sun); background: var(--sun-soft); }
.places { color: var(--brand); }
.avantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.avantage { display: grid; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.av-i { font-size: 1.5rem; line-height: 1; }
.apercu-tdb { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 14px; display: grid; gap: 12px; max-width: 520px; }
.apercu-tete { display: flex; justify-content: space-between; align-items: baseline; }
.apercu-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.apercu-tuiles div { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.apercu-tuiles b { font-family: var(--display); font-size: 1.1rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.apercu-types { display: flex; flex-wrap: wrap; gap: 6px; }
.liste-tdb { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pub-forma { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); text-decoration: none; }
.pub-forma > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pub-forma .pf-i { font-size: 1.6rem; line-height: 1; }
.pub-forma .pf-go { font-size: 1.6rem; line-height: 1; }
.cle-boite { display: grid; gap: 2px; padding: 14px; border-radius: var(--radius); background: var(--sun-soft); border: 1px dashed var(--sun); }
.cle-boite .cle { font-family: var(--display); font-size: 1.8rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.choix-mode { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; margin: 0; }
.choix-mode legend { font-weight: 700; padding: 0 4px; }

/* Décor de Noël (20 novembre au 6 janvier, désactivable avec le bouton 🎄) */
:root { --noel-rouge: #c62828; --noel-vert: #1b7a43; --noel-or: #f2b705; }
.noel-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.05rem; line-height: 1; cursor: pointer; display: none; place-items: center; }
.saison-noel .noel-btn { display: grid; }
.noel-btn[aria-pressed="false"] { filter: grayscale(1); opacity: .6; }
.guirlande { display: none; }
.noel .guirlande { display: block; position: absolute; left: 0; right: 0; bottom: -9px; height: 12px; pointer-events: none; overflow: hidden;
  background: radial-gradient(circle at 10px 6px, var(--noel-rouge) 0 3.5px, transparent 4px) 0 0 / 60px 12px repeat-x,
              radial-gradient(circle at 30px 6px, var(--noel-or) 0 3.5px, transparent 4px) 0 0 / 60px 12px repeat-x,
              radial-gradient(circle at 50px 6px, var(--noel-vert) 0 3.5px, transparent 4px) 0 0 / 60px 12px repeat-x;
  animation: scintille 2.4s steps(2) infinite; }
.noel .guirlande::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 0 0 50% 50%; }
@keyframes scintille { 50% { filter: brightness(1.35) saturate(1.2); opacity: .8; } }
.neige { display: none; }
.noel .neige { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.neige i { position: absolute; top: -12px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 3px rgba(120, 140, 160, .6); opacity: .85; animation: tombe linear infinite; }
@keyframes tombe { to { transform: translate3d(var(--dx, 20px), 105vh, 0); } }
.noel-voeux { display: none; }
.noel .noel-voeux { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--noel-rouge); color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .noel .neige { display: none; } .noel .guirlande { animation: none; } }
@media print { .neige, .guirlande, .noel-btn { display: none !important; } }
@media (max-width: 440px) { .noel .noel-voeux { display: none; } }

/* ===== Lebondeal Formation : identité propre (vert forêt profond et or) ===== */
:root { --brand: #0f6b4c; --forme: #0a3d2e; --forme-ink: #f7e7b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --forme: #0b2a21; --forme-ink: #f5c533; } }
:root[data-theme="dark"] { --forme: #0b2a21; --forme-ink: #f5c533; }
.topbar { background: var(--forme); border-bottom: 0; color: #fff; }
.topbar .logo { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar .logo span:not(.logo-i) { color: var(--forme-ink); }
.topbar .compte { color: #dfeee7; }
.topbar .compte .qui { color: #dfeee7; }
.topbar .noel-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.topbar .jour-nuit { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.topbar .compte { margin-left: auto; }
.connexion { max-width: 440px; margin: 4vh auto 0; display: grid; gap: 14px; }
.connexion h1 { font-size: 1.9rem; }
.centre { text-align: center; }
.salut h1 { font-size: 1.6rem; }
.forma-carte { border-left: 4px solid var(--sun); }
.tdb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tuile { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); min-width: 0; }
.tuile.large { grid-column: 1 / -1; }
.tuile .t-l { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tuile > b { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trois > span { display: grid; min-width: 0; }
.trois b { font-family: var(--display); font-size: 1.05rem; color: var(--brand); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.types, .types-filtre { display: flex; flex-wrap: wrap; gap: 6px; }
.types .chip { opacity: .6; }
.types .chip.plein { opacity: 1; border-color: var(--brand); }
.types-filtre .chip { cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700; color: var(--ink); padding: 5px 11px; }
.types-filtre .chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.rapide { display: flex; flex-wrap: wrap; gap: 8px; }
.tete-page { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.segment { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--surface); gap: 2px; max-width: 100%; overflow-x: auto; }
.segment button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.segment button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.liste { display: grid; gap: 10px; }
.fiche { display: grid; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.fiche-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fiche.rdv { display: flex; gap: 12px; align-items: flex-start; }
.rdv-h { display: grid; text-align: center; min-width: 64px; padding: 6px; border-radius: 10px; background: var(--brand-soft); }
.rdv-h b { font-family: var(--display); font-size: 1.15rem; color: var(--brand); }
.fiche.rdv.fait { opacity: .65; }
.fiche.rdv.fait .rdv-h { background: var(--bg); }
h2.jour { font-size: 1rem; text-transform: capitalize; }
.passes summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.passes[open] { display: grid; gap: 10px; }
.vide { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 28px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.vide > span { font-size: 2rem; }
.total-rev { display: grid; gap: 2px; }
.total-rev > b { font-family: var(--display); font-size: 2rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.graph { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 150px; margin-top: 12px; align-items: end; }
.g-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; align-items: end; justify-items: center; gap: 2px; min-width: 0; }
.g-b { width: 70%; min-height: 2px; background: color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 4px 4px 0 0; align-self: end; }
.g-col.cur .g-b { background: var(--brand); }
.g-v, .g-m { font-size: .62rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
tr.cliquable { cursor: pointer; }
tr.cliquable:hover td { background: var(--brand-soft); }
@media (max-width: 440px) {
  .topbar .logo { font-size: 1.12rem; }
  .topbar .compte { display: none; }
  .topbar .topbar-in { flex-wrap: nowrap; gap: 8px; }
  .topbar .noel-btn { margin-left: auto; width: 34px; height: 34px; }
  .topbar .jour-nuit { width: 58px; }
  .topbar .jour-nuit[aria-pressed="true"] .jn-bille { transform: translateX(24px); }
}
