@import url("fonts.css");

/* ============================================================
   Burn The Planet — feuille de style unique du site statique.
   Reprend l'identité de la boutique Shopify : fond noir,
   planète à moitié brûlée, orange flamme + vert.
   ============================================================ */

:root {
  --ink: #000000;
  --ink-soft: #0d0d0d;
  --ink-card: #161616;
  --line: #2a2a2a;
  --paper: #ffffff;
  --text: #e9e9e9;
  --text-dim: #a5a5a5;

  --flame: #ee5a12;
  --flame-hot: #f79a1e;
  --green: #46b13c;
  --green-deep: #2b7d24;
  --teal: #12756a;

  --w-page: 1200px;
  --w-text: 62ch;
  --r: 14px;
  --pad-section: clamp(3rem, 7vw, 6rem);

  --font-display: "Luckiest Guy", "Fira Sans", system-ui, sans-serif;
  --font-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--flame-hot); }
a:hover { color: var(--flame); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1em; }

.wrap {
  width: min(100% - 2.5rem, var(--w-page));
  margin-inline: auto;
}

.section { padding-block: var(--pad-section); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text);
  max-width: var(--w-text);
}

.dim { color: var(--text-dim); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: .6rem 1rem;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--flame-hot);
  outline-offset: 3px;
}

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

.btn {
  --btn-bg: var(--flame);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border: 2px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--flame); color: #fff; }
.btn--green { --btn-bg: var(--green-deep); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .02em;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; }

.nav { display: flex; gap: .25rem; align-items: center; }

.nav a {
  padding: .5rem .8rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
}
.nav a:hover { background: #ffffff14; color: #fff; }
.nav a[aria-current="page"] { color: var(--flame-hot); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  padding: .5rem .7rem;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0b0b0b;
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .85rem .4rem; border-radius: 0; }
  .nav a + a { border-top: 1px solid var(--line); }
}

/* ---------- Héro ---------- */

.hero {
  position: relative;
  background: #000 url("../../img/bg-stars.webp") center/cover;
  border-bottom: 1px solid var(--line);
}
.hero picture img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  margin-inline: auto;
}

/* ---------- Pitch ---------- */

.pitch { text-align: center; }
.pitch h1 { margin-bottom: .35em; }
.pitch .lede { margin-inline: auto; }

.specs {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.specs li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.specs img { width: 44px; height: 44px; }
.specs b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: #fff;
}
.specs span { color: var(--text-dim); font-size: .9rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ---------- Galerie photo ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r);
}

/* ---------- Bandeau de preuves ---------- */

.proof {
  background: var(--ink-soft);
  border-block: 1px solid var(--line);
}
.proof ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}
.proof li {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.proof img { width: 46px; height: 46px; flex: none; object-fit: contain; }
.proof b { display: block; color: #fff; font-size: 1.02rem; }
.proof span { color: var(--text-dim); font-size: .9rem; line-height: 1.45; }

.punchline {
  margin: 2.5rem auto 0;
  max-width: 46ch;
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: #fff;
}

/* ---------- Grilles de cartes ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
}
.card img { border-radius: 10px; margin-bottom: 1.1rem; }
.card h3 { color: #fff; margin-bottom: .4rem; }
.card p { color: var(--text-dim); margin: 0; font-size: .95rem; }

/* ---------- Étapes illustrées ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.steps img {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: #fff;
}

.rule-callout {
  margin: 2.5rem auto 0;
  max-width: 40ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--green);
}

/* ---------- Carrousel ---------- */

.carousel { position: relative; margin-top: 2rem; }
.carousel + * { margin-top: 1rem; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 340px);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.carousel__track > * { scroll-snap-align: center; }

.carousel__nav[hidden] { display: none; }

.carousel__nav {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: .5rem;
}
.carousel__nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff10;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.carousel__nav button:hover { background: #ffffff24; }

.action-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.action-card img { background: #fff; }
.action-card__body { padding: 1.25rem; font-size: .93rem; color: var(--text-dim); }
.action-card__body p { margin: 0 0 .7em; }
.action-card__body p:last-child { margin-bottom: 0; }
.action-card__body strong { color: #fff; }

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

.reviews { background: var(--ink-soft); border-block: 1px solid var(--line); }

.review {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review blockquote { margin: 0; color: var(--text); font-size: .98rem; }
.review cite { color: var(--flame-hot); font-style: normal; font-weight: 600; font-size: .9rem; }
.review .stars { color: var(--flame-hot); letter-spacing: .12em; font-size: .85rem; }

/* ---------- Presse ---------- */

.press {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.press a {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem;
  height: 100%;
  transition: border-color .15s ease;
}
.press a:hover { border-color: var(--flame); }
.press img {
  height: 42px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: .35rem .6rem;
  margin-bottom: 1rem;
}
.press b { display: block; color: #fff; margin-bottom: .3rem; }
.press span { color: var(--text-dim); font-size: .9rem; }

/* ---------- Accordéon ---------- */

.accordion { border-top: 1px solid var(--line); margin-top: 2rem; }

.accordion details { border-bottom: 1px solid var(--line); }

.accordion summary {
  cursor: pointer;
  padding: 1.2rem .25rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #fff;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.6rem;
  color: var(--flame);
  line-height: 1;
}
.accordion details[open] summary::after { content: "–"; }
.accordion__body { padding: 0 .25rem 1.5rem; }
.accordion__body p { max-width: var(--w-text); }
.accordion__body img {
  width: 220px;
  border-radius: 10px;
  background: #fff;
  float: right;
  margin: 0 0 1rem 1.5rem;
}
@media (max-width: 620px) {
  .accordion__body img { float: none; margin: 0 auto 1.25rem; }
}

/* ---------- Vidéo ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  margin-inline: auto;
  max-width: 900px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Façade cliquable : pas d'appel YouTube tant que l'internaute n'a pas cliqué. */
.video__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000 center/cover no-repeat;
  display: grid;
  place-items: center;
}
.video__facade::after {
  content: "";
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--flame) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/40px no-repeat;
  box-shadow: 0 8px 30px #000a;
}

/* ---------- Portraits ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.people figure { margin: 0; text-align: center; }
.people img { border-radius: 50%; margin-bottom: .8rem; }
.people figcaption {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
}

/* ---------- Catégories de données ---------- */

.categories {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}
.categories li {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.categories img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto .9rem;
}
.categories b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: #fff;
}
.categories span { color: var(--text-dim); font-size: .85rem; }

.source-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.source-note img {
  width: 74px;
  background: #fff;
  border-radius: 8px;
  padding: .4rem;
  flex: none;
}
.source-note div { flex: 1 1 260px; }
.source-note p { margin: 0 0 .8rem; color: var(--text-dim); font-size: .95rem; }

/* ---------- Mini-jeu ---------- */

.game {
  max-width: 760px;
  margin-inline: auto;
}

.game__screen[hidden] { display: none; }

.game__progress {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-bottom: 1.75rem;
}
.game__progress span {
  width: 34px;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
}
.game__progress span[data-done] { background: var(--flame); }

.game__question {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  color: #fff;
  margin-bottom: 2rem;
}

.game__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  .game__options { grid-template-columns: 1fr; }
}

.game__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
  min-height: 168px;
  padding: 1.5rem;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: var(--ink-card);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.game__card:hover { border-color: var(--flame); transform: translateY(-3px); }
.game__card small { color: var(--text-dim); font-size: .85rem; }
.game__card[data-state="right"] { border-color: var(--green); }
.game__card[data-state="wrong"] { border-color: var(--flame); opacity: .6; }

.game__score {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5rem);
  color: var(--flame);
  line-height: 1;
  margin: 0 0 .3em;
}

.game__recap {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0;
  max-width: 560px;
  text-align: left;
}
.game__recap li {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  color: var(--text-dim);
}
.game__recap b { color: #fff; font-weight: 600; }
.game__recap .mark { flex: none; font-size: 1.1rem; }

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

.site-footer {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
  margin-top: 2rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-footer a:hover { color: var(--flame-hot); text-decoration: underline; }
.site-footer__base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.footer-brand img { width: 64px; margin-bottom: 1rem; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.notfound img { width: min(240px, 60vw); margin: 0 auto 2rem; }
