@font-face { font-family:'Inter'; font-weight:400; font-display:swap; src:url('../../media/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-weight:500; font-display:swap; src:url('../../media/fonts/inter-500.woff2') format('woff2'); }

/* Vue publique — design system docs/UI-UX.md.
   Une carte, grosses tuiles tactiles, etats ecrits, aucun masquage des reglages
   pilotes, retour local (pas de voile global). */
:root {
  /* Accent et ses derives : valeurs par defaut REELLES (accent.js les ecrase). */
  --accent:#e0b072; --on-accent:#1b1b1d;
  --accent-soft:rgba(224,176,114,.13);
  --accent-tint:rgba(224,176,114,.18);
  --accent-halo:rgba(224,176,114,.25);
  --accent-ring:rgba(224,176,114,.28);
  --accent-line:rgba(224,176,114,.35);
  --fond:#0b0b0e; --carte:#141419; --ctrl:#1b1b22; --bord:rgba(255,255,255,.16);
}
* { box-sizing:border-box; }
html, body { margin:0; height:100%; background:var(--fond); color:#f2f2f5;
  font-family:'Inter',system-ui,sans-serif; -webkit-user-select:none; user-select:none;
  -webkit-tap-highlight-color:transparent; }
body { display:flex; flex-direction:column; min-height:100%; }
#panel { margin:auto; width:100%; max-width:680px;
  padding:24px 22px max(24px, env(safe-area-inset-bottom)); }

.marque { text-align:center; font-weight:800; font-size:30px; letter-spacing:.22em;
  color:#f4f4f6; text-shadow:-.032em 0 0 #ff2f2f, .032em 0 0 #2fffff; margin:0 0 8px; }
.hint { text-align:center; color:#9a9aa5; font-size:13px; margin:0 0 22px; }

.carte { background:var(--carte); border:1px solid rgba(255,255,255,.08);
  border-radius:26px; padding:6px 22px 16px; }
.bloc { padding:11px 0; }
.bloc + .bloc { border-top:1px solid rgba(255,255,255,.06); }
.etiq { font-size:13px; font-weight:700; letter-spacing:.10em; text-transform:uppercase;
  color:#9a9aa5; margin:0 0 14px; }

/* Stepper : objets VISIBLES (bord) et grandes cibles. */
.bigstep { display:flex; align-items:center; justify-content:center; gap:30px; }
.bigstep button { width:72px; height:72px; border-radius:50%;
  border:1.5px solid rgba(255,255,255,.24); background:#2e2e38; color:#fff;
  font-size:36px; cursor:pointer; transition:transform .08s; }
.bigstep button:disabled { opacity:.3; }
.bigstep .val { font-size:56px; min-width:2ch; text-align:center; font-variant-numeric:tabular-nums; }

.swatches { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; }
.swatches button { width:56px; height:56px; border-radius:50%;
  border:2px solid rgba(255,255,255,.45); cursor:pointer; }
.swatches button.on { border:3px solid #fff; }

/* Ligne automatique : toute la ligne est un bouton (role switch). */
.auto { display:flex; align-items:center; justify-content:space-between; gap:16px;
  width:100%; background:var(--ctrl); border:1.5px solid var(--bord);
  border-radius:18px; padding:12px 16px; margin-top:12px; cursor:pointer;
  color:#e6e6ee; text-align:left; transition:transform .08s; }
.auto .txt { display:flex; flex-direction:row; align-items:baseline; gap:10px; min-width:0; }
.auto .phrase { font-size:14.5px; line-height:1.25; }
.auto .etat { font-size:12px; font-weight:700; color:#9a9aa5; white-space:nowrap; }
.piste { width:56px; height:34px; border-radius:17px; background:#3a3a45;
  border:1.5px solid rgba(255,255,255,.35); position:relative; flex:0 0 auto; }
.piste b { position:absolute; top:3px; left:3px; width:26px; height:26px;
  border-radius:50%; background:#fff; }
.auto.on { background:var(--accent-soft); border-color:var(--accent-ring); }
.auto.on .phrase { color:var(--accent); }
.auto.on .etat { color:var(--accent); }
.auto.on .piste { background:var(--accent); border-color:var(--accent-ring); }
.auto.on .piste b { left:26px; }

/* Grosse tuile de choix : icone au-dessus du libelle, coche si active. */
.duo { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.duo .tuile { position:relative; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:12px; min-height:112px; border-radius:20px;
  border:1.5px solid var(--bord); background:var(--ctrl); color:#e6e6ee;
  font-size:17px; font-weight:600; cursor:pointer; transition:transform .08s; }
.duo .tuile svg { width:36px; height:36px; }
.duo .tuile.on { background:var(--accent-soft); border:2px solid var(--accent); color:var(--accent); }
.duo .tuile .coche { position:absolute; top:10px; right:12px; font-size:18px; color:var(--accent); }

/* Reglage pilote : visible mais inactif (jamais masque). */
.reglage-gele { opacity:.45; pointer-events:none; }
.note-auto { margin:8px 0 0; font-size:12px; color:#9a9aa5; }

.auto:active, .duo .tuile:active, .bigstep button:active, .swatches button:active { transform:scale(.97); }
:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }

.empty { text-align:center; color:#9a9aa5; margin-top:24px; font-size:15px; }
