/* Julian RH — refonte « contour » : design system de L'Académie RH (fond gris clair, noir, pastels, pilules), volumes 3D,
   contours de couleur plutôt qu'aplats, une couleur par agent. Cette feuille se charge après site.css (et app.css) et prend le pas dessus :
   pour revenir à l'ancienne direction, il suffit de ne plus la charger. Thème clair uniquement. */
@font-face { font-family: "Rethink Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/rethink-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: "Rethink Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/rethink-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD }
:root {
  --fond: #f3f3f3; --fond-2: #eeeeee; --carte: #ffffff; --carte-2: #f7f7f7; --surface: #eeeeee; --bordure: #dedede; --bordure-2: #9f9f9f;
  --verre: #ffffff; --verre-fort: #ffffff; --papier: #ffffff;
  --encre: #0a0a0a; --texte-2: #3e3e3e; --gris: #5c5c5c; --gris-2: #858585;
  --accent: #0a0a0a; --accent-vif: #0a0a0a; --accent-ink: #ffffff; --accent-texte: #0a0a0a; --accent-doux: rgba(10, 10, 10, .06);
  --corail: #ff7a7c; --menthe: #a9e5bf; --ok: #22a85a; --alerte: #ee3d40; --sombre: #0a0a0a; --blanc: #ffffff;
  --jaune: #ffee98; --rouge: #ff7a7c; --bleu: #a6d5f4; --orange: #ff9873; --violet: #e3a6f4; --vert: #a9e5bf; --rose: #f8b3d2; --cyan: #9adfdc;
  /* Traits de contour : la teinte vive de chaque pastel, lisible sur fond clair */
  --t-jaune: #e0ad00; --t-rouge: #ee3d40; --t-bleu: #2f9be6; --t-orange: #ec5e2a; --t-violet: #bf33e7; --t-vert: #22a85a; --t-rose: #e8479a; --t-cyan: #14a8a0;
  --ombre: none; --ombre-douce: none; --logo: invert(1); --halo: 0;
  --degrade: linear-gradient(#0a0a0a, #0a0a0a); --relief: none; --lisere: linear-gradient(#0a0a0a, #0a0a0a);
  --display: "Rethink Sans", system-ui, sans-serif; --titres: "Rethink Sans", system-ui, sans-serif; --texte: "Rethink Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1240px; --r: 28px; --trait: 1.5px;
  color-scheme: light;
}
/* Mode sombre, au choix de chacun (bouton lune/soleil, mémorisé sur l'appareil) : mêmes contours de couleur, sur fond graphite */
:root[data-theme="dark"] {
  /* Mode sombre aligné sur le design system Julian RH (28/11/2026) : noir franc, cartes #161616, filets #2e2e2e */
  --fond: #0a0a0a; --fond-2: #101010; --carte: #161616; --carte-2: #1b1b1b; --surface: #1f1f1f; --bordure: #2e2e2e; --bordure-2: #6b6b6b;
  --verre: #161616; --verre-fort: #161616; --papier: #161616;
  --encre: #ffffff; --texte-2: #b8b8b8; --gris: #8a8a8a; --gris-2: #6b6b6b;
  --accent: #ffffff; --accent-vif: #ffffff; --accent-ink: #0a0a0a; --accent-texte: #ffffff; --accent-doux: rgba(255, 255, 255, .08);
  --sombre: #000000; --blanc: #ffffff;
  --t-jaune: #f2c230; --t-rouge: #ff6164; --t-bleu: #55b4f5; --t-orange: #ff7a45; --t-violet: #d26cf2; --t-vert: #3cc779; --t-rose: #f26bb0; --t-cyan: #2cc5bc;
  --logo: none; --degrade: linear-gradient(#ffffff, #ffffff); --lisere: linear-gradient(#ffffff, #ffffff);
  color-scheme: dark;
}

body::before { display: none }
.mascot { object-fit: contain }

/* ---------- Base : typographie, sélection ---------- */
h1, h2, h3, h4 { font-family: var(--display) }
h1 { font-weight: 700; letter-spacing: -.04em; line-height: .98 }
h2 { font-weight: 700; letter-spacing: -.035em } h3 { font-weight: 700 }
/* Le passage fort d'un titre : des lettres en contour */
mark, .lettres { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: transparent; -webkit-text-stroke: 2px var(--encre); animation: none; padding-bottom: 0; letter-spacing: -.01em }
@media (max-width: 700px) { mark, .lettres { -webkit-text-stroke-width: 1.3px } }
.kicker, .mono { font-family: var(--mono); color: var(--encre); letter-spacing: .06em }
::selection { background: var(--jaune); color: var(--encre) }
:focus-visible { outline-color: var(--encre) }
/* L'étiquette inclinée, signature de L'Académie RH */
.etiquette { display: inline-block; transform: rotate(-6deg); background: var(--rouge); color: var(--encre); border-radius: 100rem; padding: .34em 1em; font: 500 clamp(14px, 1.45vw, 20px)/1.2 var(--display); letter-spacing: 0; -webkit-text-stroke: 0; white-space: nowrap; vertical-align: middle }

/* ---------- Boutons : pilule noire, ou contour ---------- */
.btn { font-weight: 600; border-width: 2px; padding: 12px 24px; transition: background .35s, color .35s, border-color .35s }
.btn:hover { transform: none }
.btn.primary { background: var(--encre); color: var(--papier); border-color: var(--encre) }
.btn.primary:hover { background: #3e3e3e; border-color: #3e3e3e; color: var(--papier) }
.btn.lum::before { display: none }
.btn.ghost { background: transparent; border-color: var(--encre); -webkit-backdrop-filter: none; backdrop-filter: none }
.btn.ghost:hover { background: var(--encre); color: var(--papier); border-color: var(--encre) }
.btn.small { padding: 8px 16px }

/* ---------- Blocs : fond blanc, contour fin, pas d'ombre ; la couleur passe par le contour ---------- */
.card, .tu { background: var(--papier); border: var(--trait) solid var(--bordure); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none }
a.card:hover, .card.lift:hover, .tu.lift:hover { transform: translateY(-3px); box-shadow: none; border-color: var(--encre) }
.plein-violet, .plein-menthe, .plein-corail { background: var(--papier); color: var(--encre) }
.plein-violet { border: var(--trait) solid var(--t-violet) } .plein-menthe { border: var(--trait) solid var(--t-vert) } .plein-corail { border: var(--trait) solid var(--t-orange) }
.plein-violet p, .plein-menthe p, .plein-corail p { color: var(--texte-2) } .plein-violet .mono { color: var(--encre) }
.plein-nuit { background: var(--encre); color: var(--papier) } .plein-nuit p { color: rgba(255, 255, 255, .78) }
.pill, .tag { background: transparent; border: var(--trait) solid var(--bordure-2); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--encre) }
.tag { border-color: var(--encre); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 13px 5px 10px }
.tag i { background: var(--t-vert) }

/* ---------- En-tête : bandeau noir, barre claire, appel à l'action en pilule ---------- */
.bandeau { background: var(--encre); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase }
.bandeau a { font-weight: 600 }
.bandeau-mid { opacity: 1 } .bandeau-mid::before { background: var(--rouge); box-shadow: none; animation: none }
.barre { background: var(--fond); -webkit-backdrop-filter: none; backdrop-filter: none }
.entete.replie .barre { box-shadow: none }
.nav2-l { font-weight: 500; color: var(--encre) }
.nav2 .trait { background: var(--encre); height: 2px }
.mega { box-shadow: none; border: var(--trait) solid var(--encre); border-radius: 24px }
.mega a:hover, .mega a[aria-current] { background: var(--fond) }
.cta-julian { border-radius: 100rem; background: var(--encre); color: var(--papier); font-weight: 600; padding: 5px 20px 5px 5px; gap: 10px; transition: background .35s }
.cta-julian:hover { transform: none; box-shadow: none; background: #3e3e3e }
.cta-julian [data-mascot] { width: 36px; height: 36px; background: var(--papier); border-radius: 50%; padding: 0; display: grid; place-items: center; flex: none; overflow: hidden }
.cta-julian .mascot { width: 30px; height: 30px; background: none; border-radius: 0; padding: 0; animation: none }
@media (max-width: 480px) { .cta-julian [data-mascot] { width: 30px; height: 30px } .cta-julian .mascot { width: 25px; height: 25px } }
.mascot { animation: none }

/* ---------- Ouverture : le texte, puis la scène où la conversation et les étages 3D avancent ensemble ---------- */
.hero { padding: clamp(26px, 3.8vw, 54px) 0 clamp(18px, 2.4vw, 32px) }
.hero .wrap { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(26px, 3.2vw, 46px) }
.hero h1 { font-size: clamp(38px, 5vw, 74px) }
.hero-faits { gap: 8px; font-weight: 600; color: var(--encre) }
.hero-faits span { border: var(--trait) solid var(--t-bleu); background: rgba(166, 213, 244, .22); border-radius: 100rem; padding: 5px 13px }
.hero-faits span:nth-child(2) { border-color: var(--t-violet); background: rgba(227, 166, 244, .2) }
.hero-faits span:nth-child(3) { border-color: var(--t-vert); background: rgba(169, 229, 191, .24) }
.hero-faits span::before { content: none }
.scene { background: var(--encre); color: var(--papier); border-radius: 32px; padding: clamp(14px, 1.6vw, 22px); perspective: none; display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 15.5vw, 214px); gap: clamp(10px, 1.4vw, 18px); align-items: center }
.scene .ecran { background: #141414; border: var(--trait) solid rgba(255, 255, 255, .22); box-shadow: none; border-radius: 22px; animation: none }
.scene .ecran-barre { border-bottom: 1px solid rgba(255, 255, 255, .14) }
.scene .mode { background: transparent; border: var(--trait) solid rgba(255, 255, 255, .24) }
.scene .mode span { color: rgba(255, 255, 255, .74) }
.scene .mode span[data-souv].on { background: var(--vert); color: var(--encre) } .scene .mode span[data-ext].on { background: var(--orange); color: var(--encre) }
.scene .sc-q { background: var(--papier); color: var(--encre) } .scene .sc-q::after { background: var(--encre) }
.scene .sc-r { color: rgba(255, 255, 255, .84) }
.scene .sc-r i { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .6) 0 5px, transparent 5px 10px); background-size: 10px 2px }
.scene .sc-s span { background: transparent; border: var(--trait) solid var(--bleu); color: var(--papier); border-radius: 100rem; padding: 5px 11px }
.scene .sc-s span::after { color: var(--vert) }
.scene .sc-a { background: rgba(255, 122, 124, .1); border: var(--trait) solid var(--rouge); color: var(--papier); border-radius: 18px }
.scene .sc-a b { color: var(--papier) } .scene .sc-a b:first-child { color: var(--rouge) }
.flot { box-shadow: none; border: var(--trait) solid var(--encre); border-radius: 100rem; animation: none; padding: 6px 16px 6px 8px }
.flot.a { left: -18px; bottom: -16px } .flot.b { right: -12px; top: -16px }
.etages { position: relative; display: grid; gap: 4px }
.etages::before, .etages::after { content: ""; position: absolute; top: 14%; bottom: 20%; left: 7%; border-left: 3px dotted rgba(255, 255, 255, .5) }
.etages::after { left: auto; right: 7% }
.etage { margin: 0; position: relative; z-index: 1; transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1) }
.etage img { display: block; width: 100%; height: auto }
.etage figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: -4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .78); white-space: nowrap }
.etage figcaption i { font-style: normal; border: var(--trait) solid currentColor; border-radius: 100rem; padding: 0 6px }
.scene[data-etape] .etage { opacity: .32 }
.scene[data-etape="2"] .e2, .scene[data-etape="1"] .e1, .scene[data-etape="3"] .e3 { opacity: 1; transform: scale(1.06) }
.scene[data-etape="1"] .e2, .scene[data-etape="3"] .e2, .scene[data-etape="3"] .e1 { opacity: .66 }
.scene[data-etape="3"] .e3 figcaption { color: var(--jaune) } .scene[data-etape="1"] .e1 figcaption { color: var(--bleu) } .scene[data-etape="2"] .e2 figcaption { color: var(--violet) }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr }
  .scene { grid-template-columns: 1fr; padding: 14px }
  .etages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end }
  .etages::before, .etages::after { display: none }
  .e1 { order: 1 } .e2 { order: 2 } .e3 { order: 3 }
  .etage figcaption { font-size: 9.5px; gap: 4px }
}
@media (max-width: 700px) { .scene { border-radius: 24px } .scene .ecran { border-radius: 18px } }
.hero h1 { font-size: clamp(36px, 4.5vw, 66px); text-wrap: balance }
.flot { background: var(--papier); color: var(--encre) }
.hero h1 mark { white-space: nowrap }

/* ---------- Marque ---------- */
.brand b { font-weight: 800; letter-spacing: -.03em }
.brand b i { background: none; color: inherit; padding: 0; margin-left: .2em; font-size: 1em; vertical-align: 0; border-radius: 0 }

/* ---------- Reprise des blocs qui portaient l'ancienne palette : contour de couleur, fond blanc ---------- */
.orbite .coeur { filter: none }
.t-saut small { color: var(--encre) !important }
.t-parle div { background: var(--papier); color: var(--encre); border: var(--trait) solid var(--t-vert) }
.t-parle div:nth-child(2) { background: var(--encre); color: var(--papier); border-color: var(--encre) }
.voie.souv { --k: var(--t-vert) } .voie.ext { --k: var(--t-orange) }
.etat.ok::before { background: var(--t-vert) }
.route::after { background: var(--encre); box-shadow: none }
.route .vignette .bulle, .st-bubble, .demo-q { background: var(--encre); color: var(--papier) }
.route .vignette .choix .s { background: rgba(169, 229, 191, .3); border: var(--trait) solid var(--t-vert); color: var(--encre) }
.route .vignette .choix .e { background: rgba(255, 152, 115, .22); border: var(--trait) solid var(--t-orange); color: var(--encre) }
.stats .stat:nth-child(n) { background: var(--papier); color: var(--encre); border: var(--trait) solid var(--bordure) }
.stats .stat:nth-child(n) span { color: var(--texte-2) }
.stats .stat b { display: inline-block; font-family: var(--mono); font-weight: 500; letter-spacing: -.05em; border-bottom: 4px solid var(--t-bleu); padding-bottom: 6px; margin-bottom: 10px; background: none; -webkit-text-fill-color: currentColor; color: var(--encre) }
.stats .stat:nth-child(4n+2) b { border-color: var(--t-jaune) } .stats .stat:nth-child(4n+3) b { border-color: var(--t-violet) } .stats .stat:nth-child(4n+4) b { border-color: var(--t-rouge) }
.t-nombre b { font-family: var(--mono); font-weight: 500; letter-spacing: -.05em }
.humain .photo { background: var(--surface) }
ul.check li::before { background: transparent; border: var(--trait) solid var(--t-vert); color: var(--t-vert); box-sizing: border-box }
ul.check.no li::before { background: transparent; border-color: var(--t-rouge); color: var(--t-rouge) }
.final .wrap > div.bloc { background: var(--encre); color: var(--papier); border-radius: 32px }
.final .bloc::before { display: none }
.final .btn.primary, .cta-band .btn.primary, .newbox .btn.primary { background: var(--papier); color: var(--encre); border-color: var(--papier) }
.final .btn.primary:hover, .cta-band .btn.primary:hover, .newbox .btn.primary:hover { background: var(--jaune); border-color: var(--jaune); color: var(--encre) }
.final h2 em, .exergue em { font-style: normal; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--jaune); -webkit-text-fill-color: currentColor }
.cta-band, .newbox { background: var(--encre); color: var(--papier) }
.form-msg.ok { background: rgba(169, 229, 191, .3); border: var(--trait) solid var(--t-vert) }
.form-msg.err { background: rgba(255, 122, 124, .16); border: var(--trait) solid var(--t-rouge) }
.card.c-accent { border: 2px solid var(--encre); box-shadow: none }
.relais-bloc.plein-nuit small { color: var(--jaune) }
.reseau .flux.sortant.on { stroke: var(--t-vert) }
.acc.vous { --k: var(--t-vert) } .acc.equipe { --k: var(--t-violet) } .acc.transit { --k: var(--t-orange) } .acc.anonyme { --k: var(--t-bleu) }
.table thead th { background: var(--encre); color: var(--papier) }
.ql-voie { --c: var(--violet) } .ql-voie[data-qui=vous] { --c: var(--vert) } .ql-voie[data-qui=transit] { --c: var(--orange) } .ql-voie[data-qui=anonyme] { --c: var(--bleu) }
.ql-jeton { box-shadow: none; color: var(--encre) }
.eco-logo.ar { background: var(--encre) } .eco-logo.ar b { color: var(--rouge) }
.lettre { background: var(--encre); border-radius: 32px }
.lettre-form .btn { background: var(--papier); color: var(--encre); border: 2px solid var(--papier) }
.lettre-form .btn:hover { background: var(--jaune); border-color: var(--jaune); color: var(--encre) }
.lettre-form .input { border-radius: 100rem }
.soude { white-space: nowrap }
.hero .wrap { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr) }
.hero h1 { font-size: clamp(34px, 4.4vw, 64px) }
.stats.s3 .stat:nth-child(n) { background: var(--papier); color: var(--encre); border: var(--trait) solid var(--bordure) }
.stats.s3 .stat:nth-child(n) span { color: var(--texte-2) }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr } }
@media (max-width: 760px) { .page-head .split { grid-template-columns: minmax(0, 1fr) } .page-head .split > * { min-width: 0 } }
@media (max-width: 760px) { .route > li > * { min-width: 0 } .route .vignette { max-width: 100%; overflow: hidden } }

/* ---------- Espace de travail : mêmes principes, le contour porte la couleur de l'agent ou de la source ---------- */
.note { border: var(--trait) solid var(--encre); border-left: var(--trait) solid var(--encre); border-radius: 22px; background: var(--papier) }
.a { border: var(--trait) solid var(--c, var(--encre)); border-top: var(--trait) solid var(--c, var(--encre)); border-radius: 26px }
/* Sources : le pastel du type de source, avivé pour rester lisible en trait fin */
.src, .src-side a { border: var(--trait) solid var(--k, var(--bleu)); border-left: var(--trait) solid var(--k, var(--bleu)); background: var(--papier) }
@supports (color: oklch(from red l c h)) { .src, .src-side a { border-color: oklch(from var(--k, #a6d5f4) calc(l - .2) calc(c * 2.2) h) } }
.composer { border: 2px solid var(--encre); border-radius: 28px }
.composer:focus-within { border-color: var(--encre); box-shadow: 0 0 0 4px rgba(10, 10, 10, .08) }
dialog { box-shadow: none; border: var(--trait) solid var(--encre); border-radius: 28px }
.avatar-btn { background: var(--encre); box-shadow: none }
.menu { box-shadow: none; border: var(--trait) solid var(--encre) }
.cecile { background: var(--papier); border: var(--trait) solid var(--t-rose) }
.onglets button.on { box-shadow: none; outline: var(--trait) solid var(--encre) }
.u-bar i { background: var(--encre) }
.conv-tag.princ { box-shadow: 0 0 0 2px var(--encre) inset }
.agent-btn.on { background: var(--papier); border-color: var(--c) }
.side { background: var(--fond) }

/* ================= Plus de couleur : contours colorés et « verre teinté » =================
   Pastilles et encadrés prennent une couleur (--k, le trait) ; leur fond est un voile très léger de cette même couleur.
   Le texte reste noir, les titres et les boutons ne changent pas : la couleur vient des bords, pas des aplats. */
:root { --teinte: 8%; --teinte-forte: 16% }
.c-jaune { --k: var(--t-jaune) } .c-rouge { --k: var(--t-rouge) } .c-bleu { --k: var(--t-bleu) } .c-orange { --k: var(--t-orange) } .c-violet { --k: var(--t-violet) } .c-vert { --k: var(--t-vert) } .c-rose { --k: var(--t-rose) } .c-cyan { --k: var(--t-cyan) } .c-accent { --k: var(--t-violet) }

/* Une couleur à tour de rôle pour les séries d'éléments */
:is(.grid > .card, .grid > .tu, .stats > .stat, .faq, .marquee .pill, .pills > .pill, .pastilles > .pill, .eco, .reseau .src-n, .mosa > .tu) { --k: var(--t-bleu) }
:is(.grid > .card, .grid > .tu, .stats > .stat, .faq, .marquee .pill, .pills > .pill, .pastilles > .pill, .eco, .reseau .src-n, .mosa > .tu):nth-child(6n+2) { --k: var(--t-violet) }
:is(.grid > .card, .grid > .tu, .stats > .stat, .faq, .marquee .pill, .pills > .pill, .pastilles > .pill, .eco, .reseau .src-n, .mosa > .tu):nth-child(6n+3) { --k: var(--t-vert) }
:is(.grid > .card, .grid > .tu, .stats > .stat, .faq, .marquee .pill, .pills > .pill, .pastilles > .pill, .eco, .reseau .src-n, .mosa > .tu):nth-child(6n+4) { --k: var(--t-orange) }
:is(.grid > .card, .grid > .tu, .stats > .stat, .faq, .marquee .pill, .pills > .pill, .pastilles > .pill, .eco, .reseau .src-n, .mosa > .tu):nth-child(6n+5) { --k: var(--t-rose) }
:is(.grid > .card, .grid > .tu, .stats > .stat, .faq, .marquee .pill, .pills > .pill, .pastilles > .pill, .eco, .reseau .src-n, .mosa > .tu):nth-child(6n) { --k: var(--t-jaune) }
:is(.grid > .card, .grid > .tu, .stats > .stat, .faq, .marquee .pill, .pills > .pill, .pastilles > .pill, .eco, .reseau .src-n, .mosa > .tu, .pipe-node, .link-stage .tool, .voie, .note, .agent-card, .etat) {
  border-color: var(--k, var(--bordure-2)); background: color-mix(in srgb, var(--k, var(--papier)) var(--teinte), var(--papier)) }
.stats .stat:nth-child(n) { border-color: var(--k); background: color-mix(in srgb, var(--k) var(--teinte), var(--papier)) }
.stats.s3 .stat:nth-child(n) { border-color: var(--k); background: color-mix(in srgb, var(--k) var(--teinte), var(--papier)) }
.stats .stat:nth-child(n) b { border-color: var(--k) }
.card.c-accent { border-color: var(--encre); background: var(--papier) }
.plein-nuit, .mosa > .tu.plein-nuit, .grid > .tu.plein-nuit { background: var(--encre); border-color: var(--encre) }
.plein-violet, .plein-menthe, .plein-corail { background: color-mix(in srgb, var(--k) var(--teinte), var(--papier)); border-color: var(--k) }
.note { --k: var(--t-bleu); border-left-color: var(--k) }
.etat { --k: var(--t-orange) } .etat.ok { --k: var(--t-vert) }
.agent-card { --k: var(--c) }
.relais-bloc:not(.plein-nuit) { border-color: var(--t-violet); background: color-mix(in srgb, var(--t-violet) var(--teinte), var(--papier)) }
.humain.cecile { border-color: var(--t-rose) } .humain.thomas { border-color: var(--t-bleu) }
.faq[open] { background: color-mix(in srgb, var(--k) var(--teinte-forte), var(--papier)) }
/* Repères de section : une pastille au contour coloré */
.kicker { display: inline-block; border: var(--trait) solid var(--k, var(--t-bleu)); background: color-mix(in srgb, var(--k, var(--t-bleu)) 10%, var(--papier)); border-radius: 100rem; padding: 3px 12px; margin-bottom: 14px }
main > :nth-child(6n+2) .kicker { --k: var(--t-violet) } main > :nth-child(6n+3) .kicker { --k: var(--t-vert) } main > :nth-child(6n+4) .kicker { --k: var(--t-orange) } main > :nth-child(6n+5) .kicker { --k: var(--t-rose) } main > :nth-child(6n) .kicker { --k: var(--t-jaune) }
.tag { border-color: var(--t-rouge); background: color-mix(in srgb, var(--t-rouge) 9%, var(--papier)) }
/* Réseau des sources et équipe : la couleur de chacun */
.reseau .src-n.on { border-color: var(--k); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k) 18%, transparent); background: color-mix(in srgb, var(--k) var(--teinte-forte), var(--papier)) }
.ag-n { border-color: var(--c, var(--bordure-2)); background: color-mix(in srgb, var(--c, var(--papier)) var(--teinte), var(--papier)) }
.ag-n.on { background: color-mix(in srgb, var(--c) 30%, var(--papier)); border-color: var(--c) }
.roster a::before { background: color-mix(in srgb, var(--c) 20%, var(--papier)) }
.roster .n { justify-self: start; border: var(--trait) solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--papier)); border-radius: 100rem; padding: 1px 7px; color: var(--encre) }
@media (min-width: 901px) { .roster a { grid-template-columns: 42px 56px minmax(100px, .7fr) minmax(0, 1fr) minmax(0, 1.5fr) 26px } }
.st-item { border-color: color-mix(in srgb, var(--c, #9f9f9f) 55%, #dedede); background: color-mix(in srgb, var(--c, var(--papier)) 7%, var(--papier)) }
.st-item.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, var(--papier)) }
.st-item .n { border: var(--trait) solid var(--c, var(--bordure-2)); background: color-mix(in srgb, var(--c, var(--papier)) 22%, var(--papier)); color: var(--encre) }
.mega a:hover, .mega a[aria-current] { background: color-mix(in srgb, var(--t-violet) 9%, var(--papier)) }

/* ---------- Espace de travail ---------- */
.agent-btn { background: color-mix(in srgb, var(--c) 9%, var(--papier)); border-color: color-mix(in srgb, var(--c) 34%, var(--papier)) }
.agent-btn:hover { background: color-mix(in srgb, var(--c) 15%, var(--papier)) }
.agent-btn.on { background: color-mix(in srgb, var(--c) 20%, var(--papier)); border-color: var(--c) }
.ex { border: var(--trait) solid var(--c, var(--bordure-2)); background: color-mix(in srgb, var(--c, var(--papier)) 8%, var(--papier)) }
.hist-item:hover, .hist-item.on { background: color-mix(in srgb, var(--c, #9f9f9f) 13%, var(--papier)) }
.w-anim .w-r { background: color-mix(in srgb, var(--c) 10%, var(--papier)) }
.dock .chip { --k: var(--t-bleu); border: var(--trait) dashed var(--k); background: color-mix(in srgb, var(--k) var(--teinte), var(--papier)) }
.dock .chip:nth-of-type(2) { --k: var(--t-violet) } .dock .chip:nth-of-type(3) { --k: var(--t-vert) }
.dock .chip.set { border-style: solid; background: color-mix(in srgb, var(--k) var(--teinte-forte), var(--papier)) }
.bar .pill { --k: var(--t-vert); border-color: var(--k); background: color-mix(in srgb, var(--k) var(--teinte), var(--papier)) }
.bar .pill:nth-of-type(2) { --k: var(--t-bleu) } .bar .reglages-btn { border: var(--trait) solid var(--t-violet); background: color-mix(in srgb, var(--t-violet) var(--teinte), var(--papier)) }
.side-links a, .side-links button { --k: var(--t-jaune); border: var(--trait) solid var(--k); background: color-mix(in srgb, var(--k) var(--teinte), var(--papier)); border-radius: 100rem; padding: 7px 14px; margin-bottom: 4px }
.side-links > :nth-child(2) { --k: var(--t-bleu) } .side-links > :nth-child(3) { --k: var(--t-rose) } .side-links > :nth-child(4) { --k: var(--t-vert) }
.side-links a:hover, .side-links button:hover { background: color-mix(in srgb, var(--k) var(--teinte-forte), var(--papier)) }
.tools .tool { --k: var(--t-bleu); border: var(--trait) solid var(--k); background: color-mix(in srgb, var(--k) var(--teinte), var(--papier)) }
.tools .tool:nth-child(4n+2) { --k: var(--t-violet) } .tools .tool:nth-child(4n+3) { --k: var(--t-vert) } .tools .tool:nth-child(4n) { --k: var(--t-orange) }
.tools .tool.on, .tools .tool.main { background: var(--encre); border-color: var(--encre); color: var(--papier) }
.src, .src-side a { background: color-mix(in srgb, var(--k, #a6d5f4) 28%, var(--papier)) }
:is(.carte-reglage, .mode-card, .integ) { --k: var(--t-bleu); border: var(--trait) solid var(--k); background: color-mix(in srgb, var(--k) var(--teinte), var(--papier)) }
:is(.carte-reglage, .mode-card, .integ):nth-child(4n+2) { --k: var(--t-violet) } :is(.carte-reglage, .mode-card, .integ):nth-child(4n+3) { --k: var(--t-vert) } :is(.carte-reglage, .mode-card, .integ):nth-child(4n) { --k: var(--t-orange) }
.onglets button.on { outline-color: var(--t-violet); background: color-mix(in srgb, var(--t-violet) var(--teinte), var(--papier)) }

/* ================= Réponses : tableaux, liens, indice de confiance ================= */
.a .tableau { overflow-x: auto; margin: 10px 0 14px; border: var(--trait) solid var(--t-bleu); border-radius: 18px; background: var(--papier) }
.a .tableau table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45 }
.a .tableau th { text-align: left; font: 600 12px/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; background: color-mix(in srgb, var(--t-bleu) 10%, var(--papier)); padding: 10px 12px; border-bottom: var(--trait) solid var(--t-bleu); white-space: nowrap }
.a .tableau td { padding: 9px 12px; border-top: 1px solid var(--bordure); vertical-align: top; min-width: 90px }
.a .tableau tr:first-child td { border-top: 0 }
.a .tableau tbody tr:nth-child(even) td { background: #fafafa }
.a .lien { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--t-violet) }
.a h3.t-affiner span { border-color: var(--t-jaune); background: color-mix(in srgb, var(--t-jaune) 14%, var(--papier)) }
.a h3.t-verdict span { border-color: var(--t-orange); background: color-mix(in srgb, var(--t-orange) 12%, var(--papier)) }
.indice { --k: var(--t-bleu); display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 6px 14px; margin: 4px 0 14px; padding: 10px 14px; border: var(--trait) solid var(--k); border-radius: 18px; background: color-mix(in srgb, var(--k) 8%, var(--papier)) }
.indice.haut { --k: var(--t-vert) } .indice.bon { --k: var(--t-bleu) } .indice.moyen { --k: var(--t-orange) } .indice.bas { --k: var(--t-rouge) }
.indice-n { font: 500 13px var(--mono); white-space: nowrap } .indice-n b { font-size: 24px; letter-spacing: -.04em }
.indice-barre { display: flex; gap: 3px } .indice-barre i { width: 9px; height: 18px; border-radius: 4px; border: 1.5px solid var(--k); background: var(--papier) } .indice-barre i.on { background: var(--k) }
.indice-t { font-size: 13.5px; line-height: 1.4 } .indice-t small { display: block; color: var(--texte-2); margin-top: 2px }
@media (max-width: 620px) { .indice { grid-template-columns: auto minmax(0, 1fr) } .indice-barre { display: none } }

/* ================= Modes de travail (ateliers) ================= */
.ateliers { max-width: 860px; margin: 0 auto 8px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px }
.ateliers::-webkit-scrollbar { display: none }
.atelier { flex: none; display: inline-flex; align-items: center; gap: 7px; font: 600 13.5px var(--titres); color: var(--encre); background: var(--papier); border: var(--trait) solid color-mix(in srgb, var(--c) 45%, #dedede); border-radius: 100rem; padding: 7px 14px; cursor: pointer; transition: background .2s, border-color .2s }
.atelier i { width: 8px; height: 8px; border-radius: 50%; background: var(--c) }
.atelier:hover { border-color: var(--c) }
.atelier.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--papier)) }
.atelier-form { max-width: 860px; margin: 0 auto 8px; border: var(--trait) solid var(--encre); border-radius: 24px; background: var(--papier); padding: 12px 14px }
.atelier-aide { margin: 0 0 10px; font-size: 13.5px; color: var(--texte-2) } .atelier-aide b { color: var(--encre); border-bottom: 2px solid var(--c) }
.atelier-champs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; align-items: end }
.atelier-champs .field { margin: 0; font-size: 13px } .atelier-champs .field.large { grid-column: span 2 }
.atelier-champs .input { padding: 8px 12px; font-size: 14px }
.atelier-champs .choix { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; grid-column: span 3 }
.atelier-champs .choix legend { font-size: 13px; margin-bottom: 4px; width: 100% }
.atelier-champs .choix label { display: inline-flex; gap: 6px; align-items: center; border: var(--trait) solid var(--bordure-2); border-radius: 100rem; padding: 5px 12px; font-size: 13.5px; cursor: pointer }
.atelier-champs .choix label:has(input:checked) { border-color: var(--encre); background: color-mix(in srgb, var(--t-jaune) 16%, var(--papier)) }
.atelier-champs .choix input { accent-color: var(--encre) }
.atelier-doc { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13.5px; color: var(--texte-2) }
#atelierMsg:empty { display: none }
.q .q-atelier { display: inline-block; font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 100rem; padding: 1px 8px; margin: 0 8px 4px 0; opacity: .85 }
@media (max-width: 720px) { .atelier-champs { grid-template-columns: 1fr } .atelier-champs .field.large, .atelier-champs .choix { grid-column: auto } .atelier-form { border-radius: 20px; padding: 10px } }

/* ================= Paramètres : équipe (multi-compte) ================= */
.pill-etat { display: inline-block; font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid var(--t-orange); background: color-mix(in srgb, var(--t-orange) 10%, var(--papier)); border-radius: 100rem; padding: 1px 9px; vertical-align: 2px; margin-left: 6px }
.pill-etat.ok { border-color: var(--t-vert); background: color-mix(in srgb, var(--t-vert) 12%, var(--papier)) }
.places { font-size: 14px; margin: 6px 0 12px } .places b { font-family: var(--mono); font-size: 18px }
.places-barre { display: block; height: 8px; border-radius: 8px; border: 1.5px solid var(--t-violet); margin-top: 6px; overflow: hidden } .places-barre i { display: block; height: 100%; background: color-mix(in srgb, var(--t-violet) 55%, var(--papier)) }
.membres { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px }
.membres li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; align-items: center; font-size: 14px; border-top: 1px solid var(--bordure); padding-top: 6px }
.membres li span:first-child { overflow: hidden; text-overflow: ellipsis } .membres small { color: var(--gris) }
@media (max-width: 620px) { .membres li { grid-template-columns: minmax(0, 1fr) auto } .membres small { display: none } }

/* ---------- Réponses : copier un tableau, menus Copier / Télécharger, motif d'un avis négatif ---------- */
.a .tableau { position: relative }
.tableau-barre { display: flex; justify-content: flex-end; padding: 6px 8px 0; background: color-mix(in srgb, var(--t-bleu) 10%, var(--papier)) }
.copier-tableau { font: 600 12px var(--titres); color: var(--encre); background: var(--papier); border: var(--trait) solid var(--t-bleu); border-radius: 100rem; padding: 3px 10px; cursor: pointer }
.copier-tableau:hover { background: color-mix(in srgb, var(--t-bleu) 14%, var(--papier)) }
.tool-menu { position: relative; display: inline-flex }
.tool-pop { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20; display: grid; min-width: 250px; background: var(--papier); border: var(--trait) solid var(--encre); border-radius: 16px; padding: 6px; box-shadow: 0 10px 30px rgba(10, 10, 10, .12) }
.tool-pop[hidden] { display: none }
.tool-pop button { display: grid; gap: 1px; text-align: left; font: 600 14px var(--titres); color: var(--encre); background: none; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer }
.tool-pop button small { font-weight: 400; font-size: 12px; color: var(--gris) }
.tool-pop button:hover, .tool-pop button:focus-visible { background: var(--fond); outline: none }
.motifs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 13.5px; color: var(--texte-2) }
.motifs .chip { font: 600 13px var(--titres); color: var(--encre); background: var(--papier); border: var(--trait) solid color-mix(in srgb, var(--t-rouge) 55%, #dedede); border-radius: 100rem; padding: 4px 11px; cursor: pointer }
.motifs .chip:hover { background: color-mix(in srgb, var(--t-rouge) 8%, var(--papier)) }

/* ---------- Sources regroupées par famille ---------- */
.sources h4 small { font: 500 12px var(--mono); color: var(--gris); margin-left: 6px; text-transform: none; letter-spacing: 0 }
.sfam { font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2); margin: 14px 0 8px }
.sfam small { color: var(--gris); margin-left: 4px }
.src-side li.sfam { margin: 10px 0 2px; font-size: 11px }
.src-side li.sfam:first-child { margin-top: 2px }

/* ---------- Réponse rapide ou approfondie ---------- */
.profondeur { display: inline-flex; border: var(--trait) solid var(--bordure-2); border-radius: 100rem; padding: 2px; background: var(--papier) }
.profondeur[hidden] { display: none }
.profondeur button { font: 600 12.5px var(--titres); color: var(--texte-2); background: none; border: 0; border-radius: 100rem; padding: 5px 11px; cursor: pointer; white-space: nowrap }
.profondeur button[aria-pressed="true"] { background: var(--encre); color: var(--papier) }
.profondeur button[data-prof="rapide"][aria-pressed="true"] { background: color-mix(in srgb, var(--t-cyan) 22%, var(--papier)); color: var(--encre); box-shadow: inset 0 0 0 var(--trait) var(--t-cyan) }

/* ---------- Rédaction : documents les plus demandés ---------- */
.atelier-champs .biblio { grid-column: 1 / -1; display: grid; gap: 8px }
.biblio-t { margin: 0; font-size: 13px; font-weight: 600 }
.biblio-cats { display: flex; flex-wrap: wrap; gap: 4px }
.biblio-cats button { font: 600 12.5px var(--titres); color: var(--texte-2); background: none; border: var(--trait) solid transparent; border-radius: 100rem; padding: 3px 10px; cursor: pointer }
.biblio-cats button[aria-pressed="true"] { border-color: var(--encre); color: var(--encre); background: var(--papier) }
.biblio-liste { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow-y: auto; padding: 2px }
.modele { display: inline-grid; text-align: left; gap: 0; font: 600 13px var(--titres); color: var(--encre); background: color-mix(in srgb, var(--t-violet) 6%, var(--papier)); border: var(--trait) solid color-mix(in srgb, var(--t-violet) 45%, #dedede); border-radius: 12px; padding: 6px 11px; cursor: pointer }
.modele small { font: 500 10.5px var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--gris) }
.modele:hover { border-color: var(--t-violet) }
.modele[aria-pressed="true"] { background: var(--encre); color: var(--papier); border-color: var(--encre) } .modele[aria-pressed="true"] small { color: #d6d6d6 }
.atelier-champs textarea.input { resize: vertical; min-height: 96px; font-size: 14px; line-height: 1.45 }

/* ---------- « Votre avis » ---------- */
.bar .avis-btn { border: var(--trait) solid var(--t-rose); background: color-mix(in srgb, var(--t-rose) var(--teinte, 8%), var(--papier)) }
dialog.avis-dlg { width: min(520px, calc(100vw - 24px)) }
.avis-dlg .dlg > p { font-size: 14.5px }
.notes-avis { border: 0; padding: 0; margin: 0 0 12px }
.notes-avis legend { font-weight: 600; font-size: 14px; margin-bottom: 4px }
.notes-avis legend small { font-weight: 400; color: var(--gris) }
.etoiles-choix { display: flex; gap: 4px }
.etoiles-choix button { font-size: 28px; line-height: 1; color: #d0d0d0; background: none; border: 0; padding: 2px 3px; cursor: pointer; transition: color .15s, transform .15s }
.etoiles-choix button.on { color: #e0ad00 }
.etoiles-choix button:hover { transform: scale(1.12) }
@media (max-width: 700px) {
  .bar .avis-btn .lib { display: none }
  .tool-pop { left: auto; right: 0 }
  .profondeur button { padding: 5px 8px; font-size: 12px }
}
@media (max-width: 520px) { .profondeur .lib { display: none } .profondeur button { padding: 4px 8px; font-size: 14px } }
@media (max-width: 480px) { .composer .row:has(.profondeur:not([hidden])) #convChip { max-width: 30vw } .composer .row:has(.profondeur:not([hidden])) .chip.ent { max-width: 22vw } }

/* ================= Barre latérale réagencée : interlocuteur compact, modes de travail ================= */
#agentList { display: block; padding: 0 2px; margin-top: 6px }
.interl-t, .side h4 { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris) }
.interl-t { margin: 8px 8px 6px }
.interl-btn { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; background: color-mix(in srgb, var(--c) 10%, var(--papier)); border: var(--trait) solid var(--c); border-radius: 18px; padding: 7px 12px 7px 8px; cursor: pointer; font-family: var(--titres); color: var(--encre); transition: background .15s }
.interl-btn:hover { background: color-mix(in srgb, var(--c) 18%, var(--papier)) }
.interl-btn .mascot { width: 38px; height: 38px }
.interl-btn b { display: block; font-size: 14.5px; line-height: 1.2 }
.interl-btn small { display: block; font-size: 12px; color: var(--texte-2); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.interl-btn i { font-style: normal; font-size: 12px; color: var(--texte-2); transition: transform .2s }
.interl-btn[aria-expanded="true"] i { transform: rotate(180deg) }
.interl-pop { margin: 6px 0 0; display: grid; gap: 2px; max-height: 330px; overflow-y: auto; background: var(--papier); border: var(--trait) solid var(--bordure); border-radius: 16px; padding: 4px; scrollbar-width: thin }
.interl-pop[hidden] { display: none }
.interl-pop .agent-btn { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; justify-items: stretch; gap: 9px; align-items: center; text-align: left; width: 100%; background: none; border: var(--trait) solid transparent; border-radius: 12px; padding: 4px 8px; position: static }
.interl-pop .agent-btn:hover, .interl-pop .agent-btn:focus-visible { background: color-mix(in srgb, var(--c) 12%, var(--papier)); outline: none }
.interl-pop .agent-btn.on { background: color-mix(in srgb, var(--c) 16%, var(--papier)); border-color: var(--c) }
.interl-pop .agent-btn .mascot { width: 28px; height: 28px }
.interl-pop .agent-btn b { font-size: 13.5px; max-width: none; white-space: nowrap }
.interl-pop .agent-btn small { display: block; font-size: 11.5px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.interl-pop .agent-btn .lock, .interl-pop .agent-btn .ok { position: static; font-size: 12px; opacity: .75 }
.side h4 { margin: 18px 8px 8px }
.modes-nav { display: grid; gap: 3px; padding: 0 2px }
.mode-btn { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; text-align: left; font-family: var(--titres); color: var(--encre); background: none; border: var(--trait) solid transparent; border-radius: 14px; padding: 5px 10px 5px 5px; cursor: pointer; transition: background .15s, border-color .15s }
.mode-btn:hover { background: color-mix(in srgb, var(--c) 9%, var(--papier)); border-color: color-mix(in srgb, var(--c) 35%, transparent) }
.mode-btn.on { background: color-mix(in srgb, var(--c) 15%, var(--papier)); border-color: var(--c) }
.mode-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 16px; background: color-mix(in srgb, var(--c) 16%, var(--papier)); border: var(--trait) solid color-mix(in srgb, var(--c) 55%, var(--papier)) }
.mode-btn b { display: block; font-size: 14px; line-height: 1.2 }
.mode-btn small { display: block; font-size: 11.5px; color: var(--gris); line-height: 1.25 }
.mode-btn.on small { color: var(--texte-2) }
@media (min-width: 861px) { .dock .ateliers { display: none } }

/* En-tête du formulaire d'un mode, avec retour au mode Question */
.atelier-tete { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-bottom: 10px }
.atelier-tete .atelier-aide { margin: 0 }
.atelier-fermer { width: 30px; height: 30px; border-radius: 50%; border: var(--trait) solid var(--bordure-2); background: var(--papier); cursor: pointer; font-size: 14px; line-height: 1; color: var(--texte-2) }
.atelier-fermer:hover { border-color: var(--encre); color: var(--encre) }

/* Listes déroulantes au design de l'espace */
select.input { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230a0a0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-color: var(--papier); cursor: pointer }
select.input:hover { border-color: var(--encre) }
input[type="date"].input { min-height: 40px }

/* Choix d'une convention (comparaison, salaire minimum) */
.atelier-champs .conv-duo { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch }
.atelier-champs .conv-duo.seule { grid-template-columns: minmax(0, 1fr) }
.conv-pick { display: grid; gap: 1px; align-content: center; text-align: left; min-height: 62px; font-family: var(--titres); color: var(--encre); background: color-mix(in srgb, var(--t-jaune) 6%, var(--papier)); border: var(--trait) dashed color-mix(in srgb, var(--t-jaune) 70%, #9f9f9f); border-radius: 16px; padding: 8px 14px; cursor: pointer; transition: background .15s, border-color .15s }
.conv-pick:hover { background: color-mix(in srgb, var(--t-jaune) 14%, var(--papier)); border-color: var(--t-jaune) }
.conv-pick.set { border-style: solid; border-color: var(--t-jaune); background: color-mix(in srgb, var(--t-jaune) 12%, var(--papier)) }
.conv-pick small { font: 600 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2) }
.conv-pick b { font-size: 14px }
.conv-pick span { font-size: 13px; color: var(--texte-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.conv-pick .vide { color: var(--gris); font-size: 14px }
.conv-inverser { align-self: center; width: 36px; height: 36px; border-radius: 50%; border: var(--trait) solid var(--bordure-2); background: var(--papier); cursor: pointer; font-size: 16px }
.conv-inverser:hover:not(:disabled) { border-color: var(--encre) }
.conv-inverser:disabled { opacity: .4; cursor: default }
.atelier-champs .choix.points { grid-column: 1 / -1 }
.atelier-champs .choix.points legend small { font-weight: 400; color: var(--gris) }
.atelier-champs .choix input[type="checkbox"] { accent-color: var(--encre) }
#dlg.unique #cVide { display: none }

/* Fenêtres de saisie, de choix et de confirmation */
dialog.saisie-dlg { width: min(470px, calc(100vw - 24px)) }
.saisie-dlg h3 { padding-right: 40px }
.saisie-dlg #saisieAide { margin: 0 0 14px; color: var(--texte-2); font-size: 15px; line-height: 1.5 }
.saisie-choix { display: grid; gap: 6px; margin: 0 0 14px; max-height: 260px; overflow-y: auto }
.saisie-choix[hidden] { display: none }
.saisie-opt { display: grid; gap: 1px; text-align: left; font: 600 14.5px var(--titres); color: var(--encre); background: var(--papier); border: var(--trait) solid var(--bordure); border-radius: 14px; padding: 9px 13px; cursor: pointer }
.saisie-opt:hover, .saisie-opt:focus-visible { border-color: var(--t-violet); background: color-mix(in srgb, var(--t-violet) 8%, var(--papier)); outline: none }
.saisie-opt small { font-weight: 400; font-size: 12.5px; color: var(--gris) }
.saisie-opt.sortie { border-style: dashed }
.saisie-dlg .field[hidden] { display: none }
#saisieMsg:empty { display: none }
.btn.danger-plein { background: #c22a3a; border-color: #c22a3a; color: #ffffff }
.btn.danger-plein:hover { background: #a11f2d }

/* Renommer une conversation sur place */
.hist-item.edition { background: var(--papier); border-color: var(--encre) }
.hist-item.edition .rn, .hist-item.edition .mv, .hist-item.edition .del { display: none }
input.renommer { min-width: 0; width: 100%; font: 600 13.5px var(--titres); color: var(--encre); border: 0; border-bottom: var(--trait) solid var(--t-violet); background: transparent; padding: 2px 0; outline: none }

/* Zone de saisie : les pastilles ne se coupent plus */
.composer .row .chip.doc, .composer .row .chip.ent, .composer .row .profondeur { flex: none }
.composer .row #convChip { flex: 0 1 auto; min-width: 0; max-width: 300px }
.atelier-champs .field-t small { display: inline; margin-left: 6px; font-weight: 400; color: var(--gris) }
.atelier-champs .field-t { line-height: 1.35 }
/* Formulaire d'un mode : jamais plus haut que l'écran, la zone de saisie reste visible */
.atelier-form { max-height: min(58vh, 560px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin }
@media (max-width: 860px) {
  .atelier-form { max-height: 44dvh }
  .atelier-tete { grid-template-columns: minmax(0, 1fr) auto } .atelier-tete .mode-ico { display: none }
  .atelier-champs .choix.points label { font-size: 12.5px; padding: 4px 10px }
  .conv-pick { min-height: 54px; padding: 7px 11px } .conv-pick span { font-size: 12px }
  .biblio-liste { max-height: 112px }
}
/* Écrans peu hauts : modes de travail plus compacts pour laisser de la place à « Mes dossiers » */
@media (min-width: 861px) and (max-height: 860px) {
  .mode-btn { grid-template-columns: 26px minmax(0, 1fr); padding: 3px 10px 3px 4px; gap: 9px }
  .mode-btn small { display: none }
  .mode-ico { width: 26px; height: 26px; font-size: 13px; border-radius: 8px }
  .interl-btn { padding: 5px 10px 5px 6px } .interl-btn .mascot { width: 32px; height: 32px }
}

/* ================= Panneau de droite : déroulé et sources de la réponse choisie ================= */
.activity h4 { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris) }
.pan-titre { margin: -2px 0 10px; font-size: 13px; font-weight: 600; color: var(--texte-2); line-height: 1.4 }
.pan-titre:empty { display: none }
.pan-vide { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--gris); border: var(--trait) dashed var(--bordure-2); border-radius: 14px; padding: 10px 12px }
.pan-vide[hidden] { display: none }
.src-side li.eclair a, .sources-mini li.eclair a { animation: eclair 1.4s ease-out }
@keyframes eclair { 0%, 30% { box-shadow: 0 0 0 3px var(--t-jaune) } 100% { box-shadow: 0 0 0 0 transparent } }
@media (prefers-reduced-motion: reduce) { .src-side li.eclair a, .sources-mini li.eclair a { animation: none; box-shadow: 0 0 0 3px var(--t-jaune) } }
.a .cite { cursor: pointer }
@media (min-width: 1181px) { .thread .a[data-cle] { cursor: default } .thread .a.vue { box-shadow: inset 3px 0 0 var(--c, var(--t-violet)) } }
/* Écran étroit (panneau de droite masqué) : sources repliées sous la réponse */
.sources-mini { margin-top: 16px; border: var(--trait) solid var(--bordure); border-radius: 16px; background: var(--papier, var(--papier)) }
.sources-mini summary { cursor: pointer; padding: 10px 14px; font: 600 14px var(--titres); list-style: none; display: flex; align-items: center; gap: 8px }
.sources-mini summary::-webkit-details-marker { display: none }
.sources-mini summary::before { content: "▸"; color: var(--gris); transition: transform .15s }
.sources-mini[open] summary::before { transform: rotate(90deg) }
.sources-mini summary small { font: 600 12px var(--mono); color: var(--gris) }
.sources-mini ol { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 6px }
.sources-mini .sfam { margin: 6px 12px 4px; font-size: 11px }
.sources-mini a { display: flex; gap: 9px; padding: 8px 10px; border-radius: 12px; border: var(--trait) solid var(--k, var(--bleu)); background: color-mix(in srgb, var(--k, #a6d5f4) 22%, var(--papier, var(--papier))); text-decoration: none; color: var(--encre); font-size: 13px; line-height: 1.35 }
.sources-mini .n { font: 700 11px var(--mono); color: var(--gris); flex: none; padding-top: 1px }
.sources-mini small { display: block; color: var(--gris); font-size: 11.5px; margin-top: 2px }
@media (min-width: 1181px) { .sources-mini { display: none } }

/* Bouton de thème : la lune propose le mode sombre, le soleil le retour au clair */
.theme-btn .sun { display: none } .theme-btn .moon { display: block }
:root[data-theme="dark"] .theme-btn .sun { display: block } :root[data-theme="dark"] .theme-btn .moon { display: none }
.theme-btn { color: var(--encre); border: var(--trait) solid var(--bordure-2) }
:root[data-theme="dark"] select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23f1f1f3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") }
:root[data-theme="dark"] img.info-img, :root[data-theme="dark"] .info-img img { background: #ffffff }

/* Mode sombre : les blocs « nuit » (fond noir en clair) gardent leur aspect, cernés d'un trait pour se détacher du fond */
:root[data-theme="dark"] :is(.plein-nuit, .bandeau, .scene, .final .wrap > div.bloc, .cta-band, .newbox, .lettre, .eco-logo.ar, .route .vignette .bulle, .st-bubble, .demo-q, .t-parle div:nth-child(2), .table thead th) { --encre: #0a0a0a; --papier: #ffffff; --texte-2: #d6d6dc; --gris: #b4b4bc }
:root[data-theme="dark"] :is(.plein-nuit, .scene, .final .wrap > div.bloc, .cta-band, .newbox, .lettre) { box-shadow: 0 0 0 1.5px var(--bordure-2, #5c5c66) }
:root[data-theme="dark"] ::selection { background: var(--t-jaune); color: #0a0a0a }

/* ================= Résumé vidéo (phase de test) ================= */
.video-zone { display: flex; justify-content: flex-end; margin: -4px 0 12px }
.video-bulle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: var(--trait) solid var(--encre); border-radius: 999px; background: var(--papier); color: var(--encre); font: 600 13.5px var(--texte); cursor: pointer }
.video-bulle:hover { background: var(--accent-doux) }
.video-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--encre); color: var(--papier); font-size: 11px; padding-left: 2px }
.video-etat { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 13.5px; color: var(--texte-2) }
.video-etat small { color: var(--gris) }
.video-etat.err { color: var(--alerte) }
.video-roue { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--bordure); border-top-color: var(--encre); animation: video-tour 1s linear infinite }
@keyframes video-tour { to { transform: rotate(360deg) } }
@media (prefers-reduced-motion: reduce) { .video-roue { animation: none } }
.video-carte { margin: 0; width: min(100%, 340px); border: var(--trait) solid var(--bordure); border-radius: 18px; overflow: hidden; background: var(--carte) }
.video-carte video { display: block; width: 100%; aspect-ratio: 1; background: #000 }
.video-carte figcaption { display: grid; gap: 4px; padding: 10px 12px 12px; font-size: 13px }
.video-carte figcaption span:first-child { font-weight: 600 }
.video-carte figcaption small { color: var(--gris); line-height: 1.35 }
.video-carte .link-btn { justify-self: start }

/* Bulle vidéo flottante, en bas à droite de la conversation */
.work { position: relative }
.video-flottante { position: absolute; right: calc(320px + 20px); bottom: 16px; z-index: 30; display: grid; justify-items: end; gap: 6px }
@media (max-width: 1180px) { .video-flottante { right: 16px } }
body:not(.in-convo) .video-flottante { right: 16px }
.vf-rond { position: relative; width: 156px; height: 156px; border-radius: 34px; overflow: hidden; border: 3px solid var(--papier); outline: var(--trait) solid var(--encre); background: radial-gradient(circle at 50% 30%, #3a3532, #1c1a19 70%); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); cursor: pointer }
.vf-rond.attente { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--papier); cursor: default }
.vf-rond video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block }
.video-flottante.grand .vf-rond video { object-fit: contain; background: #000 }
/* La vidéo arrive dans le format d'origine de l'avatar (souvent vertical) : la bulle carrée la remplit en partant du
   HAUT de l'image, si bien que la tête n'est jamais coupée (c'est le bas, buste et micro, qui sort du cadre).
   En mode agrandi, la vidéo est montrée entière. */
.vf-lecture { position: absolute; right: 14px; bottom: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(10, 10, 10, .72); color: #fff; font-size: 13px; cursor: pointer; transition: opacity .2s }
.video-flottante.lit .vf-lecture { opacity: 0 } .video-flottante.lit .vf-rond:hover .vf-lecture { opacity: 1 }
.vf-boutons { position: absolute; top: -6px; right: -6px; display: flex; gap: 4px }
.vf-boutons button { width: 28px; height: 28px; border-radius: 50%; border: var(--trait) solid var(--encre); background: var(--papier); color: var(--encre); font-size: 12px; cursor: pointer; display: grid; place-items: center }
.vf-etiquette { max-width: 220px; padding: 3px 10px; border-radius: 999px; background: var(--papier); border: 1px solid var(--bordure); font-size: 11.5px; color: var(--texte-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.vf-legende { display: none }
.video-flottante.grand .vf-rond { width: min(340px, calc(100vw - 32px)); height: auto; aspect-ratio: 1; border-radius: 20px; cursor: default }
.video-flottante.grand .vf-lecture, .video-flottante.grand .vf-etiquette { display: none }
.video-flottante.grand .vf-legende { display: grid; gap: 3px; width: min(340px, calc(100vw - 32px)); padding: 10px 12px; border-radius: 16px; background: var(--carte); border: var(--trait) solid var(--bordure); font-size: 12.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18) }
.vf-legende small { color: var(--gris); line-height: 1.35 } .vf-legende .link-btn { justify-self: start }
@media (max-width: 620px) { .vf-rond { width: 120px; height: 120px; border-radius: 28px } .video-flottante { bottom: 10px; right: 12px } }
.video-etat.ok .video-ico { width: 22px; height: 22px; font-size: 9px }

/* ================= Résumés : rangée de formats sous la réponse, lecteurs flottants ================= */
.video-zone { display: grid; justify-items: end; gap: 6px }
.resumes { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px }
.resumes-t { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris); margin-right: 2px }
.resumes .video-bulle { padding: 4px 12px 4px 4px; font-size: 13px }
.resumes .video-ico { width: 24px; height: 24px; font-size: 11px }
.resumes-etat:empty { display: none }
/* audio : bulle ronde, anneau de progression, petites ondes pendant la lecture */
.vf-rond.audio { width: 92px; height: 92px; border-radius: 50%; background: var(--encre); display: grid; place-items: center; overflow: visible }
.vf-anneau { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ffee98 calc(var(--p, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%) }
.vf-onde { display: flex; gap: 3px; align-items: center; height: 26px }
.vf-onde i { width: 4px; height: 8px; border-radius: 2px; background: var(--papier); opacity: .85 }
.video-flottante.lit .vf-onde i { animation: vf-onde 0.9s ease-in-out infinite } .vf-onde i:nth-child(2) { animation-delay: .15s !important } .vf-onde i:nth-child(3) { animation-delay: .3s !important } .vf-onde i:nth-child(4) { animation-delay: .45s !important } .vf-onde i:nth-child(5) { animation-delay: .6s !important }
@keyframes vf-onde { 0%, 100% { height: 6px } 50% { height: 24px } }
@media (prefers-reduced-motion: reduce) { .video-flottante.lit .vf-onde i { animation: none } }
.vf-rond.audio .vf-lecture { position: absolute; inset: auto; right: -2px; bottom: -2px; width: 32px; height: 32px; opacity: 1 !important; background: var(--papier); color: var(--encre); border: var(--trait) solid var(--encre) }
.video-flottante.grand .vf-rond.audio { width: 92px; height: 92px; aspect-ratio: auto; border-radius: 50%; cursor: pointer }
.video-flottante.grand .vf-rond.audio .vf-lecture { display: grid; place-items: center }
.vf-texte { max-height: 140px; overflow: auto; margin: 4px 0; line-height: 1.5; font-size: 13px; color: var(--texte-2) }
.vf-texte span.on { background: #ffee98; color: #0a0a0a; border-radius: 4px; box-shadow: 0 0 0 2px #ffee98 }
/* vidéo animée : carte carrée avec la toile */
.video-flottante.anime .vf-rond { width: min(300px, calc(100vw - 32px)); height: auto; aspect-ratio: 1; border-radius: 20px; background: #111114 }
.video-flottante.anime canvas { width: 100%; height: 100%; display: block }
.video-flottante.anime .vf-lecture { display: grid; place-items: center; right: 12px; bottom: 12px; inset: auto 12px 12px auto }
.video-flottante.anime .vf-legende { width: min(300px, calc(100vw - 32px)) }
@media (max-width: 620px) { .video-flottante.anime .vf-rond, .video-flottante.anime .vf-legende { width: min(240px, calc(100vw - 32px)) } }

/* ================= Recette du 27/11/2026 ================= */
/* Typographie de l'espace : texte des réponses en Geist, fin et épuré ; titres des réponses en Bricolage Grotesque */
body.app { --texte: "Geist", system-ui, sans-serif }
body.app .body { font-family: var(--texte); font-weight: 340; letter-spacing: -.003em }
body.app .body strong, body.app .body b { font-weight: 620 }
body.app .body em { font-style: italic }
body.app .a h3 { font-family: "Bricolage Grotesque", var(--display); font-weight: 600 }
/* Passage entre crochets hors d'un document : une phrase normale, pas un champ coloré */
.body em.nota { font-style: italic; color: var(--texte-2) }
/* Nouveaux titres de réponse */
.a h3.t-verif span { border-color: var(--t-vert); background: color-mix(in srgb, var(--t-vert) 12%, var(--papier)) }
.a h3.t-rouge span { border-color: var(--t-rouge); background: color-mix(in srgb, var(--t-rouge) 10%, var(--papier)) }
/* Tableaux lisibles en mode sombre : plus de lignes blanches sous un texte clair */
.a .tableau tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--encre) 4%, var(--papier)) }
.a .tableau td, .a .tableau th { color: var(--encre) }
:root[data-theme="dark"] .a .tableau, :root[data-theme="dark"] .a .tableau-barre { background: var(--papier) }
/* Bouton Arrêter pendant une réponse */
.send.stop { background: var(--t-rouge); color: #ffffff }
.send.stop:hover { filter: brightness(1.05) }
/* Document rangé dans Mes documents */
.range-note { margin: 10px 0 0; font: 500 13.5px var(--titres); color: var(--texte-2); background: color-mix(in srgb, var(--t-vert) 10%, var(--papier)); border: 1px solid color-mix(in srgb, var(--t-vert) 45%, transparent); border-radius: 12px; padding: 8px 12px }
/* Revenir à l'endroit de lecture après un clic sur une source */
.retour-lecture { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 40; font: 600 14px var(--titres); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 100rem; padding: 10px 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); cursor: pointer }
.retour-lecture[hidden] { display: none }
/* Panneau de droite : une fois la réponse terminée, les sources d'abord, le déroulé ensuite */
@media (min-width: 1181px) {
  body.in-convo .activity.fini { display: flex; flex-direction: column }
  .activity.fini .pan-titre { order: -2 }
  .activity.fini .src-side { order: -1; margin: 0 0 18px }
}
/* Coller le code reçu par e-mail */
.coller-code { margin-top: 8px }

/* ================= Refonte de l'espace (27/11/2026, soir) : compact, panneau des sources à la demande ================= */
.planche { position: absolute; width: 0; height: 0; overflow: hidden }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em }
:root { --l-gauche: 272px; --l-droite: 340px }

/* ---------- Grille : barre de gauche et panneau des sources redimensionnables ---------- */
@media (min-width: 861px) {
  body.app .shell { grid-template-columns: var(--l-gauche) minmax(0, 1fr) }
  body.app .side { position: relative }
}
@media (min-width: 1181px) { body.app.pan-ouvert .shell { grid-template-columns: var(--l-gauche) minmax(0, 1fr) var(--l-droite) } }
body.app .work { grid-template-columns: minmax(0, 1fr) }
body.app .activity { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100dvh; min-height: 0; overflow-y: auto; padding: 12px 14px 18px; background: var(--fond); border-left: 1px solid var(--bordure) }
body.app .activity[hidden] { display: none }
@media (max-width: 1180px) {
  body.app.pan-ouvert .activity { position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--l-droite), 92vw); z-index: 60; box-shadow: -14px 0 40px rgba(0, 0, 0, .18) }
  body.app .activity .poignee { display: none }
}
.poignee { position: absolute; top: 0; bottom: 0; right: -4px; width: 9px; cursor: col-resize; z-index: 35; touch-action: none }
.poignee.gauche { right: auto; left: -4px }
.poignee::after { content: ""; position: absolute; top: 50%; left: 3px; width: 3px; height: 44px; margin-top: -22px; border-radius: 3px; background: var(--bordure-2); opacity: 0; transition: opacity .15s }
.poignee:hover::after, .poignee:focus-visible::after, body.etire .poignee::after { opacity: 1 }
.poignee:focus-visible { outline: none }
body.etire { cursor: col-resize; user-select: none }
@media (max-width: 860px) { .poignee { display: none } }

/* ---------- Barre de gauche : plus compacte ---------- */
body.app .side-top { padding: 12px 14px 10px; gap: 10px }
.side-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.side-tete .theme-btn { width: 30px; height: 30px; border-radius: 9px; flex: none }
body.app .side-top .btn { padding: 8px 14px; font-size: 14px }
body.app .side-scroll { padding: 2px 8px 10px }
body.app .side h4 { margin: 12px 8px 5px; font-size: 10.5px }
body.app .interl-btn { padding: 5px 10px 5px 6px; border-radius: 14px } body.app .interl-btn .mascot { width: 30px; height: 30px }
body.app .interl-btn b { font-size: 13.5px } body.app .interl-btn small { font-size: 11.5px }
body.app .interl-t { display: none }
body.app .modes-nav { gap: 1px }
body.app .mode-btn { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; padding: 4px 8px 4px 5px; border-radius: 11px }
body.app .mode-btn b { font-size: 13.5px; font-weight: 600 } body.app .mode-btn small { font-size: 11px }
body.app .mode-ico { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, var(--papier)); color: var(--encre); font-size: 14px; border: 0 }
body.app .mode-btn.bientot { cursor: default; opacity: .55 }
body.app .mode-btn.bientot:hover { background: none; border-color: transparent }
body.app .mode-btn.bientot small { display: none }
.a-venir { font: 600 9.5px var(--mono); font-style: normal; letter-spacing: .05em; text-transform: uppercase; color: var(--texte-2); border: 1px solid var(--bordure-2); border-radius: 100rem; padding: 1px 7px; white-space: nowrap }
body.app .chiffre-note { margin: -1px 8px 6px; font-size: 11px; gap: 5px }
body.app .hist-recherche { position: relative; margin: 6px 2px 4px }
body.app .hist-recherche .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gris); pointer-events: none; font-size: 13px }
body.app .hist-recherche .input { padding: 6px 10px 6px 30px; font-size: 13px; border-radius: 10px }
body.app .hist-item { padding: 5px 8px; font-size: 13px; border-radius: 9px }
body.app .hist-item .rn, body.app .hist-item .mv, body.app .hist-item .del { font-size: 12px; color: var(--gris); background: none; border: 0; padding: 0 1px; cursor: pointer }
body.app .projet summary { padding: 5px 8px; font-size: 13px } body.app .projet summary .ic { margin-right: 6px; color: var(--gris) }
body.app .side-links { margin-top: 10px; padding-top: 8px; gap: 1px }
body.app .side-links a, body.app .side-links button { display: flex; align-items: center; gap: 9px; border: 0; background: none; border-radius: 9px; padding: 6px 10px; margin: 0; font: 500 13.5px var(--titres) }
body.app .side-links a:hover, body.app .side-links button:hover { background: var(--carte) }
body.app .side-links .ic { color: var(--gris) }
body.app .side-foot { padding: 9px 14px; gap: 4px; font-size: 12.5px }
body.app .side-foot .mail small { display: block; font-weight: 400; font-size: 11.5px; color: var(--gris) }

/* ---------- En-tête : plus bas, pastilles sobres ---------- */
body.app .bar { min-height: 50px; padding: 6px 16px; gap: 8px }
body.app .who { margin-right: auto } body.app .who .mascot { width: 34px; height: 34px } body.app .who b { font-size: 14.5px } body.app .who small { font-size: 12px }
body.app .bar .pill, body.app .bar .reglages-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bordure-2); background: var(--papier); color: var(--texte-2); border-radius: 100rem; padding: 5px 11px; font: 500 12.5px var(--titres) }
body.app .bar .reglages-btn:hover, body.app .bar .mode-pill:hover { border-color: var(--encre); color: var(--encre); transform: none }
body.app .mode-pill::before { display: none }
body.app .avatar-btn { width: 32px; height: 32px; font-size: 12px; box-shadow: none }
body.app .menu { width: 260px; border-radius: 14px; padding: 6px }
body.app .menu button, body.app .menu a { display: flex; align-items: center; gap: 9px; padding: 7px 9px; font: 500 13.5px var(--titres); border-radius: 9px }
body.app .menu .ic { color: var(--gris) }
body.app .menu-t { margin: 4px 9px 2px; font-size: 13.5px } .menu-usage { margin: 0 9px 6px; font-size: 12px; color: var(--gris) } .menu-usage:empty { display: none }
.flag { flex: none }

/* ---------- Conversation : plus dense ---------- */
body.app .col { padding: 16px 20px 22px }
body.app .a { padding: 16px 20px; border-radius: 20px }
body.app .a-head { margin-bottom: 8px; font-size: 12.5px } body.app .a-head .mascot { width: 32px; height: 32px } body.app .a-head b { font-size: 14px }
body.app .body { font-size: 15.5px; line-height: 1.62 }
body.app .q { padding: 9px 14px; font-size: 15px; border-radius: 16px 16px 5px 16px }
/* Déroulé en direct : textes lus et passages de relais, dans la réponse en préparation */
body.app .deroule { list-style: none; margin: 0 0 10px; padding: 8px 12px; display: grid; gap: 5px; border-radius: 12px; background: color-mix(in srgb, var(--encre) 4%, var(--papier)); font: 400 13px/1.4 var(--titres); color: var(--texte-2) }
body.app .deroule:empty { display: none }
body.app .deroule li { display: grid; grid-template-columns: 10px 1fr; gap: 8px; align-items: start; animation: rise .3s ease-out }
body.app .deroule li i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--bleu)); margin-top: 6px }
body.app .deroule li:last-child { color: var(--encre); font-weight: 500 }
body.app .deroule li:last-child i { animation: blinkdot 1.1s ease-in-out infinite }
@media (prefers-reduced-motion: reduce) { body.app .deroule li, body.app .deroule li:last-child i { animation: none } }
/* Outils sous la réponse : sobres, une seule teinte */
body.app .tools { margin-top: 14px; gap: 6px; font-size: 13px }
body.app .tools .tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bordure-2); background: var(--papier); color: var(--texte-2); padding: 5px 11px; border-radius: 100rem }
body.app .tools .tool:hover { border-color: var(--encre); color: var(--encre) }
body.app .tools .tool.main, body.app .tools .tool.on { background: var(--encre); border-color: var(--encre); color: var(--papier) }
body.app .tools .src-pill b { font: 600 11.5px var(--mono); background: color-mix(in srgb, var(--encre) 8%, var(--papier)); border-radius: 100rem; padding: 0 7px; color: var(--encre) }
body.app .tools .sp .tool { padding: 5px 8px }
body.app .a.vue { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--encre)) 22%, transparent) }
.range-note { background: none; border: 0; padding: 0; color: var(--gris); font-size: 13px }
/* Réponses proposées pour affiner */
.body li.avec-sugg, .body p.avec-sugg { margin-bottom: 10px }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px }
.sugg-btn { font: 500 13.5px var(--titres); color: var(--encre); background: var(--papier); border: 1px solid var(--bordure-2); border-radius: 100rem; padding: 5px 13px; cursor: pointer; transition: background .15s, border-color .15s }
.sugg-btn:hover { border-color: var(--encre) }
.sugg-btn[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--papier) }
.sugg-go { margin: 2px 0 6px }
/* Résumés : pictogrammes au trait */
body.app .resumes .video-bulle { padding: 4px 11px; gap: 6px; border: 1px solid var(--bordure-2); color: var(--texte-2) }
body.app .resumes .video-ico { width: auto; height: auto; background: none; color: inherit; font-size: 14px; display: inline-flex }

/* ---------- Panneau des sources ---------- */
.pan-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.pan-tete h4 { margin: 0 }
.pan-fermer { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--bordure-2); border-radius: 8px; background: var(--papier); color: var(--texte-2); cursor: pointer }
.pan-fermer:hover { border-color: var(--encre); color: var(--encre) }
body.app .activity .pan-titre { margin: 0 0 4px }
body.app .activity .src-side { margin: 0 }
.pan-deroule { margin-top: 6px; font-size: 13px } .pan-deroule[hidden] { display: none }
.pan-deroule summary { cursor: pointer; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gris); padding: 6px 0 }

/* ---------- Zone de saisie ---------- */
body.app .dock { padding: 8px 16px 8px }
body.app .composer { border-width: 1.5px; border-radius: 20px; padding: 6px }
body.app .composer textarea { font-size: 15.5px; min-height: 40px; padding: 6px 10px }
body.app .dock .chip { display: inline-flex; align-items: center; gap: 6px; --k: var(--bordure-2); border: 1px solid var(--bordure-2); background: var(--papier); color: var(--texte-2); padding: 5px 11px; font: 500 13px var(--titres) }
body.app .dock .chip:hover { border-color: var(--encre); color: var(--encre) }
body.app .dock .chip.set { border-color: var(--encre); color: var(--encre); background: color-mix(in srgb, var(--encre) 5%, var(--papier)) }
body.app .send { height: 38px; font-size: 14.5px; padding: 0 16px } body.app .mic { width: 38px; height: 38px }
body.app .hint { margin-top: 5px; font-size: 11.5px }

/* ---------- Paramètres ---------- */
body.app .reglages .carte-reglage, body.app .reglages .integ { --k: var(--bordure); border: 1px solid var(--bordure); background: var(--papier); border-radius: 14px }
body.app .reglages .carte-reglage { padding: 14px 16px }
body.app .reglages .carte-reglage.danger { border-color: color-mix(in srgb, var(--t-rouge) 45%, var(--bordure)) }
body.app .reglages .carte-reglage .btn { max-width: 100%; white-space: normal; text-align: left }
body.app .onglets { padding: 3px; border-radius: 12px; margin-bottom: 14px }
body.app .onglets button { padding: 6px 11px; font-size: 13px; border-radius: 9px }
body.app .onglets button.on { outline: 0; background: var(--encre); color: var(--papier) }
.mode-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 4px 0 10px }
.mode-mini { position: relative; display: grid; gap: 5px; align-content: start; border: 1.5px solid var(--bordure-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--papier) }
.mode-mini input { position: absolute; opacity: 0; pointer-events: none }
.mode-mini:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre) }
.mode-mini:has(input:focus-visible) { outline: 2px solid var(--t-bleu); outline-offset: 2px }
.mm-t { display: flex; align-items: center; gap: 7px; font-size: 14.5px } .mm-t em { margin-left: auto; font: 600 10px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .04em; color: var(--gris) }
.mm-t em.ok { color: var(--t-vert) }
.mode-mini.actuel .mm-t b::after { content: "actuel"; margin-left: 8px; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--bordure-2); border-radius: 100rem; padding: 1px 7px; color: var(--texte-2) }
.mm-s { font-size: 13px; line-height: 1.45; color: var(--texte-2) }
.mm-zdr { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--encre); background: color-mix(in srgb, var(--t-vert) 10%, var(--papier)); border-radius: 10px; padding: 6px 8px }
.mm-zdr .ic { color: var(--t-vert); margin-top: 1px }
.ia-accord { border-top: 1px solid var(--bordure); margin-top: 6px; padding-top: 10px; display: grid; gap: 6px }
.ia-accord[hidden] { display: none } .ia-accord-t { margin: 0; font-weight: 600; font-size: 14px; color: var(--encre) }
.ia-accord .checkline { font-size: 13.5px }
.lien-plus { margin: 8px 0 0; font-size: 13.5px }
.etapes { list-style: none; counter-reset: e; margin: 4px 0 10px; padding: 0; display: grid; gap: 8px }
.etapes li { counter-increment: e; display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; font-size: 14px; line-height: 1.4 }
.etapes li::before { content: counter(e); grid-row: span 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--encre); color: var(--papier); font: 600 12.5px var(--mono) }
.etapes li span { color: var(--texte-2); font-size: 13px }
body.app .integ-grille { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px }
body.app .reglages .integ { padding: 12px 14px 12px; gap: 3px }
body.app .reglages .integ b { font-size: 14px; padding-right: 64px } body.app .reglages .integ span { font-size: 12.5px }
body.app .reglages .integ em { top: 11px; right: 11px; background: none; border: 1px solid var(--bordure-2); color: var(--texte-2) }
.ged-ic .ic { font-size: 16px; color: var(--gris) }
/* Étoiles de « Votre avis » : elles s'allument au survol */
.etoiles-choix button { transition: color .12s, transform .18s cubic-bezier(.3, 1.6, .6, 1) }
.etoiles-choix button.survol { color: #f0c230; transform: scale(1.22) rotate(-6deg) }
.etoiles-choix button.on { color: #e0ad00; transform: scale(1.08) }
.etoiles-choix:hover button:not(.survol) { color: #d0d0d0; transform: none }
@media (prefers-reduced-motion: reduce) { .etoiles-choix button { transition: none; transform: none !important } }
body.app .mode-btn.bientot b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500 }
.mm-t { flex-wrap: wrap } .mm-t b { white-space: nowrap }
@media (max-width: 1500px) { body.app.pan-ouvert .bar .fr-pill { display: none } }
/* Bulle de question : mention de la convention lisible en clair comme en sombre */
body.app .q small { color: inherit; opacity: .72 }
/* Téléphone : en-tête réduit à l'essentiel, pictogrammes seuls */
@media (max-width: 860px) {
  body.app .bar .fr-pill { display: none }
  body.app .bar .reglages-btn { width: 34px; height: 34px; padding: 0; justify-content: center } body.app .bar .reglages-btn .lib { display: none }
  body.app .bar .mode-pill { padding: 5px 9px; font-size: 12px }
  body.app .who small { display: none }
  body.app .chip.doc:not(.set) { font-size: 0; padding: 7px 10px } body.app .chip.doc:not(.set)::before { content: none } body.app .chip.doc:not(.set) .ic { font-size: 15px }
  body.app .menu-btn { display: grid; place-items: center; width: 34px; height: 34px; font-size: 18px }
}

/* ---------- Retours de la bêta ---------- */
.rappel-avis { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 4px 6px; padding: 6px 10px; border-radius: 12px; background: color-mix(in srgb, var(--t-jaune) 16%, var(--papier)); font: 500 13px var(--titres); color: var(--encre) }
.rappel-avis[hidden] { display: none } .rappel-avis span { margin-right: auto }
.rappel-avis .tool { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--bordure-2); background: var(--papier); border-radius: 100rem; padding: 3px 10px; font: 500 12.5px var(--titres); color: var(--encre); cursor: pointer }
.rappel-avis .tool:hover { border-color: var(--encre) }
.invite-avis { align-self: center; display: grid; gap: 6px; justify-items: start; max-width: 520px; border: 1px solid var(--bordure-2); border-radius: 16px; padding: 14px 16px; background: var(--papier); font-size: 14px; color: var(--texte-2) }
.invite-avis b { color: var(--encre) }
body.app .tools .sp { font-size: 12.5px }
/* ---------- Pages de connexion et d'inscription ---------- */
.newline { margin-top: 26px; padding-top: 16px }
.rang-avatars { display: flex; align-items: flex-end; gap: 10px; margin: 22px 0 8px } .rang-avatars [data-mascot] { width: 72px; flex: none }
.choix-structure { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0 0 14px; min-width: 0 }
.choix-structure legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14.5px }
.choix-structure label { position: relative; display: flex; align-items: center; border: 1.5px solid var(--bordure-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.3 }
.choix-structure input { position: absolute; opacity: 0; pointer-events: none }
.choix-structure label:has(input:checked) { border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre) }
.choix-structure label:has(input:focus-visible) { outline: 2px solid var(--t-bleu); outline-offset: 2px }
.choix-structure small { display: block; font-weight: 400; font-size: 12px; color: var(--gris) }
@media (max-width: 520px) { .choix-structure { grid-template-columns: 1fr } }

/* ================= Site public : retouches du 27/11/2026 (soir) ================= */
/* Mosaïque d'accueil : explication sous l'orbite, sources qui défilent */
.t-orb { align-content: center; gap: 14px }
.orb-texte { margin: 0; max-width: 360px; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--texte-2) }
.orb-texte b { display: block; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--encre); margin-bottom: 4px }
.t-saut .saut-t { font-family: var(--display); font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15 }
.t-sources small { font: 600 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; line-height: 1.35 }
.t-sources b.tourne { display: block; font-size: clamp(20px, 2.1vw, 28px); letter-spacing: -.03em; line-height: 1.1; white-space: normal; min-height: 2.2em }
.t-sources b.tourne.in { animation: tourne-in .45s cubic-bezier(.2, .8, .3, 1) }
@keyframes tourne-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .t-sources b.tourne.in { animation: none } }
/* Choix de l'IA : trois points par voie, drapeau pour l'IA souveraine */
.voie .haut small { display: inline-flex; align-items: center; gap: 7px }
.voie-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--texte-2) }
.voie-points li { position: relative; padding-left: 18px }
.voie-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--k, var(--encre)) }
.voie-points b { color: var(--encre) }
.t-sources b.tourne { font-family: var(--display); font-weight: 700 }
/* Scène de démonstration seule (page Fonctionnement) */
.scene.seule { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto }
/* Sécurité : confirmation écrite de Mistral, mise en avant */
.zdr-carte { border: var(--trait) solid var(--t-vert); background: color-mix(in srgb, var(--t-vert) 10%, var(--papier)); border-radius: 26px; padding: 24px 26px; display: grid; gap: 8px; align-content: start }
.zdr-carte .flag { width: 30px; height: 20px }
.zdr-carte .zdr-t { margin: 4px 0 0; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--texte-2) }
.zdr-carte .zdr-g { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.08; color: var(--encre) }
.zdr-carte p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--texte-2) }
.card h3 .flag { margin-right: 8px; vertical-align: -1px }
.carte .retour circle { opacity: .9 }
/* Ressources : les sources, lues à tour de rôle */
.rayon { margin-top: 22px; border: var(--trait) solid var(--bordure-2); border-radius: 26px; background: var(--papier); padding: 18px 20px 20px }
.rayon-lit { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; font-size: 15px; color: var(--texte-2) }
.rayon-lit b { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; color: var(--encre) }
.rayon-lit b.in { animation: tourne-in .4s cubic-bezier(.2, .8, .3, 1) }
.rayon-point { width: 9px; height: 9px; border-radius: 50%; background: var(--t-vert); animation: blink-rayon 1.1s ease-in-out infinite }
@keyframes blink-rayon { 50% { opacity: .3; transform: scale(.6) } }
.rayon-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px }
.rayon-liste li { position: relative; display: grid; gap: 2px; padding: 11px 14px 11px 18px; border-radius: 14px; border: 1px solid var(--bordure); transition: background .3s, border-color .3s, transform .3s }
.rayon-liste li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--k) }
.rayon-liste li b { font-size: 15px } .rayon-liste li span { font-size: 13px; line-height: 1.4; color: var(--texte-2) }
.rayon-liste li.on { background: color-mix(in srgb, var(--k) 14%, var(--papier)); border-color: var(--k); transform: translateY(-2px) }
@media (prefers-reduced-motion: reduce) { .rayon-point, .rayon-lit b.in { animation: none } .rayon-liste li { transition: none } }
/* Ressources : fiches en lignes, avec un bouton « Lire » visible */
.fiches { display: grid; gap: 8px }
.fiche { --k: var(--t-bleu); display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 20px; border: var(--trait) solid var(--bordure-2); border-radius: 20px; background: var(--papier); color: var(--encre); text-decoration: none; transition: border-color .15s, transform .15s, background .15s }
.fiche.c-jaune { --k: var(--t-jaune) } .fiche.c-violet { --k: var(--t-violet) } .fiche.c-vert { --k: var(--t-vert) } .fiche.c-orange { --k: var(--t-orange) } .fiche.c-rouge { --k: var(--t-rouge) } .fiche.c-rose { --k: var(--t-rose) }
.fiche-theme { justify-self: start; font: 600 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid var(--k); background: color-mix(in srgb, var(--k) 12%, var(--papier)); border-radius: 100rem; padding: 3px 10px }
.fiche-corps { display: grid; gap: 3px; min-width: 0 } .fiche-corps b { font-family: var(--display); font-size: 17.5px; letter-spacing: -.02em; line-height: 1.2 } .fiche-corps span { font-size: 14px; line-height: 1.45; color: var(--texte-2) }
.fiche-lire { white-space: nowrap; font: 600 13.5px var(--titres); border: var(--trait) solid var(--encre); border-radius: 100rem; padding: 7px 14px; transition: background .15s, color .15s }
.fiche-lire i { font-style: normal; display: inline-block; transition: transform .15s }
.fiche:hover { border-color: var(--k); background: color-mix(in srgb, var(--k) 6%, var(--papier)); transform: translateX(3px) }
.fiche:hover .fiche-lire { background: var(--encre); color: var(--papier) } .fiche:hover .fiche-lire i { transform: translateX(3px) }
@media (max-width: 760px) { .fiche { grid-template-columns: 1fr; gap: 10px } .fiche-lire { justify-self: start } }
/* Lisibilité en mode sombre (contrôle des contrastes du 27/11/2026) */
:root[data-theme="dark"] .etiquette { color: #0a0a0a }
:root[data-theme="dark"] .flot { color: #0a0a0a } :root[data-theme="dark"] .flot small { color: #4a4a4a }
:root[data-theme="dark"] .ql-jeton { color: #0a0a0a; background: color-mix(in srgb, var(--c) 55%, #ffffff) }
.tamp { color: color-mix(in srgb, var(--ok) 68%, #000) } :root[data-theme="dark"] .tamp { color: var(--ok) }

/* ================= Espace, lot 3 (27/11/2026) ================= */
/* Mode d'IA affiché en haut à gauche, près du mode nuit */
.mode-fixe { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; border-radius: 100rem; padding: 3px 9px; border: 1px solid var(--k); background: color-mix(in srgb, var(--k) 12%, var(--papier)); color: var(--encre) }
.mode-fixe[hidden] { display: none }
.mode-fixe::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--k) }
/* Mode actif du compte : toujours en vert (28/11/2026) */
.mode-fixe.claude, .mode-fixe.souverain { --k: var(--t-vert) }
.side-tete .brand b { font-size: 19px }
/* En-tête : touches de couleur */
body.app .bar .fr-pill { border-color: var(--t-bleu); background: color-mix(in srgb, var(--t-bleu) 12%, var(--papier)); color: var(--encre) }
body.app .bar .fr-pill .ic { color: var(--t-bleu) }
body.app .bar .avis-btn .ic { color: var(--t-violet) }
body.app .bar .avis-btn { border-color: color-mix(in srgb, var(--t-violet) 55%, var(--bordure-2)) }
body.app .bar .mode-pill { border-style: dashed; color: var(--encre) }
body.app .bar .mode-pill:hover { border-style: solid }
/* Pouces : vert et rouge */
body.app .tools .tool[data-act="up"] { color: var(--t-vert); border-color: color-mix(in srgb, var(--t-vert) 60%, var(--bordure-2)); background: color-mix(in srgb, var(--t-vert) 8%, var(--papier)) }
body.app .tools .tool[data-act="down"] { color: var(--t-rouge); border-color: color-mix(in srgb, var(--t-rouge) 60%, var(--bordure-2)); background: color-mix(in srgb, var(--t-rouge) 7%, var(--papier)) }
body.app .tools .tool[data-act="up"].on { background: var(--t-vert); border-color: var(--t-vert); color: #fff }
body.app .tools .tool[data-act="down"].on { background: var(--t-rouge); border-color: var(--t-rouge); color: #fff }
.rappel-avis .tool[data-rappel="1"] { color: var(--t-vert); border-color: var(--t-vert) } .rappel-avis .tool[data-rappel="-1"] { color: var(--t-rouge); border-color: var(--t-rouge) }
/* Convention et accords : gris tant que rien n'est choisi, en couleur ensuite */
body.app .dock #convChip { border-style: dashed }
body.app .dock #convChip.set { border-style: solid; border-color: var(--t-bleu); background: color-mix(in srgb, var(--t-bleu) 14%, var(--papier)); color: var(--encre) }
body.app .dock .chip.ent.set { border-color: var(--t-vert); background: color-mix(in srgb, var(--t-vert) 14%, var(--papier)); color: var(--encre) }
body.app .dock .chip.doc.set { border-color: var(--t-violet); background: color-mix(in srgb, var(--t-violet) 12%, var(--papier)); color: var(--encre) }
/* Fonctions « à venir » : en vert, signe que c'est en préparation (retour au vert demandé le 28/11/2026) */
.a-venir { color: color-mix(in srgb, var(--t-vert) 78%, #000); border-color: var(--t-vert); background: color-mix(in srgb, var(--t-vert) 10%, var(--papier)) }
:root[data-theme="dark"] .a-venir { color: var(--t-vert) }
body.app .mode-btn.bientot { opacity: .78 } body.app .mode-btn.bientot .mode-ico, body.app .mode-btn.bientot b { opacity: .6 }
/* Dossiers : crayon centré, + pour déplier et − pour replier, glisser-déposer */
body.app .projet summary .mini { width: 22px; height: 22px; padding: 0; display: grid; place-items: center; border-radius: 7px; font-size: 12px }
body.app .projet summary .mini .ic { margin: 0 }
.plie { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--bordure-2); border-radius: 7px; font: 600 14px/1 var(--titres); font-style: normal; color: var(--texte-2) }
.plie::before { content: "+" } details.projet[open] > summary .plie::before { content: "−" }
.dans-dossier { display: block; width: 100%; text-align: left; margin: 2px 0 4px; padding: 4px 8px 4px 20px; border: 0; background: none; font: 500 12px var(--titres); color: var(--gris); cursor: pointer; border-radius: 8px }
.dans-dossier:hover { color: var(--encre); background: var(--carte) }
body.app .hist-item[draggable="true"] { cursor: grab } body.app .hist-item:active { cursor: grabbing }
body.glisse details.projet, body.glisse #histConvs { outline: 1.5px dashed var(--bordure-2); outline-offset: 1px; border-radius: 10px }
body.glisse #histConvs { min-height: 40px }
body.glisse #histConvs:empty::before { content: "Déposer ici pour sortir du dossier"; display: block; padding: 10px; font-size: 12px; color: var(--gris) }
body.glisse .cible { outline-color: var(--t-bleu) !important; background: color-mix(in srgb, var(--t-bleu) 10%, transparent) }
/* Vidéo animée et audio : dans la marge de droite de la conversation, à la taille de l'espace libre */
body.app .work { position: relative; container-type: inline-size }
body.app .video-flottante { right: 12px; bottom: 12px }
body.app .video-flottante.anime .vf-rond, body.app .video-flottante.anime .vf-legende { width: clamp(150px, calc((100cqw - 860px) / 2 - 20px), 250px) }
body.app .video-flottante.anime .vf-legende small, body.app .video-flottante.anime .vf-legende span { display: none }
body.app .video-flottante.anime .vf-legende b { font-size: 12.5px; line-height: 1.25 }
body.app .video-flottante.anime.large .vf-rond, body.app .video-flottante.anime.large .vf-legende { width: min(340px, calc(100cqw - 32px)) }
body.app .video-flottante.anime.large .vf-legende small, body.app .video-flottante.anime.large .vf-legende span { display: block }
/* Procédure guidée et autres modes : formulaire resserré, pour garder la conversation lisible */
body.app .atelier-form { padding: 8px 12px; border-width: 1.5px; border-radius: 16px; margin-bottom: 6px }
body.app .atelier-tete { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 6px }
body.app .atelier-tete .mode-ico { width: 22px; height: 22px; font-size: 12px; border-radius: 6px }
body.app .atelier-aide { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
body.app .atelier-fermer { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--bordure-2); border-radius: 7px; background: var(--papier); color: var(--texte-2); cursor: pointer; font-size: 12px }
body.app .atelier-champs { gap: 6px 10px }
body.app .atelier-champs .field { font-size: 12px } body.app .atelier-champs .field small { display: none }
body.app .atelier-champs .input { padding: 5px 10px; font-size: 13.5px; border-radius: 10px }
body.app .atelier-champs .field.large { grid-column: span 1 }
/* Paramètres et Mes documents : une touche de couleur, très légère */
body.app .reglages .carte-reglage { border-left: 3px solid var(--kk, var(--t-bleu)) }
body.app .reglages .carte-reglage:nth-of-type(4n+2) { --kk: var(--t-violet) } body.app .reglages .carte-reglage:nth-of-type(4n+3) { --kk: var(--t-vert) } body.app .reglages .carte-reglage:nth-of-type(4n) { --kk: var(--t-orange) }
body.app .reglages .carte-reglage.danger { --kk: var(--t-rouge) }
body.app .onglets button.on { background: color-mix(in srgb, var(--t-violet) 16%, var(--papier)); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--t-violet) }
body.app .reglages .integ { border-top: 3px solid var(--k2, var(--t-bleu)) }
body.app .reglages .integ:nth-child(4n+2) { --k2: var(--t-violet) } body.app .reglages .integ:nth-child(4n+3) { --k2: var(--t-vert) } body.app .reglages .integ:nth-child(4n) { --k2: var(--t-orange) }
.lien-plus { margin: 2px 0 12px }
.ia-accord .row { margin-top: 6px }
.docs-dlg .dlg { max-width: 760px }
#vAide { margin: 10px 0 0 } #vOubli { margin: 6px 0 0 }
/* Sous « Mes dossiers » : le bouton qui verrouille dossiers et conversations ; la mention de chiffrement passe sous le nom */
.verrou-btn { display: flex; align-items: center; gap: 6px; width: calc(100% - 12px); margin: 0 6px 6px; padding: 5px 9px; border: 1px dashed var(--bordure-2); border-radius: 9px; background: none; font: 500 12px var(--titres); color: var(--texte-2); cursor: pointer; text-align: left }
.verrou-btn[hidden] { display: none }
.verrou-btn:hover { border-style: solid; border-color: var(--encre); color: var(--encre); background: var(--carte) }
.verrou-btn .ic { color: var(--t-violet) }
body.app .side-foot .chiffre-note { margin: 0; font-size: 11px; gap: 5px; color: var(--gris) }
body.app .atelier-champs { align-items: end }
body.app .atelier-champs select.input { padding-right: 30px; text-overflow: ellipsis }
body.app .atelier-champs input[type="date"].input { min-height: 0; height: 31px }

/* ================= Bêta du 3 au 13 décembre : compteur, blocages, avis obligatoire ================= */
.beta-etat { margin: 4px 0 0; text-align: center; font: 500 11.5px var(--mono); letter-spacing: .02em; color: var(--texte-2) }
.beta-etat[hidden] { display: none }
.beta-etat.stop { font: 500 13px var(--titres); letter-spacing: 0; color: var(--encre); background: color-mix(in srgb, var(--t-orange) 14%, var(--papier)); border: 1px solid var(--t-orange); border-radius: 12px; padding: 7px 12px; margin: 6px auto 2px; max-width: 760px }
.rappel-avis.oblige { background: color-mix(in srgb, var(--t-violet) 14%, var(--papier)); border: 1.5px solid var(--t-violet); padding: 8px 12px }
.rappel-avis.oblige span { font-weight: 600 }
.secoue { animation: secoue .5s } @keyframes secoue { 20%, 60% { transform: translateX(-5px) } 40%, 80% { transform: translateX(5px) } }
@media (prefers-reduced-motion: reduce) { .secoue { animation: none; outline: 2px solid var(--t-violet) } }
/* Dossier sensible : relais vers le cabinet partenaire, sans portrait */
.cecile .relais-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--t-rose) 16%, var(--papier)); color: var(--encre) }
.cecile .relais-ico .ic { width: 20px; height: 20px }

/* ================= Paramètres : version compacte (27/11/2026) ================= */
body.app dialog.reglages { width: min(720px, calc(100vw - 20px)) }
body.app dialog.reglages .dlg { padding: 18px 20px 16px }
body.app dialog.reglages .dlg > h3 { font-size: 19px; margin: 0 40px 2px 0 }
body.app dialog.reglages .dlg > p#aText { font-size: 12.5px; margin: 0 0 10px; color: var(--gris) }
body.app dialog.reglages .x { width: 30px; height: 30px; top: 14px; right: 14px; font-size: 16px }
body.app dialog.reglages .onglets { margin-bottom: 10px }
body.app dialog.reglages .onglets button { padding: 5px 10px; font-size: 12.5px }
body.app dialog.reglages .field { font-size: 12.5px; gap: 3px; margin-bottom: 8px }
body.app dialog.reglages .field small { font-size: 11.5px; line-height: 1.35 }
body.app dialog.reglages .input { padding: 6px 10px; min-height: 34px; font-size: 14px; border-radius: 10px }
body.app dialog.reglages .form-row { gap: 0 12px; align-items: end }
body.app dialog.reglages .btn.small { padding: 6px 13px; font-size: 13px; min-height: 0 }
body.app dialog.reglages .carte-reglage { padding: 10px 14px 11px; margin-bottom: 8px; border-radius: 12px }
body.app dialog.reglages .carte-reglage h4 { font-size: 14px; margin: 0 0 3px }
body.app dialog.reglages .carte-reglage p { font-size: 13px; line-height: 1.45; margin: 0 0 8px }
body.app dialog.reglages .carte-reglage > p:last-child { margin-bottom: 0 }
body.app dialog.reglages .muted { font-size: 13px }
body.app dialog.reglages .checkline { font-size: 13px; line-height: 1.4; margin: 3px 0; gap: 8px }
body.app dialog.reglages .ia-accord { padding-top: 8px } body.app dialog.reglages .ia-accord-t { font-size: 13px; margin: 0 0 4px }
body.app dialog.reglages .mode-duo { gap: 8px; margin: 2px 0 6px }
body.app dialog.reglages .mode-mini { padding: 9px 12px; gap: 4px; border-radius: 12px }
body.app dialog.reglages .mode-mini .mm-s { font-size: 12.5px; line-height: 1.4 }
body.app dialog.reglages .lien-plus { margin: 0 0 8px; font-size: 12.5px }
body.app dialog.reglages .verrou { padding: 8px 12px; font-size: 12.5px; margin-bottom: 10px; border-radius: 10px }
body.app dialog.reglages .integ-grille { gap: 8px }
body.app dialog.reglages .integ { padding: 9px 12px 10px }
body.app dialog.reglages .form-msg:empty { display: none }
body.app dialog.reglages .pw-force { margin: 0 0 8px }
/* Zero Data Retention : le terme ne se coupe plus, l'explication suit sur sa ligne */
.mm-zdr { align-items: center; padding: 6px 9px }
.mm-zdr > span { display: grid; gap: 1px; font-size: 12px; line-height: 1.35 }
.mm-zdr b { white-space: nowrap; font: 600 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--t-vert) 70%, var(--encre)) }
/* Mot de passe : étape validée */
.pw-etape { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--encre) !important }
.pw-etape .ic { color: var(--t-vert) }
#pwForm { margin-top: 2px }

/* ================= Retours du 27/11, soir : mode près de l'agent, verrouillage réduit, documents en menu, précisions ================= */
/* Le mode d'IA se lit à côté de l'agent, dans l'en-tête */
body.app .bar .who { margin-right: 0 }
body.app .bar .mode-fixe { margin: 0 auto 0 4px; font-size: 10.5px; padding: 3px 9px }
@media (max-width: 700px) { body.app .bar .mode-fixe { font-size: 9.5px; padding: 2px 7px; letter-spacing: 0 } }
/* Verrouiller : petit bouton dans la ligne « Mes dossiers » */
.h4-outils { display: inline-flex; align-items: center; gap: 5px }
body.app .side h4 .mini.verrou-btn { display: inline-flex; align-items: center; gap: 4px; width: auto; margin: 0; padding: 2px 8px; border: 1px solid var(--bordure-2); border-style: solid; border-radius: 100rem; background: none; font: 500 11.5px var(--titres); letter-spacing: 0; text-transform: none; color: var(--texte-2) }
body.app .side h4 .mini.verrou-btn[hidden] { display: none }
body.app .side h4 .mini.verrou-btn:hover { border-color: var(--encre); color: var(--encre); background: var(--carte) }
body.app .side h4 .mini.verrou-btn .ic { width: 12px; height: 12px; color: var(--t-violet) }
/* Mes documents : menu déroulant par rayon */
.docs-menu > summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 9px; font: 500 13.5px var(--titres); color: var(--encre); cursor: pointer }
.docs-menu > summary::-webkit-details-marker { display: none }
.docs-menu > summary:hover { background: var(--carte) }
.docs-menu > summary small { font: 500 11px var(--mono); color: var(--gris) }
.docs-menu > summary .plie { margin-left: auto; width: 20px; height: 20px; font-size: 13px }
.docs-menu[open] > summary .plie::before { content: "−" }
#docsMenuListe { display: grid; gap: 1px; padding: 2px 0 4px 18px }
body.app .side-links #docsMenuListe button { font-size: 12.5px; padding: 4px 9px; color: var(--texte-2) }
body.app .side-links #docsMenuListe button small { margin-left: auto; font: 500 11px var(--mono); color: var(--gris) }
body.app .side-links #docsMenuListe button .ic { width: 14px; height: 14px }
body.app .side-links #docsMenuListe button.ajout { color: var(--gris) }
#docsMenuListe .side-note { margin: 2px 0; font-size: 12px }
/* Passage surligné : bouton flottant et rappel au-dessus de la saisie */
.precision-btn { position: fixed; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 100rem; background: var(--encre); color: var(--papier); font: 600 12.5px var(--titres); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .22) }
.precision-btn[hidden] { display: none }
.precision-btn .ic { width: 14px; height: 14px }
.citation { display: flex; align-items: flex-start; gap: 8px; margin: 0 4px 6px; padding: 6px 10px; border-left: 3px solid var(--t-violet); border-radius: 8px; background: color-mix(in srgb, var(--t-violet) 9%, var(--papier)); font: 400 12.5px/1.4 var(--titres); color: var(--texte-2) }
.citation[hidden] { display: none } .citation span { flex: 1; min-width: 0 }
.citation .mini { flex: none; width: 20px; height: 20px; padding: 0; border: 1px solid var(--bordure-2); border-radius: 6px; background: var(--papier); cursor: pointer; line-height: 1 }
.cecile .relais-ico { display: none }

/* Lecteur audio et vidéo animée : centré dans la marge de droite de la conversation (largeur mesurée par le script) */
body.app .video-flottante.marge { right: 0; bottom: auto; top: 50%; width: var(--vf-marge); transform: translateY(-50%); justify-items: center }
body.app .video-flottante.marge.anime .vf-rond, body.app .video-flottante.marge.anime .vf-legende { width: var(--vf-l) }
body.app .video-flottante.marge .vf-etiquette { max-width: calc(var(--vf-marge) - 16px) }
body.app .video-flottante.marge .vf-legende { justify-items: center; text-align: center }
/* Dossiers : plus de curseur « main » ni de contour pendant un simple clic ; le contour n'apparaît qu'en glissant vraiment */
body.app .hist-item[draggable="true"], body.app .hist-item:active { cursor: pointer }
body.app details.projet > summary, .docs-menu > summary { cursor: pointer; user-select: none; -webkit-user-select: none }
body.app details.projet > summary:focus:not(:focus-visible), .docs-menu > summary:focus:not(:focus-visible), body.app .hist-item:focus:not(:focus-visible) { outline: 0 }
.plie { pointer-events: none }
/* Pendant un glisser : seule la cible survolée est marquée */
body.glisse details.projet, body.glisse #histConvs { outline: 0 }
body.glisse .cible { outline: 1.5px dashed var(--t-bleu) !important; outline-offset: 1px; border-radius: 10px }
body.app .video-flottante.sur-panneau { position: fixed; left: var(--vf-x); right: auto; bottom: 16px; top: auto; width: var(--vf-marge); transform: none; justify-items: center; z-index: 45 }
body.app .video-flottante.sur-panneau.anime .vf-rond, body.app .video-flottante.sur-panneau.anime .vf-legende { width: var(--vf-l) }
body.app .video-flottante.sur-panneau .vf-legende { justify-items: center; text-align: center }
/* Page « Votre code » ouverte depuis les e-mails */
.code-grand { margin: 18px auto; font: 700 44px/1.1 var(--mono); letter-spacing: .12em; color: var(--encre); user-select: all; -webkit-user-select: all; word-break: break-all }

/* ================= Téléphone : en-tête et zone de saisie qui ne débordent plus (clair et sombre) ================= */
@media (max-width: 700px) {
  body.app .bar { gap: 6px; padding-left: 10px; padding-right: 10px }
  body.app .bar #modePill { display: none } /* le changement d'IA reste dans Paramètres › IA et données */
  body.app .bar .who { flex: 0 1 auto; min-width: 34px; gap: 7px }
  body.app .bar .who .mascot { flex: none }
  body.app .bar .who b { font-size: 14px; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block }
  body.app .bar .mode-fixe { flex: none; margin: 0 auto 0 0 }
  body.app .bar .fr-pill { display: none }
  body.app .bar .reglages-btn, body.app .bar .avatar-btn, body.app .bar .menu-btn { flex: none }
  body.app .dock .row { flex-wrap: wrap; row-gap: 6px }
  body.app .dock .row .chip { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto }
  body.app .dock .row .actions { margin-left: auto; flex: none }
  body.app .rappel-avis { font-size: 12.5px }
  .beta-etat { font-size: 10.5px }
}
@media (max-width: 380px) { body.app .bar .mode-fixe { font-size: 9px; padding: 2px 6px } body.app .bar .who b { display: none } }
/* Lecteur : en bas à droite de la conversation, centré sur la largeur de la marge (et non à mi-hauteur) */
body.app .video-flottante.marge { top: auto; bottom: 14px; transform: none }
/* Votre avis : étoiles statiques, elles passent seulement au jaune au survol et à la sélection (aucun mouvement) */
.etoiles-choix button, .etoiles-choix button:hover, .etoiles-choix button.survol, .etoiles-choix button.on { transform: none; transition: color .12s }
/* Sources : un arrêt est signalé « lu en entier » ou « sommaire seulement » */
body.app #srcList small .lu { font-weight: 500; color: color-mix(in srgb, var(--t-vert) 70%, var(--encre)) }
body.app #srcList small .sommaire { font-weight: 500; color: color-mix(in srgb, var(--t-orange) 75%, var(--encre)) }

/* IA souveraine en apprentissage (phase de lancement) */
.appr { display: inline-block; font: 600 11px var(--mono, monospace); letter-spacing: .04em; text-transform: uppercase; color: #8a5a00; background: color-mix(in srgb, #e0ad00 16%, transparent); border: 1px solid color-mix(in srgb, #e0ad00 60%, transparent); border-radius: 100rem; padding: 2px 8px; vertical-align: 1px; white-space: nowrap; font-style: normal }
:root[data-theme="dark"] .appr { color: #f2c230 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appr { color: #f2c230 } }
small.appr { font-size: 10px; padding: 1px 6px; margin-left: 4px }
.etat.appr { text-transform: none; letter-spacing: 0 }
.appr-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5 }
.appr-note .appr { margin-right: 6px }
li.appr-li b { color: #a06a00 }
:root[data-theme="dark"] li.appr-li b { color: #f2c230 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) li.appr-li b { color: #f2c230 } }
.appr-txt { color: var(--texte-2) }
@media (max-width: 760px) { .mode-pill small.appr, .mode-fixe small.appr { display: none } }

/* ---------------------------------------------------------------- Allègement visuel de l'espace (28/11/2026)
   Teintes plus douces, traits plus fins, mêmes couleurs : le caractère reste, la page respire. */
body.app { --teinte: 5%; --teinte-forte: 10%; --trait: 1px }
body.app .a { border-color: color-mix(in srgb, var(--c, var(--bordure-2)) 45%, var(--bordure)) }
.rappel-avis { background: color-mix(in srgb, var(--t-jaune) 9%, var(--papier)) }
body.app .integ em { color: color-mix(in srgb, var(--t-vert) 78%, #000); background: color-mix(in srgb, var(--t-vert) 10%, var(--papier)); border: 1px solid var(--t-vert) }
:root[data-theme="dark"] body.app .integ em { color: var(--t-vert) }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .a-venir, :root:not([data-theme="light"]) body.app .integ em { color: var(--t-vert) } }

/* ---------------------------------------------------------------- Téléphone : espace plus léger et plus lisible */
@media (max-width: 640px) {
  /* Les modes de travail restent dans le menu : la zone de saisie ne garde que l'essentiel */
  body.app #ateliers { display: none }
  body.app .composer { padding: 8px 10px; border-radius: 18px }
  body.app #q { min-height: 44px; font-size: 16px }
  body.app #docNote, body.app .dictee { font-size: 12px; line-height: 1.4; margin: 2px 0 4px }
  .rappel-avis { font-size: 12px; padding: 5px 8px; margin: 0 0 4px }
  .rappel-avis .tool { padding: 2px 8px; font-size: 12px }
  body.app .composer .chip { font-size: 12.5px; padding: 4px 10px }
  body.app .a { padding: 12px 14px; border-radius: 16px }
  body.app .a-head { margin-bottom: 4px }
  body.app .bar { padding-top: 6px; padding-bottom: 6px }
  .appr-note { font-size: 13px }
}

/* ---------------------------------------------------------------- Logo Julian RH (design system du 28/11/2026)
   Version claire ou sombre selon le thème ; aucune police : tracés vectoriels. */
.brand img.logo-jrh { display: block; height: 22px; width: auto; max-width: none }
.brand img.logo-jrh.sombre { display: none }
:root[data-theme="dark"] .brand img.logo-jrh.clair { display: none }
:root[data-theme="dark"] .brand img.logo-jrh.sombre { display: block }
.side-tete .brand img.logo-jrh { height: 19px }
.adm-tete .brand img.logo-jrh, header .brand img.logo-jrh { flex: none }
@media (max-width: 480px) { .site-head .brand img.logo-jrh, .barre .brand img.logo-jrh { height: 19px } }
/* Équipe d'agents, mode sombre : au survol, numéro, rôle et devise restent clairs */
:root[data-theme="dark"] .roster a:hover, :root[data-theme="dark"] .roster a:focus-visible,
:root[data-theme="dark"] .roster a:hover :is(.n, .role, .devise), :root[data-theme="dark"] .roster a:focus-visible :is(.n, .role, .devise) { color: var(--encre) }
