/* Charte reprise des présentations du Département d'Éducation (UCLy) */
:root {
  --rouge: #E44C30;          /* marques : triangle, filets */
  --rouge-texte: #B8361C;    /* titres et liens (contraste AA) */
  --rouge-bouton: #C73B22;
  --rouge-clair: #FCE9E5;
  --sarcelle: #11ACAE;       /* disponibilités */
  --sarcelle-texte: #0B7C7E;
  --sarcelle-clair: #E2F4F4;
  --encre: #262626;
  --gris: #6B6B6B;
  --trait: #E6E3E1;
  --fond: #F7F6F5;
  --carte: #fff;
  --attente: #8A5A0B;
  --attente-clair: #FBF0DC;
  --police: Calibri, Carlito, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 var(--police); background: var(--fond); color: var(--encre); }
a { color: var(--rouge-texte); }
:focus-visible { outline: 3px solid var(--sarcelle); outline-offset: 2px; }

/* Bandeau */
.bandeau { background: #fff; border-bottom: 2px solid var(--rouge); }
.bandeau-int { max-width: 1100px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.bandeau img { height: 44px; display: block; }
.bandeau .formation { color: var(--gris); font-size: 15px; line-height: 1.25; border-left: 1px solid var(--trait); padding-left: 18px; }
.bandeau .formation b { color: var(--encre); font-weight: 600; display: block; }
.bandeau .proto { margin-left: auto; font-size: 13px; color: var(--gris); border: 1px dashed var(--trait); border-radius: 4px; padding: 3px 8px; }

.page { max-width: 1100px; margin: 0 auto; padding: 0 20px 80px; }
.etroit { max-width: 720px; }

/* Titre de page : triangle rouge accroché au filet, comme sur les diapositives */
.titre { position: relative; padding: 34px 0 10px 64px; margin-bottom: 8px; border-bottom: 2px solid var(--rouge); }
.titre::before { content: ""; position: absolute; left: 0; top: 0; bottom: -16px; width: 46px;
  background: var(--rouge); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.titre h1 { font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--rouge-texte); margin: 0; }
.sous { color: var(--gris); margin: 20px 0 22px 64px; max-width: 62ch; }
h2 { font-size: 19px; font-weight: 700; margin: 0 0 12px; color: var(--encre); }

.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 6px; padding: 20px; margin-bottom: 16px; }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--rouge-bouton);
  background: var(--rouge-bouton); color: #fff; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--rouge-texte); border-color: var(--rouge-texte); }
.btn.second { background: #fff; color: var(--rouge-texte); border-color: #E5B8AE; font-weight: 600; }
.btn.second:hover { background: var(--rouge-clair); }
.btn.petit { padding: 5px 11px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
input[type=text], input[type=email], input[type=password], textarea { font: inherit; padding: 8px 10px; border: 1px solid #D6D2CF; border-radius: 4px; width: 100%; background: #fff; }
textarea { min-height: 80px; }
.aide { color: var(--gris); font-size: 14px; }
.pastille { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 9px; border-radius: 999px; }
.pastille.ok { background: var(--sarcelle-clair); color: var(--sarcelle-texte); }
.pastille.attente { background: var(--attente-clair); color: var(--attente); }
.erreur { color: var(--rouge-texte); font-weight: 600; }

/* Tableau de bord */
.chiffres { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.chiffre { background: var(--carte); border: 1px solid var(--trait); border-radius: 6px; padding: 14px 18px; min-width: 190px; }
.chiffre b { display: block; font-size: 28px; line-height: 1.1; color: var(--encre); }
.chiffre span { color: var(--gris); font-size: 14px; }
.barre-prog { height: 6px; background: var(--trait); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.barre-prog div { height: 100%; background: var(--sarcelle); }
table.liste { width: 100%; border-collapse: collapse; font-size: 15px; }
table.liste th { text-align: left; color: var(--gris); font-weight: 400; font-size: 14px; padding: 8px 6px; border-bottom: 2px solid var(--trait); }
table.liste td { padding: 12px 6px; border-bottom: 1px solid var(--trait); vertical-align: top; }
.cours-mini { font-size: 14px; color: var(--gris); }
.cours-mini span { white-space: nowrap; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.calcul { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spin { width: 18px; height: 18px; border: 3px solid var(--rouge-clair); border-top-color: var(--rouge); border-radius: 50%; animation: t 1s linear infinite; }
@keyframes t { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.mail-form { display: flex; gap: 4px; margin-top: 6px; max-width: 280px; }
.mail-form input { padding: 4px 8px; font-size: 14px; }

/* Formulaire intervenant */
.cours-liste { list-style: none; padding: 0; margin: 0 0 12px; }
.cours-liste li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--trait); }
.cours-liste li .detail { color: var(--gris); font-size: 14px; }
.cours-liste li .h { font-weight: 700; white-space: nowrap; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--sarcelle-texte); }
.etape { display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--rouge); color: #fff; font-size: 14px; margin-right: 8px; vertical-align: 1px; }
.grille-dispo { display: grid; grid-template-columns: 44px repeat(5, 1fr); user-select: none; -webkit-user-select: none; }
.grille-dispo .jour { text-align: center; font-weight: 700; font-size: 14px; padding: 4px 0; }
.grille-dispo .raccourcis { display: flex; flex-direction: column; gap: 3px; padding: 0 2px 6px; }
.grille-dispo .raccourcis button { font: inherit; font-size: 12px; padding: 3px 0; border: 1px solid var(--trait); border-radius: 4px; background: #fff; cursor: pointer; color: var(--sarcelle-texte); }
.grille-dispo .raccourcis button:hover { background: var(--sarcelle-clair); }
.grille-dispo .heure { font-size: 12px; color: var(--gris); text-align: right; padding-right: 6px; height: 22px; line-height: 22px; transform: translateY(-11px); }
.grille-dispo .case { height: 22px; border-left: 1px solid var(--trait); border-top: 1px solid #F1EFED; cursor: pointer; background: #fff; }
.grille-dispo .case.pleine { border-top-color: var(--trait); }
.grille-dispo .case.on { background: var(--sarcelle); border-top-color: rgba(255,255,255,.35); }
.grille-dispo .case.dej { background: repeating-linear-gradient(45deg,#F4F2F0,#F4F2F0 5px,#ECE9E6 5px,#ECE9E6 10px); cursor: default; }
.legende { display: flex; gap: 14px; font-size: 13px; color: var(--gris); margin-top: 10px; flex-wrap: wrap; }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -1px; margin-right: 4px; }
.puces { display: flex; flex-wrap: wrap; gap: 6px; }
.puces button { font: inherit; font-size: 14px; padding: 6px 11px; border: 1px solid var(--trait); border-radius: 999px; background: #fff; cursor: pointer; }
.puces button.on { background: var(--rouge-bouton); border-color: var(--rouge-bouton); color: #fff; text-decoration: line-through; }
.choix { display: flex; flex-wrap: wrap; gap: 6px; }
.choix label { border: 1px solid var(--trait); border-radius: 4px; padding: 8px 14px; cursor: pointer; background: #fff; }
.choix input { margin-right: 6px; accent-color: var(--rouge-bouton); }
.choix label:has(input:checked) { border-color: var(--rouge-bouton); background: var(--rouge-clair); font-weight: 600; }
.envoi { position: sticky; bottom: 0; background: linear-gradient(rgba(247,246,245,0), var(--fond) 35%); padding: 22px 0 14px; text-align: center; }
.envoi .btn { width: 100%; max-width: 420px; font-size: 17px; padding: 14px; }
.merci { text-align: center; padding: 44px 18px; }
.merci .rond { width: 58px; height: 58px; border-radius: 50%; background: var(--sarcelle-clair); color: var(--sarcelle-texte); font-size: 30px; line-height: 58px; margin: 0 auto 12px; }
.merci h2 { font-size: 26px; color: var(--rouge-texte); }

.pied { max-width: 1100px; margin: 0 auto; padding: 0 20px 30px; color: var(--gris); font-size: 13px; }

@media (max-width: 600px) {
  .bandeau img { height: 34px; }
  .bandeau .formation { display: none; }
  .page { padding: 0 12px 80px; }
  .titre { padding: 26px 0 8px 46px; }
  .titre::before { width: 34px; }
  .titre h1 { font-size: 24px; }
  .sous { margin-left: 0; }
  .carte { padding: 14px; }
  table.liste .masquer { display: none; }
}

/* ---------- Espace coordination ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--trait); }
.nav-int { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a.onglet { padding: 12px 12px 10px; color: var(--encre); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 600; }
.nav a.onglet:hover { color: var(--rouge-texte); }
.nav a.onglet.actif { color: var(--rouge-texte); border-bottom-color: var(--rouge); }
.nav .droite { margin-left: auto; display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.filtres { max-width: 1100px; margin: 0 auto; padding: 14px 20px 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--gris); font-size: 15px; }
.filtres select { font: inherit; padding: 5px 8px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; color: var(--encre); }
.flash { max-width: 1100px; margin: 12px auto 0; padding: 0 20px; }
.flash div { background: var(--sarcelle-clair); color: var(--sarcelle-texte); border-radius: 4px; padding: 10px 14px; font-weight: 600; }
.alerte-maj { background: var(--attente-clair); color: var(--attente); border-radius: 4px; padding: 10px 14px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 16px; }
.grille-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 16px; }
.grille-2 .carte, .grille-3 .carte { margin-bottom: 0; }
.gros { font-size: 34px; font-weight: 700; line-height: 1.1; }
.gros small { font-size: 17px; color: var(--gris); font-weight: 400; }
.a-faire { list-style: none; padding: 0; margin: 0; }
.a-faire li { padding: 10px 0; border-bottom: 1px solid var(--trait); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.a-faire li:last-child { border-bottom: 0; }
.a-faire .rien { color: var(--sarcelle-texte); font-weight: 600; }
.site-ligne { display: grid; grid-template-columns: 110px 1fr 70px; gap: 12px; align-items: center; padding: 6px 0; }
.site-ligne .barre-prog { margin: 0; height: 8px; }
.site-ligne b { text-align: right; }
.vide { color: var(--gris); font-style: italic; }

a.carte-lien { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.carte-lien:hover { border-color: var(--rouge); }
.carte-lien h3 { margin: 0 0 2px; font-size: 19px; color: var(--encre); }
.carte-lien .site { color: var(--gris); font-size: 14px; }
.jauge { display: flex; justify-content: space-between; font-size: 14px; color: var(--gris); margin-top: 12px; }

table.cours td input, table.cours td select { font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; }
table.cours td input[type=number] { width: 58px; }
.ligne-edit { display: none; }
.ligne-edit.ouverte { display: table-row; background: #FBFAF9; }
.form-cours { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; padding: 6px 0; }
.form-cours label { font-size: 13px; color: var(--gris); display: flex; flex-direction: column; gap: 3px; }
.form-cours label.large { grid-column: span 2; }
.form-cours input, .form-cours select { font: inherit; padding: 6px 8px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; color: var(--encre); }
.ok-txt { color: var(--sarcelle-texte); font-weight: 600; }
.ko-txt { color: var(--rouge-texte); font-weight: 600; }
.lien-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--rouge-texte); cursor: pointer; text-decoration: underline; }

.recherche { max-width: 320px; margin-bottom: 12px; }
.fiche-entete { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; }
.champs label { font-size: 13px; color: var(--gris); display: flex; flex-direction: column; gap: 3px; }
.mini-grille { display: grid; grid-template-columns: 38px repeat(5, 1fr); font-size: 12px; max-width: 420px; }
.mini-grille div { height: 10px; border-left: 1px solid #fff; }
.mini-grille .on { background: var(--sarcelle); }
.mini-grille .off { background: #F1EFED; }
.mini-grille .dj { background: #fff; }
.mini-grille .lab { height: auto; color: var(--gris); text-align: center; padding-bottom: 3px; }
.mini-grille .h { height: 10px; line-height: 10px; color: var(--gris); font-size: 10px; text-align: right; padding-right: 4px; }
.semaines-mini { display: flex; flex-wrap: wrap; gap: 4px; }
.semaines-mini span { font-size: 13px; padding: 3px 8px; border-radius: 999px; background: #F1EFED; color: var(--gris); }
.semaines-mini span.non { background: var(--rouge-clair); color: var(--rouge-texte); text-decoration: line-through; }
.semaine-perso { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.semaine-perso .j { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--trait); padding-bottom: 4px; margin-bottom: 6px; }
.semaine-perso .s { background: var(--rouge-clair); border-left: 3px solid var(--rouge); border-radius: 3px; padding: 6px 8px; font-size: 13px; margin-bottom: 6px; }
.semaine-perso .s.Lyon { background: #EEF0F7; border-left-color: #5A6AA8; }
.semaine-perso .s.visio { background: var(--sarcelle-clair); border-left-color: var(--sarcelle); }
.semaine-perso .s b { display: block; }
.puces-nav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.puces-nav a { font-size: 13px; padding: 4px 9px; border: 1px solid var(--trait); border-radius: 999px; text-decoration: none; color: var(--encre); background: #fff; }
.puces-nav a.actif { background: var(--rouge-bouton); border-color: var(--rouge-bouton); color: #fff; }

.reglages { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 20px; }
.reglages label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; }
.reglages label span { font-weight: 400; font-size: 13px; color: var(--gris); }
.reglages input, .reglages select { font: inherit; padding: 7px 9px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; }
table.cal { border-collapse: collapse; font-size: 14px; width: 100%; }
table.cal th, table.cal td { padding: 6px 8px; border-bottom: 1px solid var(--trait); text-align: center; }
table.cal th:first-child, table.cal td:first-child { text-align: left; }
table.cal tr.vac td { color: var(--gris); background: #FAF9F8; }
table.cal input { width: 18px; height: 18px; accent-color: var(--rouge-bouton); }
.depot { display: block; border: 2px dashed #D6D2CF; border-radius: 6px; padding: 26px; text-align: center; color: var(--gris); cursor: pointer; transition: background .15s, border-color .15s; }
.depot.survol { background: var(--sarcelle-clair); border-color: var(--sarcelle); color: var(--sarcelle-texte); }
.depot b { color: var(--encre); }
.astuce { font-size: 14px; color: var(--gris); border-left: 3px solid var(--sarcelle); padding: 4px 0 4px 10px; margin: 10px 0; }
@media (max-width: 600px) {
  .semaine-perso { grid-template-columns: 1fr; }
  .form-cours label.large { grid-column: auto; }
}

/* ---------- Planning retenu ---------- */
.alerte-carte { border-color: #EBB9AE; background: #FFFBFA; }
.alerte-carte h2 { color: var(--rouge-texte); }
.replacer { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.replacer input[type=date] { font: inherit; padding: 5px 8px; border: 1px solid #D6D2CF; border-radius: 4px; }
.barre-vue { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.barre-vue select { font: inherit; padding: 5px 8px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; }
.puces-nav a.alerte { border-color: var(--rouge); color: var(--rouge-texte); }
.puces-nav a.alerte.actif { color: #fff; }
.agenda { display: grid; grid-template-columns: 40px repeat(5, 1fr); gap: 0 6px; }
.ag-heures { position: relative; height: var(--haut); margin-top: 44px; }
.ag-heures span { position: absolute; right: 4px; font-size: 12px; color: var(--gris); transform: translateY(-7px); }
.ag-tete { height: 44px; text-align: center; font-weight: 700; font-size: 15px; }
.ag-tete small { display: block; font-weight: 400; color: var(--gris); font-size: 13px; }
.ag-col { position: relative; height: var(--haut); border-left: 1px solid #EFEDEA; background: repeating-linear-gradient(#fff 0 59px, #F5F3F1 59px 60px); }
.ag-dej { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg,#F4F2F0,#F4F2F0 5px,#ECE9E6 5px,#ECE9E6 10px); }
.ag-ferie { position: absolute; inset: 0; background: #F1EFED; display: flex; align-items: center; justify-content: center; color: var(--gris); }
.ag-bloc { position: absolute; left: 3px; right: 3px; text-align: left; font: inherit; font-size: 13px; line-height: 1.3; padding: 6px 8px;
  border: 0; border-left: 3px solid var(--bord); border-radius: 5px; background: var(--fond-bloc); overflow: hidden; color: var(--encre); }
button.ag-bloc { cursor: pointer; }
button.ag-bloc:hover { box-shadow: 0 0 0 2px var(--bord) inset; }
.ag-bloc b { display: block; font-size: 13.5px; font-weight: 700; }
.ag-bloc span { display: block; color: #555; }
.ag-bloc .qui { color: var(--gris); }
.t-rouge { --fond-bloc: #FDEDEA; --bord: #E44C30; }
.t-sarcelle { --fond-bloc: #E4F4F4; --bord: #11ACAE; }
.t-bleu { --fond-bloc: #ECEFF8; --bord: #5A6AA8; }
.t-sable { --fond-bloc: #F6F0E4; --bord: #C29A4E; }
.t-vert { --fond-bloc: #EAF3E6; --bord: #6A9A55; }
.t-mauve { --fond-bloc: #F3ECF5; --bord: #8C68A0; }
.t-gris { --fond-bloc: #F1F0EE; --bord: #8A8580; }
.ag-bloc.verrou::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--bord); }
.ag-bloc.conflit { background: #fff; outline: 2px dashed var(--rouge-texte); outline-offset: -2px; }
.ag-bloc .tag { font-style: normal; font-size: 11px; display: inline-block; margin-top: 3px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--gris); }
.ag-bloc .tag.rouge { background: var(--rouge-texte); color: #fff; }
.panneau { border: 1px solid var(--trait); border-radius: 8px; padding: 22px 24px; width: min(560px, 94vw); box-shadow: 0 10px 40px rgba(0,0,0,.18); }
.panneau::backdrop { background: rgba(38,38,38,.35); }
.panneau h2 { color: var(--rouge-texte); padding-right: 30px; }
.panneau h3 { font-size: 15px; margin: 16px 0 8px; }
.panneau .fermer { position: absolute; right: 12px; top: 8px; }
.panneau .fermer button { font-size: 26px; background: none; border: 0; cursor: pointer; color: var(--gris); }
.liste-pb { list-style: none; padding: 0; margin: 10px 0 0; }
.liste-pb li { padding: 6px 10px; border-radius: 4px; margin-bottom: 4px; font-size: 14px; }
.liste-pb li.bloquant { background: var(--rouge-clair); color: var(--rouge-texte); }
.liste-pb li.attention { background: var(--attente-clair); color: var(--attente); }
.liste-pb li.ok { background: var(--sarcelle-clair); color: var(--sarcelle-texte); font-weight: 600; }
@media (max-width: 700px) { .agenda { grid-template-columns: 34px repeat(5, minmax(90px, 1fr)); overflow-x: auto; } }

/* ---------- Propositions et navigation ---------- */
.propositions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 18px; border-bottom: 1px solid var(--trait); }
.propositions a { padding: 10px 14px 12px; text-decoration: none; color: var(--encre); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.propositions a b { display: block; font-size: 17px; }
.propositions a span { display: block; color: var(--gris); font-size: 14px; }
.propositions a:hover b { color: var(--rouge-texte); }
.propositions a.actif { border-bottom-color: var(--rouge); }
.propositions a.actif b { color: var(--rouge-texte); }
.barre-vue { justify-content: space-between; }
.barre-vue .voir select { font-weight: 700; font-size: 17px; border: 0; background: transparent; padding: 4px 2px; color: var(--encre); cursor: pointer; }
.nav-semaine { display: flex; align-items: center; gap: 6px; }
.nav-semaine select { font: inherit; padding: 6px 10px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; }
.nav-semaine .fleche { width: 34px; height: 34px; line-height: 31px; text-align: center; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; text-decoration: none; color: var(--encre); font-size: 22px; }
.nav-semaine .fleche:hover { border-color: var(--rouge); color: var(--rouge-texte); }
.nav-semaine .fleche.off { opacity: .35; pointer-events: none; }
.carte-agenda { padding: 16px 18px 18px; }
summary.resume { cursor: pointer; font-weight: 700; }
table.comparaison td.sel, table.comparaison th.sel { background: #FDF3F1; font-weight: 700; }
.barre-action { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 14px 0;
  background: linear-gradient(rgba(247,246,245,0), var(--fond) 40%); }
@media (max-width: 700px) { .propositions { grid-template-columns: 1fr; } .barre-vue { justify-content: flex-start; } }

.retenir { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: -6px 0 14px; }
.etat-ok { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; color: var(--sarcelle-texte); font-weight: 600; }
.etat-ok details { color: var(--gris); font-weight: 400; font-size: 14px; }
.etat-ok summary { cursor: pointer; text-decoration: underline; }
.etat-ok .replacer { margin-top: 8px; }

/* ---------- Propositions datées ---------- */
.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.prop { border: 1px solid var(--trait); border-radius: 6px; padding: 10px 12px; background: #fff; }
.prop.retenue { border-color: var(--sarcelle); box-shadow: 0 0 0 1px var(--sarcelle) inset; }
.prop ul { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; }
.prop li { padding: 2px 0; }
.choix-iv { font: inherit; padding: 6px 8px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; max-width: 280px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modes label { border: 1px solid var(--trait); border-radius: 6px; padding: 12px 14px; cursor: pointer; background: #fff; }
.modes label:has(input:checked) { border-color: var(--rouge-bouton); background: var(--rouge-clair); }
.modes label b { display: block; }
.modes input { accent-color: var(--rouge-bouton); margin-right: 6px; }
.onglets-prop { display: flex; gap: 4px; border-bottom: 1px solid var(--trait); margin-bottom: 12px; }
.onglets-prop button { font: inherit; background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 10px; cursor: pointer; color: var(--gris); }
.onglets-prop button.actif { color: var(--rouge-texte); border-bottom-color: var(--rouge); font-weight: 700; }
.ajout-seance { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.ajout-seance label { font-size: 13px; color: var(--gris); display: flex; flex-direction: column; gap: 3px; }
.ajout-seance input, .ajout-seance select { font: inherit; padding: 7px 8px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; }
.liste-seances { list-style: none; padding: 0; margin: 12px 0 0; }
.liste-seances li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--trait); }
.compteur { font-weight: 700; margin: 10px 0 0; }
@media (max-width: 600px) { .modes { grid-template-columns: 1fr; } }

.pastilles-semaines { margin: -2px 0 12px; }
.puces-nav a.rattrapage { border-style: dashed; color: var(--sarcelle-texte); }
.puces-nav a.rattrapage.actif { background: var(--sarcelle-texte); border-color: var(--sarcelle-texte); color: #fff; }
table.cal tr.ratt td { background: var(--sarcelle-clair); }
table.cal select.type-sem { font: inherit; font-size: 14px; padding: 3px 6px; border: 1px solid #D6D2CF; border-radius: 4px; background: #fff; }
.periode { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.periode input { font: inherit; padding: 5px 8px; border: 1px solid #D6D2CF; border-radius: 4px; }

/* ---------- Accueil en 4 étapes ---------- */
.etapes { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.etapes li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--trait); border-radius: 6px; padding: 14px 18px; }
.etapes .pastille-etape { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #F1EFED; color: var(--gris); }
.etapes .contenu b { display: block; font-size: 17px; }
.etapes .contenu span { color: var(--gris); font-size: 14px; }
.etapes li.fait .pastille-etape { background: var(--sarcelle-clair); color: var(--sarcelle-texte); }
.etapes li.fait .contenu b { color: var(--gris); font-weight: 600; }
.etapes li.courante { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge) inset; padding: 18px; }
.etapes li.courante .pastille-etape { background: var(--rouge); color: #fff; }
.etapes li.courante .contenu b { font-size: 19px; color: var(--rouge-texte); }
.etapes li.alerte { border-color: var(--rouge-texte); background: #FFFBFA; }
.etapes li.alerte .pastille-etape { background: var(--rouge-texte); color: #fff; }
.etapes li.attente { opacity: .6; }
.etapes li.encours .pastille-etape { background: var(--attente-clair); color: var(--attente); }
@media (max-width: 600px) { .etapes li { grid-template-columns: 34px 1fr; } .etapes .action { grid-column: 2; } }

.exports { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin: -4px 0 10px; }
.exports .aide { margin-right: auto; display: none; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; font-size: 11px; }
  .nav, .filtres, .flash, .sous, .barre-vue, .pastilles-semaines, .exports, .retenir, .propositions, .etat-ok,
  .alerte-carte, details, .barre-action, dialog, .bandeau .proto, .alerte-maj { display: none !important; }
  .exports .aide { display: block !important; }
  .bandeau { border-bottom-width: 1px; }
  .bandeau-int, .page { max-width: none; padding: 0 4mm; }
  .titre { padding-top: 10px; }
  .titre::before { display: none; }
  .titre { padding-left: 0; }
  .titre h1::after { content: " – " attr(data-imp); font-weight: 400; color: #262626; font-size: 18px; }
  .carte { border: 0; padding: 0; }
  .ag-bloc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ag-col, .ag-dej { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Espace prof : ses séances ---------- */
.agenda-abo { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--sarcelle-clair); border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; }
.agenda-abo .aide { color: var(--sarcelle-texte); }
.sem-prof { margin-bottom: 12px; }
.sem-titre { font-weight: 700; font-size: 14px; color: var(--gris); border-bottom: 1px solid var(--trait); padding-bottom: 4px; margin-bottom: 4px; }
.seance-prof { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px dashed #EEE; }
.seance-prof.change { background: #FFFBF3; }
details.passees { margin-bottom: 12px; color: var(--gris); }
details.passees summary { cursor: pointer; margin-bottom: 8px; }
h2.separateur { margin: 28px 0 10px; font-size: 21px; color: var(--rouge-texte); }
@media (max-width: 600px) { .seance-prof { grid-template-columns: 95px 1fr; } .seance-prof .pastille { grid-column: 2; justify-self: start; } }

/* Mon compte */
.ligne-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.ligne-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.ligne-form input, .ligne-form select { min-width: 190px; }
.actif-lien { color: #B8361C; font-weight: 600; }

/* Connexion : chaque libellé au-dessus de sa case */
.form-connexion label { display: block; font-weight: 600; }
.form-connexion input { display: block; width: 100%; box-sizing: border-box; }

/* Choix du mode : bouton radio aligné sur le titre */
.modes label { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; }
.modes label input { margin: 3px 0 0; }
.modes label b, .modes label .aide { grid-column: 2; }

/* Guide */
.guide { max-width: 68ch; }
.guide h2 { font-size: 1.05rem; margin: 18px 0 4px; color: var(--rouge-texte); }
.guide p, .guide li { line-height: 1.5; margin: 0 0 6px; }
.guide ul { padding-left: 1.2em; margin: 0; }
@media print {
  .guide { max-width: none; font-size: 10.5pt; }
  .guide h2 { margin: 9px 0 2px; font-size: 11.5pt; }
  .guide p, .guide li { margin: 0 0 3px; line-height: 1.35; }
  .pas-imprime { display: none; }
}
.intro-guide { color: var(--gris); margin: 0 0 4px; }

/* Fiche d'une séance (clic sur un bloc du planning) */
button.ag-info { cursor: pointer; }
button.ag-info:hover, button.ag-info.ouvert { box-shadow: 0 0 0 2px var(--bord) inset; }
.fiche-bloc { position: absolute; z-index: 30; width: 310px; background: #fff; border: 1px solid var(--trait); border-top: 3px solid var(--rouge);
  border-radius: 6px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.fiche-bloc h3 { margin: 0 22px 8px 0; font-size: 15px; }
.fiche-bloc dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 13.5px; }
.fiche-bloc dt { color: var(--gris); }
.fiche-bloc dd { margin: 0; }
.fermer-fiche { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--gris); }
#p-sous { white-space: pre-line; }
@media print { .fiche-bloc { display: none !important; } }
