/* ══════════════════════════════════════════════════════
   Rockette Ambiance · thème sombre « régie »
   ══════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;
  --fond: #101114;
  --surface: #17181C;
  --surface-2: #1E2026;
  --ligne: #22242A;
  --ligne-forte: #3A3D46;
  --texte: #F3EFE6;
  --texte-2: #C9C6BE;
  --texte-3: #9A9AA3;
  --ambre: #F2A541;
  --menthe: #7FD1C4;
  --danger: #F07A6B;
  --titre: ui-rounded, "SF Pro Rounded", -apple-system, "Segoe UI", system-ui, sans-serif;
  --corps: -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--corps); line-height: 1.55; }
a { color: var(--texte); }
a:hover { color: var(--ambre); }
.mono { font-family: var(--mono); font-size: .87rem; color: var(--texte-2); }
h1, h2, h3 { font-family: var(--titre); letter-spacing: -0.015em; margin: 0; }
h1 { font-size: 2.6rem; line-height: 1.05; font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
.discret { color: var(--texte-3); font-size: .9rem; }
.lien-discret { color: var(--texte-3); text-decoration: none; font-size: .9rem; padding: 10px 0; }

/* ── Barre du haut ── */
.page { padding: 24px 40px 56px; }
.barre { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.barre__marque { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.barre__app { font-family: var(--titre); font-weight: 700; font-size: 1.45rem; text-decoration: none; letter-spacing: -0.01em; }
.barre__etab { font-size: .87rem; color: var(--texte-3); }
.barre__nav { display: flex; gap: 2px; flex-wrap: wrap; }
.barre__nav a { padding: 12px 14px; text-decoration: none; color: var(--texte-3); border-bottom: 2px solid transparent; }
.barre__nav a[aria-current="page"] { color: var(--texte); border-bottom-color: var(--ambre); }
.barre__droite { display: flex; align-items: center; gap: 18px; }
.contenu { max-width: 1360px; margin: 32px auto 0; }
.entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.entete p { margin: 10px 0 0; max-width: 640px; color: var(--texte-2); }

/* ── Boutons, champs ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid var(--ligne-forte); background: transparent; color: var(--texte);
  font: 500 .93rem var(--corps); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--texte-2); color: var(--texte); }
.btn--plein { background: var(--texte); color: var(--fond); border-color: var(--texte); font-weight: 600; }
.btn--plein:hover { background: #fff; color: var(--fond); }
.btn--ambre { background: var(--ambre); color: var(--fond); border-color: var(--ambre); font-weight: 600; }
.btn--danger { color: var(--danger); border-color: #5a2f2b; }
.btn--petit { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.champ label, .etiquette { font-size: .8rem; color: var(--texte-3); }
input[type=text], input[type=password], input[type=number], input[type=time], input[type=email], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--ligne-forte);
  background: var(--fond); color: var(--texte); font: inherit; }
input[type=color] { width: 56px; height: 44px; padding: 4px; border-radius: 10px; border: 1px solid var(--ligne-forte); background: var(--fond); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--ambre); outline-offset: 2px; }
.case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .93rem; color: var(--texte-2); }
.case input { width: 18px; height: 18px; accent-color: var(--ambre); }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 640px) { .grille-2, .grille-3 { grid-template-columns: 1fr; } .page { padding: 18px 16px 40px; } h1 { font-size: 2rem; } }

/* ── Cartes, listes ── */
.carte { background: var(--surface); border-radius: 20px; padding: 22px; }
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pastille { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .73rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge--titre { color: var(--texte-2); border: 1px solid #4A4D57; }
.badge--jingle { color: var(--fond); background: var(--menthe); }
.badge--pub, .badge--annonce, .badge--tts { color: var(--fond); background: var(--ambre); }
.badge--humeur { color: var(--fond); background: #A9B4F0; }
.flash { margin: 0 0 24px; padding: 12px 16px; border-radius: 12px; font-size: .93rem; }
.flash--ok { background: #16261F; color: #A6E3C5; }
.flash--err { background: #2C1A18; color: #F5B5AC; }
.vide { padding: 32px; text-align: center; color: var(--texte-3); border: 1.5px dashed var(--ligne-forte); border-radius: 20px; }

/* ── Tableaux ── */
.tableau-boite { overflow-x: auto; background: var(--surface); border-radius: 20px; padding: 6px 22px; }
table.tableau { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tableau th { text-align: left; font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); padding: 14px 12px 14px 0; }
.tableau td { padding: 11px 12px 11px 0; border-top: 1px solid var(--ligne); vertical-align: middle; }
.tableau td.mono { white-space: nowrap; }
.tableau select, .tableau input { min-height: 36px; padding: 6px 10px; }

/* ── Cadran ── */
.cadran-page { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.cadran-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cote { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.puces { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.puce { min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--ligne-forte); color: var(--texte); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.puce[aria-current="true"] { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.puce__etat { width: 7px; height: 7px; border-radius: 50%; background: var(--ligne-forte); }
.puce__etat--on { background: var(--menthe); }
.cadran { position: relative; width: 100%; max-width: 660px; aspect-ratio: 1 / 1; }
.cadran__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cadran__piste { fill: none; stroke: var(--surface-2); stroke-width: 44; }
.cadran__arc { fill: none; stroke-width: 44; }
.cadran__tic { stroke: #4A4D57; stroke-width: 1.5; }
.cadran__heure { fill: var(--texte-3); font-family: var(--mono); font-size: 13px; text-anchor: middle; dominant-baseline: middle; }
.cadran__nom { font-family: var(--corps); font-weight: 600; font-size: 14px; text-anchor: middle; dominant-baseline: middle; }
.cadran__plage { fill: var(--texte-3); font-family: var(--mono); font-size: 12px; text-anchor: middle; dominant-baseline: middle; }
.cadran__marque { fill: var(--ambre); stroke: var(--fond); stroke-width: 3; }
.cadran__aiguille { stroke: var(--texte); stroke-width: 3; stroke-linecap: round; }
.cadran__maintenant { fill: var(--texte); font-family: var(--corps); font-weight: 600; font-size: 13px; text-anchor: middle; dominant-baseline: middle; }
.cadran__centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cadran__centre .sur { font-size: .73rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-3); }
.cadran__centre .titre { font-family: var(--titre); font-weight: 600; font-size: clamp(17px, 2.4vw, 28px); line-height: 1.1; }
.legende-cadran { margin: 0; max-width: 520px; text-align: center; font-size: .93rem; color: var(--texte-2); }
.fil { list-style: none; margin: 0; padding: 0; }
.fil li { display: grid; grid-template-columns: 56px 82px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--ligne); }
.fil .sous { display: block; font-size: .85rem; color: var(--texte-3); }
.puces-annonce { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Humeurs ── */
.humeur { display: flex; flex-direction: column; gap: 14px; }
.humeur__tete { display: flex; align-items: center; gap: 12px; }
.humeur__regles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .87rem; color: var(--texte-3); }
.humeur__pied { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--ligne); }
.depot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 150px; padding: 24px; border: 1.5px dashed var(--ligne-forte); border-radius: 20px; cursor: pointer; }
.depot:hover, .depot.survol { border-color: var(--ambre); }
.depot input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ── Grille d'une zone ── */
.ruban { position: relative; height: 34px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.ruban span { position: absolute; top: 0; bottom: 0; }
.zone { display: flex; flex-direction: column; gap: 16px; }
.zone__liens { display: flex; flex-wrap: wrap; gap: 8px; }
.ligne-bloc { display: grid; grid-template-columns: 110px 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
@media (max-width: 640px) { .ligne-bloc { grid-template-columns: 1fr 1fr; } }
details > summary { cursor: pointer; color: var(--texte-2); min-height: 44px; display: flex; align-items: center; }

/* ── Relevé ── */
.jours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.jours div { height: 44px; border-radius: 5px; background: var(--ambre); }
.note { padding: 16px 20px; border-radius: 14px; background: #1C1A14; color: #E9D9B8; font-size: .93rem; }
.filtres { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.filtres .champ { margin: 0; }

/* ── Connexion / installation ── */
.ecran-seul { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.boite { width: 420px; max-width: 100%; background: var(--surface); border-radius: 24px; padding: 32px 28px; }
.boite--large { width: 560px; }
.boite h1 { font-size: 1.8rem; margin-bottom: 4px; }
.sous-titre { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ligne); }
