@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --nuit: #070A2B;
  --carte: #11153A;
  --trait: #2A2E55;
  --jaune: #FFD80C;
  --rose: #FC1DA5;
  --bleu: #3155FE;
  --texte: #FFFFFF;
  --doux: #C9CCE0;
  --clair: #F4F5FA;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--nuit); color: var(--texte); font-family: 'Inter', system-ui, sans-serif; }
body { min-height: 100vh; }
a { color: var(--jaune); }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1; padding: calc(22px + env(safe-area-inset-top)) 18px 110px; display: flex; flex-direction: column; gap: 16px; }
.titre { font-family: 'Anton', sans-serif; font-size: 30px; line-height: 1.05; letter-spacing: .3px; margin: 0; }
.sous-titre { font-family: 'Anton', sans-serif; font-size: 19px; margin: 6px 0 0; }
.petit { font-size: 13px; color: var(--doux); }
.etiquette { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--jaune); }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 16px; padding: 14px; }
.bloc-jaune { background: var(--jaune); color: var(--nuit); border-radius: 20px; padding: 18px; }
.bloc-rose { background: var(--rose); color: #fff; border-radius: 20px; padding: 18px; }
.bloc-jaune .etiquette, .bloc-rose .etiquette { color: inherit; }
.ligne { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pile { display: flex; flex-direction: column; gap: 10px; }
.btn { min-height: 48px; padding: 0 20px; border-radius: 999px; border: none; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-jaune { background: var(--jaune); color: var(--nuit); }
.btn-nuit { background: var(--nuit); color: var(--jaune); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-contour { background: transparent; color: var(--jaune); border: 1px solid var(--jaune); }
.btn-plein { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.champ { display: flex; flex-direction: column; gap: 6px; }
.champ label { font-size: 13px; font-weight: 600; color: var(--doux); }
.champ input, .champ select, .champ textarea { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--trait); background: var(--carte); color: #fff; }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--doux); }
.case input { width: 20px; height: 20px; accent-color: var(--rose); margin-top: 1px; }
.pastilles { display: flex; gap: 8px; flex-wrap: wrap; }
.pastille { min-height: 38px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--trait); background: transparent; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; }
.pastille.active { background: var(--jaune); color: var(--nuit); border-color: var(--jaune); }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--rose); color: #fff; white-space: nowrap; }
.badge-bleu { background: var(--bleu); }
.evt { display: flex; gap: 14px; align-items: center; text-decoration: none; color: #fff; }
.date { width: 58px; min-width: 58px; height: 66px; border-radius: 12px; background: var(--nuit); border: 1px solid var(--trait); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.date .j { font-family: 'Anton', sans-serif; font-size: 24px; line-height: 1; }
.date .m, .date .s { font-size: 11px; color: var(--doux); text-transform: uppercase; }
.date .s { color: var(--rose); font-weight: 700; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--nuit); border-top: 1px solid var(--trait); display: flex; justify-content: center; padding: 8px 6px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
.nav-in { width: 100%; max-width: 520px; display: flex; justify-content: space-around; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--doux); min-width: 60px; padding: 4px; }
.nav a.actif { color: var(--jaune); }
.nav svg { width: 22px; height: 22px; }
.qr { background: #fff; border-radius: 16px; padding: 12px; display: flex; justify-content: center; }
.qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.tampons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tampon { height: 44px; border-radius: 22px; border: 2px dashed var(--nuit); }
.tampon.plein { background: var(--nuit); border-style: solid; }
.message { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.message.ok { background: #12391F; color: #B8F5C8; }
.message.erreur { background: #45111F; color: #FFC2D1; }
.vide { text-align: center; color: var(--doux); padding: 24px 0; font-size: 14px; }
.entete-logo { font-family: 'Anton', sans-serif; font-size: 24px; }
.entete-logo span { color: var(--jaune); }
.chargement { display: flex; align-items: center; justify-content: center; min-height: 60vh; color: var(--doux); }
hr { border: none; border-top: 1px solid var(--trait); margin: 4px 0; }
.btn-petit { min-height: 38px; padding: 0 14px; font-size: 13px; }
.nav a[hidden] { display: none; }
.jauge { height: 8px; border-radius: 4px; background: var(--trait); overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--jaune); }
.calendrier { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-tete { text-align: center; font-size: 11px; color: var(--doux); font-weight: 700; }
.cal-jour { aspect-ratio: 1; min-height: 38px; border-radius: 10px; border: 1px solid var(--trait); background: transparent; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.cal-jour.libre { background: rgba(255, 216, 12, .14); border-color: var(--jaune); }
.cal-jour.option { background: rgba(49, 85, 254, .18); border-color: var(--bleu); }
.cal-jour.pris { opacity: .35; text-decoration: line-through; cursor: default; }
.cal-jour.passe { opacity: .2; cursor: default; }
.cal-jour.choisi { background: var(--jaune); color: var(--nuit); }
.legende { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--doux); }
.legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--trait); }
.legende i.libre { background: rgba(255, 216, 12, .4); border-color: var(--jaune); }
.legende i.option { background: rgba(49, 85, 254, .5); border-color: var(--bleu); }
.legende i.pris { opacity: .35; }
.pastille:disabled { opacity: .35; cursor: default; }
details summary { cursor: pointer; }
select { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--carte); color: #fff; }
.admin select { background: #fff; color: var(--nuit); border-color: #C9CCE0; }
/* Visuels : toujours en entier, jamais rognés */
.visuel { width: 100%; height: auto; display: block; border-radius: 16px; background: var(--carte); }
.evt-vignette { width: 84px; min-width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: var(--nuit); border: 1px solid var(--trait); }
