/* Plateforme Établissements — Dibsoft. Couleurs de l'établissement : --primaire, --accent */
:root {
  --primaire: #143D27;
  --accent: #B3560F;
  --fond: #F7F4EC;
  --surface: #FFFFFF;
  --surface-2: #FBFAF6;
  --texte: #1D2A22;
  --texte-doux: #4A5A50;
  --bordure: #E3DDCC;
  --erreur: #9B1C1C;
  --succes: #1F5B3A;
  --rayon: 12px;
  --police-titre: 'Fraunces', Georgia, serif;
  --police: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); font-size: 17px; line-height: 1.6; color: var(--texte); background: var(--fond); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--primaire); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--police-titre); line-height: 1.15; color: var(--primaire); margin: 0 0 .4em; }
h1 { font-size: clamp(30px, 4.2vw, 44px); }
code { background: #EFEBDF; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
.saut { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 12px; z-index: 10; }
.saut:focus { left: 8px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.conteneur { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.etroit { max-width: 480px; }
.etroit-texte { max-width: 820px; }
.principal { min-height: 60vh; }
.fort { font-weight: 700; }
.aide { color: var(--texte-doux); font-size: 15px; }
.lien-fort { font-weight: 700; text-decoration: none; }
.lien-clair { color: #F2B36B; font-weight: 700; text-decoration: none; }

/* Bandeau institutionnel */
.bandeau { background: var(--primaire); color: #E8EFE9; font-size: 14px; }
.bandeau-ligne { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.bandeau-droite { display: flex; gap: 20px; align-items: center; }
.bandeau a { color: #F2B36B; font-weight: 700; text-decoration: none; }
.devise-nationale { font-style: italic; }

/* En-tête & navigation */
.entete { background: var(--surface); border-bottom: 1px solid var(--bordure); position: relative; }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.logo-vide { display: inline-flex; align-items: center; justify-content: center; background: var(--primaire); color: #fff; font-weight: 700; text-transform: uppercase; }
.marque-texte { display: flex; flex-direction: column; min-width: 0; }
.marque-nom { font-family: var(--police-titre); font-weight: 700; font-size: 21px; color: var(--primaire); line-height: 1.2; }
.marque-devise { font-size: 14px; color: var(--texte-doux); }
.nav { display: flex; align-items: center; gap: 4px 18px; font-weight: 600; flex-wrap: wrap; justify-content: flex-end; }
.nav > a:not(.bouton) { text-decoration: none; color: var(--texte); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav > a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--primaire); }
.menu-bascule, .menu-bouton { display: none; }
.en-ligne { display: inline; margin: 0; }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--texte-doux); cursor: pointer; text-decoration: underline; min-height: 44px; }
.lien-danger { color: var(--erreur); }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.nav a.bouton-accent, .bouton-accent { background: var(--accent); color: #fff; }
.bouton-accent:hover { filter: brightness(.92); color: #fff; }
.bouton-contour { border-color: var(--primaire); color: var(--primaire); background: transparent; }
.bouton-clair { border-color: #fff; color: #fff; background: transparent; }
.bouton-clair:hover { background: rgba(255,255,255,.12); color: #fff; }
.bouton-grand { padding: 14px 28px; font-size: 18px; }
.bouton-large { width: 100%; margin-top: 8px; }

/* Héros */
.heros { background: var(--primaire); color: #fff; }
.heros-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 96px; }
.heros-grille:not(:has(.heros-photo)) { grid-template-columns: minmax(0, 1fr); max-width: 900px; margin-left: 0; }
.heros h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); }
.heros-texte { font-size: 19px; color: #D7E4DA; max-width: 60ch; }
.heros-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.surtitre { text-transform: uppercase; letter-spacing: .12em; font-size: 14px; font-weight: 700; color: var(--accent); margin: 0 0 .6em; }
.heros .surtitre, .entete-page .surtitre { color: #F2B36B; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Chiffres clés (chevauchent le héros) */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: -48px; position: relative; }
.chiffre-carte { background: var(--surface); border-radius: var(--rayon); padding: 24px; box-shadow: 0 6px 20px rgba(20,61,39,.10); display: flex; flex-direction: column; color: var(--texte-doux); }
.chiffre-valeur { font-family: var(--police-titre); font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--primaire); }
.chiffre-accent { color: var(--accent); }

/* En-tête des pages intérieures */
.entete-page { background: var(--primaire); color: #fff; padding: 48px 0; }
.entete-page h1 { color: #fff; margin: 0; }
.entete-page-sous { color: #D7E4DA; margin: 8px 0 0; }

/* Grilles */
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.grille-large { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grille-serree { gap: 16px; }
.formulaire .grille-serree > div { display: flex; flex-direction: column; gap: 6px; }
.pile { display: flex; flex-direction: column; gap: 24px; }
.titre-section { font-size: 28px; margin-top: 8px; }
.titre-ligne { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.bande-claire { background: var(--surface); }
.texte p, .texte ul { margin: 0 0 1em; }
.texte { font-size: 18px; }

/* Mot du chef d'établissement */
.mot { display: flex; flex-direction: column; gap: 16px; }
.mot-tete { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.mot-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.mot-photo-grande { width: 120px; height: 120px; }
.mot-titre { font-size: 22px; margin: 0; }
.mot-texte { margin: 0; font-size: 18px; font-style: italic; line-height: 1.7; }

/* Cartes d'actualité & albums */
.carte-actu, .carte-album { background: var(--surface-2); border: 1px solid var(--bordure); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.carte-actu-lien, .carte-album { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.carte-actu-img, .carte-album img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.carte-actu-vide { display: flex; align-items: center; justify-content: center; background: #E6EDE7; color: var(--texte-doux); font-weight: 700; aspect-ratio: 16 / 9; }
.carte-actu-corps, .carte-album-corps { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex-grow: 1; }
.carte-actu-titre { font-size: 20px; font-weight: 700; color: var(--texte); line-height: 1.3; }
.carte-actu-lien:hover .carte-actu-titre, .carte-album:hover .carte-actu-titre { color: var(--accent); }
.carte-actu-resume { color: var(--texte-doux); }
.carte-actu-date { font-size: 14px; color: #6B776F; margin-top: auto; }
.etiquette { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 700; color: #fff; background: var(--primaire); padding: 3px 10px; border-radius: 999px; }
.etiquette-examens { background: var(--accent); }
.etiquette-evenement { background: #F2D9B8; color: #143D27; }
.etiquette-vie_scolaire { background: #2F5E8A; }
.etiquette-gris { background: #6B776F; }
.titre-article { font-size: clamp(28px, 4vw, 42px); margin-top: 12px; }
.article-image { width: 100%; border-radius: 14px; margin: 8px 0 20px; }
.chapeau { font-size: 20px; font-weight: 600; }

/* Tableaux */
.defile { overflow-x: auto; }
.tableau { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); overflow: hidden; margin-bottom: 24px; }
.tableau th { background: var(--primaire); color: #fff; text-align: left; padding: 12px 16px; font-weight: 700; }
.tableau td { padding: 12px 16px; border-top: 1px solid #EEE7D6; }
/* lot DI : les en-têtes de ligne (1re colonne, <th scope="row">) ne sont plus sur fond vert foncé, qui masquait les liens (noms des élèves…) */
.tableau tbody th { background: var(--surface); color: var(--texte); font-weight: 600; border-top: 1px solid #EEE7D6; }
.tableau tbody th a { color: var(--primaire); }
.tableau td.fort { color: var(--succes); }
.actions-ligne { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.actions-ligne form { margin: 0; }

/* Listes diverses */
.liste-equipe, .liste-liens, .liste-calendrier, .liste-coord { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.liste-equipe li, .liste-calendrier li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EEE7D6; flex-wrap: wrap; }
.liste-liens li { padding: 10px 0; border-bottom: 1px solid #EEE7D6; display: flex; flex-direction: column; }
.liste-coord li { display: flex; flex-direction: column; padding: 8px 0; }
.liste-honneur { margin: 0; padding-left: 20px; }
.liste-honneur li { padding: 6px 0; }
.liste-honneur li span:last-child { float: right; }

/* Galerie */
.mosaique { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.mosaique img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.grille-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.grille-photos figure { margin: 0; }
.grille-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.grille-photos figcaption { font-size: 14px; color: var(--texte-doux); padding-top: 4px; }
.grille-photos-admin { margin: 24px 0; }

/* Filtres & pagination */
.filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filtre, .pagination a { text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.filtre[aria-current="page"], .pagination a[aria-current="page"] { background: var(--primaire); color: #fff; border-color: var(--primaire); }
.pagination { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }

/* Bandeau d'appel */
.appel { background: var(--accent); color: #fff; }
.appel h2 { color: #fff; }
.appel-ligne { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.appel .bouton-accent { background: #fff; color: var(--accent); }

/* Cartes & formulaires */
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: 16px; padding: 28px; }
.carte-sombre { background: var(--primaire); color: #fff; border: 0; }
.carte-sombre strong { font-size: 18px; }
.titre-carte { font-size: 30px; }
.note { background: var(--surface); border: 1px dashed var(--bordure); border-radius: var(--rayon); padding: 16px 20px; color: var(--texte-doux); }
.formulaire { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.formulaire label { font-weight: 600; margin-top: 10px; }
.formulaire input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), .formulaire select, .formulaire textarea { width: 100%; min-height: 48px; border: 1px solid #BFB8A4; border-radius: 8px; padding: 10px 14px; font: inherit; background: #fff; color: var(--texte); }
.formulaire textarea { resize: vertical; line-height: 1.5; }
.formulaire input[type=color] { width: 72px; height: 44px; border: 1px solid #BFB8A4; border-radius: 8px; padding: 2px; background: #fff; }
.formulaire input[type=file] { padding: 8px 0; font: inherit; }
.formulaire :focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 1px; }
.formulaire fieldset { margin: 0 0 20px; display: flex; flex-direction: column; gap: 6px; }
.formulaire legend { font-family: var(--police-titre); font-weight: 700; font-size: 22px; color: var(--primaire); padding: 0 6px; }
.case { display: flex !important; gap: 10px; align-items: center; font-weight: 600; min-height: 44px; }
.case input { width: 20px; height: 20px; }
.champ-image { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.apercu { max-width: 220px; max-height: 160px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bordure); }
.aligne-bas { display: flex; align-items: flex-end; }
.piege { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alerte { border-radius: 10px; padding: 12px 16px; margin: 16px 0; font-weight: 600; }
.alerte-erreur { background: #FBEAEA; color: var(--erreur); border: 1px solid #F0C4C4; }
.alerte-succes { background: #E6EDE7; color: var(--succes); border: 1px solid #C5D6C9; }
.alerte-info { background: #FDF3E6; color: #7A3A0A; border: 1px solid #F0D2AA; }

/* Espaces */
.titre-espace { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tuile { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 20px; display: flex; flex-direction: column; color: var(--texte-doux); }
.tuile-lien { text-decoration: none; }
.tuile-lien:hover { border-color: var(--accent); }
.tuile-valeur { font-family: var(--police-titre); font-size: 34px; font-weight: 700; color: var(--primaire); }
.tuile-alerte .tuile-valeur { color: var(--accent); }
.edt { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.edt-jour { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px; }
.edt-aujourdhui { border: 2px solid var(--accent); }
.edt-jour h3 { font-size: 20px; }
.edt-jour ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.edt-jour li { display: flex; flex-direction: column; padding: 8px 10px; background: var(--fond); border-radius: 8px; font-size: 15px; }
.edt-creneau { font-weight: 700; color: var(--primaire); }
.edt-salle { color: var(--texte-doux); font-size: 14px; }
.pastille { font-family: var(--police); font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }

/* Back-office */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-menu { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 16px; position: sticky; top: 16px; }
.admin-menu a { text-decoration: none; color: var(--texte); padding: 10px 12px; border-radius: 8px; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.admin-menu a[aria-current="page"] { background: var(--primaire); color: #fff; }
.admin-menu .admin-voir { color: var(--accent); margin-top: 8px; }
.admin-corps > .grille-3 { margin: 24px 0; }
.note-carte ol { margin: 0; padding-left: 20px; }
.note-carte li { padding: 4px 0; }
.message { margin-bottom: 16px; }
.message-lu { opacity: .75; }

/* Pied de page */
.pied { background: #0F2E1D; background: color-mix(in srgb, var(--primaire) 78%, #000); color: #CFDCD3; margin-top: 0; }
.pied a { color: #E8EFE9; }
.pied p { margin: 4px 0; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 24px; }
.pied-nom { color: #fff; font-family: var(--police-titre); font-size: 20px; }
.pied-liens { display: flex; flex-direction: column; gap: 6px; }
.pied-liens a { text-decoration: none; font-weight: 600; }
.pied-bas { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 24px; font-size: 14px; color: #9FB3A6; }

.page-erreur { display: flex; align-items: center; min-height: 100vh; }

/* Tablette */
@media (max-width: 1100px) {
  .menu-bouton { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--bordure); border-radius: 8px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
  .menu-icone, .menu-icone::before, .menu-icone::after { display: block; width: 18px; height: 2px; background: var(--primaire); position: relative; }
  .menu-icone::before, .menu-icone::after { content: ''; position: absolute; left: 0; }
  .menu-icone::before { top: -6px; } .menu-icone::after { top: 6px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--bordure); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; z-index: 5; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .nav > a:not(.bouton) { padding: 12px 0; border-bottom: 1px solid #EEE7D6; }
  .nav > a[aria-current="page"] { color: var(--accent); }
  .nav .bouton { margin-top: 8px; }
  .menu-bascule:checked ~ .nav { display: flex; }
  .menu-bascule:focus-visible + .menu-bouton { outline: 3px solid var(--accent); }
  .admin { grid-template-columns: 1fr; }
  .admin-menu { position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-menu .surtitre, .admin-menu .admin-voir { flex-basis: 100%; }
  .grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Téléphone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .heros-grille { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 80px; gap: 24px; }
  .grille-2, .grille-large, .grille-3, .pied-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .grille-4 { grid-template-columns: 1fr 1fr; }
  .carte { padding: 20px; }
  .marque-nom { font-size: 18px; }
  .logo { width: 44px; height: 44px; }
  .bandeau-ligne { font-size: 12px; }
  .devise-nationale { display: none; }
  .bouton-grand { width: 100%; }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tableau th, .tableau td { padding: 10px; }
}

/* Espace Personnel */
.bloc-espace { margin: 24px 0; }
.surtitre-menu { margin-top: 16px; }
.demande { margin-bottom: 16px; }
.demande p { margin: 8px 0; }
.decision { margin: 12px 0 0; }
.statut { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.statut-en_attente, .statut-incomplete { background: #FDF3E6; color: #7A3A0A; border: 1px solid #F0D2AA; }
.statut-accordee, .statut-acceptee { background: #E6EDE7; color: #1F5B3A; border: 1px solid #C5D6C9; }
.statut-incomplete { border-style: dashed; }
.statut-refusee { background: #FBEAEA; color: #9B1C1C; border: 1px solid #F0C4C4; }
.statut-annulee { background: #EEEEEE; color: #555; border: 1px solid #DDD; }
.ligne-passee td { color: #8A948D; }
.tableau select { min-height: 40px; border: 1px solid #BFB8A4; border-radius: 6px; padding: 4px 8px; font: inherit; background: #fff; }
.fiches-remise { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.fiche-remise { border: 2px dashed #BFB8A4; border-radius: 12px; padding: 16px 20px; background: #fff; break-inside: avoid; }
.fiche-remise p { margin: 4px 0; }
@media print {
  .bandeau, .entete, .pied, .admin-menu, .non-imprime, .saut { display: none !important; }
  body { background: #fff; }
  .admin { display: block; }
  .section { padding: 0; }
  .imprime-seul { display: flex !important; }
}
/* Signature et cachet du chef sous un emploi du temps imprimé depuis le navigateur */
.imprime-seul { display: none; }
.signature-imprimee { justify-content: flex-end; align-items: center; gap: 10px; margin: 14px 0 0; break-inside: avoid; }
.signature-imprimee .signature-textes { text-align: center; }
.signature-imprimee p { margin: 2px 0; }
.signature-imprimee .petit { font-size: 11px; }
.signature-imprimee .signature-chef-img { height: 26mm; width: auto; }
.signature-imprimee .cachet-img { height: 28mm; width: auto; }

/* Rôles & droits */
.tableau-roles th.col-perm { font-size: 13px; font-weight: 600; min-width: 96px; line-height: 1.25; vertical-align: bottom; }
.tableau-roles td.col-perm { text-align: center; }
.coche { color: var(--succes); font-weight: 700; font-size: 18px; }
.permissions { border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 16px; margin-top: 16px !important; }
.case-perm { align-items: flex-start !important; padding: 6px 0; font-weight: 400 !important; }
.case-perm input { margin-top: 4px; flex-shrink: 0; }

/* Circuit DRENAET */
.carte-drena { border-left: 4px solid var(--accent); }
.ligne-drena { padding: 12px 0; border-top: 1px solid #EEE7D6; display: flex; flex-direction: column; gap: 8px; }
.reponse-drena summary { cursor: pointer; font-weight: 700; color: var(--accent); min-height: 44px; display: flex; align-items: center; }
.reponse-drena .formulaire { margin-top: 4px; }
.interim { border: 1px solid var(--bordure); border-radius: 12px; padding: 8px 14px 12px; margin: 12px 0 0; }
.interim legend { font-weight: 700; padding: 0 6px; font-family: var(--police); font-size: 16px; color: var(--texte); }
.interim .case { margin-top: 6px; }

/* Lot 4 : signature électronique, documents scellés, portail DRENAET */
.document-signe { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: #F1F6F2; border: 1px solid #C5D6C9; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.document-signe .actions-ligne { margin: 0; }
.bouton-partage { color: var(--primaire); display: inline-flex; align-items: center; gap: 6px; }
.bouton-partage::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7a3 3 0 0 0 .1.8L8.4 11.2a3 3 0 1 0 0 3.6l6.7 3.4A3 3 0 1 0 18 16z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16a3 3 0 0 0-2.4 1.2l-6.7-3.4a3 3 0 0 0 0-1.6l6.7-3.4A3 3 0 1 0 15 7a3 3 0 0 0 .1.8L8.4 11.2a3 3 0 1 0 0 3.6l6.7 3.4A3 3 0 1 0 18 16z'/%3E%3C/svg%3E") center / contain no-repeat; }
.apercu-signature { background: repeating-conic-gradient(#F4F1E8 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px dashed var(--bordure); border-radius: 8px; padding: 12px; text-align: center; }
.apercu-signature img { max-height: 110px; }
.intro { max-width: 75ch; }
dl.fiche-demande { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 6px 16px; margin: 0 0 12px; }
dl.fiche-demande dt { color: var(--texte-doux); }
dl.fiche-demande dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.choix-decision { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.aide-menu { margin: -8px 0 8px; font-size: 14px; }
.champ-pin { max-width: 180px; letter-spacing: .3em; }
.portail-drena .logo-vide { background: var(--accent); }
@media (max-width: 560px) { dl.fiche-demande { grid-template-columns: 1fr; gap: 0; } dl.fiche-demande dd { margin-bottom: 8px; } }

/* Lot 5 : programme des devoirs */
.barre-programme { margin: 16px 0 8px; align-items: center; }
.formulaire .choix-creneaux, .choix-creneaux { flex-direction: row; border: 1px solid var(--bordure); border-radius: 8px; padding: 10px 14px; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.formulaire .choix-creneaux legend, .choix-creneaux legend { font-family: var(--police); font-size: 16px; font-weight: 700; padding: 0 6px; }
.situation { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.situation-libre, .situation-libere { background: #E6EDE7; color: #1F5B3A; }
.situation-administration { background: #EAF0F8; color: #1B365D; }
.situation-en_cours { background: #FDF3E6; color: #7A3A0A; }
.situation-deja_pris, .situation-absent { background: #EEEEEE; color: #555; }
.formulaire-ligne { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.ligne-surv { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ligne-moi td { background: #FFF6E5; }
.formulaire .choix-creneaux .case, .choix-creneaux .case { display: inline-flex; width: auto; margin: 0; min-height: 40px; align-items: center; gap: 6px; }

/* Lot 6 : emplois du temps, heures perdues, rattrapages */
.grille-edt { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 720px; }
.grille-edt th { font-size: 14px; color: var(--primaire); text-align: center; padding: 4px; }
.grille-edt th[scope=row] { text-align: left; white-space: nowrap; }
.grille-edt td { vertical-align: top; background: var(--surface); border: 1px solid var(--bordure); border-radius: 8px; padding: 6px; min-width: 110px; height: 56px; font-size: 14px; }
.grille-edt td.libre { background: var(--surface-2); text-align: center; }
.grille-edt td.conflit { border: 2px solid var(--erreur); }
.grille-edt td.perdu { background: #FDE7D2; border-color: var(--accent); }
.grille-edt th.jour-absent { background: #FDE7D2; border-radius: 6px; }
.grille-edt .separation td { height: 6px; padding: 0; border: 0; background: transparent; }
.grille-edt .seance { display: flex; flex-direction: column; line-height: 1.3; }
.grille-edt .seance + .seance { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--bordure); }
.grille-edt details summary { font-size: 13px; color: var(--texte-doux); cursor: pointer; }
.grille-edt details .formulaire { gap: 4px; margin: 6px 0; }
.grille-edt details select { min-height: 36px !important; padding: 4px 8px !important; }
.grille-edt-compacte td { height: 40px; }
.ajout-cellule { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; color: var(--texte-doux); text-decoration: none; font-size: 20px; }
.ajout-cellule:hover { background: var(--fond); color: var(--accent); }
.choix-edt { margin: 8px 0; padding-top: 8px; padding-bottom: 8px; }
.heures-perdues { border-top: 1px solid var(--bordure); margin-top: 12px; padding-top: 8px; }
.tableau-rattrapage select { min-width: 200px; }
.plan-rattrapage { margin: 8px 0; } .plan-rattrapage summary { cursor: pointer; font-weight: 600; }
.plan-rattrapage ul { margin: 6px 0 0; padding-left: 20px; }
@media print { .grille-edt td { height: auto; } }

/* Lot 7 : cours supplémentaires, statistiques */
.cours-sup { padding-top: 14px; padding-bottom: 14px; }
.etiquette-type { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; margin-right: 6px; background: #EAF0F8; color: #1B365D; }
.etiquette-renforcement { background: #EFEAF8; color: #4a3aa7; }
.liste-creneaux-libres { list-style: none; padding: 0; margin: 0; columns: 2; font-size: 15px; }
.liste-creneaux-libres li { padding: 3px 0; break-inside: avoid; }
details.refus { display: inline-block; } details.refus summary { list-style: none; display: inline; }
.barre-filtres { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin: 8px 0 20px; }
.barre-filtres .filtres { margin: 0; }
.filtre-perso label { font-weight: 600; }
.filtre-perso input, .filtre-perso select { min-height: 40px; border: 1px solid #BFB8A4; border-radius: 8px; padding: 6px 10px; font: inherit; background: #fff; }
.tuiles-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tuile-libelle { font-size: 14px; color: var(--texte-doux); }
.tuile-hero { grid-column: span 2; background: var(--primaire); color: #fff; border-color: var(--primaire); }
.tuile-hero .tuile-libelle, .tuile-hero .aide { color: #D7E4DA; }
.tuile-hero .tuile-valeur { color: #fff; }
.tuile-hero-valeur { font-family: var(--police); font-size: 52px; font-weight: 700; line-height: 1.1; }
@media (max-width: 560px) { .tuile-hero { grid-column: auto; } }
.bloc-stats { margin-bottom: 20px; }
.grille-stats { gap: 20px; }
.graphique { width: 100%; height: auto; display: block; margin: 8px 0 12px; font-family: var(--police); }
.graphique .grille { stroke: #e1e0d9; stroke-width: 1; }
.graphique .base { stroke: #c3c2b7; stroke-width: 1; }
.graphique .axe { fill: #898781; font-size: 12px; font-variant-numeric: tabular-nums; }
.graphique .etiquette { fill: #52514e; font-size: 13px; }
.graphique .valeur { fill: #0b0b0b; font-size: 13px; font-weight: 600; }
.graphique path { cursor: default; outline: none; }
.graphique path:hover, .graphique path:focus { opacity: .85; }
.legende { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #52514e; }
.pastille-legende { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tableau-stats td, .tableau-stats tfoot th { font-variant-numeric: tabular-nums; text-align: right; }
.tableau-stats th[scope=row] { text-align: left; }
.tableau-stats tfoot { font-weight: 700; border-top: 2px solid var(--bordure); }
.infobulle { position: fixed; z-index: 50; background: #0b0b0b; color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 6px; pointer-events: none; max-width: 280px; }
@media print { .bloc-stats { break-inside: avoid; } .tuile-hero { color: #000; background: #fff; } .tuile-hero .tuile-libelle, .tuile-hero .aide { color: #333; } }
.admin > * { min-width: 0; }
@media (max-width: 900px) { .admin { grid-template-columns: minmax(0, 1fr); } }
.tableau-stats tbody th, .tableau-stats tfoot th { background: transparent; color: var(--texte); font-weight: 700; }
.graphique-etroit { max-width: 760px; }
.grille-2 > *, .grille-3 > *, .grille-4 > * { min-width: 0; }
.formulaire select { max-width: 100%; }
.tableau-stats th, .tableau-stats td { padding: 8px 10px; font-size: 15px; }
.tableau-stats thead th { white-space: normal; vertical-align: bottom; }

/* Lot 9 : appel, élèves, parents */
.tableau-appel th[scope=row] { text-align: left; white-space: nowrap; }
.tableau-appel td { text-align: center; }
.case-appel { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; margin: 0 !important; }
.case-appel input { width: 22px; height: 22px; }
.ligne-absent th, .ligne-absent td { background: #FBEAEA; }
.tableau-appel input[name^=justif] { min-height: 36px; padding: 4px 8px; }
.filtres.ancres { margin: 8px 0 0; }
.liste-appel { list-style: none; counter-reset: eleve; margin: 0; padding: 0; border: 1px solid var(--bordure); border-radius: var(--rayon); background: var(--surface); }
.ligne-eleve { counter-increment: eleve; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; border-top: 1px solid var(--bordure); }
.ligne-eleve:first-child { border-top: 0; }
.ligne-eleve:has(.presence-absent input:checked) { background: #FBEAEA; }
.ligne-eleve:has(.presence-retard input:checked) { background: #FFF6E0; }
.nom-eleve { font-weight: 700; min-width: 0; }
.nom-eleve::before { content: counter(eleve) ". "; color: var(--texte-doux); font-weight: 400; }
.choix-presence { border: 0; margin: 0; padding: 0; display: inline-flex; gap: 6px; }
.pastille-presence { position: relative; margin: 0 !important; cursor: pointer; }
.pastille-presence input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pastille-presence span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid #BFB8A4; border-radius: 999px; font-weight: 600; font-size: 15px; background: #fff; }
.pastille-presence input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.presence-present input:checked + span { background: #E6EDE7; border-color: #1F5B3A; color: #1F5B3A; }
.presence-absent input:checked + span { background: #d03b3b; border-color: #d03b3b; color: #fff; }
.presence-retard input:checked + span { background: #FDF3E6; border-color: #B26B00; color: #6B4000; }
.justif-appel { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.justif-appel input[type=text], .justif-appel input:not([type]) { flex: 1; min-width: 180px; }
.choix-presence { display: block; min-width: 0; }
.pastilles-presence { display: flex; gap: 6px; flex-wrap: nowrap; }
.nom-eleve { flex: 1 1 180px; }

/* ---------- Lot 10 : visites de classe, canevas, structures ---------- */
.bulletin .rubrique-bulletin { border: 1px solid #E5DFD0; padding: 14px 16px 6px; margin: 0 0 14px; }
.bulletin .rubrique-bulletin legend { font-weight: 700; padding: 0 6px; color: var(--primaire, #1B365D); }
.critere { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 220px); gap: 6px 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid #F0EBDF; }
.critere:last-child { border-bottom: 0; }
/* grilles officielles (lot BN) : choix en boutons, observation sous le critère */
.critere .choix { display: flex; flex-wrap: wrap; gap: 6px; }
.critere .choix-opt { display: inline-flex; margin: 0; }
.critere .choix-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.critere .choix-opt span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 2px solid #CFC8B6; border-radius: 10px; background: #fff; font-weight: 600; cursor: pointer; }
.critere .choix-opt input:checked + span { background: var(--primaire, #1B365D); border-color: var(--primaire, #1B365D); color: #fff; }
.critere .choix-opt input:focus-visible + span { outline: 3px solid #E0A040; outline-offset: 2px; }
.critere .choix-opt input:disabled + span { cursor: default; opacity: .75; }
.critere .obs-critere { grid-column: 1 / -1; font-size: .92em; }
.critere:has(.choix) { grid-template-columns: minmax(0, 1fr) auto; }
.bulletin .lecture-critere { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid #F0EBDF; }
.bulletin .lecture-critere strong { white-space: nowrap; }
@media print { .critere .choix-opt span { border-width: 1px; } }
.critere label { margin: 0; font-weight: 400; }
.critere textarea { grid-column: 1 / -1; }
.critere:has(textarea) { grid-template-columns: minmax(0, 1fr); }
.actions-bulletin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.actions-bulletin label { margin: 0; }
.actions-bulletin .champ-pin { width: 9em; }
.choix-seances { border: 1px solid #E5DFD0; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.choix-seances legend { font-weight: 600; padding: 0 6px; }
.rubrique-canevas { margin-bottom: 14px; }
.titre-rubrique { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.critere-canevas { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #F0EBDF; }
.champ-ordre { width: 4.5em; flex: none; }
.libelle-critere { flex: 1 1 260px; min-width: 0; }
@media (max-width: 560px) {
  .critere, .critere:has(.choix) { grid-template-columns: minmax(0, 1fr); }
  .critere select { width: 100%; }
}
.defile { position: relative; }
.formulaire-ligne select, .formulaire-ligne input { max-width: 100%; min-width: 0; }
.liste-puces { margin: 0; padding-left: 1.1em; }
.liste-puces li { margin: 2px 0; }
.formulaire .choix-seances.cases-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 12px; }
.cases-grille legend { grid-column: 1 / -1; }

/* ---------- Lot 13 : profils et fiche de l'établissement ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; vertical-align: middle; background: #E8E2D2; }
.avatar-vide { display: inline-grid; place-items: center; color: var(--primaire); font-weight: 700; background: #E6EFE9; border: 1px solid var(--bordure); }
.avatar-grand { box-shadow: 0 2px 10px rgba(20,61,39,.12); }
.profil-tete { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.profil-tete h1 { margin: 0; }
.photo-profil { display: flex; justify-content: center; margin: 4px 0 12px; }
.fiche-infos { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; margin: 0 0 10px; }
.fiche-infos dt { color: var(--texte-doux); font-size: 14px; }
.fiche-infos dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.menu-profil { display: flex !important; align-items: center; gap: 10px; padding: 6px 12px 12px; text-decoration: none; border-bottom: 1px solid var(--bordure); margin-bottom: 8px; }
.menu-profil > span:not(.avatar) { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.menu-profil .aide { font-weight: 400; }
.logo-fiche { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--bordure); font-size: 26px; }
.chiffres-fiche { margin-bottom: 18px; }
.cellule-agent { display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) { .fiche-infos { grid-template-columns: 1fr; gap: 0; } .fiche-infos dd { margin-bottom: 8px; } }
fieldset { min-width: 0; }
.grille-2 > *, .pile > * { min-width: 0; }
.bloc-edt summary { cursor: pointer; }
.bloc-edt form { margin-top: 14px; }
.rapport-import { border-left: 4px solid var(--accent); }
.formulaire input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; }
.grille-plein { grid-column: 1 / -1; }
/* Ronde de présence des enseignants */
.ligne-ronde { padding: 12px 16px; }
.ligne-ronde .pastilles-presence { flex-wrap: wrap; }
.ligne-ronde .nom-eleve { flex: 1 1 260px; min-width: 0; }
.ligne-ronde .choix-presence { flex: 0 1 auto; }
.ligne-ronde:has(.presence-absent input:checked) { background: #FBEAEA; }
.ligne-ronde:has(.presence-retard input:checked) { background: #FFF6E0; }
.presence-vide input:checked + span { background: #EEE; color: #555; }
.presence-vide span { font-weight: 500; font-size: 13px; }
.details-ronde { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.details-ronde label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 600; }
.details-ronde input { min-height: 36px; padding: 4px 8px; }
.formulaire .details-ronde input { width: auto; flex: 1 1 160px; }
.formulaire .details-ronde input.etroit { width: 70px; flex: 0 0 70px; }
.ligne-ronde:not(:has(.presence-retard input:checked)) .champ-retard { display: none; }
.ligne-ronde:not(:has(.presence-absent input:checked)) .champ-justif { display: none; }
.details-ronde select { min-height: 36px; padding: 4px 8px; width: auto; }
.navigation-periode { align-items: center; }
.cellule-alerte { color: #9B1C1C; font-weight: 700; }
/* Saisie assistée des localités */
.champ-localite, .saisie-localite { position: relative; }
.liste-localites { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--bordure); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 300px; overflow-y: auto; }
.liste-localites li { padding: 8px 12px; cursor: pointer; line-height: 1.3; }
.liste-localites li[aria-selected="true"], .liste-localites li:hover { background: #E6EDE7; }
.localite-invalide input[type=text] { border-color: #d03b3b; }
.localite-invalide::after { content: "Choisissez une localité dans la liste proposée."; display: block; color: #9B1C1C; font-size: 14px; margin-top: 4px; }
.choix-lieu { border: 0; padding: 0; margin: 12px 0 0; }
.choix-lieu legend { font-family: inherit; font-size: 16px; }
.choix-lieu .case { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin: 6px 0; }
.form-absence:not(:has(input[name=lieu_absence][value=deplacement]:checked)) .bloc-destination { display: none; }
/* Localités en cascade */
.champ-geo { border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 12px 16px 14px; margin: 12px 0; background: #FCFBF7; }
.champ-geo legend { padding: 0 6px; font-family: inherit; font-size: 16px; }
.geo-types { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.geo-types .case { display: inline-flex; gap: 6px; align-items: center; margin: 4px 0; font-weight: 500; }
.formulaire .geo-types input[type=radio] { width: auto; }
.geo-niveaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 12px; }
.geo-niveau[hidden] { display: none; }
.geo-resume { font-weight: 600; color: var(--primaire); margin: 8px 0 0; }
.geo-invalide { border-color: #d03b3b; }
.geo-invalide::after { content: "Complétez la localité (nature, région… jusqu'au dernier menu)."; display: block; color: #9B1C1C; font-size: 14px; margin-top: 6px; }
/* Marché */
.carte-interne { border: 1px dashed var(--bordure); border-radius: var(--rayon); padding: 10px 14px; margin: 12px 0; }
.verif-badge { max-width: 560px; margin: 0 auto; }
.verif-badge .profil-tete { align-items: center; gap: 16px; }
/* Photos au smartphone */
.champ-photo { margin: 10px 0; }
.photo-apercu { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: #EEE; display: flex; align-items: center; justify-content: center; margin: 6px 0; border: 1px solid var(--bordure); }
.photo-apercu img { width: 100%; height: 100%; object-fit: cover; }
.photo-vide { color: #777; font-size: 13px; }
.photo-boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-boutons .bouton { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.photo-ok .photo-etat { color: #1F5B3A; font-weight: 700; }
.photo-erreur .photo-etat { color: #9B1C1C; font-weight: 700; }
.grille-photos-serie { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.carte-photo { padding: 10px; font-size: 14px; }
.carte-photo .photo-boutons { flex-direction: column; }
.carte-photo .photo-boutons .bouton { justify-content: center; padding-left: 8px; padding-right: 8px; }
.carte-photo .photo-apercu { width: 100%; height: auto; aspect-ratio: 1; max-width: 180px; }
/* Présence au poste */
.ligne-repos { opacity: .7; }
.connexion-qr { max-width: 420px; margin: 16px auto 0; }
.connexion-qr input[inputmode=numeric] { font-size: 28px; letter-spacing: 12px; text-align: center; }

/* Menu de l'espace en accordéons (groupes de commandes) */
.menu-accordeon { gap: 4px; max-height: calc(100vh - 32px); overflow-y: auto; }
.menu-accordeon .menu-accueil { margin-bottom: 4px; }
.menu-groupe { border-top: 1px solid var(--bordure); }
.menu-groupe > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 44px; padding: 8px 12px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--primaire); border-radius: 8px; }
.menu-groupe > summary::-webkit-details-marker { display: none; }
.menu-groupe > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-left: auto; flex-shrink: 0; }
.menu-groupe[open] > summary::after { transform: rotate(-135deg); }
.menu-groupe > summary:hover { background: #F3F1EA; }
.menu-groupe > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.menu-groupe > summary > span:first-child { flex: 1; }
.menu-groupe .menu-liens { display: flex; flex-direction: column; gap: 2px; padding: 0 0 8px 6px; }
@media (max-width: 1100px) {
  .admin-menu.menu-accordeon { max-height: none; overflow: visible; flex-direction: column; flex-wrap: nowrap; }
  .menu-groupe .menu-liens { flex-direction: row; flex-wrap: wrap; }
}

/* L'École ivoirienne (données nationales) */
.onglets-ecole { margin: 20px 0 0; }
.cartes-ecole .carte { display: flex; flex-direction: column; gap: 4px; }
.carte-lien { text-decoration: none; color: var(--texte); transition: border-color .15s, box-shadow .15s; }
.carte-lien:hover, .carte-lien:focus-visible { border-color: var(--primaire); box-shadow: 0 6px 18px rgba(0,0,0,.06); color: var(--texte); }
.filtres-ecole { margin-bottom: 24px; }
.filtres-ecole .grille-3 { gap: 12px 24px; }
.bloc-stats { gap: 16px; margin-bottom: 24px; }
.pastille-serie { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pastille-bande { background: rgba(20, 61, 39, .12); border: 1px solid rgba(20, 61, 39, .3); }
.legende-graphique { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 4px; font-weight: 600; color: var(--texte-doux); }
.graphique-zone { position: relative; }
.graphique-courbes .point { cursor: pointer; }
.graphique-courbes .point:hover, .graphique-courbes .point:focus { r: 6; outline: none; }
.graphique-courbes .bande { fill: rgba(20, 61, 39, .08); }
.info-bulle { position: absolute; background: #1D2A22; color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; pointer-events: none; white-space: nowrap; z-index: 2; }
.carte-indicateurs .indic-hero { font-family: var(--police-titre); font-size: 30px; font-weight: 700; color: var(--primaire); margin: 0 0 8px; }
.indic { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 15px; }
.indic dt { color: var(--texte-doux); } .indic dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ligne-actuelle td { background: #EEF4EF; }
.ligne-passee td { color: #8A8F88; }
.frise-ministres { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ministre { display: flex; gap: 16px; align-items: flex-start; }
.ministre-en-poste { border-color: var(--primaire); border-width: 2px; }
.ministre-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ministre-initiales { display: inline-flex; align-items: center; justify-content: center; background: var(--primaire); color: #fff; font-weight: 700; font-size: 20px; }
.ministre-texte { min-width: 0; }
.ministre-texte p { margin: 4px 0; }
.ministre-resultats { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.groupe-iepp { padding: 12px 20px; margin-bottom: 10px; }
.groupe-iepp summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.liste-iepp { columns: 2; column-gap: 32px; margin: 8px 0 0; padding-left: 18px; }
.liste-iepp li { break-inside: avoid; margin-bottom: 6px; }
.frise-annee { position: relative; height: 54px; background: #F3F1EA; border-radius: 10px; margin: 20px 0 4px; overflow: hidden; }
.frise-periode { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; overflow: hidden; white-space: nowrap; border-right: 2px solid #fff; }
.frise-p0 { background: #2a78d6; } .frise-examen { background: #1baf7a; } .frise-p1 { background: #1f62b3; } .frise-p2 { background: #164d8f; }
.frise-conge { position: absolute; bottom: 0; height: 16px; background: #eb6834; border-left: 1px solid #fff; }
.frise-ferie, .frise-evenement, .frise-autre { background: #c0392b; height: 54px; width: 3px !important; opacity: .85; }
.frise-aujourdhui { position: absolute; top: -2px; bottom: -2px; width: 3px; background: #1D2A22; }
.frise-mois { position: relative; height: 20px; font-size: 12px; color: var(--texte-doux); margin-bottom: 4px; }
.frise-mois span { position: absolute; transform: translateX(-2px); }
.legende-frise .cle { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin: 0 4px 0 12px; vertical-align: 0; }
.cle-periode { background: #2a78d6; } .cle-examen { background: #1baf7a; } .cle-vacances { background: #eb6834; } .cle-ferie { background: #c0392b; } .cle-auj { background: #1D2A22; width: 4px !important; }
@media (max-width: 760px) { .liste-iepp { columns: 1; } .ministre-photo { width: 48px; height: 48px; } .frise-periode { font-size: 11px; } }

/* ---- Formulaires publics : marché, inscriptions en ligne (lot 30) ---- */
.section-courte { padding-top: 28px; padding-bottom: 0; }
.cartes-actions .carte-lien { display: flex; flex-direction: column; gap: 6px; }
.cartes-actions .carte-lien .lien-fort { margin-top: auto; color: var(--primaire); }
.carte-mise-en-avant { border: 2px solid var(--primaire); }
.numero-dossier { font-size: 22px; letter-spacing: .04em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.carte-sombre .mot-titre { color: #fff; }
.etiquettes { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.etiquettes li { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #E6EDE7; color: #1F5B3A; border: 1px solid #C5D6C9; }
.tableau .etiquettes { margin: 0; } .tableau .etiquettes li { font-size: 12px; padding: 2px 8px; }
.logo-partenaire { object-fit: contain; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 4px; flex-shrink: 0; }
.logo-initiales { display: inline-flex; align-items: center; justify-content: center; background: #E6EDE7; color: var(--primaire); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-align: center; line-height: 1.1; }
.ligne-logo { display: flex; gap: 14px; align-items: center; }
.carte-partenaire { align-items: flex-start; }
.mur-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-bottom: 24px; }
.mur-logos a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; background: #fff; border: 1px solid var(--bordure); border-radius: 14px; text-decoration: none; color: var(--texte); text-align: center; font-size: 13px; font-weight: 700; }
.mur-logos a:hover, .mur-logos a:focus-visible { border-color: var(--primaire); }
.mur-logos .logo-partenaire { border: 0; }
@media (max-width: 560px) { .carte-partenaire { flex-direction: column; } }
.etoiles { display: inline-flex; gap: 1px; font-size: 18px; line-height: 1; letter-spacing: 0; white-space: nowrap; vertical-align: middle; }
.etoiles .pleine { color: #E3A008; } .etoiles .vide { color: #D6D3CB; }
.etoiles .demi { background: linear-gradient(90deg, #E3A008 50%, #D6D3CB 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.etoiles-grandes { font-size: 26px; }
.synthese-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.note-moyenne { font-family: var(--police); font-size: 40px; font-weight: 700; color: var(--primaire); line-height: 1; }
.repartition-avis { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.repartition-avis li { display: grid; grid-template-columns: 38px 1fr 32px; gap: 8px; align-items: center; font-size: 14px; }
.repartition-avis .barre { height: 9px; background: #EEE9DD; border-radius: 99px; overflow: hidden; }
.repartition-avis .barre span { display: block; height: 100%; background: #E3A008; border-radius: 99px; }
.avis .avis-tete { margin-bottom: 8px; align-items: center; }
.reponse-avis { border-left: 4px solid var(--primaire); background: #F3F7F4; padding: 8px 12px; border-radius: 6px; margin-top: 8px; }
.reponse-avis p { margin: 2px 0; }
.choix-etoiles { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
.choix-etoiles legend { padding: 0; }
.etoiles-saisie { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.etoiles-saisie input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.etoiles-saisie label { font-size: 38px; line-height: 1; color: #D6D3CB; cursor: pointer; margin: 0 !important; padding: 2px; }
.etoiles-saisie label:hover, .etoiles-saisie label:hover ~ label, .etoiles-saisie input:checked ~ label { color: #E3A008; }
.etoiles-saisie input:focus-visible + label { outline: 3px solid var(--primaire); outline-offset: 2px; border-radius: 6px; }
.priorite { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; border: 1px solid; }
.priorite-haute { background: #FBEAEA; color: #9B1C1C; border-color: #F0C4C4; } .priorite-moyenne { background: #FDF3E6; color: #7A3A0A; border-color: #F0D2AA; }
.priorite-basse { background: #EEF2F7; color: #34495E; border-color: #D5DEE8; }
.carte-besoin { display: flex; flex-direction: column; gap: 6px; } .carte-besoin .bouton { margin-top: auto; align-self: flex-start; }
.message-pret { background: #F3F7F4; border-left: 4px solid #25D366; padding: 10px 12px; border-radius: 6px; white-space: pre-wrap; }
.entonnoir { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.entonnoir [aria-current="page"] { border-color: var(--primaire); box-shadow: inset 0 0 0 2px var(--primaire); }
@media (max-width: 760px) { .cartes-besoins { grid-template-columns: 1fr; } }
.case-legere { font-weight: 500 !important; min-height: 36px; }
.formulaire .label { display: block; font-weight: 600; margin-top: 10px; }
.choix-ligne { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.formulaire .choix-ligne .case { display: inline-flex !important; margin: 0; font-weight: 500; min-height: 40px; }
.choix-ligne input.etroit { max-width: 180px; }
.circuit-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 560px) { .circuit-liste { grid-template-columns: 1fr; } }
.etapes { padding-left: 20px; margin: 0; } .etapes li { margin: 6px 0; }
.case-seule { display: flex; align-items: flex-end; padding-bottom: 8px; }
.alerte-bloc { border-left: 5px solid var(--primaire); }
.photo-dossier { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--bordure); }
.fiche-demande { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.fiche-demande dt { font-size: 13px; color: var(--texte-doux); margin-top: 8px; } .fiche-demande dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) { .cartes-actions { grid-template-columns: 1fr; } .fiche-demande { grid-template-columns: 1fr; } }
/* Ordres de mission (lot 38) */
.cases-colonnes { columns: 2 260px; column-gap: 24px; margin: 4px 0 12px; }
.cases-colonnes .case { break-inside: avoid; display: block; margin: 0 0 6px; }
.pile-serree { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.grille-5 { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.4fr 1.4fr; gap: 8px; margin-bottom: 8px; }
.grille-5 > * { min-width: 0; }
.sous-carte { border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.sous-carte > summary { cursor: pointer; font-weight: 600; }
.texte-libre { white-space: normal; margin: 6px 0; }
.visa-en-ligne { margin-top: 18px; }
@media (max-width: 760px) { .grille-5 { grid-template-columns: 1fr 1fr; } .grille-5 > :first-child { grid-column: 1 / -1; } }
/* Offre et modules (lot 39) */
.tableau-modules td:first-child { min-width: 300px; }
.tableau-modules input[type=date] { min-width: 140px; }
/* Abonnement (lot 40) */
.choix-offres { border: 0; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.choix-offres legend { font-weight: 700; margin-bottom: 6px; }
.offre-choix { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 14px; background: var(--surface); cursor: pointer; }
.offre-choix input { margin-top: 4px; flex: none; }
.offre-choix:has(input:checked) { border-color: var(--primaire); box-shadow: 0 0 0 1px var(--primaire); }
.offre-choix:has(input:disabled) { opacity: .55; }
.total-abo { font-size: 1.15rem; margin: 14px 0; }
.tableau td.nombre, .tableau th.nombre { text-align: right; white-space: nowrap; }
.tuiles-console { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 16px 0; }
@media (max-width: 760px) { .tuiles-console { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.champ-montant { width: 9em; text-align: right; }

/* Lot 40c : plans et prix (console) */
.champ-court { width: 5.5em; }
.duree-plan { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #BFB8A4; border-radius: 999px; padding: 0 4px 0 10px; margin: 2px 4px 2px 0; font-size: 13px; background: #fff; }
.duree-retirer { min-height: 32px; min-width: 32px; text-decoration: none; }
.plan-non-relie { color: #8A3B12; font-weight: 600; }
.frais-ligne { display: flex; justify-content: space-between; gap: 12px; }

/* Lot 41 : statut public / privé */
.statut-etab { border: 1px solid #D8D2C0; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.statut-etab legend { font-weight: 700; padding: 0 6px; }
.statut-etab.a-preciser { border: 2px solid #B45309; background: #FFF8EC; }
.bandeau-statut { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; }
.champ-confession { margin-top: 8px; max-width: 320px; }

/* Lot 42 : option Marché par vendeur */
.ligne-quantite { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; }
.ligne-quantite select { width: auto; }
.unite-plan { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 6px; }
.unite-plan select { width: auto; }

/* Lot 44 : codes d'activation */
.code-activation { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 28px; font-weight: 700; letter-spacing: 2px; margin: 8px 0; user-select: all; }
.en-ligne { display: inline; }
.ligne-recherche { display: flex; gap: 8px; }
.ligne-recherche input { flex: 1; }

/* Lot 48 : scolarité */
.grille-frais th, .grille-frais td { white-space: nowrap; }
.grille-frais .champ-montant { width: 7.5em; }
.ligne-rubrique { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.ligne-rubrique input[type=text], .ligne-rubrique input:not([type]) { flex: 1; min-width: 12em; }
.ligne-rubrique select { width: auto; }

/* lot 48b : offres qui ne reprennent pas les modules payés */
.offre-choix.offre-exclue { opacity: .55; }
.offre-choix input[data-verrou] { accent-color: var(--vert, #1a7f45); }
.ligne-quantite { flex-wrap: wrap; max-width: 100%; }
.ligne-quantite select { max-width: 100%; min-width: 0; }
.offre-choix > span { min-width: 0; }

/* lot 49c : œil des champs de mot de passe */
.champ-mdp { position: relative; display: block; }
.champ-mdp > input { width: 100%; padding-right: 46px; }
.champ-mdp > .oeil { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--texte-doux, #5b6670); cursor: pointer; border-radius: 8px; padding: 0; }
.champ-mdp > .oeil:hover { color: var(--primaire, #143D27); background: rgba(0,0,0,.05); }
.champ-mdp > .oeil:focus-visible { outline: 2px solid var(--accent, #B3560F); outline-offset: 1px; }
.formulaire-ligne .champ-mdp, .ligne-quantite .champ-mdp { display: inline-block; }
.lien-oubli { text-align: center; margin: 14px 0 0; }
.lien-oubli a { font-weight: 600; }

/* lot 50 : comptabilité */
.tableau-compta td:nth-child(1), .tableau-compta td:nth-child(2) a { white-space: nowrap; }
.tableau-compta td.nombre { white-space: nowrap; }

/* lot 50e : responsive — aucun contenu ne dépasse la largeur de l'écran */
.principal a, .principal code, .principal strong, .principal .aide, .principal td, .principal dd { overflow-wrap: anywhere; }
.principal .tableau td, .principal .tableau th { overflow-wrap: normal; }
.principal .tableau td a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .statut { white-space: normal; max-width: 100%; }
  .principal input:not([type=checkbox]):not([type=radio]), .principal select, .principal textarea { max-width: 100%; }
  .principal img, .principal svg, .principal video, .principal iframe { max-width: 100%; height: auto; }
  .formulaire-ligne, .barre-filtres { flex-wrap: wrap; }
  .formulaire-ligne > *, .barre-filtres > * { max-width: 100%; }
  .actions-ligne { flex-wrap: wrap; }
}
/* tableaux hors cadre défilant : ils défilent eux-mêmes sur petit écran */
@media (max-width: 760px) {
  main :not(.defile) > table.tableau { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.principal p, .principal li, .principal pre, .principal blockquote, .message-pret { overflow-wrap: break-word; word-break: break-word; }
.principal pre { white-space: pre-wrap; }
/* menu de l'espace : plié sur petit écran, toujours ouvert sur grand écran */
.espace-nav { min-width: 0; }
.espace-nav-titre { display: none; }
@media (max-width: 1100px) {
  .espace-nav-titre { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 48px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); font-weight: 700; }
  .espace-nav-titre::-webkit-details-marker { display: none; }
  .espace-nav-titre::before { content: "☰"; font-size: 20px; line-height: 1; }
  .espace-nav-titre > span:first-child { flex: 1; }
  .espace-nav[open] > .espace-nav-titre { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .espace-nav[open] > .admin-menu { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
}
@media print { .espace-nav { display: none !important; } }

/* lot 50f : sur ordinateur, les espaces de travail occupent la largeur de l'écran (site public : 1200 px pour la lecture) */
.conteneur.section.admin, .conteneur.espace-large { max-width: 1680px; }
@media (min-width: 1400px) {
  .admin { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; }
  .conteneur.section.admin, .conteneur.espace-large { padding-left: 32px; padding-right: 32px; }
  .page-espace .bandeau .conteneur, .page-espace .entete .conteneur, .page-espace .pied .conteneur { max-width: 1680px; padding-left: 32px; padding-right: 32px; }
}
/* formulaires longs sur grand écran : deux colonnes de champs quand c'est déjà prévu (grille-2), jamais rétrécis */
.admin-corps .formulaire, .admin-corps .carte { width: 100%; box-sizing: border-box; }
.principal .tableau code { overflow-wrap: normal; white-space: nowrap; }
@media print { .defile { overflow: visible !important; } }
/* lot 51b : réinitialisation des accès (console) */
details.depliant { margin: 12px 0; border-top: 1px solid var(--bordure, #E5E0D2); padding-top: 10px; }
details.depliant > summary { cursor: pointer; font-weight: 700; color: var(--accent, #0B6E4F); }
details.depliant .formulaire { margin-top: 10px; max-width: 640px; }
.groupes-acces { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 20px; }
.remise-tableau td code { white-space: nowrap; font-size: 15px; }
.zone-danger { border: 2px solid #C0392B33; }
.bouton-danger { background: #B03A2E; color: #fff; }
.bouton-danger:hover { filter: brightness(.92); color: #fff; }
.bouton[disabled] { opacity: .5; cursor: not-allowed; }
.bouton-petit { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; }
@media print { .fiches-remise.imprime-seul { display: grid !important; grid-template-columns: 1fr 1fr; } }
.groupes-acces .case .aide { white-space: nowrap; }
.case input { flex-shrink: 0; }
/* lot 51c : le site public occupe aussi la largeur des grands écrans (comme les espaces de travail) ;
   les paragraphes longs gardent une largeur de lecture confortable */
@media (min-width: 1400px) {
  .conteneur { max-width: 1680px; padding-left: 32px; padding-right: 32px; }
  .conteneur.etroit { max-width: 480px; }
  .conteneur.etroit-texte { max-width: 820px; }
  main .section > p, main .section > .carte > p, .article-corps p { max-width: 95ch; }
}
/* lot 52 : missionnaires hors liste (7 champs) */
.grille-libre-om { display: grid; grid-template-columns: 2fr 1fr 1.4fr .7fr 1.4fr 1.4fr 1.2fr; gap: 6px; margin-bottom: 6px; }
@media (max-width: 1100px) { .grille-libre-om { grid-template-columns: 1fr 1fr 1fr; } .grille-libre-om > :first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .grille-libre-om { grid-template-columns: 1fr 1fr; } }
/* lot 53 : notes et bulletins */
.champ-note { width: 5.5em !important; min-width: 0; text-align: center; }
.champ-invalide { border-color: #B03A2E !important; background: #FBEAE8 !important; }
.tableau-synthese th, .tableau-synthese td { padding: 6px 6px; }
.tableau-synthese select { min-height: 36px; padding: 4px 6px; width: auto; }
.tableau-synthese input:not(.champ-note) { min-width: 12em; }
.note-faible { color: #B03A2E; }
.note-pastille { display: inline-flex; align-items: baseline; gap: 4px; border: 1px solid var(--bordure, #E5E0D2); border-radius: 999px; padding: 2px 10px; margin: 2px 4px 2px 0; font-weight: 700; white-space: nowrap; }
.note-pastille small { font-weight: 400; color: var(--texte-doux, #666); }
.tableau-synthese td:last-child { white-space: nowrap; }
.tableau-synthese thead a { color: inherit; text-decoration: underline; }
.tableau-synthese thead .aide { color: inherit; opacity: .8; }
.tableau-synthese select { max-width: 11em; }
.tableau-synthese td.fort:first-child { min-width: 9em; }
.tableau-notes td:last-child, .tableau-notes td.nombre, .tableau-notes th, .tableau-notes td:first-child { white-space: nowrap; }
/* lot 54 : discipline */
.nowrap { white-space: nowrap; }
.ligne-convocation { border-top: 1px solid var(--bordure, #E5E0D2); padding-top: 8px; margin-top: 8px; }
.ligne-convocation p { margin: 0 0 6px; }
.badge-discipline { display: inline-block; font-size: 12px; font-weight: 700; color: #B03A2E; }
/* lot 55 : page publique « Fonctionnalités » (adresse de la console Dibsoft) */
.vitrine-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 16px 0 32px; }
.vitrine-options { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vitrine-carte h3 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vitrine-carte .aide { margin-top: 0; }
.liste-coches { list-style: none; padding: 0; margin: 8px 0 0; }
.liste-coches li { position: relative; padding-left: 26px; margin: 6px 0; }
.liste-coches li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--accent); }
.etapes-vitrine { counter-reset: etape; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.etapes-vitrine li { counter-increment: etape; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; padding: 44px 18px 16px; position: relative; }
.etapes-vitrine li::before { content: counter(etape); position: absolute; top: 12px; left: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--primaire); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
/* lot 56 : portraits des chefs d'établissement successifs */
.portrait-chef { border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--bordure); background: #fff; }
.portrait-vide { display: inline-grid; place-items: center; line-height: 1; background: var(--primaire); color: #fff; font-weight: 700; }
.chef-ligne { display: flex; gap: 10px; align-items: center; }
.liste-chefs { list-style: none; padding: 0; margin: 8px 0 0; }
.liste-chefs li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.liste-chefs li:last-child { border-bottom: 0; }
.liste-chefs li > span { display: flex; flex-direction: column; }
/* lot 57 : liens officiels du MENAET */
.pied-grille { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .pied-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 760px) { .pied-grille { grid-template-columns: minmax(0, 1fr); } }
.pied-titre { display: block; margin-bottom: 4px; }
.liens-officiels { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 12px; }
.lien-officiel { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; }
.lien-officiel:hover { border-color: var(--accent); }
.lien-officiel-url { font-size: 13px; font-weight: 700; color: var(--accent); overflow-wrap: anywhere; }
.tableau th.centre, .tableau td.centre { text-align: center; }
.tableau td input:not([type=radio]):not([type=checkbox]), .tableau td select { width: 100%; min-width: 9rem; }
.carte-alerte { border-left: 4px solid #b42318; }
.suspension-carte { border-top: 4px solid #b42318; }
.bandeau-suspension a { font-weight: 700; }
.etapes-courtes { margin-bottom: 18px; }
.etapes-vitrine li.etape-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.etapes-vitrine li.etape-active::before { background: var(--accent); }
.choix-colonnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; margin-bottom: 10px; }
.suivi-etapes { list-style: none; padding: 0; margin: 12px 0; }
.suivi-etapes li { padding: 8px 0 8px 30px; position: relative; color: var(--texte-doux, #667); }
.suivi-etapes li::before { content: ''; position: absolute; left: 6px; top: 13px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.suivi-etapes li.fait { color: inherit; font-weight: 600; }
.suivi-etapes li.fait::before { background: var(--primaire); border-color: var(--primaire); }
.code-badge { font-size: 2rem; letter-spacing: .5em; text-transform: uppercase; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; max-width: 14rem; }
.badge-apercu { display: flex; gap: 14px; align-items: center; border: 1px solid var(--bordure); border-radius: 12px; padding: 12px; background: #fff; }
.badge-apercu img { border-radius: 8px; }

/* Cantine & transport */
.onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.onglets a { padding: 6px 14px; border: 1px solid var(--bordure, #d8dde3); border-radius: 999px; text-decoration: none; color: var(--texte); font-size: .92rem; }
.onglets a[aria-current="page"] { background: var(--primaire); border-color: var(--primaire); color: #fff; }

/* Lot AF — affichage sur téléphone (Infinix, Tecno, Samsung…) */
/* Dans un tableau, les mots ne sont plus cassés au milieu : la 1re colonne garde une largeur lisible et le tableau défile de côté. */
.principal .tableau td, .principal .tableau th, .principal .tableau td .aide, .principal .tableau td a, .principal .tableau th a, .principal .tableau td strong { overflow-wrap: normal; word-break: normal; }
.principal .tableau td .aide { min-width: 0; }
@media (max-width: 760px) {
  .tableau th:first-child, .tableau td:first-child { min-width: 112px; }
  .tableau-roles th:first-child, .tableau-roles td:first-child { min-width: 150px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
  .tableau-roles thead th:first-child { background: var(--primaire); }
}
/* Barres de filtre / formulaires en ligne : jamais écrasés, passage à la ligne propre */
.formulaire.carte.en-ligne, .carte.en-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0; }
@media (max-width: 560px) {
  .formulaire-ligne, .formulaire.carte.en-ligne { align-items: stretch; }
  .formulaire-ligne > label, .formulaire.carte.en-ligne > label { flex: 1 0 100%; margin-bottom: -4px; }
  .formulaire-ligne > select, .formulaire-ligne > input:not([type=checkbox]):not([type=radio]), .formulaire.carte.en-ligne > input:not([type=checkbox]):not([type=radio]), .formulaire.carte.en-ligne > select { flex: 1 1 100%; width: 100%; }
  .formulaire-ligne > .bouton, .formulaire.carte.en-ligne > .bouton { flex: 1 1 auto; text-align: center; }
  .actions-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
  .actions-ligne > .bouton { flex: 1 1 auto; text-align: center; }
  h1 { overflow-wrap: break-word; }
}
/* Le texte garde sa taille choisie par le téléphone sans déformation (pas d'agrandissement automatique par bloc) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, canvas { max-width: 100%; }
input, select, textarea { max-width: 100%; }
/* Tableaux de statistiques (Garçons · Filles · Total) lisibles sur 360–412 px : pourcentage sous l'effectif, cellules compactes */
@media (max-width: 560px) {
  .tableau th, .tableau td, .tableau-stats th, .tableau-stats td { padding: 8px 6px; font-size: 14px; }
  .tableau td.nombre .aide, .tableau-stats td .aide { display: block; font-size: 12px; line-height: 1.25; }
  .tableau th.nombre, .tableau-stats thead th { white-space: normal; }
  .tableau-stats th[scope=row], .tableau th[scope=row] { min-width: 92px; }
  .carte .defile { margin-left: -6px; margin-right: -6px; }
}
/* Frise du calendrier : un libellé trop long pour sa période est coupé proprement (…) au lieu d'être tronqué au milieu */
.frise-periode { text-overflow: ellipsis; padding: 0 4px; min-width: 0; }
@media (max-width: 560px) { .frise-periode { font-size: 10px; padding: 0 2px; letter-spacing: -.2px; } .frise-examen { font-size: 0; } .frise-examen::before { content: "Exam."; font-size: 10px; } }
/* Annonces sous les rubriques de l'espace parent */
#annonces { margin-top: 32px; }
/* Champs des barres de filtre : taille de doigt (44 px) et texte 16 px (pas de zoom automatique, pas de texte minuscule) */
.formulaire-ligne select, .formulaire-ligne input:not([type=checkbox]):not([type=radio]), .formulaire.carte.en-ligne input, .formulaire.carte.en-ligne select { min-height: 44px; font: inherit; font-size: 16px; padding: 6px 10px; border: 1px solid #BFB8A4; border-radius: 8px; background: #fff; }
/* Lot AF (suite) : listes à choix multiple, badge, cellules étroites */
select[multiple] { width: 100%; max-width: 100%; box-sizing: border-box; }
.badge-apercu { flex-wrap: wrap; }
.badge-apercu > div { min-width: 180px; }
@media (max-width: 560px) {
  .badge-apercu > div { flex-basis: 100%; }
  .tableau td.centre, .tableau td:not(:first-child) { min-width: 64px; }
  .genre-ligne { display: flex; flex-wrap: wrap; gap: 2px 10px; }
  .genre-ligne > span { white-space: nowrap; }
}
.ligne-erreur td { background: #FBEAEA; }
.ligne-nouveau td { background: #EEF7EE; }
/* Écran de validation de la lecture de feuille (lot AJ) */
.ocr-liste { border: 1px solid var(--bordure, #E4DCC8); border-radius: 10px; overflow: hidden; margin: 12px 0; }
.ocr-ligne { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border-top: 1px solid #EEE7D6; align-items: center; }
.ocr-ligne:first-child { border-top: 0; }
.ocr-sai { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ocr-sai .ocr-val { width: 6.5rem; font-size: 1.2rem; padding: 8px 10px; }
.ocr-sai label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (min-width: 720px) { .ocr-ligne { grid-template-columns: 1.2fr 1.4fr auto; } }
/* Saisie rapide des notes (lot AK) */
.outils-saisie { margin: 10px 0 14px; border: 1px solid #E4DCC8; border-radius: 10px; padding: 10px 14px; background: #FBF8F0; }
.outils-saisie summary { cursor: pointer; font-weight: 700; }
.outils-ligne { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 10px 0; }
.outils-ligne .champ-court { width: 6rem; }
.champ-modifie { background: #FFF6D9 !important; border-color: #C9A227 !important; }
.erreur-texte { color: #B03A2E; font-weight: 700; }

/* Lot AM — contrôle avant impression des bulletins */
.controle-bulletins .sous-titre { margin: 1.1rem 0 .4rem; font-size: 1rem; }
.tableau-controle td, .tableau-controle th { vertical-align: top; }
.tableau-controle tr.controle-grave td:first-child { border-left: 4px solid #9B1C1C; }
.tableau-controle tr.controle-attention td:first-child { border-left: 4px solid #B7791F; }
.tableau-controle td:nth-child(4) { min-width: 16rem; }

/* Assistant du chef (lot AU) */
.assistant-fil { display: flex; flex-direction: column; gap: .6rem; margin: .8rem 0; max-height: 50vh; overflow-y: auto; }
.assistant-bulle { max-width: 92%; padding: .6rem .8rem; border-radius: .8rem; background: var(--fond-doux, #f1f3f6); }
.assistant-bulle p { margin: 0; }
.assistant-bulle ul { margin: .4rem 0 0 1.1rem; padding: 0; }
.assistant-bulle.moi { align-self: flex-end; background: #dbeafe; color: #11264a; }
.assistant-bulle.inconnu { background: #fff3cd; color: #4d3b00; }
.assistant-barre { display: flex; flex-wrap: wrap; gap: .5rem; }
.assistant-barre input, .assistant-barre textarea { flex: 1 1 18rem; min-width: 0; font: inherit; padding: .6rem .7rem; border: 1px solid var(--bordure, #c9c4b5); border-radius: 6px; resize: vertical; min-height: 3.4rem; }
.assistant-exemples { margin: .3rem 0 0 1.1rem; padding: 0; }

.assistant-ia-tag{display:inline-block;margin-bottom:.25rem;padding:.05rem .45rem;border-radius:999px;background:var(--accent,#0b5);color:#fff;font-size:.72rem}
.liste-compacte{margin:0;padding-left:1.1rem}.liste-compacte li{margin:.1rem 0}

/* Lot BJ : cours déjà pointé (un seul contrôle) */
.fiche-ctrl tr.est-verrouille td { background: #f4f1e8; }
.fiche-ctrl .verrou { display: block; font-weight: 600; }

/* Lot BM : « Rester connecté », voyant hors ligne, impression de la ronde */
.case-rester { display: flex; align-items: center; gap: .5rem; margin: .6rem 0 .2rem; font-weight: 600; }
.case-rester input { width: auto; margin: 0; }
@media print { #hl-pastille, #hl-bandeau, .no-print { display: none !important; } }

/* contrôle des cahiers par classe (lot BO) */
.tableau-matieres td { vertical-align: middle; }
.tableau-matieres .ligne-choisie td { background: #EEF5EF; }
.prof-ligne { display: inline-flex; align-items: center; gap: 8px; }
.mini-photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--bordure); }
.sans-photo { display: inline-flex; align-items: center; justify-content: center; background: #E7E3D8; color: #5B574C; font-weight: 700; }
.carte-prof { display: flex; gap: 16px; align-items: flex-start; }
.photo-prof { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--bordure); font-size: 40px; }
.infos-prof { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 6px 0 0; font-size: 15px; }
.infos-prof dt { color: #6B675C; }
.infos-prof dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .carte-prof { flex-direction: column; align-items: center; text-align: center; }
  .infos-prof { grid-template-columns: 1fr; text-align: left; }
  .infos-prof dt { margin-top: 4px; }
}
.bloc-repliable > summary { cursor: pointer; list-style: none; }
.bloc-repliable > summary::-webkit-details-marker { display: none; }
.bloc-repliable > summary::before { content: "▸ "; }
.bloc-repliable[open] > summary::before { content: "▾ "; }

/* listes du personnel (lot BQ) */
.liste-perso .label { font-weight: 700; font-size: 15px; }
.liste-perso .intervalle { display: flex; gap: 8px; }
.liste-perso .intervalle input { min-width: 0; flex: 1 1 0; }
.liste-perso .cases-ligne { justify-content: flex-end; }
.cases-colonnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 16px; margin: 8px 0; }
.cases-colonnes .case { margin: 0; min-height: 36px; display: flex; align-items: center; gap: 8px; }
.liste-perso summary.h3 { margin: 0 0 12px; }
.tableau-serre th, .tableau-serre td { padding: 6px 8px; font-size: 14px; white-space: nowrap; }
.cases-creneaux { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choix-impression { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-weight: 400; }
.choix-impression input { margin-top: 5px; }

/* audience du site (lot BZ) */
.aud-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.aud-tuile { display: flex; flex-direction: column; gap: 2px; }
.aud-tuile-lib { font-size: 13px; color: #5B574C; font-weight: 600; }
.aud-graphe { margin: 16px 0; }
.aud-graphe svg { width: 100%; height: auto; display: block; margin: 10px 0 6px; overflow: visible; }
.aud-rect { fill: var(--primaire, #143D27); }
.aud-jour:hover .aud-rect { fill: var(--accent, #B3560F); }
.aud-cible { fill: transparent; }
.aud-grille { stroke: #E7E3D8; stroke-width: 1; }
.aud-base { stroke: #B9B3A3; stroke-width: 1; }
.aud-axe { font-size: 11px; fill: #6B675C; }
.aud-barres { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.aud-barres li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 15px; }
.aud-lib { overflow-wrap: anywhere; }
.aud-piste { background: #F0EBDF; border-radius: 4px; height: 12px; overflow: hidden; }
.aud-barre { display: block; height: 100%; background: var(--primaire, #143D27); border-radius: 4px; }
.aud-val { font-weight: 700; white-space: nowrap; }
.pied-compteur { white-space: nowrap; }
/* lot CB : congés et jours sans cours */
.liste-simple { list-style: none; padding: 0; margin: 0; }
.liste-simple li { padding: .35rem 0; border-bottom: 1px solid var(--bordure, #e5e1d8); }
.liste-simple li:last-child { border-bottom: 0; }
.conge-ferme { margin: 1rem 0; }
/* lot CC : analyse des résultats par période ou par mandat */
.graphique-courbes .bande-alt { fill: rgba(20, 61, 39, .16); }
.graphique-courbes .bande-nom { font-size: 11px; fill: var(--texte-doux); }
.mode-analyse { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.mode-analyse .case { font-weight: 600; }
.analyse-bloc[hidden] { display: none; }
.gestion-ministres { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; list-style: none; }
.gestion-ministres li { border: 1px solid var(--bordure, #e5e1d8); border-radius: 10px; padding: 10px 12px; background: var(--surface, #fff); }
.gestion-ministres .aide { display: block; }
.filtres-ecole .analyse-choix { grid-column: span 2; } @media (max-width: 720px) { .filtres-ecole .analyse-choix { grid-column: 1 / -1; } }
/* lot CE : groupes WhatsApp des parents */
.bouton-whatsapp { background: #1F7A4D; color: #fff; border-color: #1F7A4D; }
.bouton-whatsapp:hover, .bouton-whatsapp:focus-visible { background: #17603C; color: #fff; }
.gp-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gp-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.gp-charte { background: var(--fond); border: 1px solid var(--bordure); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.gp-table input[type=url], .gp-table input:not([type]) { width: 100%; min-width: 180px; }
.gp-table td.centre { text-align: center; }
.groupes-parents { margin-top: 1rem; }
/* lot CG : clubs des élèves */
.club-tuiles { margin-bottom: 20px; }
.club-tuile-texte { font-size: 1.05rem; line-height: 1.35; }
.club-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 24px; }
.club-carte { display: flex; flex-direction: column; gap: 8px; margin: 0; border-top: 4px solid var(--primaire, #1F5C3A); }
.club-carte.club-inactif { opacity: .7; border-top-color: var(--bordure); }
.club-carte-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.club-carte-tete h2 { margin: 0; flex: 1 1 100%; }
.club-carte-tete h2 a { text-decoration: none; color: inherit; }
.club-carte p:last-child { margin: auto 0 0; }
.club-domaine { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #E6EDE7; color: #1F5C3A; }
.club-d-scientifique, .club-d-numerique { background: #E3ECF8; color: #1E4C8A; }
.club-d-sante { background: #FBEAEA; color: #8A1E1E; }
.club-d-culturel, .club-d-artistique, .club-d-presse, .club-d-langues { background: #FDF3E6; color: #7A3A0A; }
.club-d-sportif { background: #EEE8F7; color: #4B2C82; }
.club-infos { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .95rem; }
.club-infos dt { color: var(--texte-doux); }
.club-infos dd { margin: 0; }
.club-chiffres { display: flex; gap: 16px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.club-bureau { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.club-poste { display: flex; flex-direction: column; gap: 2px; margin: 0; border-left: 4px solid var(--primaire, #1F5C3A); }
.club-poste-vide { border-left-color: var(--bordure); background: var(--fond); }
.club-candidats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin: 8px 0 12px; max-height: 360px; overflow: auto; }
.club-activites { display: grid; gap: 12px; }
.club-activite { margin: 0; }
.club-activite h3 { margin: 0; }
/* lot CI : console — plans et prix */
.plans-groupe { margin-bottom: 28px; }
.plans-groupe > summary { cursor: pointer; }
.plans-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 12px; }
.plan-carte { background: var(--surface); border: 1px solid var(--bordure); border-top: 4px solid var(--primaire); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.plan-carte.plan-inactif { border-top-color: var(--bordure); background: var(--fond); }
.plan-carte.plan-a-relier { border-top-color: #B3560F; }
.plan-carte.plan-modifie { box-shadow: 0 0 0 2px var(--accent); }
.plan-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-titre { flex: 1; min-width: 0; }
.plan-nom { width: 100%; font-family: var(--police-titres, inherit); font-size: 1.15rem; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 4px 6px; margin-left: -6px; border-radius: 8px; color: var(--primaire); }
.plan-nom:hover, .plan-nom:focus { border-color: var(--bordure); background: var(--surface); }
.plan-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.plan-code { font-size: .78rem; background: var(--fond); border: 1px solid var(--bordure); border-radius: 6px; padding: 1px 6px; }
.plan-badge { font-size: .76rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: #EEF0EC; color: var(--texte-doux); }
.plan-badge-public { background: #E6EDE7; color: #1F5C3A; }
.plan-badge-prive { background: #EEE8F7; color: #4B2C82; }
.plan-interrupteur { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.plan-interrupteur input { width: 20px; height: 20px; accent-color: var(--primaire); }
.plan-prix { display: flex; align-items: baseline; gap: 8px; }
.plan-montant { width: 8.5em; font-size: 1.6rem; font-weight: 700; text-align: right; color: var(--primaire); padding: 4px 8px; }
.plan-unite { color: var(--texte-doux); font-size: .95rem; }
.plan-ouvre { margin: 0; font-size: .92rem; }
.plan-desc { width: 100%; font-size: .92rem; }
.plan-durees { margin: 0; }
.plan-reglages summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--texte-doux); }
.plan-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 10px; }
.plan-grille select, .plan-grille input:not(.champ-court):not(.champ-montant) { width: 100%; }
.plan-grille .grille-plein { grid-column: 1 / -1; }
.plan-classes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.label-like { display: block; font-weight: 600; margin-bottom: 4px; }
.plan-tuile-texte { font-size: 1.1rem; line-height: 1.3; }
.plans-barre { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; padding: 12px 16px; margin-top: 8px; box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.plans-outils { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.plans-outils > details > summary { cursor: pointer; }
@media (max-width: 520px) { .plan-grille { grid-template-columns: 1fr; } .plans-grille { grid-template-columns: 1fr; } }
.formulaire .plan-carte input.plan-nom { width: 100% !important; min-height: 0 !important; border: 1px solid transparent !important; background: transparent !important; padding: 4px 6px !important; margin-left: -6px; font-size: 1.12rem; font-weight: 700; color: var(--primaire); text-overflow: ellipsis; }
.formulaire .plan-carte input.plan-nom:hover, .formulaire .plan-carte input.plan-nom:focus { border-color: #BFB8A4 !important; background: #fff !important; }
.formulaire .plan-carte input.plan-montant { width: 6.2em !important; flex: none; min-height: 0 !important; padding: 6px 10px !important; font-size: 1.45rem; font-weight: 700; text-align: right; color: var(--primaire); }
.plan-unite { white-space: nowrap; }
.formulaire .plan-carte textarea.plan-desc { min-height: 0 !important; font-size: .9rem; padding: 8px 10px !important; line-height: 1.4; }
.plan-code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-ouvre { display: flex; flex-wrap: wrap; gap: 4px; }
.plan-module { font-size: .76rem; background: var(--fond); border: 1px solid var(--bordure); border-radius: 6px; padding: 1px 7px; color: var(--texte-doux); }
.plan-tete .plan-interrupteur { margin-top: 6px; }
.formulaire .plan-carte .plan-grille label, .plan-grille .label-like { margin-top: 0; font-size: .88rem; }
.formulaire .plan-carte .plan-grille input, .formulaire .plan-carte .plan-grille select { min-height: 40px !important; padding: 6px 10px !important; }
.formulaire .plan-carte .plan-grille input.champ-court { width: 5em !important; }
.formulaire .plan-carte .plan-grille input.champ-montant { width: 8em !important; }
.plan-carte[hidden] { display: none !important; }
.formulaire .plan-carte input.plan-nom { font-weight: 700 !important; color: var(--primaire) !important; font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem !important; }
.formulaire .plan-carte .plan-classes input.champ-court { width: 4.5em !important; }
@media (max-width: 520px) { .plans-barre { flex-wrap: nowrap; padding: 8px 10px; gap: 8px; } .plans-barre [data-modifs] { font-size: .8rem; } .plans-barre .bouton { padding: 10px 14px; font-size: .95rem; } }
[data-morale][hidden], [data-fondateur-entite][hidden] { display: none !important; }
.fondateur-entite .geo-types { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
/* lot CL : site de la DRENAET */
.site-drena-heros { background-image: linear-gradient(rgba(20,40,70,.82), rgba(20,40,70,.82)), var(--fond-heros, none); background-size: cover; background-position: center; }
.site-drena-entete { background-image: linear-gradient(rgba(20,40,70,.78), rgba(20,40,70,.78)), var(--fond-entete, none); background-size: cover; background-position: center; color: #fff; }
.site-drena-entete h1, .site-drena-entete .surtitre { color: #fff; }
.site-drena-chiffres { margin-bottom: 24px; }
.site-drena-mot { display: flex; gap: 20px; align-items: flex-start; margin: 16px 0 24px; }
.site-drena-portrait { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; flex: none; border: 3px solid var(--bordure); }
.site-drena-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.site-drena-service { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; margin: 0; transition: box-shadow .15s; }
.site-drena-service:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.site-drena-contact { margin: 0; }
.site-drena-sigle { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; border-radius: 6px; padding: 2px 8px; background: #E3ECF8; color: #1B365D; }
.site-drena-cio { background: #E6EDE7; color: #1F5C3A; }
.site-drena-apfc { background: #FDF3E6; color: #7A3A0A; }
.site-drena-etiquette { text-decoration: none; }
.site-drena-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.site-drena-album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.site-drena-album figure { margin: 0; }
.site-drena-vignette { display: block; max-width: 180px; max-height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
@media (max-width: 600px) { .site-drena-mot { flex-direction: column; } }
.site-drena-iepp { background: #EEE8F7; color: #4B2C82; }
/* Lot CQ — Mon profil (portail DRENAET) */
.profil-entete { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.profil-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--bordure); }
.profil-initiales { display: flex; align-items: center; justify-content: center; background: var(--primaire); color: #fff; font: 600 2rem var(--police-titre); }
@media (max-width: 600px) { .profil-entete { flex-direction: column; align-items: flex-start; } }
/* Lot CR — Suivi des établissements (portail DRENAET) */
.suivi-periode { padding: 16px 20px; }
.suivi-periode .filtres { margin-bottom: 12px; }
.suivi-dates { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.suivi-dates > div { min-width: 160px; }
.suivi-dates .bouton { margin-bottom: 2px; }
.suivi-blocs { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
.suivi-blocs .tableau tbody th, .suivi-table tbody th { background: none; color: var(--texte); font-weight: 600; border-bottom: 1px solid var(--bordure); }
.suivi-blocs .tableau tbody th .aide, .suivi-table tbody th .aide { font-weight: 400; color: var(--texte-doux); }
.suivi-blocs .tableau td.nombre { vertical-align: top; }
.suivi-blocs .tableau td[colspan] { text-align: left; white-space: normal; }
.suivi-table thead th .aide { color: rgba(255,255,255,.75); }
@media (min-width: 1500px) { .suivi-blocs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Lot CS — Établissements et personnel (portail DRENAET) */
.annuaire-table tbody th, .annuaire-fiche-blocs .tableau tbody th { background: none; color: var(--texte); font-weight: 600; border-bottom: 1px solid var(--bordure); }
.annuaire-table tbody th .aide { font-weight: 400; color: var(--texte-doux); }
.annuaire-table td { vertical-align: top; }
.annuaire-agent { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texte); min-width: 200px; }
.annuaire-agent:hover > span:last-child { text-decoration: underline; }
.annuaire-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.annuaire-initiales { display: inline-flex; align-items: center; justify-content: center; background: var(--primaire); color: #fff; font: 600 15px var(--police); }
.annuaire-groupe { margin-bottom: 20px; }
.annuaire-sous { font-size: 1rem; margin: 18px 0 8px; color: var(--primaire); }
.annuaire-fiche h1 { margin: 0 0 4px; }
.annuaire-fiche-blocs { margin-top: 20px; }
.pastille-ok { display: inline-block; font-size: 12px; font-weight: 700; background: #E3F1E7; color: #1D5B34; border-radius: 999px; padding: 1px 8px; }
.filtre[aria-current="page"] .aide { color: rgba(255,255,255,.8); }
.annuaire-groupe h2 .aide, .annuaire-sous .aide { font: 400 14px var(--police); color: var(--texte-doux); }
/* Lot CU — Fonctions en région (console) */
.fonctions-groupe { margin-bottom: 20px; }
.fonctions-table tbody th { background: none; color: var(--texte); font-weight: 600; border-bottom: 1px solid var(--bordure); }
.fonctions-table tbody th .aide { font-weight: 400; }
.fonctions-table td { vertical-align: middle; }
.rang-pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 999px; background: color-mix(in srgb, var(--primaire) 10%, #fff); color: var(--primaire); font-weight: 700; }
.actions-fonction { white-space: nowrap; }
.actions-fonction > * { margin-right: 6px; }
.bouton-icone { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--bordure); background: var(--surface); color: var(--texte); font-weight: 700; cursor: pointer; }
.bouton-icone:hover { border-color: var(--primaire); color: var(--primaire); }
/* Lot CU — Point des autorisations d'absence */
.suivi-blocs .ligne-total th, .suivi-blocs .ligne-total td { font-weight: 700; border-top: 2px solid var(--bordure); }
.barre-cellule { min-width: 120px; }
.barre-mois { display: block; height: 12px; border-radius: 0 4px 4px 0; background: var(--primaire); min-width: 2px; }
/* Lot CU — Console : établissements et abonnements */
.tuile-filtre { text-align: left; font: inherit; cursor: pointer; border: 1px solid var(--bordure); }
.tuile-filtre:hover, .tuile-filtre.tuile-active { border-color: var(--primaire); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primaire) 25%, transparent); }
.tuile-ok .tuile-valeur { color: #1D6B3A; }
.tuile-alerte .tuile-valeur { color: #A15C00; }
.tuile-danger .tuile-valeur { color: #B42318; }
.abo-filtres { padding: 16px 20px; margin-bottom: 16px; }
.abo-filtres-grille { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px 16px; }
@media (max-width: 860px) { .abo-filtres-grille { grid-template-columns: 1fr 1fr; } .abo-filtres-grille > :first-child { grid-column: 1 / -1; } }
.abo-filtres .aide { margin: 10px 0 0; }
.abo-table tbody th { background: none; color: var(--texte); font-weight: 400; border-bottom: 1px solid var(--bordure); min-width: 220px; }
.abo-table td { vertical-align: top; }
.abo-table tbody tr:hover { background: color-mix(in srgb, var(--primaire) 4%, transparent); }
.abo-nom { display: block; font-weight: 700; }
.abo-meta { display: block; font-size: 13px; color: var(--texte-doux); }
.abo-url { display: inline-block; font-size: 13px; margin: 2px 6px 2px 0; word-break: break-all; }
.abo-offre { font-weight: 600; }
.abo-etat { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.abo-etat + .aide { display: block; margin-top: 4px; white-space: nowrap; }
.abo-etat-ok { background: #E3F1E7; color: #1D5B34; }
.abo-etat-alerte { background: #FDF0DC; color: #8A4B00; }
.abo-etat-danger { background: #FDE7E5; color: #A11F14; }
.abo-etat-neutre { background: #EEF0F2; color: #4A5560; }
.abo-modules { min-width: 220px; max-width: 360px; }
.abo-modules .statut { margin: 0 2px 4px 0; display: inline-block; }
.abo-mod-plus { display: none !important; }
.abo-modules-tous .abo-mod-plus { display: inline-block !important; }
.abo-actions { white-space: nowrap; }
.abo-actions .bouton { margin-bottom: 6px; }
.lien-action { display: block; font-size: 14px; }
.abo-legende .statut { margin-right: 4px; }
.abo-actions { display: block; margin-top: 6px; font-size: 13px; white-space: normal; }
.abo-filtres label { margin-top: 0; }
.actions-fonction { white-space: normal; min-width: 150px; }
.actions-fonction .bouton-icone { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; vertical-align: middle; }
.ligne-barre td { padding-top: 0 !important; border-top: 0 !important; }
.fonctions-table tbody th { min-width: 240px; }
.fonctions-table { width: 100%; }
.fonctions-table tbody th { white-space: normal; max-width: 420px; }
.fonctions-table td { white-space: normal; }
.fonctions-table td:nth-child(3) { min-width: 170px; }
/* Lot CU — petits téléphones (360 px) : les cartes de plans ne débordent plus */
.plans-grille { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.plan-carte { min-width: 0; }
@media (max-width: 520px) { .plans-grille { grid-template-columns: minmax(0, 1fr); } .plan-tete { flex-wrap: wrap; } }
.profil-entete > div { min-width: 0; max-width: 100%; }
.profil-entete input[type="file"] { max-width: 100%; }
/* Lot CW — Contrôle de présence (portail DRENAET) */
.borne { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .borne { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.borne video { width: 100%; max-height: 52vh; background: #111; border-radius: 8px; object-fit: cover; }
.resultat-scan { font-size: 1.15rem; padding: .9rem 1rem; border-radius: 8px; margin: .6rem 0; min-height: 3.2rem; }
.resultat-scan.ok { background: #e3f4ea; border: 2px solid #0c7a43; }
.resultat-scan.ko { background: #fbe7e7; border: 2px solid #be1e1e; }
.resultat-scan strong { display: block; font-size: 1.3rem; }
.saisie-qr { width: 100%; font-size: 1rem; }
.presences-table tbody th { background: none; color: var(--texte); font-weight: 600; border-bottom: 1px solid var(--bordure); min-width: 180px; }
.presences-table input[type="time"] { width: 7.5em; }
.presences-table input[name^="obs"] { min-width: 160px; }
.ligne-groupe th { background: color-mix(in srgb, var(--primaire) 10%, #fff) !important; color: var(--primaire) !important; font-weight: 700; }
.presences-mode { margin-top: 12px; }
.presence-resultat { max-width: 520px; margin: 0 auto; text-align: center; }
.presence-icone { font-size: 56px; line-height: 1; margin: 8px 0; font-weight: 700; }
.presence-ok { border-top: 6px solid #0c7a43; } .presence-ok .presence-icone { color: #0c7a43; }
.presence-ko { border-top: 6px solid #be1e1e; } .presence-ko .presence-icone { color: #be1e1e; }
.badge-agent { text-align: center; }
.badge-agent .profil-photo { margin: 0 auto 8px; display: block; }
.badge-qr svg { width: 220px; height: 220px; max-width: 100%; }
.colonnes-cases { columns: 2 280px; }
.colonnes-cases .case { break-inside: avoid; }
.case-en-ligne { display: inline-flex; margin-right: 14px; }
@media print { .badge-agent { border: 2px solid #1F2A44; } }
/* Lot CY — intérim par un autre chef d'établissement */
.carte-chef-interim { border: 1px solid var(--bordure); border-left: 4px solid var(--primaire); border-radius: var(--rayon); padding: 12px 16px; margin: 10px 0; background: var(--surface); }
.carte-chef-interim .surtitre { margin: 0 0 6px; }
#chef-interim-saisie[hidden], .carte-chef-interim[hidden] { display: none !important; }
/* Lot CZ — site propre d'un CIO, d'une APFC, d'un IEPP */
.site-structure-heros { background-image: linear-gradient(color-mix(in srgb, var(--primaire) 88%, transparent), color-mix(in srgb, var(--primaire) 80%, transparent)), var(--fond-entete, none); background-size: cover; background-position: center; padding: 64px 0 80px; }
.site-structure-heros .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.site-structure-mot { flex-direction: column; }
.site-structure .site-drena-entete { background-image: linear-gradient(color-mix(in srgb, var(--primaire) 85%, transparent), color-mix(in srgb, var(--primaire) 85%, transparent)), var(--fond-entete, none); }
.site-propre { border-left: 4px solid var(--accent); }
.site-propre .adresse-site { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-propre .adresse-site input { max-width: 220px; }

/* Organigramme des services internes (lot DA) */
.org { margin: 8px 0 24px; }
.org-tete { text-align: center; margin: 0 auto 18px; padding: 14px 18px; max-width: 520px; background: var(--primaire); color: #fff; border-radius: var(--rayon); }
.org-tete .surtitre { color: #E9D7B8; margin: 0; }
.org-tete-nom { font: 600 1.25rem var(--police-titre); margin: 2px 0 0; }
.org-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: start; }
.org-service { background: var(--surface); border: 1px solid var(--bordure); border-top: 4px solid var(--primaire); border-radius: var(--rayon); padding: 12px 14px; min-width: 0; }
.org-sous { border-top-width: 1px; border-left: 4px solid var(--accent); background: var(--surface-2); padding: 10px 12px; margin-top: 10px; }
.org-entete { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.org-entete h3 { font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.org-sigle { flex: none; background: var(--primaire); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-top: 2px; }
.org-sous .org-sigle { background: var(--accent); }
.org-missions { margin: 0 0 8px; }
.org-personne { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-width: 0; }
.org-personne > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.org-personne strong { overflow-wrap: anywhere; }
.org-chef { border-bottom: 1px dashed var(--bordure); padding-bottom: 8px; }
.org-vide { color: var(--texte-doux); }
.org-role { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-weight: 700; }
.org-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--bordure); }
.org-chef .org-photo { width: 54px; height: 54px; }
.org-initiales { display: flex; align-items: center; justify-content: center; background: var(--primaire); color: #fff; font: 600 1rem var(--police-titre); }
.org-contacts a { overflow-wrap: anywhere; }
.org-agents { margin-top: 6px; }
.org-agents summary { cursor: pointer; font-weight: 600; color: var(--primaire); }
.org-agents .org-photo { width: 34px; height: 34px; }
.org-effectif { margin: 4px 0 0; }
.org-enfants { margin-top: 4px; }
.org-arbre { list-style: none; padding: 0; margin: 0; }
.org-arbre li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.org-arbre .org-ligne-nom { flex: 1 1 260px; min-width: 0; }
.org-arbre .actions-ligne { margin: 0; }
@media print { .org-agents[open] summary, .org-agents summary { list-style: none; } .org-service { break-inside: avoid; } }
.org-tete-chef { margin: 2px 0 0; font-weight: 600; color: #E9D7B8; }

/* Messagerie interne des services (lot DC) */
.tc { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 16px; align-items: start; }
.tc-titre { font-size: 1.6rem; margin-bottom: 10px; }
.tc-salons nav { display: flex; flex-direction: column; gap: 4px; }
.tc-salon { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--texte); background: var(--surface); border: 1px solid var(--bordure); min-width: 0; }
.tc-salon:hover { border-color: var(--primaire); }
.tc-actif { background: var(--primaire); color: #fff; border-color: var(--primaire); }
.tc-actif .aide { color: #E6EDE7; }
.tc-salon-nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-apercu { grid-column: 1 / -1; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-fil { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); display: flex; flex-direction: column; min-width: 0; }
.tc-entete { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--bordure); }
.tc-entete h2 { margin: 0; font-size: 1.25rem; }
.tc-entete .aide { margin: 0; }
.tc-recherche input { width: 200px; max-width: 100%; }
.tc-messages { height: min(62vh, 640px); overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); overscroll-behavior: contain; }
.tc-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 82%; }
.tc-moi { align-self: flex-end; flex-direction: row-reverse; }
.tc-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--primaire); color: #fff; display: flex; align-items: center; justify-content: center; font: 600 .8rem var(--police); }
.tc-bulle { background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px 14px 14px 4px; padding: 6px 12px 4px; min-width: 0; }
.tc-moi .tc-bulle { background: #E6EDE7; border-color: #C5D6C9; border-radius: 14px 14px 4px 14px; }
.tc-tete { margin: 0; font-size: .82rem; color: var(--texte-doux); }
.tc-tete strong { color: var(--primaire); }
.tc-tete time { margin-left: 6px; }
.tc-texte { margin: 2px 0; overflow-wrap: anywhere; white-space: normal; }
.tc-supprime .tc-bulle { opacity: .7; }
.tc-citation { display: block; border-left: 3px solid var(--accent); background: rgba(0,0,0,.04); padding: 4px 8px; margin: 4px 0; font-size: .85rem; text-decoration: none; color: var(--texte); border-radius: 4px; overflow-wrap: anywhere; }
.tc-citation span { display: block; color: var(--texte-doux); }
.tc-image img { display: block; max-width: min(260px, 100%); max-height: 220px; border-radius: 8px; margin: 4px 0; object-fit: cover; }
.tc-fichier { display: flex; gap: 8px; align-items: center; padding: 6px 8px; margin: 4px 0; border: 1px solid var(--bordure); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--texte); overflow-wrap: anywhere; }
.tc-ext { flex: none; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 6px; border-radius: 4px; }
.tc-actions { margin: 0; font-size: .8rem; display: flex; gap: 10px; }
.tc-actions .lien-bouton { font-size: .8rem; padding: 0; }
.tc-plus { text-align: center; margin: 0; }
.tc-saisie { border-top: 1px solid var(--bordure); padding: 10px 12px; }
.tc-ligne { display: flex; gap: 8px; align-items: flex-end; }
.tc-ligne textarea { flex: 1; min-width: 0; resize: none; min-height: 44px; margin: 0; font: inherit; padding: 9px 12px; border: 1px solid var(--bordure); border-radius: 10px; }
.tc-recherche input { font: inherit; padding: 6px 10px; border: 1px solid var(--bordure); border-radius: 8px; }
.tc-joindre { position: relative; overflow: hidden; padding-left: 12px; padding-right: 12px; cursor: pointer; }
.tc-joindre input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tc-reponse-a { font-size: .85rem; background: var(--surface-2); border-left: 3px solid var(--accent); padding: 4px 8px; margin-bottom: 6px; }
.tc-info { margin: 4px 0 0; min-height: 1em; }
@media (max-width: 760px) {
  .tc { grid-template-columns: 1fr; }
  .tc-salons nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .tc-salon { flex: 0 0 auto; max-width: 70vw; }
  .tc-apercu { display: none; }
  .tc-msg { max-width: 94%; }
  .tc-messages { height: 58vh; padding: 10px; }
  .tc-ligne .bouton-accent { padding-left: 12px; padding-right: 12px; }
}
.tc-groupe { margin: 12px 0 4px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-doux); }
.tc-ecrire { margin-top: 14px; display: grid; gap: 6px; }
.tc-salons { min-width: 0; }
.tc-ecrire select { width: 100%; max-width: 100%; min-width: 0; }
.tc-notif { margin-top: 12px; font-size: .88rem; }
.tc-attente .tc-bulle { opacity: .65; border-style: dashed; }
@media (max-width: 760px) { .tc-groupe { margin-top: 6px; } .tc-ecrire { grid-template-columns: 1fr auto; } .tc-ecrire label { grid-column: 1 / -1; } }

/* Programme des devoirs fusionné (lot DF) */
.intervalle { display: flex; gap: 8px; }
.intervalle input { min-width: 0; flex: 1 1 0; }
.cases-ligne { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.entete-impression { margin: 18px 0 6px; }
.entete-impression h2 { margin: 2px 0; }
.entete-impression .aide { margin: 0; }
.devoirs-jour { margin-top: 18px; }
@media print {
  .tableau-devoirs { font-size: 11px; }
  .tableau-devoirs th, .tableau-devoirs td { padding: 4px 6px; }
  .devoirs-jour { margin: 10px 0 4px; break-after: avoid; }
  .tableau-devoirs tr { break-inside: avoid; }
  .signature-impression { text-align: right; margin-top: 24px; font-weight: 700; color: #000; }
}
/* lot DG : statistiques du personnel */
.tableau-stats th[scope=row]{font-weight:400;text-align:left}
.tableau-stats .nombre{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tableau-stats .ligne-groupe th{background:var(--fond);text-transform:uppercase;font-size:.85em;letter-spacing:.03em;text-align:left}
.tableau-stats .ligne-sous-total th,.tableau-stats .ligne-sous-total td{font-weight:600}
.tableau-stats .ligne-total th,.tableau-stats .ligne-total td{font-weight:700;border-top:2px solid currentColor}
.tableau-stats .ligne-detail th{padding-left:1.6em}
.sans-retour { white-space: nowrap; }
.liste-perso .cases-gauche { justify-content: flex-start; flex-wrap: wrap; gap: 6px 16px; }
.qr-notes-boite { margin-top: 12px; padding: 16px; background: #fff; border: 2px solid var(--primaire); border-radius: var(--rayon); text-align: center; }
.qr-notes-boite svg { max-width: 100%; height: auto; }
/* lot DR : écran du QR de présence */
.ecran-reunion { text-align: center; max-width: 720px; margin: 0 auto; }
.ecran-reunion .qr-reunion svg { width: min(80vw, 420px); height: auto; }
.ecran-reunion ul { list-style: none; padding: 0; }
/* lot DU : photos du procès-verbal */
.galerie-pv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.galerie-pv figure { margin: 0; }
.galerie-pv img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; display: block; }
.galerie-pv figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
