@font-face {
  font-family: "Literata";
  src: url("assets/fonts/literata-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --text: rgb(215, 215, 210);
  --dim: rgba(215, 215, 210, 0.55);
  --acid: rgb(148, 255, 33);
  --acid-dim: rgba(148, 255, 33, 0.6);
  --acid-line: rgba(148, 255, 33, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Literata", Georgia, serif;
  font-weight: 400;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Noise layer ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/images/noise.svg");
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

a { text-decoration: none; color: inherit; }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.7rem 2vw;
  border-bottom: 1px solid var(--acid-line);
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  transition: transform 0.25s ease;
}

/* Masquée par nav.js quand on descend */
.navbar.is-hidden { transform: translateY(-100%); }

/* Hamburger (mobile, comme thomasdepas.com) : un bouton, trois traits faits d'un span et de ses ::before/::after */
.nav-toggle { display: none; background: none; border: 0; padding: 12px 4px; cursor: pointer; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after { display: block; width: 25px; height: 2px; background: var(--acid); position: relative; transition: transform 0.2s, background 0.2s; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle:focus-visible { outline: 1px solid var(--acid); outline-offset: 2px; }
/* Ouvert : les traits forment une croix */
.navbar.open .nav-toggle span { background: transparent; }
.navbar.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.navbar.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Nom à gauche sur desktop ; liens et hamburger poussés à droite */
.nav-brand { color: var(--acid); font-size: 1.1rem; }
.nav-links, .nav-toggle { margin-left: auto; }

.nav-links { display: flex; flex-wrap: wrap; gap: 0 2.5vw; list-style: none; }
.nav-link { color: var(--acid); transition: opacity 0.2s; }
.nav-link:hover { opacity: 0.6; }
.nav-lang { color: var(--dim); font-variant: small-caps; }

/* ── Layout ── */
main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem 16px 4rem;
}

section { padding: 3rem 0; border-top: 1px solid var(--acid-line); scroll-margin-top: 3rem; }
section:first-child { border-top: none; padding-top: 2rem; }

/* ── Hero ── */
.hero h1 {
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--acid);
  letter-spacing: -0.01em;
}
.hero .lead { margin-top: 2rem; font-size: 1.6rem; line-height: 1.3; }
.hero .tagline { margin-top: 1rem; font-size: 1.15rem; max-width: 34rem; }

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--acid);
  color: var(--acid);
  transition: background 0.2s, color 0.2s;
}
.cta:hover { background: var(--acid); color: #000; }

/* ── Section headings ── */
h2 {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--acid-dim);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

h3 { font-size: 1.35rem; font-weight: 400; color: var(--acid); margin-bottom: 0.5rem; line-height: 1.2; }

p { font-size: 1.08rem; margin-bottom: 1rem; }

/* Texte courant justifié ; la césure (lang fr/en) évite les grands blancs sur mobile */
/* Hors accroche et liste du constat (gros corps : la justification y crée des trous) */
main section:not(.hero) p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

/* ── Problem ── */
.facts { list-style: none; margin-bottom: 1.5rem; }
.facts li { font-size: 1.25rem; line-height: 1.5; margin-bottom: 0.6rem; padding-left: 1.4rem; text-indent: -1.4rem; }
.facts li::before { content: "— "; color: var(--acid); }

/* ── Method ── */
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.8rem; }
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--acid);
}
.steps p { margin-bottom: 0; }

/* ── Audiences ── */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.audiences p { margin-bottom: 0; }

/* ── Values ── */
.values { list-style: none; margin-bottom: 2rem; }
.values li { font-size: 1.08rem; margin-bottom: 0.7rem; }
.values strong { font-weight: 400; color: var(--acid); }

/* ── Questions ── */
details { border-bottom: 1px solid var(--acid-line); padding: 1rem 0; }
details:first-of-type { border-top: 1px solid var(--acid-line); }
summary { cursor: pointer; font-size: 1.15rem; color: var(--acid); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+ "; color: var(--acid-dim); }
details[open] summary::before { content: "− "; }
details p { margin: 0.8rem 0 0 1.2rem; }

/* ── Contact ── */
.contact-mail {
  display: block;
  width: fit-content;
  margin: 0.5rem auto 0;
  font-size: clamp(1.2rem, 5vw, 1.7rem);
  color: var(--acid);
  border-bottom: 1px solid var(--acid);
  transition: opacity 0.2s;
}
.contact-mail:hover { opacity: 0.6; }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--dim);
  padding: 2rem 16px 3rem;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  /* Même gouttière que le contenu (16px) */
  .navbar { flex-wrap: wrap; align-items: center; padding: 0.6rem 16px; }
  /* Avec JS (classe posée par nav.js) : hamburger + menu déroulant ; sans JS, les liens restent visibles */
  .js .nav-toggle { display: block; }
  /* Nom masqué sur mobile (déjà en grand dans l'accroche) : seul le hamburger, à droite */
  .nav-brand { display: none; }
  .js .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; flex-direction: column; gap: 0.8rem; padding: 1rem 16px 1.2rem; font-size: 1.1rem; background-color: var(--bg); border-bottom: 1px solid var(--acid-line); }
  .js .navbar.open .nav-links { display: flex; }
  main { padding-top: 5rem; }
  /* La barre fixe ne doit pas recouvrir le titre des ancres */
  section { scroll-margin-top: 4rem; }
  .audiences { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ── Legal ── */
footer p { font-size: 0.8rem; margin-bottom: 0.4rem; }
footer .legal { line-height: 1.6; }
footer a { border-bottom: 1px solid var(--acid-line); }
