:root {
  --nuit: #0E0B08;
  --surface: #1A1410;
  --surface-2: #241C15;
  --ligne: #3A2E22;
  --texte: #F4EBDD;
  --doux: #A8998A;
  --or: #E0A43A;
  --or-clair: #F2C46D;
  --rouge: #E5484D;
  --vert: #3FA672;
  --accent: var(--or);
  --rayon: 18px;
  --titre: "Fraunces", Georgia, serif;
  --corps: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--nuit);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.45;
  /* motif bogolan discret */
  background-image:
    radial-gradient(circle at 50% -20%, rgba(224,164,58,.14), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23E0A43A' stroke-opacity='.025' stroke-width='2'%3E%3Cpath d='M0 24h12M36 24h12M24 0v12M24 36v12'/%3E%3Ccircle cx='24' cy='24' r='5'/%3E%3C/g%3E%3C/svg%3E");
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea { font: inherit; }
#app { max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; }

.ecran { padding: 20px 16px 110px; animation: entree .35s ease; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } }

h1, h2, h3 { font-family: var(--titre); font-weight: 700; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 22px; }
.doux { color: var(--doux); }
.petit { font-size: 13px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 16px; border-radius: 999px;
  background: var(--or); color: #1A1208; font-weight: 600; font-size: 17px;
  box-shadow: 0 8px 24px rgba(224,164,58,.25);
}
.btn:active { transform: scale(.98); }
.btn.secondaire { background: var(--surface-2); color: var(--texte); box-shadow: none; border: 1px solid var(--ligne); }
.btn[disabled] { opacity: .45; }

/* ---------- barre du haut ---------- */
.barre { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.logo { font-family: var(--titre); font-size: 22px; font-weight: 700; color: var(--or-clair); }
.credit {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--ligne); font-weight: 600; font-size: 14px;
}
.credit .point { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.credit.vide .point { background: var(--rouge); }
.logo.grand { font-size: 40px; letter-spacing: -.02em; line-height: 1; }
.sens { margin: -8px 0 4px; color: var(--doux); font-style: italic; font-size: 14px; }
.retour { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 20px; }

/* ---------- avatars ---------- */
.avatar {
  --c: var(--or);
  width: 48px; height: 48px; font-size: 16px;
  border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 85%, white), var(--c) 55%, color-mix(in srgb, var(--c) 45%, black));
  font-family: var(--titre); font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.avatar::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--c) 60%, transparent); opacity: .7;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- filtres ---------- */
.filtres { display: flex; gap: 8px; overflow-x: auto; margin: 20px -16px 16px; padding: 0 16px; scrollbar-width: none; }
.filtres::-webkit-scrollbar { display: none; }
.filtres button { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ligne); font-size: 14px; color: var(--doux); }
.filtres button.actif { background: var(--texte); color: var(--nuit); border-color: var(--texte); font-weight: 600; }

/* ---------- cartes avec photo ---------- */
.carte-photo { position: relative; aspect-ratio: 1; margin: -16px -14px 0; overflow: hidden; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.carte:active .carte-photo img { transform: scale(1.04); }
.carte-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, var(--surface)); }
.carte-photo .en-ligne { background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 999px; top: 10px; right: 10px; z-index: 1; }
.carte-corps { position: relative; margin-top: -18px; }

/* ---------- scène de l'appel : grand portrait + réactions ---------- */
.scene { display: flex; justify-content: center; padding: 6px 0 14px; position: relative; z-index: 2; }
.portrait { --c: var(--accent); width: 132px; height: 132px; border-radius: 50%; position: relative; transition: transform .4s; }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; position: relative; z-index: 1; border: 3px solid color-mix(in srgb, var(--c) 70%, #000); }
.portrait::before, .portrait::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
.appel[data-etat="parle"] .portrait::before { animation: onde 1.6s ease-out infinite; }
.appel[data-etat="parle"] .portrait::after { animation: onde 1.6s ease-out .8s infinite; }
.appel[data-etat="parle"] .portrait { transform: scale(1.04); }
.appel[data-etat="reflechit"] .portrait img { animation: pense 2.4s ease-in-out infinite; }
@keyframes onde { from { transform: scale(1); opacity: .8; } to { transform: scale(1.45); opacity: 0; } }
@keyframes pense { 50% { filter: brightness(.8); } }
@media (max-height: 700px) { .portrait { width: 96px; height: 96px; } }

.reactions { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.flotte { position: absolute; bottom: 120px; animation: monte 3s ease-out forwards; opacity: 0; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
@keyframes monte {
  0% { transform: translate(0, 0) scale(.4); opacity: 0; }
  12% { opacity: 1; transform: translate(0, -30px) scale(1.1); }
  100% { transform: translate(var(--derive), -420px) scale(.9); opacity: 0; }
}
.pastille.coeur { padding: 9px 11px; }

/* ---------- cartes conseillers ---------- */
.grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.carte {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 16px 14px; text-align: left; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.carte .avatar { width: 54px; height: 54px; font-size: 19px; }
.carte h3 { font-size: 17px; position: relative; }
.carte .role { font-size: 13px; color: var(--doux); margin-top: -6px; }
.carte .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.tag { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--doux); }
.en-ligne { position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--vert); display: flex; align-items: center; gap: 4px; }
.en-ligne::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vert); }

.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; font-size: 19px; }

.rdv {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
  padding: 14px; display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; margin-bottom: 10px;
}
.rdv .avatar { width: 44px; height: 44px; font-size: 15px; }
.rdv .verdict { font-weight: 600; }

/* ---------- profil conseiller ---------- */
.profil-tete { text-align: center; padding-top: 10px; }
.profil-tete .avatar { width: 120px; height: 120px; font-size: 40px; margin: 0 auto 18px; }
.citation { font-family: var(--titre); font-style: italic; font-size: 19px; color: var(--or-clair); margin: 18px 0; text-align: center; }
.etapes-explique { display: grid; gap: 10px; margin: 24px 0; }
.etape-ligne { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 12px 14px; }
.etape-ligne b { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--or); display: grid; place-items: center; flex: none; font-size: 14px; }
.collant { position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--nuit) 30%); }
.collant > * { max-width: 448px; margin: 0 auto; }

/* ---------- onboarding ---------- */
/* 100dvh = la hauteur vraiment visible sur téléphone (sans la barre de Chrome) : le bouton reste à l'écran */
.bienvenue { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); gap: 14px; }
.cercle-sages { display: flex; justify-content: center; margin: 0 0 4px; padding: 0 0 0 14px; }
.cercle-sages .avatar { width: 58px; height: 58px; font-size: 18px; margin-left: -14px; border: 3px solid var(--nuit); }
.bienvenue h1 { font-size: 27px; }
.bienvenue .btn { margin-top: 6px; }
.cercle-sages .avatar::after { display: none; }
.champ { width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surface); color: var(--texte); font-size: 17px; outline: none; }
.champ:focus { border-color: var(--or); }
.choix-pays { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-pays button { padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ligne); font-size: 14px; }
.choix-pays button.actif { border-color: var(--or); background: var(--or); color: #1A1208; font-weight: 600; }
.cadeau { text-align: center; font-size: 64px; }

/* ---------- écran d'appel ---------- */
.appel { position: fixed; inset: 0; background: #000; display: flex; flex-direction: column; overflow: hidden; z-index: 5; }
.appel-haut { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 16px 10px; max-width: 480px; width: 100%; margin: 0 auto; position: relative; z-index: 2; }
.appel-haut .avatar { width: 40px; height: 40px; font-size: 14px; }
.appel-haut .avatar::after { inset: -3px; }
.appel-haut .qui { flex: 1; line-height: 1.2; }
.appel-haut .qui b { display: block; font-size: 15px; }
.minuteur { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--doux); }
.minuteur.bas { color: var(--rouge); font-weight: 600; }
.rond { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #1d1d1d; font-size: 18px; }
.rond.raccrocher { background: var(--rouge); }
.rond.coupe { background: #3a1d1d; color: var(--rouge); }

.parcours { display: flex; gap: 6px; padding: 0 16px; max-width: 480px; width: 100%; margin: 0 auto; position: relative; z-index: 2; }
.parcours span { flex: 1; text-align: center; font-size: 11px; color: #6d6459; padding-top: 6px; border-top: 3px solid #2a2520; transition: .3s; }
.parcours span.fait { color: var(--doux); border-color: color-mix(in srgb, var(--accent) 55%, #000); }
.parcours span.actif { color: var(--texte); border-color: var(--accent); font-weight: 600; }

.fil { flex: 1; overflow-y: auto; padding: 20px 20px 30px; max-width: 480px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; position: relative; z-index: 2;
  mask-image: linear-gradient(transparent, #000 30%); -webkit-mask-image: linear-gradient(transparent, #000 30%); }
.bulle-c { font-size: 22px; font-weight: 600; line-height: 1.35; color: #6f675e; transition: color .4s; }
.bulle-c.derniere { color: #e9e2d8; }
.bulle-c .mot { transition: color .15s; }
.bulle-c .mot.lu { color: #fff; }
.bulle-c .mot.pas-lu { color: #6f675e; }
.bulle-p { align-self: flex-end; max-width: 85%; font-size: 15px; color: var(--doux); border-right: 2px solid var(--accent); padding-right: 10px; text-align: right; }
.bulle-p.provisoire { opacity: .6; font-style: italic; }

.reflexion { display: flex; gap: 6px; align-items: center; color: var(--doux); font-size: 14px; }
.reflexion i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: saute 1.2s infinite; }
.reflexion i:nth-child(2) { animation-delay: .15s; } .reflexion i:nth-child(3) { animation-delay: .3s; }
@keyframes saute { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.appel-bas { padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); max-width: 480px; width: 100%; margin: 0 auto; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.indice-boite { text-align: center; padding: 6px 10px 2px; }
.indice-boite small { color: var(--accent); font-weight: 700; letter-spacing: .08em; font-size: 11px; }
.indice-boite p { margin: 6px 0 0; font-size: 19px; font-weight: 600; }
.envoi-voix { display: flex; align-items: center; justify-content: center; gap: 28px; }
.envoyer-voix { width: 68px; height: 68px; border-radius: 50%; background: #25D366; color: #fff; font-size: 26px;
  box-shadow: 0 6px 24px rgba(37,211,102,.35); animation: entree .25s ease; }
.envoyer-voix:active { transform: scale(.94); }
.effacer { width: 44px; height: 44px; border-radius: 50%; background: #1d1d1d; font-size: 18px; }
.etat-micro { cursor: pointer; }
.commandes { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.etat-micro { flex: 1; text-align: center; font-size: 13px; color: var(--doux); }
.pastille { padding: 9px 14px; border-radius: 999px; background: #1d1d1d; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.saisie { display: flex; gap: 8px; }
.saisie input { flex: 1; padding: 13px 16px; border-radius: 999px; border: 1px solid #333; background: #141414; color: #fff; outline: none; }
.saisie button { width: 48px; border-radius: 50%; background: var(--accent); color: #111; font-size: 18px; }

.aura { position: absolute; left: -20%; right: -20%; bottom: -160px; height: 360px; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, var(--accent), transparent 62%); opacity: .35; filter: blur(30px); transition: opacity .4s, transform .4s; }
.appel[data-etat="ecoute"] .aura { opacity: .45; animation: respire 2.6s ease-in-out infinite; }
.appel[data-etat="parle-user"] .aura { opacity: .8; transform: scale(1.12); }
.appel[data-etat="parle"] .aura { opacity: .75; animation: respire 1.1s ease-in-out infinite; }
.appel[data-etat="reflechit"] .aura { opacity: .25; animation: respire 3.5s ease-in-out infinite; }
@keyframes respire { 50% { transform: scale(1.1) translateY(-14px); } }

.alerte { position: absolute; top: calc(118px + env(safe-area-inset-top)); left: 16px; right: 16px; max-width: 448px; margin: 0 auto; z-index: 3;
  text-align: center; background: rgba(20,20,20,.92); border-radius: 14px; padding: 10px 12px; font-size: 14px; display: none; }
.alerte b { color: var(--rouge); font-size: 11px; letter-spacing: .08em; display: block; }
.alerte.visible { display: block; animation: entree .3s; }

/* ---------- feuille de route ---------- */
.feuille { background: var(--surface); border: 1px solid var(--ligne); border-radius: 22px; padding: 22px 18px; margin-top: 18px; position: relative; overflow: hidden; }
.feuille::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 26px); }
.feuille .label { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 6px; }
.feuille .gros { font-family: var(--titre); font-size: 24px; line-height: 1.25; }
.action { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.action:last-child { border: 0; }
.case { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--ligne); flex: none; display: grid; place-items: center; font-size: 14px; }
.action.coche .case { background: var(--vert); border-color: var(--vert); }
.action.coche span { text-decoration: line-through; color: var(--doux); }
.rappel { margin-top: 18px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); display: flex; gap: 10px; align-items: center; }

/* ---------- crédits ---------- */
.pack { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 2px solid var(--ligne); border-radius: var(--rayon); padding: 16px; margin-bottom: 10px; position: relative; }
.pack.actif { border-color: var(--or); }
.pack .min { font-family: var(--titre); font-size: 30px; font-weight: 700; width: 64px; text-align: center; color: var(--or-clair); line-height: 1; }
.pack .min small { display: block; font-family: var(--corps); font-size: 12px; color: var(--doux); font-weight: 400; }
.pack .prix { margin-left: auto; font-weight: 700; font-size: 17px; }
.populaire { position: absolute; top: -10px; right: 14px; background: var(--or); color: #1A1208; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.moyens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.moyens button { padding: 13px; border-radius: 14px; background: var(--surface); border: 2px solid var(--ligne); font-weight: 600; font-size: 14px; }
.moyens button.actif { border-color: var(--or); }

/* ---------- connexion par téléphone ---------- */
.tel { display: flex; gap: 8px; align-items: stretch; }
.tel select { padding: 0 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--ligne); color: var(--texte);
  font: inherit; font-weight: 600; font-size: 16px; flex: none; }
.champ.code { font-size: 28px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.erreur-form { color: var(--rouge); font-size: 14px; min-height: 18px; }
.demo-code { background: #2b2210; border: 1px dashed var(--or); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--or-clair); margin: 0; }
.bienvenue a, .compte a { color: var(--or-clair); }
.compte { margin-top: 30px; text-align: center; font-size: 13px; color: var(--doux); }

/* ---------- sonnerie et choix de la voix (fiche du conseiller) ---------- */
.sonnerie { margin-top: 16px; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--ligne); font-size: 15px; }
.sonnerie span { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; }
.voix-choix { margin-top: 10px; background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 12px 14px; }
.voix-choix summary { cursor: pointer; list-style: none; font-size: 15px; }
.voix-choix summary::-webkit-details-marker { display: none; }
.voix-ligne { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--ligne); margin-top: 8px; }
.voix-ligne > div { flex: 1; }
.voix-ligne .lecture { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; }
.voix-ligne .defaut { font-size: 11px; color: var(--doux); border: 1px solid var(--ligne); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.voix-ligne .prendre { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ligne); }
.voix-ligne .ok { color: var(--vert); font-weight: 700; padding: 0 10px; }

/* ---------- mode d'emploi (fenêtre) ---------- */
.fond-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 30; display: flex; align-items: flex-end; justify-content: center; animation: entree .25s; }
.modal { background: var(--surface); border-top: 1px solid var(--ligne); border-radius: 22px 22px 0 0; width: 100%; max-width: 480px;
  padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.modal h2 { margin-bottom: 4px; }

/* ---------- panne pendant l'appel ---------- */
.panne { background: rgba(40,30,20,.9); border: 1px solid #5a4318; border-radius: 14px; padding: 12px; font-size: 14px; color: var(--texte); }
.panne p { margin: 0 0 10px; }
.panne .pastille { background: #2b2210; border: 1px solid #5a4318; }

/* ---------- phase de test ---------- */
.beta { font-family: var(--corps); font-size: 11px; font-weight: 600; color: var(--nuit); background: var(--or); padding: 2px 8px; border-radius: 999px; vertical-align: 4px; }
.bandeau-beta { background: #2b2210; border: 1px solid #5a4318; color: var(--or-clair); border-radius: 14px; padding: 10px 12px; font-size: 13px; margin: -8px 0 18px; }
.consentement { margin: 0; }

/* ---------- note de l'appel ---------- */
.avis { display: flex; flex-direction: column; gap: 14px; padding-top: 8vh; }
.avis .profil-tete .avatar { width: 96px; height: 96px; }
.avis h2 { font-size: 22px; line-height: 1.25; }
.etoiles { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.etoiles button { font-size: 46px; line-height: 1; color: #3a3128; transition: transform .15s, color .15s; padding: 2px; }
.etoiles button.allumee { color: var(--or); }
.etoiles button:active { transform: scale(1.2); }
.libelle { text-align: center; color: var(--doux); min-height: 22px; }
.avis textarea { resize: vertical; font-size: 15px; }
.passer { color: var(--doux); text-decoration: underline; padding: 6px; }

/* ---------- studio des voix ---------- */
.badge-moteur a { color: var(--or-clair); }
.moteurs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 22px; }
.moteur { background: var(--surface); border: 1px solid var(--ligne); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.moteur span { font-size: 12px; color: var(--rouge); }
.moteur.ok span { color: var(--vert); }
.moteur small { font-size: 11px; color: var(--doux); }
.studio-carte { background: var(--surface); border: 1px solid var(--ligne); border-left: 4px solid var(--c); border-radius: var(--rayon); padding: 14px; margin-bottom: 12px; }
.studio-tete { display: flex; gap: 12px; align-items: center; }
.casting { margin: 10px 0 14px; border-top: 1px solid var(--ligne); padding-top: 10px; }
.label-casting { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); margin-bottom: 6px; }
.candidat { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.candidat.pris { background: color-mix(in srgb, var(--c) 18%, transparent); }
.rond-lecture { width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; flex: none; font-size: 13px; }
.candidat-info { flex: 1; min-width: 0; line-height: 1.25; }
.candidat-info span { display: block; font-size: 12px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.choisir { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ligne); flex: none; }
.candidat.pris .choisir { border-color: var(--vert); color: var(--vert); }
.studio-carte .phrase { font-size: 14px; padding: 10px 12px; resize: vertical; }
.essais { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.essai { display: flex; align-items: center; gap: 4px; border-radius: 999px; }
.essai .pastille { background: var(--surface-2); }
.essai .pastille[disabled] { opacity: .35; }
.essai.garde .pastille { background: var(--c); color: #fff; }
.garder { font-size: 12px; color: var(--doux); text-decoration: underline; padding: 4px; }
.essai.garde .garder { color: var(--vert); text-decoration: none; font-weight: 600; }

/* ---------- divers ---------- */
.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -300%); background: #7c4dcc; color: #fff;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: transform .35s; z-index: 20; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.visible { transform: translate(-50%, 0); }
.navbas { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(14,11,8,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--ligne);
  display: flex; justify-content: space-around; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); z-index: 4; }
.navbas button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--doux); min-width: 70px; }
.navbas button span { font-size: 20px; }
.navbas button.actif { color: var(--or-clair); }
.vide-etat { text-align: center; padding: 30px 10px; color: var(--doux); }
.chargement { min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--doux); }
.badge-moteur { font-size: 11px; color: var(--doux); text-align: center; margin-top: 24px; }
