@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap");

/* ── Thème « Jaune billet » ── */
:root {
  --bg: #ffd60a;
  --bg-deep: #ffc300;
  --ink: #0b0b0c;
  --ink-soft: #3b3300;
  --paper: #fff8dc;
  --hot: #ff4d00;
  --pink: #ff2e88;
  --card: #0b0b0c;
  --card-text: #f5f2e8;
  --card-muted: #b9b4a6;
  --error: #c4001a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --shadow: 6px 6px 0 var(--ink);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgb(255 255 255 / 0.35), transparent 40%),
    radial-gradient(circle at 90% 60%, rgb(255 77 0 / 0.18), transparent 45%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--hot); }

::selection { background: var(--ink); color: var(--bg); }

/* ── Fond d'écran de logos de tournées (silhouettes à l'encre) ── */
.wallpaper { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.tour-logo {
  position: absolute;
  width: 200px;
  height: 110px;
  object-fit: contain;
  opacity: 0.12;
  user-select: none;
}
.tour-logo[src$=".svg"] { filter: brightness(0); }
@media (max-width: 600px) {
  .tour-logo { width: 150px; height: 84px; }
}

.wrap, .wrap-wide { position: relative; z-index: 1; margin: 0 auto; padding: 0 16px; }
.wrap { max-width: 880px; }
.wrap-wide { max-width: 1440px; padding: 0 clamp(16px, 3vw, 48px); }

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.status { background: var(--ink); color: var(--bg); padding: 6px 12px; }

.label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--hot);
  padding: 4px 10px;
  margin: 0 0 16px;
}

h1, h2 { font-family: var(--serif); font-weight: 900; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); }
h1 em, h2 em {
  font-style: italic;
  font-weight: 700;
  background: var(--ink);
  color: var(--bg);
  padding: 0 0.15em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin-bottom: 20px; }
h3 { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
  padding: 72px 0 104px;
}
.hero-text { max-width: 880px; }
.hero-text h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
.hero-text h1 em {
  white-space: nowrap;
  background: none;
  color: var(--ink);
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--hot);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  box-shadow: 0 0 0 0 rgb(255 59 59 / 0.7);
  animation: live 1.6s infinite;
}
@keyframes live { 70% { box-shadow: 0 0 0 8px rgb(255 59 59 / 0); } }

.hero-text .goal { font-size: 1.35rem; line-height: 1.45; margin: 28px 0 0; }
.hero-text .goal strong { background: var(--paper); padding: 0 6px; font-weight: 700; }
.hero-text .goal-sub { font-size: 1.05rem; line-height: 1.6; margin: 22px 0 0; padding-top: 18px; border-top: 2px dashed rgb(11 11 12 / 0.35); }
.hero-text .goal-sub strong { background: var(--paper); padding: 0 5px; font-weight: 700; }
.how-title {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.poc {
  display: block;
  width: fit-content;
  margin-bottom: 10px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.6;
}
.how {
  counter-reset: how;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 8px;
}
.how li {
  counter-increment: how;
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  line-height: 1.5;
}
.how li::before {
  content: counter(how);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.how b { font-weight: 700; }
.hero-text .pitch { font-size: 1.05rem; color: var(--ink-soft); margin: 20px 0 0; }
.hero-text .nope {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.hero-text .nope li { position: relative; padding-left: 22px; }
.hero-text .nope li::before { content: "✕"; position: absolute; left: 0; color: var(--error); }
.hero-text .waitlist-form { margin-top: 28px; max-width: 640px; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }

section { padding: 56px 0; border-top: 3px solid var(--ink); }
section p { color: var(--ink-soft); }
section p strong { color: var(--ink); }

.btn {
  display: inline-block;
  padding: 15px 26px;
  border: 3px solid var(--ink);
  background: var(--hot);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { background: var(--pink); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card);
  color: var(--card-text);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:nth-child(3n + 2) { transform: rotate(-0.8deg); }
.card:nth-child(3n) { transform: rotate(0.8deg); }
.card:hover { transform: translate(-3px, -3px) rotate(0); box-shadow: 9px 9px 0 var(--hot); }
.card h3 { color: var(--bg); }
.card p { margin: 0; font-size: 15px; color: var(--card-muted); }
.card .num { font-family: var(--mono); color: var(--hot); font-size: 12px; font-weight: 700; }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); margin: 24px 0; }
.stat { min-width: 0; background: var(--paper); border: 3px solid var(--ink); padding: 12px 16px; box-shadow: 4px 4px 0 var(--ink); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 5vw + 0.6rem, 2.3rem); font-weight: 900; color: var(--ink); line-height: 1.1; overflow-wrap: anywhere; }
.stat span { font-size: 14px; color: var(--ink-soft); }

.note { font-size: 13px; color: var(--ink-soft); font-family: var(--mono); }

.table-scroll { overflow-x: auto; background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow); margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 2px solid rgb(11 11 12 / 0.12); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--ink); color: var(--bg); font-weight: 700; }
td:last-child { font-family: var(--mono); font-weight: 700; color: #b83700; white-space: nowrap; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 18px 56px; color: var(--ink-soft); }
ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--bg); padding: 3px 8px;
}
ol.steps b { color: var(--ink); }

/* ── Formulaire ── */
.waitlist-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; max-width: 560px; }
.row { display: flex; gap: 0; flex-wrap: wrap; border: 3px solid var(--ink); background: var(--paper); box-shadow: var(--shadow); }
.row:focus-within { box-shadow: 6px 6px 0 var(--hot); }
.row .btn { border-width: 0 0 0 3px; }
input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
}
input[type="email"]::placeholder { color: #8a8266; }
input[type="email"]:focus { outline: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }
.consent input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-family: var(--mono); font-size: 14px; font-weight: 700; min-height: 1.4em; margin: 0; }
.msg.ok { color: var(--ink); }
.msg.err { color: var(--error); }

footer { padding: 32px 0 48px; border-top: 3px solid var(--ink); font-size: 13px; color: var(--ink-soft); }
footer p { margin: 4px 0; }

.legal { background: var(--paper); border: 3px solid var(--ink); box-shadow: var(--shadow); padding: 32px; margin-bottom: 40px; }
.legal h2 { font-family: var(--mono); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: #b83700; margin: 32px 0 8px; }
.legal p { color: var(--ink-soft); margin: 0 0 8px; }
.legal p strong { color: var(--ink); }

/* ── Illustration ── */
.crumpled { transform-box: fill-box; transform-origin: center; animation: toss 3.2s ease-in-out infinite; }
.lid { transform-box: fill-box; transform-origin: 0% 100%; animation: lid 3.2s ease-in-out infinite; }
.our-ticket { transform-box: fill-box; transform-origin: center; animation: float 5s ease-in-out infinite; }
@keyframes toss {
  0%, 100% { transform: translate(0, 0) rotate(-14deg); }
  50% { transform: translate(-6px, -14px) rotate(8deg); }
}
@keyframes lid {
  0%, 100% { transform: rotate(-24deg); }
  50% { transform: rotate(-32deg); }
}
@keyframes float {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(-3deg) translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .crumpled, .lid, .our-ticket { animation: none; }
}

/* ── Constats de l'audit ── */
.findings { list-style: none; padding: 0; margin: 28px 0 16px; display: grid; gap: 14px; }
.findings li {
  position: relative;
  padding: 14px 16px 14px 48px;
  background: var(--paper);
  border: 3px solid var(--ink);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.findings li::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--hot);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
}
.findings b { color: var(--ink); }

/* ── Sélecteur de langue (menu à drapeaux) ── */
.lang-menu { position: relative; margin-left: auto; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; font-size: 11px; }
.lang-menu[open] summary, .lang-menu summary:hover { background: var(--ink); color: var(--bg); }
.lang-menu img { display: block; width: 22px; height: 15px; object-fit: cover; outline: 1px solid rgb(11 11 12 / 0.25); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.lang-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}
.lang-menu li a:hover { background: var(--bg); color: var(--ink); }
.lang-menu li a[aria-current="page"] { background: var(--ink); color: var(--bg); }

/* ── Responsive ── */
/* Tablette et petits portables : hero sur une colonne */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 64px; }
  .hero-art { width: 100%; max-width: 440px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 600px) {
  body { font-size: 16px; }

  /* Barre du haut : question + langue sur la première ligne, engagement en pleine largeur dessous */
  .topbar { padding: 14px 0; gap: 10px 12px; letter-spacing: 0.1em; }
  .topbar > a { flex: 1 1 0; min-width: 0; }
  .lang-menu { order: 1; }
  .status { order: 2; flex-basis: 100%; font-size: 11px; letter-spacing: 0.08em; padding: 7px 10px; }
  .lang-menu summary { min-height: 36px; }

  /* Hero */
  .hero { gap: 32px; padding: 16px 0 56px; }
  .live-badge { margin-bottom: 16px; font-size: 11px; letter-spacing: 0.1em; }
  .hero-text h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .hero-text h1 em { white-space: normal; }
  .hero-text .goal { font-size: 1.15rem; margin-top: 18px; }
  .hero-text .goal-sub { font-size: 1rem; }
  .hero-text .waitlist-form { margin-top: 22px; }
  .hero-art { max-width: 340px; }

  /* Sections */
  h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  section { padding: 44px 0; }
  .card { padding: 18px; }
  ol.steps li { padding-left: 48px; }
  .legal { padding: 22px 18px; margin-bottom: 32px; }
  .legal h2 { margin-top: 26px; }
  footer { padding: 24px 0 40px; }

  /* Tableaux : deux colonnes fixes, valeurs autorisées à passer à la ligne (plus de scroll horizontal) */
  table { table-layout: fixed; }
  th, td { padding: 10px 12px; }
  th:first-child, td:first-child { width: 52%; }
  th:last-child, td:last-child { text-align: right; white-space: normal; overflow-wrap: anywhere; }
}

/* Petits mobiles : formulaire empilé */
@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .row { flex-direction: column; }
  .row input[type="email"] { flex: 0 0 auto; width: 100%; padding: 15px 14px; }
  .row .btn { border-width: 3px 0 0; width: 100%; padding: 15px; text-align: center; }
}
