/*
 * nouvelle-organisation.css — le support animé de la nouvelle organisation du Support.
 *
 * Charte AVEM (orange #f97316, ardoise), polices servies depuis vendor/fonts/. Le thème suit le
 * reste de l'application : la classe `.dark` sur <html>, posée d'après localStorage('theme').
 * Toutes les couleurs sont des jetons redéfinis sous html.dark ; aucun composant ne porte de
 * couleur en dur, sinon il resterait clair sur fond sombre.
 */

:root {
    color-scheme: light;
    --bg: #f5f6f8; --surface: #ffffff; --surface-2: #eef1f5; --ink: #0f172a; --ink-2: #475569; --muted: #64748b; --line: #e2e8f0;
    --orange: #f97316; --orange-ink: #c2410c; --orange-soft: #fff1e6; --on-orange: #1c0a00;
    --proxy: #0d9488; --proxy-soft: #d5f5f0; --on-proxy: #ffffff;
    --prod: #4f46e5; --prod-soft: #e4e6ff; --on-prod: #ffffff;
    --bo: #64748b; --bo-soft: #e5e9ef;
    --danger: #dc2626; --danger-soft: #fde8e8; --ok: #15803d; --ok-soft: #e3f6e8;
    --grid: rgba(15, 23, 42, .07); --spot: rgba(249, 115, 22, .22);
    --nav-bg: rgba(245, 246, 248, .86);
    --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -18px rgba(15, 23, 42, .28);
    --radius: 24px;
    --sans: "Plus Jakarta Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

html.dark {
    color-scheme: dark;
    --bg: #0e1117; --surface: #161b24; --surface-2: #1f2633; --ink: #e7ebf2; --ink-2: #b1bccd; --muted: #8a96ab; --line: #2a3345;
    --orange: #fb923c; --orange-ink: #fdba74; --orange-soft: #2b1a0d; --on-orange: #1c0a00;
    --proxy: #2dd4bf; --proxy-soft: #0f2f2c; --on-proxy: #04201c;
    --prod: #8b93fa; --prod-soft: #1e2148; --on-prod: #0b0d2a;
    --bo: #94a3b8; --bo-soft: #232b38;
    --danger: #f87171; --danger-soft: #3a1616; --ok: #4ade80; --ok-soft: #10301c;
    --grid: rgba(255, 255, 255, .055); --spot: rgba(251, 146, 60, .24);
    --nav-bg: rgba(14, 17, 23, .86);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color .2s, color .2s; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
.sprite { position: absolute; }
.ic { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1040px; margin-inline: auto; padding-inline: 20px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }
.clair-seul { display: inline; }
.sombre-seul { display: none; }
html.dark .clair-seul { display: none; }
html.dark .sombre-seul { display: inline; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 10px; padding-block: 10px; }
.nav .retour, .nav .theme { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--sans); color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.nav .retour:hover, .nav .theme:hover { color: var(--ink); border-color: var(--muted); }
.puces { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.puces a { flex: none; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.puces a:hover { color: var(--ink); background: var(--surface); }
.puces a.actif { color: var(--orange-ink); background: var(--orange-soft); border-color: color-mix(in srgb, var(--orange) 35%, transparent); }
/* Sur téléphone, les libellés sortent de l'écran mais restent lus : sans eux, le lien et le
   bouton n'auraient plus de nom accessible. */
@media (max-width: 640px) {
    .nav .retour span, .nav .theme span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- états de chargement ---------- */
.etat { max-width: 560px; margin: 0 auto; padding: 96px 20px; text-align: center; display: grid; justify-items: center; gap: 14px; color: var(--ink-2); }
.etat h1 { font-size: 26px; color: var(--ink); }
.rouet { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: rouet 0.9s linear infinite; }
@keyframes rouet { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rouet { animation: none; } }

/* ---------- hero (spotlight + grille) ---------- */
.hero { position: relative; overflow: hidden; padding-block: 72px 64px; isolation: isolate; }
.hero .grille { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero .spot { position: absolute; z-index: -1; width: 900px; height: 520px; left: -260px; top: -240px; border-radius: 50%; background: radial-gradient(closest-side, var(--spot), transparent); filter: blur(10px); }
.pastille { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); isolation: isolate; }
.pastille::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; z-index: -2; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--orange) 85%, transparent 100%), var(--line); }
.pastille::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; background: var(--surface); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) { .pastille::before { animation: tourne 4s linear infinite; } }
@keyframes tourne { to { --ang: 360deg; } }
.pastille .point { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 7.4vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -.045em; }
.hero h1 .mot { display: inline-block; }
.hero h1 .accent { color: var(--orange); }
.hero .chapo { margin-top: 22px; max-width: 60ch; font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 13px 20px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.plein { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.qui { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.qui b { color: var(--ink-2); font-weight: 600; }

/* ---------- sections ---------- */
section.bloc { padding-block: 56px; }
.surtitre { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.bloc h2 { margin-top: 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; font-weight: 600; }
.bloc .intro { margin-top: 14px; max-width: 62ch; color: var(--ink-2); font-size: 17px; }
b, strong { font-weight: 600; }

/* ---------- bento ---------- */
.bento { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bento .large { grid-column: span 2; }
.carte { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; isolation: isolate; transition: border-color .25s; }
.carte::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 70%); }
.carte:hover { border-color: color-mix(in srgb, var(--orange) 40%, var(--line)); }
.carte:hover::before { opacity: 1; }
.carte .pic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-soft); color: var(--orange-ink); font-size: 20px; }
.carte h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
.carte p { color: var(--ink-2); font-size: 15px; }
.carte .voir { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--orange-ink); }

/* ---------- par technicien ---------- */
.equipe { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fiche { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fiche-tete { display: flex; align-items: center; gap: 12px; }
.fiche h3 { font-size: 17px; font-weight: 600; line-height: 1.2; }
.fiche .role { font-size: 13px; color: var(--muted); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font: 600 14px/1 var(--sans); letter-spacing: .02em; background: var(--surface-2); color: var(--ink-2); }
.fiche.terr .avatar { background: var(--orange); color: var(--on-orange); }
.fiche.prx .avatar { background: var(--proxy); color: var(--on-proxy); }
.fiche.sup .avatar { background: var(--prod); color: var(--on-prod); }
.etiq { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-ink); }
.fiche ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.fiche li::marker { color: var(--muted); }
.fiche b { color: var(--ink); }
/* Dans une phrase, un horaire reste dans la police du texte : la chasse fixe ne sert qu'aux colonnes. */
.fiche .mono { font-family: inherit; font-weight: 600; color: var(--ink); }

/* ---------- chapitres ---------- */
.chapitres { position: relative; }
.faisceau { display: none; }
@media (min-width: 1180px) {
    .faisceau { display: block; position: absolute; left: -40px; top: 56px; bottom: 56px; width: 2px; border-radius: 2px; background: var(--line); }
    .faisceau i { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 0%); border-radius: 2px; background: linear-gradient(to bottom, transparent, var(--orange) 40%, var(--orange)); box-shadow: 0 0 12px var(--orange); }
    .faisceau i::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange) 25%, transparent); }
}
.chapitre { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; margin-top: 32px; }
.regles { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.regles li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.regles li > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--ink-2); font-size: 15px; }
.regles li.fort > span:first-child { background: var(--orange); color: var(--on-orange); }
.regles li.non > span:first-child { background: var(--danger-soft); color: var(--danger); }
.regles b { color: var(--ink); }
.regles p { color: var(--ink-2); font-size: 15.5px; }
.pourquoi { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--surface-2); font-size: 15px; color: var(--ink-2); }
.pourquoi b { color: var(--ink); }

.visuel { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.visuel .tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.visuel .tete h3 { font-size: 15px; font-weight: 600; }
.rejouer { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--sans); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; cursor: pointer; flex: none; }
.rejouer:hover { color: var(--ink); border-color: var(--muted); }
.legende { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.legende i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.legende .l-cpt, .legende .l-tit { background: var(--orange); }
.legende .l-prx { background: var(--proxy); }
.legende .l-prod { background: var(--prod); }
.legende .l-hors { background: var(--surface-2); outline: 1px solid var(--line); }
.legende .l-bo { background: var(--bo-soft); outline: 1px solid var(--line); }
.legende .l-ven { border: 1.5px dashed var(--muted); }
.legende .l-tit, .legende .l-abs { border-radius: 50%; }
.legende .l-abs { border: 1.5px dashed var(--muted); }
.defile { overflow-x: auto; margin-inline: -4px; padding: 4px; }
.visuel .pourquoi { margin-top: 16px; }

/* semaine des comptoirs */
.semaine { display: grid; grid-template-columns: 104px repeat(10, minmax(0, 1fr)); gap: 5px; min-width: 580px; font-size: 12px; }
.semaine .jour { grid-column: span 2; text-align: center; font-weight: 600; color: var(--ink); font-size: 13px; }
.semaine .demi { text-align: center; color: var(--muted); font-size: 10.5px; letter-spacing: .02em; }
.semaine .lib { display: flex; flex-direction: column; justify-content: center; font-weight: 600; font-size: 13px; line-height: 1.2; }
.semaine .lib small { font-weight: 500; color: var(--muted); font-size: 11px; }
.case { height: 52px; border-radius: 10px; display: grid; place-items: center; text-align: center; font-family: var(--mono); font-size: 10.5px; font-weight: 500; line-height: 1.15; padding: 2px; }
.case.cpt { background: var(--orange); color: var(--on-orange); }
.case.prx { background: var(--proxy); color: var(--on-proxy); }
.case.hors { background: var(--surface-2); color: var(--muted); font-size: 13px; }
.case.ven { border: 1.5px dashed color-mix(in srgb, var(--muted) 60%, transparent); color: var(--muted); font-family: var(--sans); font-weight: 600; font-size: 10px; }

/* déjeuner — frise de 11h à 14h30, soit 210 minutes */
.frise { position: relative; height: 118px; margin-top: 6px; }
.frise .axe { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; border-top: 1px solid var(--line); }
.frise .axe span { position: absolute; top: 6px; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.frise .axe .t0 { left: 0; transform: none; }
.frise .axe .t1 { left: 14.286%; }
.frise .axe .t2 { left: 28.571%; }
.frise .axe .t3 { left: 42.857%; }
.frise .axe .t4 { left: 57.143%; }
.frise .axe .t5 { left: 71.429%; }
.frise .axe .t6 { left: 85.714%; }
.frise .axe .t7 { left: 100%; transform: translateX(-100%); }
.frise .creneau { position: absolute; top: 40px; height: 34px; left: 14.286%; width: 42.857%; border-radius: 10px; background: var(--orange-soft); border: 1.5px dashed color-mix(in srgb, var(--orange) 55%, transparent); }
.frise .appel { position: absolute; top: 40px; height: 34px; left: 14.286%; border-radius: 10px 0 0 10px; background: repeating-linear-gradient(-45deg, var(--danger-soft) 0 5px, transparent 5px 10px); border: 1.5px solid color-mix(in srgb, var(--danger) 50%, transparent); border-right: 0; }
.frise .pause { position: absolute; top: 40px; height: 34px; border-radius: 0 10px 10px 0; background: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--on-orange); white-space: nowrap; overflow: hidden; }
.frise .repere { position: absolute; top: 0; bottom: 22px; width: 0; border-left: 2px solid var(--ink); }
.frise .repere > span { position: absolute; top: 0; left: 6px; white-space: nowrap; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.frise .repere.retour { left: 57.143%; border-left-color: var(--ok); }
/* Une ligne sous l'étiquette du départ : sur un écran étroit, les deux se rejoignent. */
.frise .repere.retour > span { top: 18px; left: auto; right: 6px; color: var(--ok); }
.frise .tel { color: var(--danger); }
.curseur { margin-top: 18px; display: grid; gap: 8px; }
.curseur label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
input[type=range] { width: 100%; accent-color: var(--orange); }
.bilan { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bilan div { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.bilan small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.bilan strong { font-family: var(--mono); font-size: 19px; font-weight: 500; }
.bilan .rat strong { color: var(--danger); }
.bilan .ret strong { color: var(--ok); }
.creneaux { margin-top: 22px; display: grid; gap: 8px; }
.creneaux .ligne { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: center; font-size: 12px; }
.creneaux .piste { position: relative; height: 20px; border-radius: 7px; background: var(--surface-2); }
.creneaux .piste i { position: absolute; top: 0; bottom: 0; width: 42.857%; border-radius: 7px; background: var(--orange); transform-origin: left center; }
.creneaux .piste .c1 { left: 14.286%; }
.creneaux .piste .c2 { left: 28.571%; }
.creneaux .piste .c3 { left: 42.857%; }

.avant-apres { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.avant-apres > div { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.avant-apres h4 { font-size: 13px; font-weight: 600; }
.avant-apres p { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.points { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 22px; }
.points i { width: 18px; height: 18px; border-radius: 50%; background: var(--prod); }
.points i.perdu { opacity: .18; }
.points .vide { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--danger); margin-left: 4px; }

/* production — journée de 8h à 18h */
.journee { position: relative; display: grid; gap: 14px; min-width: 520px; padding-top: 22px; }
.journee .ligne { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.journee .qui2 { font-size: 13px; font-weight: 600; line-height: 1.25; }
.journee .qui2 small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.journee .piste { position: relative; height: 40px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; transition: filter .25s, opacity .25s; }
.seg.pr { background: var(--prod); color: var(--on-prod); }
.seg.bo { background: var(--bo-soft); color: var(--ink-2); background-image: repeating-linear-gradient(-45deg, transparent 0 7px, color-mix(in srgb, var(--bo) 16%, transparent) 7px 14px); }
.journee.enjeu .seg { opacity: .2; filter: saturate(.2); }
.journee.enjeu .seg.lit { opacity: 1; filter: none; }
.journee .axe2 { position: relative; height: 18px; margin-left: 132px; }
.journee .axe2 span { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.journee .axe2 .h0 { left: 0; transform: none; }
.journee .axe2 .h1 { left: 20%; }
.journee .axe2 .h2 { left: 40%; }
.journee .axe2 .h3 { left: 60%; }
.journee .axe2 .h4 { left: 80%; }
.journee .axe2 .h5 { left: 100%; transform: translateX(-100%); }
.aiguille { position: absolute; top: 18px; bottom: 24px; left: 132px; width: 2px; background: var(--orange); box-shadow: 0 0 10px var(--orange); opacity: 0; pointer-events: none; }
.aiguille span { position: absolute; top: -19px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--orange-ink); background: var(--surface); padding: 1px 5px; border-radius: 5px; }

/* CARIOCA — le circuit d'un badge */
.circuit { position: relative; display: grid; gap: 18px; padding-left: 4px; }
.circuit .rail { position: absolute; left: 25px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--line); }
.circuit .rail i { position: absolute; inset: 0; border-radius: 3px; background: var(--orange); transform-origin: top center; }
.etape { position: relative; display: flex; align-items: center; gap: 14px; }
.etape .rond { position: relative; z-index: 1; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--on-orange); font-size: 18px; box-shadow: 0 0 0 5px var(--surface); }
.etape strong { display: block; font-size: 15px; line-height: 1.25; }
.etape small { display: block; font-size: 12.5px; color: var(--muted); }
.jeton { position: absolute; left: 12px; top: 0; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 15px; opacity: 0; pointer-events: none; }
.porteurs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; }
.porteur { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); }
.porteur small { font-weight: 500; color: var(--muted); }
.porteur .avatar { width: 28px; height: 28px; border-radius: 50%; font-size: 10.5px; background: var(--orange); color: var(--on-orange); }

/* absences */
.scene { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zone { position: relative; border-radius: 18px; padding: 16px; min-height: 160px; background: var(--surface-2); }
.zone.cpt { overflow: hidden; }
.zone h4 { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.zone .sous { font-size: 12px; color: var(--muted); }
.zone .place { margin-top: 18px; height: 52px; display: flex; align-items: center; gap: 8px; }
.bonhomme { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.bonhomme.b1 { background: var(--prod); color: var(--on-prod); }
.bonhomme.titulaire { background: var(--orange); color: var(--on-orange); position: relative; z-index: 4; font-size: 18px; }
.bonhomme.absent { background: transparent; color: var(--muted); border: 2px dashed var(--muted); opacity: .45; }
.volet { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: repeating-linear-gradient(0deg, var(--ink) 0 12px, color-mix(in srgb, var(--ink) 86%, var(--bg)) 12px 14px); color: var(--bg); font-weight: 600; font-size: 15px; text-align: center; }
.volet small { font-weight: 500; font-size: 12px; opacity: .8; }
.com { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-size: 13.5px; font-weight: 600; }
.etiquette { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); }

/* équilibre — 36 px par heure (voir nouvelle-organisation.js) */
.graph { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; height: 160px; border-bottom: 1px solid var(--line); }
.graph .j { display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.graph .barres { display: flex; gap: 4px; align-items: flex-end; }
.graph .barres i { position: relative; width: 22px; border-radius: 6px 6px 2px 2px; transform-origin: bottom center; }
.graph .barres i.s { background: var(--prod); }
.graph .barres i.p { background: var(--proxy); }
.graph .barres i b { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.jours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.balance { margin-top: 18px; display: grid; justify-items: center; }
.fleau { width: min(320px, 90%); height: 6px; border-radius: 6px; background: var(--ink); display: flex; justify-content: space-between; }
.fleau span { position: relative; top: 12px; display: grid; justify-items: center; }
.fleau span strong { font-family: var(--mono); font-size: 20px; font-weight: 500; line-height: 1.2; }
.fleau span small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.fleau .s strong { color: var(--prod); }
.fleau .p strong { color: var(--proxy); }
.pied-balance { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 22px solid var(--ink); margin-top: -1px; }
.balance .verdict { margin-top: 34px; font-size: 13px; font-weight: 600; color: var(--ok); display: flex; align-items: center; gap: 6px; }

/* planning */
.domino { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.tuile { position: relative; padding: 14px; border-radius: 16px; background: var(--surface-2); min-height: 112px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.tuile strong { font-size: 14px; color: var(--ink); line-height: 1.25; }
.tuile .pic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); }
.tuile:first-child .pic { background: var(--orange); color: var(--on-orange); }
.tuile .halo { position: absolute; inset: -2px; border-radius: 18px; border: 2px solid var(--orange); box-shadow: 0 0 18px color-mix(in srgb, var(--orange) 45%, transparent); opacity: 0; pointer-events: none; }
.tuile + .tuile::before { content: ""; position: absolute; left: -22px; top: 50%; width: 16px; height: 2px; background: var(--muted); transform-origin: left center; transform: scaleX(var(--f, 1)); }
.tuile + .tuile::after { content: ""; position: absolute; left: -9px; top: calc(50% - 4px); border-left: 6px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; opacity: var(--f, 1); }

/* quiz */
.quiz { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.q { perspective: 1200px; }
.q-in { display: grid; transform-style: preserve-3d; height: 100%; }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.face.dos { transform: rotateY(180deg); }
.face .sit { font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.face .choix { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.face .choix button { font: 600 14px/1 var(--sans); padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.face .choix button:hover { border-color: var(--orange); }
.face .res { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.face .res.bon { color: var(--ok); }
.face .res.faux { color: var(--danger); }
.face .rep { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.face .exp { font-size: 14.5px; color: var(--ink-2); }
.face .revoir { margin-top: auto; align-self: flex-start; }
.score { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.score .mono { color: var(--orange-ink); font-size: 20px; }

.fin { padding-block: 40px; border-top: 1px solid var(--line); margin-top: 32px; color: var(--ink-2); font-size: 15px; }
.fin .wrap { display: grid; gap: 10px; }
.fin strong { color: var(--ink); }
.fin-date { color: var(--muted); font-size: 13px; }
.pied { padding-block: 20px 36px; font-size: 12.5px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pied a { color: var(--muted); text-decoration: none; }
.pied a:hover { color: var(--orange-ink); text-decoration: underline; }

@media (max-width: 860px) {
    .chapitre { grid-template-columns: 1fr; gap: 22px; }
    .bento, .quiz, .equipe { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .hero { padding-block: 48px 44px; }
    .bento, .quiz, .equipe { grid-template-columns: 1fr; }
    .bento .large { grid-column: auto; }
    .scene, .avant-apres { grid-template-columns: 1fr; }
    .domino { grid-template-columns: 1fr 1fr; gap: 18px 26px; }
    .domino .tuile:nth-child(3)::before, .domino .tuile:nth-child(3)::after { display: none; }
    .bilan strong { font-size: 16px; }
    .visuel { padding: 16px; }
    .graph .barres i { width: 16px; }
    /* Sur la frise du déjeuner, les demi-heures se chevauchent : seules les heures pleines restent. */
    .frise .axe .t1, .frise .axe .t3, .frise .axe .t5, .frise .axe .t7 { display: none; }
}
