/* Copie de la maquette commun.css (2026-11-23_hermes_espaces/maquettes, relue le 2026-11-24) ; seuls changent les
   chemins des polices (../fonts/geist/) et du signe (../content-pro/), et le nom public dans ce commentaire. Ne pas éditer ici : corriger la maquette, recopier. */
/* Maquettes du pivot Content Pro (2026-11-24). Chargée après famille.css et maison.css (jetons-famille).
   Clair par défaut, encre sans couleur de marque, états Okabe-Ito (jamais de vert, bleu = « en direct » seulement).
   Les couleurs propres au client (Martin Rénovation : bleu nuit et jaune) ne vivent QUE dans ses vidéos. */
@font-face { font-family: "Geist"; src: url(../fonts/geist/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../fonts/geist/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../fonts/geist/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist/GeistMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --side: 236px;
  --client-1: #1d3557; --client-2: #ffc53d; /* couleurs de Martin Rénovation, dans ses vidéos seulement */
  --ombre: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -16px rgba(0,0,0,.18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: var(--fw-text) var(--fs-body)/var(--lh-body) var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: var(--ls-h1); font-weight: var(--fw-strong); text-wrap: balance; }
h2 { font-size: 19px; line-height: 1.25; letter-spacing: var(--ls-h3); font-weight: var(--fw-strong); }
h3 { font-size: 15px; line-height: 1.35; font-weight: var(--fw-strong); }
.sous { color: var(--text-2); font-size: var(--fs-ui); }
.discret { color: var(--text-3); }
.petit { font-size: var(--fs-small); }
.num, [data-n], [data-pct], time { font-variant-numeric: tabular-nums; }
.valeur { font-family: var(--mono); font-size: var(--fs-small); }

/* ——— barre de maquette (hors produit) ——— */
.maq { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  padding: 8px var(--gutter); background: #f1f1f3; border-bottom: 1px dashed #c9c9cf; font-size: var(--fs-small); color: var(--text-2); }
.maq .maq-titre { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: var(--fw-strong); text-decoration: none; }
.maq .maq-titre .tag-maq { height: 22px; padding: 0 8px; border-radius: var(--r-pill); border: 1px dashed #a9a9b2; font-weight: 400; color: var(--text-2); display: inline-flex; align-items: center; }
.maq .etats { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.maq .etats > span { margin-right: 2px; }
.maq .etats button { height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid #d2d2d8; background: #fff; cursor: pointer; font-size: 13px; color: var(--text-2); }
.maq .etats button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.maq .note-btn { margin-left: auto; height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid #d2d2d8; background: transparent; cursor: pointer; font-size: 13px; }
.maq-note { display: none; padding: 14px var(--gutter) 16px; background: #f1f1f3; border-bottom: 1px dashed #c9c9cf; font-size: var(--fs-small); color: var(--text-2); }
.maq-note.ouverte { display: block; }
.maq-note > div { max-width: 980px; display: grid; gap: 6px; }
.maq-note b { color: var(--text); font-weight: var(--fw-strong); }

/* ——— sélecteur de langue (produit) ——— */
.langue { display: inline-flex; height: 30px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--bg); }
.langue button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 0 10px; font-size: 12px; font-weight: var(--fw-strong); color: var(--text-2); cursor: pointer; }
.langue button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ——— coquille de l'app ——— */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - 45px);
  background: linear-gradient(to right, var(--bg-2) calc(var(--side) - 1px), var(--line) calc(var(--side) - 1px), var(--line) var(--side), var(--bg) var(--side)); }
.lateral { position: sticky; top: 45px; align-self: start; height: calc(100vh - 45px); display: flex; flex-direction: column;
  padding: 14px 13px 12px 12px; }
.marque { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--fw-strong); font-size: 15px; text-decoration: none; padding: 4px 8px 16px; }
/* Signe Content Pro, « la pile vue de face » (piste 04c, ardoise #3f5566, validé le 24/11) ; version simplifiée sous 24 px. */
.signe { width: 20px; height: 20px; flex: none; background: url("../content-pro/signe_petit_clair.svg") no-repeat center / contain; }
.signe.grand { background-image: url("../content-pro/signe_clair.svg"); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; height: var(--h-nav); padding: 0 10px; border-radius: var(--r-panel);
  text-decoration: none; color: var(--text-2); font-size: var(--fs-ui); white-space: nowrap; }
.nav a:hover { background: var(--beat); color: var(--text); }
.nav a[aria-current="page"] { background: var(--bg); color: var(--text); font-weight: var(--fw-strong); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav .compteur { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--text); color: var(--bg);
  font-size: 12px; font-weight: var(--fw-strong); display: inline-grid; place-items: center; }
.nav .sep { height: 1px; background: var(--line-2); margin: 10px 8px; }
.lateral .pied { margin-top: auto; padding: 12px 8px 0; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); }
.lateral .pied a { text-decoration: none; }

.zone { min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.barre { height: var(--head); display: flex; align-items: center; gap: 12px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: var(--bg); }
.compte { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-ui); }
.avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: var(--fw-strong);
  background: var(--client-1); color: #fff; overflow: hidden; }
.avatar svg { width: 100%; height: 100%; }
.compte .qui { display: grid; line-height: 1.25; min-width: 0; }
.compte .qui b { font-weight: var(--fw-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compte .qui span { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre .droite { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-mobile { display: none; }

/* puce d'état du pilote : la forme, le mot, la teinte */
.pilote-puce { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); font-size: 13px; font-weight: var(--fw-strong); white-space: nowrap; text-decoration: none; background: var(--bg); }
.vivant { width: 8px; height: 8px; border-radius: 50%; background: var(--direct); position: relative; flex: none; }
.vivant::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--direct); opacity: .5; animation: pouls 2.4s var(--ease-productive) infinite; }
@keyframes pouls { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.5); opacity: 0; } }
.pause-glyphe { width: 10px; height: 10px; flex: none; border-left: 3px solid var(--text); border-right: 3px solid var(--text); }
.anneau { width: 14px; height: 14px; flex: none; border-radius: 50%; background: conic-gradient(var(--niveau) calc(var(--p) * 1%), var(--beat) 0); position: relative; }
.anneau::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bg); }

main.page { padding: 28px var(--gutter) 64px; max-width: 1240px; width: 100%; }
.page-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-tete .sous { margin-top: 6px; max-width: 64ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* barre mobile du bas */
.nav-bas { display: none; }

/* ——— boutons ——— */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h-btn); padding: 0 16px; border: 1px solid var(--text);
  border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-weight: var(--fw-strong); font-size: var(--fs-ui); cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: opacity var(--dur-ui) var(--ease-productive), transform var(--dur-ui) var(--ease-productive); }
.bouton:hover { opacity: .88; } .bouton:active { transform: scale(.98); }
.bouton.grand { height: 44px; padding: 0 22px; font-size: 15px; }
.bouton.leger { background: var(--bg); color: var(--text); border-color: var(--line-2); }
.bouton.leger:hover { border-color: var(--text); opacity: 1; }
.bouton.refus { background: var(--bg); color: var(--refus); border-color: color-mix(in srgb, var(--refus) 45%, transparent); }
.bouton.lien { background: transparent; border-color: transparent; color: var(--text-2); padding: 0 8px; }
.bouton.lien:hover { color: var(--text); }
.bouton svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bouton[disabled] { opacity: .4; cursor: not-allowed; }

/* ——— panneaux ——— */
.panneau { border: 1px solid var(--line-2); border-radius: var(--r-notice); background: var(--bg); padding: 18px 20px; }
.panneau.gris { background: var(--bg-2); border-color: var(--line); }
.panneau-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panneau-tete a { font-size: var(--fs-small); color: var(--text-2); text-decoration: none; white-space: nowrap; }
.panneau-tete a:hover { color: var(--text); }
.avis { border: 1px solid var(--line-2); border-left: 3px solid var(--niveau); border-radius: var(--r-notice); padding: 12px 16px; font-size: var(--fs-ui); color: var(--text-2); background: var(--bg); }
.avis b { color: var(--text); font-weight: var(--fw-strong); }
.avis.refus { border-left-color: var(--refus); }
.avis.encre { border-left-color: var(--text); }
.grille { display: grid; gap: var(--gap); }

/* ——— étiquettes d'état : forme, mot, teinte ——— */
.etat { display: inline-flex; align-items: center; gap: 6px; height: var(--h-tag); padding: 0 9px 0 7px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  font-size: 12px; color: var(--text-2); white-space: nowrap; background: var(--bg); }
.etat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.etat.publiee { color: var(--text); } .etat.publiee::before { background: var(--text); }
.etat.programmee::before { border: 1.5px solid var(--text); box-sizing: border-box; }
.etat.essai::before { border: 1.5px dashed var(--text); box-sizing: border-box; width: 9px; height: 9px; }
.etat.attente { color: var(--text); border-color: color-mix(in srgb, var(--niveau) 55%, transparent); }
.etat.attente::before { border-radius: 1px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--niveau); }
.etat.ecartee { color: var(--refus); } .etat.ecartee::before { content: "×"; width: auto; height: auto; font-size: 14px; line-height: 1; }
.etat.direct { color: var(--text); } .etat.direct::before { background: var(--direct); }
.etat.pause::before { border-radius: 0; width: 6px; height: 8px; border-left: 2px solid var(--text-2); border-right: 2px solid var(--text-2); }
.etat.prete::before { border: 1.5px solid var(--text-3); box-sizing: border-box; border-radius: 2px; }

/* réseaux : pastilles monochromes à lettre (pas de logos de marque) */
.reseau { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 12px;
  font-weight: 600; color: var(--text); background: var(--bg); flex: none; letter-spacing: -0.02em; }
.reseaux { display: inline-flex; gap: 4px; }

/* ——— chiffres ——— */
.chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r-notice); background: var(--bg); }
.chiffre { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.chiffre:first-child { border-left: 0; }
.chiffre .lib { font-size: var(--fs-small); color: var(--text-2); }
.chiffre .val { font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: var(--fw-strong); margin-top: 6px; font-variant-numeric: tabular-nums; }
.chiffre .ecart { font-size: var(--fs-small); color: var(--text-2); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.chiffre .ecart b { color: var(--text); font-weight: var(--fw-strong); }
.chiffre svg.spark { width: 100%; height: 30px; margin-top: 10px; display: block; overflow: visible; }
.fleche-h::before { content: "↗"; } .fleche-b::before { content: "↘"; }

/* jauge de confiance : trois barres + le mot */
.confiance { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--text-2); white-space: nowrap; }
.confiance i { display: inline-flex; gap: 2px; align-items: flex-end; }
.confiance i b { width: 4px; border-radius: 1px; background: var(--beat); display: block; }
.confiance i b:nth-child(1) { height: 7px; } .confiance i b:nth-child(2) { height: 10px; } .confiance i b:nth-child(3) { height: 13px; }
.confiance[data-c="1"] i b:nth-child(-n+1), .confiance[data-c="2"] i b:nth-child(-n+2), .confiance[data-c="3"] i b:nth-child(-n+3) { background: var(--text); }

/* ——— filtres ——— */
.filtres { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filtre { height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; font-size: 13px;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.filtre[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filtre .n { font-size: 12px; opacity: .7; }
.champ { height: var(--h-field); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: 0 12px; background: var(--bg); font-size: var(--fs-ui); min-width: 0; }
.champ:focus { outline: none; border-color: var(--text); }

/* ——— lignes (journal, listes) ——— */
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes > li { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; font-size: var(--fs-ui); }
.lignes > li:first-child { border-top: 0; }
.lignes .quand { color: var(--text-3); font-size: var(--fs-small); padding-top: 1px; }
.lignes .quoi { min-width: 0; color: var(--text); }
.lignes .quoi span.d { display: block; color: var(--text-2); font-size: var(--fs-small); margin-top: 2px; }
.qui-fait { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.qui-fait .p { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; }
.qui-fait .p.pilote { border: 1.5px solid var(--text); }
.qui-fait .p.vous { background: var(--client-1); color: #fff; }

/* ——— téléphone 9:16 (vidéos du client) ——— */
.tel { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #2a2a2e; isolation: isolate; flex: none; }
.tel > svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tel .segs { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; z-index: 2; }
.tel .segs i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.4); }
.tel .segs i.plein { background: #fff; }
.tel .seq { position: absolute; left: 8%; right: 8%; top: 13%; z-index: 2; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
.tel .seq span { background: var(--client-1); padding: .08em .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; border-radius: 3px; }
.tel .seq span.j { background: var(--client-2); color: var(--client-1); }
.tel .bas { position: absolute; left: 8%; right: 8%; bottom: 7%; z-index: 2; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.tel .bas .logo-c { display: inline-flex; align-items: center; gap: 5px; background: var(--client-2); color: var(--client-1); border-radius: 4px; padding: .2em .45em; }
.tel .bas .logo-c::before { content: ""; width: .7em; height: .7em; border: 2px solid var(--client-1); border-radius: 2px; }
.tel .ba { position: absolute; z-index: 2; top: 46%; padding: .2em .5em; font-weight: 600; border-radius: 3px; background: rgba(0,0,0,.6); color: #fff; }
.tel .cadre { position: absolute; z-index: 2; border: 1.5px solid rgba(255,255,255,.95); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.tel .cadre::after { content: attr(data-l); position: absolute; left: -1.5px; top: -1.9em; background: #fff; color: #111; font-weight: 600; padding: .15em .45em; border-radius: 2px; white-space: nowrap; font-size: .9em; }
.tel .masque { position: absolute; z-index: 2; background: repeating-linear-gradient(45deg, rgba(40,40,44,.92) 0 4px, rgba(70,70,76,.92) 4px 8px); border-radius: 2px; }
.tel .lecture { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; }
.tel .lecture i { width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; backdrop-filter: blur(4px); }
.tel .lecture i::after { content: ""; margin-left: 4px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.tel .duree { position: absolute; right: 7px; bottom: 7px; z-index: 3; background: rgba(0,0,0,.6); color: #fff; border-radius: 4px; padding: 0 5px; font-size: 12px; font-family: var(--mono); }
.tel .serie-t { position: absolute; top: 18px; left: 8%; z-index: 2; color: #fff; font-weight: 500; opacity: .92; }
/* tailles du texte vidéo selon le cadre */
.tel.xs { font-size: 9px; } .tel.s { font-size: 11px; } .tel.m { font-size: 15px; } .tel.l { font-size: 19px; }
.tel.xs .bas, .tel.xs .ba, .tel.xs .serie-t { display: none; }
.vignette-legende { font-size: var(--fs-small); color: var(--text-2); }

/* ——— lecteur (fenêtre) ——— */
.lecteur { display: grid; gap: 10px; }
.lecteur .piste { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.lecteur .piste .rail { flex: 1; height: 4px; border-radius: 2px; background: var(--beat); position: relative; }
.lecteur .piste .rail b { position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--text); border-radius: 2px; }
.lecteur .piste .rail b::after { content: ""; position: absolute; right: -5px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
.lecteur .chap { display: flex; font-size: 12px; color: var(--text-3); }
.lecteur .chap span { flex: var(--f); border-left: 1px solid var(--line-2); padding-left: 6px; }

/* ——— fiche de conformité ——— */
.fiche { display: grid; gap: 14px; }
.fiche-tete { display: flex; align-items: center; gap: 12px; }
.fiche-tete .score { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--text); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }
.fiche-groupe h4 { font-size: var(--fs-small); color: var(--text-2); font-weight: var(--fw-strong); margin: 0 0 6px; }
.fiche ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.fiche li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: var(--fs-ui); align-items: start; }
.fiche li .d { display: block; font-size: var(--fs-small); color: var(--text-2); }
.ok, .aten, .ko { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; flex: none; }
.ok { background: var(--text); }
.ok::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 1.8px 1.8px; transform: translateY(-1px) rotate(-45deg); }
.aten { border-radius: 2px; background: none; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--niveau); margin: 2px 0 0 0; }
.ko { background: var(--refus); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; }
.ko::after { content: "×"; }

/* ——— raison du choix ——— */
.raison { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: var(--fs-ui); }
.raison .ic { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.raison .ic.test { border-style: dashed; }

/* ——— piste de la semaine (signature) ——— */
.piste-semaine { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1.5px solid var(--line-2); margin-top: 22px; }
.piste-semaine .jour { position: relative; padding: 12px 6px 0 0; font-size: 12px; color: var(--text-3); border-left: 1px solid var(--line); min-height: 64px; }
.piste-semaine .jour:first-child { border-left: 0; }
.piste-semaine .jour b { display: block; color: var(--text-2); font-weight: var(--fw-strong); font-size: 12.5px; text-transform: capitalize; }
.piste-semaine .pub { position: absolute; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text); transform: translateX(-50%); }
.piste-semaine .pub.faite { background: var(--text); }
.piste-semaine .pub.essai { border-style: dashed; }
.piste-semaine .pub.gelee { border-color: var(--bar); background: repeating-linear-gradient(45deg, var(--beat) 0 2px, var(--bg) 2px 4px); }
.piste-semaine .tete { position: absolute; top: -16px; bottom: 0; width: 2px; background: var(--direct); transform: translateX(-1px); }
.piste-semaine .tete::before { content: ""; position: absolute; top: -2px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--direct); }
.piste-semaine .tete.arret { background: var(--text-3); }
.piste-semaine .tete.arret::before { background: var(--text-3); border-radius: 2px; }

/* ——— fenêtres de dialogue, tiroirs, toasts ——— */
.voile { position: fixed; inset: 0; z-index: 60; background: rgba(23,23,23,.32); display: grid; place-items: center; padding: 16px; }
.dialogue { width: min(460px, 100%); background: var(--bg); border-radius: var(--r-win); box-shadow: 0 24px 64px -24px rgba(0,0,0,.4); padding: 26px; display: grid; gap: 14px; }
.toast { position: fixed; z-index: 55; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: var(--bg); border-radius: var(--r-pill);
  padding: 10px 12px 10px 18px; font-size: var(--fs-ui); display: flex; gap: 14px; align-items: center; box-shadow: var(--ombre); max-width: calc(100vw - 32px); }
.toast button { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: var(--r-pill); height: 28px; padding: 0 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }

/* interrupteur */
.inter { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; border: 0; cursor: pointer; }
.inter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform var(--dur-ui) var(--ease-productive); }
.inter[aria-checked="true"] { background: var(--text); }
.inter[aria-checked="true"]::after { transform: translateX(16px); }

/* portrait (personne au centre) */
.portrait { border-radius: 50%; overflow: hidden; background: #d8d4cc; flex: none; }
.portrait svg { width: 100%; height: 100%; display: block; }

/* ——— mobile ——— */
@media (max-width: 960px) {
  .maq { position: static; }
  .app { grid-template-columns: 1fr; }
  .lateral { display: none; }
  .barre { padding: 0 16px; position: sticky; top: 0; z-index: 20; }
  .menu-mobile { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-panel); border: 1px solid var(--line-2); background: var(--bg); flex: none; }
  .menu-mobile svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  main.page { padding: 20px 16px 40px; }
  .app { background: var(--bg); }
  .nav-bas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: sticky; z-index: 40; bottom: 0; margin-top: auto; background: var(--bg);
    border-top: 1px solid var(--line-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .nav-bas a { display: grid; justify-items: center; gap: 2px; text-decoration: none; font-size: 12px; color: var(--text-2); position: relative; padding: 4px 0; }
  .nav-bas a[aria-current="page"] { color: var(--text); font-weight: var(--fw-strong); }
  .nav-bas svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .nav-bas .compteur { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; display: grid; place-items: center; padding: 0 4px; font-weight: 600; }
  .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chiffre:nth-child(3) { border-left: 0; }
  .chiffre:nth-child(n+3) { border-top: 1px solid var(--line); }
  .toast { bottom: 84px; }
}
@media (max-width: 560px) {
  .compte .qui { display: none; }
  .barre .pilote-puce .mot-long { display: none; }
  .barre { gap: 8px; }
  .maq .note-btn { margin-left: 0; }
  .chiffre .val { font-size: 24px; }
  .lignes > li { grid-template-columns: 1fr auto; }
  .lignes > li .quand { grid-column: 1 / -1; }
  .piste-semaine .jour { padding-right: 2px; font-size: 12px; }
  .piste-semaine .jour .det { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vivant::after { animation: none; } }
