/* IK Promo 2024 — charte Dahira Sop Naby France : noir, orange #E08604, jaune #FDCA31, gris #D9D9D9 */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: #111; background: #F5F3EF; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: #8A5200; }
a:hover { color: #5E3800; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: 3px solid #E08604; outline-offset: 2px; }
.cache { display: none !important; }
.visuel-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chargement { padding: 60px; text-align: center; color: #6B6B6B; }
.titre-m { font-family: 'Montserrat', sans-serif; font-weight: 800; }
.kicker { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; color: #8A5200; text-transform: uppercase; }
.gris { color: #6B6B6B; }
.petit { font-size: 13px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 11px; border: 1px solid #CFCAC0; background: #fff; font-weight: 600; font-size: 14px; text-decoration: none; color: #111; white-space: nowrap; }
.btn:hover { background: #F7F6F3; color: #111; }
.btn-noir { background: #111; color: #FDCA31; border: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: .4px; }
.btn-noir:hover { background: #2a2a2a; color: #FDCA31; }
.btn-orange { background: #E08604; color: #111; border: 0; font-weight: 700; }
.btn-orange:hover { background: #c97803; color: #111; }
.btn-vert { background: #1E7B3A; color: #fff; border: 0; font-weight: 700; }
.btn-vert:hover { background: #17622e; color: #fff; }
.btn-petit { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lien { background: none; border: 0; padding: 0; min-height: 0; color: #8A5200; font-weight: 600; text-decoration: underline; }
.btn-actif { background: #111 !important; color: #FDCA31 !important; border-color: #111 !important; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Champs ---------- */
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label, .etiquette { font-weight: 600; font-size: 14px; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; border: 1px solid #CFCAC0; border-radius: 11px; padding: 10px 14px; background: #fff; font-size: 16px; }
textarea.input { min-height: 120px; resize: vertical; }
.input:focus { border-color: #E08604; outline: none; box-shadow: 0 0 0 3px rgba(224,134,4,.2); }
.erreur { color: #A52A1F; font-size: 14px; font-weight: 600; }

/* ---------- Connexion ---------- */
.connexion { min-height: 100vh; display: flex; flex-wrap: wrap; }
.connexion-gauche { flex: 1 1 420px; background: #0E0E0E; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border-right: 6px solid #E08604; }
.connexion-gauche .asso { font-family: 'Montserrat'; font-weight: 700; font-size: 13px; letter-spacing: 2.5px; color: #FDCA31; }
.connexion-gauche img { width: 160px; height: 160px; }
.connexion-gauche h1 { margin: 16px 0 12px; font-family: 'Montserrat'; font-weight: 800; font-size: 40px; line-height: 1.05; }
.connexion-gauche h1 span { color: #FDCA31; }
.connexion-gauche p { margin: 0; color: #CFCFCF; font-size: 16px; max-width: 380px; }
.connexion-gauche .pied { color: #9A9A9A; font-size: 13px; }
.connexion-droite { flex: 1 1 480px; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.carte-connexion { width: 100%; max-width: 440px; background: #fff; border: 1px solid #E2DED6; border-radius: 18px; padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.carte-connexion h2 { margin: 0; font-family: 'Montserrat'; font-weight: 800; font-size: 24px; }
.code-classe { letter-spacing: 10px; font-size: 22px !important; text-align: center; }
.recherche { position: relative; }
.recherche svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; color: #6B6B6B; }
.recherche .input { padding-left: 42px; }
.resultats { border: 1px solid #E2DED6; border-radius: 12px; overflow: hidden; }
.resultat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid #EEE; cursor: pointer; min-height: 48px; }
.resultat:first-child { border-top: 0; }
.resultat:hover, .resultat.choisi { background: #FFF4DA; }
.resultat input { width: 20px; height: 20px; accent-color: #111; }
.resultat .nom { flex: 1; }
.resultat .sg { color: #6B6B6B; font-size: 13px; }

/* ---------- En-tête ---------- */
.entete { background: #0E0E0E; color: #fff; border-bottom: 4px solid #E08604; position: sticky; top: 0; z-index: 50; }
.entete-int { max-width: 1440px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.marque { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.marque:hover { color: #fff; }
.marque img { width: 40px; height: 40px; }
.marque span { font-family: 'Montserrat'; font-weight: 800; font-size: 16px; letter-spacing: 1px; }
.marque span b { color: #FDCA31; font-weight: 800; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #E6E6E6; padding: 9px 13px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { background: #222; color: #fff; }
.nav a.actif { background: #FDCA31; color: #111; font-weight: 600; }
.entete-droite { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.cloche { position: relative; width: 42px; height: 42px; border-radius: 10px; border: 1px solid #333; background: #1A1A1A; color: #fff; display: flex; align-items: center; justify-content: center; }
.cloche svg { width: 18px; height: 18px; }
.pastille { position: absolute; top: -6px; right: -6px; background: #E08604; color: #111; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #E08604; color: #111; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.menu-moi { background: none; border: 0; color: #fff; display: flex; align-items: center; gap: 8px; padding: 4px; }
.panneau-activite { position: absolute; right: 20px; top: 64px; width: min(380px, calc(100vw - 24px)); background: #fff; color: #111; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.25); padding: 8px; max-height: 70vh; overflow: auto; z-index: 60; }
.panneau-activite .ligne { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.panneau-activite .ligne:hover { background: #F5F3EF; }
.panneau-activite .quand { color: #6B6B6B; font-size: 12px; }
.bandeau { background: #FFF4DA; border-bottom: 1px solid #F0D99A; }
.bandeau-int { max-width: 1440px; margin: 0 auto; padding: 9px 20px; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Mise en page ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 20px; }
.page-etroite { max-width: 1180px; }
.titre-page { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.titre-page h1 { margin: 0; font-family: 'Montserrat'; font-weight: 800; font-size: 26px; flex: 1; }
.carte { background: #fff; border: 1px solid #E2DED6; border-radius: 16px; padding: 20px; }
.carte h2 { margin: 0 0 10px; font-family: 'Montserrat'; font-weight: 800; font-size: 18px; }
.carte-noire { background: #0E0E0E; color: #fff; border-radius: 16px; padding: 20px; }
.carte-noire .kicker { color: #FDCA31; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ligne-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pile { display: flex; flex-direction: column; gap: 12px; }
.trois-col { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-gauche { flex: 1 1 220px; max-width: 270px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.col-centre { flex: 999 1 560px; min-width: 0; }
.col-droite { flex: 1 1 300px; max-width: 360px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
@media (max-width: 900px) { .col-gauche, .col-droite { position: static; max-width: none; max-height: none; } }

/* ---------- Cours ---------- */
.sommaire-titre { padding: 4px 10px; }
.sommaire a { display: block; color: #111; text-decoration: none; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.sommaire a:hover { background: #fff; }
.sommaire a.actif { background: #fff; border: 1px solid #E2DED6; font-weight: 600; }
.sommaire .sous { display: block; font-size: 12px; color: #6B6B6B; font-weight: 400; }
.sommaire .ar-titre { font-family: 'Amiri', serif; font-size: 16px; display: block; direction: rtl; text-align: right; color: #B3261E; }
.statut { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.statut-valide { background: #E3F1E5; color: #1E5E2E; }
.statut-relecture { background: #FFF4DA; color: #5E3800; }
.statut-brouillon { background: #ECECEC; color: #444; }
.chapitre-entete { text-align: center; margin: 6px 0 22px; }
.chapitre-entete .fr { font-family: 'Montserrat'; font-weight: 800; font-size: 22px; color: #B3261E; letter-spacing: 1px; }
.chapitre-entete .arb { font-family: 'Amiri', serif; font-weight: 700; font-size: 34px; color: #B3261E; direction: rtl; line-height: 1.6; }
.partie { background: #fff; border: 1px solid #E2DED6; border-radius: 16px; padding: 26px 34px; margin-bottom: 18px; }
.partie.selectionnee { border-color: #E08604; box-shadow: 0 0 0 2px rgba(224,134,4,.25); }
.partie-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.partie-entete h2 { margin: 0; font-family: 'Montserrat'; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.partie-meta { font-size: 13px; color: #6B6B6B; margin-top: 2px; }
.partie-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.partie .doc mark.comm { background: #FFE08A; color: inherit; border-bottom: 2px solid #E08604; cursor: pointer; padding: 1px 0; }
.partie .doc mark.comm.focus { background: #FDCA31; }
.bulle-commenter { position: absolute; z-index: 40; }
@media (max-width: 640px) { .partie { padding: 18px 16px; } .page { padding: 14px; } }

/* ---------- Éditeur ---------- */
.barre-outils { position: sticky; top: 68px; z-index: 20; background: #F7F6F3; border: 1px solid #E2DED6; border-bottom: 0; border-radius: 12px 12px 0 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.barre-outils .groupe { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.outil { min-height: 36px; padding: 0 10px; border: 1px solid #E2DED6; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; }
.outil:hover { border-color: #B5AFA3; }
.outil.actif { background: #111; color: #FDCA31; border-color: #111; }
.outil-rouge { color: #B3261E; } .outil-vert { color: #1E7B3A; }
.outil-ar { font-family: 'Amiri', serif; font-size: 16px; }
.separateur { width: 1px; height: 24px; background: #D9D9D9; margin: 0 3px; }
.zone-edition { min-height: 320px; padding: 20px 24px; background: #fff; border: 1px solid #CFCAC0; border-radius: 0 0 12px 12px; outline: none; }
.zone-edition:focus { border-color: #E08604; }
.zone-edition p.is-editor-empty:first-child::before { content: 'Écris ou colle le cours ici…'; color: #9A9A9A; float: left; height: 0; pointer-events: none; }
.ProseMirror { white-space: pre-wrap; word-wrap: break-word; }
.ProseMirror-focused { outline: none; }
.aide-styles { font-size: 12px; color: #6B6B6B; }

/* ---------- Commentaires ---------- */
.commentaire { background: #fff; border: 1px solid #E2DED6; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.commentaire.focus { border: 2px solid #E08604; }
.commentaire.resolu { opacity: .65; }
.ancre { font-size: 13px; color: #5E3800; background: #FFF4DA; border-radius: 8px; padding: 4px 10px; }
.ancre.arabe { font-family: 'Amiri', serif; font-size: 17px; direction: rtl; text-align: right; }
.ancre.perdue { background: #EFEFEF; color: #555; }
.comm-tete { font-size: 14px; }
.comm-tete .quand { color: #6B6B6B; font-size: 12px; }
.comm-texte { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.reponse { margin-left: 18px; padding-left: 10px; border-left: 2px solid #E2DED6; }
.type-comm { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: #EEE; color: #333; text-transform: uppercase; letter-spacing: .4px; }
.type-faute { background: #FDE7E4; color: #8C1D16; } .type-question { background: #E6EEF9; color: #1D3E73; }

/* ---------- Historique ---------- */
.version { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 14px; border: 1px solid transparent; }
.version:hover { background: #F7F6F3; }
.version.actif { background: #FFF4DA; border-color: #F0D99A; }
.diff { white-space: pre-wrap; font-size: 15px; line-height: 1.8; unicode-bidi: plaintext; }
.diff ins { background: #D7F0DC; color: #0F4D21; text-decoration: none; }
.diff del { background: #FBDAD6; color: #8C1D16; }

/* ---------- Révisions ---------- */
.seance { display: flex; flex-direction: column; gap: 12px; }
.seance-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.seance-tete h2 { margin: 0; text-transform: capitalize; }
.choix { display: flex; gap: 6px; }
.choix .btn { flex: 1; }
.code-grand { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 40px; letter-spacing: 8px; color: #FDCA31; text-align: center; background: #1C1C1C; border: 2px solid #E08604; border-radius: 14px; padding: 12px; user-select: all; }
.etat { font-weight: 700; font-size: 14px; }
.etat-ok { color: #1E7B3A; } .etat-encours { color: #8A5200; } .etat-avenir { color: #6B6B6B; font-weight: 600; }
.noms { font-size: 13px; color: #444; }
.diagramme { display: flex; gap: 10px; align-items: flex-end; border-bottom: 2px solid #111; padding: 0 6px; height: 240px; overflow-x: auto; }
.barre { flex: 1 0 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; text-decoration: none; color: #111; }
.barre:hover { color: #111; }
.barre .val { font-weight: 700; font-size: 14px; }
.barre .rect { width: 100%; max-width: 54px; min-height: 3px; background: #111; border-radius: 7px 7px 0 0; }
.barre.actuelle .rect { background: #E08604; }
.barre:hover .rect { background: #8A5200; }
.barre .lib { font-size: 11px; color: #555; white-space: nowrap; }
table.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; color: #6B6B6B; font-size: 12px; letter-spacing: .4px; padding: 8px; border-bottom: 1px solid #E2DED6; text-transform: uppercase; }
.tableau td { padding: 9px 8px; border-bottom: 1px solid #F0EEE9; vertical-align: top; }
.defile { overflow-x: auto; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; display: inline-block; }
.pill-p { background: #E3F1E5; color: #1E5E2E; } .pill-a { background: #EDEDED; color: #444; } .pill-v { color: #9A9A9A; }
.badge-ecart { background: #FDCA31; color: #3D2600; font-weight: 700; font-size: 11px; padding: 2px 6px; border-radius: 5px; margin-left: 4px; }
.ecart { border-left: 4px solid #FDCA31; padding: 6px 10px; font-size: 14px; }
.ecart.leger { border-left-color: #D9D9D9; }
.stat { font-family: 'Montserrat'; font-weight: 800; font-size: 34px; line-height: 1.1; }
.carte-noire .stat { color: #FDCA31; }

/* ---------- Pointage (téléphone) ---------- */
.pointage { max-width: 440px; margin: 0 auto; }
.code-saisie { height: 64px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 700; letter-spacing: 10px; text-transform: uppercase; border: 2px solid #E08604; border-radius: 14px; width: 100%; }
.succes { background: #E8F5E9; border: 1px solid #B9DFBE; border-radius: 14px; padding: 14px; display: flex; gap: 10px; align-items: center; }

/* ---------- WhatsApp ---------- */
.message-wa { background: #E7F3E4; border-radius: 12px; padding: 14px 16px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tete-wa { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tete-wa h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.tete-wa h2 svg { width: 18px; height: 18px; color: #1E7B3A; }

/* ---------- Divers ---------- */
.compte-a-rebours { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.case-temps { text-align: center; background: #1C1C1C; border: 1px solid #333; border-radius: 12px; padding: 8px 14px; }
.case-temps b { display: block; font-family: 'Montserrat'; font-size: 24px; color: #FDCA31; }
.case-temps span { font-size: 12px; color: #BDBDBD; }
.option-sg { display: flex; align-items: center; gap: 10px; border: 1px solid #E2DED6; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.option-sg.choisi { border: 2px solid #E08604; background: #FFF8E8; }
.option-sg input { accent-color: #111; width: 18px; height: 18px; }
.option-sg .info { margin-left: auto; font-size: 12px; color: #6B6B6B; font-weight: 600; text-align: right; }
.option-sg .info.sugg { color: #5E3800; }
.vide { color: #6B6B6B; text-align: center; padding: 30px 10px; }
#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #111; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: min(520px, calc(100vw - 24px)); pointer-events: auto; }
.toast.err { background: #8C1D16; }
.fond-modal { position: fixed; inset: 0; background: rgba(10,10,10,.55); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; font-family: 'Montserrat'; font-weight: 800; font-size: 20px; }
.liste-eleves .ligne-eleve { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(120px, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #F0EEE9; }
@media (max-width: 640px) { .liste-eleves .ligne-eleve { grid-template-columns: 1fr 1fr; } }

/* ---------- Module « Nouvelle version » (styles externes, CSP stricte) ---------- */
.bmv-bulle{position:fixed;right:16px;bottom:16px;z-index:2147483000;max-width:min(360px,calc(100vw - 32px));background:#fff;color:#1b1f2a;border:1px solid #e3e6ee;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.18);padding:14px 16px;font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;animation:bmv-in .25s ease-out}.bmv-titre{font-weight:700;margin:0 0 4px}.bmv-texte{margin:0 0 12px;color:#5b6475}.bmv-actions{display:flex;gap:8px;justify-content:flex-end}.bmv-btn{border:0;border-radius:9px;padding:8px 14px;font:inherit;font-weight:600;cursor:pointer}.bmv-principal{background:#4b3fd1;color:#fff}.bmv-secondaire{background:#eef0f5;color:#1b1f2a}.bmv-fond{position:fixed;inset:0;z-index:2147483001;background:rgba(10,12,20,.55);display:flex;align-items:center;justify-content:center;padding:16px}.bmv-fenetre{background:#fff;color:#1b1f2a;border-radius:16px;max-width:460px;width:100%;max-height:80vh;overflow:auto;padding:20px 22px;font:14px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-shadow:0 20px 50px rgba(0,0,0,.3)}.bmv-fenetre h2{margin:0 0 4px;font-size:19px}.bmv-sous{margin:0 0 14px;color:#5b6475}.bmv-version{margin:0 0 14px}.bmv-version h3{margin:0 0 2px;font-size:15px}.bmv-date{color:#8a93a3;font-size:12px}.bmv-version ul{margin:6px 0 0;padding-left:20px}.bmv-version li{margin:3px 0}.bmv-bulle *,.bmv-fenetre *{color:inherit!important;font-family:inherit!important;letter-spacing:normal!important;text-transform:none!important;text-shadow:none!important}.bmv-bulle .bmv-texte,.bmv-fenetre .bmv-sous{color:#5b6475!important}.bmv-fenetre .bmv-date{color:#8a93a3!important}.bmv-btn.bmv-principal{color:#fff!important}@media (prefers-color-scheme:dark){.bmv-bulle .bmv-texte,.bmv-fenetre .bmv-sous{color:#a3abbb!important}}@keyframes bmv-in{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}@media (prefers-color-scheme:dark){.bmv-bulle,.bmv-fenetre{background:#1e212b;color:#eef0f5;border-color:#2e3240}.bmv-texte,.bmv-sous{color:#a3abbb}.bmv-secondaire{background:#2e3240;color:#eef0f5}}
.sep { border: 0; border-top: 1px solid #EEE; margin: 0; width: 100%; }
.bandeau svg, .succes svg, .ligne-flex > svg { width: 18px; height: 18px; flex: none; }
svg { max-width: 100%; }
/* Styles de base de ProseMirror (normalement injectés en ligne, interdits par la CSP) */
.ProseMirror { position: relative; -webkit-font-variant-ligatures: none; font-variant-ligatures: none; font-feature-settings: "liga" 0; }
.ProseMirror [contenteditable="false"] { white-space: normal; }
.ProseMirror pre { white-space: pre-wrap; }
.ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; }
.ProseMirror-hideselection *::selection { background: transparent; }
.ProseMirror-separator { display: inline !important; border: none !important; margin: 0 !important; }
.pile-sommaire > summary { cursor: pointer; list-style: none; }
.pile-sommaire > summary::-webkit-details-marker { display: none; }
@media (min-width: 901px) { .pile-sommaire > summary { pointer-events: none; } }
@media (max-width: 900px) { .pile-sommaire { background: #fff; border: 1px solid #E2DED6; border-radius: 12px; padding: 6px; } .pile-sommaire > summary::after { content: ' ▾'; } .nav a { padding: 7px 10px; font-size: 13px; } .entete-int { gap: 8px; } }
.outil-auto { background: #FFF4DA; border-color: #F0D99A; color: #5E3800; }
.grille-sg { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.carte-sg h3 { margin: 0; font-family: 'Montserrat'; font-weight: 800; font-size: 17px; flex: 1; }
.carte-sg.designe { border: 2px solid #E08604; background: #FFF8E8; }
.membres { margin: 10px 0; padding-left: 18px; font-size: 15px; line-height: 1.7; }

/* Révisions : navigation de semaine sur une seule ligne, liste repliable */
.nav-semaine { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; width: 100%; }
.nav-semaine strong { flex: 1; text-align: center; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 700px) { .nav-semaine { width: auto; } .nav-semaine strong { flex: 0 1 auto; } }
.tableau tr.cache { display: none; }
.tableau tr.moi td { background: #FFF8E6; }
.tableau .pill { white-space: nowrap; }
.btn-plier { display: block; width: 100%; margin-top: 10px; }
