:root {
  --fond: #f4f5f9;
  --surface: #ffffff;
  --texte: #1b1e2b;
  --doux: #5d6275;
  --bord: #d9dce6;
  --accent: #2b3a8f;
  --accent-texte: #ffffff;
  --travail: #e3e8fb;
  --travail-texte: #1f2c78;
  --repos: #cdebc8;
  --repos-texte: #1d5a1a;
  --compensation: #e8f5e4;
  --compensation-texte: #2f6b2a;
  --reserve: #e4e4e8;
  --reserve-texte: #3d3f48;
  --perso: #f08c00;
  --change: #1e6fd9;
  --vacances: #f2c94c;
  --ferie: #e0679a;
  --erreur: #c62828;
  --rdv: #7b3fc4;
  --rdv-texte: #ffffff;
  --rayon: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #12141c;
    --surface: #1c1f2b;
    --texte: #e8e9f0;
    --doux: #a0a4b8;
    --bord: #33374a;
    --accent: #8c9cf0;
    --accent-texte: #12141c;
    --travail: #26305e;
    --travail-texte: #dfe4ff;
    --repos: #1f4a24;
    --repos-texte: #cdf0c8;
    --compensation: #22382a;
    --compensation-texte: #c3e6c0;
    --reserve: #30323d;
    --reserve-texte: #d6d7de;
    --perso: #ffa53a;
  --change: #6aa8ff;
    --vacances: #c9a227;
    --ferie: #d0588a;
    --erreur: #ff6b6b;
    --rdv: #c39bff;
    --rdv-texte: #12141c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --fond: #12141c;
  --surface: #1c1f2b;
  --texte: #e8e9f0;
  --doux: #a0a4b8;
  --bord: #33374a;
  --accent: #8c9cf0;
  --accent-texte: #12141c;
  --travail: #26305e;
  --travail-texte: #dfe4ff;
  --repos: #1f4a24;
  --repos-texte: #cdf0c8;
  --compensation: #22382a;
  --compensation-texte: #c3e6c0;
  --reserve: #30323d;
  --reserve-texte: #d6d7de;
  --perso: #ffa53a;
  --change: #6aa8ff;
  --vacances: #c9a227;
  --ferie: #d0588a;
  --erreur: #ff6b6b;
  --rdv: #c39bff;
  --rdv-texte: #12141c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--fond);
  color: var(--texte);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}

[hidden] { display: none !important; }

.barre {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: var(--accent); color: var(--accent-texte);
}
.barre h1 { margin: 0; font-size: 1.15rem; font-weight: 650; }
.barre .icone-btn { color: inherit; }

main { max-width: 640px; margin: 0 auto; padding: 16px; }

h2 { font-size: 1.1rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 16px 0 8px; }

.carte {
  background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 16px; margin-bottom: 16px;
}

label { display: block; margin-bottom: 12px; font-size: .9rem; color: var(--doux); }
input, select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; min-height: 44px;
  font: inherit; color: var(--texte); background: var(--fond);
  border: 1px solid var(--bord); border-radius: 8px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button, .bouton {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  font: inherit; font-weight: 550; color: var(--accent); background: transparent;
  border: 1px solid var(--bord); border-radius: 8px; cursor: pointer;
}
.bouton { margin: 0; color: var(--accent); }
button.principal { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
button:disabled { opacity: .5; }
.icone-btn { width: 44px; height: 44px; padding: 0; border: none; color: var(--texte); }
.icone-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.boutons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.coche { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--texte); }
.coche input { width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--accent); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.aide { color: var(--doux); font-size: .85rem; margin: 4px 0; }
details { margin-bottom: 12px; }
summary { cursor: pointer; color: var(--accent); padding: 8px 0; }
details form { padding-top: 8px; }
.erreur { color: var(--erreur); min-height: 1.2em; margin: 0 0 8px; font-size: .9rem; }

/* Calendrier */
.entete-mois { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; text-align: center; }
.entete-mois h2 { margin: 0; text-transform: capitalize; }
.entete-mois .aide { margin: 0; }

.jours-semaine, .grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.jours-semaine span { text-align: center; font-size: .75rem; color: var(--doux); padding: 4px 0; }

.case {
  position: relative; min-height: 64px; padding: 4px 3px 5px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 8px;
  color: var(--texte); font: inherit; font-weight: normal; cursor: pointer;
}
.case .num { font-size: .72rem; color: var(--doux); align-self: flex-start; line-height: 1; }
.case .lib { font-size: .92rem; font-weight: 650; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case .h { font-size: .66rem; line-height: 1.1; color: inherit; opacity: .85; white-space: pre; text-align: center; }
.case.vide { visibility: hidden; }
.case.hors { opacity: .4; }
.case.travail { background: var(--travail); color: var(--travail-texte); border-color: transparent; }
.case.repos { background: var(--repos); color: var(--repos-texte); border-color: transparent; }
.case.compensation { background: var(--compensation); color: var(--compensation-texte); border-color: transparent; }
.case.reserve { background: var(--reserve); color: var(--reserve-texte); border-color: transparent; }
.case.travail .num, .case.repos .num, .case.compensation .num, .case.reserve .num { color: inherit; opacity: .75; }
.case.vacances::before, .case.ferie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--vacances); }
.case.ferie::before { background: var(--ferie); }
/* Jour modifié par un changement noté sur le téléphone : en bleu */
.case.perso { box-shadow: inset 0 0 0 2px var(--change); }
/* Mes vacances (V), notées sur le téléphone : fond jaune */
.case.mesvacances { background: var(--vacances); color: #2e2400; border-color: transparent; }
.case.mesvacances .num { color: inherit; opacity: .75; }
.case.perso::after { content: ""; position: absolute; right: 4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--change); }
.case.aujourdhui .num { background: var(--accent); color: var(--accent-texte); opacity: 1; border-radius: 9px; padding: 2px 5px; }

/* Aujourd'hui / demain */
.carte-jour { display: grid; gap: 6px; margin: 0 0 10px; }
.carte-jour .rang { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--bord); border-left: 4px solid var(--bord); }
.carte-jour .rang.travail { border-left-color: var(--accent); }
.carte-jour .rang.encours { border-left-color: var(--change); box-shadow: inset 0 0 0 1px var(--change); }
.carte-jour .texte { flex: 1; min-width: 0; }
.carte-jour .quand { display: block; font-size: .78rem; color: var(--doux); text-transform: uppercase; letter-spacing: .03em; }
.carte-jour .quoi { display: block; font-weight: 700; font-size: 1.05rem; }
.carte-jour .heures { display: block; font-size: .88rem; color: var(--doux); font-variant-numeric: tabular-nums; }
.carte-jour .heures b { color: var(--change); font-weight: 650; }
.carte-jour .lieux { display: block; font-size: .85rem; margin-top: 1px; }
.carte-jour button { flex: none; min-height: 40px; padding: 0 12px; }

/* Recherche : mes prochaines dates */
.resultats button .mes-dates { color: var(--change); font-weight: 600; }
/* Tour d'un autre secteur que celui de mon roulement */
.resultats button .autre-secteur, .autre-secteur { color: var(--texte); font-weight: 600; }
/* ⚠️ jaune (emoji : triangle jaune sur tous les téléphones) à côté de la date, sans la transparence du numéro */
.case .num:has(.autre) { opacity: 1 !important; }
.case .num .autre { margin-left: 2px; font-size: .9rem; line-height: 1; }

/* Feuille du jour : étape en cours, sinon la prochaine */
.etape.actuelle, .etape.prochaine { position: relative; margin-top: 12px; border-color: var(--change); }
.etape.actuelle { box-shadow: 0 0 0 2px var(--change); }
.etape.prochaine { border-style: dashed; border-width: 2px; }
/* Pastille « En cours » / « Prochaine » posée sur le bord : ne touche pas à la grille de l'étape */
.etape.actuelle::after, .etape.prochaine::after { position: absolute; top: -10px; right: 10px; padding: 1px 8px; border-radius: 9px;
  font-size: .72rem; font-weight: 700; background: var(--change); color: var(--accent-texte); }
.etape.cherchee { position: relative; margin-top: 12px; box-shadow: 0 0 0 3px var(--perso); border-color: var(--perso); }
.etape.cherchee::after { position: absolute; top: -10px; right: 10px; padding: 1px 8px; border-radius: 9px; font-size: .72rem; font-weight: 700;
  background: var(--perso); color: #241400; content: "Course cherchée"; }
.etape.actuelle::after { content: "En cours"; }
.etape.prochaine::after { content: "Prochaine"; }

/* Saisie rapide du mois */
button.large-btn { width: 100%; margin: 8px 0 0; }
.saisie-jours { list-style: none; padding: 0; margin: 8px auto; display: grid; gap: 4px; }
.saisie-jours li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 2px 8px; align-items: center;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 8px; padding: 6px 8px; }
.saisie-jours li.weekend { background: color-mix(in srgb, var(--surface) 85%, var(--travail)); }
.saisie-jours .jour { font-weight: 650; font-size: .9rem; line-height: 1.2; }
.saisie-jours .jour small { display: block; font-weight: normal; color: var(--doux); font-size: .75rem; }
.saisie-jours input { width: 100%; box-sizing: border-box; min-height: 40px; }
.saisie-jours .info { grid-column: 2; font-size: .8rem; color: var(--doux); min-height: 1em; }
.saisie-jours .info.attention { color: var(--texte); font-weight: 600; }
.saisie-jours li.lu { border-color: var(--change); box-shadow: inset 3px 0 0 var(--change); }
.bouton.principal-clair { flex: 1; border-color: var(--accent); }
#photo-etat { font-weight: 600; }

/* Contrôle LDT du mois */
.ldt-mois { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 6px 8px 6px 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--bord); border-left: 4px solid var(--repos); }
.ldt-mois p { flex: 1; margin: 0; font-size: .9rem; }
.ldt-mois.avis { border-left-color: var(--vacances); }
.ldt-mois.grave { border-left-color: var(--erreur); }
.ldt-mois button { flex: none; min-height: 38px; }
.nouveautes.ldt .nouveaute { border-left-color: var(--vacances); }
.nouveautes.ldt .nouveaute.grave { border-left-color: var(--erreur); }
/* Récapitulatif de la vérification LDT : une ligne par règle */
.ldt-recap { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.ldt-recap li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--bord); border-left: 4px solid var(--repos); }
.ldt-recap li.avis { border-left-color: var(--vacances); }
.ldt-recap li.grave { border-left-color: var(--erreur); }
.ldt-recap li.neutre { border-left-color: var(--bord); color: var(--doux); }
.ldt-recap .symbole { flex: none; width: 1.4em; text-align: center; font-weight: 700; }
.ldt-recap li.grave .symbole { color: var(--erreur); }
.ldt-recap .regle { flex: 1; min-width: 0; font-size: .9rem; }
.ldt-recap small { color: var(--doux); }
#dlg-ldt h3 { font-size: 1rem; margin: 8px 0 6px; }

/* Comparer deux tours */
.entete-feuille h2 { flex: 1; }
button.compacte { min-height: 36px; padding: 0 12px; }
.deux-colonnes { display: flex; align-items: flex-end; gap: 8px; }
.deux-colonnes label { flex: 1; margin: 0; }
.comparaison { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.comparaison th, .comparaison td { padding: 6px 6px; border-bottom: 1px solid var(--bord); text-align: left; vertical-align: top; }
.comparaison thead th { font-size: 1rem; }
.comparaison tbody th { font-weight: 600; color: var(--doux); white-space: nowrap; }
.comparaison .ecart { color: var(--change); font-weight: 650; white-space: nowrap; }

/* Chercher un tour */
.recherche { margin: 0 0 10px; }
.recherche input { width: 100%; box-sizing: border-box; }
.resultats { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.resultats button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; min-height: 44px; text-align: left; }
.resultats button span { font-size: .85rem; color: var(--doux); font-variant-numeric: tabular-nums; }
.resultats .aide { padding: 4px 2px; margin: 0; }

.pied-calendrier { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 4px; }

.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 12px 0 0; font-size: .8rem; color: var(--doux); }
.legende li { display: flex; align-items: center; gap: 6px; }
.pastille { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.pastille.travail { background: var(--travail); border: 1px solid var(--travail-texte); }
.pastille.repos { background: var(--repos); }
.pastille.compensation { background: var(--compensation); border: 1px solid var(--repos); }
.pastille.reserve { background: var(--reserve); }
.pastille.perso { box-shadow: inset 0 0 0 2px var(--change); }
.pastille.mesvacances { background: var(--vacances); }
.trait { width: 14px; height: 4px; display: inline-block; border-radius: 2px; }
.trait.vacances { background: var(--vacances); }
.trait.ferie { background: var(--ferie); }

/* Détail du jour */
dialog {
  width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); margin: auto;
  padding: 16px; background: var(--surface); color: var(--texte);
  border: 1px solid var(--bord); border-radius: var(--rayon);
}
dialog::backdrop { background: rgb(0 0 0 / .45); }
dialog .fermer { float: right; margin: -8px -8px 0 0; }
dialog h2 { padding-right: 36px; text-transform: none; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.badges span { font-size: .78rem; padding: 3px 8px; border-radius: 10px; background: var(--fond); border: 1px solid var(--bord); color: var(--doux); }
.badges .vacances { border-color: var(--vacances); }
.badges .ferie { border-color: var(--ferie); }
.bloc { padding: 12px; border-radius: 8px; background: var(--fond); margin-bottom: 8px; }
.bloc .grand { font-size: 1.3rem; font-weight: 700; margin: 0; }
.bloc p { margin: 2px 0; }
.bloc.perso { border-left: 4px solid var(--change); }
.bloc .barre-officiel { text-decoration: line-through; opacity: .7; }

/* Officiel changé par la commission depuis la dernière fois (rouge lisible en clair et en sombre, texte blanc dessus) */
.bandeau { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 8px 8px 8px 12px; border-radius: 8px;
  border-left: 4px solid #d93025; background: var(--surface); border-top: 1px solid var(--bord); border-right: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.bandeau p { flex: 1; margin: 0; font-weight: 600; }
.case .modif { position: absolute; right: 3px; bottom: 3px; width: 15px; height: 15px; border-radius: 50%;
  background: #d93025; color: #fff; font-size: .65rem; font-weight: 800; line-height: 15px; text-align: center; }
.bloc .modifie { margin-top: 8px; padding: 6px 8px; border-radius: 6px; border-left: 3px solid #d93025; background: var(--surface); font-weight: 600; }
.nouveautes { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.nouveaute { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; min-height: 44px;
  text-align: left; border-left: 4px solid #d93025; }
.nouveaute span { font-size: .9rem; color: var(--doux); }

/* Feuille de service en plein écran */
dialog.plein { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: none; border-radius: 0; }
dialog.plein[open] { display: flex; flex-direction: column; }
.entete-feuille { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 4px) 8px 4px; border-bottom: 1px solid var(--bord); }
.entete-feuille h2 { margin: 0; padding: 0; }
.feuille { flex: 1; overflow-y: auto; padding: 12px 16px calc(env(safe-area-inset-bottom) + 24px); background: var(--fond); }
.feuille > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.feuille .infos { margin: 0 auto 10px; color: var(--doux); font-size: .9rem; }
.feuille .infos b { color: var(--texte); }
.feuille .infos .hors-ligne { color: var(--perso); }
.resume-tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.resume-tour div { background: var(--surface); border: 1px solid var(--bord); border-radius: 8px; padding: 6px 8px; }
.resume-tour span { display: block; font-size: .72rem; color: var(--doux); }
.resume-tour b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.resume-tour .large { grid-column: 1 / -1; }
.voiture { font-size: .8rem; font-weight: 650; color: var(--doux); text-transform: uppercase; letter-spacing: .04em; margin: 14px auto 6px; }
.etapes { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.etape {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 8px; align-items: start;
  background: var(--surface); border: 1px solid var(--bord); border-radius: 8px; padding: 8px 10px; margin-bottom: 4px;
}
.etape .heures { font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1.5; }
.etape .heures span { display: block; }
.etape .heures span + span { color: var(--doux); font-weight: normal; }
.etape .ligne { display: inline-block; min-width: 2.6rem; margin-top: 3px; text-align: center; font-weight: 700; font-size: .8rem; line-height: 1.3; border-radius: 5px; padding: 1px 4px; }
.etape .lieux { line-height: 1.5; min-width: 0; }
.etape .lieux span { display: flex; justify-content: space-between; gap: 6px; }
.etape .lieux span + span { color: var(--doux); }
.etape .quai { flex: none; font-size: .78rem; font-weight: 650; padding: 0 5px; border-radius: 4px; border: 1px solid var(--bord); align-self: center; }
/* Chaque heure sur la même rangée que son arrêt, même si un nom d'arrêt passe sur deux lignes :
   rangée 1 remarque, 2 départ, 3 arrivée, 4 numéro de ligne / course */
.etape .heures, .etape .lieux { display: contents; }
.etape .heures > *, .etape .lieux > * { grid-row: 4; }
.etape .heures > * { grid-column: 1; }
.etape .lieux > * { grid-column: 2; }
.etape .heures > :nth-child(1), .etape .lieux > :nth-child(1) { grid-row: 2; }
.etape .heures > :nth-child(2), .etape .lieux > :nth-child(2) { grid-row: 3; }
.etape .lieux > .note { grid-row: 4; }
.etape > .note.remarque { grid-row: 1; }
.etape .note { font-size: .8rem; color: var(--doux); margin-top: 4px; line-height: 1.3; }
/* Remarque de la feuille (ex. « S'annonce au CGT ») : encadrée, lisible d'un coup d'œil */
.etape .note.remarque { color: inherit; font-size: .88rem; font-weight: 600; background: color-mix(in srgb, var(--perso) 16%, transparent);
  border-left: 3px solid var(--perso); border-radius: 4px; padding: 3px 7px; }
/* placée en tête de l'étape, sur toute la largeur, avant les heures */
.etape > .note.remarque { grid-column: 1 / -1; margin: 0 0 6px; }
.etape .note.remarque::before { content: "⚠ "; color: var(--perso); }
.etape.tache { background: var(--reserve); border-color: transparent; color: var(--reserve-texte); }
.etape.tache .activite { font-weight: 650; }

.message {
  position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 16px); z-index: 20;
  max-width: 560px; margin: 0 auto; padding: 12px 16px; border-radius: 8px;
  background: var(--texte); color: var(--surface); font-size: .9rem;
}

/* Contrôle LDT d'un changement noté sur le téléphone */
.controle { margin: 10px 0; padding: 8px 10px; border-radius: 8px; background: var(--fond); border-left: 4px solid var(--perso); font-size: .9rem; }
.controle.grave { border-left-color: var(--erreur); }
.controle.ok { border-left-color: var(--repos-texte); }
.carte h3 { font-size: 1rem; margin: 16px 0 4px; }

/* Repos moyen des 28 derniers jours, sous « Saisir le mois » */
.repos-28 { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--surface); border-left: 4px solid var(--repos-texte); font-size: .92rem; }
.repos-28.court { border-left-color: var(--erreur); }

/* Avertissement après la connexion */
.avertissement { margin: 8px 0 4px; padding-left: 20px; }
.avertissement li { margin: 8px 0; line-height: 1.4; }

/* Mot de passe oublié, comptes (administrateur), mot de passe provisoire */
.oubli { margin: 14px 0 0; font-size: .92rem; }
.oubli p { margin: 6px 0; }
#form-provisoire button + button { margin-top: 8px; }
.liste-comptes { list-style: none; margin: 12px 0 0; padding: 0; }
.liste-comptes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px;
  padding: 10px 0; border-top: 1px solid var(--bord); }
.liste-comptes li > div { min-width: 0; overflow-wrap: anywhere; }
.mdp-provisoire { font: 600 1.35rem/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; text-align: center;
  padding: 12px; margin: 8px 0; border-radius: 8px; background: var(--fond); border: 1px solid var(--bord); user-select: all; overflow-wrap: anywhere; }

/* Mes rendez-vous : violet ; cerclé de rouge s'il tombe pendant le service */
.case .rdv { position: absolute; left: 3px; bottom: 3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--rdv); color: var(--rdv-texte); font-size: .62rem; font-weight: 800; line-height: 15px; text-align: center; }
.case .rdv:empty { min-width: 0; width: 9px; height: 9px; padding: 0; bottom: 5px; left: 5px; }
.case .rdv.conflit { box-shadow: 0 0 0 2px var(--erreur); }
.point-rdv { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--rdv); margin: 0 2px; }
.bloc.rdv { border-left: 4px solid var(--rdv); }
.rdv-ligne { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; padding: 8px 10px;
  min-height: 44px; text-align: left; border-left: 4px solid var(--rdv); }
.rdv-ligne .rdv-titre { font-weight: 650; }
.rdv-ligne .rdv-info, .rdv-ligne .rdv-situation { font-size: .85rem; color: var(--doux); }
.rdv-ligne.conflit { border-left-color: var(--erreur); }
.rdv-ligne.conflit .rdv-situation { color: var(--erreur); font-weight: 600; }
.carte-jour .rang.rdv { border-left-color: var(--rdv); }
.carte-jour .rang.rdv.conflit { border-left-color: var(--erreur); }
.bandeau button { flex: none; }
.controle p { margin: 4px 0; }
.controle .grave { color: var(--erreur); font-weight: 650; }