/* ==========================================================================
   Topo Gloss - Feuille de style principale
   ========================================================================== */

:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eceff5;
  --ink: #131a26;
  --ink-2: #47536a;
  --ink-3: #7c879b;
  --line: #e2e7f0;
  --brand: #1b2a41;
  --brand-2: #26374f;
  --accent: #2f7bff;
  --accent-dark: #1f5fd6;
  --accent-soft: #e8f0ff;
  --gold: #c69b3f;
  --gold-soft: #fdf5e4;
  --success: #159a5a;
  --success-soft: #e6f7ee;
  --warn: #c47d0a;
  --warn-soft: #fdf3e2;
  --danger: #d0402f;
  --danger-soft: #fdecea;
  --shadow-sm: 0 2px 8px rgba(19, 26, 38, 0.05);
  --shadow: 0 4px 16px rgba(19, 26, 38, 0.06);
  --shadow-lg: 0 14px 34px rgba(19, 26, 38, 0.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --nav-h: 68px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body.has-bottom-nav {
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 14px);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 18px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

.section { padding: 26px 0; }
.section-tight { padding: 16px 0; }
.section-head { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 6px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.lede { color: var(--ink-2); font-size: 15px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.stack { display: grid; gap: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   En-tete
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(150deg, #1b2a41 0%, #22344f 55%, #16202f 100%);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  box-shadow: 0 6px 20px rgba(19, 26, 38, 0.16);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(140deg, var(--accent) 0%, #6ba3ff 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff; flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(47, 123, 255, 0.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small { font-size: 10.5px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.04em; }
.topbar .btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.topbar .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.topnav { display: none; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: transform 0.12s ease, background 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 4px 14px rgba(47, 123, 255, 0.24);
  text-align: center;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn-block { width: 100%; }
.btn-dark { background: var(--brand); box-shadow: 0 4px 14px rgba(19, 26, 38, 0.22); }
.btn-dark:hover { background: #0f1b2c; }
.btn-soft { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn-soft:hover { background: var(--surface-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: none; border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; border: 1px solid #f3c9c3; }
.btn-danger:hover { background: #fbdedb; color: var(--danger); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 11px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 9px; box-shadow: none; }
.btn[disabled], .btn.is-disabled { opacity: 0.55; pointer-events: none; }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 231, 240, 0.9);
}
.card + .card { margin-top: 14px; }
.card-flush { padding: 0; overflow: hidden; }
.card-dark {
  background: linear-gradient(160deg, #1b2a41, #24374f);
  color: #fff;
  border-color: transparent;
}
.card-dark h2, .card-dark h3 { color: #fff; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-head h3 { margin: 0; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; grid-template-columns: 1fr; }

/* --------------------------------------------------------------------------
   Accueil
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(155deg, #16202f 0%, #22344f 50%, #1b2a41 100%);
  color: #fff;
  padding: 34px 0 30px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 123, 255, 0.5) 0%, rgba(47, 123, 255, 0) 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 30px; margin-bottom: 12px; }
.hero p { color: rgba(255, 255, 255, 0.78); font-size: 15.5px; max-width: 560px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px;
}
.hero-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 600;
}
.hero-trust svg { width: 14px; height: 14px; }

.hero-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 22px;
}
.hero-photo img { width: 100%; height: 210px; object-fit: cover; }

/* --------------------------------------------------------------------------
   Statistiques
   -------------------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 231, 240, 0.9);
}
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.stat-icon {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.stat-icon svg { width: 18px; height: 18px; }
.stat.green .stat-icon { background: var(--success-soft); color: var(--success); }
.stat.gold .stat-icon { background: var(--gold-soft); color: var(--gold); }
.stat.warn .stat-icon { background: var(--warn-soft); color: var(--warn); }

/* --------------------------------------------------------------------------
   Prestations
   -------------------------------------------------------------------------- */

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 231, 240, 0.9);
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.16s ease;
}
.service-card:active { transform: scale(0.99); }
.service-card img { width: 100%; height: 170px; object-fit: cover; background: var(--surface-3); }
.service-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-body h3 { font-size: 16.5px; margin: 0; }
.service-body p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.service-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.price { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); display: block; }
.duration {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: var(--surface-2); border-radius: 999px; padding: 5px 10px;
}
.duration svg { width: 13px; height: 13px; }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s ease, background 0.16s ease;
}
.chip:active { transform: scale(0.96); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   Etapes
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  display: flex; gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 231, 240, 0.9);
}
.step-num {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.step h3 { font-size: 15.5px; margin: 0 0 4px; }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Avis
   -------------------------------------------------------------------------- */

.review {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 231, 240, 0.9);
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex: 0 0 auto;
}
.review-head b { display: block; font-size: 14px; }
.review-head small { color: var(--ink-3); font-size: 12px; }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; }
.review p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--success);
  background: var(--success-soft); border-radius: 999px; padding: 4px 9px; margin-top: 10px;
}
.verified svg { width: 12px; height: 12px; }

.rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-soft); color: #8a6a1f;
  border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px;
}
.rating-badge svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Etiquettes / badges
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 4px 10px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.01em;
  background: var(--surface-3); color: var(--ink-2);
}
.badge-blue { background: var(--accent-soft); color: var(--accent-dark); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-gold { background: var(--gold-soft); color: #8a6a1f; }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-dark { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   Formulaires
   -------------------------------------------------------------------------- */

.field { display: block; margin-bottom: 14px; }
.field > label, .field-label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink);
}
.field small.hint { display: block; font-size: 12px; color: var(--ink-3); margin-top: 5px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="time"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c879b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.14);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--accent); }

/* Choix (cartes radio) */
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-label {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.choice-label:active { transform: scale(0.99); }
.choice input:checked + .choice-label {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.1);
}
.choice-label b { display: block; font-size: 14px; }
.choice-label small { display: block; color: var(--ink-3); font-size: 12px; }
.choice-mark {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); flex: 0 0 auto; margin-left: auto;
  display: flex; align-items: center; justify-content: center;
}
.choice input:checked + .choice-label .choice-mark { border-color: var(--accent); background: var(--accent); }
.choice input:checked + .choice-label .choice-mark::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
}

/* Service selector lines */
.pick {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.pick:active { transform: scale(0.995); }
.pick input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.pick-body { flex: 1; min-width: 0; }
.pick-body b { display: block; font-size: 14.5px; }
.pick-body small { display: block; font-size: 12.5px; color: var(--ink-3); }
.pick-price { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.pick:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Créneaux
   -------------------------------------------------------------------------- */

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.slot {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 11px 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.16s ease, background 0.16s ease;
}
.slot:active { transform: scale(0.96); }
.slot.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }

/* --------------------------------------------------------------------------
   Récapitulatif
   -------------------------------------------------------------------------- */

.summary {
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.summary-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 14px; padding: 6px 0;
}
.summary-line span { color: var(--ink-2); }
.summary-line b { font-weight: 700; }
.summary-total {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px;
}
.summary-total b { font-size: 22px; font-weight: 800; }

/* --------------------------------------------------------------------------
   Listes de rendez-vous
   -------------------------------------------------------------------------- */

.booking-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 231, 240, 0.9);
  padding: 16px;
  margin-bottom: 12px;
}
.booking-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.booking-ref { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--ink-3); }
.booking-when { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.date-box {
  flex: 0 0 auto; width: 48px; text-align: center;
  background: var(--brand); color: #fff; border-radius: 13px; padding: 7px 0;
}
.date-box b { display: block; font-size: 18px; line-height: 1; }
.date-box span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; }
.booking-when .when-text b { display: block; font-size: 14.5px; }
.booking-when .when-text small { color: var(--ink-3); font-size: 12.5px; }
.booking-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.booking-services .badge { font-weight: 700; }
.booking-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }

/* --------------------------------------------------------------------------
   Barre de navigation basse
   -------------------------------------------------------------------------- */

.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 231, 240, 0.9);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px;
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 14px;
  transition: transform 0.12s ease, background 0.16s ease, color 0.16s ease;
}
.bottom-nav a svg { width: 21px; height: 21px; }
.bottom-nav a:active { transform: scale(0.94); }
.bottom-nav a.is-active {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(19, 26, 38, 0.2);
}
.bottom-nav a.is-active span { color: #fff; }
.bottom-nav svg { display: block; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.footer {
  background: #16202f;
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 0 26px;
  margin-top: 26px;
}
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 8px; }
.footer a { color: rgba(255, 255, 255, 0.78); font-size: 13.5px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 20px; padding-top: 16px;
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
  display: flex; flex-direction: column; gap: 8px;
}

/* --------------------------------------------------------------------------
   Alertes / messages
   -------------------------------------------------------------------------- */

.alert {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-soft); color: #12693f; border-color: #bfe6d0; }
.alert-error { background: var(--danger-soft); color: #9c2c1c; border-color: #f3c9c3; }
.alert-info { background: var(--accent-soft); color: #1c4fa8; border-color: #c6daff; }
.alert-warn { background: var(--warn-soft); color: #8a5a06; border-color: #f2dcb0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 18px);
  transform: translate(-50%, 20px);
  background: var(--brand);
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* --------------------------------------------------------------------------
   Divers
   -------------------------------------------------------------------------- */

.empty {
  text-align: center;
  padding: 34px 18px;
  color: var(--ink-3);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}
.empty svg { width: 34px; height: 34px; margin-bottom: 10px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.contact-list { display: grid; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 14px; padding: 13px 14px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.contact-item svg { width: 19px; height: 19px; color: var(--accent); flex: 0 0 auto; }
.contact-item b { display: block; font-size: 14px; }
.contact-item small { color: var(--ink-3); font-size: 12px; }

.zone-list { display: grid; gap: 10px; }
.zone-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border-radius: 14px; padding: 13px 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.zone-item b { font-size: 14px; }
.zone-item .zone-code {
  width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Tableaux (administration)
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 231, 240, 0.9);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.data-table th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table b { font-weight: 700; }
.td-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Admin - écrans
   -------------------------------------------------------------------------- */

.admin-body { background: var(--bg); }
.admin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.admin-head h1 { font-size: 22px; margin: 0; }
.admin-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 8px 2px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; max-width: 44px; border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, var(--accent) 0%, #7aa8ff 100%);
  min-height: 4px;
}
.bar-col span { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.bar-col b { font-size: 11px; font-weight: 800; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* --------------------------------------------------------------------------
   Écran d'ouverture
   -------------------------------------------------------------------------- */

#app-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #1b2a41;
  color: #fff;
}
#app-splash.show { display: flex; animation: splashOut 0.4s ease 1.2s forwards; }
#app-splash b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
#app-splash img { width: 96px; height: 96px; border-radius: 22px; }
#app-splash.admin { background: #101a2a; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* --------------------------------------------------------------------------
   Bandeau installation
   -------------------------------------------------------------------------- */

.install-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.install-card .install-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.install-card .install-icon svg { width: 22px; height: 22px; }
.install-card b { display: block; font-size: 14.5px; }
.install-card small { display: block; color: var(--ink-3); font-size: 12.5px; }
.install-card .btn { margin-left: auto; flex: 0 0 auto; }

.stores { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.stores span {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 12px; padding: 9px 13px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.stores svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Modale
   -------------------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 21, 32, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.modal-box {
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-box h3 { margin-bottom: 8px; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--surface-3); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal-close svg { width: 17px; height: 17px; }
.modal-steps { counter-reset: ms; padding-left: 0; list-style: none; margin: 14px 0; }
.modal-steps li {
  position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 14px; color: var(--ink-2);
}
.modal-steps li::before {
  counter-increment: ms; content: counter(ms);
  position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* --------------------------------------------------------------------------
   Authentification
   -------------------------------------------------------------------------- */

.auth-hero {
  background: linear-gradient(160deg, #16202f 0%, #22344f 100%);
  color: #fff;
  padding: 30px 0 26px;
  text-align: center;
}
.auth-hero h1 { font-size: 24px; }
.auth-hero p { color: rgba(255, 255, 255, 0.75); font-size: 14px; margin: 0; }
.auth-logo {
  width: 62px; height: 62px; border-radius: 20px; margin: 0 auto 14px;
  background: linear-gradient(140deg, var(--accent) 0%, #6ba3ff 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  box-shadow: 0 10px 26px rgba(47, 123, 255, 0.34);
}
.auth-switch { text-align: center; font-size: 13.5px; color: var(--ink-2); margin-top: 14px; }

/* --------------------------------------------------------------------------
   Admin connecté
   -------------------------------------------------------------------------- */

.admin-topbar {
  background: linear-gradient(150deg, #101a2a 0%, #1b2a41 100%);
  color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 6px 20px rgba(19, 26, 38, 0.18);
}
.admin-topbar .topbar-inner { min-height: 56px; }
.admin-topbar .brand-mark { background: linear-gradient(140deg, #c69b3f, #e2c176); box-shadow: 0 4px 12px rgba(198, 155, 63, 0.34); }
.bottom-nav.admin-nav a.is-active { background: #1b2a41; }
.bottom-nav.admin-nav a.is-active span { color: #fff; }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }

/* --------------------------------------------------------------------------
   Apparition au defilement
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
.reviews-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Grands écrans
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
  body { font-size: 15.5px; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .section { padding: 40px 0; }

  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 17px; }
  .hero-actions { flex-direction: row; }
  .hero-inner-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
  .hero-photo { margin-top: 0; }
  .hero-photo img { height: 380px; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .field-full { grid-column: 1 / -1; }
  .slots { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .modal { align-items: center; }
  .modal-box { border-radius: 22px; margin: 0 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (min-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .topnav {
    display: flex; align-items: center; gap: 4px;
  }
  .topnav a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13.5px; font-weight: 600;
    padding: 9px 13px; border-radius: 11px;
    transition: background 0.16s ease, color 0.16s ease;
  }
  .topnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
  .topnav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.16); }
  .bottom-nav { display: none; }
  body.has-bottom-nav { padding-bottom: 24px; }
  .mobile-only { display: none !important; }
}

@media (max-width: 359px) {
  .slots { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
}
