:root {
  /* Couleurs officielles NT Production : noir + dégradé or du logo */
  --bg: #050505;
  --surface: #111110;
  --surface-2: #1a1916;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4efe2;
  --muted: #a19a88;
  --accent: #d9b968;
  --accent-soft: rgba(217, 185, 104, 0.12);
  --gold: linear-gradient(90deg, #8c5f27 0%, #c9a25a 28%, #f7f0a0 50%, #c9a25a 72%, #8c5f27 100%);
  --on-gold: #0b0a07;
  --danger: #ff6b5b;
  --ok: #3ccf8e;
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px max(16px, env(safe-area-inset-left)) 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 520px) { .nav { gap: 12px; font-size: 13px; } .nav .nav-extra { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92svh, 760px);
  display: grid; align-items: end;
  padding: 96px 16px 40px; overflow: hidden; isolation: isolate;
}
.hero-media, .hero-fallback { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-fallback {
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(217, 185, 104, 0.24), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(140, 95, 39, 0.3), transparent 70%),
    #0a0907;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: scale(1.08) translate(-2%, 2%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0.15) 40%, var(--bg) 100%);
}
.hero-inner { max-width: 680px; width: 100%; margin: 0 auto; }
.rec { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.hero h1 {
  font-family: var(--display); font-size: clamp(40px, 11vw, 72px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 14px 0 14px; padding-bottom: 0.06em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(17px, 4.4vw, 20px); color: #d6d3cc; max-width: 30ch; margin: 0 0 28px; }

@media (prefers-reduced-motion: reduce) {
  .hero-fallback, .rec::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 17px; text-decoration: none;
  cursor: pointer; transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); filter: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--text); }

/* ---------- Carte agenda ---------- */
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; }
@media (min-width: 560px) { .panel { padding: 30px 30px; } }

.step + .step { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 19px; letter-spacing: -0.01em; }
.step-num { font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

.choices { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .choices { grid-template-columns: 1fr; } }
.choice {
  text-align: left; padding: 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.choice strong { display: block; font-size: 16px; margin-bottom: 2px; }
.choice span { font-size: 13.5px; color: var(--muted); }
.choice:hover { border-color: var(--line-strong); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Calendrier mensuel ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-title {
  flex: 1; text-align: center; padding: 11px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.cal-nav {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--accent); font-size: 30px; line-height: 1; padding-bottom: 4px; cursor: pointer;
}
.cal-nav:hover:not(:disabled) { border-color: var(--accent); }
.cal-nav:disabled { opacity: 0.2; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); padding: 2px 0 4px; }
.cal-day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.cal-day:hover:not(:disabled) { border-color: var(--accent); }
/* Complet ou indisponible : grisé, non cliquable */
.cal-day:disabled { background: rgba(255, 255, 255, 0.025); border-color: transparent; color: rgba(244, 239, 226, 0.22); font-weight: 500; cursor: not-allowed; }
.cal-empty { background: transparent; border: 0; }
.cal-grid.is-loading .cal-day:not(.cal-empty) { animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: 0.45; } }
.cal-day[aria-pressed="true"] { background: var(--gold); border-color: var(--accent); color: var(--on-gold); }
.cal-day.today::after { content: ""; position: absolute; bottom: 14%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-day.today[aria-pressed="true"]::after { background: var(--on-gold); }
@media (max-width: 400px) { .cal-grid { gap: 4px; } .cal-day { font-size: 15px; border-radius: 10px; } }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.cal-legend i.off { background: rgba(255, 255, 255, 0.025); border-color: rgba(255, 255, 255, 0.06); }
.cal-slots { margin-top: 20px; }
.cal-day-title { font-weight: 650; margin: 0 0 8px; }
.slots-half { grid-template-columns: 1fr 1fr; }
.slots-half .slot { min-height: 66px; display: grid; place-content: center; gap: 2px; }
.slot span { font-size: 13px; font-weight: 500; opacity: 0.8; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.slot {
  min-height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: transparent;
  font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.slot:hover { border-color: var(--text); }
.slot[aria-pressed="true"] { background: var(--gold); border-color: var(--accent); color: var(--on-gold); }

.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(217, 185, 104, 0.35);
  margin-bottom: 18px; font-size: 15px;
}
.summary strong { display: block; }

.muted { color: var(--muted); }
.step-intro { margin: -6px 0 16px; font-size: 15px; }
#agenda { scroll-margin-top: 16px; }
#agenda.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } 100% { border-color: var(--line); box-shadow: none; } }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.loading { color: var(--muted); font-size: 15px; }
.loading::after { content: "…"; animation: blink 1s steps(1) infinite; }

/* ---------- Formulaire ---------- */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); font-size: 17px; /* ≥16px : pas de zoom iOS */
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { font-size: 13px; color: var(--danger); }
.row-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.privacy { font-size: 13px; color: var(--muted); margin: 4px 0 2px; }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 107, 91, 0.1); border: 1px solid rgba(255, 107, 91, 0.4); font-size: 15px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Confirmation ---------- */
.done { text-align: left; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 18px; padding: 8px 14px 8px 10px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--accent);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.back-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.check {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(217, 185, 104, 0.35); margin-bottom: 14px;
}
.done h2 { font-family: var(--display); font-size: clamp(26px, 7vw, 34px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 8px; }
.done .where { color: var(--muted); margin: 0 0 22px; }
.done .actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .done .actions { grid-template-columns: 1fr 1fr; } }

.discover { margin-top: 34px; }
.discover h3 { font-size: 17px; margin: 0 0 12px; }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.card-link {
  display: block; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line);
  text-decoration: none; transition: border-color 0.15s;
}
.card-link:hover { border-color: var(--line-strong); }
.card-link strong { display: block; margin-bottom: 2px; }
.card-link span { font-size: 13.5px; color: var(--muted); }
.card-link.soon { opacity: 0.55; pointer-events: none; }

/* ---------- Présentation ---------- */
.later { text-align: center; padding: 22px 0 8px; }
.later form { display: flex; gap: 8px; max-width: 440px; margin: 14px auto 0; }
.later input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 16px; }
.later .btn { min-height: 46px; font-size: 15px; padding: 0 18px; }

footer.foot { padding: 34px 16px 40px; text-align: center; font-size: 13px; color: var(--muted); }
footer.foot a { color: var(--muted); }

main { padding-bottom: 8px; }
.section-gap { margin-top: -8px; position: relative; z-index: 2; }

/* ---------- Pages simples (gérer, confidentialité, admin) ---------- */
.simple { padding-top: 90px; }
.simple h1 { font-family: var(--display); font-size: clamp(28px, 7vw, 40px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 18px; }
.prose p, .prose li { color: #d6d3cc; }
.prose h2 { font-size: 18px; margin: 28px 0 8px; }
