/* Notre Verre — feuille de style unique du site public.
   Servie telle quelle par Firebase Hosting depuis /public : aucun build, aucune dépendance.
   Palette « Velours Noir », identique aux jetons de src/styles/themes.js (thème A, par défaut).
   Aucune police externe : la pile système évite une requête vers un tiers, donc tout traceur. */

:root {
  --bg: #0c0c11;
  --surface: #14141c;
  --surface-soft: #1e1e2a;
  --ink: #ede8e3;
  --muted: #858597;
  --soft: #9090a8;
  --line: #252535;
  --line-strong: #32324a;
  /* Le rose clair sert d'ACCENT EN TEXTE (5,09:1 sur le fond sombre). */
  --accent: #d5658e;
  /* Le rose profond sert d'APLAT sous du texte blanc : le clair n'y donnerait que 3,60:1. */
  --accent-fill: #b84a70;
  --accent-soft: rgba(212, 96, 138, 0.14);
  --gold: #e8c87a;
  --gold-soft: rgba(232, 200, 122, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.10);
  --maxw: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ── En-tête ───────────────────────────────────────────────────────────────── */

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 12, 17, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
/* Le logo est l'icône de l'application : fond crème, donc un aplat clair sur une barre sombre.
   Les coins arrondis l'assument comme une icône plutôt que de le faire passer pour une tache. */
.brand-mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--ink); }

/* ── Seuil (accueil uniquement) ────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 84px 0 72px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* L'image de voile n'apparaît que sur le seuil, comme dans l'application. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("voile.jpg") center / cover no-repeat;
  opacity: 0.34;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 17, 0.55) 0%, rgba(12, 12, 17, 0.82) 55%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(32px, 7vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: clamp(17px, 3.4vw, 20px);
  color: var(--ink);
  opacity: 0.9;
  margin: 0 auto 28px;
  max-width: 30em;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(232, 200, 122, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

/* ── Titres et texte ───────────────────────────────────────────────────────── */

main { padding: 46px 0 20px; }

h1.page-title {
  font-size: clamp(27px, 6vw, 36px);
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.updated { color: var(--muted); font-size: 14px; margin: 0 0 34px; }

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 34px; }
h3 { font-size: 17px; margin: 26px 0 8px; color: var(--accent); }

p { margin: 0 0 15px; }
a { color: var(--accent); }
strong { color: #fff; font-weight: 600; }
ul, ol { margin: 0 0 15px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--accent); }

/* ── Composants ────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 18px;
}
.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(212, 96, 138, 0.32);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 22px;
}
.callout.gold { background: var(--gold-soft); border-color: rgba(232, 200, 122, 0.32); }
.callout.warn { background: var(--danger-soft); border-color: rgba(248, 113, 113, 0.32); }
.callout > :last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--accent-fill);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Téléchargement ────────────────────────────────────────────────────────── */

.download { text-align: center; }
.download .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 18px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
/* Deux lignes dans un bouton : la petite au-dessus (« Télécharger sur »), le nom de la boutique
   en dessous. C'est la convention des badges officiels, sans en embarquer les images. */
.btn.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 26px;
  line-height: 1.25;
  text-align: left;
}
.btn.store small { font-size: 11px; font-weight: 600; opacity: 0.85; }
.btn.store b { font-size: 16px; font-weight: 700; }
/* Tant que la fiche n'existe pas, le bouton n'est PAS un lien : un href vers une page absente
   renverrait une 404 aux visiteurs. Le `span` le rend inerte sans casser la mise en page. */
.btn.store.bientot {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  cursor: default;
}
.btn.store.bientot:hover { filter: none; }

.mail {
  display: inline-block;
  font-weight: 700;
  font-size: 17px;
  word-break: break-all;
}

/* Emplacement non renseigné. Volontairement CRIARD : un tel bloc ne doit jamais
   survivre à une mise en ligne sans qu'on le remarque. */
.todo {
  background: #d43a3a;
  color: #fff;
  font-weight: 700;
  font-size: 0.92em;
  padding: 1px 7px;
  border-radius: 5px;
  white-space: normal;
}

/* Étapes du parcours */
.steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px 20px 68px;
  margin-bottom: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin: 0 0 4px; color: var(--ink); font-size: 18px; }
.steps .dur { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.03em; }
.steps p { margin: 6px 0 0; color: var(--soft); font-size: 15px; }

/* Listes de promesses */
.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Tableaux (sous-traitants, tarifs) */
.table-scroll { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* ── Pied de page ──────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 14px;
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
footer nav a { color: var(--soft); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer p { margin: 0 0 6px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; gap: 8px; }
  .topbar { position: static; }
  .topbar nav { gap: 8px 16px; }
  .hero { padding: 60px 0 52px; }
  .steps li { padding: 18px 18px 18px 18px; }
  .steps li::before { position: static; margin-bottom: 10px; }
  .card { padding: 18px; }
}
