/* QELI - couche « vie » (chargée après qeli-net.css) : teintes douces, halo de fond, mouvement.
   Quatre teintes associées aux parcours, jamais en aplat criard : bleu (TCF / TEF), menthe (IELTS),
   craie (cours d'anglais), lavande (individuel), plus corail pour ce qui demande une action.
   Toutes les animations sont coupées si l'utilisateur préfère réduire les mouvements.
   Aucun cadratin ni demi-cadratin : trait d'union uniquement. */

/* ---------- Teintes ---------- */
:root,[data-theme="clair"]{
  --bleu:#2457B8; --bleu-fond:#E7EFFD; --menthe:#17734D; --menthe-fond:#E2F5EC;
  --craie:#8A5A00; --craie-fond:#FFF2CC; --lavande:#5A45B5; --lavande-fond:#EEEAFD;
  --corail:#B4441F; --corail-fond:#FFEAE2;
  --halo-1:transparent; --halo-2:transparent; --halo-3:transparent;  /* thème clair : fond blanc uni */
}
[data-theme="sombre"]{
  --bleu:#9DBBF5; --bleu-fond:#1B2843; --menthe:#7ED3A8; --menthe-fond:#15302A;
  --craie:#F5C343; --craie-fond:#2E2812; --lavande:#B9AAF5; --lavande-fond:#25213F;
  --corail:#FF9F80; --corail-fond:#3A2019;
  --halo-1:rgba(245,195,67,.08); --halo-2:rgba(157,187,245,.07); --halo-3:rgba(126,211,168,.05);
}
@media (prefers-color-scheme:dark){[data-theme="auto"]{
  --bleu:#9DBBF5; --bleu-fond:#1B2843; --menthe:#7ED3A8; --menthe-fond:#15302A;
  --craie:#F5C343; --craie-fond:#2E2812; --lavande:#B9AAF5; --lavande-fond:#25213F;
  --corail:#FF9F80; --corail-fond:#3A2019;
  --halo-1:rgba(245,195,67,.08); --halo-2:rgba(157,187,245,.07); --halo-3:rgba(126,211,168,.05);
}}

.pictogramme.t-bleu,.teinte-bleu .pictogramme,.teinte-bleu .date{background:var(--bleu-fond);color:var(--bleu)}
.pictogramme.t-menthe,.teinte-menthe .pictogramme,.teinte-menthe .date{background:var(--menthe-fond);color:var(--menthe)}
.pictogramme.t-craie,.teinte-craie .pictogramme,.teinte-craie .date{background:var(--craie-fond);color:var(--craie)}
.pictogramme.t-lavande,.teinte-lavande .pictogramme,.teinte-lavande .date{background:var(--lavande-fond);color:var(--lavande)}
.pictogramme.t-corail{background:var(--corail-fond);color:var(--corail)}
.pictogramme{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;flex:none}
.pictogramme svg{width:18px;height:18px}
.liste li > .pictogramme{align-self:center}
.liste li.teinte-bleu,.liste li.teinte-menthe,.liste li.teinte-craie,.liste li.teinte-lavande{position:relative}
.liste li[class*="teinte-"]::before{content:none}
.liste li.teinte-bleu::before{background:var(--bleu)} .liste li.teinte-menthe::before{background:var(--menthe)}
.liste li.teinte-craie::before{background:#E8B32C} .liste li.teinte-lavande::before{background:var(--lavande)}
.date{border-radius:12px}

/* Carte teintée : un dégradé léger dans la couleur du parcours */
.carte-teinte{position:relative;overflow:hidden}
.carte-teinte::after{content:"";position:absolute;right:-40px;top:-40px;width:150px;height:150px;border-radius:999px;opacity:.9;pointer-events:none}
.carte-teinte > *{position:relative}
.carte-teinte.teinte-bleu{background:linear-gradient(160deg,var(--bleu-fond),var(--surface) 55%)}
.carte-teinte.teinte-bleu::after{background:radial-gradient(circle,var(--bleu-fond),transparent 70%)}
.carte-teinte.teinte-menthe{background:linear-gradient(160deg,var(--menthe-fond),var(--surface) 55%)}
.carte-teinte.teinte-menthe::after{background:radial-gradient(circle,var(--menthe-fond),transparent 70%)}
.carte-teinte.teinte-craie{background:linear-gradient(160deg,var(--craie-fond),var(--surface) 55%)}
.carte-teinte.teinte-craie::after{background:radial-gradient(circle,var(--craie-fond),transparent 70%)}
.carte-teinte.teinte-lavande{background:linear-gradient(160deg,var(--lavande-fond),var(--surface) 55%)}
.carte-teinte.teinte-lavande::after{background:radial-gradient(circle,var(--lavande-fond),transparent 70%)}
.carte-teinte .chiffre{background:var(--surface)}

/* ---------- Halo de fond : un peu de lumière en haut de chaque écran ---------- */
body.app .app-zone,body.corps-console .console-zone{
  background:
    radial-gradient(640px 320px at 105% -6%,var(--halo-1),transparent 62%),
    radial-gradient(520px 300px at -12% 2%,var(--halo-2),transparent 60%),
    radial-gradient(420px 260px at 60% 110%,var(--halo-3),transparent 60%),
    var(--fond);
}
.barre-app{background:color-mix(in srgb,var(--surface) 97%,transparent);-webkit-backdrop-filter:none;backdrop-filter:none}  /* sans flou : moins coûteux au défilement */
.app-contenu > h2::after{content:"";display:block;width:28px;height:3px;margin-top:6px;border-radius:999px;background:var(--accent);opacity:.9}

/* ---------- Messages : la saisie se pose en bas de l'écran ---------- */
.app-contenu:has(> .discussion){min-height:calc(100svh - 56px - 40px)}
.app-contenu > .discussion{flex:1}
.discussion{flex:1;display:flex;flex-direction:column}
.discussion .fil{flex:1}
.discussion > .composer{margin-top:auto}
main.contenu:has(> .discussion){display:flex;flex-direction:column;min-height:calc(100svh - 130px)}
.console-zone > main:has(> .discussion){min-height:calc(100svh - 40px)}

/* ---------- Page Contact ---------- */
.contact-hero{position:relative;overflow:hidden;margin:0 calc(var(--e4) * -1);padding:40px var(--e4) 70px;
  background:linear-gradient(160deg,var(--craie-fond) 0%,var(--fond) 55%,var(--bleu-fond) 100%)}
.contact-hero-texte{position:relative;max-width:640px;display:flex;flex-direction:column;gap:12px}
.contact-hero h1{margin:0;font-size:clamp(1.875rem,7vw,2.75rem)}
.contact-hero p{margin:0;color:var(--texte-2);font-size:1rem}
.deco-bulle{position:absolute;border-radius:999px;pointer-events:none}
.deco-bulle.b1{width:180px;height:180px;right:-50px;top:-40px;background:radial-gradient(circle at 35% 35%,rgba(245,195,67,.55),rgba(245,195,67,.12) 70%)}
.deco-bulle.b2{width:70px;height:70px;right:120px;top:110px;background:radial-gradient(circle at 35% 35%,var(--bleu-fond),rgba(36,87,184,.10) 75%)}
.deco-bulle.b3{width:28px;height:28px;right:70px;top:190px;background:var(--menthe-fond);box-shadow:inset 0 0 0 1px rgba(23,115,77,.12)}
.contact-courbe{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:60px;fill:var(--fond)}
.contact-grille{display:grid;gap:14px;margin-top:-34px;position:relative}
@media (min-width:880px){.contact-grille{grid-template-columns:repeat(3,minmax(0,1fr))}.contact-principal{grid-column:1 / -1}}
/* même seuil que les marges de la page (.contenu : 32 px à partir de 1024 px), sinon débordement de 16 px */
@media (min-width:1024px){.contact-hero{margin:0 calc(var(--e6) * -1);padding:56px var(--e6) 90px}}
.contact-principal{display:grid;gap:18px;padding:20px;overflow:hidden;position:relative}
@media (min-width:720px){.contact-principal{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center}}
.contact-principal-texte,.contact-carte{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.contact-principal h2,.contact-carte h2{margin:0;font-size:1.125rem}
.contact-principal .note,.contact-carte .note{margin:0}
.contact-carte .bouton{margin-top:auto}
.contact-apercu{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:18px;background:var(--surface-2)}
.contact-apercu .bulle{max-width:88%}
.vocal-deco{display:flex;align-items:center;gap:8px;min-width:180px}
.lire-deco{width:28px;height:28px;border-radius:999px;background:var(--primaire);flex:none;position:relative}
.lire-deco::before{content:"";position:absolute;left:11px;top:8px;border-style:solid;border-width:6px 0 6px 9px;border-color:transparent transparent transparent var(--sur-primaire)}
.onde-deco{flex:1;display:flex;align-items:center;gap:2px;height:22px}
.onde-deco i{flex:1;border-radius:2px;background:var(--primaire);opacity:.45}
.onde-deco i:nth-child(3n){height:90%} .onde-deco i:nth-child(3n+1){height:45%} .onde-deco i:nth-child(3n+2){height:70%}
.vocal-deco small{font-size:.75rem;color:var(--texte-2)}

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}
  .onglets{view-transition-name:onglets}
  .barre-app{view-transition-name:barre}

  @keyframes qeli-apparition{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
  @keyframes qeli-bulle{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:none}}
  @keyframes qeli-flotte{0%,100%{transform:translate(0,0)}50%{transform:translate(-8px,10px)}}
  @keyframes qeli-rebond{0%{transform:scale(.8)}60%{transform:scale(1.12)}100%{transform:scale(1)}}
  @keyframes qeli-trait{from{transform:rotate(-6deg) scaleX(0)}to{transform:rotate(-6deg) scaleX(1)}}

  .app-contenu > *,.liste > li,.cartes > *,.contact-grille > *,.resultats > *{animation:qeli-apparition .26s cubic-bezier(.2,.8,.2,1) both}
  .app-contenu > *:nth-child(2),.liste > li:nth-child(2),.cartes > *:nth-child(2),.contact-grille > *:nth-child(2),.resultats > *:nth-child(2){animation-delay:.03s}
  .app-contenu > *:nth-child(3),.liste > li:nth-child(3),.cartes > *:nth-child(3),.contact-grille > *:nth-child(3),.resultats > *:nth-child(3){animation-delay:.06s}
  .app-contenu > *:nth-child(4),.liste > li:nth-child(4),.cartes > *:nth-child(4),.contact-grille > *:nth-child(4),.resultats > *:nth-child(4){animation-delay:.09s}
  .app-contenu > *:nth-child(5),.liste > li:nth-child(5){animation-delay:.12s}
  .app-contenu > *:nth-child(n+6),.liste > li:nth-child(n+6){animation-delay:.12s}
  .bulle,.bulle-auto{animation:qeli-bulle .32s cubic-bezier(.2,.8,.2,1) both}
  .prochain::before,.deco-bulle.b1,.carte-teinte::after{animation:qeli-flotte 9s ease-in-out infinite;will-change:transform}
  .deco-bulle.b2{animation:qeli-flotte 7s ease-in-out infinite reverse;will-change:transform}
  .prochain::after{transform-origin:left center;animation:qeli-trait .6s .3s cubic-bezier(.2,.8,.2,1) both}
  .onglets a[aria-current="page"] svg{animation:qeli-rebond .45s cubic-bezier(.2,.8,.2,1)}

  .ligne,.bouton,.carte a,.onglets a,.segments a,.segments label,.reponse,.tuile{transition:transform .15s ease,background-color .2s ease,border-color .2s ease,color .2s ease}
  .ligne:active,.bouton:active,.reponse:active,.tuile:active{transform:scale(.98)}
  .ligne:hover{transform:translateY(-1px)}
}

/* Ajustements */
fieldset.apparence{flex-direction:row}
.pied-theme{max-width:360px}
.bulle > .vocal-deco{flex-direction:row;align-items:center;min-width:210px}
.liste li:has(> .pictogramme){display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.liste li:has(> .pictogramme) > div:not(.suite){flex:1;min-width:0}
.liste li:has(> .pictogramme) > .suite{flex-basis:100%;padding-left:48px}

/* Apparence : petite commande discrète sur une ligne */
.theme-mini{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 12px}
.theme-mini-titre{font-size:.8125rem;font-weight:600;color:var(--texte-2)}
.apparence-mini{display:inline-flex;gap:2px;padding:3px;margin:0;border:1px solid var(--bord);border-radius:999px;background:var(--surface);flex-direction:row}
.apparence-mini label{position:relative;display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 10px;border-radius:999px;font-size:.75rem;font-weight:600;color:var(--texte-2);cursor:pointer}
.apparence-mini input{position:absolute;opacity:0;width:1px;height:1px}
.apparence-mini label:has(input:checked){background:var(--primaire-fond);color:var(--primaire)}
.apparence-mini label:has(input:focus-visible){box-shadow:var(--focus)}
.apparence-mini svg{width:15px;height:15px}
@media (max-width:360px){.apparence-mini span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
.pied-theme{max-width:none;margin-top:12px}
.pied-theme .theme-mini{justify-content:flex-start}
.pied-theme .theme-mini-titre{color:#C9D2E4}
.pied-theme .apparence-mini{background:#ffffff14;border-color:#ffffff26}
.pied-theme .apparence-mini label{color:#C9D2E4}
.pied-theme .apparence-mini label:has(input:checked){background:#fff;color:#1B2A4A}
.console-theme{max-width:none;margin-top:24px;padding-top:12px}

/* ---------- Logo QELI en petit (messagerie) ---------- */
@font-face{font-family:"Caveat";src:url("../polices/caveat-600.018947f2ec96.woff2") format("woff2");font-weight:600;font-display:swap}
.avatar-logo{flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:var(--surface-2)}
.avatar-logo .logo{font-size:.9375rem;pointer-events:none}

/* ---------- Salutation manuscrite ---------- */
.salutation{margin:4px 0 2px;font:600 2rem/1.05 "QELI Chiffres","Caveat",cursive;color:var(--primaire);letter-spacing:0}
@media (min-width:1024px){.salutation{font-size:2.375rem}}

/* ---------- Onglet actif : un trait craie sous l'onglet ---------- */
@media (max-width:1023px){
  .onglets a{position:relative}
  .onglets a::after{content:"";position:absolute;left:50%;bottom:0;width:26px;height:4px;border-radius:999px;background:var(--accent);
    transform:translateX(-50%) scaleX(0);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
  .onglets a[aria-current="page"]::after{transform:translateX(-50%) scaleX(1)}
  .onglets a[aria-current="page"] .icone{background:var(--primaire-fond);border-radius:999px;padding:3px 14px}
}
@media (prefers-reduced-motion:reduce){.onglets a::after{transition:none}}

/* ---------- Bulle de message : petit rond jaune discret qui pulse ---------- */
.question-flottante > summary,.aide-bouton{width:54px;height:54px;min-height:0;padding:0;justify-content:center;border-radius:999px;
  background:var(--accent);color:#141A26;box-shadow:0 8px 22px rgba(27,42,74,.22)}
.question-flottante > summary svg,.aide-bouton svg{color:#141A26;width:24px;height:24px}
.question-flottante > summary{position:relative}
.question-flottante > summary::after,.aide-bouton::after{content:"";position:absolute;inset:0;border-radius:999px;box-shadow:0 0 0 0 rgba(245,195,67,.55);pointer-events:none}
.aide-bouton{position:fixed}
.pied{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
@media (prefers-reduced-motion:no-preference){
  @keyframes qeli-onde{0%{box-shadow:0 0 0 0 rgba(245,195,67,.55)}70%{box-shadow:0 0 0 16px rgba(245,195,67,0)}100%{box-shadow:0 0 0 0 rgba(245,195,67,0)}}
  @keyframes qeli-enveloppe{0%,86%,100%{transform:rotate(0)}89%{transform:rotate(-12deg)}92%{transform:rotate(10deg)}95%{transform:rotate(-6deg)}}
  .question-flottante:not([open]) > summary::after,.aide-bouton::after{animation:qeli-onde 2.4s ease-out infinite}
  .question-flottante:not([open]) > summary svg,.aide-bouton svg{animation:qeli-enveloppe 4s ease-in-out infinite}
}
@media (max-width:1023px){.onglets a::after{width:34px;height:4px;bottom:1px}}

/* ---------- Photo de profil ---------- */
.avatar-photo{object-fit:cover;border-radius:999px;padding:0;background:var(--surface-2)}
.avatar.grand{width:72px;height:72px;font-size:1.25rem}
.identite{display:flex;align-items:center;gap:14px}
.photo-profil{display:flex;flex-direction:column;align-items:center;gap:4px;margin:0}
.photo-profil-cadre{position:relative;cursor:pointer;border-radius:999px}
.photo-profil-cadre:focus-within{box-shadow:var(--focus)}
.photo-profil-crayon{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:999px;background:var(--accent);color:#141A26;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px var(--surface)}
.petit-lien{font-size:.75rem!important;min-height:0!important;padding:0!important}
.barre-app .avatar-photo,.onglets .avatar-photo{width:36px;height:36px}

/* ---------- Avis ---------- */
.etoiles{display:inline-flex;gap:3px}
.etoiles i{width:14px;height:14px;background:var(--bord);clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)}
.etoiles i.pleine{background:var(--accent)}
.avis-grille{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));margin-top:12px}
.avis-carte{margin:0;display:flex;flex-direction:column;gap:10px}
.avis-carte blockquote{margin:0;font-size:.9375rem;line-height:1.5;color:var(--texte)}
.avis-carte figcaption,.avis-tete{display:flex;align-items:center;gap:10px;margin-top:auto}
.avis-carte figcaption > span:not(.avatar),.avis-tete > div{display:flex;flex-direction:column;flex:1;min-width:0}
.avis-carte figcaption .avatar{flex:none;width:40px;height:40px}
.avis-carte small,.avis-tete small{color:var(--texte-2);font-size:.75rem}
.avis-console{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.avis-console p{margin:0}
.note-avis{border:0;padding:0;background:none}

/* Offres de l'accueil : TCF, TEF, IELTS et individuel, 2 par ligne puis 4 sur grand écran. */
@media (min-width:640px){.cartes-quatre{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.cartes-quatre{grid-template-columns:repeat(4,minmax(0,1fr))}}
.prix + .prix-detail{margin-top:-4px;font-size:.8125rem;line-height:1.45}
.pied .logo{justify-self:start;width:max-content;max-width:max-content}

/* ---------- Page de présentation : vraies captures de l'application ---------- */
.tel{margin:0;position:relative;border-radius:30px;padding:7px;background:#141A26;box-shadow:0 24px 48px -20px rgba(20,26,38,.45),0 2px 6px rgba(20,26,38,.12)}
.tel img{display:block;width:100%;height:auto;border-radius:24px;background:var(--surface)}
.tel figcaption{position:absolute;left:50%;bottom:-34px;transform:translateX(-50%);font-weight:600;font-size:.875rem;color:inherit;white-space:nowrap}

.vitrine-hero{position:relative;min-height:520px;display:flex;justify-content:center;align-items:center;isolation:isolate}
.vitrine-hero::before{content:"";position:absolute;inset:6% 2% 4% 8%;z-index:-1;border-radius:48% 52% 44% 56%/52% 42% 58% 48%;
  background:radial-gradient(circle at 30% 30%,var(--craie-fond),transparent 60%),radial-gradient(circle at 75% 70%,var(--menthe-fond),transparent 62%),var(--bleu-fond)}
.vitrine-hero .tel-avant{width:min(250px,62%);transform:rotate(-3deg);z-index:2}
.vitrine-hero .tel-arriere{position:absolute;width:min(210px,52%);right:2%;top:12%;transform:rotate(6deg);opacity:.96;z-index:1}
.vitrine-hero .tel-arriere ~ .tel-avant{margin-right:18%}
.vitrine-pastille{position:absolute;left:0;bottom:8%;z-index:3;display:inline-flex;align-items:center;gap:8px;margin:0;padding:10px 14px;border-radius:999px;
  background:var(--surface);border:1px solid var(--bord);box-shadow:0 10px 24px -12px rgba(20,26,38,.35);font-size:.8125rem;font-weight:600}
.point-direct{width:10px;height:10px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 3px var(--craie-fond)}
@media (prefers-reduced-motion:no-preference){
  .vitrine-hero .tel-avant{animation:qeli-tel-flotte 7s ease-in-out infinite}
  .vitrine-hero .tel-arriere{animation:qeli-tel-flotte-2 8s ease-in-out infinite}
  .point-direct{animation:qeli-onde 2s ease-out infinite}
}
@keyframes qeli-tel-flotte{0%,100%{transform:rotate(-3deg) translateY(0)}50%{transform:rotate(-3deg) translateY(-8px)}}
@keyframes qeli-tel-flotte-2{0%,100%{transform:rotate(6deg) translateY(0)}50%{transform:rotate(6deg) translateY(6px)}}
@media (max-width:719px){
  .vitrine-hero{min-height:420px;margin-top:8px}
  .vitrine-hero .tel-avant{width:58%}
  .vitrine-hero .tel-arriere{width:46%;right:0}
  .vitrine-pastille{bottom:2%;font-size:.75rem}
}

.vitrine-ecrans{gap:28px;padding-bottom:44px;align-items:flex-start}
.vitrine-ecrans .tel{flex:none;width:200px;color:#fff}
.vitrine-ecrans .tel:nth-child(2){margin-top:28px}
@media (min-width:1024px){.vitrine-ecrans .tel{width:210px}}

/* Offres : la couleur de la préparation reste dans l'étiquette (pas de bord coloré) */
.carte-offre.teinte-bleu .etat{color:var(--bleu);background:var(--surface)}
.carte-offre.teinte-lavande .etat{color:var(--lavande);background:var(--surface)}
.carte-offre.teinte-menthe .etat{color:var(--menthe);background:var(--surface)}
.carte-offre.teinte-craie .etat{color:#9A6B00;background:var(--surface)}
.carte-offre .bouton.secondaire{background:var(--surface)}
@media (prefers-reduced-motion:no-preference){
  .carte-offre{transition:translate .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s}
  .carte-offre:hover{translate:0 -3px;box-shadow:0 18px 32px -22px rgba(20,26,38,.45)}
}
:root[data-theme="sombre"] .tel{box-shadow:0 0 0 1px rgba(255,255,255,.14),0 24px 48px -20px rgba(0,0,0,.6)}
/* Captures déjà placées dans la maquette de téléphone : pas de cadre dessiné en CSS */
.tel.tel-maquette,:root[data-theme="sombre"] .tel.tel-maquette{padding:0;border-radius:0;background:none;box-shadow:none}
.tel.tel-maquette img{border-radius:0;background:none;filter:drop-shadow(0 22px 26px rgba(10,14,24,.35))}
@media (prefers-color-scheme:dark){:root[data-theme="auto"] .tel{box-shadow:0 0 0 1px rgba(255,255,255,.14),0 24px 48px -20px rgba(0,0,0,.6)}}

/* Accueil de l'application : avancement de la préparation */
.progression{display:flex;flex-direction:column;gap:10px;padding:16px}
.progression-tete{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.barre-progression{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.barre-progression span{display:block;height:100%;border-radius:inherit;background:var(--primaire)}
.teinte-bleu .barre-progression span{background:var(--bleu)} .teinte-menthe .barre-progression span{background:var(--menthe)}
.teinte-craie .barre-progression span{background:#E8B32C} .teinte-lavande .barre-progression span{background:var(--lavande)}
.progression-faits{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.8125rem;color:var(--texte-2)}
.progression-faits li{display:inline-flex;align-items:center;gap:6px}
@media (prefers-reduced-motion:no-preference){.barre-progression span{animation:qeli-remplit .9s cubic-bezier(.2,.8,.2,1) both}}
@keyframes qeli-remplit{from{width:0}}

/* Titre de l'onglet (barre du haut) : à chaque changement d'onglet, l'ancien titre s'efface en montant
   légèrement, le nouveau part d'un peu plus bas et monte en fondu jusqu'à sa place. */
@media (prefers-reduced-motion:no-preference){
  .barre-app h1{view-transition-name:titre-onglet}
  ::view-transition-group(titre-onglet){animation:none}
  ::view-transition-old(titre-onglet){animation:qeli-titre-sort .18s cubic-bezier(.4,0,1,1) both}
  ::view-transition-new(titre-onglet){animation:qeli-titre-entre .42s cubic-bezier(.2,.8,.2,1) .1s both}
  /* Navigateurs sans transition entre pages : même entrée, déclenchée par le script après un clic d'onglet. */
  .barre-app h1.titre-entre{animation:qeli-titre-entre .42s cubic-bezier(.2,.8,.2,1) both}
}
@keyframes qeli-titre-sort{to{opacity:0;transform:translateY(-8px)}}
@keyframes qeli-titre-entre{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* Indisponibilités */
.indispo-bouton{margin:4px 0 8px}
.indispo-lien{margin:10px 2px 0;text-align:right;font-size:var(--t-petit);color:var(--texte-2)}
.indispo-lien a{color:inherit;font-weight:600}
.indispo-carte{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}
.indispo-tete{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.indispo-tete p{margin:2px 0 0}
.indispo-commentaire{margin:0;padding:10px 12px;border-radius:10px;background:var(--surface-2);font-size:.9375rem}
.indispo-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 10px}
.indispo-actions form{margin:0}
.indispo-reponse{gap:10px}
.remplacement-criteres{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.remplacement-carte{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.remplacement-carte p{margin:0}
form.en-ligne{display:inline;margin-left:8px}

/* ---------- Calendrier du formateur (lot D) ---------- */
.calendrier{padding:14px 12px 12px;margin:14px 0 0}
.calendrier-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.calendrier-tete h2{margin:0;font-size:1.0625rem}
.calendrier-suivant svg{transform:scaleX(-1)}
.calendrier-grille{display:flex;flex-direction:column;gap:4px}
.calendrier-ligne{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendrier-jours span{text-align:center;font-size:.75rem;font-weight:600;color:var(--texte-2);padding:2px 0}
.calendrier-jour{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;
  min-height:46px;padding:6px 2px 4px;border-radius:12px;text-decoration:none;color:var(--texte);border:1px solid transparent;
  font-variant-numeric:tabular-nums;transition:background .15s}
.calendrier-jour .numero{font-weight:600;font-size:.875rem;line-height:1}
.calendrier-jour.dispo{background:var(--menthe-fond)}
.calendrier-jour.indispo{background:var(--corail-fond)}
.calendrier-jour.hors-mois{opacity:.38}
.calendrier-jour.passe:not(.aujourd-hui){opacity:.55}
.calendrier-jour.aujourd-hui .numero{display:inline-grid;place-items:center;width:24px;height:24px;margin-top:-4px;border-radius:999px;background:var(--primaire);color:var(--sur-primaire)}
.calendrier-jour.choisi{border-color:var(--primaire);box-shadow:0 0 0 1px var(--primaire)}
.calendrier-jour:hover{border-color:var(--bord)}
.calendrier-jour .pastilles{display:flex;gap:3px}
.calendrier-jour .pastilles i{width:6px;height:6px;border-radius:999px;background:var(--bleu)}
.calendrier-legende{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 4px 0;padding:0;font-size:.75rem;color:var(--texte-2)}
.calendrier-legende li{display:inline-flex;align-items:center;gap:6px}
.calendrier-legende i{width:12px;height:12px;border-radius:4px;display:inline-block}
.calendrier-legende .l-dispo{background:var(--menthe-fond);border:1px solid var(--menthe)}
.calendrier-legende .l-indispo{background:var(--corail-fond);border:1px solid var(--corail)}
.calendrier-legende .l-seance{width:8px;height:8px;border-radius:999px;background:var(--bleu)}
.modifier-plage,.ajout-plage,.ajout-jour{margin-top:8px}
.modifier-plage > summary,.ajout-plage > summary{list-style:none;cursor:pointer;display:inline-flex}
.modifier-plage > summary::-webkit-details-marker,.ajout-plage > summary::-webkit-details-marker{display:none}
.modifier-plage[open]{flex-basis:100%}
.modifier-plage form{margin-top:8px}
.liste.simple li .suite:has(.modifier-plage[open]){flex-wrap:wrap}
@media (min-width:1024px){.calendrier-jour{min-height:64px}}

/* Groupes (console, lot E) */
.alertes-groupe{display:flex;flex-wrap:wrap;gap:4px}
.bloc-console{padding:18px;margin-top:16px}
.bloc-console h2{margin-top:0}
.jours-tuiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.chiffres-groupe{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-top:8px}
.chiffres-groupe .carte{display:flex;flex-direction:column;gap:2px;padding:14px}
.chiffres-groupe strong{font-size:1.75rem;line-height:1.1}
.chiffres-groupe .etat-texte{font-size:1.125rem}
.attente{margin-top:14px}
.attente > summary{cursor:pointer;font-weight:600}
.attente-form{margin-top:10px}
.chiffres-groupe a.carte{text-decoration:none;color:inherit}
.chiffres-groupe a.carte.choisi{border-color:var(--primaire);box-shadow:0 0 0 1px var(--primaire)}
.texte-alerte{color:var(--erreur)}
.chiffres-groupe strong.petit{font-size:.8125rem}

/* Finances et simulateur (lot I) */
.mois-finances{max-width:420px;margin:8px 0 12px}
.tableau-finances tr.ligne-total td{border-top:2px solid var(--primaire);font-size:1rem}
.grille-simulateur{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.ligne-choisie td{background:var(--accent-fond)!important}
.chiffres-groupe small{line-height:1.4}

/* Images du site (console) */
.images-site{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr))}
.image-site h2{margin:0 0 10px;font-size:1rem}
.image-site-apercu{aspect-ratio:3/4;max-width:220px;border-radius:18px;overflow:hidden;background:var(--surface-2);display:grid;place-items:center;margin-bottom:10px}
.image-site-apercu img{width:100%;height:100%;object-fit:cover}
.recadrage{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.recadrage-cadre{position:relative;cursor:grab;touch-action:none;user-select:none;outline:2px solid transparent;transition:outline-color .2s}
.recadrage-cadre:hover,.recadrage-cadre.glisse{outline-color:var(--accent)}
.recadrage-cadre.glisse{cursor:grabbing}
.recadrage-cadre img{pointer-events:none}
.recadrage-aide{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);font-size:.75rem;font-weight:600;padding:4px 10px;border-radius:999px;
  background:rgba(20,26,38,.65);color:#fff;white-space:nowrap}
.recadrage-zoom{display:flex;align-items:center;gap:10px;max-width:260px}
.recadrage-zoom input{flex:1;accent-color:var(--primaire)}
/* Images du site (console) : groupes, fonds de carte en paysage, logos montrés en entier */
.images-groupe-titre{margin:28px 0 4px}
.image-paysage .image-site-apercu{aspect-ratio:16/10;max-width:320px}
.image-logo-apercu{aspect-ratio:auto!important;height:96px;max-width:220px;padding:14px;background:#fff;border:1px solid var(--bord)}
.image-logo-apercu img{object-fit:contain!important}

/* ---------- « Nous contacter » : choix entre le chat et l'e-mail ---------- */
.choix-contact{position:relative;display:inline-block}
.choix-contact > summary{list-style:none;cursor:pointer}
.choix-contact > summary::-webkit-details-marker{display:none}
.choix-contact-menu{position:absolute;z-index:30;left:0;top:calc(100% + 8px);width:min(320px,calc(100vw - 32px));display:flex;flex-direction:column;
  padding:6px;border-radius:18px;background:var(--surface);border:1px solid var(--bord);box-shadow:0 18px 40px rgba(27,42,74,.16)}
.choix-contact-option{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border:0;border-radius:12px;background:none;color:var(--texte);
  text-align:left;text-decoration:none;font:inherit;cursor:pointer}
.choix-contact-option:hover,.choix-contact-option:focus-visible{background:var(--surface-2)}
.choix-contact-option strong{display:block;font-size:.9375rem}
.choix-contact-option small{display:block;color:var(--texte-2);font-size:.8125rem;overflow-wrap:anywhere}
.choix-contact-icone{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#1B2A4A;color:#F5C343}
@media (prefers-reduced-motion:no-preference){
  @keyframes choix-contact-entre{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
  .choix-contact[open] .choix-contact-menu{animation:choix-contact-entre .2s ease both}
}
/* Console : découpe des vidéos en boucle */
.video-apercu video,.decoupe-apercu video{width:100%;height:100%;object-fit:cover;background:#000}
.decoupe{display:flex;flex-direction:column;gap:10px;margin-bottom:6px}
.decoupe-apercu{position:relative;aspect-ratio:16/10;max-width:360px;border-radius:16px;overflow:hidden;background:#000}
.decoupe-temps{position:absolute;right:8px;bottom:8px;padding:2px 8px;border-radius:999px;background:rgba(0,0,0,.6);color:#fff;font-size:.75rem;font-variant-numeric:tabular-nums}
.decoupe input[type=range]{width:100%;max-width:360px}
/* Page de résultat du test : la discussion s'ouvre depuis « Nous contacter » ; la bulle reste cachée tant qu'elle est fermée */
.porte-avec-chat .question-flottante:not([open]){display:none}

/* Chronogramme : console et séances */
.chrono-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.chrono-seance{display:flex;flex-direction:column;gap:10px;padding:16px 18px;scroll-margin-top:80px}
.chrono-tete{display:flex;gap:14px;align-items:flex-start}
.chrono-tete strong{display:block;font-size:1rem}
.chrono-tete small{display:block;color:var(--texte-2);font-size:.875rem;margin-top:2px}
.chrono-numero{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--primaire);color:var(--sur-primaire);font:700 .9375rem/1 var(--police-titre)}
.chrono-fichiers{list-style:none;margin:0;padding:0 0 0 50px;display:flex;flex-direction:column;gap:6px}
.chrono-fichiers li{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.chrono-fichiers a{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.chrono-fichiers small{color:var(--texte-2)}
.chrono-fichiers form{margin-left:auto}
.chrono-vide{color:var(--texte-2);font-size:.875rem}
.chrono-modifier,.chrono-ajout{padding-left:50px}
.chrono-modifier>summary{list-style:none;cursor:pointer;display:inline-flex}
.chrono-modifier>summary::-webkit-details-marker{display:none}
.chrono-modifier[open]>summary{margin-bottom:10px}
.chrono-ajout label{cursor:pointer;display:inline-flex;gap:6px}
@media (max-width:560px){.chrono-fichiers,.chrono-modifier,.chrono-ajout{padding-left:0}}
/* Contenu d'une séance (formateur et apprenant) */
.contenu-seance{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:var(--r-carte);background:var(--primaire-fond)}
.contenu-seance .etiquette-numero{font:700 .75rem/1 var(--police-texte);letter-spacing:.04em;text-transform:uppercase;color:var(--texte-2)}
.contenu-seance strong{font-size:1rem}
.contenu-seance p{margin:0;color:var(--texte-2);font-size:.9375rem}
.contenu-seance ul{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.contenu-seance ul a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;background:var(--surface);border:1px solid var(--bord);font-weight:600;text-decoration:none;color:var(--primaire)}
.chrono-mini{display:block;font-size:.8125rem;color:var(--texte-2);margin-top:2px}
[data-theme="sombre"] .contenu-seance ul a{color:var(--texte)}

/* Supervision : bandeau pour les participants, pastille, note du superviseur */
.salle{position:relative}
.salle-supervision{position:absolute;z-index:30;top:84px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;padding:10px 18px 10px 10px;border-radius:999px;background:#F5C343;color:#141A26;font-weight:700;font-size:.9375rem;box-shadow:0 12px 32px rgba(5,10,25,.35);white-space:nowrap;width:max-content;max-width:calc(100vw - 24px);animation:qeli-supervision .35s cubic-bezier(.34,1.56,.64,1)}
.salle-supervision img,.pastille-superviseur img,.salle-note-superviseur img,.avatar-logo{border-radius:8px;background:#1B2A4A}
.salle-supervision[hidden],.pastille-superviseur[hidden]{display:none}
@keyframes qeli-supervision{from{opacity:0;transform:translate(-50%,-12px) scale(.9)}to{opacity:1;transform:translate(-50%,0)}}
@media (prefers-reduced-motion:reduce){.salle-supervision{animation:none}}
.pastille-superviseur{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border-radius:999px;background:rgba(245,195,67,.18);color:#F5C343;font-size:.8125rem;font-weight:700;white-space:nowrap}
.salle-note-superviseur{position:absolute;z-index:3;left:24px;right:24px;top:84px;pointer-events:none;animation:qeli-note-sup 12s ease forwards;display:flex;align-items:center;gap:10px;margin:0;padding:10px 14px;border-radius:14px;background:rgba(36,54,89,.92);color:#DCE3F0;font-size:.875rem;line-height:1.4}
.salle-corps.seul{grid-template-columns:1fr}
@keyframes qeli-note-sup{0%,85%{opacity:1}100%{opacity:0;visibility:hidden}}
.avatar-logo{width:36px;height:36px;object-fit:contain}
@media (max-width:560px){.salle-supervision{top:72px;font-size:.875rem}.salle-note-superviseur{left:12px;right:12px;top:72px}.pastille-superviseur{font-size:0;padding:2px}}
.chrono-ajout{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.case-chrono{display:inline-flex;align-items:center;gap:8px;font-size:.875rem;color:var(--texte-2)}
.case-chrono input{width:20px;height:20px}
.contenu-seance ul li.support-audio{flex-basis:100%;display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--bord)}
.support-audio span{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:.875rem;color:var(--primaire)}
.support-audio audio{width:100%;height:40px}
.contenu-seance .note{margin:4px 0 0;font-size:.8125rem}

/* Salle : outils (Mon support, Notes), fenêtres flottantes, diffusion audio */
.salle-outils{position:absolute;z-index:6;right:14px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:10px}
.outil-salle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:76px;height:76px;padding:6px;border:0;border-radius:18px;background:rgba(255,255,255,.94);color:#1B2A4A;font:700 .6875rem/1.15 var(--police-texte);text-align:center;cursor:pointer;box-shadow:0 8px 24px rgba(5,10,25,.35);opacity:.72;transition:transform .15s,background .15s,opacity .15s}
.outil-salle:hover,.outil-salle:focus-visible,.outil-salle:active,.outil-salle[aria-expanded="true"]{opacity:1}
.outil-salle:hover{transform:translateX(-2px)}
.outil-salle[aria-expanded="true"]{background:#F5C343}
.outil-salle:focus-visible{outline:3px solid #F5C343;outline-offset:2px}
@media (max-width:560px){.salle-outils{right:8px;top:40%}.outil-salle{width:62px;height:62px;border-radius:16px;font-size:.625rem}}
.fenetre-flottante{position:fixed;z-index:50;display:flex;flex-direction:column;min-width:260px;min-height:200px;border-radius:18px;background:var(--surface);color:var(--texte);box-shadow:0 24px 64px rgba(5,10,25,.45),0 0 0 1px rgba(0,0,0,.06);overflow:hidden}
.fenetre-flottante[hidden]{display:none}
.fen-tete{flex:none;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 14px;background:#1B2A4A;color:#fff;cursor:move;touch-action:none;user-select:none;-webkit-user-select:none}
.fen-tete strong{display:inline-flex;align-items:center;gap:6px;font-size:.9375rem;white-space:nowrap}
.fen-etat{flex:1;color:#C9D2E3;font-size:.75rem;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fen-onglets{display:flex;gap:4px;margin-left:6px}
.fen-onglets button,.fen-actions button{min-width:36px;height:34px;padding:0 10px;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font:700 .8125rem/1 var(--police-texte);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.fen-onglets button[aria-pressed="true"]{background:#F5C343;color:#141A26}
.fen-actions{display:flex;gap:4px;margin-left:auto}
.fen-onglets+.fen-actions,.fen-etat+.fen-actions{margin-left:0}
.fen-actions button:hover,.fen-onglets button:hover{background:rgba(255,255,255,.22)}
.fen-corps{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}
.lecteur-pdf{background:#E9ECF2;padding:12px}
.pdf-pages{display:flex;flex-direction:column;align-items:center;gap:12px}
.pdf-pages canvas{display:block;background:#fff;border-radius:6px;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.fen-vide{margin:24px 12px;text-align:center;color:var(--texte-2)}
.fenetre-flottante textarea{width:100%;height:100%;min-height:100%;padding:14px 16px;border:0;resize:none;background:var(--surface);color:var(--texte);font:400 1rem/1.55 var(--police-texte)}
.fenetre-flottante textarea:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--accent)}
.fen-redim{position:absolute;right:0;bottom:0;width:26px;height:26px;cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg,transparent 0 50%,rgba(27,42,74,.35) 50% 58%,transparent 58% 68%,rgba(27,42,74,.35) 68% 76%,transparent 76%)}
.salle-diffusion{position:absolute;z-index:7;left:50%;bottom:16px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;max-width:calc(100% - 24px);padding:8px 10px 8px 12px;border-radius:999px;background:#1B2A4A;color:#fff;font-weight:700;font-size:.875rem;box-shadow:0 12px 32px rgba(5,10,25,.45)}
.salle-diffusion[hidden]{display:none}
.diffusion-icone{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#F5C343;color:#141A26;flex:none;position:relative;isolation:isolate}
.diffusion-icone::after{content:"";position:absolute;inset:0;border-radius:50%;background:rgba(245,195,67,.6);z-index:-1;animation:qeli-pulse-audio 1.6s ease-out infinite}
@keyframes qeli-pulse-audio{0%{transform:scale(1);opacity:1}100%{transform:scale(1.5);opacity:0}}
@media (prefers-reduced-motion:reduce){.diffusion-icone::after{animation:none;opacity:0}}
@media (max-width:1023px){.salle-diffusion{bottom:76px}}
.salle-audios{flex:none;padding:10px 14px;border-bottom:1px solid var(--bord)}
.salle-audios p{margin:0 0 8px}
.salle-audios small{display:block}
.salle-audios ul{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0;padding:0}
.salle-audios .bouton{min-height:36px;padding:0 12px;font-size:.8125rem}
.notes-seance textarea{width:100%;min-height:180px;padding:12px 14px;border:1px solid var(--bord-champ);border-radius:var(--r-champ);background:var(--surface);color:var(--texte);font:400 1rem/1.55 var(--police-texte);resize:vertical}
.notes-seance .note{margin-top:6px}
@media (min-width:1024px){.salle-panneau{margin-top:62px}}

/* Profil > Mes stats */
.stats-jauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;margin:16px 0}
.stats-jauge{display:flex;align-items:center;gap:16px;padding:16px;border-radius:var(--r-carte);background:var(--surface);border:1px solid var(--bord)}
.stats-jauge strong{display:block;font-size:1.0625rem}
.stats-jauge small{display:block;color:var(--texte-2);font-size:.875rem}
.stats-jauge-cercle{flex:none;display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:conic-gradient(var(--primaire) calc(var(--p) * 1%),var(--bord) 0)}
.stats-jauge-cercle.jaune{background:conic-gradient(var(--accent) calc(var(--p) * 1%),var(--bord) 0)}
.stats-jauge-cercle b{display:flex;align-items:baseline;justify-content:center;padding-top:22px;width:66px;height:66px;border-radius:50%;background:var(--surface);font:800 1.375rem/1 var(--police-titre);color:var(--texte)}
.stats-jauge-cercle b small{font-size:.75rem;font-weight:700;margin-left:1px}
.stats-chiffres{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin:0 0 16px}
.stats-chiffre{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:14px;background:var(--rangee);border:1px solid var(--bord)}
.stats-chiffre b{font:800 1.5rem/1.1 var(--police-titre);color:var(--texte)}
.stats-chiffre span{font-size:.8125rem;color:var(--texte-2);line-height:1.3}
.stats-chiffre.ok b{color:var(--succes)}
.stats-chiffre.alerte b{color:var(--erreur)}
.stats-programmes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.stats-programmes li{display:grid;grid-template-columns:1fr minmax(80px,160px) auto;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid var(--bord);background:var(--surface)}
.stats-programmes small{display:block;color:var(--texte-2);font-size:.8125rem}
.stats-barre{height:8px;border-radius:999px;background:var(--bord);overflow:hidden}
.stats-barre span{display:block;height:100%;width:var(--p);background:var(--primaire);border-radius:inherit}
[data-theme="sombre"] .stats-jauge-cercle:not(.jaune){background:conic-gradient(var(--accent) calc(var(--p) * 1%),var(--bord) 0)}
[data-theme="sombre"] .stats-barre span{background:var(--accent)}
@media (max-width:480px){.stats-programmes li{grid-template-columns:1fr auto}.stats-programmes .stats-barre{grid-column:1 / -1;grid-row:2}}

/* Salle : fin de séance (compte à rebours, alertes, fermeture) */
.salle-barre .chrono.bientot{color:#F5A623;font-weight:700}
.salle-barre .chrono.depasse{color:#E5484D;font-weight:700}
.salle-fin{position:absolute;z-index:31;top:96px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 24px);padding:10px 12px 10px 16px;border-radius:16px;background:#1B2A4A;color:#fff;font-weight:700;font-size:.9375rem;box-shadow:0 12px 32px rgba(5,10,25,.45);border:0}
.salle-fin[hidden],.salle-fermee[hidden]{display:none}
.salle-fin span{white-space:normal}
.salle-fermee{position:absolute;inset:0;z-index:60;display:grid;place-items:center;background:rgba(15,21,33,.88);color:#fff;text-align:center}
.salle-fermee div{display:flex;flex-direction:column;gap:6px;padding:24px}
.salle-fermee strong{font:800 1.5rem/1.2 var(--police-titre)}
@media (max-width:560px){.salle-fin{top:88px;font-size:.875rem;flex-wrap:wrap;justify-content:center;text-align:center}}
.salle-fin-actions{display:inline-flex;gap:6px;flex-wrap:wrap}
/* Barres de progression : remplissage animé à l'affichage */
@media (prefers-reduced-motion:no-preference){
  @keyframes qeli-remplir{from{width:0}}
  .stats-barre span,.v3-prep-barre span{animation:qeli-remplir 1.2s cubic-bezier(.2,.8,.2,1) both}
}

/* Support : pas de sélection, pas de menu « Enregistrer l'image », masqué quand l'appli passe en arrière-plan */
.lecteur-pdf,.pdf-pages canvas{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.lecteur-pdf.masque .pdf-pages{filter:blur(18px)}
.pdf-page{position:relative;flex:none}
.pdf-page canvas{display:block;background:#fff;border-radius:6px;box-shadow:0 2px 10px rgba(0,0,0,.12)}
/* Formateur : texte du support sélectionnable (couche de texte invisible de pdf.js posée sur chaque page) */
.textLayer{position:absolute;inset:0;overflow:hidden;line-height:1;text-align:initial;-webkit-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:1}
.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}
.textLayer span.markedContent{top:0;height:0}
.textLayer .endOfContent{display:block;position:absolute;inset:100% 0 0;z-index:-1;cursor:default;user-select:none}
.textLayer.selecting .endOfContent{top:0}
.textLayer ::selection{background:rgba(245,195,67,.5);color:transparent}
.textLayer br::selection{background:transparent}
.lecteur-pdf.selectionnable,.lecteur-pdf.selectionnable .textLayer{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.lecteur-pdf.selectionnable canvas{-webkit-user-select:none;user-select:none}
/* « Diffuser » (formateur) et support diffusé, en plein écran chez l'apprenant */
.fen-diffuser{flex:none;height:34px;padding:0 12px;border:0;border-radius:10px;background:#F5C343;color:#141A26;font:700 .8125rem/1 var(--police-texte);cursor:pointer;display:inline-flex;align-items:center;gap:6px;margin-left:6px;white-space:nowrap}
.fen-diffuser.actif{background:#E5484D;color:#fff}
.fen-diffuser:hover{filter:brightness(1.05)}
.fen-diffuser+.fen-actions{margin-left:auto}
.fenetre-partage.plein{left:0!important;top:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;border-radius:0}
.fenetre-partage.plein .fen-redim{display:none}
/* Téléphone : barre de titre des fenêtres sur deux lignes (titre et fermer, puis onglets, Diffuser, zoom) */
@media (max-width:560px){
  .fen-tete{flex-wrap:wrap;row-gap:8px;column-gap:6px}
  .fenetre-flottante:not(.fenetre-tableau) .fen-tete > .fen-actions{display:contents}
  .fen-tete > strong{order:1;flex:1 0 calc(100% - 56px);min-width:0;overflow:hidden;text-overflow:ellipsis}
  .fen-tete [data-fenetre-fermer]{order:2;margin-left:auto}
  .fen-tete > .fen-onglets{order:3;margin-left:0}
  .fen-tete > .fen-diffuser{order:4;margin-left:0}
  .fen-tete [data-zoom]{order:5}
  .fen-tete [data-zoom="-1"]{margin-left:auto}
  .fen-tete > .fen-etat{order:6;flex-basis:100%;text-align:left}
  .fenetre-partage .fen-tete > strong{flex:1 1 auto}
  .fenetre-partage .fen-tete > .fen-etat{order:1;flex:none;flex-basis:auto}
  .fenetre-tableau .fen-tete > .fen-etat{order:1;flex:1;flex-basis:auto;text-align:right}
  .fenetre-tableau .fen-tete > .fen-actions{order:2}
  .fenetre-tableau .fen-tete > .tableau-outils{order:3;flex-basis:100%}
  .fenetre-tableau .fen-tete > strong,.fenetre-tableau .fen-tete [data-fenetre-fermer]{order:0;flex:none;margin-left:0}
}
}
.partage-selection{position:absolute;z-index:2;background:rgba(245,195,67,.45);border-radius:2px;mix-blend-mode:multiply;pointer-events:none}
.fenetre-partage .fen-etat{flex:1}

/* Salle : main levée (apprenant), file des mains levées (formateur), tableau du formateur */
.outil-salle.levee{background:#F5C343;opacity:1}
.outil-salle.levee svg{animation:qeli-main 1.2s ease-in-out infinite}
@keyframes qeli-main{0%,100%{transform:rotate(0)}50%{transform:rotate(-14deg)}}
.file-mains{position:absolute;z-index:8;left:14px;top:14px;width:min(320px,calc(100% - 120px));max-height:45%;display:flex;flex-direction:column;border-radius:16px;background:#1B2A4A;color:#fff;box-shadow:0 14px 36px rgba(5,10,25,.45);overflow:hidden}
.file-mains[hidden]{display:none}
.file-mains header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:rgba(255,255,255,.06)}
.file-mains header strong{display:inline-flex;align-items:center;gap:6px;font-size:.875rem}
.file-mains .compte{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#F5C343;color:#141A26;font-size:.75rem}
.file-mains header .bouton.lien{color:#C9D2E3}
.file-mains ol{list-style:none;margin:0;padding:6px;overflow:auto}
.file-mains li{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px}
.file-mains li:first-child{background:rgba(245,195,67,.16)}
.file-mains .rang{flex:none;width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.14);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.75rem}
.file-mains li:first-child .rang{background:#F5C343;color:#141A26}
.file-mains .nom{flex:1;min-width:0;display:flex;flex-direction:column}
.file-mains .nom strong{font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-mains .nom small{color:#C9D2E3;font-size:.6875rem}
.file-mains li .bouton{flex:none}
.file-mains.nouvelle{animation:qeli-file 1s ease-out}
@keyframes qeli-file{0%{transform:scale(1)}20%{transform:scale(1.04)}100%{transform:scale(1)}}
.fenetre-tableau{background:#fff;color:#141A26}
.fenetre-tableau.plein{left:0!important;top:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;border-radius:0;z-index:60}
.fenetre-tableau.plein .fen-redim{display:none}
.tableau-tete{padding:10px 10px 10px 16px}
.tableau-marque{display:inline-flex;align-items:center;gap:10px;min-width:0}
.tableau-marque img{border-radius:8px;flex:none}
.tableau-corps{background:#fff}
.fenetre-tableau textarea:focus-visible{box-shadow:none}
.tableau-lecture:empty::before{content:"Le formateur va écrire ici…";color:#9AA3B5}
@media (prefers-reduced-motion:reduce){.outil-salle.levee svg,.file-mains.nouvelle{animation:none}}

/* Salle : fine barre blanche en haut (compte à rebours à gauche, nom de la séance ; on quitte par la visio, en bas) */
.salle .salle-barre{position:relative;left:auto;right:auto;top:auto;z-index:9;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:38px;padding:0 12px;border:0;border-radius:0;background:#fff;color:#141A26;box-shadow:0 1px 0 rgba(15,21,33,.12)}
.salle .salle-barre .chrono{font:600 .8125rem/1 var(--police-mono);color:#5A6478;letter-spacing:.02em;font-variant-numeric:tabular-nums;padding:4px 8px;border-radius:999px;background:#F1F3F7}
.salle .salle-barre .chrono.bientot{background:#FBF0D6;color:#6E5100}
.salle .salle-barre .chrono.depasse{background:#FDE7E4;color:#9B2C1F}
.salle .salle-titre{grid-column:2;display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;font:700 .875rem/1.2 var(--police-texte);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.salle .salle-titre .pastille-superviseur{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:.6875rem;color:#5A6478}
.salle .salle-titre .pastille-superviseur[hidden]{display:none}
.salle-corps.sans-panneau{grid-template-columns:1fr!important}
@media (min-width:1024px){.salle .salle-panneau{margin-top:0}}  /* la barre du haut n'est plus flottante */
.file-mains header .bouton.lien{background:none!important;box-shadow:none!important;border:0;min-height:0;padding:4px 6px;color:#C9D2E3;text-decoration:underline;font-size:.75rem}

/* Formateur : document en cours de diffusion (attente, lecture avec progression et égaliseur, puis écouté) */
.salle-audios [data-diffuser]{position:relative;overflow:hidden;isolation:isolate}
.salle-audios [data-diffuser]::before{content:"";position:absolute;inset:0;width:var(--progression,0%);background:rgba(27,42,74,.22);z-index:-1;transition:width .25s linear}
.salle-audios [data-diffuser].en-attente{animation:qeli-attente-audio 1s ease-in-out infinite}
@keyframes qeli-attente-audio{0%,100%{box-shadow:0 0 0 0 rgba(245,195,67,.7)}50%{box-shadow:0 0 0 6px rgba(245,195,67,0)}}
.salle-audios [data-diffuser].en-lecture{background:#1B2A4A!important;color:#fff!important;box-shadow:0 0 0 3px rgba(245,195,67,.55)}
.salle-audios [data-diffuser].en-lecture::before{background:rgba(245,195,67,.35)}
.salle-audios [data-diffuser].en-lecture svg{display:none}
.salle-audios [data-diffuser].en-lecture::after{content:"";flex:none;width:16px;height:14px;order:-1;background:linear-gradient(#F5C343,#F5C343) 0 100%/3px 40% no-repeat,linear-gradient(#F5C343,#F5C343) 6px 100%/3px 100% no-repeat,linear-gradient(#F5C343,#F5C343) 12px 100%/3px 60% no-repeat;animation:qeli-egaliseur .9s ease-in-out infinite}
@keyframes qeli-egaliseur{0%,100%{background-size:3px 40%,3px 100%,3px 60%}33%{background-size:3px 100%,3px 50%,3px 80%}66%{background-size:3px 60%,3px 70%,3px 35%}}
.salle-audios [data-diffuser].ecoute{opacity:.7}
.salle-audios [data-diffuser].ecoute::before{width:100%;background:rgba(27,42,74,.12)}
@media (prefers-reduced-motion:reduce){.salle-audios [data-diffuser].en-attente,.salle-audios [data-diffuser].en-lecture::after{animation:none}}

/* Tableau : en-tête (icône QELI + « Tableau »), outils du formateur, page de 1 200 points mise à l'échelle */
.tableau-tete{flex-wrap:wrap;row-gap:6px}
.tableau-marque strong{display:inline-flex;align-items:center;gap:6px;font-size:.9375rem;font-weight:700}
.tableau-outils{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-left:8px}
.tableau-outils button{height:32px;min-width:32px;padding:0 10px;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font:700 .75rem/1 var(--police-texte);display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.tableau-outils button:hover{background:rgba(255,255,255,.22)}
.tableau-outils button[aria-pressed="true"]{background:#F5C343;color:#141A26}
.tableau-couleurs{display:inline-flex;gap:4px;padding:0 4px}
.tableau-couleurs .couleur{width:26px;min-width:26px;height:26px;padding:0;border-radius:50%;background:var(--c)!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.35)}
.tableau-couleurs .couleur[aria-checked="true"]{box-shadow:0 0 0 2px #1B2A4A,0 0 0 4px #F5C343}
.tableau-corps{background:#fff;overflow-x:hidden;overflow-y:auto}
.tableau-page{position:relative;width:1200px;transform-origin:0 0;background:#fff}
.tableau-texte{position:relative;display:block;width:1200px;min-height:675px;margin:0;padding:36px 48px;border:0;resize:none;overflow:hidden;background:transparent;color:#141A26;font:500 30px/1.45 var(--police-texte);white-space:pre-wrap;overflow-wrap:anywhere;box-sizing:border-box}
textarea.tableau-texte:focus-visible{outline:none;box-shadow:none}
.tableau-lecture:empty::before{content:"Le formateur va écrire ici…";color:#9AA3B5}
.tableau-dessin{position:absolute;left:0;top:0;pointer-events:none;touch-action:none}
.fenetre-tableau.mode-dessin .tableau-dessin{pointer-events:auto;cursor:crosshair}
@media (max-width:760px){.tableau-outils > button > span{display:none}.tableau-outils{margin-left:0}}

/* Barre de séance incrustée dans le cadre de la visio : fine, blanche, titre centré, la visio commence juste dessous. */
.salle .salle-video{--barre-salle:38px;display:block}
.salle .salle-video>.salle-barre{position:absolute;left:0;right:0;top:0;height:var(--barre-salle);min-height:0}
.salle .salle-video>iframe,.salle .salle-video>.visio-jitsi{position:absolute;left:0;right:0;bottom:0;top:var(--barre-salle);width:100%;height:auto;border:0}
.salle .visio-jitsi iframe{width:100%;height:100%;border:0;display:block}
/* Cadre simple (visio sans API, supervision) : une iframe ne s'étire pas avec top/bottom, hauteur explicite */
.salle .salle-video>iframe{height:calc(100% - var(--barre-salle))}
/* Supervision : barre au-dessus de la visio (pas dans la vidéo), tout sur une ligne */
.salle>.salle-barre{grid-template-columns:auto minmax(0,1fr) auto auto;min-height:52px;padding:6px 12px}
.salle>.salle-barre b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.salle>.salle-barre form{margin:0}
.salle>.salle-barre .bouton.quitter{min-height:38px;padding:0 14px}
.salle-corps.seul .salle-video>iframe{top:0;height:100%}
@media (max-width:560px){.salle>.salle-barre .chrono{display:none}.salle>.salle-barre{grid-template-columns:auto minmax(0,1fr) auto}}
.salle .salle-video>.alerte-salle{top:calc(var(--barre-salle) + 8px)}
@media (max-width:599px){
  .salle .salle-video{--barre-salle:32px}
  .salle .salle-video>.salle-barre{padding:0 8px;gap:6px}
  .salle .salle-barre .chrono{font-size:.75rem;padding:3px 6px}
  .salle .salle-titre{font-size:.75rem;justify-content:flex-start}
  .salle .salle-titre .pastille-superviseur{font-size:0;gap:0}
}
/* Tableau : pas d'agrandissement automatique du texte (Android) qui le décalerait des traits */
.tableau-page,.tableau-texte{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.fenetre-tableau .tableau-texte{padding:36px 48px!important;line-height:1.45!important;letter-spacing:0!important}
.salle .salle-titre-texte{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fenetre-tableau.outil-gomme .tableau-dessin{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Ccircle cx='14' cy='14' r='12' fill='white' fill-opacity='.6' stroke='%23141A26' stroke-width='1.5'/%3E%3C/svg%3E") 14 14,cell}
/* Tableau : « En direct » en jaune, texte placé par double clic */
.fen-etat.en-direct{color:#F5C343;font-weight:700}
.tableau-bulle{position:absolute;z-index:2;margin:0;padding:0;border:0;border-radius:4px;resize:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;background:rgba(245,195,67,.16);box-shadow:none;outline:none;caret-color:#141A26}
.tableau-bulle:focus-visible{outline:none;box-shadow:none}
/* Mains levées : sous la barre de séance, jamais cachées par elle */
.salle .salle-video .file-mains{top:calc(var(--barre-salle,38px) + 12px);max-height:calc(45% - var(--barre-salle,38px))}
/* Alertes du formateur : au-dessus de tout (tableau, support, plein écran), temporaires, croix pour ignorer */
.qeli-alertes{position:fixed;z-index:2147483000;top:16px;right:16px;display:flex;flex-direction:column;gap:10px;width:min(360px,calc(100vw - 32px));pointer-events:none}
.qeli-alerte{position:relative;pointer-events:auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 10px 12px 12px;border-radius:16px;background:#1B2A4A;color:#fff;box-shadow:0 16px 40px rgba(5,10,25,.45);overflow:hidden;animation:qeli-alerte-entree .22s ease-out}
.qeli-alerte .pastille{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#F5C343;color:#141A26}
.qeli-alerte.depart .pastille{background:#FDE7E4;color:#9B2C1F}
.qeli-alerte.arrivee .pastille{background:#DDF3E6;color:#1F7A45}
.qeli-alerte .texte{display:flex;flex-direction:column;gap:2px;min-width:0}
.qeli-alerte.reseau .pastille{background:#FDE7E4;color:#9B2C1F}
.qeli-alerte .agir{align-self:flex-start;margin-top:8px;min-height:36px;padding:0 14px;border:0;border-radius:10px;background:#F5C343;color:#141A26;font:700 .875rem/1 var(--police-texte);cursor:pointer}
.qeli-alerte .agir:hover{filter:brightness(1.05)}
.qeli-alerte strong{font:700 .9375rem/1.25 var(--police-texte);overflow-wrap:anywhere}
.qeli-alerte small{color:#C9D2E3;font-size:.8125rem;line-height:1.3}
.qeli-alerte small:empty{display:none}
.qeli-alerte .ignorer{width:36px;height:36px;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font:400 1.5rem/1 var(--police-texte);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.qeli-alerte .ignorer:hover{background:rgba(255,255,255,.2)}
.qeli-alerte.sortie{opacity:0;transform:translateX(24px);transition:opacity .2s,transform .2s}
@keyframes qeli-alerte-entree{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@media (max-width:560px){.qeli-alertes{top:auto;bottom:calc(16px + env(safe-area-inset-bottom));right:16px;left:16px;width:auto}}
@media (prefers-reduced-motion:reduce){.qeli-alerte{animation:none}}
/* Tableau côté apprenant : lever la main et « Mes notes » sans quitter le plein écran */
.tableau-outils-apprenant{margin-left:auto}
.tableau-outils-apprenant button{height:36px;padding:0 12px;font-size:.8125rem}
.tableau-outils-apprenant button.levee{background:#F5C343;color:#141A26}
@media (max-width:760px){.tableau-outils-apprenant span{display:inline}.tableau-outils-apprenant{margin-left:0}}
@media (max-width:420px){.tableau-outils-apprenant span{display:none}.tableau-outils-apprenant button{width:40px;padding:0;justify-content:center}}
/* Micro de l'apprenant : vert = ouvert, rouge barré = coupé, vert animé = il parle */
.tableau-outils-apprenant button[data-tableau-micro][aria-pressed="true"]{background:#1F8A4C;color:#fff}
.tableau-outils-apprenant button[data-tableau-micro].micro-coupe{background:#C2410C;color:#fff}
.tableau-outils-apprenant button[data-tableau-micro].micro-parle{animation:micro-ouvert-parle 1s ease-in-out infinite}
.tableau-outils-apprenant button[data-tableau-micro].micro-parle svg{animation:micro-onde 1s ease-in-out infinite}
.outil-micro[aria-pressed="true"]{background:#1F8A4C;color:#fff;opacity:1}
.outil-micro.micro-coupe{background:#C2410C;color:#fff;opacity:1}
.outil-micro.micro-parle{animation:micro-ouvert-parle 1s ease-in-out infinite}
.outil-micro.micro-parle svg{animation:micro-onde 1s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.outil-micro.micro-parle,.outil-micro.micro-parle svg{animation:none}}
@keyframes micro-ouvert-parle{0%,100%{box-shadow:0 0 0 0 rgba(52,199,112,.8)}50%{box-shadow:0 0 0 7px rgba(52,199,112,0)}}
@media (prefers-reduced-motion:reduce){.tableau-outils-apprenant button[data-tableau-micro].micro-parle,.tableau-outils-apprenant button[data-tableau-micro].micro-parle svg{animation:none}}
/* Alertes de la salle aux normes : pas de contour coloré, la couleur passe par une pastille */
.salle-fin::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:#F5C343;box-shadow:0 0 0 4px rgba(245,195,67,.28)}
.alerte-salle{border:0}

/* Oral blanc : file d'attente (formateur, dans la salle) */
.file-oral{position:absolute;z-index:9;right:14px;top:calc(var(--barre-salle,38px) + 10px);width:min(330px,calc(100% - 28px));max-height:calc(100% - var(--barre-salle,38px) - 90px);display:flex;flex-direction:column;border-radius:16px;background:#1B2A4A;color:#fff;box-shadow:0 14px 36px rgba(5,10,25,.45);overflow:hidden}
.file-oral header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:rgba(255,255,255,.06)}
.file-oral header strong{display:inline-flex;align-items:center;gap:6px;font-size:.875rem}
.file-oral .compte{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#F5C343;color:#141A26;font-size:.75rem}
.file-oral header .bouton.lien,.file-oral .oral-ligne .bouton.lien{background:none!important;box-shadow:none!important;border:0;min-height:0;padding:4px 6px;color:#C9D2E3;text-decoration:underline;font-size:.75rem}
.file-oral-corps{display:flex;flex-direction:column;gap:8px;padding:8px;overflow:auto}
.file-oral-corps[hidden]{display:none}
.file-oral-courant{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:12px;background:rgba(245,195,67,.16)}
.file-oral-courant[hidden]{display:none}
.file-oral-courant .surtitre{margin:0;font-size:.6875rem;text-transform:uppercase;letter-spacing:.04em;color:#F5C343;font-weight:700}
.file-oral-courant .bouton{align-self:flex-start;margin-top:4px}
.oral-chrono{font-variant-numeric:tabular-nums;font-size:.8125rem;color:#C9D2E3}
.oral-chrono.depasse{color:#FFB4A8;font-weight:700}
.file-oral ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.oral-ligne{display:flex;align-items:center;gap:10px;padding:8px;border-radius:12px}
.oral-ligne.attend{background:rgba(255,255,255,.07)}
.oral-ligne.absent .oral-nom strong{color:#C9D2E3}
.oral-nom{flex:1;min-width:0;display:flex;flex-direction:column}
.oral-nom strong{font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oral-nom small{color:#C9D2E3;font-size:.6875rem}
.oral-ligne .bouton{flex:none}
.oral-ligne.a_noter small{color:#F5C343;font-weight:700}
.file-oral-passes summary{cursor:pointer;font-size:.8125rem;color:#C9D2E3;padding:4px}
.file-oral-aide{color:#C9D2E3!important;font-size:.75rem;margin:0}
.file-oral .bouton.secondaire{background:rgba(255,255,255,.1);color:#fff;border-color:transparent}
.file-oral .bouton:disabled{opacity:.45}
dialog.dialogue-oral{width:min(460px,calc(100vw - 32px));margin:auto;padding:22px;border:0;border-radius:var(--r-carte,20px);background:var(--surface);color:var(--texte);box-shadow:0 24px 64px rgba(15,21,33,.35)}
dialog.dialogue-oral::backdrop{background:rgba(10,15,30,.55)}
dialog.dialogue-oral h2{margin:0 0 4px;font-size:1.125rem}
dialog.dialogue-oral form{display:flex;flex-direction:column;gap:12px}
dialog.dialogue-oral .champ{display:flex;flex-direction:column;gap:6px}
dialog.dialogue-oral input,dialog.dialogue-oral textarea{font:inherit;padding:10px 12px;border-radius:10px;border:1px solid var(--bord-champ);background:var(--surface);color:var(--texte)}
dialog.dialogue-oral input{max-width:120px}
dialog.dialogue-oral .actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
@media (max-width:700px){.file-oral{left:8px;right:8px;width:auto;max-height:55%}}

/* Oral blanc : page d'attente de l'apprenant */
.file-oral-attente{font-size:1.0625rem;margin:6px 0 0}
.file-oral-appel{background:var(--accent-fond)!important}
.file-oral-appel[hidden]{display:none}
.file-oral-regles{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px;line-height:1.45}
.file-oral-attendre{display:flex;flex-direction:column;gap:20px}
.file-oral-attendre[hidden],.file-oral-fini[hidden]{display:none}
.file-oral-anneau{position:relative;align-self:center;width:200px;height:200px;margin:8px 0;display:flex;align-items:center;justify-content:center}
.file-oral-arc{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,rgba(245,195,67,0) 0deg,rgba(245,195,67,.15) 120deg,#F5C343 300deg,rgba(245,195,67,0) 300deg);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#000 calc(100% - 9px));mask:radial-gradient(farthest-side,transparent calc(100% - 10px),#000 calc(100% - 9px))}
.file-oral-onde{position:absolute;inset:18px;border-radius:50%;background:rgba(245,195,67,.12)}
.file-oral-centre{position:relative;width:132px;height:132px;border-radius:50%;background:rgba(255,255,255,.06);box-shadow:0 0 0 1px rgba(255,255,255,.08),0 18px 40px rgba(0,0,0,.25);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.file-oral-centre b{font:800 3.25rem/1 var(--police-titre);color:#fff}
.file-oral-centre small{color:#C9D2E3;font-size:.8125rem}
.file-oral-anneau.prochain .file-oral-centre{background:#F5C343}
.file-oral-anneau.prochain .file-oral-centre b,.file-oral-anneau.prochain .file-oral-centre small{color:#141A26}
.file-oral-anneau.prochain .file-oral-centre b{font-size:2.25rem}
.file-oral-anneau.prochain .file-oral-centre b:empty::before{content:"1"}
.file-oral-points{align-self:center;margin:-8px 0 0;color:#C9D2E3;font-weight:600;letter-spacing:.02em}
.file-oral-fini{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;min-height:70vh;padding:0 8px}
.file-oral-fini p{max-width:420px;color:#C9D2E3;font-size:1.0625rem;line-height:1.5;margin:0}
.file-oral-coche svg circle{stroke:#F5C343;stroke-width:2.5;stroke-dasharray:151;stroke-dashoffset:0}
.file-oral-coche svg path{stroke:#F5C343;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:36;stroke-dashoffset:0}
@media (prefers-reduced-motion:no-preference){
  .file-oral-arc{animation:file-oral-tour 2.4s linear infinite}
  .file-oral-anneau.prochain .file-oral-arc{animation-duration:1.2s}
  .file-oral-onde{animation:file-oral-onde 2.8s ease-out infinite}
  .file-oral-onde.deux{animation-delay:1.4s}
  .file-oral-anneau.prochain .file-oral-centre{animation:file-oral-battement 1.6s ease-in-out infinite}
  .file-oral-points span{animation:file-oral-point 1.4s infinite;opacity:.2}
  .file-oral-points span:nth-child(2){animation-delay:.2s}
  .file-oral-points span:nth-child(3){animation-delay:.4s}
  .file-oral-coche svg circle{stroke-dashoffset:151;animation:file-oral-trace .7s ease-out forwards}
  .file-oral-coche svg path{stroke-dashoffset:36;animation:file-oral-trace .45s .6s ease-out forwards}
  .file-oral-fini h1,.file-oral-fini p{animation:qeli-apparition .5s .5s cubic-bezier(.2,.8,.2,1) both}
  @keyframes file-oral-tour{to{transform:rotate(360deg)}}
  @keyframes file-oral-onde{0%{transform:scale(.85);opacity:.9}100%{transform:scale(1.35);opacity:0}}
  @keyframes file-oral-battement{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
  @keyframes file-oral-point{0%,100%{opacity:.2}50%{opacity:1}}
  @keyframes file-oral-trace{to{stroke-dashoffset:0}}
}
.file-oral-prevu{margin:4px 0 0;color:var(--v3-jaune,#F5C343);font-weight:700}
.file-oral-rdv{background:rgba(255,255,255,.07);border-radius:14px;padding:12px 16px;color:#fff!important}
.file-oral-fini .bouton{margin-top:6px}
.encadre-oral{margin:16px 0}.encadre-oral h2{display:flex;gap:8px;align-items:center;margin:0}.encadre-oral-heure{font-size:1.0625rem;margin:0}
.liste-supports{list-style:none;padding:0;margin:4px 0 0;display:flex;flex-direction:column;gap:6px}.liste-supports a{display:inline-flex;gap:6px;align-items:center}
/* Oral blanc : fiche du sujet (formateur) et consignes montrées (apprenant) */
.fiche-oral{position:absolute;z-index:10;left:14px;top:calc(var(--barre-salle,38px) + 10px);bottom:14px;width:min(440px,calc(100% - 380px));display:flex;flex-direction:column;border-radius:16px;background:var(--surface);color:var(--texte);box-shadow:0 14px 36px rgba(5,10,25,.45);overflow:hidden}
.fiche-oral[hidden]{display:none}
.fiche-oral header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:12px 14px;background:var(--primaire);color:#fff}
.fiche-oral header strong{font-size:.875rem;line-height:1.35}
.fiche-oral-actions{display:flex;align-items:center;gap:4px;flex:none}
.fiche-oral header .bouton.lien{background:none!important;border:0;color:#C9D2E3;text-decoration:underline;min-height:0;padding:4px 6px;font-size:.75rem}
.fiche-oral header .icone-bouton{background:rgba(255,255,255,.12);color:#fff;border:0;width:30px;height:30px}
.fiche-oral-corps{overflow:auto;padding:12px 14px;display:flex;flex-direction:column;gap:14px}
.fiche-partie h3{margin:0 0 6px;font-size:.9375rem}
.fiche-partie h3 small{font-weight:500;color:var(--texte-2)}
.fiche-apprenant{background:var(--neutre-fond);border-radius:12px;padding:10px 12px;margin-bottom:8px}
.fiche-apprenant.montree{background:var(--succes-fond)}
.fiche-apprenant-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.fiche-apprenant-tete strong{font-size:.75rem;text-transform:uppercase;letter-spacing:.03em;color:var(--texte-2)}
.fiche-texte{white-space:pre-line;margin:0;font-size:.875rem;line-height:1.5}
.fiche-pour-vous{margin:0 0 4px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--texte-2)}
.file-oral-courant .bouton.secondaire{background:rgba(255,255,255,.12);color:#fff;border-color:transparent}
@media (max-width:900px){.fiche-oral{left:8px;right:8px;width:auto;top:auto;height:60%}}
.sujet-oral-apprenant{position:absolute;z-index:9;right:14px;top:calc(var(--barre-salle,38px) + 10px);width:min(380px,calc(100% - 28px));max-height:calc(100% - var(--barre-salle,38px) - 90px);overflow:auto;border-radius:16px;background:var(--surface);color:var(--texte);box-shadow:0 14px 36px rgba(5,10,25,.45);padding:14px 16px}
.sujet-oral-apprenant[hidden]{display:none}
.sujet-oral-apprenant h2{margin:0 0 8px;font-size:1rem}
.sujet-partie h3{margin:8px 0 4px;font-size:.875rem;color:var(--texte-2)}
.sujet-partie p{margin:0;white-space:pre-line;line-height:1.5}
/* Planning du formateur : supports de chaque séance, à ouvrir avant le cours */
.supports-ligne{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.supports-ligne.vide{font-size:.75rem;color:var(--texte-2)}
.support-puce{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:var(--neutre-fond);color:var(--texte);font-size:.75rem;font-weight:600;text-decoration:none;position:relative;z-index:1}
.support-puce:hover{background:var(--secondaire-survol)}
.support-puce.formateur{background:var(--accent-fond)}

/* Micros des apprenants (formateur) : pointage et tableau ; celui qui parle s'anime */
.micro-apprenant{flex:none;width:40px;height:40px;border:2px solid var(--bord);border-radius:8px;background:none;color:var(--texte-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.micro-apprenant .m-coupe,.icone-coupe .m-ouvert,[data-tableau-micros] .m-coupe{display:none}
.micro-apprenant.coupe{color:var(--erreur);border-color:var(--erreur);background:var(--erreur-fond)}
.micro-apprenant.coupe .m-ouvert{display:none}.micro-apprenant.coupe .m-coupe{display:inline}
.micro-apprenant.absent{opacity:.35;cursor:default}
.micro-apprenant.parle{color:#141A26;background:var(--accent);border-color:var(--accent);animation:micro-parle 1s ease-in-out infinite}
.micro-apprenant.parle svg{animation:micro-onde 1s ease-in-out infinite}
.micro-apprenant:focus-visible{box-shadow:var(--focus)}
@keyframes micro-parle{0%,100%{box-shadow:0 0 0 0 rgba(245,195,67,.75)}50%{box-shadow:0 0 0 7px rgba(245,195,67,0)}}
@keyframes micro-onde{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
@media (prefers-reduced-motion:reduce){.micro-apprenant.parle,.micro-apprenant.parle svg,[data-tableau-micros].quelqu-un-parle{animation:none}}
.salle-micros{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px 0}
.salle-micros .bouton{display:inline-flex;align-items:center;gap:6px}
/* dans le tableau (fenêtre ou plein écran) */
.tableau-outils button[data-tableau-micros].quelqu-un-parle{background:var(--accent);color:#141A26;animation:micro-parle 1s ease-in-out infinite}
.micros-menu{position:relative;display:inline-flex}
.chevron-micros{transition:transform .15s}[data-tableau-micros][aria-expanded=true] .chevron-micros{transform:rotate(180deg)}
.tableau-micros{position:absolute;top:calc(100% + 6px);left:0;z-index:30;width:270px;max-height:min(60vh,420px);overflow:auto;
  background:#1B2A4A;color:#fff;border-radius:14px;box-shadow:0 18px 40px rgba(8,14,28,.45);padding:10px}
.tableau-micros-tete{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:8px}
.tableau-micros-tete strong{flex:1 0 100%;font-size:.9375rem}
.tableau-micros-tete button{height:32px;padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font:700 .75rem/1 var(--police-texte);cursor:pointer}
.tableau-micros-tete button[data-micro-tous=couper]{background:var(--accent);color:#141A26}
.tableau-micros ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.tableau-micros li{display:flex;align-items:center;gap:10px;font-size:.875rem}
.tableau-micros li.note{color:#C9D0DD}
.tableau-micros .micro-apprenant{width:34px;height:34px;border-color:rgba(255,255,255,.25);color:#fff}
.tableau-micros .micro-apprenant.coupe{background:rgba(194,65,12,.25);border-color:#F08A5D;color:#F8B48F}
.tableau-micros .micro-apprenant.parle{color:#141A26;border-color:var(--accent)}

/* Console : filtres en ligne (notes des séances) */
.filtres-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0 16px}
.filtres-ligne select{min-height:40px}
/* Mes stats du formateur : commentaires des apprenants */
.avis-formateur{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.avis-formateur li{background:var(--surface);border-radius:14px;padding:12px 14px;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.avis-formateur .etoiles{color:#C89B1E;letter-spacing:1px;font-size:.9375rem}
.avis-formateur p{margin:6px 0 0}
/* Relevé du formateur : étiquette de paiement sur chaque ligne */
.ligne-paiement{font-size:.75rem;padding:3px 8px;margin-left:6px;vertical-align:middle}
