/* Dojo de l'argumentation : arène de nuit, verre profond, halos par adversaire.
   Règles maison : Satoshi seule, pas de capitales espacées, pas d'emoji,
   pas de scintillement, fonds opaques avec profondeur. */

@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --encre: #07080b;
  --encre-2: #0e1014;
  --surface: #12151b;
  --surface-2: #181c24;
  --filet: rgba(255, 255, 255, 0.08);
  --filet-fort: rgba(255, 255, 255, 0.14);
  --texte: #eef0f3;
  --texte-2: #a9afba;
  --ambre: #f2b33d;
  --solidite: #3cc7b0;
  --persuasion: #ff7a59;
  --accent: #8a93a6;
  --accent-2: #3b4252;
  --ressort: cubic-bezier(0.32, 0.72, 0, 1);
  --doux: cubic-bezier(0.22, 1, 0.36, 1);
  --rayon: 2rem;
}

body[data-adversaire="socrate"] { --accent: #4f8fe0; --accent-2: #1d4e89; --accent-3: #0f2d52; }
body[data-adversaire="schopenhauer"] { --accent: #e0566a; --accent-2: #7a1f2b; --accent-3: #3d0f16; }
body[data-adversaire="esquiveur"] { --accent: #5fc2ad; --accent-2: #2f5d55; --accent-3: #16302c; }

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Satoshi", system-ui, sans-serif;
  background: var(--encre);
  color: var(--texte);
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
[hidden] { display: none !important; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.discret { color: var(--texte-2); }

/* ---------- Fond : halos opaques qui suivent l'adversaire ---------- */
.fond { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, var(--encre-2), var(--encre) 70%); pointer-events: none; }
.orbe { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; transition: background 1.6s var(--doux), transform 2s var(--doux); will-change: transform; }
.orbe-a { width: 60vmax; height: 60vmax; top: -25vmax; left: -15vmax; background: radial-gradient(circle, var(--accent-2), transparent 65%); animation: derive 28s var(--doux) infinite alternate; }
.orbe-b { width: 50vmax; height: 50vmax; bottom: -25vmax; right: -15vmax; background: radial-gradient(circle, var(--accent-3, #1a1d26), transparent 65%); animation: derive 34s var(--doux) infinite alternate-reverse; }
.orbe-c { width: 30vmax; height: 30vmax; top: 40%; left: 55%; background: radial-gradient(circle, rgba(242, 179, 61, 0.10), transparent 70%); animation: derive 40s var(--doux) infinite alternate; }
@keyframes derive { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

main { position: relative; z-index: 2; width: min(1120px, 100%); margin: 0 auto; padding: 7rem 1.25rem 4rem; }

/* ---------- Îlot de navigation ---------- */
.ilot { position: fixed; z-index: 20; top: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.25rem; padding: 0.35rem; border-radius: 999px; background: rgba(14, 16, 20, 0.6); border: 1px solid var(--filet); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.ilot button { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--texte-2); transition: background 0.5s var(--ressort), color 0.5s var(--ressort); }
.ilot button:hover { color: var(--texte); background: rgba(255, 255, 255, 0.06); }
.ilot-marque { color: var(--texte) !important; font-weight: 700 !important; }
.ilot-marque .ico { color: var(--accent); }
body.en-partie .ilot { opacity: 0; pointer-events: none; transform: translate(-50%, -1rem); transition: all 0.6s var(--ressort); }

/* ---------- Apparitions ---------- */
.revele { opacity: 0; transform: translateY(2rem); filter: blur(8px); transition: opacity 0.9s var(--doux), transform 0.9s var(--doux), filter 0.9s var(--doux); }
.revele.visible { opacity: 1; transform: none; filter: none; }

/* ---------- Accueil ---------- */
.intro { padding: 3rem 0 4rem; max-width: 52rem; }
.intro.petite { padding-bottom: 2rem; }
.sourcil { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.85rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; color: var(--texte-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--filet); margin-bottom: 1.5rem; }
.sourcil::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700; }
.degrade { background: linear-gradient(100deg, var(--texte) 10%, var(--accent) 60%, var(--ambre)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chapo { margin-top: 1.75rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--texte-2); max-width: 40rem; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.02em; line-height: 1.15; }

.etape { display: flex; align-items: center; gap: 1rem; margin: 3.5rem 0 1.5rem; }
.numero { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--filet-fort); font-weight: 700; font-size: 0.9rem; color: var(--texte-2); }

/* Double bord : coque + cœur */
.coque { padding: 0.4rem; border-radius: var(--rayon); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--filet); }
.coeur { border-radius: calc(var(--rayon) - 0.4rem); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }

/* Cartes adversaires */
.cartes-adv { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; }
.carte-adv { text-align: left; position: relative; padding: 0.4rem; border-radius: var(--rayon); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--filet); transition: transform 0.7s var(--ressort), border-color 0.7s var(--ressort), opacity 0.9s var(--doux), filter 0.9s var(--doux); }
.carte-adv:hover { transform: translateY(-4px); }
.carte-adv:active { transform: scale(0.985); }
.carte-adv .coeur { position: relative; overflow: hidden; min-height: 22rem; padding: 1.75rem; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(120% 90% at 80% 0%, var(--c2), var(--c3) 55%, #0b0d11 100%); }
.carte-adv .embleme { position: absolute; top: 1.5rem; right: 1.5rem; width: 46%; max-width: 11rem; color: rgba(255, 255, 255, 0.85); opacity: 0.9; transition: transform 1.2s var(--ressort); }
.carte-adv:hover .embleme { transform: rotate(-6deg) scale(1.05); }
.carte-adv h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.75rem; }
.carte-adv p { color: rgba(238, 240, 243, 0.82); font-size: 0.98rem; }
.carte-adv .role { margin-top: 1rem; font-size: 0.85rem; color: rgba(238, 240, 243, 0.6); }
.carte-adv .coche { position: absolute; top: 1.4rem; left: 1.4rem; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; transition: all 0.6s var(--ressort); }
.carte-adv .coche .ico { opacity: 0; transform: scale(0.5); transition: all 0.6s var(--ressort); }
.carte-adv.choisi { border-color: rgba(255, 255, 255, 0.35); }
.carte-adv.choisi .coche { background: #fff; color: #07080b; border-color: #fff; }
.carte-adv.choisi .coche .ico { opacity: 1; transform: none; }
.cartes-adv.a-choisi .carte-adv:not(.choisi) { opacity: 0.55; }

/* Réglages */
.reglages { padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 2rem; }
.champ > label, .champ > div > label { display: block; font-weight: 700; margin-bottom: 0.75rem; }
.champ .discret { font-weight: 400; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pilules { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pilules button, .sujets button { padding: 0.65rem 1.1rem; border-radius: 999px; border: 1px solid var(--filet-fort); color: var(--texte-2); font-size: 0.95rem; transition: all 0.5s var(--ressort); text-align: left; }
.pilules button:hover, .sujets button:hover { color: var(--texte); border-color: rgba(255, 255, 255, 0.3); }
.pilules button.actif, .sujets button.actif { background: var(--texte); color: var(--encre); border-color: var(--texte); }
.pilules button small { display: block; font-size: 0.8rem; opacity: 0.75; max-width: 22rem; }
.sujets { display: flex; flex-wrap: wrap; gap: 0.5rem; max-height: 13rem; overflow-y: auto; padding-right: 0.25rem; }
.ligne-sujet { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
input[type="text"], textarea { width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--filet-fort); border-radius: 1rem; padding: 0.9rem 1.1rem; outline: none; transition: border-color 0.4s var(--ressort); resize: vertical; }
input[type="text"]:focus, textarea:focus { border-color: var(--accent); }
.bouton-fantome { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; padding: 0 1.1rem; border-radius: 1rem; border: 1px solid var(--filet-fort); color: var(--texte-2); transition: all 0.5s var(--ressort); }
.bouton-fantome:hover { color: var(--texte); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.options { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; }
.bascule { display: inline-flex !important; align-items: center; gap: 0.75rem; font-weight: 500 !important; margin: 0 !important; cursor: pointer; color: var(--texte-2); }
.bascule input { display: none; }
.bascule span { width: 2.6rem; height: 1.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); position: relative; transition: background 0.5s var(--ressort); }
.bascule span::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; transition: transform 0.5s var(--ressort); }
.bascule input:checked + span { background: var(--accent); }
.bascule input:checked + span::after { transform: translateX(1.1rem); }

/* Bouton principal : bouton dans le bouton */
.cta { justify-self: start; display: inline-flex; align-items: center; gap: 1rem; padding: 0.5rem 0.5rem 0.5rem 1.6rem; border-radius: 999px; background: var(--texte); color: var(--encre); font-weight: 700; font-size: 1.05rem; transition: transform 0.6s var(--ressort), box-shadow 0.6s var(--ressort); box-shadow: 0 10px 40px -10px var(--accent); }
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(0.98); }
.cta-ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--encre); color: var(--texte); display: grid; place-items: center; transition: transform 0.6s var(--ressort); }
.cta:hover .cta-ico { transform: translateX(3px) scale(1.05); }
.cta[disabled] { opacity: 0.5; pointer-events: none; }
.erreur { color: var(--persuasion); }
.note-voix { color: var(--texte-2); font-size: 0.85rem; }

/* ---------- Arène ---------- */
#vue-arene { max-width: 46rem; margin: -4.5rem auto 0; min-height: calc(100dvh - 3rem); display: flex; flex-direction: column; }
.tableau-bord { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.5rem 0.5rem 0.5rem 1rem; border-radius: 999px; background: rgba(14, 16, 20, 0.6); border: 1px solid var(--filet); }
.tb-adv { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.tb-adv div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tb-adv span.discret { font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-pastille { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); flex: none; }
.tb-chrono { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.15rem; padding: 0.55rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.tb-chrono.urgent { color: var(--ambre); }
.tb-chrono.pause { opacity: 0.5; }

.parole { margin: 1rem 0.5rem 0; }
.parole-barre { height: 4px; border-radius: 4px; background: var(--accent-2); overflow: hidden; }
.parole-barre span { display: block; height: 100%; width: 50%; background: var(--texte); border-radius: 4px; transition: width 0.8s var(--ressort); }
.parole-legende { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--texte-2); margin-top: 0.4rem; }
.parole-legende b { color: var(--texte); font-weight: 500; }
.objectif { margin: 1rem 0.5rem 0; font-size: 0.85rem; }
.epingle { margin: 1rem 0 0; padding: 0.8rem 1.1rem; border-radius: 1.1rem; border: 1px dashed rgba(255, 255, 255, 0.2); font-size: 0.92rem; }
.epingle span { font-size: 0.75rem; color: var(--accent); font-weight: 700; }

.scene { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 2rem 0 1rem; transition: filter 0.8s var(--doux), opacity 0.8s var(--doux); }
body.fige .scene, body.fige .parole, body.fige .tableau-bord { filter: grayscale(1) brightness(0.7); }

/* L'orateur : un halo qui respire quand l'adversaire parle (lent, jamais de scintillement) */
.orateur { position: relative; width: 9.5rem; height: 9.5rem; display: grid; place-items: center; margin-bottom: 1.75rem; }
.orateur-halo { position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0%, transparent 62%); opacity: 0.25; transition: opacity 0.8s var(--doux), transform 0.8s var(--doux); }
.orateur-anneau { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: radial-gradient(circle at 30% 25%, var(--accent-2), var(--accent-3, #111) 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 80px -30px var(--accent); }
.orateur-embleme { position: relative; width: 52%; color: rgba(255, 255, 255, 0.92); }
body.il-parle .orateur-halo { opacity: 0.55; animation: respire 2.4s var(--doux) infinite alternate; }
body.reflechit .orateur-anneau { animation: tourne 3s linear infinite; border-top-color: rgba(255, 255, 255, 0.7); }
@keyframes respire { from { transform: scale(0.94); } to { transform: scale(1.08); } }
@keyframes tourne { to { transform: rotate(360deg); } }

.replique-courante { font-size: clamp(1.25rem, 3.2vw, 1.7rem); line-height: 1.35; letter-spacing: -0.01em; text-align: center; font-weight: 500; max-width: 38rem; min-height: 3em; transition: opacity 0.5s var(--doux), transform 0.5s var(--doux); }
.replique-courante.entre { opacity: 0; transform: translateY(0.75rem); }

.fil { width: 100%; margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.bulle { max-width: 85%; padding: 0.8rem 1.1rem; border-radius: 1.25rem; font-size: 0.95rem; line-height: 1.45; animation: entre 0.7s var(--doux) both; }
.bulle.adv { align-self: flex-start; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--filet); color: var(--texte-2); border-bottom-left-radius: 0.4rem; }
.bulle.moi { align-self: flex-end; background: var(--surface-2); border: 1px solid var(--filet-fort); border-bottom-right-radius: 0.4rem; }
.bulle.suspens { opacity: 0.45; border-style: dashed; }
.bulle.rejouee { text-decoration: line-through; opacity: 0.4; }
@keyframes entre { from { opacity: 0; transform: translateY(0.75rem); } }

.commandes { position: sticky; bottom: 0; padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--encre) 30%); }
.transcription { min-height: 1.5em; text-align: center; color: var(--texte); font-size: 1.05rem; margin-bottom: 0.75rem; padding: 0 1rem; }
.commandes-ligne { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 6vw, 3rem); }
.bouton-rond { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; color: var(--texte-2); font-size: 0.75rem; transition: color 0.4s var(--ressort), opacity 0.4s; width: 5.5rem; }
.bouton-rond .ico { width: 2.9rem; height: 2.9rem; padding: 0.8rem; border-radius: 50%; border: 1px solid var(--filet-fort); background: rgba(255, 255, 255, 0.03); transition: all 0.5s var(--ressort); }
.bouton-rond:hover { color: var(--texte); }
.bouton-rond:hover .ico { border-color: rgba(255, 255, 255, 0.3); }
.bouton-rond[disabled] { opacity: 0.3; pointer-events: none; }

.micro { position: relative; width: 5.5rem; height: 5.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--texte); color: var(--encre); box-shadow: 0 0 0 0.45rem rgba(255, 255, 255, 0.06), 0 20px 60px -15px var(--accent); transition: transform 0.6s var(--ressort), background 0.6s var(--ressort), color 0.6s var(--ressort); }
.micro .ico { width: 2rem; height: 2rem; stroke-width: 1.6; position: relative; }
.micro:active { transform: scale(0.95); }
.micro-onde { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; }
body.ecoute .micro { background: var(--accent); color: #fff; transform: scale(1.06); }
body.ecoute .micro-onde { animation: onde 1.8s var(--doux) infinite; }
@keyframes onde { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
.micro[disabled] { opacity: 0.35; pointer-events: none; }
.etat { text-align: center; color: var(--texte-2); font-size: 0.82rem; margin-top: 0.9rem; min-height: 1.3em; }
.clavier { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.clavier input { border-radius: 999px; padding: 0.75rem 1.2rem; font-size: 0.95rem; }
.clavier button { width: 3rem; flex: none; border-radius: 50%; border: 1px solid var(--filet-fort); display: grid; place-items: center; color: var(--texte-2); }

/* ---------- Volet : arrêt sur image / coup de pouce ---------- */
.volet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; padding: 1rem; background: rgba(7, 8, 11, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fondu 0.5s var(--doux); }
@keyframes fondu { from { opacity: 0; } }
.volet-coque { width: min(46rem, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 0.4rem; border-radius: var(--rayon); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--filet-fort); animation: monte 0.8s var(--ressort); }
@keyframes monte { from { transform: translateY(3rem); opacity: 0; } }
.volet-coeur { border-radius: calc(var(--rayon) - 0.4rem); background: linear-gradient(180deg, #1b1f28, #13161c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); padding: clamp(1.4rem, 4vw, 2.25rem); display: grid; gap: 1.25rem; }
.volet-coeur h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.volet.arret .sourcil::before { background: var(--ambre); box-shadow: 0 0 12px var(--ambre); }
.volet.arret h2 { color: var(--ambre); }
.volet.pouce .sourcil::before { background: var(--solidite); box-shadow: 0 0 12px var(--solidite); }
.citation { padding: 1rem 1.2rem; border-left: 3px solid var(--ambre); background: rgba(242, 179, 61, 0.07); border-radius: 0 1rem 1rem 0; font-size: 1.05rem; }
.volet.pouce .citation { border-color: var(--solidite); background: rgba(60, 199, 176, 0.07); }
.explication { color: var(--texte-2); font-size: 1rem; }
.angles { display: grid; gap: 0.75rem; }
.angle { padding: 0.35rem; border-radius: 1.4rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--filet); }
.angle-coeur { border-radius: 1.1rem; background: rgba(0, 0, 0, 0.25); padding: 1.1rem 1.2rem; display: grid; gap: 0.6rem; }
.angle-tete { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.angle-type { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--texte-2); }
.angle strong { font-size: 1.05rem; }
.angle .pourquoi { color: var(--texte-2); font-size: 0.92rem; }
.angle .texte { font-size: 1.02rem; padding-left: 0.9rem; border-left: 2px solid var(--filet-fort); }
.angle-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mini { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: 999px; font-size: 0.88rem; font-weight: 500; border: 1px solid var(--filet-fort); color: var(--texte); transition: all 0.5s var(--ressort); }
.mini:hover { background: rgba(255, 255, 255, 0.08); }
.mini.plein { background: var(--texte); color: var(--encre); border-color: var(--texte); }
.mini.plein:hover { background: #fff; }
.mini[disabled] { opacity: 0.4; pointer-events: none; }
.volet-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; padding-top: 0.5rem; border-top: 1px solid var(--filet); }
.contestation { display: grid; gap: 0.6rem; }
.reponse-arbitre { padding: 0.9rem 1.1rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.05); }
.confiance-fin { display: flex; align-items: center; gap: 1rem; font-size: 1.1rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 40; left: 50%; bottom: 13rem; transform: translateX(-50%); max-width: min(34rem, calc(100% - 2rem)); padding: 0.85rem 1.25rem; border-radius: 1.2rem; background: rgba(24, 28, 36, 0.92); border: 1px solid var(--filet-fort); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 0.95rem; text-align: center; animation: monte 0.7s var(--ressort); }
.toast.bien { border-color: rgba(60, 199, 176, 0.5); }

/* ---------- Rapport ---------- */
.rapport { display: grid; gap: 1.25rem; }
.rapport-tete { padding: 2rem 0 1rem; }
.rapport-tete h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); }
.rapport-tete p { color: var(--texte-2); margin-top: 1rem; font-size: 1.1rem; max-width: 42rem; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.bento > .coque { grid-column: span 6; }
.bento > .large { grid-column: span 12; }
.bento > .tiers { grid-column: span 4; }
.bento > .deux-tiers { grid-column: span 8; }
.bloc { padding: clamp(1.25rem, 3vw, 2rem); height: 100%; display: grid; gap: 0.9rem; align-content: start; }
.bloc h3 { font-size: 0.85rem; color: var(--texte-2); font-weight: 500; }
.bloc .gros { font-size: 1.25rem; font-weight: 500; line-height: 1.35; }
.notes { display: flex; gap: 1.5rem; justify-content: space-around; flex-wrap: wrap; }
.jauge { position: relative; width: 8.5rem; height: 8.5rem; }
.jauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.jauge circle { fill: none; stroke-width: 7; }
.jauge .piste { stroke: rgba(255, 255, 255, 0.07); }
.jauge .valeur { stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--doux); }
.jauge-texte { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.jauge-texte b { font-size: 2rem; letter-spacing: -0.03em; }
.jauge-texte span { font-size: 0.75rem; color: var(--texte-2); }
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.chiffre b { display: block; font-size: 1.8rem; letter-spacing: -0.03em; }
.chiffre span { font-size: 0.82rem; color: var(--texte-2); }
.moment { display: grid; gap: 0.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--filet); }
.moment:last-child { border-bottom: 0; padding-bottom: 0; }
.moment .mieux { color: var(--solidite); }
.coup { display: grid; gap: 0.3rem; padding: 0.9rem 1rem; border-radius: 1rem; background: rgba(0, 0, 0, 0.25); }
.coup strong { color: var(--accent); }
.courbe { width: 100%; height: 8rem; }
.legende { display: flex; gap: 1.25rem; font-size: 0.8rem; color: var(--texte-2); }
.legende i { display: inline-block; width: 0.8rem; height: 3px; border-radius: 2px; margin-right: 0.4rem; vertical-align: middle; }
.attente { min-height: 60dvh; display: grid; place-items: center; text-align: center; gap: 1rem; }
.attente .orateur { margin: 0 auto 1rem; }
body.reflechit .attente .orateur-anneau { animation: tourne 3s linear infinite; }
.rapport-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; padding-top: 1rem; }

/* Historique */
.ligne-partie { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-radius: 1.4rem; border: 1px solid var(--filet); background: rgba(255, 255, 255, 0.02); margin-bottom: 0.75rem; transition: all 0.5s var(--ressort); width: 100%; text-align: left; }
.ligne-partie:hover { background: rgba(255, 255, 255, 0.05); transform: translateX(4px); }
.ligne-partie small { display: block; color: var(--texte-2); }
.ligne-notes { display: flex; gap: 0.75rem; font-weight: 700; flex: none; }
.ligne-notes .s { color: var(--solidite); }
.ligne-notes .p { color: var(--persuasion); }
.familles { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

/* ---------- Téléphone ---------- */
@media (max-width: 860px) {
  .cartes-adv { grid-template-columns: 1fr; }
  .carte-adv .coeur { min-height: 15rem; }
  .deux-colonnes { grid-template-columns: 1fr; }
  .bento > .coque, .bento > .tiers, .bento > .deux-tiers { grid-column: span 12; }
  main { padding: 6rem 1rem 3rem; }
  .intro { padding: 1.5rem 0 2rem; }
  .ligne-sujet { flex-direction: column; }
  .bouton-fantome { padding: 0.8rem 1.1rem; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revele { opacity: 1; transform: none; filter: none; }
}

/* ---------- Retouches après le premier banc d'essai (07/11) ---------- */
.volet-coeur > .sourcil, .bloc > .sourcil { justify-self: start; }
.bulle { scroll-margin-bottom: 15rem; }
.fil { padding-bottom: 2rem; }
.replique-courante.longue { font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.45; }
.rapport-tete h1 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -0.025em; max-width: 52rem; }
.rapport .revele { transition-duration: 0.8s; }
body[data-adversaire="aucun"] { --accent: #8c7bf0; --accent-2: #2b2460; --accent-3: #141230; }
.ilot button { white-space: nowrap; }
@media (max-width: 860px) {
  .carte-adv .embleme { width: 30%; top: 1.1rem; right: 1.1rem; opacity: 0.55; }
  .carte-adv h3 { margin-top: 3.5rem; }
}
.attente-texte { animation: pulse-texte 1.8s var(--doux) infinite alternate; }
@keyframes pulse-texte { from { opacity: 0.45; } to { opacity: 0.9; } }
body[data-adversaire="vraie"] { --accent: #b48cf2; --accent-2: #4b2a7a; --accent-3: #22123d; }
.carte-adv.carte-large { grid-column: 1 / -1; }
.carte-adv.carte-large .coeur { min-height: 13rem; padding-right: 40%; }
.carte-adv.carte-large .embleme { width: 9rem; top: 50%; right: 3rem; transform: translateY(-50%); }
.carte-adv.carte-large:hover .embleme { transform: translateY(-50%) rotate(-6deg) scale(1.05); }
.sous-label { display: block; font-weight: 700; margin: 1.25rem 0 0.75rem; }
@media (max-width: 860px) {
  .carte-adv.carte-large .coeur { padding-right: 1.75rem; }
  .carte-adv.carte-large .embleme { width: 30%; top: 1.1rem; right: 1.1rem; transform: none; }
}
.carte-adv.carte-large .coeur { padding-top: 4.5rem; }
.diagnostic { display: grid; gap: 0.5rem; justify-items: start; }
.familles-sujets { margin-bottom: 0.9rem; }
.familles-sujets button { padding: 0.45rem 0.95rem; font-size: 0.88rem; }
.ligne-sujet { flex-wrap: wrap; }
.ligne-sujet input { flex: 1 1 18rem; }
.bouton-fantome { min-height: 3.1rem; }
.bouton-fantome[disabled] { opacity: 0.6; pointer-events: none; }
#sujet-libre.eclat { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
#sujet-libre { resize: none; overflow: hidden; min-height: 3.1rem; line-height: 1.4; }
@media (max-width: 860px) {
  .ligne-sujet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .ligne-sujet #sujet-libre { grid-column: 1 / -1; }
  .ligne-sujet .bouton-fantome { flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.4rem; font-size: 0.8rem; text-align: center; white-space: normal; line-height: 1.2; }
}
/* Profils */
.ilot-joueur { color: var(--texte) !important; }
.pastille-joueur { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.volet-profil { align-items: center; background: rgba(7, 8, 11, 0.85); }
.volet-profil .volet-coque { width: min(32rem, 100%); }
.profils { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.carte-profil { display: grid; justify-items: center; gap: 0.4rem; padding: 1.6rem 1rem; border-radius: 1.4rem; border: 1px solid var(--filet-fort); background: rgba(255, 255, 255, 0.03); transition: transform 0.6s var(--ressort), border-color 0.6s var(--ressort); }
.carte-profil:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.35); }
.carte-profil .initiale { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; background: radial-gradient(circle at 30% 25%, var(--accent-2), var(--accent-3, #111)); border: 1px solid rgba(255, 255, 255, 0.2); }
.carte-profil strong { font-size: 1.2rem; }
.carte-profil small { color: var(--texte-2); }
/* Décrypter un débat */
body[data-adversaire="rejeu"] { --accent: #e8a87c; --accent-2: #6b3a22; --accent-3: #2d170c; }
.decrypter-resultat { margin-top: 2.5rem; }
.decrypter-liste { margin-top: 2.5rem; }
.moment-debat h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.horodatage { text-decoration: none; color: var(--texte) !important; background: rgba(255, 255, 255, 0.12) !important; }
.famille-bonne_pratique { color: var(--solidite) !important; }
.famille-repartie { color: var(--ambre) !important; }
.etapes { display: grid; gap: 0.6rem; padding-left: 1.2rem; color: var(--texte-2); }
.etapes li.fait { color: var(--solidite); }
.etapes li.en-cours { color: var(--texte); font-weight: 700; }
.etapes li.en-cours::after { content: " ..."; animation: pulse-texte 1.4s var(--doux) infinite alternate; }
.rapport .mieux { color: var(--solidite); }
/* 8 adversaires : 2 rangées de 4 */
body[data-adversaire="stoicien"] { --accent: #9fb3c8; --accent-2: #3a4a5a; --accent-3: #1a222b; }
body[data-adversaire="nietzsche"] { --accent: #f08a4b; --accent-2: #8a3b12; --accent-3: #3a1606; }
body[data-adversaire="mitrailleur"] { --accent: #e05aa8; --accent-2: #7a1c5c; --accent-3: #330a26; }
body[data-adversaire="manipulateur"] { --accent: #8aa2ff; --accent-2: #2e3f7a; --accent-3: #141b38; }
.cartes-adv { grid-template-columns: repeat(4, 1fr); }
.carte-adv .coeur { min-height: 19rem; padding: 1.5rem; }
.carte-adv h3 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); }
.carte-adv p { font-size: 0.92rem; }
.carte-adv.carte-large { grid-column: auto; }
.carte-adv.carte-large .coeur { min-height: 19rem; padding: 1.5rem; padding-top: 1.5rem; }
.carte-adv.carte-large .embleme { width: 46%; max-width: 11rem; top: 1.5rem; right: 1.5rem; transform: none; }
.carte-adv.carte-large:hover .embleme { transform: rotate(-6deg) scale(1.05); }
@media (max-width: 1100px) { .cartes-adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cartes-adv { grid-template-columns: 1fr; } }
/* L'orbe : la voix de l'adversaire */
.orateur-vivant { width: 13rem; height: 13rem; margin-bottom: 1.25rem; }
.orbe-voix { position: absolute; inset: -18%; width: 136%; height: 136%; }
.orateur-vivant .orateur-embleme { width: 30%; opacity: 0.55; mix-blend-mode: screen; pointer-events: none; }
body.il-parle .orateur-vivant .orateur-embleme { opacity: 0.35; }
@media (max-width: 600px) { .orateur-vivant { width: 10.5rem; height: 10.5rem; } }
/* Opposant sur mesure */
body[data-adversaire="surmesure"] { --accent: #e3c25a; --accent-2: #5a4a12; --accent-3: #241d06; }
.zone-sources { display: grid; gap: 0.6rem; padding: 0.9rem; border-radius: 1.1rem; border: 1px dashed var(--filet-fort); }
.sources-liste { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sources-liste:empty { display: none; }
.source-puce { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.4rem 0.4rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.85rem; max-width: 100%; }
.source-puce strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }
.source-puce small { color: var(--texte-2); }
.source-puce button { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.source-ajout { display: grid; gap: 0.5rem; }
.source-ajout.ligne { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.source-ajout.ligne input[type="text"] { flex: 1 1 14rem; }
.source-ajout select { flex: 1 1 14rem; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--filet-fort); border-radius: 999px; padding: 0.5rem 0.9rem; color: var(--texte); }
.verification { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: baseline; padding: 0.6rem 0; border-bottom: 1px solid var(--filet); font-size: 0.92rem; }
.verification:last-child { border-bottom: 0; }
.statut { font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.statut.ok { background: rgba(60, 199, 176, 0.15); color: var(--solidite); }
.statut.ko { background: rgba(255, 122, 89, 0.15); color: var(--persuasion); }
.statut.doute { background: rgba(242, 179, 61, 0.15); color: var(--ambre); }
.carte-adv.carte-pleine { grid-column: 1 / -1; }
.carte-adv.carte-pleine .coeur { min-height: 12rem; padding-right: 40%; }
.carte-adv.carte-pleine .embleme { width: 9rem; top: 50%; right: 3rem; transform: translateY(-50%); }
.carte-adv.carte-pleine:hover .embleme { transform: translateY(-50%) rotate(-6deg) scale(1.05); }
@media (max-width: 860px) {
  .carte-adv.carte-pleine .coeur { padding-right: 1.5rem; padding-top: 4.5rem; }
  .carte-adv.carte-pleine .embleme { width: 30%; top: 1.1rem; right: 1.1rem; transform: none; }
}
.carte-adv.carte-pleine .coeur { padding-top: 4.5rem; }
.bulle.erreur-fil { align-self: stretch; max-width: 100%; display: grid; gap: 0.6rem; justify-items: start; border: 1px solid rgba(255, 122, 89, 0.45); background: rgba(255, 122, 89, 0.08); color: var(--texte); }
.reglage-silence { display: inline-flex !important; align-items: center; gap: 0.6rem; font-weight: 500 !important; color: var(--texte-2); margin: 0 !important; }
.reglage-silence select { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--filet-fort); border-radius: 999px; padding: 0.35rem 0.7rem; color: var(--texte); }
body[data-adversaire="bretteur"] { --accent: #4fd1e8; --accent-2: #0f5a6b; --accent-3: #06262e; }
