/* Delta — compléments de style de l'espace privé (Mon espace et gestion). La feuille du site (site.css) fournit
   l'identité validée ; ces règles ne couvrent que les éléments propres aux écrans réels de gestion. */
.badge-nav { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #c62828; color: #fff; font-size: .78rem; font-weight: 800; line-height: 1; }
.lien-nav { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.espace-nav-in .lien-nav { font-weight: 700; color: var(--bleu); min-height: 44px; }
.lien-bouton.danger, .btn.danger { color: #8a1c12; }
.btn.danger { border-color: #8a1c12; }
.a-confirmer { background: #fff4d6 !important; color: #5c4300 !important; }
.confirmation-saisie { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 10px; border: 1.5px dashed #8a1c12; border-radius: 10px; background: #fff; }
.confirmation-saisie input { min-height: 40px; border: 1.5px solid #8a96ab; border-radius: 8px; padding: 0 10px; margin-left: 6px; }
.recherche-ligne { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.recherche-ligne input, .recherche-ligne select { min-height: 44px; border: 1.5px solid #8a96ab; border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; }
.recherche-ligne input { flex: 1 1 240px; }
a.filtre { text-decoration: none; display: inline-flex; align-items: center; }
.case-confirmation { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 12px; background: var(--bleu-pale); border-radius: 10px; font-weight: 600; }
.case-confirmation input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.form-ligne-compacte { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; width: 100%; }
.form-ligne-compacte input[type=text], .form-ligne-compacte input:not([type]) { flex: 1 1 180px; min-height: 40px; border: 1.5px solid #8a96ab; border-radius: 8px; padding: 0 10px; font: inherit; }
.form-ligne-compacte .retour, .form-ligne-compacte .resume-erreurs { flex-basis: 100%; }
.case-inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.case-inline input { width: 18px; height: 18px; }
.liste-ressources { list-style: none; padding: 0; display: grid; gap: 14px; }
.ressource-gestion h4 { margin: 0; font-size: 1.05rem; color: var(--nuit); }
.ressource-gestion .depot { margin-top: 8px; }
.lien-copie { width: 100%; margin-top: 6px; min-height: 40px; border: 1.5px solid #8a96ab; border-radius: 8px; padding: 0 10px; font: inherit; }
.notes { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 8px; }
.notes li { background: var(--creme); border: 1px solid var(--trait); border-radius: 10px; padding: 8px 12px; }
.message-libre { white-space: normal; background: var(--creme); border-radius: 10px; padding: 10px 12px; }
.chat-dispo { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.chat-dispo p { margin: 0; }
.liste-conversations { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 8px; }
.conv-ligne { display: grid; gap: 2px; text-decoration: none; color: var(--encre); background: #fff; border: 1px solid var(--trait); border-left: 5px solid #8a96ab; border-radius: 12px; padding: 10px 12px; }
.conv-ligne.non-lue { border-left-color: #c62828; }
.conv-ligne[aria-current="true"] { border-left-color: var(--bleu); box-shadow: 0 1px 2px rgba(11,32,64,.05), 0 6px 16px rgba(11,32,64,.07); }
.apercu-msg { color: var(--gris); font-size: .9rem; overflow-wrap: anywhere; }
.fil-messages { display: flex; flex-direction: column; gap: 10px; background: #b0bfef; border-radius: 14px; padding: 14px; margin: 12px 0; max-height: 55vh; overflow-y: auto; }
.msg { max-width: 82%; border-radius: 16px; padding: 10px 14px; background: #fff; color: #162b6f; overflow-wrap: anywhere; }
.msg p { margin: 0; }
.msg small { display: block; margin-top: 4px; font-size: .74rem; color: #4d5470; }
.msg-visiteur { align-self: flex-start; }
.msg-bot { align-self: flex-start; background: #eef1fb; font-style: italic; }
.msg-direction { align-self: flex-end; background: #5570b5; color: #fff; }
.msg-direction small { color: #fff; }
.chat-grille { align-items: start; }
.gestion-tuiles h2 { font-size: 1.25rem; }
@media (max-width: 640px) { .msg { max-width: 92%; } }
/* Bulles du fil : la règle « .boite p » (texte gris) ne s'applique pas aux messages */
.fil-messages .msg p { color: inherit; }
.conv-ligne .badge-nav { justify-self: start; margin-left: 0; }
/* Mission 11 : lien secondaire de connexion (bas du bloc de connexion), éditeur des articles du blog */
.espace-carte:has(> .lien-secondaire) { display: flex; flex-direction: column; }
.lien-secondaire { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--trait); text-align: left; font-size: .92rem; }
.espace-carte:has(> .lien-secondaire) > form { margin-bottom: 22px; }
.lien-secondaire a { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lien-secondaire a:hover { color: var(--bleu); }
@media (min-width: 1024px) { .editeur-blog { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); } .editeur-blog > div:last-child { position: sticky; top: 16px; } }
.adresse-ligne { display: flex; align-items: stretch; border: 1.5px solid #8a96ab; border-radius: 10px; background: #fff; overflow: hidden; }
.adresse-ligne:focus-within { outline: 3px solid var(--ciel); outline-offset: 1px; }
.prefixe-adresse { display: flex; align-items: center; padding: 0 4px 0 12px; background: var(--creme); color: var(--gris); font-size: .9rem; white-space: nowrap; }
.adresse-ligne input { flex: 1 1 auto; min-width: 0; border: 0 !important; outline: none; box-shadow: none; border-radius: 0; }
.adresse-ligne input[readonly] { background: var(--creme); color: var(--gris); }
@media (max-width: 640px) { .adresse-ligne { flex-direction: column; } .prefixe-adresse { padding: 6px 12px 0; } }
.barre-outils { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.editeur-article textarea[name="contenu"] { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; line-height: 1.55; min-height: 320px; }
.aide-contenu { margin-top: 8px; font-size: .92rem; color: var(--gris); }
.aide-contenu summary { cursor: pointer; font-weight: 700; color: var(--bleu); min-height: 32px; display: flex; align-items: center; }
.aide-contenu ul { margin: 6px 0 0 1.2em; } .aide-contenu code { background: var(--creme); border-radius: 4px; padding: 0 4px; color: var(--encre); }
.groupe-image, .groupe-seo { border: 1px solid var(--trait); border-radius: 14px; padding: 14px 16px; margin-top: 16px; }
.groupe-image legend, .groupe-seo legend { font-weight: 800; color: var(--nuit); padding: 0 6px; }
.image-article img { display: block; max-width: 100%; width: 360px; height: auto; border-radius: 10px; border: 1px solid var(--trait); }
.apercu-google { display: grid; gap: 2px; margin: 10px 0 6px; padding: 12px 14px; border: 1px dashed #8a96ab; border-radius: 10px; background: #fff; font-family: Arial, sans-serif; }
.apercu-google .g-url { font-size: .85rem; color: #202124; overflow-wrap: anywhere; }
.apercu-google .g-titre { font-size: 1.15rem; color: #1a0dab; overflow-wrap: anywhere; }
.apercu-google .g-desc { font-size: .9rem; color: #4d5156; overflow-wrap: anywhere; }
.boutons-article { flex-wrap: wrap; gap: 10px; }
.statut-article h2 { font-size: 1.2rem; }
.statut-article .recap-liste { margin-top: 10px; }
.etapes-publication { margin: 8px 0 10px 1.2em; display: grid; gap: 6px; }
.apercu-prive { position: sticky; top: 0; z-index: 60; background: #fff4d6; color: #5c4300; border-bottom: 2px solid #c79a1c; padding: 10px 0; font-size: .95rem; }
.apercu-prive a { color: #5c4300; font-weight: 700; }
.editeur-blog .boite > h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
/* Mission 12 : jauges de consommation des avis Google */
.jauge { display: inline-block; width: 120px; height: 8px; margin-left: 8px; vertical-align: middle; background: var(--trait); border-radius: 999px; overflow: hidden; }
.jauge > span { display: block; height: 100%; background: var(--bleu); }

/* --- Delta Web (mission 17) : tableau de bord, visiteurs, notifications, barre d'onglets au pouce --- */
.tdb-grille { margin-bottom: 18px; }
.tdb-carte { position: relative; }
.tdb-carte .tdb-nombre { display: block; font-size: 2rem; font-weight: 800; color: var(--bleu, #0b2040); line-height: 1.1; }
.tdb-carte.a-traiter .tdb-nombre { color: #c2185b; }
.tdb-carte h2 { font-size: 1rem; margin: 4px 0; }
.titre-tuiles { font-size: 1.1rem; margin: 18px 0 10px; }
.liste-visites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.visite-ligne a { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid #dbe3ec; border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.visite-ligne a:hover, .visite-ligne a:focus-visible { border-color: #0b2040; }
.visite-ligne.etat-parti a, .visite-ligne.etat-perime a { opacity: .72; }
.visite-ligne.controle a { border-style: dashed; }
.visite-tete { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.visite-page { font-weight: 600; overflow-wrap: anywhere; }
.visite-infos, .visite-conv { font-size: .9rem; color: #4a5a6a; }
.visite-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0; }
.visite-details dt { font-weight: 700; }
.visite-details dd { margin: 0; overflow-wrap: anywhere; }
.notif-cat { border: 1px solid #dbe3ec; border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; }
.notif-cat legend { font-weight: 700; padding: 0 6px; }
label.case { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; }
label.case input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.liste-appareils { padding-left: 18px; }
@media (max-width: 760px) {
  .tdb-grille { grid-template-columns: 1fr 1fr; }
}
@media (display-mode: standalone) { body[data-role="direction"] .entete { display: none; } }

/* ==== Mission 19 : Delta Web, visiteurs en direct et conversations (références : application Wix de Mohamed) ==== */
/* Texte défilant : boucle continue (app.js) ; texte fixe coupé proprement s'il tient, ou si les animations sont réduites */
.defil { display: block; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.defil-piste { display: inline-flex; white-space: nowrap; will-change: transform; }
.defil-texte { display: inline-block; flex: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.defil.anime { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 20px), transparent); }
.defil.anime .defil-texte { max-width: none; overflow: visible; }
.defil-copie::before { content: "•"; display: inline-block; width: 2.4em; text-align: center; opacity: .55; }

/* Pastilles d'état : vert (en ligne) / gris (arrière-plan, signal interrompu, départ détecté) */
.vd-etat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.vd-puce { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #9aa5b8; }
.vd-etat.vert { color: #11744a; } .vd-etat.vert .vd-puce { background: #1fa463; box-shadow: 0 0 0 3px rgba(31,164,99,.18); }
.vd-etat.gris { color: #5d6a80; }
.vd-avatar { position: relative; flex: none; width: 50px; height: 50px; border-radius: 50%; color: var(--teinte, #3d6fd6); background: #e8eef9; background: color-mix(in srgb, var(--teinte, #3d6fd6) 15%, #fff); display: grid; place-items: center; }
.vd-avatar svg { width: 64%; height: 64%; fill: currentColor; margin-top: 4px; }
.vd-avatar.grand { width: 44px; height: 44px; }
.vd-point { position: absolute; right: -1px; bottom: -1px; width: 15px; height: 15px; border-radius: 50%; background: #a3adbf; border: 3px solid #fff; transition: background .3s; }
.vd-point.vert { background: #1fa463; }
.vd-controle { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fff4d6; color: #7a5600; font-size: .7rem; font-weight: 700; vertical-align: middle; }

/* Liste des visiteurs (référence 3) */
.vd-panneau, .cv-panneau { max-width: 780px; background: #fff; border: 1px solid var(--trait); border-radius: 20px; box-shadow: var(--ombre); overflow: hidden; }
.vd-entete { padding: 20px 20px 10px; }
.vd-entete h2 { font-size: 1.4rem; color: var(--nuit); }
.vd-entete .mention { margin: 2px 0 0; }
.vd-dispo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; background: var(--creme); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.vd-dispo b { display: block; color: var(--nuit); font-size: 1.02rem; }
.vd-dispo .mention { display: block; margin: 2px 0 0; font-size: .86rem; line-height: 1.4; }
.vd-switch { position: relative; flex: none; width: 56px; height: 34px; border: 0; border-radius: 999px; background: #b6c0d1; cursor: pointer; transition: background .2s; }
.vd-switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.vd-switch[aria-checked="true"] { background: var(--vert-logo); }
.vd-switch[aria-checked="true"]::after { transform: translateX(22px); }
.vd-switch:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; }
.vd-switch:disabled { opacity: .6; }
.vd-liste { list-style: none; margin: 0; padding: 0; }
.vd-ligne a { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 14px 14px 20px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--trait); transition: background .15s; }
.vd-ligne:last-child a { border-bottom: 0; }
.vd-ligne a:hover { background: var(--creme); }
.vd-ligne a:focus-visible { outline: 3px solid var(--ciel); outline-offset: -3px; }
.vd-corps { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vd-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vd-nom { font-size: 1.06rem; color: var(--nuit); white-space: nowrap; }
.vd-ligne.gris .vd-nom { color: #3d4a63; }
.vd-duree { flex: none; color: var(--gris); font-size: .86rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vd-l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; color: var(--gris); font-size: .88rem; }
.vd-sep { opacity: .6; }
/* Demande de Mohamed (14/10) : « Sur la page : » sur sa ligne, le titre défile en dessous sur toute la largeur */
.vd-page { display: grid; gap: 0; min-width: 0; font-size: .93rem; color: var(--encre); }
.vd-page-lib { color: var(--gris); font-size: .82rem; line-height: 1.3; }
.vd-page .defil { font-weight: 600; }
.vd-conv { font-size: .84rem; font-weight: 600; color: var(--bleu); }
.vd-conv .badge-nav { margin-left: 4px; }
.vd-fleche { flex: none; color: #a3adbf; font-size: 1.7rem; line-height: 1; }
.vd-ligne.controle a { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fbfcfe 12px, #fbfcfe 24px); }
.vd-vide { padding: 40px 24px 36px; text-align: center; }
.vd-vide p { margin: 4px auto; max-width: 42ch; }
.vd-vide-icone svg { width: 54px; height: 54px; fill: none; stroke: #9fb0cc; stroke-width: 1.6; }
.vd-legende { padding: 4px 20px 16px; border-top: 1px solid var(--trait); font-size: .9rem; color: var(--gris); }
.vd-legende summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--bleu); }
.vd-legende p { margin: 6px 0; }

/* Bandeau permanent (référence 4) : compteur fixe, texte défilant, pause hors de la zone animée */
.bandeau-direct { position: fixed; left: 0; right: 0; bottom: 0; z-index: 49; display: flex; align-items: center; background: linear-gradient(100deg, #0b7a45, #14965a); color: #fff; box-shadow: 0 -4px 18px rgba(11,32,64,.18); }
.bandeau-direct[hidden] { display: none; }
.bd-lien { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 6px 8px 14px; color: #fff; text-decoration: none; }
.bd-lien:focus-visible { outline: 3px solid #fff; outline-offset: -4px; border-radius: 12px; }
.bd-nombre { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #0b7a45; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.bandeau-direct .defil { font-weight: 600; font-size: 1rem; letter-spacing: .005em; }
.bd-pause { flex: none; width: 44px; height: 44px; margin-right: 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.bd-pause svg { width: 18px; height: 18px; fill: currentColor; }
.bd-pause:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body.avec-bandeau-direct { padding-bottom: 66px; }
@media (min-width: 761px) {
  .bandeau-direct { left: auto; right: 24px; bottom: 24px; width: min(460px, calc(100vw - 48px)); border-radius: 999px; }
  .bd-lien { padding-left: 10px; }
  body.avec-bandeau-direct { padding-bottom: 96px; }
}
@media (max-width: 760px) {
  .bandeau-direct { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  body.avec-bandeau-direct { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
}

/* Fiche d'une visite et conversation (références 1, 2 et 5 à 7) */
.vd-fiche { display: flex; flex-direction: column; max-width: 820px; height: calc(100dvh - 200px); min-height: 540px; margin: 18px auto 24px; background: #fff; border: 1px solid var(--trait); border-radius: 20px; box-shadow: var(--ombre); overflow: hidden; }
.vd-fiche-tete { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 6px; border-bottom: 1px solid var(--trait); background: #fff; }
.vd-retour { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--nuit); }
.vd-retour:hover { background: var(--creme); }
.vd-retour svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vd-fiche-nom { flex: 1; min-width: 0; display: grid; }
.vd-fiche-nom h1 { margin: 0; font-size: 1.14rem; color: var(--nuit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-fiche-nom .vd-etat { font-size: .84rem; }
.vd-fiche-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.vd-signal { color: var(--gris); font-size: .8rem; font-variant-numeric: tabular-nums; }
.vd-duree.gris { font-size: .8rem; }
.vd-fiche-conv svg { width: 16px; height: 16px; fill: currentColor; }
.vd-fiche-conv { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--bleu-pale); color: var(--bleu); font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.vd-barre { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 6px 8px 6px 16px; border: 0; border-bottom: 1px solid var(--trait); background: var(--creme); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.vd-barre:focus-visible { outline: 3px solid var(--ciel); outline-offset: -3px; }
.vd-barre .vd-page { flex: 1; font-size: .97rem; }
.vd-chevron { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11,32,64,.14); color: var(--nuit); }
.vd-chevron svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.vd-barre.ouvert .vd-chevron svg { transform: rotate(180deg); }
.vd-details { margin: 0; padding: 2px 16px 10px; background: var(--creme); border-bottom: 1px solid var(--trait); }
.vd-details > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--trait); }
.vd-details > div:first-child { border-top: 0; }
.vd-details dt { color: var(--gris); font-size: .86rem; }
.vd-details dd { margin: 0; font-weight: 600; color: var(--encre); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.vd-details dd small { display: block; font-weight: 400; }
.vd-fil { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: linear-gradient(180deg, #f5f8fd, #eef3fb); }
.vd-fil-vide { margin: auto; max-width: 36ch; text-align: center; color: var(--gris); font-size: .93rem; }
.vd-msg { align-self: flex-start; max-width: min(80%, 520px); padding: 8px 13px 6px; border-radius: 18px 18px 18px 6px; background: #fff; box-shadow: 0 1px 2px rgba(11,32,64,.09); }
.vd-msg p { margin: 2px 0 4px; color: inherit; overflow-wrap: anywhere; line-height: 1.45; }
.vd-msg-qui { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gris); }
.vd-msg-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; font-size: .74rem; color: var(--gris); }
.vd-msg.bot { background: #fbfaff; border: 1px dashed #c4b8ec; box-shadow: none; }
.vd-msg.bot .vd-msg-qui { color: #5b45b0; }
.vd-msg.direction { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--bleu); color: #fff; }
.vd-msg.direction .vd-msg-qui, .vd-msg.direction .vd-msg-pied { color: rgba(255,255,255,.8); }
.vd-msg.envoi { opacity: .78; }
.vd-msg.ko { background: #fff2f2; color: #8a1c1c; border: 1px solid #efb4b4; }
.vd-msg.ko .vd-msg-qui, .vd-msg.ko .vd-msg-pied { color: #8a1c1c; }
.vd-reessayer { margin-left: 6px; min-height: 34px; padding: 2px 12px; border: 1.5px solid currentColor; border-radius: 999px; background: #fff; color: #8a1c1c; font: inherit; font-weight: 700; cursor: pointer; }
.vd-saisie { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--trait); background: #fff; }
.vd-saisie textarea { flex: 1; min-height: 46px; max-height: 132px; resize: none; padding: 11px 16px; border: 1.5px solid #c9d3e3; border-radius: 23px; background: var(--creme); color: var(--encre); font: inherit; font-size: 16px; line-height: 1.4; }
.vd-saisie textarea:focus { outline: none; border-color: var(--ciel); box-shadow: 0 0 0 3px rgba(0,136,206,.18); background: #fff; }
.vd-saisie textarea:disabled { opacity: .7; }
.vd-envoyer { flex: none; min-height: 46px; padding: 0 20px; border: 0; border-radius: 23px; background: var(--bleu); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vd-envoyer:disabled { background: #c9d1de; cursor: not-allowed; }
.vd-envoyer:focus-visible { outline: 3px solid var(--ciel); outline-offset: 2px; }
.vd-fiche.terminee .vd-barre { background: #f3f4f7; }
/* Téléphone : la fiche occupe tout l'écran (comme une conversation), sans barre du bas ni bandeau ; elle suit la hauteur
   visible quand le clavier est ouvert */
@media (max-width: 760px), (max-height: 560px) and (pointer: coarse) {
  .vd-fiche { position: fixed; left: 0; right: 0; top: var(--vd-decal, 0px); z-index: 70; height: var(--vd-hauteur, 100dvh); min-height: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .vd-fiche-tete { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .vd-saisie { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  html.vd-plein-ecran .onglets-pouce, body:has(.vd-fiche) .onglets-pouce, html.vd-plein-ecran .bandeau-direct { display: none; }
  html.vd-plein-ecran, html.vd-plein-ecran body { overflow: hidden; }
  .vd-msg { max-width: 86%; }
}

/* Liste des conversations (référence 4) */
.cv-dispo { margin-bottom: 0; }
.cv-dispo .vd-dispo { border-top: 0; }
.cv-relance { margin: 0; padding: 10px 20px 12px; font-size: .86rem; }
.cv-recherche { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--trait); }
.cv-recherche svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--gris); stroke-width: 2; stroke-linecap: round; }
.cv-recherche input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--encre); }
.cv-recherche input:focus { outline: none; }
.cv-recherche:focus-within { box-shadow: inset 0 -2px 0 var(--ciel); }
.cv-filtres { display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--trait); overflow-x: auto; }
.cv-filtre { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--trait); border-radius: 999px; color: var(--encre); font-size: .9rem; font-weight: 600; text-decoration: none; }
.cv-filtre[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.cv-liste { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) { .cv-liste { max-height: 68vh; overflow-y: auto; } }
.cv-ligne { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 12px 16px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--trait); transition: background .15s; }
.cv-liste li:last-child .cv-ligne { border-bottom: 0; }
.cv-ligne:hover { background: var(--creme); }
.cv-ligne:focus-visible { outline: 3px solid var(--ciel); outline-offset: -3px; }
.cv-ligne[aria-current="true"] { background: var(--bleu-pale); box-shadow: inset 4px 0 0 var(--bleu); }
.cv-ligne.fermee { opacity: .75; }
.cv-corps { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cv-l1, .cv-l2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.cv-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; color: var(--nuit); font-weight: 700; }
.cv-ligne.non-lue .cv-nom { font-weight: 800; }
.cv-date { flex: none; font-size: .82rem; color: var(--gris); }
.cv-ligne.non-lue .cv-date { color: var(--bleu); font-weight: 700; }
.cv-apercu { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gris); font-size: .94rem; }
.cv-ligne.non-lue .cv-apercu { color: var(--encre); font-weight: 600; }
.cv-nonlus { flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--bleu); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.cv-l3 { font-size: .76rem; color: #7b879c; }
.cv-vide { padding: 30px 16px; text-align: center; color: var(--gris); }

@media (prefers-reduced-motion: reduce) {
  .vd-switch, .vd-switch::after, .vd-chevron svg, .vd-point { transition: none; }
}
/* Accès aux ressources par élève (26/10/2026) : classe, contrats et accès supplémentaires séparés ; grille niveaux → matières */
.acces-separation { display: grid; gap: 12px; margin-top: 10px; }
.acces-part { border: 1px solid var(--trait); border-radius: 10px; padding: 10px 12px; background: var(--creme); }
.acces-part h3 { font-size: 1.02rem; margin: 0 0 6px; }
.acces-part ul { margin: 0; padding-left: 18px; }
.acces-grille { display: grid; gap: 10px; margin: 10px 0; }
.acces-niveau { border: 1.5px solid var(--trait); border-radius: 10px; padding: 8px 12px 4px; margin: 0; min-width: 0; }
.acces-niveau legend { font-weight: 800; color: var(--nuit); padding: 0 4px; }
.acces-niveau label.case { margin: 4px 0 8px; min-height: 32px; align-items: center; }
.acces-niveau label.case input { width: 20px; height: 20px; flex: none; }
.acces-tout { border-bottom: 1px dashed var(--trait); padding-bottom: 8px; font-weight: 700; }
.acces-marque { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bleu-pale); color: var(--nuit); margin-left: 4px; }
.acces-marque.masquee { background: #f1f1f1; color: #5b6475; }
.acces-marque.direction { background: #e6f4ea; color: #1d5b2c; }
.acces-outils { align-items: center; }
.acces-recap { margin-top: 12px; padding: 12px 14px; border: 2px solid var(--bleu); border-radius: 12px; background: #fff; }
.acces-recap:focus { outline: 3px solid var(--bleu-pale); }
.acces-recap ul { padding-left: 18px; }
.acces-garanties { margin-top: 8px; color: var(--gris); }
@media (min-width: 760px) { .acces-separation { grid-template-columns: repeat(3, 1fr); } .acces-grille { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.acces-boite { min-width: 0; overflow-wrap: anywhere; }
.acces-outils .btn { white-space: normal; text-align: left; line-height: 1.25; padding: 8px 18px; min-height: 44px; }
.acces-grille > *, .acces-separation > * { min-width: 0; }
/* Fiche élève (27/10/2026) : résumé unique, gestion des accès, sections repliables ; couleurs existantes */
.fiche-resume { min-width: 0; overflow-wrap: anywhere; }
.fiche-entete { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.fiche-identite { margin-top: 10px; }
.fiche-acces { margin-top: 10px; display: grid; gap: 6px; }
.acces-titre { font-weight: 800; color: var(--nuit); margin: 6px 0 2px; }
.acces-resume { margin: 0; padding-left: 18px; }
.acces-resume.futur { color: var(--gris); }
.acces-resume.bloque { color: var(--gris); text-decoration: line-through; text-decoration-color: rgba(138,28,18,.45); }
.acces-vide { margin: 4px 0; padding: 8px 12px; border-radius: 10px; background: var(--bleu-pale); color: var(--nuit); }
.intervention { margin-top: 10px; }
.intervention ul { margin: 4px 0 0; padding-left: 18px; }
.intervention a { color: inherit; }
.fiche-section { margin-top: 12px; border: 1px solid var(--trait); border-radius: 12px; background: #fff; }
.fiche-section > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 6px 14px; font-weight: 800; color: var(--bleu); font-family: var(--titre); }
.fiche-section > summary:focus-visible { outline: 3px solid var(--bleu-pale); outline-offset: 2px; }
.fiche-section-corps { padding: 0 14px 12px; min-width: 0; overflow-wrap: anywhere; }
.boite-douce { border: 1px solid var(--trait); border-radius: 10px; padding: 10px 12px; background: var(--creme); }
.acces-ajout { margin: 10px 0; }
.acces-modifie { margin: 8px 0 0; font-weight: 700; color: #8a5a00; }
.acces-pied { flex-wrap: wrap; gap: 10px; align-items: center; }
.activation { margin-top: 10px; }
.controles { list-style: none; padding: 0; margin: 0; }
.controles li { padding: 2px 0; }
.controles li.ok { color: #0b5a12; }
.controles li.ko { color: #8a1c12; font-weight: 700; }
.derogation { border: 1.5px dashed #c58b00; border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.derogation legend { font-weight: 800; color: #8a5a00; padding: 0 4px; }
.comptes-fiche { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.comptes-fiche > li { min-width: 0; overflow-wrap: anywhere; }
.comptes-fiche ul { margin: 0 0 6px; padding-left: 18px; }
.preuve summary { cursor: pointer; color: var(--bleu); font-size: .9rem; min-height: 32px; display: flex; align-items: center; }
.origines { display: grid; gap: 10px; }
.origine-groupe { border: 1px solid var(--trait); border-radius: 10px; padding: 8px 12px; background: var(--creme); min-width: 0; }
.origine-groupe ul { margin: 0; padding-left: 18px; }
@media (min-width: 760px) { .origines { grid-template-columns: repeat(3, 1fr); } }
.bandeau-simulation { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: #fff4d6; color: #6b4a00; border: 2px solid #c58b00; }
.files-travail { display: grid; gap: 14px; margin-top: 12px; }
.file-travail { border: 1px solid var(--trait); border-radius: 12px; padding: 10px 14px; background: #fff; min-width: 0; }
.file-travail h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.file-nombre { display: inline-block; min-width: 26px; padding: 0 8px; border-radius: 999px; background: var(--bleu-pale); color: var(--nuit); font-size: .95rem; text-align: center; }
.badge-explication { margin-top: 6px; }
.fiche-section-corps .btn, .acces-boite .btn, .fiche-resume .btn { white-space: normal; max-width: 100%; height: auto; text-align: center; }
/* Accès professeurs (27/10/2026) : onglets de la gestion des accès, espace « Consultation professeur » */
.onglets-acces { margin-bottom: 8px; }
.prof-bandeau { margin-bottom: 12px; min-width: 0; overflow-wrap: anywhere; }
.prof-titre { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prof-connexion { max-width: 560px; margin: 0 auto; }
.boite-essai { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 6px 0 0; }

/* ===== Cadre des espaces privés (direction, élève, parent, professeur ; validation du 28/10/2026) =====
   Sous le véritable en-tête du site, sans pied de page. Ordinateur (≥ 1024 px) : navigation verticale bleu nuit (#0b2040, celle
   de la barre basse de production), identité en haut, paramètres et « Se déconnecter » en bas ; contenu à droite. Téléphone et
   tablette : bande d'identité compacte, menu de gestion repliable pour la direction, barre basse propre au rôle. */
@media (max-width: 1023px) {
  body:not([data-role="public"]) > footer.pied { display: none; }
} /* Correction de Mohamed : pied public conservé sur ordinateur. */
.espace-cadre { display: grid; grid-template-columns: 264px minmax(0, 1fr); align-items: start; background: var(--creme); min-height: 70vh; }
.espace-lateral { position: sticky; top: var(--entete-h, 78px); max-height: calc(100vh - var(--entete-h, 78px)); overflow-y: auto; background: #0b2040; color: #fff; display: flex; flex-direction: column; padding: 18px 14px 16px; align-self: stretch; }
.espace-lateral a, .espace-lateral button { color: #fff; }
.el-tete { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.16); margin-bottom: 10px; }
.el-qui { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; text-decoration: none; border-radius: 12px; padding: 4px; }
.el-qui:hover { background: rgba(255,255,255,.08); }
.ec-avatar { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--vert-pale); color: var(--vert-logo); border: 2px solid var(--vert-clair);
  display: inline-flex; align-items: center; justify-content: center; font: 800 1rem var(--titre); }
.ec-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ec-avatar.grand { width: 96px; height: 96px; font-size: 1.7rem; border-color: var(--vert-logo); }
.el-nom { min-width: 0; line-height: 1.25; }
.el-nom b { display: block; font-family: var(--titre); font-size: 1rem; overflow-wrap: anywhere; }
.el-nom small { display: block; font-size: .8125rem; color: #c9d6ea; margin-top: 2px; }
.el-sortie-mobile { display: none; }
.el-replier { display: none; }
.el-menu { display: flex; flex-direction: column; flex: 1; }
.el-menu ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.el-groupe { margin: 12px 8px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a9bbd6; }
.el-menu a, .el-menu .el-sortie { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; border-left: 3px solid transparent; }
.el-menu a:hover { background: rgba(255,255,255,.08); }
.el-menu a[aria-current="page"] { background: rgba(255,255,255,.16); font-weight: 700; border-left-color: var(--vert-clair); }
.el-menu svg, .el-tete svg { width: 18px; height: 18px; flex: none; }
.el-menu .badge-nav { margin-left: auto; }
.el-bas { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 4px; }
.el-sortie { width: 100%; background: transparent; border: 1.5px solid rgba(255,255,255,.55) !important; cursor: pointer; font: inherit; font-weight: 700 !important; }
.el-sortie:hover { background: rgba(255,255,255,.1); }
.el-lien-site { border: 1.5px solid rgba(255,255,255,.3) !important; }
main.espace { min-width: 0; padding: 0 0 48px; }
main.espace > .section:first-of-type { padding-top: 18px; }
.espace-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px var(--g) 12px; border-bottom: 1px solid var(--trait); margin: 0 var(--g); flex-wrap: wrap; }
.espace-tete .fil { padding: 0 !important; margin: 0; }
.espace-tete .fil a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; background: var(--bleu-pale); font-weight: 700; text-decoration: none; }
.ec-declic { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; margin-left: auto; }
.ec-declic img { display: block; width: 128px; height: auto; aspect-ratio: 10 / 7; object-fit: contain; }
.ec-declic span { font: 800 1.05rem/1.1 var(--titre); color: var(--bleu); }
.ec-declic small { display: block; margin-top: 2px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--vert-logo); }
@media (max-width: 1023px) {
  .espace-cadre { display: block; }
  .espace-lateral { position: static; max-height: none; overflow: visible; padding: 8px var(--g); }
  .el-tete { border: 0; margin: 0; padding: 0; }
  .el-qui { padding: 2px; }
  .ec-avatar { width: 40px; height: 40px; font-size: .9rem; }
  .el-nom b { font-size: .95rem; }
  .el-sortie-mobile { display: inline-flex; width: auto; flex: none; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: .875rem; }
  .el-menu { display: none; }                                   /* familles et professeurs : la barre basse porte les rubriques */
  .espace-cadre[data-espace="direction"] .el-replier { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 12px; border-radius: 10px;
    background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.35); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
  .espace-cadre[data-espace="direction"] .el-replier svg { width: 18px; height: 18px; }
  .espace-cadre[data-espace="direction"] .el-menu.ouvert { display: flex; padding-top: 6px; }
  .espace-cadre[data-espace="direction"] .el-bas .el-sortie { display: none; }   /* déjà dans la bande */
  .espace-tete { margin: 0; padding: 10px var(--g); }
  .ec-declic span { display: none; }
  .ec-declic img { width: 96px; height: auto; }
  .espace-tete .fil { font-size: .875rem; }
}
/* barre basse (production : #0b2040, contenu blanc, actif rgba(255,255,255,.16), coins 10 px, 56 px), quatre espaces */
.onglets-pouce { display: none; }
@media (max-width: 1023px) {
  body:not([data-role="public"]) { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .onglets-pouce { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #0b2040; padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -2px 10px rgba(0,0,0,.15); }
  .onglets-pouce a { flex: 1; min-width: 0; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; text-decoration: none; font-size: .78rem; border-radius: 10px; position: relative; text-align: center; line-height: 1.15; }
  .onglets-pouce a .ic { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; } .onglets-pouce a .ic svg { width: 24px; height: 24px; }
  .onglets-pouce a[aria-current="page"] { background: rgba(255,255,255,.16); font-weight: 700; }
  .onglets-pouce .badge-nav { position: absolute; top: 4px; right: calc(50% - 22px); }
  body.clavier-ouvert .onglets-pouce { display: none; }       /* clavier du téléphone ouvert : la barre ne cache aucun champ */
  body.clavier-ouvert { padding-bottom: 0; }
}
/* lecteur : l'en-tête du site ne reste pas fixé au-dessus du document (une seule barre d'outils, celle du lecteur) */
body:has(.lecteur) .entete { position: static; }
body:has(.lecteur) .espace-lateral { top: 0; max-height: 100vh; }
.espace-titre { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
/* Hiérarchie privée stable au zoom : ne pas reprendre les grands titres promotionnels du site. */
.espace-cadre { font-size: 1rem; line-height: 1.55; }
.espace-cadre main h1 { font-size: 1.75rem; line-height: 1.25; }
.espace-cadre main h2 { font-size: 1.25rem; line-height: 1.3; }
.espace-cadre main h3 { font-size: 1.125rem; line-height: 1.35; }
.espace-cadre main .intro { font-size: 1rem; line-height: 1.55; }
.espace-cadre main .mention { font-size: .875rem; line-height: 1.55; }
.espace-cadre main :is(h1, h2, h3) { overflow-wrap: anywhere; }
.espace-cadre .espace-titre { font-size: 1.75rem; line-height: 1.25; }
.espace-cadre main > .section > .wrap > h2 { font-size: 1.375rem; line-height: 1.3; }
.espace-cadre .espace-carte h2 { font-size: 1.25rem; line-height: 1.3; }
.espace-cadre .statut h2 { font-size: 1.5rem; line-height: 1.3; }
.espace-cadre .matiere > strong { font-size: 1.125rem; line-height: 1.35; }
/* parent : enfant consulté, distinct de la personne connectée */
.enfant-consulte { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; background: #fff; border: 1px solid var(--trait); border-left: 4px solid var(--vert-logo); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.enfant-consulte p { margin: 0; }
.enfant-libelle { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--vert-fonce); margin-right: 6px; }
.enfant-changer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .95rem; }
.enfant-autre { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--bleu); border-radius: 999px; font-weight: 700; text-decoration: none; }
/* Mon compte et Mon accès : cartes proportionnées à leur contenu */
.compte-grille { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .compte-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .compte-grille .compte-securite { grid-column: 1 / -1; max-width: 760px; } }
@media (min-width: 1280px) { .compte-grille { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 4fr); } .compte-grille .compte-securite { grid-column: auto; } }
.photo-bloc { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--trait); }
.photo-bloc p { margin: 0 0 4px; }
.acces-eleve + .acces-eleve { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--trait); }
.acces-eleve h3 { font-size: 1.1rem; margin-bottom: 4px; }
.acces-liste { margin: 8px 0 0; padding-left: 18px; }
.btn-danger { background: #fff; color: #a3262a; border: 2px solid #a3262a; }
.prof-perimetre { background: var(--bleu-pale); border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; max-width: 90ch; }
/* photo : aperçu et recadrage */
.photo-dialogue { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(11,32,64,.35); }
.photo-dialogue::backdrop { background: rgba(11,32,64,.55); }
.photo-form { padding: 20px 22px; display: grid; gap: 14px; }
.photo-form h2 { font-size: 1.3rem; }
.photo-fichier { position: relative; overflow: hidden; }
.photo-fichier input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-cadre { width: min(280px, 70vw); aspect-ratio: 1; margin: 6px auto; border-radius: 50%; overflow: hidden; touch-action: none; cursor: grab; box-shadow: 0 0 0 4px var(--vert-pale), 0 0 0 6px var(--vert-logo); }
.photo-cadre canvas { width: 100%; height: 100%; display: block; }
.photo-zoom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-weight: 700; }
.photo-zoom input { width: 100%; min-height: 44px; }
.photo-actions { justify-content: flex-end; }
.compte-grille h2 { font-size: 1.3rem; margin-bottom: 10px; }
.compte-grille .recap-liste dd { overflow-wrap: anywhere; }
.infos-gauche, .infos-gauche dd, .infos-gauche dt { text-align: left; }
.infos-gauche dd { margin: 0; overflow-wrap: anywhere; }
.infos-gauche > div { display: grid; gap: 4px; margin-bottom: 12px; }
.photo-avatar { padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; flex: none; }
.volet-mdp summary { min-height: 44px; cursor: pointer; font-weight: 700; color: var(--bleu); padding: 10px 0; }
.compte-section { min-width: 0; }
.choix-niveaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; max-width: 720px; margin-top: 16px; }
.choix-niveaux .btn { width: 100%; min-height: 56px; padding: 12px 16px; border-radius: 12px; white-space: normal; text-align: center; line-height: 1.4; }
/* Verre discret commun aux seules navigations privées. Le fond opaque est la valeur de base.
   Opacité 94 % : le contenu derrière ne peut compromettre le contraste. Aucun filtre sur le lecteur ou les formulaires. */
.espace-lateral { --fond-navigation: #174a7e; --verre-navigation: rgba(23,74,126,.96); --bord-sortie: #ffa0a6; }
.onglets-pouce { --fond-navigation: #0b2040; --verre-navigation: rgba(11,32,64,.94); }
.espace-lateral, .onglets-pouce { background-color: var(--fond-navigation); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 4px 18px rgba(11,32,64,.16); }
.espace-lateral :is(a, button):focus-visible, .onglets-pouce a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.el-nom small, .el-groupe { font-size: .875rem; }
@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .espace-lateral, .onglets-pouce { background-color: var(--verre-navigation); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
@media (prefers-reduced-transparency: reduce), (prefers-reduced-motion: reduce), (forced-colors: active) {
  .espace-lateral, .onglets-pouce { background-color: var(--fond-navigation); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Classe réservée au contrôle avant/après et au repli explicite. */
html.sans-transparence .espace-lateral, html.sans-transparence .onglets-pouce { background-color: var(--fond-navigation); -webkit-backdrop-filter: none; backdrop-filter: none; }
.espace-cadre :is(button[data-deconnexion], button[data-deconnexion-professeur]) { border: 2px solid var(--bord-sortie, #b4232a) !important; }
.espace-cadre :is(button[data-deconnexion], button[data-deconnexion-professeur]) { color: #9b1c24 !important; background: #fff1f2; }
.espace-cadre :is(button[data-deconnexion], button[data-deconnexion-professeur]):hover { background: #ffe1e4; }
.espace-lateral .el-sortie:focus-visible { outline-offset: 3px; }
.acces-raccourcis { margin: 0 0 16px; }
.acces-raccourcis a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
#mes-raccourcis { scroll-margin-top: calc(var(--entete-h,78px) + 16px); }
.raccourcis-choix { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:8px; }
.raccourcis-choix label { display:flex; align-items:center; gap:10px; min-height:44px; }
.raccourcis-choix input[type="checkbox"] { width:20px; height:20px; flex:none; }
.raccourcis-ordre { padding:0; list-style-position:inside; }
.raccourcis-ordre li { display:flex; align-items:center; gap:8px; padding:8px 0; border-bottom:1px solid #d6deeb; }
.raccourcis-ordre li span { flex:1; }
.raccourcis-ordre button { min-width:44px; min-height:44px; }
.espace-cadre .lecteur-onglets { max-width: 100%; gap: 8px; }
.espace-cadre .lecteur-onglet { max-width: 100%; padding: 0 14px; min-height: 40px; line-height: 1.2; }
.espace-cadre .lecteur-onglet.actif { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0d2a5c; }
.espace-cadre a.lecteur-onglet:focus-visible { outline: 3px solid #e09a00; outline-offset: 2px; }
@media(max-width:640px){.espace-cadre .lecteur-onglets{width:100%;margin-left:0}.espace-cadre .lecteur-onglet{min-height:44px}}
@media (min-width: 1280px) { .compte-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 4fr); } }

/* Passe consolidée A01–A25 : composants privés partagés, sans modifier la charte publique. */
.entete a[href$="/espace/"] svg { width: 20px; height: 20px; vertical-align: middle; margin-right: 5px; }
.espace-contexte { min-width: 0; flex: 1; }
.espace-tete { flex-wrap: nowrap; padding: 12px 0; gap: 16px; }
.espace-tete .espace-titre { margin: 8px 0 0; }
.espace-tete .fil { font-size: .875rem; line-height: 1.5; }
.espace-tete .fil a { padding: 0 4px; min-height: 32px; }
.espace-lateral { height: calc(100dvh - var(--entete-h,78px)); min-height: 0; align-self: start; overflow: hidden; }
.el-menu { min-height: 0; }
.el-defilement { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 2px; }
.el-bas { flex: none; }
.el-menu svg, .el-tete svg { width: 21px; height: 21px; }
.espace-cadre main .boite > h2 { font-size: 1.25rem; }
.espace-cadre main .boite > h3 { font-size: 1.125rem; }
.espace-cadre main :is(.boite,.offre-complementaire,.demande-information) p + p { margin-top: 10px; }
.espace-cadre main :is(.boite,.offre-complementaire) > h2 { margin-bottom: 10px; }
.espace-cadre main .boite + .boite, .espace-cadre main .form + .boite { margin-top: 18px; }
.espace-cadre main .boite > .btn, .espace-cadre main .boite > p + .btn { margin-top: 14px; }
.statut-identite { font: 700 1.125rem/1.4 var(--titre); margin: 8px 0; }
.statut.actif { padding: 18px 22px; }
.contact-grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.contact-coordonnees address { font-style: normal; overflow-wrap: anywhere; }
.offre-complementaire { padding: 22px; border: 1px solid #a6cda2; border-left: 5px solid #2f6f38; border-radius: 16px; background: #ecf6e9; color: #142038; }
.offre-complementaire h2 { color: #255a2c; }
.offre-complementaire p { max-width: 68ch; }
.offre-complementaire .offre-repere { margin-bottom: 10px; font-size: .875rem; color: #255a2c; font-weight: 700; }
.offre-complementaire .btn { margin-top: 18px; }
.demande-information { max-width: 75ch; padding: 16px 18px; margin: 16px 0; background: #ecf6e9; border-left: 4px solid #2f6f38; border-radius: 8px; }
.parcours-etapes { font-size: .875rem; color: #4a566e; margin-bottom: 12px; }
.demande-contexte { font-weight: 700; margin: 12px 0; }
.texte-libre { white-space: pre-wrap; overflow-wrap: anywhere; }
.recap-actif > :not([data-recap-zone]) { display: none !important; }
.section:has(.recap-actif) > .wrap > :is(.demande-information,.parcours-etapes,.demande-contexte) { display: none; }
[data-recap-zone] { padding: 20px; border: 1px solid #b9c9dd; border-radius: 12px; background: #fff; }
.suivi-liste { margin-top: 24px; }
.suivi-liste > h2 { margin-bottom: 12px; }
.suivi-carte { margin-top: 14px; }
/* « Mes demandes » des familles (31/10/2026) : sections distinctes, faits de la demande en grille fluide, actions hiérarchisées,
   historique replié ; sur téléphone, tout passe à la ligne (aucun tableau, aucun débordement) */
.demandes-section + .demandes-section { margin-top: 34px; padding-top: 22px; border-top: 1px solid #dfe6f0; }
.demandes-section > h2 { font-size: 1.25rem; margin-bottom: 6px; }
.demande-declic h3 { font-size: 1.0625rem; margin: 0 0 8px; overflow-wrap: anywhere; }
.demande-faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px 18px; margin: 0 0 10px; }
.demande-faits .demande-enfant { font-weight: 700; color: #0b2040; }
.demande-faits div { min-width: 0; }
.demande-faits dt { font-size: .8125rem; color: #4a566e; font-weight: 600; }
.demande-faits dd { margin: 0; overflow-wrap: anywhere; }
.demande-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0 0; }
.demande-actions .suivi-detail { margin: 0; }
.demandes-historique { margin-top: 18px; }
.demandes-historique > summary { cursor: pointer; font-weight: 700; color: #0b2040; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.demandes-historique > summary:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; border-radius: 6px; }
.demandes-historique .demande-declic { opacity: .92; }
@media (max-width: 600px) { .demande-actions .btn { width: 100%; justify-content: center; } }
.suivi-carte h2 { font-size: 1.125rem !important; }
.suivi-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: #4a566e; font-size: .875rem; margin-bottom: 10px; }
.etat-suivi { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #eef3fb; color: #173b6e; font-weight: 700; }
.etat-suivi-proposition, .etat-suivi-precision, .etat-suivi-acceptee { background: #fff3ce; color: #684c08; }
.etat-suivi-ouverte, .etat-suivi-corrige { background: #ecf6e9; color: #255a2c; }
.etat-suivi-refusee, .etat-suivi-annulee, .etat-suivi-non_retenu { background: #f8ecee; color: #8a2734; }
.suivi-detail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 700; }
.filtres-suivi { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 16px 0; }
.filtres-suivi label { display: grid; gap: 4px; flex: 1 1 180px; font-size: .875rem; font-weight: 600; }
.filtres-suivi input, .filtres-suivi select { min-width: 0; width: 100%; min-height: 44px; padding: 8px; border: 1px solid #b9c9dd; border-radius: 8px; background: #fff; color: #142038; font: inherit; font-size: 1rem; }
.compte-grille > section { border-top: 4px solid #174a7e; }
.espace-cadre .compte-grille { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.espace-cadre .compte-grille .compte-securite { grid-column: auto; max-width: none; }
.espace-cadre main :is(.compte-grille,.contact-grille,.grille) > .boite + .boite { margin-top: 0; }
.compte-grille > section:has(#t-acces), .compte-grille > section:has(#t-perimetre) { border-top-color: #2f6f38; }
.compte-grille > #securite, .compte-grille > .compte-securite { border-top-color: #63819d; }
.compte-grille .recap-liste > div { grid-template-columns: minmax(100px,.7fr) minmax(0,1fr); }
.compte-grille dd { overflow-wrap: anywhere; }
.espace-chargement body[data-coquille] :is(.espace-bande,.espace-nav,footer.pied) { visibility: hidden; }
.espace-chargement body[data-coquille] main { min-height: 70vh; }
.espace-chargement body[data-coquille] main > * { visibility: hidden; }
.espace-chargement body[data-coquille] main::before { content: 'Chargement de votre espace…'; display: block; padding: 24px var(--g); color: #002c84; }
.lecteur-site { display: none; }
.mode-lecture .lecteur-cadre { height: var(--hauteur-lecture, calc(100dvh - 220px)); min-height: 220px; }
/* R01 (29/10/2026) : boutons courts par type, tous visibles, qui passent à la ligne ; document ouvert plein */
.mode-lecture .lecteur-onglets { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin: 0; }
/* F07 (30/10/2026) : téléphone — sélecteur sur une ligne à la place des boutons (affiché par le script) */
.lecteur-choix { display: none; }
@media (max-width: 640px) {
 .lecteur-choix-actif .lecteur-choix:not([hidden]) { display: flex; grid-column: 1 / -1; align-items: center; gap: 8px; width: 100%; margin: 0; font-weight: 700; color: #002c84; }
 .lecteur-choix select { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; border: 2px solid #002c84; border-radius: 10px; background: #fff; color: #002c84; font: inherit; font-weight: 700; }
 .lecteur-choix-actif .lecteur-onglets { display: none !important; }
}
.mode-lecture .lecteur-onglet { flex: none; white-space: nowrap; min-height: 40px; padding: 0 14px; line-height: 1.2; }
.mode-lecture .espace-titre { font-size: 1.25rem; line-height: 1.4; }
.mode-lecture .ec-declic img { width: 96px; }
@media(max-width:1023px) {
 .espace-lateral { height: auto; overflow: visible; }
 .el-defilement { overflow: visible; }
 .el-menu.ouvert { max-height: none; }
 .espace-tete { padding: 10px var(--g); gap: 10px; }
 .espace-cadre .espace-titre { font-size: 1.5rem; }
 .espace-cadre main > .section > .wrap > h2 { font-size: 1.25rem; }
 .espace-cadre main .boite > h2 { font-size: 1.1875rem; }
 .contact-grille { grid-template-columns: 1fr; gap: 16px; }
 .offre-complementaire { padding: 18px; }
 .offre-complementaire .btn { white-space: normal; line-height: 1.4; padding: 12px 18px; }
 .mode-lecture .espace-lateral, .mode-lecture + .onglets-pouce { display: none; }
 body:has(.mode-lecture) { padding-bottom: 0; }
 .mode-lecture .espace-tete { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
 .mode-lecture main > .section:first-of-type { padding-top: 8px; }
 .mode-lecture .lecteur-tete { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 10px; margin-bottom: 6px; }
 .mode-lecture .lecteur-titre { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .mode-lecture .lecteur-onglets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; width: 100%; gap: 4px; margin: 0; }
 .mode-lecture .lecteur-onglet { flex: none; white-space: nowrap; min-height: 40px; padding: 0 10px; font-size: .875rem; }
 .mode-lecture .lecteur-cadre { min-height: 140px; }
 .mode-lecture .lecteur-outils { position: static; }
}
@media(max-width:640px) {
 .compte-grille .recap-liste > div, .compte-grille .infos-gauche > div { grid-template-columns: minmax(0,1fr); gap: 3px; }
 .avenant-recap .recap-liste > div { grid-template-columns: minmax(0,1fr); gap: 3px; }
 .photo-bloc { flex-wrap: wrap; gap: 12px; }
 .espace-cadre .btn { white-space: normal; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; }
 .compte-grille .btn { max-width: 100%; }
 .ec-declic span { display: none; }
}
@media(max-height:600px) and (max-width:1023px) {
 body:has(.mode-lecture) > .entete { display: none; }
 .mode-lecture .lecteur-site { display: inline-flex; align-items: center; min-height: 44px; }
 .mode-lecture .lecteur-titre { display: none; }
 .mode-lecture .lecteur-reponses { font-size: .875rem; line-height: 1.4; padding: 4px 8px; }
 .mode-lecture .lecteur-outils { padding: 3px 6px; }
 .mode-lecture .lo-btn { min-width: 44px; min-height: 44px; }
 .mode-lecture .lecteur-onglet { min-height: 36px; padding: 0 9px; }
}
@media(max-height:600px) and (min-width:641px) and (max-width:1023px) {
 .mode-lecture .lecteur-tete { grid-template-columns: auto auto minmax(0,1fr); }
 .mode-lecture .lecteur-onglets { grid-column: 3; grid-row: 1; }
}

/* ===== Finitions du 29/10/2026 (décisions de Mohamed) =====
   Menu latéral bleu professionnel #174a7e, opaque (le flou à 96 % d'opacité était imperceptible : retiré) ; pied bleu nuit
   distinct. Effet verre mesuré, sur ordinateur seulement : fond de page très légèrement dégradé aux couleurs du site, cartes
   blanches légèrement translucides, liseré lumineux fin et ombre douce. Jamais sur le lecteur PDF, les champs de saisie ni sur
   téléphone (aucun flou : lisibilité et performances). Mascotte V9 validée : fond blanc d'origine effacé à l'affichage
   (fusion « multiply » sur fond clair), fichier inchangé ; son nom, déjà dans l'image, n'est plus répété à côté. */
.espace-lateral, .onglets-pouce { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.espace-lateral { background: #174a7e !important; background-image: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 40%) !important;
  border: 0; box-shadow: inset -1px 0 0 rgba(255,255,255,.12), 4px 0 18px rgba(11,32,64,.12); }
.onglets-pouce { background: #0b2040 !important; }
.ec-declic img { mix-blend-mode: multiply; }
.ec-declic span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1024px) {
  .espace-cadre:not(.mode-lecture) main.espace { background:
      radial-gradient(1200px 520px at 100% 0%, rgba(0,136,206,.07), transparent 60%),
      radial-gradient(900px 480px at 0% 100%, rgba(8,126,15,.06), transparent 60%), var(--creme); }
  .espace-cadre:not(.mode-lecture) main :is(.boite, .statut, a.matiere, .chapitre, .doc):not(.offre-complementaire) {
    background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px) saturate(1.15); backdrop-filter: blur(10px) saturate(1.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 1px 2px rgba(11,32,64,.05), 0 10px 28px rgba(11,32,64,.08); }
  .espace-cadre:not(.mode-lecture) main :is(a.matiere, .chapitre, .doc):hover { box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(11,32,64,.06), 0 14px 32px rgba(11,32,64,.12); }
  .espace-cadre:not(.mode-lecture) main :is(.boite, .chapitre, .doc):not(.offre-complementaire) { border-color: rgba(220,228,238,.7); }
  .espace-cadre main .boite :is(input, select, textarea) { background: #fff; }
}

/* Tableau à défilement interne (30/10/2026, contrôle tablette 820 px) : le cadre est le bloc de référence des textes réservés
   aux lecteurs d'écran (.visuellement-cache, en position absolue) placés dans les cellules ; sans cela ils échappaient au
   défilement interne et faisaient défiler la PAGE entière (Accès professeurs, direction) */
.espace-cadre .tableau { position: relative; }
/* Tableaux de gestion en cartes sur téléphone (29/10/2026) : valeurs rétrécissables et coupées (adresses longues), libellé
   au-dessus de la valeur sous 420 px ; aucun défilement horizontal de la page */
@media (max-width: 760px) {
  .espace-cadre .tableau.cartes-mobile td { grid-template-columns: minmax(0, 112px) minmax(0, 1fr); min-width: 0; overflow-wrap: anywhere; }
  .espace-cadre .tableau.cartes-mobile td > * { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 420px) {
  .espace-cadre .tableau.cartes-mobile td { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Delta Déclic (29/10/2026) : choix des matières et de la formule, accords avant paiement, prix de la direction ; une colonne sur
   téléphone, cibles tactiles d'au moins 44 px */
fieldset.formules { border: 1px solid #d6dce8; border-radius: 12px; padding: 12px 14px; margin: 12px 0; min-width: 0; }
fieldset.formules legend { font-weight: 700; padding: 0 6px; }
label.case { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; min-height: 44px; line-height: 1.4; cursor: pointer; }
label.case input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
label.case small { color: #4a5568; }
.px-niveau { margin: 12px 0; }
.px-niveau summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.px-niveau .tableau .champ { margin: 0; }
.grille.g4 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 12px 0; }
.grille.g4 .boite b { font-size: 1.6rem; color: var(--bleu); }
/* Mes accès Delta Déclic : bouton d'ajout bien séparé du tableau des matières déjà ouvertes (remarque de Mohamed) */
.declic-actions { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e3e7ef; }

/* Mascotte Delta Déclic V15 (29/10/2026) : image 3136 × 560 (titre et personnage), proportions conservées, transparente (aucune
   fusion ni fond ajouté), dans les QUATRE espaces (direction comprise, retour du pilote F06). Taille relevée le 30/10/2026 pour
   que le personnage se perçoive (70 % de la hauteur de l'image) sans rogner ni déformer : ordinateur 380 px (personnage ≈ 47 px,
   majuscules ≈ 34 px) ; tablette 300 px ; téléphone : sous le titre, toute la largeur jusqu'à 340 px ; lecteur : 170 px pour
   laisser la place au document. */
.ec-declic img { width: 380px; max-width: 100%; height: auto; aspect-ratio: 3136 / 560; mix-blend-mode: normal; object-fit: contain; }
@media (max-width: 1023px) { .ec-declic img { width: 300px; } }
@media (max-width: 640px) {
  .espace-tete { flex-wrap: wrap; }
  .espace-tete .ec-declic { order: 2; flex-basis: 100%; margin-left: 0; }
  .espace-tete .ec-declic img { width: min(100%, 340px); }
}
.mode-lecture .ec-declic img, .mode-lecture .espace-tete .ec-declic img { width: 170px; }
.mode-lecture .espace-tete { flex-wrap: nowrap; }
.mode-lecture .espace-tete .ec-declic { order: 0; flex-basis: auto; margin-left: auto; }
/* Familles et clients (31/10/2026) : année visible, recherche avancée repliée, résumé des critères actifs, export en bas de page */
.recherche-avancee { padding: 0; }
.recherche-avancee > summary { cursor: pointer; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 48px; padding: 10px 18px; font-weight: 700; color: var(--bleu); }
.recherche-avancee > summary::-webkit-details-marker { display: none; }
.recherche-avancee > summary::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.recherche-avancee[open] > summary::before { transform: rotate(45deg); }
.recherche-avancee > summary:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; border-radius: 8px; }
.recherche-avancee > form { padding: 0 18px 16px; border-top: 1px solid var(--trait); padding-top: 14px; }
.recherche-compte { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bleu-pale); color: var(--nuit); font-size: .875rem; font-weight: 700; }
.criteres-actifs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--bleu-pale); color: var(--nuit); }
.criteres-actifs ul { display: contents; list-style: none; margin: 0; padding: 0; }
.criteres-actifs li { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--trait); font-size: .875rem; overflow-wrap: anywhere; }
.criteres-titre { font-weight: 700; }
.criteres-actifs a { font-weight: 700; color: var(--bleu); min-height: 32px; display: inline-flex; align-items: center; }
.fa-export { margin-top: 22px; }
.export-liste { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.export-liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.export-liste li span { color: #4a566e; font-size: .9375rem; }
@media (max-width: 600px) { .export-liste .btn, .recherche-avancee .form-pied .btn { width: 100%; justify-content: center; } }
.fa-annee { margin-bottom: 16px; }
.fa-annee + .btn-row { margin: 0 0 16px; }
.recherche-avancee { margin-bottom: 12px; }
@media (min-width: 700px) {
  .fa-annee { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
  .fa-annee .form-ligne { flex: 0 1 340px; margin: 0; display: block; }
  .fa-annee select { width: 100%; }
  .fa-annee .form-ligne .champ { margin-bottom: 0; }
  .fa-annee .form-pied { margin: 0; padding: 0; border: 0; }
}
/* Fiche famille en consultation (31/10/2026) : lecture d'abord, formulaires à la demande, actions sensibles séparées */
.fiche-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.fiche-entete h2 { margin: 0; }
.fiche-resume h2 small { font-weight: 600; color: #4a566e; font-size: .95rem; margin-left: 6px; }
.fiche-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--trait); }
.fiche-liste { list-style: none; margin: 0; padding: 0; }
.fiche-liste > li { padding: 12px 0; border-top: 1px solid var(--trait); }
.fiche-liste > li:first-child { border-top: 0; padding-top: 4px; }
.fiche-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.fiche-contrat > p:first-child { margin: 0 0 6px; }
.fiche-doc { margin: 6px 0 0; }
.non-renseigne { color: #8a4b08; font-style: italic; }
.fiche-manque { margin: 10px 0; padding: 10px 14px; border-radius: 10px; background: #fff3ce; color: #684c08; }
.fiche-manque ul { margin: 4px 0 0; padding-left: 20px; }
.fiche-complete { margin: 10px 0; color: #255a2c; font-weight: 600; }
.fiche-historique > summary { cursor: pointer; font-weight: 800; color: var(--nuit); font-size: 1.15rem; min-height: 44px; display: flex; align-items: center; gap: 8px; }
.fiche-historique > summary:focus-visible, .action-sensible > summary:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; border-radius: 6px; }
.fiche-sensibles { border: 1px solid #f1c4bf; background: #fffaf9; }
.action-sensible { border-top: 1px solid #f1c4bf; }
.action-sensible > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: #b42318; font-weight: 700; }
.action-sensible-corps { padding: 4px 0 12px; }
@media (max-width: 600px) { .fiche-entete .btn, .fiche-ligne .btn, .fiche-form .form-pied .btn, .action-sensible .form-pied .btn { width: 100%; justify-content: center; } }
.fiche-avenants { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--bleu); background: var(--bleu-pale); border-radius: 0 8px 8px 0; }
.fiche-avenants ul { margin: 4px 0 0; padding-left: 18px; }
/* avenants préparés depuis la fiche (31/10/2026) et retour explicite en tête des sous-pages Familles */
.fiche-avenants-suivi { margin-top: 10px; }
.fiche-avenants-suivi .fiche-liste { margin-top: 6px; }
.avenant-suivi { padding: 10px 12px; border: 1px solid var(--trait); border-radius: 8px; margin-bottom: 8px; }
.avenant-suivi .suivi-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.avenant-suivi form { margin-top: 6px; }
.lien-retour { margin: 0 0 12px; }
.lien-retour a { font-weight: 600; }
.fiche-matieres { margin: 0; padding-left: 18px; }
.fiche-matieres li { margin: 2px 0; overflow-wrap: anywhere; }
.apercu-recette { margin-top: 12px; padding: 12px 14px; border: 1px dashed #b8860b; border-radius: 10px; background: #fffaf0; }
.apercu-texte { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: .9375rem; margin: 6px 0 0; }
/* Pages publiques des chapitres (premier lot SEO, recette) : pastilles d'état lisibles */
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-weight: 700; font-size: .85rem; line-height: 1.5; background: #eef1f6; color: #33415c; }
.badge.actif { background: #e3f3e4; color: #0b6b12; } .badge.attente { background: #fff4d6; color: #5c4300; }
.badge.suspendu { background: #fde8e6; color: #9b1c13; } .badge.expire { background: #eef1f6; color: #4a566e; }
/* Section « Page publique du chapitre » (fiche du chapitre, direction) : distinguée, boutons espacés */
.page-publique-dir { background: #f4f8fd; border: 1px solid #d6e2f2; border-top: 5px solid var(--bleu, #002c84); border-radius: 16px; padding: 22px 24px; }
.page-publique-dir .ppd-tete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-publique-dir .ppd-tete h2 { margin: 0; }
.page-publique-dir .ppd-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bleu, #002c84); color: #fff; flex: none; }
.page-publique-dir .ppd-ico svg { width: 22px; height: 22px; }
.page-publique-dir .btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 14px 0 6px; }
.page-publique-dir h3 { margin: 20px 0 8px; }
.page-publique-dir .ppd-extraits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.page-publique-dir .ppd-extraits > li { background: #fff; border: 1px solid #d6e2f2; border-radius: 12px; padding: 12px 14px; }
.page-publique-dir .ppd-extraits .btn, .page-publique-dir .ppd-extraits a { margin-top: 8px; }
.page-publique-dir .ppd-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 8px; }
/* Image d'extrait par-dessus la page */
.zoom-extrait { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; overflow: auto; cursor: zoom-out; }
.zoom-extrait::backdrop { background: rgba(11, 32, 64, .8); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .zoom-extrait::backdrop { background: rgba(11, 32, 64, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } }
.zoom-extrait img { display: block; margin: 64px auto 28px; max-width: min(1100px, 94vw); height: auto; background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.zoom-extrait .zoom-fermer { position: fixed; top: 12px; right: 12px; z-index: 1; font: inherit; font-weight: 700; min-height: 44px; padding: 0 18px; color: #002c84; background: rgba(255, 255, 255, .92); border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
@media (max-width: 599px) { .zoom-extrait img { margin: 68px 0 16px; max-width: 100vw; width: 100vw; border-radius: 0; } }
/* Ressource qui vient d'être ajoutée (ancre #res-N) : mise en évidence et marge sous l'en-tête fixe */
.res-carte { scroll-margin-top: 96px; }
.res-carte:target { outline: 3px solid #2f8a3e; outline-offset: 3px; border-radius: 14px; animation: res-nouvelle 2.4s ease-out 1; }
@keyframes res-nouvelle { 0% { box-shadow: 0 0 0 10px rgba(47, 138, 62, .28); } 100% { box-shadow: 0 0 0 0 rgba(47, 138, 62, 0); } }

/* Espaces parent et élève (recette du 08/11/2026, revue du pilote, direction design) : cadre commun des pages familles —
   variables et composants Delta existants (.boite, .filtre, .etat-compte) ; aucune nouvelle couleur. Marges : --g (16 px téléphone,
   24 px et plus sur ordinateur) ; textes de lecture limités à ~72 caractères ; cartes réellement dessinées ; deux panneaux de paiement. */
main.espace > .section.fam:first-of-type { padding-top: 18px; }
.section.fam { padding-bottom: 32px; }
.fam .wrap > h1 { margin: 0 0 14px; }
.fam .filtres { margin: 0 0 16px; }
.fam .fam-texte, .fam > .wrap > p, .fam .mention { max-width: 72ch; }
.fam-section { margin: 28px 0 12px; font-size: 1.15rem; }
.fam-grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: stretch; margin: 0 0 16px; }
.fam-carte { display: flex; flex-direction: column; gap: 6px; box-shadow: var(--ombre); }
.fam-carte h2 { margin: 0 0 4px; font-size: 1.1rem; line-height: 1.3; color: var(--bleu); }
.fam-carte p { margin: 0; }
.fam-carte .fam-actions { margin-top: auto; padding-top: 10px; }
.fam-pour { font-weight: 700; color: var(--vert); }
.fam-liste { margin: 0; padding-left: 18px; }
.fam-liste li { margin: 4px 0; }
.fam .boite { margin-bottom: 16px; }
.fam-actions .btn { min-height: 44px; }
.fam-actions .btn:disabled { opacity: .5; cursor: not-allowed; }
/* en-tête compact sur téléphone (revue du pilote, 08/11/2026) : logo Delta Déclic réduit, les actions restent visibles */
@media (max-width: 599px) { .ec-declic img { width: 64px; } }

/* Paiements : règles déplacées dans paiements-famille.css (09/11/2026), chargée par la page elle-même (espace et Gestion du centre) */

/* B1 (08/11/2026, GO du pilote) — composants COMMUNS des pages familles (élève et parent), identité Delta R4 : bleu #002c84, vert,
   bleu nuit, fonds pâles ; une seule apparence de carte, de titre et de bouton pour Accueil, Paiements, Stages, Messages, Contact.
   Titres : 1.75rem (≈ 27-28 px, R4) ; 1.5rem sur téléphone (R4 : 24 px). Boutons : rectangles à coins arrondis (décision de Mohamed
   pour Paiements, étendue aux pages familles par cohérence), 44 px au moins. Aucun comportement, droit ni calcul modifié. */
.fam { --fam-rayon: 14px; --fam-bord: var(--trait); --fam-ombre: 0 1px 2px rgba(11,32,64,.04), 0 8px 28px rgba(11,32,64,.06); --fam-btn-rayon: 12px; }
.fam .wrap > h1 { font-size: 1.75rem; line-height: 1.25; color: var(--bleu); }
@media (max-width: 599px) { .fam .wrap > h1 { font-size: 1.5rem; } }
.fam .fam-carte, .fam .fp-bloc, .fam .fp-detail { background: #fff; border: 1px solid var(--fam-bord); border-radius: var(--fam-rayon); box-shadow: var(--fam-ombre); }
.fam .fam-carte { padding: 18px 20px; }
.fam .btn { border-radius: var(--fam-btn-rayon); min-height: 44px; }
.fam .btn:focus-visible, .fam .fp-btn:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.fam .fam-section { color: var(--bleu); }
.fam .filtres .filtre { border-radius: 10px; }
/* B1, constat sur capture (08/11) : les actions des cartes familles (« M'inscrire », « Voir les paiements », « Ouvrir »…) utilisaient
   le .btn de base du site, sans fond ni bord : lues comme du texte. Bouton secondaire visible, même forme que « Par virement » (R3). */
.fam .btn:not(.plein):not(.fp-btn):not([class*="btn-"]) { background: #fff; color: var(--bleu); border: 1.5px solid var(--bleu); padding: 0 18px; font-size: .95rem; }
.fam .btn:not(.plein):not(.fp-btn):not([class*="btn-"]):hover { background: var(--bleu-pale, #eef3fb); }
.fam .fam-carte .fam-actions { margin-top: auto; padding-top: 12px; }
/* B1, constat sur capture (08/11) : cartes d'une même rangée décalées en hauteur (marge héritée entre .boite successives) */
.espace-cadre main .fam .fam-grille > .fam-carte { margin: 0; }
/* Mon compte › Mes contrats et avenants (08/11/2026) : liste simple, avenants rattachés sous leur contrat */
.doc-annee { margin: 14px 0 4px; font-size: 1rem; color: #002c84; }
.doc-liste { list-style: none; margin: 0; padding: 0; }
.doc-ligne { padding: 12px 0; border-top: 1px solid #dfe6ef; }
.doc-ligne:first-child { border-top: 0; }
.doc-tete { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.doc-ligne > p { margin: 6px 0 0; }
.doc-avenants { list-style: none; margin: 10px 0 0; padding: 4px 0 4px 14px; border-left: 3px solid #a0d896; }
.doc-avenants li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 6px 0; }
.docs-grille { display: grid; gap: 16px; }
.docs-grille .btn { min-height: 44px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-ligne h3, .espace-carte h3.doc-annee { margin-top: 14px; }

/* Factures (09/11/2026) : onglets de fiche et liste des factures déposées */
.fiche-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; border-bottom: 1px solid #d9dee7; }
.fiche-onglets a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: inherit; border-bottom: 3px solid transparent; }
.fiche-onglets a[aria-current="page"] { border-bottom-color: currentColor; font-weight: 700; }
.fac-liste { list-style: none; margin: 0; padding: 0; }
.fac-ligne { padding: 12px 0; border-top: 1px solid #e3e7ee; }
.fac-ligne:first-child { border-top: 0; }
.fac-ligne.est-retiree { opacity: .75; }
.fac-ligne .btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.fac-retrait { margin-top: 8px; }
.fac-retrait summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }

/* Mes documents (10/11/2026) : résumé factures · contrats · avenants */
.docs-resume { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; padding: 0; }
.docs-resume li { background: #eef4fb; border: 1px solid #d5e3f3; border-radius: 999px; padding: 4px 12px; font-size: .92rem; }

/* Barre basse à six rubriques (Mes documents, 10/11/2026) : libellés lisibles à 390 px */
@media (max-width: 420px) { .onglets-pouce:has(> a:nth-child(6)) a { font-size: .7rem; } }
.doc-tete .etat-nouvelle { background: #e6f4ea; color: #17602a; margin-left: 6px; }
