/* Couleurs et tailles d'après la maquette du 08/11/2026 (docs/superpowers/maquettes/2026-11-08). */
:root {
  --accent: #1E6B47; --accent-fonce: #14502F; --accent-clair: #E3F0E8; --vert-2: #C6E0D0; --vert-3: #EEF5F0; --vert-bande: #A7D3B8;
  --fond: #F3F4F2; --encre: #17201B; --encre-2: #5B6660;
  --bord: #E2E5E1; --bord-fort: #D5DAD4; --bord-champ: #C9CFC8; --neutre: #ECEFEB; --barre: #B7BFB9; --trait: #F0F2EF;
  --estime: #B45309; --estime-fonce: #8A4A0A; --estime-texte: #6B3A08; --estime-clair: #FFF4E5; --estime-barre: #F2C998; --estime-piste: #F1E3CF;
  --titres: "Nunito Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--fond); color: var(--encre); font-family: "Nunito Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, p { margin: 0; }

/* En-tête : le même sur tous les écrans. Logo, nom, date des prix ; à droite « Nouvelle question » et le menu « … ». */
.entete { background: #FFF; border-bottom: 1px solid var(--bord); padding: 14px 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.entete-gauche { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { flex: 0 0 auto; }
.entete-nom { font-size: 24px; font-weight: 900; }
.entete-date { font-size: 15px; color: var(--encre-2); padding-left: 12px; border-left: 1px solid var(--bord-fort); }
.entete-date:empty { display: none; }
.entete-date.badge-anciens { color: #FFF; background: var(--estime); font-weight: 800; border-left: 0; padding: 4px 12px; border-radius: 999px; }
.entete-droite { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.entete-droite > * { white-space: nowrap; }
.badge { font-size: 15px; font-weight: 700; color: var(--accent-fonce); background: var(--accent-clair); padding: 9px 14px; border-radius: 999px; }
.badge-hors-ligne { color: var(--estime-fonce); background: var(--estime-clair); }
.bouton-secondaire { font-size: 16px; font-weight: 700; background: #FFF; border: 1px solid var(--bord-fort); border-radius: 12px; padding: 10px 16px; min-height: 44px; }
.bouton-entete { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--bord-fort); background: #FFF; font-size: 15px; font-weight: 700; color: var(--encre); display: inline-flex; align-items: center; gap: 8px; }
.bouton-entete:hover, .menu-reglages summary:hover { border-color: var(--encre-2); }

main { flex: 1 1 auto; width: 100%; max-width: 1280px; margin: 0 auto; min-width: 0; padding: 16px 28px 0; display: flex; flex-direction: column; gap: 18px; }
/* Maquette du 09/11/2026 : le fil à gauche (290 px), l'écran à droite. Sans fil (veille, écoute), l'écran prend tout. */
.disposition { flex: 1 1 auto; display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.ecrans { flex: 1 1 0; min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 18px; }
.ecran { flex: 1 1 auto; display: flex; flex-direction: column; gap: 24px; }
.titre-geant { font-family: var(--titres); font-size: clamp(40px, min(6vw, 9vh), 88px); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.titre-ecran { font-family: var(--titres); font-size: clamp(32px, 4vw, 60px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }

/* L'orbe de Sara : 3 disques et 3 barres blanches. orbe.js pose data-etat (eteinte, veille, attente, ecoute, reflexion,
   parole) ; chaque état a sa couleur et, sauf « moins d'animation », son mouvement. */
.orbe { --orbe: 250px; --orbe-coeur: var(--accent); position: relative; flex: 0 0 auto; width: var(--orbe); height: var(--orbe); transition: opacity .3s; }
/* Accueil (maquette du 08/11) : trois cercles de 200, 154 et 110 px ; plus petit si l'écran est bas. */
.orbe-grand { --orbe: clamp(140px, 26vh, 200px); }
.orbe-disque { position: absolute; inset: 0; margin: auto; border-radius: 50%; transition: background-color .3s; }
.orbe-disque-1 { width: 100%; height: 100%; background: var(--accent-clair); }
.orbe-disque-2 { width: 77%; height: 77%; background: var(--vert-2); }
.orbe-disque-3 { width: 55%; height: 55%; background: var(--orbe-coeur); }
/* Les ondes blanches : cinq barres, la plus haute au milieu. */
.orbe-barres { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: calc(var(--orbe) * .025); }
.orbe-barres i { width: calc(var(--orbe) * .024); height: calc(var(--orbe) * .05); border-radius: 999px; background: #FFF; }
.orbe-barres i:nth-child(2) { height: calc(var(--orbe) * .11); }
.orbe-barres i:nth-child(3) { height: calc(var(--orbe) * .17); }
.orbe-barres i:nth-child(4) { height: calc(var(--orbe) * .09); }
.orbe-barres i:nth-child(5) { height: calc(var(--orbe) * .035); }
/* Le logo de l'en-tête (40 px) : le dessin de la maquette, 2 disques. */
.orbe-logo { --orbe: 40px; }
.orbe-logo .orbe-disque-1 { background: var(--accent-clair); }
.orbe-logo .orbe-disque-2 { display: none; }
.orbe-logo .orbe-disque-3 { width: 65%; height: 65%; }
.orbe-logo .orbe-barres { gap: 1.5px; }
.orbe-logo .orbe-barres i, .orbe-logo .orbe-barres i:nth-child(3) { width: 3px; height: 8px; }
.orbe-logo .orbe-barres i:nth-child(2) { height: 14px; }
/* Halo (réflexion) et ondes (parole) : sous les disques, ils ne dépassent qu'autour. */
.orbe::before, .orbe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; }

/* veille : respiration. */
.orbe[data-etat="veille"] { animation: orbe-respire 4s ease-in-out infinite; }
/* ecoute : vert vif, un anneau par mot (orbe.js), les barres sautent. */
.orbe[data-etat="ecoute"] { --orbe-coeur: #1A8A55; }
.orbe-anneau { position: absolute; inset: 0; border-radius: 50%; border: 3px solid #1A8A55; pointer-events: none; animation: orbe-anneau 700ms ease-out forwards; }
.orbe-mot .orbe-barres i { animation: orbe-barre 350ms ease-out; }
.orbe-mot .orbe-barres i:nth-child(2) { animation-delay: 60ms; }
.orbe-mot .orbe-barres i:nth-child(3) { animation-delay: 120ms; }
.orbe-mot .orbe-barres i:nth-child(4) { animation-delay: 180ms; }
.orbe-mot .orbe-barres i:nth-child(5) { animation-delay: 240ms; }
/* reflexion : lueur ambre qui tourne. */
.orbe[data-etat="reflexion"]::before { inset: -7%; opacity: 1; filter: blur(4px); background: conic-gradient(from 0deg, transparent 0 55%, #F2B24B 80%, var(--estime) 92%, transparent); animation: orbe-tourne 1.2s linear infinite; }
/* parole : ondes bleues qui sortent. */
.orbe[data-etat="parole"]::before, .orbe[data-etat="parole"]::after { border: 3px solid #0F5E8C; opacity: .6; animation: orbe-onde 1.5s ease-out infinite; }
.orbe[data-etat="parole"]::after { animation-delay: .75s; }
/* attente : pâle, immobile. eteinte : gris, immobile. */
.orbe[data-etat="attente"] { opacity: .55; }
.orbe[data-etat="eteinte"] { --orbe-coeur: var(--bord-fort); }
.orbe[data-etat="eteinte"] .orbe-disque-1 { background: var(--neutre); }
.orbe[data-etat="eteinte"] .orbe-disque-2 { background: var(--bord); }

@keyframes orbe-respire { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes orbe-anneau { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@keyframes orbe-barre { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(1.6); } }
@keyframes orbe-tourne { to { transform: rotate(1turn); } }
@keyframes orbe-onde { from { transform: scale(1); opacity: .6; } to { transform: scale(1.45); opacity: 0; } }
@keyframes orbe-pouls { 0%, 100% { box-shadow: 0 0 0 0 rgba(21, 96, 63, .5); } 50% { box-shadow: 0 0 0 8px rgba(21, 96, 63, 0); } }

/* Moins d'animation : plus rien ne bouge, seules les couleurs disent l'état. */
@media (prefers-reduced-motion: reduce) {
  .orbe, .orbe *, .orbe::before, .orbe::after { animation: none !important; transition: none !important; }
  .orbe-anneau { display: none; }
}

/* Écrans 1 et 2 : accueil (veille) et écoute, d'après la maquette Accueil. L'orbe, le titre, les mots, les exemples. */
.ecran-veille, .ecran-ecoute { position: relative; align-items: center; justify-content: center; text-align: center; gap: 18px; padding-top: clamp(8px, 3vh, 26px); }
.veille-texte, .ecoute-texte { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 900px; }
.titre-accueil { font-size: clamp(34px, 3.6vw, 48px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; }
.veille-aide { font-size: 17px; line-height: 1.4; color: var(--encre-2); }
.exemples-bloc { width: 100%; max-width: 976px; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.exemples-titre { font-size: 14px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); }
.exemples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.exemple { text-align: left; background: #FFF; border: 1px solid var(--bord-fort); border-radius: 16px; padding: 16px; min-height: 68px; display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; color: var(--encre); }
.exemple:hover, .exemple:focus-visible { border-color: var(--accent); box-shadow: 0 4px 14px rgba(23, 32, 27, .10); }
.exemple-rond { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 18px; background: var(--accent-clair); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.bouton-lien { font-size: 20px; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 10px 4px; min-height: 44px; text-decoration: underline; }
.bouton-lien:hover { color: var(--accent-fonce); }

/* Écoute : les mots dits en grand, entre « … », et ce que Sara a compris en pastilles (touchez pour changer). */
.ecoute-mots { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ecoute-provisoire { color: #8A948E; }
/* La rangée « Sara a compris : » et ses pastilles : les mêmes sur l'écoute, la demande et la réponse. */
.rangee-compris { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ecran-ecoute .rangee-compris, .ecran-demande .rangee-compris { justify-content: center; }
.rangee-compris-titre { font-size: 15px; font-weight: 700; color: var(--encre-2); margin-right: 4px; }
.rangee-compris-aide { font-size: 14px; color: var(--encre-2); }
.ecoute-cases { display: contents; }
.case-ecoute { min-height: 48px; padding: 0 16px 0 10px; border-radius: 24px; border: 1px solid var(--bord-fort); background: #FFF; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; text-align: left; }
.case-ecoute[aria-expanded="true"] { border: 2px solid var(--accent); }
.case-ecoute.vide { border: 2px dashed var(--bord-champ); background: transparent; color: #737D77; }
.case-ecoute .vignette { width: 32px; height: 32px; border-radius: 16px; background: transparent; }
.case-ecoute .vignette svg { width: 26px; height: 26px; }
.case-ecoute.vide .vignette svg { filter: grayscale(1); opacity: .45; }
.case-ecoute-texte { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.case-ecoute-libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.case-ecoute strong { font-weight: 800; overflow-wrap: anywhere; }
.case-ecoute.vide strong { font-weight: 700; }
.case-ecoute .coche { flex: 0 0 auto; width: 20px; height: 20px; }
/* Les choix d'une case, par-dessus l'écran : un choix ne fait que changer la case. */
.ecoute-choix { position: absolute; inset: 24px 24px auto 24px; max-height: calc(100% - 48px); overflow: auto; z-index: 6; box-shadow: 0 12px 40px rgba(23, 32, 27, .18); border-radius: 16px; text-align: left; }
.ecoute-choix-fermer { align-self: flex-end; }
@media (max-width: 860px) {
  .exemples { grid-template-columns: minmax(0, 1fr); }
}

/* Écran 3 : Sara demande (maquettes Quantite et Inconnu). La rangée « Sara a compris », la carte de Sara (avatar et
   question en 36 px), ses grandes cases, et « Vous pouvez aussi le dire » dessous. */
.ecran-demande { width: 100%; max-width: 976px; align-self: center; gap: 20px; padding-top: 4px; }
.carte-sara { background: #FFF; border-radius: 24px; padding: 30px 32px; display: flex; flex-direction: column; gap: 22px; }
.carte-sara-tete { display: flex; align-items: center; gap: 14px; }
.orbe-avatar { --orbe: 52px; }
.orbe-avatar .orbe-disque-1, .orbe-avatar .orbe-disque-2 { display: none; }
.orbe-avatar .orbe-disque-3 { width: 100%; height: 100%; }
.orbe-avatar .orbe-barres { gap: 2px; }
.orbe-avatar .orbe-barres i, .orbe-avatar .orbe-barres i:nth-child(3) { width: 3px; height: 9px; }
.orbe-avatar .orbe-barres i:nth-child(2) { height: 18px; }
.carte-sara-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.question-sara { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.carte-sara-sous { font-size: 18px; color: var(--encre-2); }
.demande-blocs { display: flex; flex-direction: column; gap: 16px; }
.demande-blocs:empty { display: none; }
/* Dans la carte de Sara, les choix n'ont pas de deuxième cadre ni de deuxième question. */
.demande-blocs .bloc-choix { padding: 0; border: 0; border-radius: 0; }
.demande-blocs .choix-titre { display: none; }
.demande-dire { font-size: 16px; color: var(--encre-2); text-align: center; }

/* Écran 4 : vérification « C'est bien ça ? » (maquette Confirmation). Taper n'y sert pas : le tiroir est caché. */
body[data-ecran="verification"] .tiroir { display: none; }
.ecran-verification { position: relative; justify-content: center; gap: 40px; padding: 0 40px; }
.verification-tete { display: flex; flex-direction: column; gap: 8px; }
.verification-libelle { font-size: 22px; font-weight: 800; color: var(--accent); }
.verification-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.carte-verification { text-align: left; background: #FFF; border: 2px solid var(--bord); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.carte-verification:hover, .carte-verification[aria-expanded="true"] { border-color: var(--accent); }
.carte-verification .vignette { width: 96px; height: 96px; border-radius: 20px; }
.carte-verification .vignette svg { width: 66px; height: 66px; }
.carte-verification-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.carte-verification strong { font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; overflow-wrap: anywhere; }
.carte-verification-changer { font-size: 17px; font-weight: 700; color: var(--accent); }
.verification-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.bouton-oui { font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 14px; background: var(--accent); color: #FFF; border: 0; border-radius: 999px; padding: 20px 44px; min-height: 80px; }
.bouton-oui:hover { background: var(--accent-fonce); }
.bouton-non { font-size: 26px; font-weight: 800; background: #FFF; color: var(--encre); border: 2px solid var(--encre); border-radius: 999px; padding: 18px 36px; min-height: 76px; }
.verification-dites { font-size: 19px; color: var(--encre-2); margin-left: 12px; }
@media (max-width: 1023px) {
  .ecran-verification { padding: 0; gap: 28px; }
  .verification-cartes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .carte-verification { flex-direction: row; align-items: center; padding: 16px; }
  .carte-verification .vignette { width: 72px; height: 72px; }
  .carte-verification .vignette svg { width: 48px; height: 48px; }
}

/* La barre de Sara (maquette du 09/11/2026), collée en bas : le seul indicateur d'état. Le rond dit l'état (micro vert
   avec halo quand elle écoute, points ambre quand elle réfléchit, ondes quand elle parle), le titre (#sara-etat) et
   la ligne d'aide le disent en mots. « Parler à Sara » hors conversation, « Terminer » en conversation. */
.barre-sara { position: sticky; bottom: 0; z-index: 5; margin-top: auto; padding: 14px 0 18px; background: linear-gradient(to bottom, rgba(243, 244, 242, 0), var(--fond) 30%); }
.barre-sara-corps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: #FFF; border: 1.5px solid var(--bord-fort); border-radius: 40px; padding: 10px 12px 10px 20px; }
.barre-sara.ecoute .barre-sara-corps, .barre-sara[data-etat="parole"] .barre-sara-corps { border-color: var(--vert-bande); }
.barre-sara[data-etat="reflexion"] .barre-sara-corps { border-color: var(--estime-barre); }
.barre-sara-rond { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 28px; background: var(--barre); display: flex; align-items: center; justify-content: center; }
.barre-sara.ecoute .barre-sara-rond, .barre-sara[data-etat="parole"] .barre-sara-rond { background: var(--accent); }
.barre-sara.ecoute[data-etat="ecoute"] .barre-sara-rond { box-shadow: 0 0 0 7px var(--accent-clair), 0 0 0 14px #F1F8F3; }
.barre-sara[data-etat="reflexion"] .barre-sara-rond { background: var(--estime-clair); }
.rond-ondes, .rond-points { display: none; }
.barre-sara[data-etat="parole"] .rond-micro, .barre-sara[data-etat="reflexion"] .rond-micro { display: none; }
.barre-sara[data-etat="parole"] .rond-ondes { display: block; }
.barre-sara[data-etat="reflexion"] .rond-points { display: flex; gap: 5px; }
.rond-points i { width: 9px; height: 9px; border-radius: 5px; background: var(--estime); animation: points 1.2s ease-in-out infinite; }
.rond-points i:nth-child(2) { animation-delay: .2s; }
.rond-points i:nth-child(3) { animation-delay: .4s; }
@keyframes points { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.barre-sara-texte { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.barre-sara-titre { font-size: 19px; font-weight: 900; color: var(--encre-2); }
.barre-sara.ecoute .barre-sara-titre, .barre-sara[data-etat="parole"] .barre-sara-titre { color: var(--accent); }
.barre-sara[data-etat="reflexion"] .barre-sara-titre { color: var(--estime-fonce); }
.barre-sara-aide { font-size: 14px; color: var(--encre-2); }
.barre-sara-aide:empty { display: none; }
.barre-sara .bouton-lien { font-size: 15px; padding: 0 12px; }
.bouton-parler, .bouton-terminer { min-height: 48px; padding: 0 20px; border-radius: 24px; font-size: 16px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.bouton-parler { border: 0; background: var(--accent); color: #FFF; }
.bouton-parler:hover { background: var(--accent-fonce); }
.bouton-terminer { border: 1.5px solid var(--bord-champ); background: #FFF; color: var(--encre); }
.bouton-terminer:hover { border-color: var(--encre-2); }
.barre-sara[data-conversation="oui"] #parler, .barre-sara[data-conversation="non"] #terminer { display: none; }

/* Le fil de la conversation (version légère) : sa propre zone de défilement, de la hauteur entre l'en-tête et la barre
   de Sara ; la page ne défile pas pour lui. Seulement à côté de la réponse et des questions de Sara. */
.fil-colonne { flex: 0 0 290px; min-width: 0; position: sticky; top: 12px; max-height: calc(100vh - 200px); background: #FFF; border-radius: 22px; padding: 16px; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; }
body:not([data-ecran="reponse"]):not([data-ecran="demande"]) .fil-colonne { display: none; }
.fil-titre { font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--encre-2); }
.fil { flex: 1 1 auto; min-height: 0; overflow-y: auto; scroll-behavior: smooth; display: flex; flex-direction: column; gap: 10px; padding-right: 2px; }
.fil-bulle { max-width: 92%; padding: 10px 12px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.fil-personne { align-self: flex-end; background: var(--trait); border-radius: 16px 16px 4px 16px; }
.fil-sara { align-self: flex-start; background: var(--accent-clair); color: var(--accent-fonce); border-radius: 16px 16px 16px 4px; }
.fil-sara strong { font-weight: 800; }
.fil-sara.en-parole { background: var(--accent); color: #FFF; }
.fil-attente { align-self: flex-end; border: 1.5px dashed var(--vert-bande); border-radius: 14px; color: var(--accent); font-weight: 700; }
.fil-nouveau { align-self: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--accent); color: #FFF; font-size: 14px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .fil { scroll-behavior: auto; }
  .rond-points i { animation: none; opacity: 1; }
}
@media (max-width: 860px) {
  /* Téléphone : l'écran d'abord, le fil dessous, plus court. */
  .disposition { flex-direction: column; align-items: stretch; }
  .fil-colonne { order: 2; flex-basis: auto; position: static; max-height: 280px; }
}

/* Pied de page */
.pied { padding: 14px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; color: var(--encre-2); border-top: 1px solid var(--bord); }

#resultats { display: flex; flex-direction: column; gap: 16px; }
#resultats:empty { display: none; }
.carte { background: #FFF; border: 1px solid var(--bord); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }

.question label { font-size: 26px; font-weight: 800; }
.question p { font-size: 18px; color: var(--encre-2); }
.question-ligne { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.question textarea { flex: 999 1 420px; min-width: 0; font-size: 22px; border: 2px solid var(--bord-fort); border-radius: 12px; padding: 16px; resize: vertical; }
.bouton-principal { flex: 1 0 180px; font-size: 22px; font-weight: 800; background: var(--accent); color: #FFF; border: 0; border-radius: 12px; padding: 16px 24px; min-height: 64px; }
.bouton-micro { flex: 0 0 auto; font-size: 18px; font-weight: 800; background: #FFF; color: var(--accent); border: 2px solid var(--accent); border-radius: 12px; padding: 10px 18px; min-height: 64px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.bouton-micro svg { width: 28px; height: 28px; }
.bouton-micro.actif { background: var(--estime); border-color: var(--estime); color: #FFF; }
.question .micro-etat { font-size: 20px; font-weight: 700; color: var(--estime-fonce); }
/* Réglages : le bouton rond « … » ouvre l'écoute (#sara), le son (#voix) et « En ligne ». */
.menu-reglages { position: relative; }
.menu-reglages summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--bord-fort); background: #FFF; color: var(--encre); display: flex; align-items: center; justify-content: center; }
.menu-reglages summary::-webkit-details-marker { display: none; }
.menu-reglages-contenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 8px; background: #FFF; border: 1px solid var(--bord-fort); border-radius: 14px; padding: 12px; min-width: 220px; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.menu-reglages-contenu svg { flex: 0 0 auto; }
.menu-reglages-contenu .bouton-secondaire, .menu-reglages-contenu .bouton-micro { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 8px 14px; font-size: 15px; font-weight: 700; color: var(--encre); border: 1px solid var(--bord-fort); border-radius: 12px; background: #FFF; }
.menu-reglages-contenu .bouton-micro.actif { color: var(--accent-fonce); background: var(--accent-clair); border-color: var(--vert-2); }
.menu-reglages-contenu .bouton-micro svg { width: 18px; height: 18px; }
.menu-reglages-contenu .badge { text-align: center; }
.bouton-principal:disabled { opacity: .65; cursor: wait; }

/* Les pastilles « Sara a compris : » (rangee-compris) : 48 px, picto + valeur ; celle qui manque est ambre, pointillée. */
.carte-compris { min-height: 48px; padding: 0 16px 0 10px; border-radius: 24px; border: 1px solid var(--bord-fort); background: #FFF; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; text-align: left; }
.carte-compris:hover { border-color: var(--encre-2); }
.carte-compris[aria-expanded="true"] { border: 2px solid var(--accent); }
.carte-compris strong { font-weight: 800; overflow-wrap: anywhere; }
.carte-compris .vignette { width: 28px; height: 28px; border-radius: 0; background: transparent; }
.carte-compris .vignette svg { width: 28px; height: 28px; }
.carte-compris.manque { border: 2.5px dashed var(--estime); background: var(--estime-clair); color: var(--estime-texte); padding-right: 18px; }
.manque-rond { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 14px; background: var(--estime); color: #FFF; font-size: 17px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.vignette { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px; background: #F4EBDD; display: flex; align-items: center; justify-content: center; }
.vignette svg { width: 44px; height: 44px; }

/* Choix : de grandes cases (picto, valeur, mesure dessous). */
.choix-titre { font-size: 24px; font-weight: 800; }
.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.case-choix { min-height: 64px; border-radius: 18px; border: 1.5px solid var(--bord-fort); background: #FFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; font-size: 17px; font-weight: 800; color: var(--encre); }
.case-choix:hover { border-color: var(--accent); }
.case-choix.actif { border: 2px solid var(--accent); background: var(--accent-clair); }
.case-choix strong { font-weight: 800; overflow-wrap: anywhere; }
.case-choix-picto svg { width: 40px; height: 40px; display: block; }
.case-choix-sous { font-size: 14px; font-weight: 600; color: var(--encre-2); }
.choix-quantites { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.choix-quantites .case-choix { min-height: 130px; }
.choix-quantites strong { font-size: 26px; font-weight: 900; }
.choix-produits { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.choix-produits .case-choix { min-height: 124px; }
.choix-produits .case-choix-picto svg { width: 48px; height: 48px; }
.case-tous { border: 1.5px dashed #9AA59E; background: transparent; color: var(--accent); }
.choix-lieux { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.choix-lieux .case-choix { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 56px; }
.choix-lieux .case-choix-picto svg { width: 26px; height: 26px; }
.autre-quantite { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; max-width: 520px; }
.autre-quantite-champ { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.autre-quantite label { font-size: 15px; font-weight: 700; color: var(--encre-2); }
.autre-quantite input { height: 50px; border-radius: 12px; border: 1.5px solid var(--bord-champ); padding: 0 14px; font-size: 17px; width: 100%; }
.autre-quantite button { height: 50px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--accent); color: #FFF; font-size: 17px; font-weight: 800; }

/* Message (produit inconnu, pas de prix, panne) */
.message { font-size: 26px; font-weight: 800; }

/* La réponse (maquettes Main et Observe) : deux colonnes, 520 px et 400 px, qui s'empilent quand la place manque. */
.reponse-colonnes { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.reponse-gauche { flex: 999 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.reponse { background: #FFF; border: 2px solid transparent; border-radius: 24px; padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 2px rgba(23, 32, 27, .06); }
.reponse.observe { border-color: var(--accent); }
.reponse.perte { border-color: var(--estime); }
.reponse-libelle { font-size: 19px; font-weight: 700; color: var(--encre-2); }
.reponse-libelle-montant { margin-top: 12px; }
.reponse-lieu { display: flex; align-items: center; gap: 14px; min-width: 0; }
.reponse-lieu svg { flex: 0 0 auto; width: 44px; height: 44px; }
.reponse-marche { font-size: clamp(44px, 4.7vw, 60px); font-weight: 900; line-height: 1; letter-spacing: -1.5px; overflow-wrap: anywhere; }
.reponse-montant { font-size: clamp(38px, 4.1vw, 52px); font-weight: 900; line-height: 1.05; letter-spacing: -1.5px; white-space: nowrap; color: var(--accent); }
.reponse.observe .reponse-montant { font-size: clamp(44px, 4.7vw, 60px); }
.reponse.estime .reponse-montant, .reponse.perte .reponse-montant { color: var(--estime-fonce); }
.carte-transport-picto { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-clair); display: flex; align-items: center; justify-content: center; }
.carte-transport-picto svg { width: 32px; height: 32px; }
.carte-prudence { flex: 1 1 300px; background: var(--estime-clair); border: 1.5px solid var(--estime-barre); border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; color: var(--estime-texte); min-width: 0; }
.carte-prudence svg { flex: 0 0 auto; width: 28px; height: 28px; }
.carte-prudence div { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.carte-prudence .reponse-presque { font-size: 17px; font-weight: 800; color: var(--estime-texte); margin-top: 0; }
/* « et à Bouaké ? » (maquette Suite) : en bleu, en tête de la liste des marchés ; Bouaké en bleu dans la liste et sur la carte. */
.carte-pourquoi { background: #EAF1FB; border: 1.5px solid #9DB9E3; border-radius: 14px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #1D3D6E; }
.carte-pourquoi > span svg { width: 22px; height: 22px; flex: 0 0 auto; }
.carte-pourquoi-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.carte-pourquoi strong { font-weight: 800; }
.carte-pourquoi-phrase { font-size: 14px; }
/* La carte principale (maquette du 09/11/2026) : en tête, où vendre à gauche et ce qu'il reste à droite ; dessous, le
   détail du calcul ligne par ligne. */
.reponse-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.reponse-ou { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reponse-combien { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; text-align: right; }
.reponse-combien .reponse-libelle { font-size: 16px; }
.reponse-entre { font-size: 13px; color: var(--encre-2); }
.reponse-releve { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-fonce); }
.reponse-releve svg { width: 14px; height: 14px; }
.detail { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--neutre); }
.detail-ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--trait); }
.detail-gauche { display: flex; align-items: center; gap: 10px; min-width: 0; }
.detail-icone svg { width: 26px; height: 26px; flex: 0 0 auto; }
.detail-textes { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.detail-titre { font-size: 16px; font-weight: 700; }
.detail-sous { font-size: 13px; color: var(--encre-2); }
.detail-droite { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.detail-valeur { font-size: 18px; font-weight: 800; white-space: nowrap; }
.detail-moins .detail-valeur { color: var(--estime-texte); }
.detail-aucun .detail-valeur { color: var(--encre-2); }
.detail-total { border-bottom: 0; padding-bottom: 0; }
.detail-total .detail-titre { font-size: 17px; font-weight: 900; }
.detail-total .detail-valeur { font-size: 22px; font-weight: 900; color: var(--accent); }
.reponse.estime .detail-total .detail-valeur, .reponse.perte .detail-total .detail-valeur { color: var(--estime-fonce); }
/* « Comment transporter … ? » : deux cases, la conseillée bordée de vert. */
.carte-transport { background: #FFF; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.carte-transport-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.carte-transport-tete h2 { font-size: 18px; font-weight: 900; }
.facons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facon { border: 1.5px solid var(--bord-fort); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #3D4842; min-width: 0; }
.facon.conseil { border: 2px solid var(--accent); background: #F6FBF8; }
.facon-badge { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--neutre); color: #3D4842; }
.facon-badge.conseil { background: var(--accent); color: #FFF; }
.facon-nom { font-size: 17px; font-weight: 900; color: var(--encre); }
.facon strong { white-space: nowrap; }
.reponse.estime ~ .carte-transport .facon-reste, .facon-reste { color: var(--estime-fonce); }
.facon-note { font-size: 13px; color: var(--encre-2); }
.carte-transport-conseil { font-size: 15px; font-weight: 700; color: var(--accent-fonce); }
@media (max-width: 720px) {
  .facons { grid-template-columns: minmax(0, 1fr); }
  .reponse-combien { align-items: flex-start; text-align: left; }
}
/* « Le calcul pour … », sous la carte principale : le même calcul en phrases. */
.carte-calcul { background: #FFF; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.carte-calcul h2 { font-size: 18px; font-weight: 900; }
.calcul-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.etape { font-size: 17px; line-height: 1.45; padding-left: 14px; border-left: 3px solid var(--bord); }
.etape strong { font-weight: 800; white-space: nowrap; }
.etape .etiquette { vertical-align: middle; }
.etape-total { font-size: 19px; border-left-color: var(--accent); padding-top: 4px; padding-bottom: 4px; }
.etape-total strong { font-size: 22px; font-weight: 900; color: var(--accent-fonce); }
/* Un marché de la liste est un bouton : il montre son calcul dans « Le calcul ». */
.marches-liste .marche-nom { background: none; border: 0; padding: 0; min-height: 32px; font: inherit; color: inherit; text-align: left; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.marches-liste .marche-nom[aria-pressed="true"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Les autres avis du calcul, en lignes discrètes. */
.avis { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.reponse-presque, .avis-note { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--estime-fonce); }
.gestes { display: flex; gap: 10px; flex-wrap: wrap; }
.bouton-geste { min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--bord-fort); background: #FFF; font-size: 16px; font-weight: 800; color: var(--encre); display: inline-flex; align-items: center; gap: 8px; }
.bouton-geste svg { width: 20px; height: 20px; }
.bouton-geste-lien { border-color: transparent; background: transparent; color: var(--accent); }
.bouton-geste-lien:hover { color: var(--accent-fonce); text-decoration: underline; }
.pastille-choix { font-size: 15px; font-weight: 800; padding: 7px 12px; border-radius: 999px; background: var(--neutre); color: #3F4A44; white-space: nowrap; }
.etiquette { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; display: inline-block; }
.etiquette-observe { color: var(--accent); background: var(--accent-clair); }
.etiquette-estime { color: var(--estime-fonce); background: var(--estime-clair); }
.etiquette-simule { color: #3F4A44; background: var(--neutre); }

/* Consigne de saison */
.saison { background: var(--estime-clair); border-radius: 18px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; }
.saison-rond { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 999px; background: var(--estime); display: flex; align-items: center; justify-content: center; }
.saison-rond svg { width: 28px; height: 28px; }
.saison div:last-child { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.saison strong { font-size: 18px; font-weight: 900; color: var(--estime-fonce); }
.saison span { font-size: 15px; color: var(--estime-texte); }

/* Colonne de droite : la mini-carte, sa légende, et une ligne par marché. */
.carte-marches { flex: 1 1 340px; min-width: 0; background: #FFF; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.carte-marches h2 { font-size: 17px; font-weight: 900; }
.marches-tete { display: flex; gap: 16px; align-items: flex-start; }
.carte-ci { margin: 0; flex: 0 0 120px; width: 120px; }
.carte-ci svg { width: 100%; height: auto; display: block; font-family: inherit; }
.marches-legende { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding-top: 6px; font-size: 13px; color: var(--encre-2); }
.marches-legende.en-ligne { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding-top: 0; }
.marches-legende-entree, .marches-legende-signe { display: inline-flex; align-items: center; gap: 6px; }
.marches-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.marches-liste li { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) 100px; gap: 8px; align-items: center; padding: 5px 6px; border-top: 1px solid var(--trait); font-size: 14px; font-weight: 600; }
.marche-nom { overflow-wrap: anywhere; }
.marche-barre { position: relative; height: 14px; }
.marche-barre i { position: absolute; display: block; }
.marche-piste { left: 0; right: 0; top: 6px; height: 2px; background: var(--neutre); }
.marche-bande { top: 4px; height: 6px; border-radius: 3px; background: var(--estime-barre); }
.marche-point { top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 6px; background: var(--accent); box-sizing: border-box; }
.marches-liste li.estime .marche-point { background: #FFF; border: 2px dashed var(--estime); }
.marche-montant { text-align: right; white-space: nowrap; }
.marches-liste li.premier { font-weight: 900; }
.marches-liste li.premier .marche-montant { color: var(--accent); }
.marches-liste li.premier .marche-bande { background: var(--vert-bande); }
.marches-liste li.premier .marche-point { background: var(--accent); border: 0; }
/* Le marché demandé (« et à Bouaké ? ») : fond bleu, comme son encadré et son rond sur la carte. */
.marches-liste li.demande { background: #EAF1FB; border-radius: 8px; }
.lecteur-seul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Écran 6 : « Expliquer le calcul » (maquette Preuve, pour le présentateur). */
.ecran-preuve { gap: 20px; }
.preuve { display: flex; flex-direction: column; gap: 20px; }
.preuve-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; }
.preuve-tete-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.preuve-sur { font-size: 16px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.preuve-titre { font-size: clamp(26px, 2.7vw, 34px); font-weight: 900; line-height: 1.1; overflow-wrap: anywhere; }
.preuve-titre:focus { outline: none; }
.bouton-retour { min-height: 48px; padding: 0 20px; border-radius: 24px; border: 1.5px solid var(--bord-champ); background: #FFF; font-size: 16px; font-weight: 800; color: var(--encre); }
.bouton-retour:hover { border-color: var(--encre-2); }
.preuve-corps { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.preuve-calcul { flex: 999 1 600px; min-width: 0; background: #FFF; border-radius: 20px; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.preuve-cote { flex: 1 1 330px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.preuve-carte { background: #FFF; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.preuve-carte h2 { font-size: 18px; font-weight: 900; }
.preuve-formule { font-size: 17px; line-height: 1.4; }
.source-ligne { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: 15px; }
.pastille-source { flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.pastille-source.estime { background: var(--estime-clair); color: var(--estime-fonce); }
.pastille-source.simule { background: var(--neutre); color: #3D4842; }
.pastille-source.observe { background: var(--accent-clair); color: var(--accent-fonce); }
.saison-barres { display: flex; align-items: flex-end; gap: 6px; height: 106px; padding-top: 6px; }
.saison-barres > div { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.saison-barres i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--vert-2); }
.saison-barres span { font-size: 12px; font-weight: 600; color: var(--encre-2); }
.saison-barres .maintenant i { background: var(--accent); }
.saison-barres .maintenant span { font-weight: 900; color: var(--accent); }
.tableau { overflow-x: auto; background:
  linear-gradient(to right, #FFF 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
  linear-gradient(to left, #FFF 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
  linear-gradient(to right, rgba(28, 36, 33, .22), rgba(28, 36, 33, 0)) left center / 14px 100% no-repeat scroll,
  linear-gradient(to left, rgba(28, 36, 33, .22), rgba(28, 36, 33, 0)) right center / 14px 100% no-repeat scroll;
  background-attachment: local, local, scroll, scroll; }
.icone-facon { display: inline-flex; width: 28px; height: 28px; vertical-align: middle; }
.icone-facon svg { width: 100%; height: 100%; }
.etiquette-pastille { width: 14px; height: 14px; padding: 0; border-radius: 50%; vertical-align: middle; overflow: hidden; }
.etiquette-pastille.etiquette-observe { background: var(--accent); }
/* La forme aussi dit la qualité, pas seulement la couleur : point plein = observé, anneau = estimé. */
.etiquette-pastille.etiquette-estime { background: transparent; border: 3px solid var(--estime-fonce); box-sizing: border-box; }
.pastille-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th { padding: 0 10px 8px; border-bottom: 2px solid var(--encre); color: var(--encre-2); font-size: 13px; font-weight: 800; text-align: right; vertical-align: bottom; }
td { padding: 8px 10px; border-bottom: 1px solid var(--neutre); text-align: right; white-space: nowrap; }
th:first-child, td:first-child, .gauche { text-align: left; }
td:first-child, td.fort { font-weight: 700; }
td.discret { color: var(--encre-2); }
tdtr.premier td:first-child, tr.premier td.fort { font-weight: 900; color: var(--accent); }
.marche-cellule, .transport-cellule { display: inline-flex; align-items: center; gap: 8px; }
.fige { display: block; font-size: 12px; color: var(--encre-2); margin-top: 3px; }
.note { font-size: 14px; color: var(--encre-2); line-height: 1.45; }

/* Téléphone (390 × 844) : colonnes empilées, grilles à 2 colonnes, rien ne dépasse en largeur, et « Parler à Sara »
   reste collé en bas de l'écran (barre-sara), à portée de pouce. */
@media (max-width: 720px) {
  .entete { padding: 10px 16px; gap: 8px; }
  .entete-nom { font-size: 20px; }
  .entete-date { font-size: 13px; padding-left: 8px; }
  .bouton-entete { padding: 0 12px; font-size: 14px; }
  .pied { padding: 12px 16px; font-size: 13px; }
  main { padding: 12px 16px 0; gap: 14px; }
  #resultats { gap: 14px; }
  .carte, .reponse { padding: 18px; }
  .question label { font-size: 22px; }
  .question textarea { flex-basis: 100%; font-size: 20px; }
  .barre-sara { padding: 10px 0 12px; }
  .barre-sara-corps { border-radius: 24px; padding: 10px 12px; gap: 8px 12px; }
  .barre-sara-rond { width: 44px; height: 44px; }
  .barre-sara-texte { flex-basis: calc(100% - 60px); }
  .barre-sara-titre { font-size: 17px; }
  .bouton-parler, .bouton-terminer { flex: 1 1 auto; justify-content: center; }
  .reponse-lieu { gap: 10px; }
  .reponse-lieu svg { width: 34px; height: 34px; }
  .reponse-marche { font-size: clamp(32px, 9vw, 44px); letter-spacing: -.5px; }
  .reponse-montant, .reponse.observe .reponse-montant { font-size: clamp(30px, 8.6vw, 40px); letter-spacing: -.5px; }
  .carte-marches { padding: 16px; }
  .marches-tete { gap: 12px; }
  .carte-ci { flex-basis: 120px; width: 120px; }
  /* Une ligne de marché : nom et montant, la barre dessous sur toute la largeur. */
  .marches-liste li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .marche-barre { grid-column: 1 / -1; grid-row: 2; }
  .carte-sara { padding: 20px 18px; gap: 18px; }
  .choix, .choix-quantites, .choix-produits, .choix-lieux { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .choix-quantites .case-choix, .choix-produits .case-choix { min-height: 104px; }
  .choix-quantites strong { font-size: 22px; }
  .ecoute-choix { inset: 8px 0 auto 0; max-height: calc(100% - 16px); }
  .preuve-calcul, .preuve-carte { padding: 16px; }
  table { font-size: 15px; }
}

/* Le tiroir texte, sous l'écran. */
.tiroir { width: 100%; max-width: 1180px; align-self: center; }
/* Un seul micro sur tous les écrans : « Parler à Sara », dans le pied. Le bouton du tiroir reste dans la page pour voix.js. */
.tiroir #micro { display: none; }
.tiroir-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1023px) {
  .entete, .pied { padding-left: 20px; padding-right: 20px; }
  main { padding: 18px 20px 0; }
}
@media (max-width: 860px) {
  .exemples { grid-template-columns: minmax(0, 1fr); }
}

.verification-dit { font-size: clamp(20px, 2vw, 26px); font-weight: 600; color: var(--encre-2); overflow-wrap: anywhere; }
.verification-dit:empty { display: none; }
