/* =========================================================================
   Dealing-Dealing V2 - feuille de style des maquettes (codes "nouveau Teams", Fluent 2).
   Polices systeme uniquement, aucun CDN. Clair : accueil, brief, fiche. Sombre : reunion.
   1 tokens - 2 base - 3 composants - 4 accueil - 5 dialogue Reglages - 6 brief anime
   7 fiche - 8 reunion - 9 incrustation (PiP) et fiche en superposition - 10 responsive - 11 impression
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root{
  --font:"Segoe UI","Segoe UI Variable Text",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Roboto,"Noto Sans",Arial,sans-serif;
  --font-num:"Segoe UI Variable Display","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Noto Sans",Arial,sans-serif;
  /* marque (Teams) */
  --brand-60:#444791; --brand-70:#4F52B2; --brand-80:#5B5FC7; --brand-90:#7F85F5; --brand-100:#9EA2FF;
  --brand-tint:#E8EBFA; --brand-tint-2:#DCDFF4;
  /* semantique */
  --danger:#C4314B; --danger-hover:#B02A42; --danger-pressed:#A02840;
  --success:#237B4B; --success-bright:#6BB700; --success-tint:#EAF6EF;
  --warning:#BC4B09; --warning-bright:#F7A33B; --warning-tint:#FDF5E6;
  /* clair */
  --bg-app:#F5F5F5; --bg-surface:#FFFFFF; --bg-subtle:#FAFAFA; --bg-hover:#F0F0F0; --bg-pressed:#E0E0E0;
  --stroke:#E0E0E0; --stroke-strong:#D1D1D1;
  --text:#242424; --text-2:#424242; --text-3:#616161; --text-disabled:#9A9A9A;
  /* sombre (reunion) */
  --m-bg:#1F1F1F; --m-surface:#292929; --m-surface-2:#333333; --m-hover:#3D3D3D; --m-pressed:#474747;
  --m-stroke:#3D3D3D; --m-stroke-2:#4D4D4D; --m-text:#FFFFFF; --m-text-2:#D6D6D6; --m-text-3:#ADADAD; --m-tile:#141414;
  /* geometrie */
  --r-sm:4px; --r-md:6px; --r-lg:8px; --r-xl:12px; --r-2xl:16px; --r-pill:999px;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px; --sp-10:40px;
  --sh-2:0 0 2px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.14);
  --sh-4:0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.14);
  --sh-8:0 0 2px rgba(0,0,0,.12),0 4px 8px rgba(0,0,0,.14);
  --sh-16:0 0 2px rgba(0,0,0,.12),0 8px 16px rgba(0,0,0,.14);
  --sh-28:0 0 8px rgba(0,0,0,.12),0 14px 28px rgba(0,0,0,.14);
  --sh-64:0 0 8px rgba(0,0,0,.12),0 32px 64px rgba(0,0,0,.14);
  /* typo */
  --fs-caption:12px; --fs-body:14px; --fs-sub:16px; --fs-title:20px; --fs-title-2:24px; --fs-hero:32px; --fs-display:40px; --fs-mega:88px;
  /* reunion */
  --h-mtop:56px; --d-ctl:44px; --pip-w:280px; --pip-h:160px; --gap-m:12px;
  /* mouvement (valeurs reprises dans SPEC.md) */
  --ease-out:cubic-bezier(.16,1,.3,1); --ease-in-out:cubic-bezier(.65,0,.35,1);
  --dur-1:120ms; --dur-2:200ms; --dur-3:320ms; --dur-4:480ms; --dur-5:800ms;
  --highlight-ms:3000ms;
}

/* ---------- 2. Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:var(--font);font-size:var(--fs-body);line-height:1.43;color:var(--text);background:var(--bg-app);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--brand-70)}
:focus-visible{outline:2px solid var(--brand-80);outline-offset:2px;border-radius:var(--r-sm)}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ico{width:20px;height:20px;flex:none;fill:currentColor}
.ico--16{width:16px;height:16px}.ico--24{width:24px;height:24px}.ico--28{width:28px;height:28px}.ico--32{width:32px;height:32px}.ico--40{width:40px;height:40px}.ico--48{width:48px;height:48px}
symbol[fill="none"]{fill:none}
.num{font-family:var(--font-num);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.spacer{flex:1}

/* ---------- 3. Composants ---------- */
.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:32px;padding:0 12px;border-radius:var(--r-md);border:1px solid var(--stroke-strong);background:var(--bg-surface);color:var(--text);font-weight:600;font-size:var(--fs-body);white-space:nowrap;transition:background var(--dur-1),border-color var(--dur-1),transform var(--dur-1)}
.btn:hover{background:var(--bg-hover)}
.btn:active{background:var(--bg-pressed)}
.btn--primary{background:var(--brand-80);border-color:transparent;color:#fff}
.btn--primary:hover{background:var(--brand-70)}
.btn--primary:active{background:var(--brand-60)}
.btn--subtle{background:transparent;border-color:transparent}
.btn--subtle:hover{background:var(--bg-hover)}
.btn--danger{background:var(--danger);border-color:transparent;color:#fff}
.btn--danger:hover{background:var(--danger-hover)}
.btn--lg{height:48px;padding:0 24px;font-size:var(--fs-sub);border-radius:var(--r-lg)}
.btn--xl{height:56px;padding:0 32px;font-size:18px;border-radius:var(--r-lg)}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.link{background:none;border:0;padding:0;color:var(--brand-70);font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.link:hover{text-decoration:underline}
.link--muted{color:var(--text-3);font-weight:400}

.chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:var(--r-pill);background:var(--bg-hover);color:var(--text-2);font-size:var(--fs-caption);font-weight:600;white-space:nowrap}
.chip--brand{background:var(--brand-tint);color:var(--brand-60)}
.chip--ok{background:var(--success-tint);color:var(--success)}
.chip--muted{background:transparent;border:1px dashed var(--stroke-strong);color:var(--text-3);font-weight:400}
.eyebrow{font-size:var(--fs-caption);font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-70)}
.card{background:var(--bg-surface);border-radius:var(--r-xl);box-shadow:var(--sh-4);padding:var(--sp-5)}

/* segmente (Voix / Chat, onglets) */
.seg{display:inline-flex;padding:2px;border-radius:var(--r-lg);background:var(--bg-hover);gap:2px}
.seg button{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border:0;border-radius:var(--r-md);background:transparent;color:var(--text-2);font-weight:600;font-size:13px;transition:background var(--dur-2),color var(--dur-2),box-shadow var(--dur-2)}
.seg button[aria-checked="true"],.seg button[aria-selected="true"]{background:var(--bg-surface);color:var(--brand-70);box-shadow:var(--sh-2)}

/* jauge de marche (brief, fiche, conseils) : echelle 34 000 - 46 000 */
.gauge{position:relative;height:56px;margin:0 8px}
.gauge-track{position:absolute;left:0;right:0;top:30px;height:8px;border-radius:var(--r-pill);background:var(--stroke)}
.gauge-band{position:absolute;top:30px;height:8px;border-radius:var(--r-pill);background:linear-gradient(90deg,var(--brand-tint-2),var(--brand-90));transform-origin:left center}
.gauge-tick{position:absolute;top:42px;transform:translateX(-50%);font-size:11px;color:var(--text-3);white-space:nowrap}
.gauge-mark{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;white-space:nowrap;color:var(--text)}
.gauge-mark::after{content:"";width:2px;height:16px;border-radius:2px;background:currentColor;margin-top:1px}
.gauge-mark[data-kind="offre"]{color:var(--text)}
.gauge-mark[data-kind="actuelle"]{color:var(--success)}
.gauge-mark[data-kind="cible"]{color:var(--brand-70)}
.gauge-mark[data-kind="minimum"]{color:var(--warning)}
.gauge-mark b{font-family:var(--font-num);font-variant-numeric:tabular-nums}
.gauge-mark > span{display:block;line-height:14px}
.gauge-mark::after{height:22px}
.f-card .gauge{height:66px}
.gauge-mark.below{top:26px;flex-direction:column-reverse}
.gauge-mark.below::after{margin:0 0 1px}

/* toasts */
.toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:90;pointer-events:none}
.toast{display:flex;align-items:center;gap:10px;padding:10px 16px;border-radius:var(--r-lg);background:#2B2B2B;color:#fff;box-shadow:var(--sh-16);font-weight:600;animation:toastIn var(--dur-3) var(--ease-out)}
@keyframes toastIn{from{opacity:0;transform:translateY(8px)}}

/* ---------- 4. Accueil (clair) ---------- */
.app-top{display:flex;align-items:center;gap:12px;height:56px;padding:0 24px;background:var(--bg-surface);border-bottom:1px solid var(--stroke)}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:var(--fs-sub);color:var(--text);text-decoration:none}
.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:var(--r-lg);background:linear-gradient(135deg,var(--brand-90),var(--brand-60));color:#fff}
.home{min-height:calc(100dvh - 56px);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:64px;max-width:1240px;margin:0 auto;padding:40px 48px}
.home-text{display:flex;flex-direction:column;gap:20px;max-width:520px}
.home h1{font-size:44px;line-height:1.1;font-weight:700;letter-spacing:-.02em}
.home h1 em{font-style:normal;color:var(--brand-70)}
.home-lead{font-size:18px;line-height:1.5;color:var(--text-2)}
.home-facts{display:flex;flex-wrap:wrap;gap:8px}
.home-cta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:8px}
.home-foot{display:flex;align-items:center;gap:16px;color:var(--text-3);font-size:13px;margin-top:4px}
.home-foot .sep{width:1px;height:14px;background:var(--stroke-strong)}
.home-visual{position:relative}
.home-tile{position:relative;aspect-ratio:16/10;border-radius:var(--r-2xl);overflow:hidden;background:#2a2a2a;box-shadow:var(--sh-28)}
.home-tile .avatar-host{position:absolute;inset:0}
.presence-pill{position:absolute;left:14px;top:14px;display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:var(--r-pill);background:rgba(0,0,0,.55);backdrop-filter:blur(8px);color:#fff;font-size:13px;font-weight:600}
.presence-pill i{width:8px;height:8px;border-radius:50%;background:var(--success-bright);box-shadow:0 0 0 3px rgba(107,183,0,.25)}
.nameplate{position:absolute;left:14px;bottom:14px;display:flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--r-md);background:rgba(0,0,0,.6);backdrop-filter:blur(8px);color:#fff;font-size:13px;font-weight:600}
.nameplate .ia{font-weight:400;color:#D6D6D6}
.float-card{position:absolute;display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:var(--r-xl);background:var(--bg-surface);box-shadow:var(--sh-16);animation:floatIn var(--dur-5) var(--ease-out) both}
.float-card .ico{color:var(--brand-70)}
.float-card b{display:block;font-size:var(--fs-title);line-height:1.1}
.float-card small{color:var(--text-3);font-size:12px}
.float-card--a{left:-36px;bottom:56px;animation-delay:.25s}
.float-card--b{right:-24px;top:40px;animation-delay:.45s}
@keyframes floatIn{from{opacity:0;transform:translateY(12px) scale(.98)}}

/* ---------- 5. Dialogue Reglages ---------- */
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.4);display:grid;place-items:center;z-index:80;animation:fade var(--dur-2) ease-out}
.scrim[hidden]{display:none}
@keyframes fade{from{opacity:0}}
.dialog{width:min(720px,calc(100vw - 32px));max-height:calc(100dvh - 48px);display:flex;flex-direction:column;background:var(--bg-surface);border-radius:var(--r-xl);box-shadow:var(--sh-64);animation:dlgIn var(--dur-3) var(--ease-out)}
@keyframes dlgIn{from{opacity:0;transform:translateY(8px) scale(.98)}}
.dialog-head{display:flex;align-items:center;gap:12px;padding:20px 24px 12px}
.dialog-head h2{font-size:var(--fs-title);font-weight:700}
.dialog-body{display:grid;grid-template-columns:180px 1fr;gap:24px;padding:8px 24px 16px;overflow:auto;min-height:340px}
/* V5.9 (c-reglages-01) : fenetre « Confidentialite » seule (le menu Reglages a onglets est supprime) */
.dialog--conf{width:min(560px,calc(100vw - 32px))}
.dialog--conf .dialog-head h2{display:flex;align-items:center;gap:10px}
.dialog--conf .dialog-body--seul{display:block;min-height:0}
.vtabs{display:flex;flex-direction:column;gap:2px}
.vtabs button{display:flex;align-items:center;gap:10px;height:36px;padding:0 12px;border:0;border-radius:var(--r-md);background:transparent;text-align:left;color:var(--text-2);font-weight:400}
.vtabs button:hover{background:var(--bg-hover)}
.vtabs button[aria-selected="true"]{background:var(--brand-tint);color:var(--brand-60);font-weight:600}
.dialog-foot{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px;border-top:1px solid var(--stroke)}
.set-panel h3{font-size:var(--fs-sub);font-weight:700;margin-bottom:4px}
.set-panel .hint{color:var(--text-3);font-size:13px;margin-bottom:16px}
.choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.choice{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;border-radius:var(--r-lg);border:1px solid var(--stroke-strong);background:var(--bg-surface);text-align:left}
.choice .ico{color:var(--brand-70)}
.choice strong{font-size:var(--fs-sub)}
.choice small{color:var(--text-3);font-size:13px}
.choice[aria-checked="true"]{border:2px solid var(--brand-80);padding:15px;background:var(--brand-tint)}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.field label{font-weight:600}
.field select{height:32px;padding:0 10px;border:1px solid var(--stroke-strong);border-bottom-color:#616161;border-radius:var(--r-sm);background:var(--bg-surface)}
.field small{color:var(--text-3);font-size:12px}
.privacy-list li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--stroke)}
.privacy-list li:last-child{border-bottom:0}
.privacy-list .ico{color:var(--success);margin-top:2px}
.privacy-list .warn .ico{color:var(--warning)}
.privacy-list strong{display:block}
.privacy-list p{color:var(--text-3);font-size:13px}

/* ---------- 6. Brief anime (clair, plein ecran) ---------- */
.brief{height:100dvh;display:grid;grid-template-rows:auto 1fr auto;background:radial-gradient(1200px 600px at 70% 10%,#EEF0FD 0,transparent 60%),var(--bg-app);overflow:hidden}
.brief-top{display:flex;align-items:center;gap:16px;padding:16px 32px 0}
.brief-top .brand{font-size:15px}
.progress{display:flex;gap:6px;flex:1;max-width:560px;margin:0 auto}
.progress button{flex:1;display:flex;flex-direction:column;gap:6px;padding:0;border:0;background:none;color:var(--text-3);font-size:11px;font-weight:600;text-align:left}
.progress .bar{position:relative;height:4px;border-radius:var(--r-pill);background:var(--stroke);overflow:hidden}
.progress .bar i{position:absolute;inset:0;background:var(--brand-80);transform-origin:left;transform:scaleX(var(--p,0))}
.progress button[aria-current="step"]{color:var(--brand-70)}
.progress button.done{color:var(--text-2)}
.stage{position:relative;display:grid;place-items:center;padding:24px 48px}
.scene{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:56px;max-width:1180px;margin:0 auto;padding:0 48px;opacity:0;visibility:hidden;transition:opacity var(--dur-4) var(--ease-out),visibility 0s linear var(--dur-4)}
.scene.is-on{opacity:1;visibility:visible;transition:opacity var(--dur-4) var(--ease-out)}
.scene-text{display:flex;flex-direction:column;gap:16px}
.scene-text .eyebrow{display:flex;align-items:center;gap:8px}
.scene-text h2{font-size:var(--fs-display);line-height:1.12;font-weight:700;letter-spacing:-.02em}
.scene-text p.sub{font-size:var(--fs-title);color:var(--text-2);line-height:1.4}
.scene-visual{position:relative;display:flex;justify-content:center}
/* apparitions sequencees : .in + --d (delai) */
.scene .in{opacity:0;transform:translateY(16px)}
.scene.is-on .in{animation:rise var(--dur-4) var(--ease-out) forwards;animation-delay:var(--d,0ms)}
@keyframes rise{to{opacity:1;transform:none}}
.scene.is-on .pop{animation:pop var(--dur-4) var(--ease-out) forwards;animation-delay:var(--d,0ms)}
@keyframes pop{0%{opacity:0;transform:scale(.85)}70%{opacity:1;transform:scale(1.03)}100%{opacity:1;transform:none}}
.scene.is-on .grow{animation:grow var(--dur-5) var(--ease-out) forwards;animation-delay:var(--d,0ms);transform:scaleX(0)}
@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* V2.4 : la pause arrete la voix et le minutage, pas les apparitions (sinon un brief ouvert en pause restait vide) */

/* scene 1 : situation */
.v-situation{position:relative;width:440px;height:380px}
.v-card{position:absolute;display:flex;align-items:center;gap:14px;padding:16px 20px;border-radius:var(--r-xl);background:var(--bg-surface);box-shadow:var(--sh-16)}
.v-card .badge{display:grid;place-items:center;width:48px;height:48px;border-radius:var(--r-lg);background:var(--brand-tint);color:var(--brand-70)}
.v-card b{display:block;font-size:var(--fs-sub)}
.v-card small{color:var(--text-3)}
.v-company{left:0;top:24px}
.v-city{right:0;top:132px}
.v-person{left:24px;bottom:16px;padding:12px 20px 12px 12px}
.v-person .mini-tile{width:120px;height:80px;border-radius:var(--r-lg);overflow:hidden;position:relative;background:#2a2a2a}
.v-person .mini-tile .avatar-host{position:absolute;inset:0}
.v-map{position:absolute;right:28px;top:0;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle at 50% 50%,var(--brand-tint) 0 40%,transparent 41%),repeating-radial-gradient(circle,transparent 0 18px,rgba(91,95,199,.12) 18px 19px);z-index:-1}

/* scene 2 : offre + marche */
.mega{font-size:var(--fs-mega);line-height:1;font-weight:700;letter-spacing:-.03em;color:var(--brand-60)}
.mega small{font-size:28px;letter-spacing:0;color:var(--text-2);font-weight:600;margin-left:6px}
.v-offre{width:100%;max-width:520px;display:flex;flex-direction:column;gap:24px}
.v-offre .gauge{height:64px}
.v-offre .gauge-mark{font-size:13px}
.inc-row{display:flex;flex-wrap:wrap;gap:8px}
.inc-row .chip{height:28px;font-size:13px}

/* scene 3 : reperes + leviers */
.v-reperes{width:100%;max-width:520px;display:flex;flex-direction:column;gap:20px}
.rep-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.rep{padding:14px 16px;border-radius:var(--r-xl);background:var(--bg-surface);box-shadow:var(--sh-8);border-top:4px solid var(--brand-80)}
.rep--min{border-top-color:var(--warning-bright)}
.rep--repli{border-top-color:var(--text-3)}
.rep small{display:block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3)}
.rep b{display:block;font-size:26px;line-height:1.2;margin-top:4px}
.rep--repli b{font-size:15px;line-height:1.35;font-weight:600}
.lev-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.lev{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px;border-radius:var(--r-xl);background:var(--bg-surface);box-shadow:var(--sh-4);text-align:center;font-weight:600;font-size:13px}
.lev .ico{color:var(--brand-70);width:28px;height:28px}
.lev small{font-weight:400;color:var(--text-3);font-size:11px}

/* scene 4 : atouts */
.v-atouts{display:flex;flex-direction:column;gap:16px;width:100%;max-width:500px}
.atout{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:20px;padding:20px 24px;border-radius:var(--r-2xl);background:var(--bg-surface);box-shadow:var(--sh-16)}
.atout .big{font-size:56px;line-height:1;font-weight:700;color:var(--brand-60);letter-spacing:-.03em}
.atout .big small{display:block;font-size:14px;letter-spacing:0;color:var(--text-3);font-weight:600;margin-top:6px}
.atout b{display:block;font-size:var(--fs-sub);margin-bottom:2px}
.atout p{color:var(--text-3);font-size:13px}
.atout-bonus{display:flex;align-items:center;gap:10px;padding:0 8px;color:var(--text-3);font-size:13px}

/* scene 5 : regles */
.v-regles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%;max-width:540px}
.regle{display:flex;flex-direction:column;gap:8px;padding:18px 16px;border-radius:var(--r-xl);background:var(--bg-surface);box-shadow:var(--sh-8)}
.regle .ico{color:var(--brand-70);width:28px;height:28px}
.regle b{font-size:15px}
.regle small{color:var(--text-3);font-size:12px;line-height:1.35}
.regle--ia{background:linear-gradient(135deg,var(--brand-tint),#fff)}

/* scene 6 : pret */
.v-pret{display:flex;flex-direction:column;gap:16px;width:100%;max-width:520px}
.v-pret .home-tile{aspect-ratio:16/9}
.pret-cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.mode-line{display:flex;align-items:center;gap:8px;color:var(--text-3);font-size:13px}

/* sous-titres + commandes */
.brief-bottom{display:flex;flex-direction:column;align-items:center;gap:14px;padding:0 32px 22px}
.subtitle{max-width:880px;min-height:56px;padding:10px 20px;border-radius:var(--r-lg);background:rgba(36,36,36,.86);color:#fff;font-size:17px;line-height:1.5;text-align:center;box-shadow:var(--sh-8)}
.subtitle .w{opacity:.35;transition:opacity var(--dur-2)}
.subtitle .w.on{opacity:1}
.player{display:flex;align-items:center;gap:6px;padding:6px;border-radius:var(--r-pill);background:var(--bg-surface);box-shadow:var(--sh-8)}
.player .pbtn{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:var(--text-2)}
.player .pbtn:hover{background:var(--bg-hover)}
.player .pbtn--main{width:48px;height:48px;background:var(--brand-80);color:#fff}
.player .pbtn--main:hover{background:var(--brand-70)}
.player .pbtn[aria-pressed="true"]{color:var(--brand-70);background:var(--brand-tint)}
.player .time{min-width:84px;text-align:center;color:var(--text-3);font-size:13px;font-variant-numeric:tabular-nums}
.player .vsep{width:1px;height:24px;background:var(--stroke)}

/* ---------- 7. Fiche de negociation ---------- */
.fiche-page{min-height:100dvh;background:var(--bg-app)}
.fiche-wrap{max-width:1240px;margin:0 auto;padding:20px 32px 24px}
.fiche-head{display:flex;align-items:center;gap:16px;margin-bottom:12px}
.fiche-head h1{font-size:var(--fs-title-2);font-weight:700;line-height:1.2}
.fiche-head p{color:var(--text-3)}
.fiche-actions{display:flex;gap:8px;margin-left:auto;align-items:center}
.fiche{display:grid;grid-template-columns:1.05fr 1.15fr 1fr;grid-template-rows:auto auto auto;gap:12px}
.f-card{background:var(--bg-surface);border-radius:var(--r-xl);box-shadow:var(--sh-2);padding:12px 16px;border:1px solid transparent}
.f-card h2{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3);margin-bottom:10px}
.f-card h2 .ico{color:var(--brand-70);width:16px;height:16px}
.f-who{display:flex;gap:12px;align-items:center}
.f-who .mini-tile{width:72px;height:72px;border-radius:50%;overflow:hidden;position:relative;background:#2a2a2a;flex:none}
.f-who .mini-tile .avatar-host{position:absolute;inset:-10% -40% -60%}
.f-who b{display:block;font-size:var(--fs-sub)}
.f-who small{display:block;color:var(--text-3);font-size:13px}
.f-kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin-top:12px;font-size:13px}
.f-kv dt{color:var(--text-3)}
.f-kv dd{margin:0;font-weight:600}
.f-offre .amount{font-size:40px;font-weight:700;line-height:1.05;color:var(--brand-60);letter-spacing:-.02em}
.f-offre .amount small{font-size:15px;color:var(--text-3);font-weight:600;letter-spacing:0;margin-left:4px}
.f-list{display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:column;grid-template-rows:repeat(3,auto);gap:6px 12px;font-size:13px;margin-top:10px}
.f-list li{display:flex;gap:8px;align-items:flex-start}
.f-list .ico{width:16px;height:16px;margin-top:2px}
.f-list .ok{color:var(--success)}
.f-list .no{color:var(--text-disabled)}
.f-list .no + span{color:var(--text-3)}
.f-gauge-note{font-size:11px;color:var(--text-3);margin-top:2px}
.f-reperes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px}
.f-rep{padding:10px 12px;border-radius:var(--r-lg);background:var(--bg-subtle);border:1px solid var(--stroke);border-top:3px solid var(--brand-80)}
.f-rep--min{border-top-color:var(--warning-bright)}
.f-rep--repli{border-top-color:var(--text-3)}
.f-rep small{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3)}
.f-rep input{width:100%;border:0;background:transparent;padding:2px 0 0;font-size:var(--fs-title);font-weight:700;font-family:var(--font-num);font-variant-numeric:tabular-nums}
.f-rep input:focus{outline:none;border-bottom:2px solid var(--brand-80)}
.f-rep p{font-size:13px;font-weight:600;line-height:1.3;margin-top:4px}
.f-rep .editbtn{border:0;background:none;padding:0;color:var(--text-3);display:grid}
.f-lev{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.f-lev li{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:var(--r-lg);background:var(--bg-subtle);font-size:13px;font-weight:600;line-height:1.25}
.f-lev .ico{color:var(--brand-70)}
.f-lev small{display:block;font-weight:400;color:var(--text-3);font-size:11px}
.f-atouts li{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center;padding:6px 0}
.f-atouts li + li{border-top:1px solid var(--stroke)}
.f-bonus{margin:8px 0 0;padding-top:8px;border-top:1px solid var(--stroke);font-size:13px;line-height:1.4;color:var(--text-2)}
.f-atouts .big{font-size:26px;font-weight:700;color:var(--brand-60);line-height:1;text-align:center}
.f-atouts .big small{display:block;font-size:11px;color:var(--text-3);font-weight:600}
.f-atouts b{display:block;font-size:13px}
.f-atouts p{font-size:12px;color:var(--text-3)}
.f-regles{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.f-regles li{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.3}
.f-regles .ico{width:16px;height:16px;color:var(--brand-70);margin-top:1px}
.f-regles b{display:block;font-size:13px}
.f-regles small{color:var(--text-3)}
.f-plan{grid-column:1/-1;display:grid;grid-template-columns:auto repeat(4,1fr);gap:0;align-items:stretch;padding:0;overflow:hidden}
.f-plan h2{margin:0;padding:14px 18px;background:var(--brand-tint);color:var(--brand-60);display:flex;align-items:center}
.f-plan h2 .ico{color:var(--brand-60)}
.f-plan .f-step{display:flex;gap:10px;align-items:center;padding:12px 16px;border-left:1px solid var(--stroke)}
.f-plan .n{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--brand-80);color:#fff;font-weight:700;flex:none}
.f-plan b{display:block;font-size:14px}
.f-plan small{display:block;color:var(--text-3);font-size:12px;line-height:1.3}
.f-col{display:flex;flex-direction:column;gap:12px}
.fiche-tabs{margin-bottom:10px}
.f-long{background:var(--bg-surface);border-radius:var(--r-xl);box-shadow:var(--sh-2);padding:20px 24px;max-width:860px;display:flex;flex-direction:column;gap:16px;font-size:15px;line-height:1.6}
.f-long h2,.f-long h3{font-size:var(--fs-sub);font-weight:700}

/* ---------- 8. Reunion (sombre) ---------- */
.meeting{height:100dvh;display:grid;grid-template-rows:var(--h-mtop) 1fr;background:var(--m-bg);color:var(--m-text);overflow:hidden}
.m-top{display:flex;align-items:center;gap:12px;padding:0 12px 0 16px;border-bottom:1px solid #2B2B2B;background:#1A1A1A;position:relative;z-index:20}
.m-title{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;white-space:nowrap}
.m-title small{font-weight:400;color:var(--m-text-3);font-size:13px}
/* V6.0 (c-niveau-01) : mention discrete du niveau joue (« · Niveau 2 »), gardee quand les autres petites mentions se cachent */
.m-title small.m-niveau{margin-left:-6px}
@media (max-width:1023px){.m-title small.m-niveau:not([hidden]){display:inline}}
.m-timer{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:var(--r-pill);background:#2B2B2B;font-weight:600;font-size:13px;font-variant-numeric:tabular-nums;color:var(--m-text-2)}
.m-timer i{width:8px;height:8px;border-radius:50%;background:var(--danger)}
.m-timer.is-warn{background:#4A3418;color:#FFD39A}
.m-timer.is-crit{background:#4D1F27;color:#FFB3BF}
.m-timer.is-done{background:#173A28;color:#BDE8CF}
.m-timer.is-done i{background:#6CCB93}
.m-timer.is-paused{background:#2F3058;color:#C9CCFF}
.m-timer.is-paused i{background:var(--brand-100);animation:blink 1.2s steps(2) infinite}
@keyframes blink{50%{opacity:.2}}
.m-ctls{display:flex;align-items:center;gap:4px}
.ctl{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:56px;height:var(--d-ctl);padding:0 8px;border:0;border-radius:var(--r-md);background:transparent;color:var(--m-text-2);font-size:11px;transition:background var(--dur-1)}
.ctl .ico{width:20px;height:20px}
.ctl:hover{background:var(--m-hover);color:#fff}
.ctl[aria-pressed="true"]{background:#2F3058;color:#C9CCFF}
.ctl.is-off{color:var(--m-text-3)}
.ctl.is-off .ico{color:#FF8A9A}
.ctl .badge{position:absolute;top:2px;right:4px;min-width:16px;height:16px;padding:0 4px;border-radius:var(--r-pill);background:var(--brand-80);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center}
.ctl[disabled]{opacity:.4;cursor:not-allowed}
.ctl-sep{width:1px;height:28px;background:#3A3A3A;margin:0 4px}
.btn-leave{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 14px;margin-left:4px;border:0;border-radius:var(--r-md);background:var(--danger);color:#fff;font-weight:600}
.btn-leave:hover{background:var(--danger-hover)}
/* menu ... */
.menu{position:absolute;right:0;top:calc(100% + 6px);width:280px;padding:4px;border-radius:var(--r-lg);background:#2B2B2B;border:1px solid #3A3A3A;box-shadow:var(--sh-28);z-index:40;animation:dlgIn var(--dur-2) var(--ease-out)}
.menu[hidden]{display:none}
.menu button{display:flex;align-items:center;gap:12px;width:100%;height:36px;padding:0 12px;border:0;border-radius:var(--r-md);background:transparent;color:var(--m-text);text-align:left;font-size:14px}
.menu button:hover{background:var(--m-hover)}
.menu button .ico{color:var(--m-text-2)}
.menu button .state{margin-left:auto;color:var(--m-text-3);font-size:12px}
.menu hr{border:0;border-top:1px solid #3A3A3A;margin:4px 0}
.menu .menu-label{padding:8px 12px 4px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--m-text-3)}

/* grille principale : colonne gauche = visio (tuile) + conseils ; colonne droite = conversation sur toute la hauteur.
   La largeur de la colonne gauche suit la HAUTEUR de la fenetre : la tuile occupe ~46 % de la hauteur, sans bandes vides. */
.m-body{--left-w:clamp(440px,calc((100dvh - var(--h-mtop) - 2 * var(--gap-m)) * .46 * 16 / 9),840px);display:grid;grid-template-columns:var(--left-w) minmax(0,1fr);gap:var(--gap-m);padding:var(--gap-m);min-height:0}
.m-left{display:flex;flex-direction:column;gap:var(--gap-m);min-height:0}
.m-left > .panel{flex:1 1 0}
.m-right{display:flex;flex-direction:column;min-height:0}
.m-right > .panel{flex:1 1 0}
.tile{position:relative;width:100%;aspect-ratio:16/9;border-radius:var(--r-lg);overflow:hidden;background:var(--m-tile);flex:none;transition:box-shadow var(--dur-3)}
.tile .avatar-host{position:absolute;inset:0}
.tile.is-speaking{box-shadow:0 0 0 2px var(--brand-90),0 0 24px rgba(127,133,245,.35)}
.tile .nameplate{left:12px;bottom:12px}
.state-chip{position:absolute;left:12px;top:12px;display:flex;align-items:center;gap:8px;height:28px;padding:0 12px;border-radius:var(--r-pill);background:rgba(0,0,0,.55);backdrop-filter:blur(8px);font-size:13px;font-weight:600}
.state-chip .dots{display:inline-flex;gap:3px}
.state-chip .dots i{width:5px;height:5px;border-radius:50%;background:#fff;animation:dot 1.2s infinite ease-in-out}
.state-chip .dots i:nth-child(2){animation-delay:.15s}.state-chip .dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-2px)}}
.state-chip .bars{display:inline-flex;gap:2px;align-items:center;height:12px}
.state-chip .bars i{width:3px;border-radius:2px;background:var(--brand-100);animation:bar .9s infinite ease-in-out}
.state-chip .bars i:nth-child(1){height:6px}.state-chip .bars i:nth-child(2){height:12px;animation-delay:.12s}.state-chip .bars i:nth-child(3){height:8px;animation-delay:.24s}
@keyframes bar{50%{transform:scaleY(.4)}}
.mode-badge{position:absolute;right:12px;top:12px;display:flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:var(--r-pill);background:rgba(0,0,0,.55);backdrop-filter:blur(8px);font-size:12px;font-weight:600;color:var(--m-text-2)}
.mode-badge[hidden]{display:none}
.selfview{position:absolute;right:10px;bottom:10px;width:104px;height:62px;border-radius:var(--r-md);background:#2F2F3A;border:1px solid #444;display:grid;place-items:center}
.selfview .initials{display:grid;place-items:center;width:32px;height:32px;font-size:12px;border-radius:50%;background:var(--brand-80);font-weight:700}
.selfview .lbl{position:absolute;left:6px;bottom:4px;display:flex;align-items:center;gap:4px;font-size:11px;color:var(--m-text-2)}
.selfview .lbl .ico{width:12px;height:12px}
.selfview.is-talking{box-shadow:0 0 0 2px var(--brand-90)}
/* pause */
.pause-ov{position:absolute;inset:0;display:grid;place-items:center;background:rgba(20,20,30,.72);backdrop-filter:blur(6px);z-index:5}
.pause-ov[hidden]{display:none}
.pause-box{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.ring{position:relative;width:96px;height:96px}
.ring svg{width:96px;height:96px;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:6}
.ring .bg{stroke:rgba(255,255,255,.15)}
.ring .fg{stroke:var(--brand-100);stroke-linecap:round;transition:stroke-dashoffset 1s linear}
.ring b{position:absolute;inset:0;display:grid;place-items:center;font-size:24px;font-variant-numeric:tabular-nums}
.pause-box h2{font-size:var(--fs-title);font-weight:700}
.pause-box p{color:var(--m-text-2);font-size:13px;max-width:320px}
/* sous-titres (voix) : 2 lignes sous la tuile */
.captions{flex:none;height:74px;display:flex;flex-direction:column;justify-content:flex-end;padding:8px 14px;border-radius:var(--r-lg);background:#141414;overflow:hidden}
#capLines{display:flex;flex-direction:column;justify-content:flex-end;gap:2px;overflow:hidden}
.cap-line{display:flex;gap:10px;font-size:14px;line-height:1.4;color:var(--m-text-3)}
.cap-line b{flex:none;font-size:11px;font-weight:700;color:var(--brand-100);padding-top:3px;min-width:48px}
.cap-line.me b{color:var(--m-text-3)}
.cap-line.cur{color:#fff;font-size:15px}
.cap-line.cur b{padding-top:4px}
.cap-line .w{opacity:0;transition:opacity 120ms}
.cap-line .w.on{opacity:1}

/* panneaux */
.panel{display:flex;flex-direction:column;min-height:0;border-radius:var(--r-lg);background:var(--m-surface);overflow:hidden}
.panel-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-height:48px;padding:8px 8px 8px 16px;border-bottom:1px solid var(--m-stroke)}
.panel-head h2{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700}
.panel-head h2 .ico{color:var(--brand-100)}
.panel-head .sub{font-size:12px;color:var(--m-text-3)}
/* bascule Voix / Chat (sombre) */
.vc-switch{display:inline-flex;margin-left:auto;padding:2px;border-radius:var(--r-pill);background:#1F1F1F;border:1px solid var(--m-stroke-2)}
.vc-switch button{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--m-text-3);font-weight:600;font-size:13px;transition:background var(--dur-2),color var(--dur-2)}
.vc-switch button .ico{width:16px;height:16px}
.vc-switch button[aria-checked="true"]{background:var(--brand-80);color:#fff}
.vc-switch button:not([aria-checked="true"]):hover{color:#fff}
/* conversation */
.chat-list{flex:1;min-height:0;overflow:auto;padding:12px 16px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.msg{display:flex;flex-direction:column;gap:2px;max-width:min(88%,660px)}
.msg .meta{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--m-text-3)}
.msg .meta .ico{width:12px;height:12px}
.msg .txt{padding:8px 12px;border-radius:var(--r-lg);background:var(--m-surface-2);font-size:14px;line-height:1.45;color:var(--m-text)}
.msg.me{align-self:flex-end;align-items:flex-end}
.msg.me .txt{background:#3B3D78;color:#fff}
.msg.new .txt{animation:msgIn var(--dur-3) var(--ease-out)}
@keyframes msgIn{from{opacity:0;transform:translateY(6px)}}
/* V2.7.5 : la saisie (flex:none) grandit jusqu'a ~6 lignes (8.4em = 6 x line-height 1.4, + padding 16 + bordures 3) puis defile ;
   plafonnee a 32dvh quand le clavier ecrase la fenetre. La liste (flex:1;min-height:0) se reduit d'autant (meeting.js : fitInput) */
.composer{flex:none;display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--m-stroke)}
.composer textarea{flex:1;resize:none;height:36px;min-height:36px;max-height:calc(8.4em + 19px);max-height:min(calc(8.4em + 19px),32dvh);padding:8px 12px;border:1px solid var(--m-stroke-2);border-bottom:2px solid var(--brand-80);border-radius:var(--r-md);background:#1F1F1F;color:#fff;font-size:14px;line-height:1.4}
.composer textarea::placeholder{color:var(--m-text-3)}
.composer .send{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--r-md);background:transparent;color:var(--brand-100)}
.composer .send:hover{background:var(--m-hover)}
/* conseils */
.coach-meta{display:flex;align-items:center;gap:10px;margin-left:auto}
.next-in{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--m-text-3);white-space:nowrap}
.next-in .pips{display:inline-flex;gap:3px}
.next-in .pips i{width:7px;height:7px;border-radius:50%;border:1.5px solid var(--m-text-3)}
.next-in .pips i.on{background:var(--brand-100);border-color:var(--brand-100)}
.btn-dark{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border:1px solid var(--m-stroke-2);border-radius:var(--r-md);background:transparent;color:var(--m-text);font-weight:600;font-size:12px;white-space:nowrap}
.btn-dark:hover{background:var(--m-hover)}
.btn-dark[aria-busy="true"] .ico{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.coach-top{flex:none;display:flex;flex-direction:column;gap:2px;padding:8px 10px 0}
.coach-body{flex:1;min-height:0;overflow:auto;padding:8px 10px 10px;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin}
/* ligne « Ou en est la negociation » : une seule ligne, depliable */
.nego{display:flex;flex-direction:column;gap:6px}
.nego-sum{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:0 10px;border:1px solid var(--m-stroke);border-radius:var(--r-lg);background:#1F1F1F;color:var(--m-text-2);font-size:13px;text-align:left;white-space:nowrap;overflow:hidden}
.nego-sum:hover{background:#262626}
.nego-sum .lbl{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--m-text-3)}
.nego-sum .now{font-size:16px;font-weight:700;color:#fff}
.nego-sum .delta{font-size:12px;font-weight:700;color:#8FD18F}
.nego-sum .sep{color:var(--m-text-3)}
.nego-sum .phase{color:#C9CCFF;font-weight:600}
.nego-sum .chev{margin-left:auto;display:grid;color:var(--m-text-3);transition:transform var(--dur-2)}
.nego-sum[aria-expanded="true"] .chev{transform:rotate(90deg)}
.nego-detail{display:flex;flex-direction:column;gap:4px;padding:6px 10px 8px;border-radius:var(--r-lg);background:#1F1F1F;border:1px solid var(--m-stroke)}
.nego-detail[hidden]{display:none}
.nego-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:26px}
.nego .lbl{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--m-text-3)}
.nego .muted-none{font-size:12px;color:var(--m-text-3)}
.nego .chipd{display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:var(--r-pill);background:#22382A;color:#A9E3B5;font-size:12px;font-weight:600}
.nego .chipd--todo{background:transparent;border:1px dashed #4D4D4D;color:var(--m-text-3);font-weight:400}
.nego-mini .gauge{height:48px;margin:0 10px}
.nego-mini .gauge-mark.below{top:18px}
.nego-mini .gauge-track{top:20px;height:6px;background:#3A3A3A}
.nego-mini .gauge-band{top:20px;height:6px;background:linear-gradient(90deg,#3A3D6E,#5B5FC7)}
.nego-mini .gauge-tick{top:28px;color:var(--m-text-3);font-size:10px}
.nego-mini .gauge-mark{font-size:10px}
.nego-mini .gauge-mark::after{height:12px}
.nego-mini .gauge-mark[data-kind="offre"]{color:var(--m-text-3)}
.nego-mini .gauge-mark[data-kind="actuelle"]{color:#8FD18F}
.nego-mini .gauge-mark[data-kind="cible"]{color:var(--brand-100)}
.coach-flash{text-align:center;font-size:12px;color:var(--m-text-3);padding:2px 0 0}
.coach-flash[hidden]{display:none}
.coach-soft{margin:2px 0 8px;padding:8px 10px;border-radius:var(--r-md);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--m-text-2);font-size:12px;line-height:1.4;text-align:center}
.coach-soft[hidden]{display:none}
/* fil de conseils */
.feed{display:flex;flex-direction:column;gap:8px}
.tipcard{position:relative;border-radius:var(--r-lg);background:var(--m-surface-2);border:1px solid var(--m-stroke);overflow:hidden;transition:opacity var(--dur-3)}
.tipcard-head{display:flex;align-items:center;gap:8px;padding:6px 6px 0 12px;font-size:11px;color:var(--m-text-3)}
.tipcard-head .when{font-weight:700;color:var(--m-text-2);white-space:nowrap}
.tipcard-head .ctx{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#D6D6D6}
.tc-toggle{margin-left:auto;display:grid;place-items:center;width:24px;height:24px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--m-text-3)}
.tc-toggle:hover{background:var(--m-hover);color:#fff}
.tc-toggle .ico{transition:transform var(--dur-2)}
.tc-toggle[aria-expanded="true"] .ico{transform:rotate(90deg)}
.tip{padding:4px 12px 10px}
.tip + .tip{border-top:1px solid var(--m-stroke);padding-top:8px}
.tip .tag{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#FFB3BF}
.tip .tag.reflexe{color:#B4B8FF}
.tip .tag.consider{color:#FFD39A}
.tip h3{font-size:14px;font-weight:700;margin:1px 0 0;line-height:1.3}
.tip p{font-size:13px;color:var(--m-text-2);line-height:1.4}
.tip .say{display:flex;gap:8px;margin-top:6px;padding:7px 10px;border-radius:var(--r-md);background:#24264A;color:#E2E4FF;font-size:13px;line-height:1.4}
.tip .say .ico{width:16px;height:16px;color:var(--brand-100);flex:none;margin-top:1px}
.tip .why{margin-top:4px}
.tip .why summary{cursor:pointer;display:inline-block;font-size:12px;font-weight:600;color:var(--m-text-3);list-style:none;padding:2px 0}
.tip .why summary::-webkit-details-marker{display:none}
.tip .why summary:hover{color:#fff}
.tip .why[open] summary{color:var(--brand-100)}
.tip .why p{margin-top:2px;font-size:12.5px}
/* 1er niveau : seule la 1re idee est detaillee ; la 2e se lit au clic (is-open) ; les cartes anciennes se replient sur leurs titres */
.tipcard:not(.is-open) .tip--sec .say,.tipcard:not(.is-open) .tip--sec .why{display:none}
.tipcard.is-collapsed .tip .say,.tipcard.is-collapsed .tip .why,.tipcard.is-collapsed .tip .tag{display:none}
.tipcard.is-collapsed .tip{padding:2px 12px 4px}
.tipcard.is-collapsed .tip + .tip{border-top:0;padding-top:0}
.tipcard.is-collapsed .tip h3{font-size:13px;font-weight:600;color:var(--m-text-2)}
.tipcard.is-collapsed .tipcard-head{padding-bottom:0}
.tipcard.is-collapsed{padding-bottom:4px}
.tipcard.is-new{border-color:var(--brand-90);animation:newCard var(--dur-4) var(--ease-out)}
.tipcard.is-new::before{content:"";position:absolute;inset:0;background:rgba(127,133,245,.16);animation:hl var(--highlight-ms) ease-out forwards;pointer-events:none}
@keyframes newCard{from{opacity:0;transform:translateY(-10px)}}
@keyframes hl{0%,60%{opacity:1}100%{opacity:0}}
.tipcard .newtag{margin-left:auto;padding:1px 6px;border-radius:var(--r-pill);background:var(--brand-80);color:#fff;font-size:10px;font-weight:700;letter-spacing:.04em}
.tipcard .newtag + .tc-toggle{margin-left:0}
.tipcard--cadre{border-color:#7A5A1E;background:#332B1D}
.tipcard--cadre .tipcard-head .when{color:#FFD39A}
.tipcard--cadre .tipcard-head .ctx{color:#FFD39A}
.tipcard--cadre .cadre-txt{display:flex;gap:8px;align-items:flex-start;color:#F2E6CF}
.tipcard--cadre .cadre-txt .ico{color:#FFD39A;margin-top:1px}
.tipcard--fin{border-style:dashed;text-align:center}
.tipcard--fin .tip{padding-top:10px}
.feed-end{text-align:center;font-size:12px;color:var(--m-text-3);padding:2px 0 6px}
.mood-line{display:flex;align-items:center;gap:8px;min-height:22px;padding:2px 4px 0;font-size:12px;color:var(--m-text-3)}
.mood-line i{width:8px;height:8px;border-radius:50%;background:var(--m-text-3);flex:none;transition:background var(--dur-4)}
.mood-line[data-humeur="chaleureuse"] i,.mood-line[data-humeur="interessee"] i{background:#6BB700}
.mood-line[data-humeur="reservee"] i{background:#F7A33B}
.mood-line[data-humeur="agacee"] i{background:#FF8A9A}
.mood-line:empty{display:none}

/* porte d'entree (micro) */
.gate{position:fixed;inset:var(--h-mtop) 0 0 0;display:grid;place-items:center;background:rgba(20,20,20,.85);backdrop-filter:blur(6px);z-index:30}
.gate[hidden]{display:none}
.gate-box{width:min(460px,calc(100vw - 32px));padding:28px;border-radius:var(--r-xl);background:var(--m-surface);box-shadow:var(--sh-28);display:flex;flex-direction:column;gap:14px;text-align:center;align-items:center}
.gate-box{color:var(--m-text)}
.gate-box h2{font-size:var(--fs-title);font-weight:700}
.gate-box p{color:var(--m-text-2)}

/* ---------- 9. Fiche en superposition + incrustation (PiP) ---------- */
.sheet{position:fixed;inset:var(--h-mtop) 0 0 0;z-index:25;background:var(--bg-app);color:var(--text);overflow:auto;animation:sheetIn var(--dur-3) var(--ease-out)}
.sheet[hidden]{display:none}
@keyframes sheetIn{from{opacity:0;transform:translateY(12px)}}
.sheet .fiche-wrap{padding-top:16px;padding-bottom:200px}
.sheet-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:10px 32px;background:rgba(245,245,245,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--stroke)}
.sheet-bar .live{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-3)}
.sheet-bar .live i{width:8px;height:8px;border-radius:50%;background:var(--danger);animation:blink 1.6s steps(2) infinite}
.pip{position:fixed;right:20px;bottom:20px;width:var(--pip-w);height:var(--pip-h);border-radius:var(--r-lg);overflow:hidden;background:var(--m-tile);box-shadow:0 0 0 1px rgba(255,255,255,.08),var(--sh-28);z-index:60;touch-action:none;transition:left var(--dur-3) var(--ease-out),top var(--dur-3) var(--ease-out),right var(--dur-3) var(--ease-out),bottom var(--dur-3) var(--ease-out);color:#fff}
.pip[hidden]{display:none}
.pip.is-dragging{transition:none;cursor:grabbing}
.pip .avatar-host{position:absolute;inset:0}
.pip-bar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:4px;padding:6px;background:linear-gradient(transparent,rgba(0,0,0,.75));opacity:1}
.pip-bar .who{font-size:12px;font-weight:600;margin-right:auto;padding-left:4px;display:flex;align-items:center;gap:6px}
.pip-btn{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:var(--r-md);background:rgba(0,0,0,.45);color:#fff}
.pip-btn:hover{background:rgba(255,255,255,.18)}
.pip-btn.is-off{color:#FF8A9A}
.pip-top{position:absolute;left:6px;right:6px;top:6px;display:flex;align-items:center;gap:6px;cursor:grab}
.pip-top .m-timer{height:22px;font-size:11px;background:rgba(0,0,0,.55)}
.pip-top .state-chip{position:static;height:22px;font-size:11px;padding:0 8px}
.pip-grip{margin-left:auto;display:grid;place-items:center;width:22px;height:22px;border-radius:var(--r-sm);background:rgba(0,0,0,.45);color:#ddd}
.pip.is-speaking{box-shadow:0 0 0 2px var(--brand-90),var(--sh-28)}
/* 2 lignes au plus : pas de padding vertical (le clamp laisserait entrevoir une 3e ligne), le fond est porte par une ombre pleine */
.pip-cap{position:absolute;left:12px;right:12px;bottom:48px;font-size:11px;line-height:1.35;background:rgba(0,0,0,.6);box-shadow:0 0 0 4px rgba(0,0,0,.6);border-radius:var(--r-sm);padding:0 2px;max-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pip-cap:empty{display:none}

/* dialogue quitter (sombre) */
.dlg-dark{width:min(440px,calc(100vw - 32px));padding:24px;border-radius:var(--r-xl);background:var(--m-surface);color:var(--m-text);box-shadow:var(--sh-64);display:flex;flex-direction:column;gap:12px}
.dlg-dark h2{font-size:var(--fs-title);font-weight:700}
.dlg-dark p{color:var(--m-text-2)}
.dlg-dark .row{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}

/* index des maquettes */
.toc{max-width:1100px;margin:0 auto;padding:40px 32px}
.toc h1{font-size:var(--fs-hero);font-weight:700;margin-bottom:8px}
.toc > p{color:var(--text-3);margin-bottom:24px;font-size:16px}
.toc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.toc-grid a{display:flex;flex-direction:column;gap:6px;padding:20px;border-radius:var(--r-xl);background:var(--bg-surface);box-shadow:var(--sh-4);color:var(--text);text-decoration:none;transition:box-shadow var(--dur-2),transform var(--dur-2)}
.toc-grid a:hover{box-shadow:var(--sh-16);transform:translateY(-2px)}
.toc-grid b{font-size:var(--fs-sub)}
.toc-grid small{color:var(--text-3)}
.toc-grid .n{font-size:12px;font-weight:700;color:var(--brand-70)}

/* ---------- 10. Responsive ---------- */
@media (min-width:1600px){
  .scene-text h2{font-size:48px}
  .mega{font-size:104px}
  .fiche-wrap{padding-top:32px}
}
@media (max-width:1279px){
  .home{gap:40px;padding:32px}
  .scene{gap:32px}
  .fiche{grid-template-columns:1fr 1fr}
  .f-plan{grid-template-columns:repeat(2,1fr)}
  .f-plan h2{grid-column:1/-1}
}
@media (max-width:1023px){
  .home{grid-template-columns:1fr;padding:24px 16px}
  .home-visual{order:-1;max-width:560px}
  .float-card{display:none}
  .scene{grid-template-columns:1fr;gap:20px;padding:0 16px;align-content:center}
  .scene-text h2{font-size:30px}
  .scene-text p.sub{font-size:16px}
  .mega{font-size:64px}
  .v-situation{transform:scale(.8);height:320px}
  .m-body{grid-template-columns:1fr;grid-template-rows:auto auto;overflow:auto}
  .m-left .captions{display:none}
  .m-left > .panel{flex:none;min-height:340px}
  .m-right > .panel{flex:none;min-height:420px}
  .m-title small,.ctl span{display:none}
  .ctl{min-width:44px}
  .dialog-body{grid-template-columns:1fr}
  .vtabs{flex-direction:row;overflow:auto}
  .fiche{grid-template-columns:1fr}
  .f-plan{grid-template-columns:1fr}
  .f-plan .f-step{border-left:0;border-top:1px solid var(--stroke)}
  .fiche-head{flex-wrap:wrap}
  .fiche-actions{margin-left:0}
}
@media (max-width:600px){
  .home h1{font-size:32px}
  .progress button span{display:none}
  .brief-bottom{padding:0 16px 16px}
  .subtitle{font-size:15px}
  .v-regles,.lev-grid{grid-template-columns:repeat(2,1fr)}
  .rep-row{grid-template-columns:1fr}
  .atout{grid-template-columns:96px 1fr}
  .atout .big{font-size:40px}
  :root{--pip-w:200px;--pip-h:114px}
}
@media (prefers-reduced-motion:reduce){
  /* c-firefox-01 : sauf la page du brief (html.nt-brief), dont le mode reduit est un reglage de l'appli (classe bd-calme de html, brief.css) :
     :where() garde la specificite nulle de * (aucun changement pour les autres pages) */
  :where(:root:not(.nt-brief)),:where(:root:not(.nt-brief))::before,:where(:root:not(.nt-brief))::after,
  :where(:root:not(.nt-brief)) *,:where(:root:not(.nt-brief)) *::before,:where(:root:not(.nt-brief)) *::after{animation-duration:1ms!important;animation-delay:0ms!important;transition-duration:1ms!important}
  .scene .in{opacity:1;transform:none}
  .scene.is-on .grow{transform:none}
}

/* ---------- 11. Impression (fiche) ---------- */
@media print{
  @page{size:A4 landscape;margin:10mm}
  body{background:#fff}
  .app-top,.fiche-actions,.no-print,.toasts,.pip,.m-top,.sheet-bar{display:none!important}
  .fiche-wrap{padding:0;max-width:none}
  .f-card{box-shadow:none;border:1px solid #CCC;break-inside:avoid}
  .fiche{gap:8px}
  .f-rep input{border:0}
  .sheet{position:static;overflow:visible}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ---------- 12. Application reelle : complements aux maquettes ---------- */
.skip-link{position:absolute;left:8px;top:-48px;background:var(--brand-80);color:#fff;padding:8px 12px;border-radius:var(--r-md);z-index:100}
.skip-link:focus{top:8px}
.spinner{display:inline-block;width:18px;height:18px;border-radius:50%;border:2px solid rgba(127,127,127,.35);border-top-color:currentColor;animation:spin .8s linear infinite;vertical-align:-3px}
.inline-error{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-lg);background:#FBEAED;color:#7A1B2C;border:1px solid #F1C5CC;font-size:var(--fs-body)}
.inline-error .ico{color:var(--danger);flex:none}
.fiche-wrap > .inline-error{margin-bottom:12px}
.v-pret .inline-error{max-width:520px}
.toast.toast--error{background:#5C1D28}.toast.toast--warn{background:#5A3A0C}
.toast.leaving{opacity:0;transform:translateY(8px);transition:all var(--dur-3)}
.toast .ico{flex:none}
.mock-banner{position:fixed;left:12px;bottom:10px;z-index:70;background:rgba(240,240,240,.92);color:#616161;font-size:11px;line-height:16px;font-weight:600;padding:1px 10px;border-radius:var(--r-pill);pointer-events:none}
body.meeting-page .mock-banner{display:none}
.js-error-box{position:fixed;left:8px;right:8px;bottom:8px;z-index:9999;background:#fff3f3;color:#a00;font:12px/1.4 monospace;padding:6px 10px;white-space:pre-wrap}
.js-error-box:empty{display:none}
.mode-line .link{font-weight:600}
/* reunion : fin d'entretien, connexion, cadre de la negociation, humeur */
.end-banner{flex:none;display:flex;align-items:center;gap:16px;padding:12px 20px;border-radius:var(--r-lg);background:linear-gradient(120deg,#33357a,#4F52B2);color:#fff;box-shadow:var(--sh-16);animation:toastIn var(--dur-4) var(--ease-out)}
.end-banner[hidden]{display:none}
.end-banner .ico{width:32px;height:32px;color:#FFE08A;flex:none}
.end-banner .txt{flex:1;min-width:0}
.end-banner b{display:block;font-size:var(--fs-title);line-height:28px;font-weight:600}
.end-banner span{color:#E3E5FF}
.end-banner .btn--primary{background:#fff;color:#33357a;height:40px;padding:0 20px;white-space:nowrap}
.end-banner .btn--primary:hover{background:#E8EBFA}
.connecting{position:absolute;inset:0;z-index:25;display:grid;place-content:center;justify-items:center;gap:14px;background:#1F1F1F;text-align:center}
.connecting[hidden]{display:none}
.connecting.is-out{opacity:0;transition:opacity var(--dur-4) var(--ease-out)}
.connecting .ring-c{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#8B8FEA,#444791);font-weight:600;font-size:28px;position:relative}
.connecting .ring-c::after{content:"";position:absolute;inset:-8px;border-radius:50%;border:2px solid rgba(139,143,234,.55);animation:ringc 1.4s ease-out infinite}
@keyframes ringc{0%{transform:scale(.9);opacity:.9}100%{transform:scale(1.35);opacity:0}}
.connecting p{font-size:var(--fs-sub);font-weight:600}
.connecting small{color:var(--m-text-3)}
.new-msgs{position:sticky;bottom:0;align-self:center;margin-top:-4px;height:28px;padding:0 12px;border:0;border-radius:var(--r-pill);background:var(--brand-80);color:#fff;font-size:12px;font-weight:600;box-shadow:var(--sh-8)}
.new-msgs[hidden]{display:none}
.chat-empty{margin:auto;color:var(--m-text-3);font-size:13px;text-align:center}
.composer textarea:disabled{opacity:.5}
.composer .send:disabled{opacity:.4;cursor:not-allowed}
.tile .nameplate .mic-ind{display:none}
.msg .txt{white-space:pre-wrap;overflow-wrap:anywhere}
.coach-body .coach-more{align-self:center}
.dlg-dark .dlg-sub{color:var(--m-text-3);font-size:12px}
.scrim[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.connecting .ring-c::after{animation:none}}


/* conversation : « Camille ecrit… » */
.msg.typing .txt{display:inline-flex;padding:10px 14px}
.typing-dots{display:inline-flex;gap:4px}
.typing-dots i{width:6px;height:6px;border-radius:50%;background:var(--m-text-3);animation:dot 1.2s infinite ease-in-out}
.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}
/* karaoke : la replique s'ecrit mot a mot (voix : au rythme de l'audio joue ; chat : au rythme du flux), meme curseur partout.
   Les mots sont poses d'avance et seulement rendus visibles : aucune reflow pendant le remplissage. */
.msg .txt.kara{position:relative}
.kara .w{opacity:0;transition:opacity 120ms ease-out}
.kara .w.on{opacity:1}
.kara.is-live .w.cur{position:relative}
.kara.is-live .w.cur::after,.kara.is-live:not(.has-on)::before{content:"";position:absolute;width:2px;border-radius:1px;background:currentColor;opacity:.75;animation:karaCaret 1s steps(2) infinite}
.kara.is-live .w.cur::after{right:-4px;top:.15em;bottom:.1em}
.kara.is-live:not(.has-on)::before{left:12px;top:10px;height:1.15em}
.kara.is-cut .w:not(.on){opacity:1;color:var(--m-text-3)}   /* non prononce : gris lisible (contraste 5,6:1) */
.cap-line.is-cut .w:not(.on){opacity:1;color:#9A9A9A}
.msg .meta .cut-tag{font-style:italic}
@keyframes karaCaret{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.kara .w{transition:none}.kara.is-live .w.cur::after,.kara.is-live:not(.has-on)::before{animation:none}}
/* fiche en superposition : l'incrustation ne masque pas le plan (le plan se retrecit a gauche de l'incrustation) */
@media (min-width:1024px){.sheet.has-pip .f-plan{margin-right:calc(var(--pip-w) + 28px)}}

/* ---------- 13. Debrief (clair, meme en-tete que l'accueil) ---------- */
.debrief-page{min-height:100dvh;background:var(--bg-app)}
.debrief-page .app-top .crumb{color:var(--text-3);font-size:13px}
.debrief-page .muted{color:var(--text-3)}
.reveal{animation:reveal .6s var(--ease-out) both}
@keyframes reveal{from{opacity:0;transform:translateY(12px)}}
/* L'en-tete du debrief (titre, sous-titre, bouton Rejouer) reste opaque pendant l'animation : un fondu depuis opacity:0 fait mesurer un faux contraste (axe) et un texte pale */
.d-hero.reveal{animation-name:reveal-pos}
@keyframes reveal-pos{from{transform:translateY(12px)}}
.d-main{width:min(1240px,100%);margin:0 auto;padding:20px 32px 56px;display:flex;flex-direction:column;gap:16px}
.d-hero{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.d-portrait{position:relative;width:84px;height:84px;border-radius:50%;overflow:hidden;background:#2a2a2a;flex:none;box-shadow:var(--sh-8),0 0 0 3px #fff}
.d-portrait .avatar-host{position:absolute;inset:-10% -40% -60%}
.d-hero-txt{flex:1;min-width:240px}
.d-hero h1{font-size:var(--fs-hero);line-height:1.15;font-weight:700;letter-spacing:-.02em}
.d-hero p{color:var(--text-3);margin-top:2px}
.d-actions{display:flex;gap:8px;flex-wrap:wrap}
.loading-card{display:grid;place-items:center;text-align:center;padding:64px 24px;gap:14px}
.loading-card h2{margin:0;font-size:var(--fs-title);font-weight:600}
.loading-ring{width:72px;height:72px;border-radius:50%;border:5px solid var(--brand-tint-2);border-top-color:var(--brand-80);animation:spin 1s linear infinite}
.loading-steps{display:flex;flex-direction:column;gap:6px;color:var(--text-3);margin-top:8px}
.loading-steps li{opacity:.4;transition:opacity .4s}
.loading-steps li.is-on{opacity:1;color:var(--text)}
.dash{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.dash .s3{grid-column:span 3}.dash .s4{grid-column:span 4}.dash .s5{grid-column:span 5}.dash .s9{grid-column:span 9}.dash .s6{grid-column:span 6}.dash .s12{grid-column:1/-1}
.debrief-page .field-label{font-size:var(--fs-caption);font-weight:700;color:var(--text-3);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}
.debrief-page .chips{display:flex;flex-wrap:wrap;gap:8px}
.debrief-page .badge{display:inline-flex;align-items:center;gap:6px;padding:3px 12px;border-radius:var(--r-pill);font-size:13px;font-weight:700;line-height:20px;background:var(--brand-tint);color:var(--brand-60)}
.debrief-page .badge--ok{background:var(--success-tint);color:var(--success)}
.debrief-page .badge--warn{background:var(--warning-tint);color:var(--warning)}
.d-card,.radar-card{padding:20px 22px}
.d-card h2,.radar-card h2{font-size:var(--fs-sub);line-height:22px;font-weight:700;display:flex;gap:8px;align-items:center;margin-bottom:12px}
.d-card h2 .ico,.radar-card h2 .ico{color:var(--brand-80)}
.card-head{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:6px}
.card-head h2{margin-bottom:0}
.card-sub{color:var(--text-3);font-size:13px}
/* score */
.score-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;gap:6px;background:linear-gradient(180deg,#fff,#F3F4FD)}
.score-card .field-label{margin:0}
.score-ring{position:relative;width:168px;height:168px}
.score-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.score-ring .track{stroke:var(--brand-tint-2)}
.score-ring .bar{stroke:url(#gaugeGrad);stroke-linecap:round;transition:stroke-dashoffset 1.6s var(--ease-out)}
.score-ring .center{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.score-ring .num{font-size:52px;line-height:56px;font-weight:600;letter-spacing:-2px}
.score-ring .of{color:var(--text-3);margin-top:-2px}
.score-card .verdict{font-size:var(--fs-sub);font-weight:700}
.score-facts{display:flex;flex-direction:column;gap:8px;width:100%;margin:6px 0 0;text-align:left}
.score-facts .fact{padding:8px 12px;border-radius:var(--r-lg);background:#fff;border:1px solid var(--stroke);border-left:4px solid var(--success-bright)}
.score-facts .fact--up{border-left-color:var(--warning-bright)}
.score-facts dt{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--text-3)}
.score-facts dd{margin:0;font-weight:700;display:flex;justify-content:space-between;gap:8px}
.score-facts .fact--ok dd b{color:var(--success)}.score-facts .fact--up dd b{color:var(--warning)}
/* resultat */
.outcome{display:flex;flex-direction:column}
.outcome #outcome{display:flex;flex-direction:column;gap:16px;flex:1}
.out-grid{display:grid;grid-template-columns:1fr auto 1.3fr;gap:12px;align-items:center}
.out-stat{padding:14px 16px;border-radius:var(--r-xl);background:var(--bg-subtle);border:1px solid var(--stroke)}
.out-stat b{display:block;font-size:28px;line-height:1.15;font-weight:700;color:var(--text-2)}
.out-stat small{display:block;color:var(--text-3);font-size:13px}
.out-stat--main{background:var(--brand-tint);border-color:var(--brand-tint-2)}
.out-stat--main b{font-size:34px;color:var(--brand-60)}
.out-stat--main.is-none{background:var(--warning-tint);border-color:#F1DDB5}
.out-stat--main.is-none b{color:var(--warning)}
.out-stat .gain{color:var(--success);font-weight:700}
.out-arrow{color:var(--text-3);display:grid}
.out-adv p{font-size:13px}
.out-last{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:var(--r-md);background:var(--bg-subtle);border:1px solid var(--stroke)}
.out-last-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.out-last-row>b{font-size:20px;font-weight:700}
.out-last .chip{height:26px}
.out-lev .chip,.out-adv .chip{height:26px}
/* conseil principal */
.main-advice{display:flex;gap:16px;align-items:center;padding:18px 24px;background:linear-gradient(120deg,#4F52B2,#6F5CD0);color:#fff;border-radius:var(--r-xl);box-shadow:0 12px 32px rgba(79,82,178,.3)}
.main-advice .ico{width:32px;height:32px;flex:none;color:#FFE08A}
.main-advice h2{font-size:var(--fs-caption);text-transform:uppercase;letter-spacing:.08em;opacity:.85;margin-bottom:6px;font-weight:700}
.main-advice p{font-size:17px;line-height:26px;font-weight:600}
/* courbe d'humeur */
.curve-wrap{position:relative}
#curve{display:block;width:100%;height:auto;overflow:visible}
#curve .zlab{font:600 12px var(--font)}
#curve .zsep{stroke:#fff;stroke-width:1.5}
#curve .xlab{font:600 12px var(--font);fill:var(--text-3)}
#curve .curve-line{fill:none;stroke:var(--brand-80);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
#curve .pt-g{cursor:pointer}
#curve .pt-g .dot{transition:r var(--dur-2)}
#curve .pt-g:hover .dot{r:8}
#curve .pin{cursor:pointer;outline:none}
#curve .pin-stem{stroke:var(--brand-80);stroke-width:1.5;stroke-dasharray:3 3}
#curve .pin-dot{fill:var(--brand-80);stroke:#fff;stroke-width:2.5;transition:transform var(--dur-2)}
#curve .pin:hover .pin-dot,#curve .pin:focus-visible .pin-dot{fill:var(--brand-60);stroke:var(--brand-100)}
#curve .pin-n{font:700 12px var(--font);fill:#fff;pointer-events:none}
.curve-tip{position:absolute;z-index:3;max-width:320px;padding:8px 12px;border-radius:var(--r-lg);background:#2B2B2B;color:#fff;font-size:13px;line-height:1.4;box-shadow:var(--sh-16);pointer-events:none}
.curve-tip b{display:block;font-size:12px;color:var(--brand-100)}
.curve-tip span{display:block;color:#EDEDED}
/* radar + axes */
.radar-grid{display:grid;grid-template-columns:minmax(0,440px) minmax(0,1fr);gap:28px;align-items:center}
.radar-wrap{display:grid;place-items:center}
.radar{width:100%;height:auto;overflow:visible}
.radar .grid{fill:none;stroke:var(--stroke-strong);stroke-width:1}
.radar .grid.outer{stroke:#BDBDBD}
.radar .axis{stroke:var(--stroke);stroke-width:1}
.radar .area{fill:rgba(91,95,199,.22);stroke:var(--brand-80);stroke-width:2.5;stroke-linejoin:round}
.radar .pt{fill:#fff;stroke:var(--brand-80);stroke-width:2.5}
.radar .pt--ne{stroke:var(--text-disabled);stroke-dasharray:2 2}
.radar text{font:600 13px var(--font);fill:var(--text-2)}
.radar text.val{font:700 13px var(--font);fill:var(--brand-70)}
.radar text.val--ne{fill:var(--text-3)}
.radar .scale{font:500 11px var(--font);fill:var(--text-2);paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.axes-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:center}
.axis-row{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:8px 12px;border-radius:var(--r-lg);background:var(--bg-subtle)}
.axis-row .lab{font-weight:700}
.axis-row .sc{font-weight:700;color:var(--brand-70)}
.axis-row.is-ne .sc{color:var(--text-3);font-weight:600}
.axis-row .meter{grid-column:1/-1;height:6px;border-radius:3px;background:var(--bg-pressed);overflow:hidden}
.axis-row .meter i{display:block;height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#7F85F5,#444791);transition:width 1.2s var(--ease-out)}
.axis-row .proof{grid-column:1/-1;color:var(--text-3);font-size:13px;line-height:1.4}
.axis-row.is-ne .proof{font-style:italic}
/* cartes lisibles */
.bullets{display:flex;flex-direction:column;gap:10px}
.bullets li{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-lg);line-height:1.45}
.bullets .ico{margin-top:2px}
.bullets.ok li{background:var(--success-tint)}.bullets.ok .ico{color:var(--success)}
.bullets.up li{background:var(--warning-tint)}.bullets.up .ico{color:var(--warning)}
.bullets li.is-empty{background:var(--bg-subtle);color:var(--text-3);border:1px dashed var(--stroke-strong)}
.quotes{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.quote{position:relative;margin:0;padding:16px 20px 14px 56px;border-radius:var(--r-lg);background:linear-gradient(180deg,#FBFBFF,#F1F2FC);border:1px solid var(--brand-tint-2);border-left:4px solid var(--brand-80);outline:none}
.quote:not(:has(.q-n)){padding-left:20px}
.quote .q-n{position:absolute;left:14px;top:14px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--brand-80);color:#fff;font-weight:700;font-size:13px}
.quote .q-meta{display:flex;gap:10px;align-items:center;font-size:12px;font-weight:700;color:var(--text-3);margin-bottom:4px}
.quote .q-mood{display:inline-flex;align-items:center;gap:6px;padding:1px 8px;border-radius:var(--r-pill);background:#fff;border:1px solid var(--stroke-strong);color:var(--text-2)}
.quote .q-mood::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c)}
.quote blockquote{margin:0;font-size:var(--fs-sub);line-height:24px;font-style:italic;color:#2b2d63;font-weight:500}
.quote blockquote.unverified,.unverified{color:var(--text-3);font-style:italic}
.quote figcaption{margin-top:10px;color:var(--text-2);padding-top:10px;border-top:1px dashed var(--brand-tint-2)}
.quote.is-flash{animation:qflash 1.6s ease-out}
@keyframes qflash{0%,40%{box-shadow:0 0 0 3px var(--brand-80)}100%{box-shadow:0 0 0 0 transparent}}
.d-card details{margin-top:2px}
.d-card summary{cursor:pointer;font-weight:600;list-style:none;display:flex;gap:8px;align-items:center;padding:6px 0}
.d-card summary::-webkit-details-marker{display:none}
.d-card summary .chev{transition:transform .25s}
.d-card details[open] summary .chev{transform:rotate(90deg)}
.transcript{display:flex;flex-direction:column;gap:8px;margin-top:10px;max-height:420px;overflow-y:auto;padding-right:6px}
.tline{display:grid;grid-template-columns:96px 1fr;gap:10px;padding:8px 10px;border-radius:var(--r-md)}
.tline:nth-child(odd){background:var(--bg-subtle)}
.tline .who{font-weight:600;color:var(--text-2)}.tline .who.me{color:var(--success)}
.tline .who small{display:block;font-weight:400;color:var(--text-3)}
.footnote{color:var(--text-3);font-size:var(--fs-caption);text-align:center;margin-top:20px}
@media (max-width:1100px){
  .dash .s3,.dash .s9{grid-column:1/-1}
  .radar-grid{grid-template-columns:1fr}
  .axes-list{grid-template-columns:1fr}
}
@media (max-width:720px){
  .d-main{padding:16px}
  .dash .s6{grid-column:1/-1}
  .out-grid{grid-template-columns:1fr}.out-arrow{display:none}
  .curve-wrap{overflow-x:auto}#curve{min-width:760px}
}

/* ---------- 14. Passe UX/UI V2.1 (ux-brief-01) : finitions, grandes tailles, telephone ---------- */
/* icones des boutons et pastilles : centrees sur la ligne de texte (le <span data-i> hydrate etait en ligne, decale vers le haut) */
.btn > span:has(> .ico),.chip > span:has(> .ico),.link > span:has(> .ico){display:inline-flex}
/* accueil : la carte flottante ne mord plus sur la plaque du nom */
.float-card--a{bottom:84px}
/* brief : scene 3, libelle des cartes hors salaire ; scene 4, fil du stage ; scene 5, cartes de meme hauteur avec leur precision ; scene 6, boutons alignes */
.lev-label{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3);margin-bottom:-8px}
.atout-lead{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-3)}
.atout-lead .ico{color:var(--brand-70)}
.atout .big small{font-weight:600}
.v-regles{grid-auto-rows:1fr}
.regle small{display:block}
.v-pret .pret-cta .btn{height:56px}
.scene-text p.sub{max-width:36ch}
/* fiche : encart « D'ou viennent vos atouts » */
.f-origin{margin:0 0 8px;padding:12px 14px;border-radius:var(--r-lg);background:var(--brand-tint);border:1px solid var(--brand-tint-2)}
.f-origin h3{font-size:13px;font-weight:700;color:var(--brand-60);margin-bottom:8px}
.f-origin dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px;margin:0;font-size:13px;line-height:1.4}
.f-origin dt{color:var(--text-3);font-weight:600}
.f-origin dd{margin:0;color:var(--text)}
.f-origin p{display:flex;gap:6px;align-items:flex-start;margin-top:8px;font-size:13px;font-weight:600;color:var(--brand-60)}
.f-origin p .ico{margin-top:2px}
.f-atouts .big small{margin-top:4px;line-height:1.2}
.f-atouts p{line-height:1.4}
/* fiche : liste de l'offre en une colonne par statut (plus de mots coupes ni de ligne masquee) */
.f-list{grid-template-columns:1fr 1fr;grid-auto-flow:row;grid-template-rows:none}
.f-list li{min-width:0}
.f-gauge-note{line-height:1.45;margin-top:6px}
.f-rep--repli p{font-weight:600;font-size:13px}
.f-lev li{align-items:flex-start}
.f-lev .ico{margin-top:2px}
/* reglages : champ « Adresse du serveur » */
.field-row{display:flex;gap:8px;align-items:center}
.field input[type=url]{flex:1;min-width:0;height:32px;padding:0 10px;border:1px solid var(--stroke-strong);border-bottom-color:#616161;border-radius:var(--r-sm);background:var(--bg-surface)}
.field input[type=url]:focus{outline:none;border-bottom:2px solid var(--brand-80)}
.test-out.is-ok{color:var(--success);font-weight:600}
.test-out.is-ko{color:var(--danger);font-weight:600}
/* reunion : pastille d'etat (couleur = etat), vignette « Vous », menu sans doublon Voix/Chat */
.state-chip::before{content:"";width:8px;height:8px;border-radius:50%;background:#8A8A8A;flex:none}
.tile[data-state="listening"] .state-chip::before{background:var(--success-bright)}
.tile[data-state="speaking"] .state-chip::before{background:var(--brand-100)}
.tile[data-state="thinking"] .state-chip::before{background:var(--warning-bright)}
.tile.is-closed .state-chip::before{background:#8A8A8A}
.selfview .initials{width:30px;height:30px;color:#fff}
.msg .meta{min-height:16px}
.nego-sum{min-height:36px}
.tipcard-head{min-height:24px}
/* incrustation : la legende passe SOUS la visio au lieu de couvrir le visage */
.pip{height:auto;display:flex;flex-direction:column}
.pip .avatar-host{position:relative;inset:auto;height:var(--pip-h);flex:none}
.pip-bar{bottom:auto;top:calc(var(--pip-h) - 42px)}
/* marges portees par une bordure : un padding laisserait entrevoir une 3e ligne sous le clamp */
.pip-cap{position:static;flex:none;max-height:none;padding:0;border:solid #141414;border-width:6px 10px;background:#141414;box-shadow:none;border-radius:0;font-size:12px;line-height:1.4;color:#EDEDED;-webkit-line-clamp:2}
/* bandeau de fin : l'icone du bouton n'herite plus de la grande icone du bandeau */
.end-banner span{font-size:14px}
.end-banner .btn .ico{width:20px;height:20px;color:currentColor}
/* debrief : conseil principal sans chevauchement, cartes points forts / axes de progres alignees en haut */
.main-advice{padding:20px 24px}
.main-advice > div{min-width:0}
.d-card .bullets{align-content:start}
.debrief-page .app-top .crumb{margin-left:4px;padding-left:12px;border-left:1px solid var(--stroke-strong)}
/* toasts : au-dessus du contenu, largeur bornee */
.toast{max-width:min(560px,calc(100vw - 32px));line-height:1.4}
/* onglets telephone (masques sur ordinateur) */
.m-tabs{display:none}

/* grandes tailles (1600 px et plus) : le brief occupe l'ecran au lieu de flotter au milieu */
@media (min-width:1600px) and (min-height:900px){
  .scene{max-width:1520px;gap:96px}
  .scene-text h2{font-size:56px}
  .scene-text p.sub{font-size:24px}
  .scene-text .eyebrow{font-size:14px}
  .scene-visual > *{zoom:1.3}
  .progress{max-width:720px}
  .progress button{font-size:12px}
  .subtitle{font-size:19px;max-width:1040px}
}

/* tablette et telephone : visio en haut, onglets Conversation / Conseils dessous */
@media (max-width:1023px){
  .m-body{display:flex;flex-direction:column;overflow:hidden;gap:8px;padding:8px}
  .m-left,.m-right{display:contents}
  .tile{order:1;width:min(100%,calc(40dvh * 16 / 9));align-self:center}
  .captions{order:2;height:auto;min-height:52px}
  .m-left .captions{display:flex}
  .end-banner{order:3}
  .m-tabs{order:4;display:flex;gap:4px;padding:4px;border-radius:var(--r-pill);background:var(--m-surface);flex:none}
  .m-tabs button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--m-text-2);font-size:15px;font-weight:600;position:relative}
  .m-tabs button[aria-selected="true"]{background:var(--brand-80);color:#fff}
  .m-tab-dot{width:8px;height:8px;border-radius:50%;background:var(--warning-bright)}
  #panelCoach,#panelChat{order:5;flex:1 1 0;min-height:0}
  .m-left > .panel,.m-right > .panel{flex:1 1 0;min-height:0}
  .m-body[data-mtab="chat"] #panelCoach,.m-body[data-mtab="coach"] #panelChat{display:none}
  .ctl span:not(.sr-only){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;display:block}
  .ctl .badge{display:block}
}
/* telephone (portrait) */
@media (max-width:767px){
  :root{--pip-w:140px;--pip-h:80px}
  /* accueil */
  .app-top{padding:0 16px}
  .home{padding:16px 16px 32px;gap:24px;min-height:auto}
  .home h1{font-size:32px}
  .home-lead{font-size:16px}
  .home-cta{flex-direction:column;align-items:stretch}
  .home-cta .btn{width:100%}
  .home-cta .link{justify-content:center;min-height:44px}
  .home-foot{justify-content:center;font-size:14px}
  .home-foot .link{min-height:44px}
  .chip{height:28px;font-size:13px}
  .btn{min-height:44px}
  .btn--subtle{min-width:44px}
  /* reglages */
  .dialog{max-height:calc(100dvh - 24px)}
  .dialog-body{padding:8px 16px 16px;gap:12px;min-height:0}
  .vtabs button{height:44px;flex:none}
  .choice-grid{grid-template-columns:1fr}
  .field select,.field input[type=url]{height:44px;font-size:16px}
  .dialog-foot .btn{flex:1}
  /* brief anime : scenes defilables, commandes au pouce */
  .brief-top{padding:12px 16px 0;gap:8px;flex-wrap:wrap}
  .progress{order:3;flex-basis:100%;max-width:none}
  .brief-top .btn{min-height:44px}
  .stage{padding:8px 0}
  .scene{align-content:start;overflow-y:auto;padding:8px 16px 16px;gap:16px}
  .scene-text{gap:10px}
  .scene-text h2{font-size:26px}
  .scene-text p.sub{font-size:16px}
  .v-situation{position:static;width:100%;height:auto;transform:none;display:flex;flex-direction:column;gap:10px}
  .v-situation .v-card{position:static}
  .v-map{display:none}
  .v-card{padding:12px 14px}
  .v-card small{font-size:13px}
  .mega{font-size:52px}
  .v-offre{gap:16px}
  .rep-row{grid-template-columns:1fr 1fr}
  .rep--repli{grid-column:1/-1}
  .rep b{font-size:22px}
  .lev-grid,.v-regles{grid-template-columns:1fr 1fr}
  .lev{font-size:14px}
  .regle{padding:12px}
  .regle small{font-size:13px}
  .atout{grid-template-columns:96px 1fr;gap:12px;padding:14px 16px}
  .atout .big{font-size:36px}
  .atout .big small{font-size:13px}
  .v-pret .pret-cta{flex-direction:column;align-items:stretch}
  .v-pret .pret-cta .btn{width:100%}
  .brief-bottom{padding:0 12px calc(12px + env(safe-area-inset-bottom));gap:8px}
  .subtitle{font-size:15px;min-height:0;padding:8px 12px}
  .player .pbtn{width:44px;height:44px}
  .player .pbtn--main{width:52px;height:52px}
  .player .time{min-width:72px}
  /* telephone : le bandeau de demo ne recouvre plus l'en-tete (logo, « Passer le brief ») : pastille discrete en bas a gauche */
  .mock-banner{top:auto;bottom:calc(2px + env(safe-area-inset-bottom));left:6px;transform:none;font-size:10px;line-height:14px;padding:0 8px;opacity:.85;z-index:5}
  /* fiche : une colonne, encarts empiles */
  .fiche-wrap{padding:12px 12px 24px}
  .fiche-head h1{font-size:22px}
  .fiche-actions{width:100%;flex-wrap:wrap}
  .fiche-actions .btn{flex:1 1 auto}
  .f-card{padding:14px}
  .f-kv,.f-list,.f-lev li,.f-regles li,.f-origin dl,.f-origin p,.f-atouts p,.f-plan small,.f-gauge-note,.f-who small,.f-rep p{font-size:14px}
  .f-atouts b,.f-regles b{font-size:15px}
  .f-reperes{grid-template-columns:1fr 1fr}
  .f-rep--repli{grid-column:1/-1}
  .f-lev,.f-regles{grid-template-columns:1fr}
  .f-origin dl{grid-template-columns:1fr;gap:2px}
  .f-origin dd{margin-bottom:6px}
  .editbtn{min-width:44px;min-height:44px;justify-content:end}
  .fiche-tabs button{height:40px}
  /* reunion : barre de commandes en bas, cibles de 44 px au moins */
  .meeting{grid-template-rows:var(--h-mtop) 1fr}
  .m-top{padding:0 12px;gap:8px}
  .m-title{min-width:0;font-size:15px}
  .m-title #mTitle{overflow:hidden;text-overflow:ellipsis}
  .m-timer{height:32px;font-size:14px;flex:none}
  .m-ctls{position:fixed;left:0;right:0;bottom:0;z-index:22;justify-content:space-around;gap:0;height:calc(64px + env(safe-area-inset-bottom));padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#1A1A1A;border-top:1px solid #2B2B2B}
  .ctl{min-width:52px;height:48px}
  .ctl .ico{width:24px;height:24px}
  .ctl-sep{display:none}
  .btn-leave{height:48px;padding:0 16px;font-size:15px}
  .menu{top:auto;bottom:calc(100% + 8px);width:min(300px,calc(100vw - 24px))}
  .menu button{height:44px;font-size:15px}
  .m-body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  .tile{width:100%}
  .state-chip,.mode-badge{height:30px;font-size:14px}
  .mode-badge{display:none}
  .selfview{width:72px;height:48px}
  .selfview .lbl{display:none}
  .cap-line,.cap-line.cur{font-size:15px}
  .panel-head{padding:6px 8px 6px 12px}
  .vc-switch button{height:40px;font-size:14px}
  .msg .txt{font-size:15px}
  .msg .meta{font-size:12px}
  .composer textarea{height:44px;min-height:44px;font-size:16px}
  .composer .send{width:44px;height:44px}
  .btn-dark{height:40px;font-size:14px}
  .next-in{display:none}
  .end-banner{flex-wrap:wrap;gap:10px;padding:12px 14px}
  .end-banner .btn--primary{width:100%;height:44px}
  .end-banner b{font-size:17px;line-height:24px}
  .gate,.sheet{bottom:calc(64px + env(safe-area-inset-bottom))}
  .gate{inset:var(--h-mtop) 0 calc(64px + env(safe-area-inset-bottom)) 0}
  .gate-box .btn,.gate-box .link{min-height:44px}
  .dlg-dark .row{flex-direction:column-reverse}
  .dlg-dark .row .btn{width:100%;height:44px}
  /* fiche en superposition + incrustation 140 x 80 */
  .sheet-bar{padding:8px 12px;flex-wrap:wrap}
  .sheet-bar .live,.sheet-bar .btn:not(.btn--primary){display:none}
  .sheet .fiche-wrap{padding-bottom:140px}
  .pip{right:8px;bottom:calc(72px + env(safe-area-inset-bottom))}
  .pip-top .state-chip,.pip-grip,.pip-bar .who{display:none}
  .pip-top{left:4px;top:4px}
  .pip-bar{top:calc(var(--pip-h) - 44px);padding:0 2px;justify-content:flex-end}
  .pip-btn{width:44px;height:44px;background:rgba(0,0,0,.35)}
  .pip-cap{font-size:12px;border-width:4px 6px}
  .toasts{bottom:calc(80px + env(safe-area-inset-bottom))}
  /* debrief : cartes empilees, courbe a la largeur de l'ecran */
  .d-main{padding:16px 12px 40px;gap:12px}
  .d-hero h1{font-size:26px}
  .d-actions{width:100%}
  .d-actions .btn{flex:1 1 auto}
  .curve-wrap{overflow:visible}#curve{min-width:0}
  .radar text{font-size:15px}
  .axis-row .proof,.bullets li,.quote figcaption,.footnote,.card-sub{font-size:14px}
  .main-advice{padding:16px;gap:12px;align-items:flex-start}
  .main-advice p{font-size:16px;line-height:24px}
  .tline{grid-template-columns:1fr;gap:2px}
  .quotes{grid-template-columns:1fr}
}
/* ecrans tactiles (telephone, tablette) : toute cible fait au moins 44 x 44 px */
@media (pointer:coarse),(max-width:767px){
  .btn,.btn-leave,.btn-dark,.brand,.link,.home-foot .link{min-height:44px}
  .btn--subtle,.player .pbtn{min-width:44px}
  .player .pbtn{height:44px}
  .progress button{min-height:44px;justify-content:center}
  .ctl{min-height:44px}
  .vtabs button,.seg button,.fiche-tabs button,.menu button{min-height:44px}
  .vc-switch button{height:44px}
  .composer textarea{min-height:44px}
  .composer .send{width:44px;height:44px}
  .nego-sum{min-height:44px}
  .tc-toggle{width:44px;height:44px;margin:-10px -6px -10px auto}
  .tipcard .newtag + .tc-toggle{margin-left:0}
  .editbtn{min-width:44px;min-height:44px;margin:-14px -12px -14px 0;justify-content:center}
  .f-rep input{min-height:44px}
  .field select,.field input[type=url]{min-height:44px}
  .pip-btn{width:44px;height:44px}
  .dlg-dark .row .btn,.gate-box .btn,.gate-box .link{min-height:44px}
  .end-banner .btn--primary{height:44px}
}
@media (max-width:767px){
  /* la barre de progression du brief restait masquee avec les libelles (la barre est aussi un <span>) */
  .progress button .bar{display:block}
  .brief-top #skipBrief{margin-left:auto}
  .vtabs{flex-wrap:wrap;overflow:visible}
  .vtabs button{flex:1 1 calc(50% - 2px)}
  .rep--repli b{font-size:15px}
}

/* ---------- 15. Correctifs V2.2 (fix-front-v22-01, critique-v22-01) ---------- */
/* bandeau « Serveur injoignable » (fiche-data.js) : pastille fixe sous l'en-tete, masquable */
.offline-banner{position:fixed;top:64px;left:50%;transform:translateX(-50%);z-index:80;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 12px;width:max-content;max-width:calc(100vw - 24px);padding:4px 4px 4px 14px;border-radius:var(--r-lg);background:var(--warning-tint);border:1px solid var(--warning-bright);color:#5C2E04;font-size:13px;font-weight:600;line-height:1.35;box-shadow:var(--sh-8)}
.offline-banner .link{color:#8A3606;text-decoration:underline;min-height:32px}
.offline-x{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:var(--r-md);background:transparent;color:inherit}
.offline-x:hover{background:rgba(0,0,0,.06)}
/* fiche du brief : interligne de l'unite sous le grand chiffre */
.atout .big small{line-height:1.25}
/* ecrans tactiles : « Pourquoi ? » des conseils et bandeau hors ligne a 44 px */
@media (pointer:coarse),(max-width:1023px){
  .tip .why summary{display:inline-flex;align-items:center;min-height:44px;min-width:44px;padding:0 8px 0 0}
  .offline-banner .link,.offline-x{min-height:44px;min-width:44px}
}
/* telephone et tablette : aucun texte sous 12 px */
@media (pointer:coarse),(max-width:1023px){
  .gauge-tick,.gauge-mark,.nego-mini .gauge-tick,.nego-mini .gauge-mark,.f-gauge-note,.f-rep small,.f-lev small,.f-atouts .big small,.lev small,
  .selfview .lbl,.cap-line b,.msg .meta,.nego-sum .lbl,.nego .lbl,.tipcard-head,.tip .tag,.tipcard .newtag,.score-facts dt,
  .pip-top .m-timer,.pip-top .state-chip,.pip-cap,.menu .menu-label,.ctl,.ctl .badge,.mock-banner,.progress button{font-size:12px}
  .f-regles small,.tline .who small{font-size:12px}
  .v-card small{font-size:13px}
}
/* telephone : la fiche ouverte en reunion s'arrete au-dessus de la visio, posee en bandeau pleine largeur (plus de texte masque) */
@media (max-width:767px){
  .sheet{bottom:calc(64px + var(--pip-h) + env(safe-area-inset-bottom))}
  .sheet .fiche-wrap{padding-bottom:24px}
  .pip{left:0;right:0;bottom:calc(64px + env(safe-area-inset-bottom));width:auto;height:var(--pip-h);flex-direction:row;border-radius:0;box-shadow:0 -1px 0 #2B2B2B;transition:none}
  .pip .avatar-host{width:var(--pip-w);height:var(--pip-h)}
  .pip-bar{left:0;right:auto;width:var(--pip-w)}
  .pip-cap{flex:1;min-width:0;align-self:center;border:0;padding:0 12px;font-size:13px;-webkit-line-clamp:4}
}
/* hauteur reduite (clavier virtuel ouvert : APK en adjustResize ; telephone en paysage) : la visio devient un bandeau fin,
   la conversation garde une hauteur minimale et le champ de saisie reste en bas, visible et tappable (412 x 480 et 412 x 380) */
@media (max-width:1023px) and (max-height:600px){
  .m-body{gap:6px;padding:6px}
  .tile{width:100%;height:52px;aspect-ratio:auto;align-self:stretch}
  .tile .avatar-host{inset:0 auto 0 0;width:92px}
  .tile .nameplate{left:100px;bottom:auto;top:50%;transform:translateY(-50%);padding:0;background:none;backdrop-filter:none;font-size:14px}
  .tile .nameplate .ia,.tile .selfview,.tile .mode-badge{display:none}
  .tile .state-chip{left:auto;right:6px;top:50%;transform:translateY(-50%)}
  .tile .pause-ov,.tile .connecting{position:fixed;inset:var(--h-mtop) 0 0 0;z-index:24}
  .ring,.ring svg{width:72px;height:72px}
  .ring b{font-size:20px}
  .connecting .ring-c{width:64px;height:64px;font-size:22px}
  .captions{min-height:0;max-height:48px;padding:4px 10px}
  .end-banner{padding:8px 12px;gap:8px}
  .m-tabs{padding:2px}
  #panelChat .panel-head h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .panel-head{min-height:0;padding:4px 6px}
  .chat-list{min-height:64px;padding:8px 12px}
  .composer{padding:6px 8px}
  /* le commutateur Voix / Chat passe dans la ligne du champ (icones seules, 44 px) : la liste gagne ~59 px, la derniere replique y tient */
  #panelChat{position:relative}
  #panelChat .panel-head{position:absolute;left:8px;bottom:4px;z-index:1;min-height:0;padding:0;border:0;background:none}
  #panelChat .vc-switch{margin:0}
  #panelChat .vc-switch button{width:44px;height:44px;padding:0;justify-content:center;gap:0;font-size:0}
  #panelChat .composer{padding-left:112px}
  .gate{overflow:auto}
  .gate-box{padding:16px;gap:10px}
  .gate-box .brand-mark{display:none}
}
/* clavier ouvert tres bas (<= 420 px de haut, ex. 412 x 380) : la visio n'est plus qu'un fin bandeau et les marges se resserrent,
   pour que la derniere bulle (mock : 144 px, marge de 8 px de chaque cote) tienne entiere dans la liste */
@media (max-width:1023px) and (max-height:420px){
  .m-body{gap:4px;padding:4px 6px}
  .tile{height:40px}
  .tile .avatar-host{width:72px}
  .tile .nameplate{left:80px}
  .chat-list{padding:8px 12px}
}
/* telephone + hauteur reduite : les commandes remontent dans l'en-tete (la barre du bas mangeait 72 px au-dessus du clavier) */
@media (max-width:767px) and (max-height:600px){
  .m-title{display:none}
  .m-top{gap:6px;padding:0 6px 0 10px}
  .m-ctls{position:static;height:auto;padding:0;border:0;background:none;gap:2px;justify-content:flex-end}
  .ctl{min-width:44px;width:44px;height:44px;padding:0}
  .btn-leave{width:44px;height:44px;padding:0;margin-left:2px;justify-content:center}
  .btn-leave .lv-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .menu{top:calc(100% + 6px);bottom:auto}
  .m-body{padding-bottom:6px}
  .gate{inset:var(--h-mtop) 0 0 0}
  .sheet{bottom:var(--pip-h)}
  .pip{bottom:0}
  .toasts{bottom:12px}
}

/* ---------- 16. Brief V2.4 (brief-v24-01) : etapes guidees, la ligne ou la tuile citee s'allume ---------- */
/* cartes empilees (qui vous etes, objectif) */
.v-stack{display:flex;flex-direction:column;gap:12px;width:100%;max-width:520px}
.v-stack .v-card{position:static}
.v-stack .v-card small{display:block;line-height:1.35;margin-top:2px}
.v-stack .mini-tile{flex:none;width:96px;height:64px;border-radius:var(--r-lg);overflow:hidden;position:relative;background:#2a2a2a}
.v-stack .mini-tile .avatar-host{position:absolute;inset:0}
/* lignes racontees (offre, autre offre, cote Héliade) */
.v-steps{display:flex;flex-direction:column;gap:8px;width:100%;max-width:520px}
.vstep{display:flex;align-items:center;gap:14px;padding:10px 16px;border-radius:var(--r-xl);border:2px solid transparent;background:var(--bg-surface);box-shadow:var(--sh-4);transition:background var(--dur-3),box-shadow var(--dur-3),border-color var(--dur-3),color var(--dur-3),transform var(--dur-3) var(--ease-out)}
.vstep .ico{flex:none;color:var(--brand-70)}
.vstep b{display:block;font-size:var(--fs-sub);line-height:1.3}
.vstep small{display:block;font-size:14px;color:var(--text-2);line-height:1.35}
.v-steps--offre .vstep{padding:8px 16px}
.etapes--liste .vstep.is-next{background:transparent;box-shadow:none;color:var(--text-3)}
.etapes--liste .vstep.is-next small{color:var(--text-3)}
.etapes--liste .vstep.is-next .ico{color:var(--text-disabled)}
.etapes .is-cur{border-color:var(--brand-80);background:var(--bg-surface);box-shadow:var(--sh-16);transform:scale(1.02)}
.v-doc{width:100%;max-width:520px;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:var(--r-2xl);background:var(--bg-subtle);border:1px dashed var(--stroke-strong)}
.v-doc-tag{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:2px 10px;border-radius:var(--r-pill);background:var(--brand-tint);color:var(--brand-60);font-size:13px;font-weight:700}
/* entretien : les 6 cartes s'allument une a une */
.scene--regles .regle{border:2px solid transparent;transition:background var(--dur-3),box-shadow var(--dur-3),border-color var(--dur-3),transform var(--dur-3) var(--ease-out)}
.etapes--liste .regle.is-next{background:transparent;box-shadow:none}
.etapes--liste .regle.is-next b,.etapes--liste .regle.is-next small{color:var(--text-3)}
/* atouts : grille de tuiles a droite, explication de la tuile courante a gauche */
.atiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:540px}
.atile-btn{display:flex;align-items:center;gap:10px;width:100%;min-height:60px;padding:10px 14px;border-radius:var(--r-xl);border:2px solid transparent;background:var(--bg-surface);box-shadow:var(--sh-4);color:var(--text);font:inherit;font-size:15px;font-weight:600;text-align:left;cursor:pointer;transition:background var(--dur-3),box-shadow var(--dur-3),border-color var(--dur-3),color var(--dur-3),transform var(--dur-3) var(--ease-out)}
.atile-btn .ico{flex:none;color:var(--brand-70)}
.atile-btn .atile-t{flex:1;min-width:0}
.atile-btn:hover{border-color:var(--brand-tint-2)}
.etapes--tuiles.has-cur .atile:not(.is-cur) .atile-btn{background:transparent;box-shadow:none;color:var(--text-3)}
.etapes--tuiles.has-cur .atile:not(.is-cur) .atile-btn .ico{color:var(--text-disabled)}
.etapes--tuiles .atile.is-cur{border:0;box-shadow:none;transform:none;background:none}
.etapes--tuiles .atile.is-cur .atile-btn{border-color:var(--brand-80);box-shadow:var(--sh-16);transform:scale(1.04)}
.atile-detail{display:none}
.atout-panel{padding:18px 22px;border-radius:var(--r-2xl);background:var(--bg-surface);box-shadow:var(--sh-16);border-left:6px solid var(--brand-80);min-height:196px;max-width:520px}
.atout-panel.swap{animation:rise var(--dur-3) var(--ease-out)}
.ap-head{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ap-head .ico{color:var(--brand-70)}
.ap-head b{flex:1;font-size:var(--fs-title)}
.ap-quoi,.ap-dire,.ap-risque{font-size:var(--fs-sub);line-height:1.45;margin:0 0 6px}
.ap-dire{color:var(--brand-60)}
.ap-dire b,.ap-risque b{color:var(--text)}
.ap-risque{display:flex;gap:6px;align-items:flex-start;color:var(--text-2);margin:0}
.ap-risque .ico{flex:none;margin-top:3px;color:var(--warning)}
.ap-hint{display:flex;align-items:center;gap:8px;font-size:var(--fs-sub);color:var(--text-2);margin:0}
/* objectif : deux premieres phrases */
.v-phrases{display:flex;flex-direction:column;gap:6px;padding:12px 16px;border-radius:var(--r-xl);background:var(--bg-surface);box-shadow:var(--sh-4)}
.v-phrases small{font-size:13px;font-weight:700;color:var(--text-2)}
.v-phrases q{font-size:var(--fs-sub);line-height:1.4;color:var(--brand-60);font-weight:600;quotes:"«\00a0" "\00a0»"}
@media (prefers-reduced-motion:reduce){.etapes .is-cur,.etapes--tuiles .atile.is-cur .atile-btn{transform:none}}
/* telephone et tablette : une colonne, tuiles empilees, l'explication s'ouvre sous la tuile courante (qui defile en vue) */
@media (max-width:1023px){
  .scene--dossier .atout-panel{display:none}
  .atiles{grid-template-columns:1fr;gap:8px;max-width:none}
  .atile-btn{min-height:48px;padding:8px 12px}
  .etapes--tuiles .atile.is-cur .atile-btn{transform:none}
  .etapes--tuiles .atile.is-cur .atile-detail{display:block;padding:10px 12px 4px;border-left:4px solid var(--brand-80);margin:6px 0 4px 8px}
  .atile-detail p{font-size:15px;line-height:1.4;margin:0 0 4px}
  .atile-detail .ap-risque .ico{margin-top:2px}
  .v-steps,.v-stack,.v-doc{max-width:none}
  .vstep{padding:8px 12px;gap:10px}
  .etapes .is-cur{transform:none}
  .scene--regles .v-regles{grid-template-columns:1fr 1fr}
}
/* fiche : la phrase « À dire » de chaque atout (memes mots que le brief) */
.f-dire{display:block;margin-top:2px;color:var(--brand-60)}
.f-dire b{display:inline;color:var(--text)}

/* ---------- 17. Brief V2.6 (brief-v26-02) : animation sous-titree SANS SON, 5 ecrans ---------- */
/* l'ecran se construit : titre, puis une etape a la fois (.is-next = pas encore apparue) */
.scene-ico{display:grid;place-items:center;width:44px;height:44px;border-radius:var(--r-lg);background:var(--brand-tint);color:var(--brand-70)}
.etapes--build [data-k]{transition:opacity var(--dur-4) var(--ease-out),transform var(--dur-4) var(--ease-out),border-color var(--dur-3),box-shadow var(--dur-3),background var(--dur-3)}
.etapes--build [data-k].is-next{opacity:0;transform:translateY(14px);pointer-events:none}
.etapes--build .is-cur{border-color:var(--brand-80)}
/* ecran 1 : 4 chiffres */
.v-chiffres{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:520px}
.chiffre{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:var(--r-xl);border:2px solid transparent;background:var(--bg-surface);box-shadow:var(--sh-4)}
.chiffre .ico{color:var(--brand-70)}
.chiffre b{font-size:30px;line-height:1.1;font-weight:700;color:var(--brand-60);letter-spacing:-.02em}
.chiffre small{font-size:15px;line-height:1.35;color:var(--text-2)}
/* ecran 2 : l'offre ecrite, la derniere ligne est la consigne */
.vstep--cta{background:var(--brand-tint)}
.vstep--cta b{color:var(--brand-60)}
/* ecran 3 : explication de la tuile courante (« Autres cartes » : une liste) */
.atout-panel.is-empty{visibility:hidden}
.ap-head b{font-size:var(--fs-title)}
.ap-cartes{display:flex;flex-direction:column;gap:8px;font-size:var(--fs-sub);line-height:1.4}
.ap-cartes li{padding-left:14px;border-left:3px solid var(--brand-tint-2)}
.ap-cartes b{color:var(--text)}
/* ecran 4 : Camille, 4 regles, 2 premieres phrases */
.v-regles2{display:flex;flex-direction:column;gap:12px;width:100%;max-width:540px}
.v-camille{position:static;padding:10px 16px 10px 10px;align-self:flex-start}
.v-camille .mini-tile{flex:none;width:96px;height:64px;border-radius:var(--r-lg);overflow:hidden;position:relative;background:#2a2a2a}
.v-camille .mini-tile .avatar-host{position:absolute;inset:0}
.regles-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.regles-grid .regle{flex-direction:row;align-items:center;gap:10px;padding:12px 14px;border:2px solid transparent}
.regles-grid .regle b{display:block;font-size:var(--fs-sub);line-height:1.25}
.regles-grid .regle small{display:block;font-size:14px;color:var(--text-2)}
.v-phrases{border:2px solid transparent}
/* sous-titre : toujours affiche, s'ecrit mot a mot (les mots a venir gardent leur place : aucune ligne ne saute) */
.subtitle{min-height:62px;font-size:18px;line-height:1.5;max-width:900px}
.subtitle .w{opacity:0;transition:opacity 140ms linear}
.subtitle .w.on{opacity:1}
.subtitle.is-empty{visibility:hidden}
.player .pbtn--next{width:auto;padding:0 14px 0 18px;gap:4px;display:inline-flex;align-items:center;border-radius:var(--r-pill);background:var(--brand-tint);color:var(--brand-60);font-weight:600}
.player .pbtn--next:hover{background:var(--brand-tint-2)}
@media (prefers-reduced-motion:reduce){.etapes--build [data-k]{transition:none}.etapes--build [data-k].is-next{transform:none}.subtitle .w{transition:none}}
@media (min-width:1600px){.subtitle{font-size:20px}}
@media (max-width:1023px){
  .scene-ico{display:none}
  .v-chiffres,.v-regles2{max-width:none}
  .chiffre{padding:12px 14px}
  .chiffre b{font-size:24px}
  .regles-grid .regle{padding:10px 12px}
  .atile-detail .ap-cartes{font-size:15px;gap:6px}
  .subtitle{font-size:16px;min-height:52px;line-height:1.45}
}
@media (max-width:600px){
  .player{gap:2px}
  .player .vsep{display:none}
  .player .time{min-width:64px;font-size:12px}
}

/* ---------- 18. Fiche V2.6 (brief-v26-02) : l'essentiel en une minute, dans l'ordre de lecture ; le reste replie ---------- */
.fiche.fiche--v26{grid-template-columns:1fr 1fr;grid-template-rows:none;max-width:1080px;margin:0 auto}
.f-ess--atouts,.fiche--v26 .f-more{grid-column:1/-1}
.f-ess h2{font-size:13px;color:var(--text-2)}
.f-n{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--brand-80);color:#fff;font-size:12px;letter-spacing:0}
.f-lines{display:flex;flex-direction:column;gap:6px}
.f-lines li{position:relative;padding-left:16px;font-size:15px;line-height:1.45}
.f-lines li::before{content:"";position:absolute;left:2px;top:.6em;width:6px;height:6px;border-radius:50%;background:var(--brand-80)}
.f-ess--offre .f-lines li:first-child{font-size:17px;font-weight:700;color:var(--brand-60)}
.f-ess--autre .f-lines li:first-child{font-weight:700}
.f-top{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.f-top-card{display:flex;flex-direction:column;padding:12px 14px;border-radius:var(--r-lg);background:var(--bg-subtle);border:1px solid var(--stroke);border-top:3px solid var(--brand-80)}
.f-top-card h3{display:flex;gap:8px;align-items:center;font-size:16px;font-weight:700;margin-bottom:6px}
.f-top-card h3 .ico{color:var(--brand-70)}
.f-top-card p{font-size:14px;line-height:1.45;margin:0 0 6px}
.f-top-card .f-dire{margin-top:auto;font-weight:600}
.f-but{font-size:16px;line-height:1.5}
.f-but b{color:var(--brand-60)}
.f-more{background:var(--bg-surface);border-radius:var(--r-xl);box-shadow:var(--sh-2)}
.f-more summary{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;min-height:48px;padding:10px 16px;font-weight:700;cursor:pointer;list-style:none}
.f-more summary::-webkit-details-marker{display:none}
.f-more summary .ico{color:var(--brand-70);transition:transform var(--dur-2)}
.f-more[open] summary .ico{transform:rotate(180deg)}
.f-more summary small{font-weight:400;color:var(--text-3)}
.f-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 12px 12px}
.f-more-grid .f-card{box-shadow:none;border:1px solid var(--stroke)}
.f-more-grid .f-plan,.f-more-grid .f-long,.f-more-grid .f-card--wide{grid-column:1/-1}
.f-more-grid .f-long{box-shadow:none;border:1px solid var(--stroke);max-width:none}
@media (max-width:1023px){
  .fiche.fiche--v26,.f-more-grid,.f-top{grid-template-columns:1fr}
  .f-lines li{font-size:15px}
  .f-more-grid{padding:0 8px 8px}
}
@media print{.f-more summary .ico{display:none}.f-top-card{break-inside:avoid}}

/* panne du fournisseur (credits, 5xx, delai) : message francais dans le fil, « Reessayer » et « Terminer l'entretien » */
.msg--erreur{align-self:stretch;max-width:min(100%,660px)}
.msg--erreur .meta{color:#FFB4A8;font-weight:600}
.msg--erreur .txt{background:#4A2328;border:1px solid #7A3A42;color:#fff}
.err-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.err-actions .btn{min-height:40px}
.msg.me.is-failed .txt{opacity:.65}
.msg.me.is-failed .txt::after{content:" · non envoyé";font-size:12px;font-style:italic}
.tile.is-failed .state-chip::before{background:#FF8A80!important;box-shadow:none!important}

/* V5.9 (c-reglages-01) : regles de l'avatar 3D realiste (.av3d*) retirees avec lui */

/* =========================================================================
   19. V4.0 demo etablissement (lot A) : direction artistique commune « Cote ecole ».
   Documentation des classes pour les lots B, C, D : DESIGN.md du lot A (en tete).
   - Double lecture : .ecole-only (couche Cote ecole, visible par defaut) / .etudiant-only (couche etudiant seule) ;
     html.ecole-off = lecture masquee (reglage « Afficher la lecture Cote ecole », localStorage nt_ecole_visible = 0).
   - Theme : body.ecole-theme-auto passe en sombre sous html[data-theme="dark"] (V4.5 lot P : js/theme.js, clef nt_theme,
     jour par defaut, le systeme n'est plus suivi ; ecran seulement, l'impression reste claire).
   - Composants : .ecole-pastille, .ecole-bandeau, .ecole-carte, .ecole-picto, .ecole-clef-badge, .ecole-clefs,
     .ecole-btn-second, .ecole-preuve, .ecole-source, .ecole-illustration, .ecole-switch, .ecole-section-head.
   ========================================================================= */
:root{
  /* accent « Cote ecole » (sarcelle) : distinct de la marque indigo, reserve a la couche ecole */
  --ecole-accent:#0B7A6A; --ecole-accent-strong:#075C50; --ecole-tint:#E3F4F0; --ecole-tint-2:#C7E8DF; --ecole-ink:#064A40;
  --ecole-band-a:#0A5E53; --ecole-band-b:#0E7A6B;
  /* badge de clef Harvard (coach, debrief, fiche) */
  --ecole-clef-bg:var(--brand-tint); --ecole-clef-ink:var(--brand-60);
  --ecole-lien:var(--brand-70);
}
/* double lecture */
.etudiant-only{display:none!important}
html.ecole-off .ecole-only{display:none!important}
html.ecole-off .etudiant-only{display:revert!important}
/* V4.3 lot L (G12) : « ≠ » des 7 clefs, regle GENERALE (accueil, page ecole, debrief, brief, fiche, ecran final, PDF) : police qui
   a le glyphe (Noto Sans ne l'a pas : « = » + barre combinante, rendu « =/ » en gras), graisse normale, variantes neutres.
   Selecteur span.x (0,1,1) : passe devant les regles .x des feuilles chargees apres (fiche.css, debrief.css) ; le brief porte
   la meme regle dans sa propre feuille (aucune regle du brief dans v2.css). */
.ecole-neq{font-weight:400}
span.ecole-neq,span.dk-ne,span.fr-neq{font-family:"Segoe UI","Segoe UI Symbol",-apple-system,BlinkMacSystemFont,Roboto,"DejaVu Sans","Liberation Sans",Arial,sans-serif;
  font-weight:400;font-style:normal;font-variant:normal;font-synthesis:none;letter-spacing:0}

/* pastille « Cote ecole » : une phrase en vouvoiement, en marge ; variante repliable : <details class="ecole-pastille"> */
.ecole-pastille{display:flex;flex-direction:column;gap:4px;max-width:440px;padding:10px 14px;border-radius:var(--r-lg);border-left:3px solid var(--ecole-accent);background:var(--ecole-tint);color:var(--ecole-ink);font-size:14px;line-height:1.45}
.ecole-pastille-tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ecole-accent-strong)}
.ecole-pastille p{margin:0}
details.ecole-pastille > summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;min-height:24px}
details.ecole-pastille > summary::-webkit-details-marker{display:none}
details.ecole-pastille > summary::after{content:"";width:7px;height:7px;margin-left:4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform var(--dur-2)}
details.ecole-pastille[open] > summary::after{transform:rotate(-135deg) translateY(-1px)}

/* bandeau « Demo pour les etablissements » */
.ecole-bandeau{background:linear-gradient(90deg,var(--ecole-band-a),var(--ecole-band-b));color:#fff}
.ecole-bandeau-in{display:flex;align-items:center;gap:14px;max-width:1240px;margin:0 auto;padding:10px 48px;font-size:14px;line-height:1.4}
.ecole-bandeau-in p{flex:1;margin:0}
.ecole-bandeau-ico{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:var(--r-lg);background:rgba(255,255,255,.16)}
.ecole-bandeau-btn{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:var(--r-md);border:1px solid rgba(255,255,255,.55);background:transparent;color:#fff;font-weight:600;white-space:nowrap}
.ecole-bandeau-btn:hover{background:rgba(255,255,255,.12)}
.ecole-bandeau-btn .ico{transition:transform var(--dur-2)}
.ecole-bandeau-btn[aria-expanded="true"] .ico{transform:rotate(180deg)}
.ecole-bandeau :focus-visible{outline-color:#fff}
.ecole-bandeau{position:relative}
/* fusion V4.0 (critique A, M5) : volet flottant sous le bandeau, il ne pousse pas le bouton principal sous la ligne de flottaison */
.ecole-etapes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:1240px;margin:0 auto;padding:4px 48px 16px;counter-reset:none;position:absolute;left:0;right:0;top:100%;z-index:6;padding-top:12px;padding-bottom:16px;background:linear-gradient(90deg,var(--ecole-band-a),var(--ecole-band-b));box-shadow:0 14px 34px rgba(0,0,0,.28)}
.ecole-etapes li{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:var(--r-lg);background:rgba(255,255,255,.1);font-size:13px;line-height:1.45}
.ecole-etapes b{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:#fff;color:var(--ecole-accent-strong);font-size:13px}
.ecole-etapes strong{display:block;font-size:14px}
.ecole-etapes span{color:rgba(255,255,255,.9)}

/* cartes, pictos, boutons */
.ecole-carte{background:var(--bg-surface);border:1px solid var(--stroke);border-radius:var(--r-xl);padding:20px;box-shadow:var(--sh-2)}
.ecole-carte h3{font-size:var(--fs-sub);font-weight:700;line-height:1.3;margin:0 0 4px}
.ecole-carte p{color:var(--text-2);font-size:15px;line-height:1.5;margin:0}
.ecole-picto{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:var(--r-lg);background:var(--brand-tint);color:var(--brand-70)}
.ecole-picto .ico{width:24px;height:24px}
.ecole-picto--ecole{background:var(--ecole-tint);color:var(--ecole-accent)}
.ecole-btn-second{border-color:var(--ecole-accent);color:var(--ecole-accent-strong);background:var(--bg-surface)}
.ecole-btn-second:hover{background:var(--ecole-tint)}
.ecole-btn-second .ico{color:var(--ecole-accent)}
.ecole-clef-badge{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:var(--r-pill);background:var(--ecole-clef-bg);color:var(--ecole-clef-ink);font-size:12px;font-weight:700;white-space:nowrap}
.ecole-source{color:var(--text-3);font-size:12px;line-height:1.45}
.ecole-origine{display:block;margin-top:6px;color:var(--text-2);font-size:14px;font-weight:600}
/* bandeau du mode simule (common.js) : en haut, dans l'espace libre de l'en-tete, sur l'accueil et la page ecole (ordinateur) */
@media (min-width:768px){.home-page .mock-banner,.ecole-page .mock-banner{top:18px;bottom:auto;left:50%;transform:translateX(-50%)}}
.ecole-source a{color:inherit}
.ecole-section-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 32px;margin-bottom:16px}
.ecole-section-head h2{font-size:var(--fs-title-2);font-weight:700;letter-spacing:-.01em}
.ecole-section-head > p{max-width:640px;color:var(--text-2);font-size:15px;line-height:1.5}
/* V4.3 lot L (M9) : en-tete empile (titre, puis texte dessous) : le titre long ne flotte plus en bas a gauche d'un paragraphe */
.ecole-section-head--pile{flex-direction:column;align-items:flex-start;gap:6px}
.ecole-section-head--pile > p{max-width:820px}
/* V4.3 lot L (M9) : etiquette sur une seule ligne, dans son contour (nowrap), jamais comprimee */
.ecole-illustration{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:var(--r-pill);border:1px dashed var(--warning);background:var(--warning-tint);color:var(--warning);font-size:12px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;flex:none}

/* preuve chiffree (1 chiffre, source visible) */
.ecole-preuve{display:flex;align-items:baseline;gap:12px;padding:12px 0 0;border-top:1px solid var(--stroke);color:var(--text-2);font-size:14px;line-height:1.45;max-width:560px}
.ecole-preuve strong{font-size:28px;line-height:1;color:var(--ecole-accent);font-weight:700;flex:none}
.ecole-preuve cite{display:block;font-style:normal;color:var(--text-3);font-size:12px;margin-top:2px}

/* clefs Harvard (liste compacte) */
.ecole-clefs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}
.ecole-clefs li{display:flex;flex-direction:column;gap:8px;padding:14px 12px;border-radius:var(--r-lg);background:var(--bg-surface);border:1px solid var(--stroke);font-weight:600;font-size:14px;line-height:1.3}
.ecole-clefs b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--brand-80);color:#fff;font-size:13px}
/* V4.3 lot L (M9) : picto du contrat (pose par home.js / ecole.js) : numero a gauche, picto a droite, libelle dessous */
.ecole-clefs--pictos li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
.ecole-clefs--pictos li > span{grid-column:1/-1}
.ecole-clef-ico{justify-self:end;width:26px;height:26px;color:var(--brand-70)}

/* interrupteur (Reglages > Cote ecole) */
.ecole-switch{display:flex;align-items:center;gap:14px;width:100%;padding:14px 16px;border-radius:var(--r-lg);border:1px solid var(--stroke-strong);background:var(--bg-surface);text-align:left}
.ecole-switch-track{position:relative;width:40px;height:22px;flex:none;border-radius:var(--r-pill);background:var(--stroke-strong);transition:background var(--dur-2)}
.ecole-switch-track::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:var(--sh-2);transition:transform var(--dur-2) var(--ease-out)}
.ecole-switch[aria-checked="true"] .ecole-switch-track{background:var(--ecole-accent)}
.ecole-switch[aria-checked="true"] .ecole-switch-track::after{transform:translateX(18px)}
.ecole-switch strong{display:block;font-size:var(--fs-sub)}
.ecole-switch small{display:block;color:var(--text-3);font-size:13px}

/* accueil V4.0 */
.home.home--v4{min-height:0;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;padding:28px 48px 16px;align-items:center}
.home--v4 .home-text{max-width:620px;gap:16px}
.home--v4 h1{font-size:40px;line-height:1.12;text-wrap:balance}
.home--v4 .home-lead{font-size:17px}
.home--v4 .home-lead b{font-weight:700;color:var(--text)}
.home--v4 .home-cta{margin-top:4px;gap:12px}
.home-sub-cta{margin:-4px 0 0;font-size:14px}
.home--v4 .float-card--a{left:-28px;bottom:36px}
.float-card--coach{flex-direction:column;align-items:flex-start;gap:6px;right:-20px;top:28px;width:250px;padding:12px 14px;animation-delay:.45s;border-left:3px solid var(--brand-80)}
.float-card--coach p{margin:0;font-size:13px;line-height:1.4;color:var(--text)}
.float-card--coach small{color:var(--text-3);font-size:11px}
.home-band{max-width:1240px;margin:0 auto;padding:20px 48px}
.ecole-benefices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ecole-benefices li{display:flex;gap:14px;align-items:flex-start}
.ecole-cas{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:auto auto;gap:16px}
/* V4.8b (maitre, 06/11) : « Deux parcours pour vos etudiants » (accueil, lecture Cote ecole) */
.ecole-parcours{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.ecole-parcours .ecole-carte{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ecole-parcours h3{display:flex;align-items:center;gap:10px;font-size:var(--fs-title)}
.ecole-parcours h3 b{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--brand-90);color:#fff;font-size:15px;flex:none}
.ecole-cas-actif{grid-row:span 2}
.ecole-cas-actif{display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:2px solid var(--brand-80)}
.ecole-cas-actif h3{font-size:var(--fs-title)}
.ecole-cas-actif .btn{margin-top:6px}
.ecole-cas-bientot{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:var(--bg-subtle);box-shadow:none;border-style:dashed;color:var(--text-3)}
.ecole-cas-bientot h3{color:var(--text-2)}
.ecole-appel{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:12px auto 8px;padding:24px 32px;border-radius:var(--r-2xl);background:var(--ecole-tint);max-width:calc(1240px - 96px)}
.ecole-appel h2{font-size:var(--fs-title);font-weight:700;color:var(--ecole-ink)}
.ecole-appel p{color:var(--ecole-ink);margin-top:4px}
.home-page .home-foot{max-width:1240px;margin:8px auto 0;padding:16px 48px 40px;flex-wrap:wrap;gap:8px 16px}
.ecole-top-link .ico{color:var(--ecole-accent)}
@media (max-width:1279px){
  .home.home--v4{gap:40px;padding:28px 32px 16px}
  .home-band,.home-page .home-foot{padding-left:32px;padding-right:32px}
  .ecole-bandeau-in,.ecole-etapes{padding-left:32px;padding-right:32px}
  .ecole-clefs{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ecole-appel{max-width:calc(100% - 64px)}
}
@media (max-width:1023px){
  .home.home--v4{grid-template-columns:1fr}
  .home--v4 .home-visual{order:0;max-width:560px;width:100%;margin:0 auto}
  html:not(.ecole-off) .home--v4 .home-visual{order:-1}   /* fusion V4.0 (M5) : Camille dans le premier ecran a 390 px en lecture ecole */
  .ecole-benefices,.ecole-etapes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ecole-cas{grid-template-columns:1fr 1fr}
  .ecole-cas-actif{grid-column:1/-1;grid-row:auto}
}
@media (max-width:767px){
  .ecole-bandeau-in{flex-wrap:wrap;padding:10px 16px;gap:8px 12px}
  .ecole-bandeau-ico{display:none}
  .ecole-bandeau-in p{flex-basis:100%}
  .ecole-bandeau-btn{min-height:40px}
  .ecole-etapes{grid-template-columns:1fr;padding:0 16px 14px}
  .home.home--v4{padding:16px 16px 8px;gap:20px}
  .home--v4 h1{font-size:30px}
  .home--v4 .home-lead{font-size:16px}
  .home--v4 .home-cta .btn{width:100%}
  .home-sub-cta{text-align:center}
  .home-sub-cta .link{min-height:44px}
  .home-band,.home-page .home-foot{padding:16px}
  .ecole-benefices,.ecole-cas,.ecole-parcours{grid-template-columns:1fr}
  .ecole-clefs{grid-template-columns:1fr 1fr}
  .ecole-clefs li{flex-direction:row;align-items:center}
  .ecole-clefs b{flex:none}
  .ecole-appel{flex-direction:column;align-items:stretch;margin:8px 16px;padding:20px;max-width:none}
  .ecole-preuve strong{font-size:24px}
  .home--v4 .home-facts{display:none}
  .ecole-top-link span,.ecole-top-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .home-page .home-foot{justify-content:flex-start;text-align:left}
}

/* theme sombre (pages qui l'acceptent : body.ecole-theme-auto) : V4.5 lot P, mode nuit choisi (html[data-theme="dark"],
   js/theme.js), plus le theme du systeme ; ecran seulement (le papier reste clair) */
@media screen{
  html[data-theme="dark"] body.ecole-theme-auto{
    color-scheme:dark;
    --bg-app:#17171B; --bg-surface:#222228; --bg-subtle:#1D1D22; --bg-hover:#2E2E35; --bg-pressed:#393941;
    --stroke:#34343C; --stroke-strong:#4A4A54;
    --text:#F2F2F5; --text-2:#D2D2DA; --text-3:#A8A8B4; --text-disabled:#6F6F7A;
    --brand-tint:#2C2D52; --brand-tint-2:#3A3C70;
    --success-tint:#16301F; --warning-tint:#3A2A12; --warning:#F2A65A; --success:#7FD08F;
    --ecole-accent:#4FCDB4; --ecole-accent-strong:#7FE0CC; --ecole-tint:#12302B; --ecole-tint-2:#1A423B; --ecole-ink:#BFEFE4;
    --ecole-band-a:#0B4A42; --ecole-band-b:#0D5F55;
    --ecole-clef-bg:#2C2D52; --ecole-clef-ink:#C9CBFF; --ecole-lien:#A9ACFF;
    --sh-2:0 0 0 1px rgba(255,255,255,.04); --sh-16:0 8px 24px rgba(0,0,0,.45); --sh-28:0 14px 40px rgba(0,0,0,.5);
  }
  html[data-theme="dark"] body.ecole-theme-auto a:not(.btn):not(.brand):not(.skip-link),
  html[data-theme="dark"] body.ecole-theme-auto .link,
  html[data-theme="dark"] body.ecole-theme-auto .eyebrow,
  html[data-theme="dark"] body.ecole-theme-auto .home h1 em,
  html[data-theme="dark"] body.ecole-theme-auto .float-card .ico,
  html[data-theme="dark"] body.ecole-theme-auto .choice .ico,
  html[data-theme="dark"] body.ecole-theme-auto .ecole-clef-ico,
  html[data-theme="dark"] body.ecole-theme-auto .ecole-picto{color:var(--ecole-lien)}
  html[data-theme="dark"] body.ecole-theme-auto .link--muted{color:var(--text-3)}
  html[data-theme="dark"] body.ecole-theme-auto .chip--brand,
  html[data-theme="dark"] body.ecole-theme-auto .vtabs button[aria-selected="true"]{background:var(--brand-tint);color:#C9CBFF}
  html[data-theme="dark"] body.ecole-theme-auto .ecole-picto--ecole{color:var(--ecole-accent)}
  html[data-theme="dark"] body.ecole-theme-auto .field select,
  html[data-theme="dark"] body.ecole-theme-auto .field input[type=url]{border-bottom-color:var(--stroke-strong)}
  html[data-theme="dark"] body.ecole-theme-auto .mock-banner{background:rgba(40,40,46,.92);color:#C8C8D0}
}
/* V4.3 lot L (M9) : au telephone (ecran seulement : la plaquette imprimee garde ses 7 colonnes), les 7 clefs en une colonne, une
   ligne chacune : numero, libelle, picto */
@media screen and (max-width:767px){
  .ecole-clefs.ecole-clefs--pictos{grid-template-columns:1fr;gap:6px}
  .ecole-clefs--pictos li{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;padding:8px 12px}
  .ecole-clefs--pictos li > span{grid-column:auto}
  .ecole-clefs--pictos .ecole-clef-ico{order:1;width:22px;height:22px}
}
@media (prefers-reduced-motion:reduce){.ecole-switch-track,.ecole-switch-track::after,.ecole-bandeau-btn .ico{transition:none}}
@media print{.ecole-bandeau,.ecole-top-link{display:none}}

/* =========================================================================================================
   V4.4 (lot M) : G8 reunion au telephone (390 px) : la conversation visible passait sous 64 px (2 lignes) des que l'encart
   « Cote ecole » et la rangee « Essayez de… » s'affichaient. Recadrage chiffre par la direction artistique (critique n 3) :
   la bascule Voix / Chat rejoint la ligne du champ (icones seules, 44 px, comme deja fait sous 600 px de haut) et la visio se
   reduit quand l'onglet Conversation est actif (28 dvh au lieu de 40). Avec demo-guide.css (encart replie, rangee sur une
   ligne), la conversation retrouve environ 270 px, soit 8 lignes.
   ========================================================================================================= */
@media (max-width:767px){
  .m-body[data-mtab="chat"] .tile{width:min(100%,calc(28dvh * 16 / 9))}
  #panelChat{position:relative}
  #panelChat .panel-head{position:absolute;left:8px;bottom:4px;z-index:1;min-height:0;padding:0;border:0;background:none}
  #panelChat .panel-head h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  #panelChat .vc-switch{margin:0}
  #panelChat .vc-switch button{width:44px;height:44px;padding:0;justify-content:center;gap:0;font-size:0}
  #panelChat .composer{padding-left:112px}
}

/* =========================================================================================================
   20. V4.5 (lot P) : mode jour par defaut, bascule jour / nuit hors visio (js/theme.js, localStorage nt_theme).
   Bouton soleil / lune pose par theme.js dans l'en-tete de chaque page hors visio, juste avant « Reglages » (ou « Passer » au
   brief, en fin d'en-tete au debrief) : 36 x 36 px, pictogramme seul (nom accessible « Passer en mode nuit / jour »,
   aria-pressed = mode nuit), present aussi sous html.ecole-off, absent a l'impression. La visio ne le charge pas.
   ========================================================================================================= */
.nt-theme-btn{flex:none;width:36px;height:36px;padding:0;color:var(--text-2);border-radius:var(--r-md)}
.nt-theme-btn:hover{color:var(--text)}
.nt-theme-btn:focus-visible{outline:2px solid var(--ecole-lien,var(--brand-80));outline-offset:1px}
.nt-theme-btn .nt-theme-ico{width:20px;height:20px;flex:none;display:block}
@media print{.nt-theme-btn{display:none!important}}
/* au telephone, en-tete serre : ecart 4 px, bouton 36 x 44 px (cible tactile >= 24 px), « Reglages » reduit a son pictogramme
   comme sur les autres pages (nom accessible garde). V5.9 : plus de pastille du dock « Demo » dans l'en-tete */
@media (max-width:767px){
  .app-top:has(> .nt-theme-btn){gap:4px}
  .app-top > .nt-theme-btn{width:36px;min-width:36px;height:44px}
  .app-top:has(> .nt-theme-btn) > .btn--subtle:not(.nt-theme-btn){min-width:40px;padding-inline:9px}
  .app-top:has(> .nt-theme-btn) > [data-reglages]{font-size:0;gap:0}
}
/* brief (en-tete .brief-top, ligne theme.js posee par le lot O) : au telephone, la premiere ligne (marque, version, « Passer ») est
   pleine ; le bouton rejoint la deuxieme ligne, apres la progression */
@media (max-width:767px){
  .brief-top:has(> .nt-theme-btn)::after{content:"";order:2;flex-basis:100%;height:0}
  .brief-top:has(> .nt-theme-btn) .progress{flex:1 1 0;min-width:0}
  .brief-top > .nt-theme-btn{order:4;width:36px;min-width:36px;height:36px;min-height:36px}
}

/* V5.2 noms : logo Dealing-Dealing (variante 4 « Signalétique ») dans l'en-tête et le pied de chaque page, symbole seul
   dans la barre de la visio ; la variante sombre ne s'affiche que sous html[data-theme="dark"].
   V5.2 (c-accueil-04) : chaque <img ... logo-dd--nuit> porte aussi l'attribut hidden, pour qu'une ancienne copie de cette
   feuille gardee en cache par le navigateur (sans ces regles) n'affiche jamais les deux logos cote a cote */
.logo-dd{display:block;height:30px;width:auto;max-width:none;flex:none}
.logo-dd--pied{height:24px}
.logo-dd-symbole{display:block;height:20px;width:auto;flex:none}
.logo-dd--nuit{display:none!important}
html[data-theme="dark"] .logo-dd--jour{display:none!important}
html[data-theme="dark"] .logo-dd--nuit{display:block!important}
@media (max-width:600px){
  .logo-dd{height:24px}
  .logo-dd--pied{height:20px}
}
/* en-tete compact du brief (marque en 15 px auparavant) : meme largeur que l'ancienne marque (~131 px), la camera garde son cadre */
.brief-top .logo-dd{height:20.5px}
