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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Racine à 16px : le Figma est coté en px sur un cadre de 1440, donc le
     1:1 px/rem évite tout recalcul d'échelle sur la home refaite au pixel. */
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* Certains éléments décoratifs (mots arabes fantômes) débordent volontairement
     du cadre pour matcher la maquette — ça ne doit jamais créer de scroll
     horizontal, surtout sur mobile. */
  overflow-x: hidden;
}

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

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

/* Les contrôles de formulaire n'héritent pas de la police par défaut
   (police système) — on force Pliant partout. */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-6);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-green-bright);
  margin-bottom: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  font-size: 0.85rem;
  border: 1.5px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--color-text);
  color: var(--color-bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-hero {
  padding-top: calc(var(--space-6) + var(--space-3));
  padding-bottom: var(--space-4);
  /* Barres vertes plaquées aux deux bords réels de l'écran, pas du container */
  background:
    linear-gradient(var(--color-accent-green), var(--color-accent-green)) left / 4px 100% no-repeat,
    linear-gradient(var(--color-accent-green), var(--color-accent-green)) right / 4px 100% no-repeat,
    linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-bg) 65%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero > .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
}

.page-hero p {
  margin-top: var(--space-2);
  max-width: 60ch;
  color: var(--color-text-muted);
}

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