/* ============================================================
   SIGNATURE — CERCLE 25
   Anneau permanent : 5 arcs = 5 départements. Toujours visible
   dans le header, déployé en navigateur d'étapes dans le dossier.
   ============================================================ */
.cercle { position: relative; flex: none; width: 38px; height: 38px; }
.cercle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cercle .arc { fill: none; stroke-width: 3.5; stroke-linecap: round; opacity: .28; transition: opacity var(--t-mid) var(--e-out), stroke-width var(--t-mid); }
.cercle .arc.on { opacity: 1; }
.cercle .arc.pulse { animation: arc-pulse 2.4s ease-in-out infinite; }
@keyframes arc-pulse { 50% { opacity: .45; } }
.cercle .core {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px; color: var(--tx-1); letter-spacing: -.02em;
}
.cercle.lg { width: 132px; height: 132px; }
.cercle.lg .arc { stroke-width: 6; }
.cercle.lg .core { font-size: var(--fs-22); flex-direction: column; }
.cercle.lg .core small { font-family: var(--f-mono); font-size: 9px; letter-spacing: .18em; color: var(--tx-3); }

.cercle-legend { display: flex; flex-direction: column; gap: 6px; }
.cercle-legend button {
  display: flex; align-items: center; gap: var(--s-2); width: 100%;
  padding: 5px var(--s-2); border-radius: var(--r-sm);
  font-size: var(--fs-12); color: var(--tx-2); text-align: left;
  transition: background var(--t-fast);
}
.cercle-legend button:hover { background: var(--bg-2); color: var(--tx-1); }
.cercle-legend .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--dep); }
.cercle-legend .n { margin-left: auto; font-family: var(--f-mono); color: var(--tx-1); }

/* ===================== DASHBOARD DIRECTION ================= */
.dash { display: grid; gap: var(--s-4); grid-template-columns: repeat(12, 1fr); align-items: start; }
.dash > .col-4 { grid-column: span 4; } .dash > .col-5 { grid-column: span 5; }
.dash > .col-6 { grid-column: span 6; } .dash > .col-7 { grid-column: span 7; }
.dash > .col-8 { grid-column: span 8; } .dash > .col-12 { grid-column: span 12; }
/* Le sélecteur doit viser la classe où qu'elle soit dans l'attribut :
   les panneaux portent « panel col-6 ». */
@media (max-width: 1200px) {
  .dash > .col-4, .dash > .col-5, .dash > .col-6,
  .dash > .col-7, .dash > .col-8 { grid-column: span 6; }
}
@media (max-width: 820px) {
  .dash > .col-4, .dash > .col-5, .dash > .col-6,
  .dash > .col-7, .dash > .col-8, .dash > .col-12 { grid-column: span 12; }
}

.kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi .v {
  font-family: var(--f-display);
  font-size: clamp(18px, 2.1vw, 28px);
  color: var(--tx-1); line-height: 1.15;
  font-variant-numeric: tabular-nums; letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.kpi .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-3); }
.kpi .d { font-size: var(--fs-12); }
.kpi .d.up { color: var(--ok); } .kpi .d.down { color: var(--danger); }

.presence-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5); }
.presence-dot { width: 8px; height: 8px; border-radius: var(--r-full); flex: none; background: var(--tx-3); }
.presence-dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.presence-dot.busy { background: var(--rec); }
.presence-dot.off { background: var(--tx-3); opacity: .5; }

.timeline { position: relative; padding-left: var(--s-5); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 var(--s-4) 0; }
.timeline-item::before {
  content: ""; position: absolute; left: calc(var(--s-5) * -1 + 4px); top: 5px;
  width: 7px; height: 7px; border-radius: var(--r-full);
  background: var(--dep, var(--brand)); box-shadow: 0 0 0 3px var(--bg-1);
}
.timeline-item .t { font-family: var(--f-mono); font-size: var(--fs-11); color: var(--tx-3); }

/* ======================= DOSSIER PROJET ==================== */
.dossier-hero {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-5);
  display: flex; gap: var(--s-6); align-items: center; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.dossier-hero::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--c-commercial), var(--c-preprod), var(--c-production), var(--c-postprod), var(--c-livraison));
  opacity: .8;
}
.dossier-id { font-family: var(--f-mono); font-size: var(--fs-11); color: var(--tx-3); letter-spacing: .06em; }

/* Rail d'étapes : le projet circule ici */
.rail { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 2px; }
.rail-step {
  flex: 1 1 0; min-width: 148px; position: relative;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5);
  background: var(--bg-1); border: 1px solid var(--line); border-right: 0;
  text-align: left; transition: background var(--t-fast);
}
.rail-step:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.rail-step:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--r-md) var(--r-md) 0; }
.rail-step:hover { background: var(--bg-2); }
.rail-step .n { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--tx-3); }
.rail-step .s { display: block; font-size: var(--fs-13); color: var(--tx-2); margin-top: 2px; }
.rail-step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent;
}
.rail-step.done { --dep: var(--ok); }
.rail-step.done .s { color: var(--tx-2); }
.rail-step.done::before, .rail-step.current::before { background: var(--dep); }
.rail-step.current { background: color-mix(in srgb, var(--dep) 10%, var(--bg-1)); }
.rail-step.current .s { color: var(--tx-1); font-weight: 500; }
.rail-step.current .n { color: var(--dep); }
.rail-step .tick { position: absolute; right: var(--s-3); top: var(--s-3); color: var(--ok); }
.rail-step.locked { opacity: .5; }

.gate-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap;
  padding: var(--s-4) var(--s-5);
  border: 1px dashed var(--dep, var(--brand));
  background: color-mix(in srgb, var(--dep, var(--brand)) 7%, transparent);
  border-radius: var(--r-md);
}
.gate-req { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.gate-req .req { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--tx-3); }
.gate-req .req.ok { color: var(--ok); }
.gate-req .req.miss { color: var(--warn); }

.section-block { margin-bottom: var(--s-5); }
.section-block > .eyebrow { display: block; margin-bottom: var(--s-3); }

/* Grille de fichiers / photos */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s-3); }
.thumb { aspect-ratio: 16/10; border-radius: var(--r-sm); background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; color: var(--tx-3); font-size: var(--fs-11); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Versions V1/V2/V3 */
.version-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5); }
.version-tag { font-family: var(--f-mono); font-size: var(--fs-12); padding: 2px 8px; border-radius: var(--r-sm); background: var(--bg-3); color: var(--tx-1); }
.version-tag.final { background: var(--ok); color: #06170D; }

/* ========================== KANBAN ========================= */
.board { display: flex; gap: var(--s-4); overflow-x: auto; padding-bottom: var(--s-4); align-items: flex-start; }
.board-col { flex: 0 0 296px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-md); }
.board-col-head { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line-soft); }
.board-col-head .sw { width: 8px; height: 8px; border-radius: 2px; background: var(--dep); }
.board-col-head b { font-size: var(--fs-12); color: var(--tx-1); font-weight: 500; }
.board-col-head .n { margin-left: auto; font-family: var(--f-mono); font-size: var(--fs-11); color: var(--tx-3); }
.board-col-body { padding: var(--s-3); display: flex; flex-direction: column; gap: var(--s-2); min-height: 60px; max-height: calc(100dvh - 320px); overflow-y: auto; }
.board-card { background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--dep); border-radius: var(--r-sm); padding: var(--s-3); cursor: pointer; transition: transform var(--t-fast), border-color var(--t-fast); }
.board-card:hover { transform: translateY(-1px); border-color: var(--dep); }
.board-card b { display: block; font-size: var(--fs-13); color: var(--tx-1); font-weight: 500; }
.board-card .meta { font-size: var(--fs-11); color: var(--tx-3); margin-top: 4px; }

/* =========================== LOGIN ========================= */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-stage { display: none; } }
.auth-stage {
  position: relative; background: var(--bg-1); border-right: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.auth-stage .glow { position: absolute; width: 620px; height: 620px; border-radius: 50%; filter: blur(90px); opacity: .16; background: radial-gradient(circle, var(--c-commercial), transparent 60%); }
.auth-stage .inner { position: relative; text-align: center; padding: var(--s-8); }
.auth-stage h2 { font-size: var(--fs-36); letter-spacing: -.02em; }
.auth-stage p { color: var(--tx-3); max-width: 40ch; margin: var(--s-3) auto 0; }
.auth-form { display: grid; place-items: center; padding: var(--s-6); }
.auth-card { width: min(380px, 100%); }
.auth-error { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: var(--fs-13); margin-bottom: var(--s-4); }

/* ---- Grille du mois (Agenda) ---- */
.mois-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--s-2); }
.mois-case { min-height: 96px; }
.mois-case.hors { opacity: .35; }
.mois-case.auj { border-color: var(--brand); }
.mois-num { font-family: var(--f-mono); font-size: var(--fs-12); color: var(--tx-3); }
.mois-case.auj .mois-num { color: var(--brand); }
.mois-event {
  display: block; font-size: var(--fs-11); margin-top: 4px;
  border-left: 2px solid var(--dep, var(--brand)); padding-left: 6px;
}
/* Pastille de département dans une puce de filtre */
.chip .sw { width: 7px; height: 7px; border-radius: 2px; background: var(--dep); flex: none; }
/* Point d'un champ obligatoire */
.req-mark { color: var(--warn); }

/* ---- Dépôt de fichiers ---- */
.depot { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.thumb-card { display: flex; flex-direction: column; gap: 6px; }
.thumb-card .thumb { width: 100%; cursor: pointer; transition: border-color var(--t-fast); }
.thumb-card .thumb:hover { border-color: var(--brand); color: var(--tx-1); }
.thumb-meta { display: flex; flex-direction: column; min-width: 0; }

/* ---- Écran de connexion ---- */
.auth-ring { margin: 0 auto var(--s-6); }
.auth-titre { margin: 6px 0; }

/* ======================= 25 TEAM ======================= */
/* minmax(0, 1fr) : sans cette borne basse, un message long
   élargit la colonne au lieu de revenir à la ligne, et le fil
   déborde de l'écran. */
.team-grille { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.team-grille > * { min-width: 0; }
@media (max-width: 900px) { .team-grille { grid-template-columns: 1fr; } }
.team-canaux .list-row.is-actif { background: var(--brand-soft); }
.team-fil { display: flex; flex-direction: column; max-height: calc(100dvh - 220px); }
.team-flux { flex: 1 1 auto; overflow-y: auto; padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.team-message { display: flex; gap: var(--s-3); min-width: 0; }
.team-message > .col, .team-message .grow { min-width: 0; }
.team-message.mien .team-texte { background: var(--brand-soft); }
.team-texte { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-3); font-size: var(--fs-13); color: var(--tx-1); margin-top: 4px; overflow-wrap: anywhere; }
.mention { color: var(--brand); font-weight: 500; }
.team-saisie { min-height: 60px; }

/* ========================= 25 AI ======================== */
.ai-flux { flex: 1 1 auto; overflow-y: auto; padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); max-height: 520px; }
.ai-bulle { border-left: 3px solid var(--line); padding-left: var(--s-3); }
.ai-bulle.user { border-left-color: var(--brand); }
.ai-bulle.assistant { border-left-color: var(--c-postprod); }
.ai-bulle.erreur { border-left-color: var(--danger); }
.ai-bulle .bloc { white-space: pre-wrap; font-size: var(--fs-13); color: var(--tx-1); margin-top: 4px; }

/* ======================= NOTEBOOK ====================== */
.note-carte { display: flex; flex-direction: column; min-height: 168px; }
.note-carte.epinglee { border-color: var(--brand-line); }
.note-contenu { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; flex: 1 1 auto; white-space: pre-wrap; }

/* ---- Suggestion sous un champ : proposée, jamais imposée ---- */
.suggestion {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  margin-top: 6px; padding: var(--s-2) var(--s-3);
  background: color-mix(in srgb, var(--info) 8%, transparent);
  border-left: 2px solid var(--info); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.suggestion .note-contenu { flex: 1 1 240px; min-width: 0; -webkit-line-clamp: 2; }

/* ==================== ACCUEIL — LANGAGE MAQUETTE ==================== */
.accueil-head h1 { font-size: var(--fs-36); }
.accueil-head p { margin: 6px 0 0; font-size: var(--fs-14); }

/* --- Carte de priorité : la seule action mise en avant --- */
.priorite {
  position: relative; overflow: hidden;
  border-color: color-mix(in srgb, var(--sig, var(--brand)) 34%, var(--line));
}
.priorite::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--sig, var(--brand));
}
.priorite-corps { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.priorite-affiche { flex: none; }
.priorite-affiche .affiche { width: 176px; height: 110px; }
.priorite h2 { font-size: var(--fs-28); }
.priorite-action { font-size: var(--fs-16); color: var(--tx-1); font-weight: 600; margin: 0; }
.priorite-cta { flex: none; min-width: 260px; }
.priorite-cta .btn-hero { width: 100%; }
@media (max-width: 900px) {
  .priorite-corps { gap: var(--s-4); }
  .priorite-affiche .affiche { width: 100%; height: 128px; }
  .priorite-affiche { flex: 1 1 100%; }
  .priorite-cta { min-width: 0; width: 100%; }
}

/* --- Parcours en ligne : COMMERCIAL → … → LIVRAISON --- */
.parcours { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
@media (max-width: 640px) {
  /* Le parcours reste une ligne : on le fait défiler plutôt que
     de le casser en morceaux illisibles. */
  .parcours { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .parcours-etape { flex: none; }
}
.parcours-etape { display: flex; align-items: center; gap: 7px; padding-right: var(--s-4); position: relative; }
.parcours-etape + .parcours-etape { padding-left: var(--s-4); }
.parcours-etape + .parcours-etape::before {
  content: ""; position: absolute; left: 0; top: 50%; width: var(--s-4); height: 1px;
  background: var(--line); transform: translate(-100%, -50%);
}
.parcours-etape .pastille {
  width: 16px; height: 16px; border-radius: var(--r-full); flex: none;
  display: grid; place-items: center; color: #06170D;
  border: 1px solid var(--line); background: var(--bg-2);
}
.parcours-etape .nom { font-size: var(--fs-12); color: var(--tx-3); white-space: nowrap; }
.parcours-etape.est-fait .pastille { background: var(--ok); border-color: var(--ok); }
.parcours-etape.est-fait .nom { color: var(--tx-2); }
.parcours-etape.est-ici .pastille {
  background: var(--dep); border-color: var(--dep);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dep) 22%, transparent);
}
.parcours-etape.est-ici .nom { color: var(--tx-1); font-weight: 700; }

/* --- Rail du CERCLE 25 --- */
.rail-cercle { display: flex; gap: 4px; }
.rail-seg { flex: 1; height: 4px; border-radius: var(--r-full); background: var(--bg-3); }
.rail-seg.plein { background: var(--dep); }

/* --- Affiches et vitrine de projets --- */
.affiche {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-md); background: var(--bg-2);
}
.projets-vitrine {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.projet-carte {
  display: flex; flex-direction: column; gap: var(--s-3);
  border-radius: var(--r-md); transition: transform var(--t-fast);
}
.projet-carte:hover { transform: translateY(-2px); }
.projet-visuel { position: relative; aspect-ratio: 16/10; }
.projet-visuel .affiche { height: 100%; }
.projet-carte:hover .affiche { outline: 1px solid var(--dep); outline-offset: 0; }
.projet-phase {
  position: absolute; left: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: var(--r-full);
  background: rgba(7,7,8,.78); backdrop-filter: blur(6px);
  font-size: var(--fs-12); color: var(--tx-1); font-weight: 600;
}
.projet-info { display: flex; flex-direction: column; min-width: 0; }
.projet-info b { font-size: var(--fs-14); color: var(--tx-1); }

/* ---- Dossier projet : affiche, parcours, action évidente ---- */
.dossier-hero { align-items: flex-start; gap: var(--s-5); }
.dossier-affiche { flex: none; width: 200px; }
.dossier-affiche .affiche { height: 124px; }
.dossier-hero .parcours { margin-top: var(--s-2); }
.dossier-hero::after { opacity: 1; }
.gate-bar { border-style: solid; border-color: color-mix(in srgb, var(--dep) 30%, var(--line)); }
.gate-bar .btn-hero:disabled, .gate-bar .btn-hero[disabled] { opacity: .45; }
@media (max-width: 700px) {
  .dossier-affiche { width: 100%; }
  .dossier-affiche .affiche { height: 140px; }
}

/* ============ ACCUEIL — PROPOSITION B : SALLE DE PROJECTION ============ */
.accueil-b .page-head { align-items: center; }

/* La scène : le projet prioritaire, plein cadre. */
.scene {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dep) 30%, var(--line));
  border-radius: var(--r-lg); min-height: 300px;
  display: flex; align-items: flex-end;
}
.scene-fond { position: absolute; inset: 0; }
.scene-fond .affiche { width: 100%; height: 100%; border-radius: 0; object-position: center 35%; }
.scene-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,8,.95) 0%, rgba(7,7,8,.82) 45%, rgba(7,7,8,.35) 100%),
    linear-gradient(0deg, rgba(7,7,8,.95) 0%, rgba(7,7,8,.1) 60%);
}
.scene-corps {
  position: relative; padding: var(--s-8) var(--s-8) var(--s-6);
  max-width: 640px; display: flex; flex-direction: column;
}
.scene-corps h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.1; margin-top: 6px; }
.scene-action {
  font-size: var(--fs-16); font-weight: 600; color: var(--tx-1);
  margin: var(--s-4) 0 0; max-width: 46ch;
}
.scene .btn-hero { align-self: flex-start; }
@media (max-width: 700px) {
  .scene { min-height: 0; }
  .scene-corps { padding: var(--s-6) var(--s-4) var(--s-5); }
}

/* Le parcours en timeline pleine largeur. */
.timeline25 { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); }
.t25-etape { display: flex; flex-direction: column; gap: 8px; }
.t25-barre { height: 4px; border-radius: var(--r-full); background: var(--bg-3); }
.t25-etape.plein .t25-barre { background: var(--dep); }
.t25-texte { display: flex; align-items: baseline; gap: 8px; }
.t25-texte b { font-size: var(--fs-18); font-weight: 700; color: var(--tx-1); }
.t25-etape.plein .t25-texte b { color: var(--dep); }
.t25-texte span { font-size: var(--fs-12); color: var(--tx-3); }
.t25-etape:hover .t25-texte span { color: var(--tx-2); }
@media (max-width: 700px) {
  .timeline25 { grid-template-columns: repeat(5, minmax(84px, 1fr)); overflow-x: auto; }
}

/* Deux colonnes : la file à gauche, le mur à droite. */
.b-grille { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4); margin-top: var(--s-4); align-items: start; }
@media (max-width: 1100px) { .b-grille { grid-template-columns: 1fr; } }

.file-ligne {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  border-left: 3px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.file-ligne:hover { background: var(--bg-2); border-left-color: var(--sig, var(--brand)); }
.file-action { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; }
.file-action .fs-12 { color: var(--sig, var(--tx-2)); font-weight: 600; white-space: nowrap; }

/* Le mur d'affiches. */
.mur { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.mur-carte { display: flex; flex-direction: column; gap: var(--s-3); transition: transform var(--t-fast); }
.mur-carte:hover { transform: translateY(-3px); }
.mur-visuel { position: relative; aspect-ratio: 3/2; }
.mur-visuel .affiche { height: 100%; }
.mur-carte:hover .affiche { outline: 1px solid var(--dep); }
.mur-etat {
  position: absolute; left: 8px; top: 8px;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: var(--r-full);
  background: rgba(7,7,8,.8); backdrop-filter: blur(6px);
  font-size: var(--fs-12); font-weight: 600; color: var(--tx-1);
}
.mur-info { display: flex; flex-direction: column; min-width: 0; }
.mur-info b { font-size: var(--fs-14); color: var(--tx-1); }
.bascule-vue .chip { font-size: var(--fs-12); }
@media (max-width: 620px) {
  /* Sur téléphone, l'action passe sous le titre au lieu d'être coupée. */
  .file-ligne { flex-wrap: wrap; padding: var(--s-3) var(--s-4); }
  .file-action {
    width: 100%; flex-direction: row; align-items: center; gap: var(--s-2);
    text-align: left; margin-left: 20px;
  }
}

/* ================ ACCUEIL — PROPOSITION C : LES VOIES ================ */
.c-grille {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--s-4); margin-top: var(--s-4); align-items: start;
}
@media (max-width: 1200px) { .c-grille { grid-template-columns: 1fr; } }

.voies {
  display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: var(--s-3); padding: 0 var(--s-4) var(--s-4);
  overflow-x: auto;
}
.voie { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.voie-tete { display: block; }
.voie-barre { display: block; height: 3px; border-radius: var(--r-full); background: var(--dep); opacity: .9; }
.voie-nom { font-size: var(--fs-12); font-weight: 600; color: var(--tx-2); }
.voie-n { font-size: var(--fs-16); font-weight: 700; color: var(--dep); }
.voie-tete:hover .voie-nom { color: var(--tx-1); }
.voie-corps { display: flex; flex-direction: column; gap: var(--s-3); }
.voie-vide { color: var(--tx-3); font-size: var(--fs-13); padding: var(--s-3) 0; margin: 0; }

.voie-carte {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-2); border-radius: var(--r-md);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.voie-carte:hover { transform: translateY(-2px); border-color: var(--dep); }
.voie-visuel { position: relative; aspect-ratio: 16/10; }
.voie-visuel .affiche { height: 100%; }
.voie-alerte {
  position: absolute; right: 6px; top: 6px;
  padding: 2px 7px; border-radius: var(--r-full);
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.voie-info { display: flex; flex-direction: column; min-width: 0; padding: 0 4px 4px; }
.voie-info b { font-size: var(--fs-13); color: var(--tx-1); }
.voie-action {
  font-size: var(--fs-12); font-weight: 600; color: var(--sig, var(--brand)); margin-top: 6px;
}

/* Le chemin parcouru, en cinq points. */
.mini-parcours { display: flex; align-items: center; gap: 5px; }
.mp-point {
  width: 7px; height: 7px; border-radius: var(--r-full);
  background: var(--bg-3); border: 1px solid var(--line); flex: none;
}
.mp-point.fait { background: var(--ok); border-color: var(--ok); }
.mp-point.ici {
  background: var(--dep); border-color: var(--dep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dep) 25%, transparent);
}

.voie-livres { padding: var(--s-4); border-top: 1px solid var(--line-soft); }

@media (max-width: 900px) {
  .voies { grid-template-columns: repeat(5, minmax(140px, 1fr)); }
}

/* ---- Voies : carrousel net sur téléphone ---- */
.voies { scroll-snap-type: x mandatory; scroll-padding-left: var(--s-4); }
.voie { scroll-snap-align: start; }
.voies-nav { display: none; }
.voies-points { display: flex; gap: 6px; }
.voies-points .vp {
  width: 6px; height: 6px; border-radius: var(--r-full);
  background: var(--line); transition: background var(--t-fast), width var(--t-fast);
}
.voies-points .vp.actif { background: var(--brand); width: 18px; }
.voies-glisser {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-12); color: var(--tx-3);
}
.voies-glisser svg { animation: glisse 2.2s ease-in-out infinite; }
@keyframes glisse { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

@media (max-width: 1100px) {
  /* Une étape occupe presque tout l'écran : on voit qu'il y en a
     d'autres à côté, sans jamais croire que l'écran est coupé. */
  .voies { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; }
  .voies-nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--s-3); padding: 0 var(--s-4) var(--s-4);
  }
}
@media (max-width: 620px) { .voies { grid-auto-columns: 84%; } }
.file-ligne.premiere { background: color-mix(in srgb, var(--sig) 7%, transparent); }
.c-file .panel-foot { padding: var(--s-3) var(--s-4); }

/* ---- Dossier projet : couverture en fond, identité lisible ---- */
.dossier-hero { position: relative; overflow: hidden; }
.dossier-fond { position: absolute; inset: 0; }
.dossier-fond .affiche { width: 100%; height: 100%; border-radius: 0; object-position: center 35%; }
.dossier-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,8,.97) 0%, rgba(7,7,8,.9) 55%, rgba(7,7,8,.55) 100%),
    linear-gradient(0deg, rgba(7,7,8,.95) 0%, rgba(7,7,8,.35) 70%);
}
.dossier-hero > *:not(.dossier-fond):not(.dossier-voile) { position: relative; }
.dossier-meta { margin-top: 2px; }
.dossier-meta .eyebrow { font-style: normal; }
.dossier-meta b { color: var(--tx-1); font-size: var(--fs-14); margin-left: 6px; }

/* ---- Où en est ce dossier ---- */
.etat-grille { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); }
@media (max-width: 900px) { .etat-grille { grid-template-columns: 1fr; gap: var(--s-4); } }
.etat-colonne { min-width: 0; }
.etat-ligne { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.etat-ligne .strong { color: var(--tx-1); }

/* ---- Rail : chaque étape dit son état ---- */
.rail-step .m {
  display: block; margin-top: 3px;
  font-size: 10px; letter-spacing: .06em; color: var(--tx-3);
}
.rail-step.current .m { color: var(--dep); }
.rail-step.ouvert { background: color-mix(in srgb, var(--dep) 12%, var(--bg-1)); }
.rail-step.locked { opacity: .62; }

/* =================== DASHBOARD FUSIONNÉ — MAQUETTE 25 =================== */
.dashboard { display: flex; flex-direction: column; gap: var(--s-4); }
.db-entete { margin-bottom: 0; align-items: flex-end; }
.db-entete h1 { font-size: var(--fs-36); }
.db-entete p { margin: 4px 0 0; }
.db-date { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--tx-2); font-size: var(--fs-14); }
.db-date svg { color: var(--brand); }

.db-duo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--s-4); align-items: stretch; }
@media (max-width: 1100px) { .db-duo { grid-template-columns: 1fr; } }
.db-duo > .panel { display: flex; flex-direction: column; }
.db-duo > .panel > .panel-body { flex: 1 1 auto; }

.db-lien { color: var(--brand); font-size: var(--fs-13); font-weight: 600; }
.db-lien:hover { text-decoration: underline; }

/* --- Équipe maintenant --- */
.eq-ligne {
  display: grid; align-items: center; gap: var(--s-4);
  grid-template-columns: 40px minmax(120px, 1.2fr) minmax(90px, .9fr) minmax(120px, 1.3fr) auto;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line-soft);
}
.eq-ligne:last-child { border-bottom: 0; }
.eq-identite { display: flex; flex-direction: column; min-width: 0; }
.eq-identite b { font-size: var(--fs-14); color: var(--tx-1); }
.eq-etat { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--tx-3); }
.eq-fonction, .eq-mission { font-size: var(--fs-13); color: var(--tx-2); }
.eq-mission { color: var(--tx-1); }
.eq-heure { font-size: var(--fs-13); color: var(--tx-3); }
@media (max-width: 760px) {
  .eq-ligne { grid-template-columns: 36px 1fr auto; row-gap: 2px; }
  .eq-fonction { grid-column: 2; font-size: var(--fs-12); color: var(--tx-3); }
  .eq-mission { grid-column: 2 / -1; }
}

/* --- CERCLE 25 : les cinq départements --- */
.c25-phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); }
.c25-phase {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: var(--s-4) var(--s-2);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-2); transition: all var(--t-fast);
}
.c25-phase:hover { border-color: var(--dep); }
.c25-nom { font-size: 10px; letter-spacing: .1em; font-weight: 600; color: var(--tx-2); text-align: center; }
.c25-n { font-size: var(--fs-28); font-weight: 700; color: var(--tx-1); line-height: 1; }
.c25-phase.is-active {
  border-color: var(--dep); background: color-mix(in srgb, var(--dep) 12%, var(--bg-2));
}
.c25-phase.is-active .c25-nom, .c25-phase.is-active .c25-n { color: var(--dep); }

.c25-ligne { position: relative; height: 16px; margin-top: var(--s-5); }
.c25-piste, .c25-progres {
  position: absolute; left: 6px; right: 6px; top: 50%; height: 2px;
  transform: translateY(-50%); border-radius: var(--r-full);
}
.c25-piste { background: var(--line); }
.c25-progres { right: auto; background: var(--brand); }
.c25-points { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; }
.c25-point {
  width: 12px; height: 12px; border-radius: var(--r-full);
  background: var(--bg-1); border: 2px solid var(--line);
}
.c25-point.atteint { border-color: var(--brand); background: var(--brand); }

/* --- Tuiles Aujourd'hui et À valider --- */
.db-tuiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); }
.db-tuile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: var(--s-5) var(--s-2); border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.db-tuile:hover { background: var(--bg-2); }
.db-tuile .ico { color: var(--brand); }
.db-tuile b { font-size: var(--fs-28); font-weight: 700; color: var(--tx-1); line-height: 1; }
.db-tuile .l { font-size: var(--fs-13); color: var(--tx-2); text-align: center; }
.db-tuile.vide .ico { color: var(--tx-3); opacity: .55; }
.db-tuile.vide b { color: var(--tx-3); }
@media (max-width: 520px) { .db-tuiles { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-3); } }

/* --- Indicateurs --- */
.db-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-5); }
.db-kpi { display: flex; flex-direction: column; gap: 4px; padding-right: var(--s-5); border-right: 1px solid var(--line-soft); }
.db-kpi:last-child { border-right: 0; }
.db-kpi .l { font-size: var(--fs-13); color: var(--tx-2); }
.db-kpi .v { font-size: var(--fs-28); font-weight: 700; color: var(--tx-1); overflow-wrap: anywhere; }
.db-kpi .v.rouge { color: var(--danger); }
.db-kpi .d { font-size: var(--fs-12); color: var(--tx-3); }
.db-kpi .d.up { color: var(--ok); }
.db-kpi .d.down { color: var(--danger); }
@media (max-width: 700px) { .db-kpi { border-right: 0; padding-right: 0; } }

/* --- Ordre mobile demandé --- */
@media (max-width: 1100px) {
  .dashboard { display: flex; flex-direction: column; }
  .dashboard .scene, .dashboard .db-priorite-vide { order: 1; }
  .dashboard .db-duo:nth-of-type(2) { order: 2; display: contents; }
  .dashboard .db-jour { order: 2; }
  .dashboard .db-valider { order: 3; }
  .dashboard .db-projets { order: 4; }
  .dashboard .db-cercle { order: 5; }
  .dashboard .db-equipe { order: 6; }
  .dashboard .db-indicateurs { order: 7; }
  .dashboard .db-duo { display: contents; }
}
.db-cercle .panel-body { display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); }
.db-cercle .c25-ligne { margin-top: 0; }
/* Les deux panneaux du haut se calent sur la même hauteur sans laisser
   de vide : le CERCLE 25 respire, il ne flotte pas. */
.db-duo > .db-cercle > .panel-body { padding-top: var(--s-6); padding-bottom: var(--s-6); }

@media (max-width: 760px) {
  /* Les cinq départements restent lisibles : on les fait défiler
     plutôt que de les écraser. */
  .c25-phases { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .c25-ligne { display: none; }
  /* L'heure reste sur la ligne du nom. */
  .eq-heure { grid-column: 3; grid-row: 1; }
  .eq-ligne { row-gap: 0; }
}

/* Les colonnes de projets défilent sans être coupées : la dernière
   reste atteignable, et l'on voit qu'il y en a d'autres. */
.board { scroll-snap-type: x mandatory; padding-right: var(--s-5); }
.board-col { scroll-snap-align: start; flex: 0 0 260px; }
.board-col-body .voie-carte { background: var(--bg-2); border: 1px solid var(--line-soft);
  padding: var(--s-2); border-radius: var(--r-md); }
@media (max-width: 700px) { .board-col { flex: 0 0 78%; } }

/* ---- Écran de connexion : logo, et l'entrée démonstration ---- */
.auth-logo { height: 44px; width: auto; display: block; margin-bottom: var(--s-5); }
.separateur {
  display: flex; align-items: center; gap: var(--s-3);
  margin: var(--s-5) 0 var(--s-4); color: var(--tx-3); font-size: var(--fs-12);
}
.separateur::before, .separateur::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.btn-demo {
  border: 1px solid var(--brand-line); color: var(--brand);
  background: var(--brand-soft); font-weight: 600; letter-spacing: .04em;
}
.btn-demo:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); border-color: var(--brand); }

/* ---- Badge du mode démonstration : discret, mais jamais caché ---- */
.badge-demo {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  border: 1px solid var(--brand-line); color: var(--brand);
  font-size: 10px; font-weight: 700; letter-spacing: .12em; white-space: nowrap;
}
.badge-demo .point {
  width: 6px; height: 6px; border-radius: var(--r-full); background: var(--brand);
}
@media (max-width: 700px) { .badge-demo span:not(.point) { display: none; } }

/* ==================== GALERIE DE PROJETS ====================
   Grandes cartes : la couverture d'abord, le texte ensuite. */
.galerie {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.gal-carte {
  display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.gal-carte:hover {
  transform: translateY(-3px); border-color: var(--dep);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.9);
}
.gal-visuel { position: relative; aspect-ratio: 16/9; }
.gal-visuel .affiche { height: 100%; border-radius: 0; }
.gal-phase {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-full);
  background: rgba(7,7,8,.8); backdrop-filter: blur(8px);
  font-size: var(--fs-12); font-weight: 600; color: var(--tx-1);
}
.gal-alerte {
  position: absolute; right: 10px; top: 10px;
  padding: 4px 9px; border-radius: var(--r-full);
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.gal-alerte.doux { background: var(--warn); color: var(--brand-tx); }
.gal-corps { display: flex; flex-direction: column; padding: var(--s-4) var(--s-5) var(--s-5); min-width: 0; }
.gal-titre { font-size: var(--fs-16); color: var(--tx-1); }
.gal-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-top: var(--s-3); font-size: var(--fs-12); color: var(--tx-2); min-width: 0;
}
.gal-meta .rouge { color: var(--danger); }
.gal-action { font-size: var(--fs-13); font-weight: 600; color: var(--dep); margin-top: var(--s-3); }
@media (max-width: 520px) { .galerie { grid-template-columns: 1fr; } }

/* ---- Ligne clé : cinq réponses avant les onglets ---- */
.ligne-cle {
  display: grid; gap: var(--s-4); margin-top: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: var(--s-4) var(--s-5);
  background: var(--bg-1); border: 1px solid var(--line);
  border-left: 3px solid var(--sig, var(--brand));
  border-radius: var(--r-md);
}
.cle-bloc { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cle-bloc .l { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.cle-bloc .v { font-size: var(--fs-14); font-weight: 600; color: var(--tx-1); }
.cle-bloc.alerte .v { color: var(--danger); }
.cle-bloc.attente .v { color: var(--warn); }

/* ---- Onglets du dossier ---- */
.onglets-projet {
  display: flex; gap: var(--s-1); margin-top: var(--s-4);
  border-bottom: 1px solid var(--line); overflow-x: auto;
}
.onglet {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px var(--s-4); white-space: nowrap;
  color: var(--tx-2); font-size: var(--fs-14); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.onglet:hover { color: var(--tx-1); }
.onglet.is-on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.onglet-n {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full);
  background: var(--bg-3); color: var(--tx-2);
  font-size: 10px; font-weight: 700; display: inline-grid; place-items: center;
}
.onglet.is-on .onglet-n { background: var(--brand-soft); color: var(--brand); }
.auth-logo { height: 40px; max-width: 220px; object-fit: contain; object-position: left; }

/* ======================= AGENDA =======================
   Une vraie grille : les heures descendent, les jours traversent.
   L'objectif est qu'un regard suffise. */
.agenda-titre { font-size: var(--fs-20); text-transform: capitalize; }
.agenda-grille { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-4); align-items: start; }
@media (max-width: 1180px) { .agenda-grille { grid-template-columns: 1fr; } }
.agenda-zone, .agenda-cote { min-width: 0; }
.agenda-cote { display: flex; flex-direction: column; gap: var(--s-4); }

.ag-panneau { overflow: hidden; }
.ag-grille { display: flex; overflow-x: auto; }
.ag-heures { flex: none; width: 62px; border-right: 1px solid var(--line); }
.ag-coin { height: 54px; border-bottom: 1px solid var(--line); }
.ag-heure {
  position: relative; border-bottom: 1px solid var(--line-soft);
  font-size: 10px; color: var(--tx-3); font-family: var(--f-mono);
}
.ag-heure span { position: absolute; top: -6px; right: 8px; background: var(--bg-1); padding: 0 2px; }

/* Les sept jours doivent tenir sans défilement horizontal sur un
   écran ordinaire : la colonne se réduit avant de déborder. */
.ag-col { flex: 1 1 0; min-width: 92px; border-right: 1px solid var(--line-soft); }
@media (max-width: 1100px) { .ag-col { min-width: 118px; } }
.ag-col:last-child { border-right: 0; }
.ag-col.auj { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.ag-col-tete {
  height: 54px; display: flex; align-items: center; gap: 7px; padding: 0 var(--s-3);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg-1); z-index: 2;
}
.ag-col-tete .j { font-size: var(--fs-12); color: var(--tx-3); text-transform: uppercase; letter-spacing: .06em; }
.ag-col-tete .n { font-size: var(--fs-16); color: var(--tx-1); }
.ag-col.auj .ag-col-tete .n { color: var(--brand); }
.ag-col-tete .c {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full);
  background: var(--bg-3); color: var(--tx-2); font-size: 10px; font-weight: 700;
  display: inline-grid; place-items: center;
}

.ag-col-corps { position: relative; }
.ag-creneau { border-bottom: 1px solid var(--line-soft); transition: background var(--t-fast); }
.ag-creneau:hover { background: var(--bg-2); cursor: pointer; }

.ag-event {
  position: absolute; z-index: 1; overflow: hidden; text-align: left;
  padding: 5px 7px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--dep) 22%, var(--bg-1));
  border: 1px solid color-mix(in srgb, var(--dep) 55%, transparent);
  border-left: 3px solid var(--dep);
  transition: transform var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast);
}
.ag-event:hover { filter: brightness(1.15); box-shadow: 0 6px 18px -10px rgba(0,0,0,.9); z-index: 3; }
.ag-event.previsionnel { border-style: dashed; opacity: .82; }
.ag-event-h { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--tx-2); }
.ag-event-t {
  display: block; font-size: var(--fs-12); font-weight: 600; color: var(--tx-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ag-maintenant {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 4;
}
.ag-maintenant::before {
  content: ""; position: absolute; left: -4px; top: -3px;
  width: 8px; height: 8px; border-radius: var(--r-full); background: var(--danger);
}
.ag-hors-plage { position: absolute; inset: 0 4px auto 4px; z-index: 2; display: flex; flex-wrap: wrap; gap: 3px; padding-top: 3px; }
.ag-pastille {
  padding: 3px 7px; border-radius: var(--r-full); font-size: 10px;
  background: color-mix(in srgb, var(--dep) 25%, var(--bg-1));
  border: 1px solid color-mix(in srgb, var(--dep) 50%, transparent); color: var(--tx-1);
}

/* Vue mois */
.mois-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mois-case {
  min-height: 104px; padding: 7px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.mois-case.hors { background: none; border-color: transparent; }
.mois-case.auj { border-color: var(--brand); }
.mois-num { font-family: var(--f-mono); font-size: var(--fs-12); color: var(--tx-2); }
.mois-case.auj .mois-num { color: var(--brand); font-weight: 700; }
.mois-event {
  text-align: left; padding: 3px 6px; border-radius: 4px; font-size: 10px;
  background: color-mix(in srgb, var(--dep) 20%, transparent);
  border-left: 2px solid var(--dep); color: var(--tx-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mois-event:hover { background: color-mix(in srgb, var(--dep) 34%, transparent); }
.mois-event .mono { color: var(--tx-3); }

/* Mini-calendrier */
.mini-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-case {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: var(--r-sm); font-size: var(--fs-12); color: var(--tx-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.mini-case:hover { background: var(--bg-3); color: var(--tx-1); }
.mini-case.vide { pointer-events: none; }
.mini-case.auj { color: var(--brand); font-weight: 700; }
.mini-case.choisi { background: var(--brand-soft); color: var(--brand); }
.mini-point {
  position: absolute; bottom: 3px; width: 4px; height: 4px;
  border-radius: var(--r-full); background: var(--brand);
}

/* Segments de vue */
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 2px; }
.seg-btn {
  padding: 5px 13px; border-radius: calc(var(--r-md) - 3px);
  font-size: var(--fs-13); color: var(--tx-2); transition: background var(--t-fast), color var(--t-fast);
}
.seg-btn:hover { color: var(--tx-1); }
.seg-btn.is-on { background: var(--bg-4); color: var(--tx-1); font-weight: 600; }

/* ---- Code d'activation : six chiffres, lisibles ---- */
.code-otp {
  font-size: 26px; letter-spacing: .5em; text-align: center;
  padding-left: .5em; font-weight: 600;
}
.etape.hidden { display: none; }
