/* =========================================================
   Vrac360 — feuille de style unique.
   Couleurs et polices : modifier seulement la section :root.
   Polices : fichiers dans assets/fonts/ (voir README). S'ils sont absents,
   le site utilise automatiquement les polices du système, sans appel à Google.
   ========================================================= */
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }
:root {
  --asphalt: #2B3035;      /* fond foncé (haut de page, pied de page) */
  --asphalt-2: #3A4046;    /* variante plus pâle */
  --safety: #F2B705;      /* jaune de signalisation : boutons, accents */
  --safety-dark: #C99500;
  --concrete: #EEEDE8;         /* fond des sections pâles */
  --white: #FFFFFF;
  --text: #23272B;
  --text-muted: #5C636A;
  --error: #B3261E;
  --radius: 6px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- En-tête ---------- */
.site-header {
  background: var(--asphalt);
  color: var(--white);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1rem;
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.75rem;
  letter-spacing: .01em; text-decoration: none; color: var(--white);
}
.logo span { color: var(--safety); }
.lang-switch {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius);
  padding: .35rem .75rem; font: 600 .9rem var(--font-body); text-decoration: none;
}
.lang-switch:hover { border-color: var(--safety); }

/* ---------- Haut de page (hero) ---------- */
.hero {
  background: var(--asphalt);
  color: var(--white);
  padding-block: 3rem 0;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  line-height: .95; margin: 0 0 1.25rem; max-width: 14ch;
}
.hero p { font-size: 1.2rem; color: #D5D8DB; max-width: 52ch; margin: 0 0 2rem; }
.hero .hero-status {
  display: inline-block; margin-bottom: 1.5rem;
  border-left: 4px solid var(--safety); padding-left: .75rem;
  color: #D5D8DB; font-weight: 600;
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }

/* La bande de signalisation : l'élément visuel signature */
.hazard-stripe {
  height: 22px;
  background: repeating-linear-gradient(
    -45deg, var(--safety) 0 22px, var(--asphalt) 22px 44px);
}

/* ---------- Boutons ---------- */
.button {
  display: inline-block; text-decoration: none; text-align: center;
  font: 700 1.05rem var(--font-body);
  padding: .9rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer;
}
.button-primary { background: var(--safety); color: var(--asphalt); }
.button-primary:hover { background: var(--safety-dark); }
.button-secondary { border-color: rgba(255,255,255,.5); color: var(--white); }
.button-secondary:hover { border-color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
.section-light { background: var(--concrete); }
.section h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.05; margin: 0 0 .75rem;
}
.section .intro { color: var(--text-muted); max-width: 60ch; margin: 0 0 2.5rem; }

/* Étapes : vraie séquence, donc numérotée */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--asphalt); padding-top: 1rem; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1;
  color: var(--safety-dark); margin-bottom: .5rem;
}
.steps h3, .benefits h3 { font-size: 1.2rem; margin: 0 0 .35rem; }
.steps p, .benefits p { margin: 0; color: var(--text-muted); }

.benefits { display: grid; gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 2.5rem; }

.callout {
  background: var(--asphalt); color: var(--white); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.callout p { margin: 0; max-width: 46ch; color: #D5D8DB; }
.callout strong { display: block; color: var(--white); font-size: 1.25rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--asphalt); color: #AEB4BA; padding-block: 2rem; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.site-footer a { color: #D5D8DB; }

/* ---------- Formulaire ---------- */
.page-form .hero { padding-block: 2.5rem 0; }
.page-form .hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.signup-form { max-width: 640px; }
.field { margin-bottom: 1.4rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .help { display: block; font-weight: 400; font-size: .9rem; color: var(--text-muted); }
.optional { font-weight: 400; color: var(--text-muted); font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: .7rem .8rem;
  border: 2px solid #C9CDD1; border-radius: var(--radius); background: var(--white); color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--asphalt); outline: none; }
.two-columns { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.choices label { font-weight: 400; display: flex; align-items: center; gap: .4rem; margin: 0; }
.consent { background: var(--concrete); padding: 1rem; border-radius: var(--radius); }
.consent label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; }
.consent input { margin-top: .35rem; }
.trap { position: absolute; left: -9999px; } /* champ anti-robot, invisible */
.field-error { color: var(--error); font-size: .9rem; margin-top: .3rem; }
.form-alert { border-left: 4px solid var(--error); background: #FBEAE9; color: var(--error); padding: .9rem 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 600; }

/* ---------- Page texte (confidentialité) ---------- */
.long-text { max-width: 70ch; }
.long-text h2 { font-size: 1.6rem; margin-top: 2.5rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
