/* KROMA — back-office. Colonne sombre, contenu clair, jaune pour l'action. */

:root {
  --blanc: #ffffff;
  --papier: #f4f4f1;
  --encre: #0b0b0c;
  --gris: #5c5c60;
  --ligne: #dcdad5;
  --jaune: #e4ff1a;
  --magenta: #ff2ea6;
  --cyan: #00e0ff;
  --vert: #0f7a4a;
  --display: 'Anton', 'Arial Black', sans-serif;
  --corps: 'Space Grotesk', Arial, sans-serif;
  --mono: 'Space Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--corps); font-size: 15.5px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; background: transparent; color: inherit; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; margin: 0 0 .3rem; }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; margin: 0 0 .9rem; }
h3 { font-family: var(--corps); font-weight: 700; font-size: 1.02rem; margin: 0 0 .4rem; }
p { margin: 0 0 .8rem; } p:last-child { margin-bottom: 0; }
.gris { color: var(--gris); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }

/* ---------- Bandeau ---------- */
.bandeau { display: flex; align-items: center; gap: 1rem; background: var(--encre); color: #fff; padding: 0 1.2rem; height: 60px; position: sticky; top: 0; z-index: 40; }
.bandeau .marque { font-family: var(--display); font-size: 1.5rem; text-decoration: none; text-transform: uppercase; }
.bandeau .marque i { font-style: normal; background: var(--jaune); color: var(--encre); padding: 0 .1em; }
.bandeau .gris { color: #9d9da3; }
.bandeau-droite { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.qui { font-size: .88rem; white-space: nowrap; }
.burger { display: none; width: 40px; height: 40px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; }

/* ---------- Ossature ---------- */
.page { display: grid; grid-template-columns: 232px 1fr; align-items: start; }
.colonne { position: sticky; top: 60px; background: var(--encre); min-height: calc(100vh - 60px); padding: 1rem .7rem 2rem; display: flex; flex-direction: column; gap: .15rem; }
.colonne a { display: flex; align-items: center; gap: .7rem; color: #cfcfd4; text-decoration: none; padding: .62rem .8rem; font-size: .93rem; border-left: 3px solid transparent; }
.colonne a:hover { background: #191919; color: #fff; }
.colonne a.actif { background: #191919; color: #fff; border-left-color: var(--jaune); font-weight: 700; }
.colonne .ico { width: 20px; text-align: center; color: var(--jaune); font-size: .95rem; }
.note-demo { margin-top: auto; padding: .9rem .8rem 0; font-family: var(--mono); font-size: .68rem; line-height: 1.5; color: #8d8d94; border-top: 1px solid #262629; }
.contenu { padding: clamp(1.2rem, 3vw, 2.2rem); max-width: 1240px; }

/* ---------- Blocs ---------- */
.bloc { background: var(--blanc); border: 2px solid var(--encre); padding: clamp(1rem, 2.2vw, 1.6rem); margin-bottom: 1.4rem; }
.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.eyebrow { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin: 0 0 .3rem; }

.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.chiffre { background: var(--blanc); border: 2px solid var(--encre); padding: 1rem 1.1rem; }
.chiffre b { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1.1; }
.chiffre span { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.chiffre.marque-jaune { background: var(--jaune); }

/* ---------- Tableaux ---------- */
.enveloppe { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: .68rem .55rem; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
th { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); border-bottom: 2px solid var(--encre); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.vignette { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--ligne); }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .45rem; border: 2px solid var(--encre); background: var(--blanc); white-space: nowrap; }
.badge--ok { background: var(--jaune); }
.badge--vert { background: var(--vert); color: #fff; border-color: var(--vert); }
.badge--rose { background: var(--magenta); color: var(--encre); border-color: var(--encre); }
.badge--gris { background: var(--papier); color: var(--gris); border-color: var(--ligne); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .62rem 1rem; background: var(--jaune); color: var(--encre); border: 2px solid var(--encre); text-decoration: none; box-shadow: 3px 3px 0 var(--encre); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--encre); }
.btn--ligne { background: var(--blanc); }
.btn--petit { padding: .38rem .6rem; font-size: .7rem; box-shadow: 2px 2px 0 var(--encre); }
.btn--danger { background: var(--magenta); }
.bandeau .btn { box-shadow: none; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ---------- Formulaires ---------- */
label { display: block; font-family: var(--mono); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=password], select, textarea {
  width: 100%; font-family: var(--corps); font-size: .95rem; padding: .55rem .65rem; background: var(--blanc); color: var(--encre); border: 2px solid var(--encre); border-radius: 0;
}
textarea { min-height: 110px; resize: vertical; }
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin-bottom: 1rem; }
.ligne-form { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.flash { border: 2px solid var(--encre); background: var(--jaune); padding: .8rem 1rem; margin: 0 0 1.2rem; font-weight: 500; }
.flash--erreur { background: var(--magenta); }
.filtres { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.filtres a { font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .42rem .7rem; border: 2px solid var(--encre); background: var(--blanc); text-decoration: none; }
.filtres a.actif { background: var(--encre); color: #fff; }

/* ---------- Agenda ---------- */
.jour { border: 2px solid var(--encre); background: var(--blanc); margin-bottom: 1rem; }
.jour > h3 { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .7rem 1rem; background: var(--encre); color: #fff; font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.creneau { display: grid; grid-template-columns: 78px 1fr auto; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--ligne); align-items: center; }
.creneau:last-child { border-bottom: 0; }
.creneau .heure { font-family: var(--display); font-size: 1.35rem; }
.creneau .qui b { display: block; }
.creneau.annule { opacity: .55; }
.creneau.annule .qui b { text-decoration: line-through; }

/* ---------- Connexion ---------- */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.2rem; background: var(--encre); }
.carte-connexion { width: min(100%, 460px); background: var(--blanc); border: 3px solid var(--encre); padding: clamp(1.4rem, 4vw, 2.2rem); }
.carte-connexion .marque { font-family: var(--display); font-size: 2.4rem; text-transform: uppercase; text-decoration: none; display: inline-block; margin-bottom: .3rem; }
.carte-connexion .marque i { font-style: normal; background: var(--jaune); padding: 0 .1em; }
.profils { display: grid; gap: .5rem; margin: 1.2rem 0; }
.profils button { display: flex; justify-content: space-between; gap: 1rem; align-items: center; width: 100%; text-align: left; border: 2px solid var(--encre); background: var(--blanc); padding: .6rem .8rem; }
.profils button:hover { background: var(--jaune); }
.profils b { font-size: .95rem; }
.profils span { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; color: var(--gris); text-transform: uppercase; }
.encart { border: 2px dashed var(--encre); padding: .9rem 1rem; margin-top: 1.2rem; font-size: .88rem; background: var(--papier); }

/* ---------- Écran ---------- */
@media (max-width: 980px) {
  .chiffres { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .bandeau-droite .qui { display: none; }
  .page { grid-template-columns: 1fr; }
  .colonne { position: fixed; inset: 60px 0 auto; z-index: 30; min-height: 0; max-height: calc(100vh - 60px); overflow-y: auto; transform: translateY(-120%); transition: transform .3s ease; }
  .colonne.ouverte { transform: none; }
  .creneau { grid-template-columns: 66px 1fr; }
  .creneau .actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .chiffres { grid-template-columns: 1fr 1fr; }
  .bandeau-droite .btn { padding: .38rem .55rem; font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
