/* GoHot v3 — manifeste : typographie d’abord, peu d’icônes, mobile first. */
:root {
  --bg: #060304;
  --bg2: #0c0707;
  --text: #f3ebdd;
  --muted: #c4b9a5;
  --faint: #a89f8e;
  --gold: #d4a55a;
  --gold-soft: #ecd09a;
  --line: rgba(212, 165, 90, 0.4);
  --line-soft: rgba(212, 165, 90, 0.14);
  --red: #c8262d;
  --danger: #ff9a8a;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", "Helvetica Neue", sans-serif;
  --gut: 1.4rem;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-weight: 300; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, p, li, summary, .opt, .btn { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--gold); color: #140c06; padding: 0.6rem 0.9rem; border-radius: 8px; z-index: 50; }
.skip:focus { top: 0.5rem; }
.wrap { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 41rem; }

/* en-tête */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 3.25rem; padding-inline: var(--gut);
  background: rgba(6, 3, 4, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.02em; }
.brand img { border-radius: 50%; }
/* sélecteur de langue discret (<details>, sans JS) */
.langs { position: relative; font-size: 0.78rem; letter-spacing: 0.16em; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 0.2rem; color: var(--muted); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--gold); }
.langs ul { position: absolute; right: 0; top: 2.6rem; margin: 0; padding: 0.4rem; list-style: none; min-width: 11.5rem; background: #0c0707; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); }
.langs li a { display: block; padding: 0.6rem 0.8rem; border-radius: 8px; text-decoration: none; letter-spacing: 0.04em; font-size: 0.95rem; color: var(--text); }
.langs li a:hover, .langs li a:focus-visible { background: rgba(212, 165, 90, 0.12); }
.langs li a[aria-current] { color: var(--gold); }

/* typographie commune */
.label { margin: 0 0 1rem; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.95rem, 7.4vw, 3.2rem); line-height: 1.04; margin: 0 0 1rem; letter-spacing: -0.005em; }
.intro { margin: 0 0 1.6rem; color: var(--muted); max-width: 38rem; }
.note { margin: 1.6rem 0 0; font-size: 0.9rem; color: var(--faint); font-style: italic; }
.fine { margin: 0.9rem 0 0; font-size: 0.875rem; color: var(--faint); text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.1rem; padding: 0 1.5rem;
  background: var(--gold); color: #160d06; border: 0; border-radius: 999px; font-weight: 500; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--gold-soft); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { min-height: 2.6rem; padding: 0 1.2rem; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(212, 165, 90, 0.1); }
.textlink { background: none; border: 0; padding: 0.4rem 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.25em; font-size: 0.95rem; }
.textlink:hover { color: var(--gold-soft); }
.textlink.center { display: block; margin: 0.8rem auto 0; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

/* hero */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100svh - 3.25rem); padding: 2rem 0 2.5rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% 108%, rgba(200, 38, 45, 0.34), transparent 62%),
    radial-gradient(70% 40% at 88% 0%, rgba(212, 165, 90, 0.12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-in { position: relative; z-index: 1; }
.kicker { margin: 0 0 1.6rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; line-height: 1.8; }
.hero h1 { margin: 0 0 1.6rem; font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 11.4vw, 6.4rem); line-height: 1; letter-spacing: -0.01em; }
.hero h1 span { display: block; }
.hero h1 .l2 { font-style: italic; color: var(--gold); }
.lead { margin: 0; max-width: 34rem; font-size: 1.12rem; color: var(--text); font-weight: 300; }
.status { margin: 1.6rem 0 0; max-width: 32rem; font-size: 0.9rem; color: var(--faint); border-left: 1px solid var(--line); padding-left: 0.9rem; }
.hero-cta { display: flex; margin-top: 1.6rem; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem; }

/* manifeste */
.mani { padding: 4.5rem 0 3rem; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.thesis { position: relative; margin: 0; padding: 2.2rem 0 2.4rem; border-top: 1px solid var(--line-soft); overflow: hidden; }
.thesis:first-of-type { border-top: 0; }
.th-n { position: absolute; right: -0.2rem; top: 0.2rem; font-family: var(--serif); font-size: 6.5rem; line-height: 1; color: var(--gold); opacity: 0.12; pointer-events: none; }
.th-k { display: block; margin-bottom: 0.7rem; font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.thesis p { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 7.4vw, 3rem); line-height: 1.08; position: relative; }
.th-b { font-style: italic; color: var(--gold-soft); }

/* application */
.app { padding: 4.5rem 0; border-top: 1px solid var(--line-soft); }
.feat { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: none; }
.feat li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; padding: 1.25rem 0; border-top: 1px solid var(--line-soft); }
.feat li:last-child { border-bottom: 1px solid var(--line-soft); }
.f-n { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); line-height: 1.5; }
.feat h3 { margin: 0 0 0.25rem; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.15; }
.feat p { margin: 0; color: var(--muted); font-size: 1rem; }

/* inscription + questionnaire */
.start { padding: 4.5rem 0; border-top: 1px solid var(--line-soft); background: radial-gradient(90% 50% at 50% 0%, rgba(200, 38, 45, 0.12), transparent 70%), var(--bg2); }
.wiz { margin-top: 1.8rem; }
.wiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.step[hidden], .wiz-head[hidden] { display: none; }
.lbl { display: block; margin-bottom: 0.45rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.field {
  width: 100%; min-height: 3.2rem; padding: 0.8rem 1rem; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line);
  border-radius: 14px; font-size: 1.05rem; font-weight: 400;
}
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 165, 90, 0.18); }
.area { resize: vertical; min-height: 8rem; line-height: 1.5; }
.consent { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.7rem; margin: 1.1rem 0 0.4rem; font-size: 0.86rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 1.3rem; height: 1.3rem; margin: 0.12rem 0 0; border: 1px solid var(--gold); border-radius: 6px; background: rgba(0, 0, 0, 0.45); display: grid; place-content: center; cursor: pointer; }
.consent input::after { content: ""; width: 0.32rem; height: 0.66rem; border: solid #160d06; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -0.12rem; transition: transform 0.12s; }
.consent input:checked { background: var(--gold); }
.consent input:checked::after { transform: rotate(45deg) scale(1); }
.msg { min-height: 1.4rem; margin: 0.6rem 0; font-size: 0.9rem; color: var(--danger); }
.msg:empty { min-height: 0.4rem; margin: 0.2rem 0; }

.wiz-head { margin: 0 0 1.8rem; }
.bar, .meter { height: 2px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.fill { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.35s ease; }
.count { margin: 0.6rem 0 0; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

.q-title { margin: 0 0 0.6rem; padding: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1.1; }
.q-n { display: none; }
.q-hint { margin: 0 0 1.3rem; color: var(--muted); font-size: 0.98rem; }
.opts { display: grid; gap: 0.55rem; }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; min-height: 3.3rem; padding: 0.55rem 1.05rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, 0.3); cursor: pointer; font-weight: 400; line-height: 1.35; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.opt:hover { border-color: var(--gold); }
.opt:has(input:checked) { background: var(--gold); border-color: var(--gold); color: #160d06; }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.is-multi .opt { min-height: 2.9rem; font-size: 0.96rem; }
.opt-n { flex: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; min-width: 1rem; text-align: right; }
.nav { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 1.2rem; padding: 0.8rem 0 calc(0.8rem + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(12, 7, 7, 0), var(--bg2) 28%); }
.start.is-survey { min-height: calc(100svh - 3.25rem); }
.is-survey .label, .is-survey .h2, .is-survey .intro { display: none; }
.is-survey .opts { padding-bottom: 0.4rem; }
.is-survey .wiz { margin-top: 0; }
.nav-r { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav .textlink, .nav .btn { white-space: nowrap; hyphens: manual; }
.nav > .textlink { flex-shrink: 0; }
@media (max-width: 400px) { .nav .btn-sm { padding: 0 0.95rem; } .nav .textlink { font-size: 0.88rem; } }
.saved { flex: 1 1 0; min-width: 0; text-align: center; font-size: 0.78rem; color: var(--faint); opacity: 0; transition: opacity 0.3s; }
.saved.on { opacity: 1; }
.flash { animation: flash 0.5s ease; }
@keyframes flash { 30% { color: var(--danger); } }

/* résultat + parrainage */
.portrait { margin: 0 0 0.8rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 5.6vw, 2rem); line-height: 1.25; color: var(--gold-soft); }
.ref { margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--line-soft); }
.ref-t { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 6.4vw, 2.2rem); line-height: 1.1; }
.linkrow { margin-bottom: 0.7rem; }
.linkrow .field { font-size: 0.95rem; }
.ref-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.ref-pos { margin: 0 0 0.8rem; color: var(--gold-soft); }
.meter { margin: 0.6rem 0; }
.ref-count { margin: 0; font-size: 0.9rem; color: var(--muted); }
.ref-next { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--faint); }
.is-done [data-step="join"] { display: none; }
.is-done .wiz-head { display: none; }

/* paliers */
.tiers { padding: 4.5rem 0; border-top: 1px solid var(--line-soft); }
.tier-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.tier-list li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0.5rem; align-items: baseline; padding: 1.3rem 0; border-top: 1px solid var(--line-soft); }
.tier-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.t-n { font-family: var(--serif); font-weight: 500; font-size: 3.4rem; line-height: 0.9; color: var(--gold); }
.tier-list h3 { margin: 0 0 0.2rem; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.tier-list p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.tiers .btn { margin-top: 1.4rem; }

/* pied de page */
.foot { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 0.85rem; line-height: 1.6; background: #040203; }
.foot p { margin: 0 0 0.6rem; }
.foot-brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }
.foot-brand img { border-radius: 50%; }
.legal { margin: 1.2rem 0; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.legal p { margin: 0 0 0.25rem; }
.copy { margin-top: 1rem; }

/* appel à l'action de fin de manifeste et CTA flottant */
.mani-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin: 2rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line-soft); font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold-soft); }
.mani-cta .btn { font-family: var(--sans); font-style: normal; }
.sticky-cta { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6); }
.hero-wm { display: none; }

/* apparition douce */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .fill { transition: none; }
}

/* guides à venir */
.guides { padding: 4.5rem 0; border-top: 1px solid var(--line-soft); background: var(--bg2); }
.guide-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.guide { position: relative; padding: 1.5rem 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(212, 165, 90, 0.04); overflow: hidden; }
.guide .g-n { position: absolute; right: 1rem; top: 0.2rem; font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--gold); opacity: 0.12; }
.guide h3 { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.12; color: var(--gold-soft); }
.guide p { margin: 0; color: var(--muted); }

/* page de choix de langue (racine sans Accept-Language) */
.pick { min-height: 100svh; display: grid; place-items: center; }
.pick-in { text-align: center; padding: 2rem var(--gut); }
.pick-in img { border-radius: 50%; }
.pick-in h1 { margin: 0.6rem 0 0; font-family: var(--serif); font-weight: 600; font-size: 2.6rem; }
.pick-sub { margin: 0 0 1.6rem; color: var(--gold); letter-spacing: 0.3em; font-size: 0.8rem; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.pick-list a { display: block; min-width: 14rem; padding: 0.8rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pick-list a:hover { background: rgba(212, 165, 90, 0.12); }

/* grands écrans */
@media (min-width: 900px) {
  .hero-wm { display: block; position: absolute; right: 1%; top: 68%; width: min(25vw, 380px); aspect-ratio: 690 / 704; transform: translateY(-50%); opacity: 0.13; pointer-events: none; background: url(/assets/flame-wm.webp) center / contain no-repeat; }
  .lead { max-width: 36rem; font-size: 1.25rem; }
  .status { font-size: 0.98rem; }
  .sticky-cta { display: none; }
}
@media (min-width: 760px) {
  :root { --gut: 2.5rem; }
  body { font-size: 1.125rem; }
  .top { height: 3.6rem; }
  .hero { min-height: calc(100svh - 3.6rem); }
  .hero-in { max-width: 62rem; }
  .mani .wrap, .app .wrap { max-width: 62rem; }
  .thesis { padding: 3.2rem 0 3.4rem; }
  .th-n { font-size: 11rem; right: 0; top: 0; }
  .feat li { grid-template-columns: 4rem 15rem 1fr; align-items: baseline; padding: 1.5rem 0; }
  .feat li > div { display: contents; }
  .feat h3 { grid-column: 2; }
  .feat p { grid-column: 3; }
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .guides .wrap { max-width: 62rem; }
  .opts { grid-template-columns: 1fr 1fr; }
  .opts:not(.is-multi) .opt:last-child:nth-child(odd) { grid-column: span 2; }
  .q-tools .opts, .q-profile_type .opts { grid-template-columns: 1fr 1fr; }
}
