/* AAGEC Messagerie — styles (couleurs du cabinet : bleu pétrole #025270, cyan #2C9DD5). Animations : transform et opacity seulement. */
:root {
  --fond: #F0F6FA; --surface: #FFFFFF; --surface-2: #E3F1F8; --texte: #0F172A; --doux: #5B7083;
  --bord: #D7E9F2; --accent: #025270; --accent-2: #025270; --cyan: #2C9DD5; --moi: #025270; --moi-texte: #fff;
  --autre: #FFFFFF; --ombre: 0 1px 2px rgba(2,82,112,.06), 0 4px 14px rgba(2,82,112,.07);
  --rayon: 18px; --haut: env(safe-area-inset-top, 0px); --bas: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { --fond: #061B24; --surface: #0B2632; --surface-2: #10323F; --texte: #E6F1F6; --doux: #8FB0C0;
    --bord: #1A4252; --accent: #2C9DD5; --accent-2: #03384D; --moi: #0A6A8F; --autre: #10323F; --ombre: none; color-scheme: dark; }
}
:root[data-theme="sombre"] { --fond: #061B24; --surface: #0B2632; --surface-2: #10323F; --texte: #E6F1F6; --doux: #8FB0C0;
  --bord: #1A4252; --accent: #2C9DD5; --accent-2: #03384D; --moi: #0A6A8F; --autre: #10323F; --ombre: none; color-scheme: dark; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--fond); color: var(--texte);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { overscroll-behavior: none; }
/* 2.14.1 : pas de zoom (pincement ou double tape), comme une vraie appli */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; font-size: max(16px, 1em); color: var(--texte); } /* 16 px mini : sinon l'iPhone zoome en touchant un champ */
a { color: inherit; }
#app { height: 100%; }
/* 2.15.3 : clavier sur iPhone — l'appli prend exactement la hauteur visible (au-dessus du clavier) et reste collée en haut */
html.vv #app { position: fixed; top: 0; left: 0; right: 0; height: var(--hauteur-visible, 100%); overflow-y: auto; overscroll-behavior: contain; }
html.clavier { --bas: 0px; }
[hidden] { display: none !important; }
.doux { color: var(--doux); } .petit { font-size: .85rem; } .centre { text-align: center; }

.chargement { height: 100%; display: grid; place-items: center; }
.chargement img { animation: respire 1.4s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(.92); opacity: .7; } }

/* Écrans d'accueil */
.ecran-centre { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(24px + var(--haut)) 20px calc(24px + var(--bas)); gap: 10px; text-align: center; }
.ecran-centre h1 { margin: 6px 0 0; font-size: 1.7rem; }
.logo-grand { width: 110px; height: 110px; }
.carte { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 18px; border: 1px solid var(--bord); }
.formulaire { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; text-align: left; }
.formulaire label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: var(--doux); }
.formulaire input:not([type=checkbox]), .formulaire select { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); }
.formulaire label.case { flex-direction: row; align-items: center; gap: 10px; color: var(--texte); }
.case input { width: 20px; height: 20px; accent-color: var(--accent); }
.code { font-size: 2.2rem; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; padding: 14px !important; }
.erreur { color: #DC2626; margin: 0; font-size: .9rem; }
.btn { background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; transition: transform .12s; }
:root[data-theme="sombre"] .btn { color: #04202B; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .btn { color: #04202B; } :root[data-theme="auto"] .btn.secondaire, :root[data-theme="auto"] .ligne-option { color: var(--texte); } }
:root[data-theme="sombre"] .btn.secondaire, :root[data-theme="sombre"] .ligne-option { color: var(--texte); }
.btn:active { transform: scale(.97); }
.btn.grand { font-size: 1.15rem; padding: 15px; }
.btn.petit { padding: 8px 12px; font-size: .88rem; border-radius: 11px; }
.btn.secondaire { background: var(--surface-2); color: var(--texte); }
.lien { color: var(--accent); text-decoration: underline; padding: 8px; }

/* Cadre */
.cadre { height: 100%; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
.cadre > .colonne-liste, .cadre > .colonne-chat { grid-row: 1; grid-column: 1; }
.colonne-liste, .colonne-chat { min-height: 0; min-width: 0; height: 100%; display: flex; flex-direction: column; position: relative; }
.colonne-chat { display: none; background: var(--fond); }
.cadre.avec-chat .colonne-liste { display: none; }
.cadre.avec-chat .colonne-chat { display: flex; }
@media (min-width: 820px) {
  .cadre { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
  .cadre .colonne-liste { display: flex !important; border-right: 1px solid var(--bord); }
  .cadre .colonne-chat { display: flex; grid-column: 2; grid-row: 1 / 3; }
  .cadre .barre-bas { display: flex !important; border-right: 1px solid var(--bord); }
  .barre-chat .retour { display: none; }
}
.vide-chat { margin: auto; text-align: center; color: var(--doux); }
.vide-chat .mascotte { opacity: .9; }

.barre { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--haut)) 14px 10px; background: var(--accent-2); color: #fff; min-height: 60px; flex: none; }
.barre b { font-size: 1.1rem; }
.titre-appli { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; flex: 1; }
.actions { display: flex; gap: 6px; align-items: center; }
.icone { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; position: relative; flex: none; transition: transform .12s; }
.icone:active { transform: scale(.9); }
.retour { font-size: 2rem; line-height: 1; color: #fff; }
.pastille { position: absolute; top: 0; right: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--cyan); color: #fff; font-size: .72rem; display: grid; place-items: center; font-weight: 700; }
.ligne .pastille, .onglets .pastille { position: static; }

.onglets { display: flex; gap: 6px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--bord); }
.onglets button { flex: 1; padding: 9px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--doux); display: flex; gap: 6px; justify-content: center; align-items: center; }
.onglets button.actif { background: var(--surface-2); color: var(--texte); }

.bandeau { display: block; width: calc(100% - 20px); margin: 10px; padding: 12px; border-radius: 14px; background: var(--surface-2); color: var(--texte); font-weight: 600; text-align: left; }
.liste { flex: 1; overflow-y: auto; padding: 4px 0 90px; background: var(--surface); }
.vide { padding: 30px 20px; text-align: center; color: var(--doux); }
.ligne { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--bord); }
.ligne.active { background: var(--surface-2); }
.ligne-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne-haut, .ligne-bas { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ligne-haut b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-haut small { color: var(--doux); flex: none; }
.apercu { color: var(--doux); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.non-lue .apercu { color: var(--texte); font-weight: 600; }
.fab { position: absolute; right: 18px; bottom: calc(18px + var(--bas)); width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.5rem; box-shadow: 0 6px 20px rgba(2,82,112,.35); transition: transform .12s; }
.fab:active { transform: scale(.92); }

.avatar { position: relative; --c: #64748B; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; flex: none;
  background: color-mix(in srgb, var(--c) 22%, var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.avatar.petit { width: 36px; height: 36px; font-size: 1.2rem; }
.avatar.mini { width: 30px; height: 30px; font-size: 1rem; }
.avatar.grand { width: 60px; height: 60px; font-size: 2rem; }
.avatar.enorme { width: 96px; height: 96px; font-size: 3.2rem; margin: 0 auto; }
.duo-av { position: relative; width: 48px; height: 48px; flex: none; }
.duo-av .avatar:first-child { position: absolute; top: 0; left: 0; }
.duo-av .avatar:last-child { position: absolute; bottom: 0; right: 0; }
.moi-bouton .avatar { box-shadow: 0 0 0 2px #fff; }

/* Discussion */
.barre-chat { gap: 8px; }
.barre-chat .avatar, .barre-chat .duo-av { transform: scale(.85); }
.titre-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.titre-chat b, .titre-chat small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titre-chat small { opacity: .75; font-size: .8rem; }
.fil { flex: 1; overflow-y: auto; padding: 10px 10px 6px; overscroll-behavior: contain; }
.fil-dedans { display: flex; flex-direction: column; gap: 3px; max-width: 900px; margin: 0 auto; }
.jour { text-align: center; margin: 12px 0 6px; }
.jour span { background: var(--surface); color: var(--doux); font-size: .78rem; padding: 4px 12px; border-radius: 20px; box-shadow: var(--ombre); }
.msg { display: flex; gap: 6px; align-items: flex-end; margin-top: 6px; animation: arrive .18s ease-out; }
.msg.suite { margin-top: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } }
.msg.a-moi { justify-content: flex-end; }
.msg-av { width: 30px; flex: none; }
.bulle { --c: #64748B; max-width: min(78%, 560px); background: var(--autre); padding: 8px 12px 6px; border-radius: 18px 18px 18px 6px; box-shadow: var(--ombre);
  border-left: 3px solid color-mix(in srgb, var(--c) 70%, transparent); position: relative; user-select: text; -webkit-user-select: text; -webkit-touch-callout: none; }
.msg.suite .bulle { border-radius: 6px 18px 18px 6px; }
.a-moi .bulle { background: var(--moi); color: var(--moi-texte); border-radius: 18px 18px 6px 18px; border-left: 0; }
.a-moi.suite .bulle { border-radius: 18px 6px 6px 18px; }
.auteur { display: block; font-size: .8rem; color: var(--c); margin-bottom: 2px; }
.texte { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.texte a { text-decoration: underline; }
.meta { display: block; text-align: right; font-size: .7rem; opacity: .7; margin-top: 2px; }
.gros-emoji .bulle { background: none; box-shadow: none; border: 0; padding: 0 4px; }
.gros-emoji .texte { font-size: 2.8rem; line-height: 1.15; }
.gros-emoji.a-moi .meta { color: var(--doux); }
.masque .bulle { opacity: .55; outline: 2px dashed #EF4444; outline-offset: -2px; }
.retire { font-style: italic; opacity: .8; }
.envoi { opacity: .6; }
.photo { display: block; padding: 0; border-radius: 12px; overflow: hidden; width: min(260px, 60vw); max-height: 340px; background: var(--surface-2); margin: 2px -4px 2px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.legende { margin-top: 4px; }
.vocal { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 4px 0; }
.lecture { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 1rem; flex: none; }
.piste { flex: 1; height: 6px; border-radius: 3px; background: color-mix(in srgb, currentColor 22%, transparent); overflow: hidden; }
.avance { display: block; height: 100%; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }
.temps { font-size: .8rem; font-variant-numeric: tabular-nums; }

#pied-chat { flex: none; background: var(--surface); border-top: 1px solid var(--bord); padding-bottom: var(--bas); }
.compose { display: flex; align-items: flex-end; gap: 4px; padding: 8px; max-width: 900px; margin: 0 auto; }
.compose textarea { flex: 1; resize: none; border: 1px solid var(--bord); background: var(--surface-2); border-radius: 22px; padding: 10px 14px; max-height: 140px; line-height: 1.35; outline: none; }
.compose textarea:focus { border-color: var(--accent); }
.rond { background: var(--accent); color: #fff; font-size: 1.1rem; }
.info-pied { padding: 14px 16px; text-align: center; color: var(--doux); font-size: .92rem; }
.info-pied.pause { color: var(--texte); font-weight: 600; }
.emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); max-height: 210px; overflow-y: auto; padding: 8px; border-bottom: 1px solid var(--bord); }
.emojis button { font-size: 1.6rem; height: 44px; border-radius: 10px; }
.emojis button:active { background: var(--surface-2); }
.enregistrement { display: flex; align-items: center; gap: 10px; padding: 8px 10px; max-width: 900px; margin: 0 auto; }
.enregistrement .doux { flex: 1; }
.point-rouge { width: 12px; height: 12px; border-radius: 50%; background: #EF4444; animation: clignote 1s infinite; }
@keyframes clignote { 50% { opacity: .2; } }
#duree-vocal { font-variant-numeric: tabular-nums; font-weight: 700; }

.visionneuse { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 50; display: grid; place-items: center; animation: fondu .15s; }
.visionneuse img { max-width: 100%; max-height: 100%; object-fit: contain; }
.visionneuse .fermer { position: absolute; top: calc(12px + var(--haut)); right: 12px; color: #fff; background: rgba(255,255,255,.15); }
@keyframes fondu { from { opacity: 0; } }

/* Feuilles (menus) */
.feuille-fond { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fondu .15s; }
.feuille { background: var(--surface); width: 100%; max-width: 560px; max-height: 92%; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + var(--bas)); display: flex; flex-direction: column; gap: 10px; animation: monte .2s ease-out; }
@media (min-width: 700px) { .feuille-fond { align-items: center; } .feuille { border-radius: 22px; } }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.feuille h3 { margin: 0 0 4px; }
.ligne-option { background: var(--surface-2); color: var(--texte); text-align: left; }
.code-geant { font-size: 3rem; font-weight: 800; letter-spacing: .12em; text-align: center; font-variant-numeric: tabular-nums; padding: 10px; background: var(--surface-2); border-radius: 16px; }
.etapes { margin: 0; padding-left: 20px; line-height: 1.6; }

/* Pages (réglages, parents, nouveau) */
.page { height: 100%; display: flex; flex-direction: column; min-width: 0; overflow-x: hidden; }
.page-dedans { flex: 1; overflow-y: auto; padding: 14px 14px calc(30px + var(--bas)); display: flex; flex-direction: column; gap: 14px; max-width: 720px; width: 100%; margin: 0 auto; }
.page-dedans h2 { margin: 8px 0 0; } .page-dedans h3 { margin: 0 0 10px; font-size: 1.05rem; }
.carte .btn { width: 100%; margin-top: 8px; }
.carte .boutons .btn { width: auto; margin-top: 0; }
.boutons { display: flex; flex-wrap: wrap; gap: 8px; }
.grille-membres { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.choix-membre { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; transition: transform .12s; }
.choix-membre:active { transform: scale(.95); }
.grille-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.grille-emojis button { font-size: 1.6rem; height: 46px; border-radius: 12px; }
.grille-emojis button.actif { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--accent); }
.couleurs { display: flex; flex-wrap: wrap; gap: 10px; }
.couleurs button { width: 34px; height: 34px; border-radius: 50%; background: var(--c); }
.couleurs button.actif { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }
.segments { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.segments button { flex: 1; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--doux); }
.segments button.actif { background: var(--surface); color: var(--texte); box-shadow: var(--ombre); }
.heures { display: flex; gap: 10px; } .heures label { flex: 1; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.membre { border-top: 1px solid var(--bord); padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.membre:first-of-type { border-top: 0; padding-top: 0; }
.membre.inactif { opacity: .5; }
.membre-haut { display: flex; gap: 12px; align-items: center; }
.membre-haut div { display: flex; flex-direction: column; }
.membre-haut small { color: var(--doux); }
.appareils { list-style: none; margin: 0; padding: 0; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }
.appareils li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.appareils small { color: var(--doux); }
.appareils .lien { padding: 0 4px; font-size: .85rem; }
.alerte { border-color: #F59E0B; }
.signalement { border-top: 1px solid var(--bord); padding: 10px 0; } .signalement:first-of-type { border-top: 0; }
.signalement p { margin: 0 0 6px; }
blockquote { margin: 0 0 8px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; }
details summary { list-style: none; cursor: pointer; } details summary::-webkit-details-marker { display: none; }
details summary h3 { display: inline; } details summary::after { content: ' ▾'; color: var(--doux); }
#journal { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 320px; overflow-y: auto; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--bas)); transform: translate(-50%, 20px); opacity: 0; background: #03384D; color: #fff; padding: 12px 18px; border-radius: 14px; z-index: 60; max-width: 90vw; text-align: center; transition: transform .25s, opacity .25s; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.vu { transform: translate(-50%, 0); opacity: 1; }
.toast.erreur { background: #B91C1C; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.ligne-version { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--bord); }
#d-versions { margin-top: 10px; }
a.btn { display: block; text-decoration: none; text-align: center; }
.feuille blockquote { white-space: normal; word-break: break-word; }
.avatar.a-photo { padding: 0; }
.avatar.a-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.centre-boutons { justify-content: center; margin: 10px 0 4px; }
.zone-modif { width: 100%; border: 1px solid var(--bord); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; resize: vertical; }

/* Appels */
.appel { position: fixed; inset: 0; z-index: 70; background: radial-gradient(circle at 50% 30%, #0A6A8F, #031E29 70%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(40px + var(--haut)) 20px calc(30px + var(--bas)); animation: fondu .2s; }
.appel #v-distante { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .3s; }
.appel #a-distant { display: none; }
.appel-video.connecte #v-distante { opacity: 1; }
.appel-haut { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.appel-haut h2 { margin: 12px 0 0; font-size: 1.6rem; }
.appel-haut p { margin: 0; opacity: .85; font-variant-numeric: tabular-nums; }
.appel-video.connecte .appel-haut .avatar, .appel-video.connecte .appel-haut h2 { display: none; }
.appel-video.connecte .appel-haut p { background: rgba(0,0,0,.35); padding: 4px 12px; border-radius: 20px; }
.appel-haut .avatar.enorme { width: 130px; height: 130px; font-size: 4rem; animation: respire 2s ease-in-out infinite; }
.appel.connecte .appel-haut .avatar { animation: none; }
#v-locale { position: absolute; right: 16px; top: calc(16px + var(--haut)); width: 28vw; max-width: 180px; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; background: #000; box-shadow: 0 6px 20px rgba(0,0,0,.4); transform: scaleX(-1); }
.appel-audio #v-locale, #v-locale:not(.actif) { display: none; }
.appel-boutons { position: relative; display: flex; gap: 22px; justify-content: center; }
.rond-appel { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 1.6rem; display: grid; place-items: center; transition: transform .12s; }
.rond-appel:active { transform: scale(.92); }
.rond-appel.rouge { background: #DC2626; }
.rond-appel.vert { background: #16A34A; animation: respire 1.2s ease-in-out infinite; }
.rond-appel.coupe { background: #fff; color: #0F172A; opacity: .9; }
.ligne-appel { text-align: center; margin: 8px 0; }
.ligne-appel button { background: var(--surface); color: var(--doux); font-size: .82rem; padding: 6px 14px; border-radius: 20px; box-shadow: var(--ombre); }
.ligne-appel button[disabled] { cursor: default; }
.ligne-appel.manque button { color: #DC2626; }
.btn.danger { background: #FEE2E2; color: #B91C1C; }
:root[data-theme="sombre"] .btn.danger { background: #3B1212; color: #FCA5A5; }
.danger-texte { color: #DC2626 !important; }

/* 2.6.0 : réglages et paramètres dans la partie droite */
.colonne-chat .page { height: 100%; }
.colonne-liste .icone.actif { background: rgba(255,255,255,.18); }
.engrenage svg { transition: transform .4s; }
.engrenage.actif svg, .engrenage:hover svg { transform: rotate(60deg); }

/* 2.7.0 : point vert « en ligne » */
.avatar .en-ligne { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 9px; min-height: 9px; border-radius: 50%;
  background: #22C55E; box-shadow: 0 0 0 2px var(--surface), 0 0 6px rgba(34,197,94,.7); }
small.vu { display: block; color: var(--doux); font-size: .8rem; }
small.vu.vert, .titre-chat small.vert { color: #22C55E; font-weight: 600; }

/* 2.10.0 : Paramètres en onglets */
.onglets-param { flex: none; }
.onglets-param button { flex: 1 1 0; white-space: nowrap; min-width: 0; }
.volet [data-act="ajouter"] { margin-bottom: 8px; }
@media (max-width: 600px) {
  .onglets-param { gap: 4px; padding: 6px; }
  .onglets-param button { flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .78rem; line-height: 1.15; }
  .onglets-param button .ico { font-size: 1.25rem; }
}
.page-dedans .volet { display: none; flex-direction: column; gap: 14px; }
.page-dedans[data-onglet="membres"] .volet[data-volet="membres"], .page-dedans[data-onglet="groupes"] .volet[data-volet="groupes"],
.page-dedans[data-onglet="affichage"] .volet[data-volet="affichage"], .page-dedans[data-onglet="maj"] .volet[data-volet="maj"] { display: flex; }
.groupe-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.groupe-ligne:last-child { border-bottom: 0; }
.groupe-ligne small { display: block; }
.groupe-ligne .boutons { grid-column: 1 / -1; }

/* 2.12.0 : barre du bas */
.barre-bas { grid-row: 2; grid-column: 1; display: flex; justify-content: space-around; gap: 4px; padding: 6px 8px calc(6px + var(--bas));
  background: var(--surface); border-top: 1px solid var(--bord); z-index: 3; }
.cadre.sans-barre .barre-bas { display: none; }
.cadre:not(.sans-barre) .colonne-chat .page .retour { display: none; }
.barre-bas button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 16px;
  color: var(--doux); font-size: .75rem; font-weight: 600; transition: background .15s, color .15s; }
.barre-bas button.actif { color: var(--texte); background: var(--surface-2); }
.barre-bas .ic { height: 28px; display: grid; place-items: center; }
.barre-bas .ic .avatar { width: 28px; height: 28px; font-size: .95rem; }
.barre-bas button.actif .ic .avatar { box-shadow: 0 0 0 2px var(--accent); }
.barre-bas .pastille { position: absolute; top: 2px; left: calc(50% + 6px); }
.barre-bas .engrenage svg { transition: transform .4s; }
.barre-bas .engrenage.actif svg { transform: rotate(60deg); }
.colonne-liste .fab { bottom: 18px; }
.ligne-appel-tout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.ligne-appel-tout:last-child { border-bottom: 0; }
.lat-txt b, .lat-txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lat-txt small { color: var(--doux); }
.ligne-appel-tout.manque .lat-txt b, .ligne-appel-tout.manque .lat-txt small { color: #EF4444; }
.liste-appels { padding-top: 4px; padding-bottom: 4px; }
.qui-appeler { display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; }
.ligne-qui { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bord); }

/* 2.15.0 : sourdine + gestes sur la liste */
.pastille.gris { background: #94A3B8; }
.ligne .cloche { font-size: .8rem; opacity: .8; }
.ligne-cont { position: relative; overflow: hidden; }
.ligne-cont .ligne { position: relative; z-index: 1; background: var(--surface); transition: transform .22s ease; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ligne-cont .ligne.active { background: var(--surface-2); }
.actions-g, .actions-d { position: absolute; top: 0; bottom: 0; display: none; }
.actions-g { left: 0; } .actions-d { right: 0; }
.ligne-cont[data-cote="g"] .actions-g, .ligne-cont[data-cote="d"] .actions-d { display: flex; }
.actions-g button, .actions-d button { width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; font-size: 1.3rem; }
.actions-g button span, .actions-d button span { font-size: .75rem; font-weight: 700; }
.act-sourdine { background: #475569; } .act-suppr { background: #DC2626; }

/* 2.16.0 : clavier d'emojis à la place du clavier (comme iPhone) */
#pied-chat.avec-emojis { padding-bottom: 0; }
.clavier-emoji { display: flex; flex-direction: column; border-top: 1px solid var(--bord); background: var(--surface); padding-bottom: var(--bas); }
.clavier-emoji[hidden] { display: none; }
.ce-titre { font-size: .78rem; font-weight: 700; color: var(--doux); padding: 8px 14px 2px; }
.ce-grille { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); align-content: start; padding: 2px 8px 8px; overscroll-behavior: contain; }
.ce-grille .ce-e { font-size: 1.85rem; height: 48px; border-radius: 10px; line-height: 1; }
.ce-grille .ce-e:active { background: var(--surface-2); }
.ce-vide { grid-column: 1 / -1; text-align: center; padding: 20px; }
.ce-bas { display: flex; align-items: center; gap: 4px; padding: 4px 8px 6px; border-top: 1px solid var(--bord); }
.ce-cats { flex: 1; display: flex; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
.ce-cats button { font-size: 1rem; min-width: 26px; flex: 1 1 0; max-width: 40px; height: 34px; border-radius: 50%; opacity: .55; filter: grayscale(.6); }
.ce-cats button.actif { opacity: 1; filter: none; background: var(--surface-2); }
.ce-abc, .ce-effacer { flex: none; height: 34px; padding: 0 9px; border-radius: 10px; font-weight: 700; color: var(--texte); background: var(--surface-2); }
.ce-effacer { font-size: 1.1rem; }

/* 2.18.0 : QR codes */
.bloc-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface-2); text-align: center; }
.bloc-qr .qr { width: min(220px, 70vw); height: auto; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }

/* ===== AAGEC Messagerie 1.0.0 ===== */
.logo-accueil { width: min(240px, 62vw); height: auto; margin-bottom: 6px; }
:root[data-theme="sombre"] .logo-accueil, :root[data-theme="sombre"] .logo-vide { filter: brightness(0) invert(1); opacity: .9; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .logo-accueil, :root[data-theme="auto"] .logo-vide { filter: brightness(0) invert(1); opacity: .9; } }
.ecran-centre h1 { color: var(--accent); }
:root[data-theme="sombre"] .ecran-centre h1 { color: var(--texte); }
.barre { background: linear-gradient(135deg, var(--accent-2), #0B4F5C); }
.barre-liste { min-height: 64px; }
.titre-appli { font-weight: 600; font-size: 1.05rem; letter-spacing: .02em; gap: 12px; }
.titre-appli span { opacity: .9; border-left: 1px solid rgba(255,255,255,.35); padding-left: 12px; }
.logo-barre { height: 34px; width: auto; }
.logo-vide { width: 170px; height: auto; opacity: .25; margin-bottom: 8px; }
.vide-chat p { margin: 0; }
.avatar.ini { background: var(--c); color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .02em; box-shadow: none; }
.avatar.ini.mini { font-size: .68rem; } .avatar.ini.grand { font-size: 1.25rem; } .avatar.ini.enorme { font-size: 2.2rem; }
.avatar.salon { border-radius: 14px; background: linear-gradient(135deg, #025270, #2C9DD5); color: #fff; box-shadow: none; }
.avatar.salon.a-photo { background: #fff; box-shadow: inset 0 0 0 1px var(--bord); }
.avatar.salon.a-photo img { border-radius: 14px; object-fit: contain; }
.avatar.salon.mini { border-radius: 8px; } .avatar.salon.mini img { border-radius: 8px; }
.avatar.groupe { --c: #2C9DD5; font-size: 1.4rem; }
.etiquette { display: inline-block; max-width: 100%; font-size: .74rem; color: var(--accent); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="sombre"] .etiquette { color: var(--cyan); }
.horloge { font-size: .8rem; opacity: .8; }
.onglets-liste { gap: 4px; padding: 6px 8px; overflow-x: auto; scrollbar-width: none; }
.onglets-liste button { flex: 1 0 auto; padding: 8px 10px; font-size: .86rem; white-space: nowrap; }
.onglets button.actif { background: var(--surface-2); color: var(--accent); }
:root[data-theme="sombre"] .onglets button.actif { color: var(--texte); }
button.titre-chat { text-align: left; color: #fff; padding: 0; }
.info-pied.dispo { background: #FFF7E6; color: #7A4B00; font-size: .86rem; padding: 10px 14px; text-align: left; border-bottom: 1px solid #F5DDAA; }
.info-pied.lecture-seule { background: var(--surface-2); font-size: .86rem; padding: 10px 14px; text-align: left; }
:root[data-theme="sombre"] .info-pied.dispo { background: #2E2511; color: #F5D38C; border-color: #4A3B17; }
.bandeau-chat:empty { display: none; }
.auteur-f { font-weight: 400; opacity: .75; }
.fichier { display: flex; align-items: center; gap: 10px; min-width: min(250px, 62vw); max-width: 340px; padding: 8px; margin: 2px -4px; border-radius: 12px;
  background: color-mix(in srgb, currentColor 8%, transparent); text-decoration: none; color: inherit; }
.fic-ic { flex: none; width: 42px; height: 48px; border-radius: 8px; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: #64748B; letter-spacing: .03em; }
.fic-ic.pdf { background: #DC2626; } .fic-ic.doc { background: #2563EB; } .fic-ic.xls { background: #16A34A; } .fic-ic.ppt { background: #EA580C; } .fic-ic.img { background: #7C3AED; } .fic-ic.zip { background: #475569; }
.fic-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fic-txt b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fic-txt small { opacity: .7; font-size: .76rem; }
.fic-dl { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, currentColor 14%, transparent); }
.titre-section { display: flex; align-items: center; gap: 8px; margin: 6px 0 0 !important; font-size: .95rem !important; color: var(--doux); }
.boutons-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.boutons-2:empty { display: none; }
.boutons-2 .btn { width: 100%; margin: 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.boutons-2 .pastille { position: static; }
.choix-membre small { font-weight: 400; font-size: .76rem; text-align: center; }
.recherche { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--bord); background: var(--surface); }
.liste-salons { padding: 4px 0; }
.liste-salons .ligne:last-child { border-bottom: 0; }
.ligne-salon-l .apercu { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ligne-compacte { padding: 10px 0; }
.ligne-compacte:last-of-type { border-bottom: 0; }
.ligne-option.ligne-salon { display: flex; align-items: center; gap: 10px; }
.note-salon { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; }
.personne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.personne:last-child { border-bottom: 0; }
.p-txt { display: flex; flex-direction: column; min-width: 0; }
.p-txt b, .p-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-txt small { font-size: .8rem; color: var(--doux); }
.p-txt small.vert, p.vert { color: #16A34A; font-weight: 600; }
.p-act { display: flex; gap: 2px; }
.p-act .icone { width: 38px; height: 38px; font-size: 1.1rem; background: var(--surface-2); }
.fiche { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.fiche h3 { margin: 8px 0 0; } .fiche p { margin: 2px 0; }
.membres-groupe { display: flex; flex-wrap: wrap; gap: 6px; }
.pastille-membre { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 20px; background: var(--surface-2); font-size: .85rem; }
.pastille-membre small { color: var(--doux); }
.horaires { display: flex; flex-direction: column; gap: 10px; }
.horaires p { margin: 0; }
.jours { display: flex; gap: 6px; }
.jour-case { flex: 1; position: relative; }
.jour-case input { position: absolute; opacity: 0; inset: 0; }
.jour-case span { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--surface-2); color: var(--doux); font-weight: 700; }
.jour-case input:checked + span { background: var(--accent); color: #fff; }
.jour-case input:focus-visible + span { outline: 2px solid var(--cyan); }
.formulaire input[type=time], .formulaire input[type=date] { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface-2); color: var(--texte); }
.formulaire textarea { color: var(--texte); }
.liste-equipe { display: flex; flex-direction: column; gap: 6px; }
.ligne-equipe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.ligne-equipe input:not([type=checkbox]) { padding: 8px 10px !important; font-size: .9rem; }
.badge-role { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .74rem; font-weight: 700; background: var(--surface-2); color: var(--accent); }
.badge-role.admin { background: #025270; color: #fff; } .badge-role.manager { background: #2C9DD5; color: #fff; }
.membre-haut small { display: block; }
.appareils-d summary { list-style: none; cursor: pointer; }
.texte-legal { font-size: .88rem; line-height: 1.5; }
.texte-legal p { margin: 0 0 10px; }
.lien-texte { color: var(--accent); text-decoration: underline; padding: 0; font-size: inherit; text-align: left; }
:root[data-theme="sombre"] .lien-texte, :root[data-theme="sombre"] .lien { color: var(--cyan); }
.formulaire label.case span { color: var(--texte); }
.ok-texte { color: #16A34A; font-weight: 600; margin: 0; }
.lq-txt { display: flex; flex-direction: column; min-width: 0; } .lq-txt small { color: var(--doux); font-size: .8rem; }
.page-dedans .volet { display: none; flex-direction: column; gap: 14px; }
.page-dedans[data-onglet="equipe"] .volet[data-volet="equipe"], .page-dedans[data-onglet="clients"] .volet[data-volet="clients"],
.page-dedans[data-onglet="reglages"] .volet[data-volet="reglages"], .page-dedans[data-onglet="maj"] .volet[data-volet="maj"],
.page-dedans[data-onglet="journal"] .volet[data-volet="journal"] { display: flex; }
#journal { max-height: none; }
.barre-bas button.actif { color: var(--accent); }
:root[data-theme="sombre"] .barre-bas button.actif { color: var(--texte); }

/* ===== 1.0.2 : appels de groupe ===== */
.salle { justify-content: flex-start; gap: 14px; padding: calc(16px + var(--haut)) 12px calc(24px + var(--bas)); }
.salle-haut { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.salle-haut b { font-size: 1.15rem; }
.salle-haut span { opacity: .8; font-size: .9rem; }
.mosaique { flex: 1; width: 100%; max-width: 1100px; display: grid; gap: 10px; grid-template-columns: 1fr; grid-auto-rows: 1fr; min-height: 0; }
.mosaique[data-n="2"] { grid-template-columns: 1fr; }
.mosaique[data-n="3"], .mosaique[data-n="4"] { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .mosaique[data-n="2"] { grid-template-columns: 1fr 1fr; } }
.tuile { position: relative; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.08); display: grid; place-items: center; min-height: 0; }
.tuile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; background: #000; }
.tuile.avec-video video { opacity: 1; }
.tuile.moi video { transform: scaleX(-1); }
.tuile audio { display: none; }
.tuile-av .avatar.enorme { width: min(110px, 22vw); height: min(110px, 22vw); }
.tuile-nom { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.45); color: #fff; padding: 3px 10px; border-radius: 12px; font-size: .85rem; }
.tuile.fragile { outline: 2px solid #F59E0B; }
.salle .appel-boutons { flex: none; }
.info-pied.salle-en-cours { display: block; width: 100%; background: #E7F7EE; color: #14532D; font-weight: 600; padding: 12px 14px; text-align: center; border-bottom: 1px solid #BBE5CB; }
:root[data-theme="sombre"] .info-pied.salle-en-cours { background: #0F2F1E; color: #A7F3C5; border-color: #1E4D33; }

/* ===== 1.0.2 : choix des couleurs ===== */
.choix-couleurs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choix-couleurs button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 16px; border: 2px solid var(--bord); font-weight: 700; font-size: .92rem; }
.choix-couleurs button small { font-weight: 400; color: var(--doux); font-size: .76rem; }
.choix-couleurs button.actif { border-color: var(--accent); background: var(--surface-2); }
.apercu-c { width: 100%; height: 54px; border-radius: 10px; display: grid; grid-template-rows: 16px 1fr; overflow: hidden; position: relative; border: 1px solid var(--bord); }
.apercu-c.site { background: linear-gradient(160deg, #F4FAFD, #D7E9F2); }
.apercu-c.site i:nth-child(1) { background: #fff; border-bottom: 1px solid #D3E6F0; }
.apercu-c.petrole { background: #F0F6FA; }
.apercu-c.petrole i:nth-child(1) { background: linear-gradient(135deg, #025270, #0B4F5C); }
.apercu-c i:nth-child(2) { position: absolute; right: 8px; bottom: 8px; width: 40%; height: 12px; border-radius: 8px; background: #025270; }
.apercu-c i:nth-child(3) { position: absolute; left: 8px; bottom: 24px; width: 34%; height: 10px; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(2,82,112,.2); }
.logo-barre.couleur { display: none; }

/* ===== Thème « Site AAGEC » (clair, comme aagec.fr) ===== */
:root[data-site] { --fond: #EEF6FB; --surface: #FFFFFF; --surface-2: #E6F2F9; --bord: #D3E6F0; --texte: #0F172A; --doux: #5B7083;
  --accent: #025270; --accent-2: #FFFFFF; --moi: #025270; --autre: #FFFFFF; --ombre: 0 1px 2px rgba(2,82,112,.05), 0 8px 24px rgba(2,82,112,.08); --rayon: 22px; }
:root[data-site] body { background: linear-gradient(160deg, #F6FBFE 0%, #E9F4FA 50%, #DCEDF6 100%) fixed; }
:root[data-site] .colonne-chat, :root[data-site] .page { background: transparent; }
:root[data-site] .liste { background: rgba(255,255,255,.72); }
:root[data-site] .barre { background: rgba(255,255,255,.88); color: var(--accent); border-bottom: 1px solid var(--bord); box-shadow: 0 4px 18px rgba(2,82,112,.06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:root[data-site] .barre .retour, :root[data-site] .barre .icone { color: var(--accent); }
:root[data-site] button.titre-chat { color: var(--texte); }
:root[data-site] .titre-chat small { color: var(--doux); opacity: 1; }
:root[data-site] .titre-chat small.vert { color: #16A34A; }
:root[data-site] .logo-barre.blanc { display: none; }
:root[data-site] .logo-barre.couleur { display: block; }
:root[data-site] .titre-appli span { color: var(--accent); border-left-color: var(--bord); }
:root[data-site] .btn { border-radius: 999px; }
:root[data-site] .btn.petit { border-radius: 999px; }
:root[data-site] .btn:not(.secondaire):not(.danger):not(.ligne-option) { background: linear-gradient(135deg, #025270, #0A6A8F); box-shadow: 0 6px 16px rgba(2,82,112,.18); }
:root[data-site] .ligne-option { border-radius: 16px; }
:root[data-site] .fab { background: linear-gradient(135deg, #025270, #2C9DD5); }
:root[data-site] .a-moi .bulle { background: linear-gradient(135deg, #025270, #0A6A8F); }
:root[data-site] .bulle { border-radius: 20px 20px 20px 6px; box-shadow: 0 2px 10px rgba(2,82,112,.07); }
:root[data-site] .a-moi .bulle { border-radius: 20px 20px 6px 20px; }
:root[data-site] .carte { border-radius: 24px; border-color: rgba(211,230,240,.9); background: rgba(255,255,255,.9); }
:root[data-site] .onglets { background: rgba(255,255,255,.72); }
:root[data-site] .onglets button.actif { background: #FFFFFF; color: var(--accent); box-shadow: 0 0 0 1px var(--bord), 0 2px 8px rgba(2,82,112,.08); border-radius: 999px; }
:root[data-site] .onglets button { border-radius: 999px; }
:root[data-site] .barre-bas { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:root[data-site] .barre-bas button.actif { background: #E6F2F9; color: var(--accent); }
:root[data-site] .bandeau { background: #FFFFFF; border: 1px solid var(--bord); }
:root[data-site] #pied-chat { background: rgba(255,255,255,.9); }
:root[data-site] .compose textarea { background: #F4FAFD; }
:root[data-site] .jour span { background: rgba(255,255,255,.9); }
:root[data-site] .ecran-centre { background: linear-gradient(160deg, #F6FBFE 0%, #E3F1F8 100%); }
:root[data-site] .ecran-centre .carte { box-shadow: 0 20px 50px rgba(2,82,112,.10); }
:root[data-site] .formulaire input:not([type=checkbox]), :root[data-site] .formulaire select { background: #F4FAFD; }

/* ===== 1.0.4 ===== */
.liste-affect { display: flex; flex-direction: column; gap: 6px; max-height: 44vh; overflow-y: auto; padding-right: 4px; }
.liste-affect .ligne-equipe label { display: flex; align-items: center; gap: 6px; }
.case.grise { opacity: .45; }
.membre-haut[data-fiche], .p-txt[data-fiche-p] { cursor: pointer; }
.apercus { display: flex; flex-wrap: wrap; gap: 8px; max-height: 50vh; overflow-y: auto; }
.apercus img { max-width: 100%; max-height: 45vh; border-radius: 12px; border: 1px solid var(--bord); }
.apercus .fichier { color: var(--texte); }
.colonne-chat.depot { outline: 3px dashed var(--cyan); outline-offset: -8px; }

/* ===== 1.0.4 : aperçu « voir comme » ===== */
#bandeau-apercu { position: fixed; z-index: 90; left: 0; right: 0; top: 0; height: calc(36px + var(--haut)); padding: var(--haut) 8px 0 14px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #F59E0B; color: #1F1300; font-size: .86rem; }
#bandeau-apercu span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bandeau-apercu button { background: #1F1300; color: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .8rem; white-space: nowrap; flex: none; }
html.en-apercu #app { top: calc(36px + var(--haut)) !important; height: calc(var(--hauteur-visible, 100vh) - 36px - var(--haut)) !important; }
html.en-apercu .cadre { outline: 4px solid #F59E0B; outline-offset: -4px; }

#bandeau-apercu .choix-vue { flex: none; background: rgba(31,19,0,.12); padding: 3px; border-radius: 999px; gap: 2px; }
#bandeau-apercu .choix-vue button { background: transparent; color: #1F1300; padding: 4px 10px; font-size: .78rem; border-radius: 999px; font-weight: 600; }
#bandeau-apercu .choix-vue button.actif { background: #1F1300; color: #fff; }
@media (max-width: 520px) { #bandeau-apercu span { display: none; } }
.choix-vue button { flex: 1; }

/* ===== 1.0.8 : droits à la carte ===== */
.droits-ligne { color: var(--accent) !important; }
.cases.droits .case { align-items: flex-start; }
.cases.droits input:disabled + * , .cases.droits .case:has(input:disabled) { opacity: .5; }
.cases.droits { display: flex; flex-direction: column; gap: 6px; }
.cases.droits input[type=checkbox] { width: 20px; height: 20px; flex: none; margin-top: 1px; }
/* ===== 1.0.9 : RGPD ===== */
.page-dedans[data-onglet="rgpd"] .volet[data-volet="rgpd"] { display: flex; }
#zone-rgpd { display: flex; flex-direction: column; gap: 14px; }
.texte-legal p b { color: var(--accent); }
