/* =========================================================
   Vrac360 — feuille de style unique.
   Couleurs et polices : modifier seulement la section :root.
   Polices : fichiers dans assets/fonts/ (voir LISEZ-MOI.txt). S'ils sont absents,
   le site utilise automatiquement les polices du système, sans appel à Google.
   Photo du haut de page : assets/img/hero-camion.webp
   ========================================================= */
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-600.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-700.woff2") format("woff2"); }
@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"); }
:root {
  --ink: #141312;          /* fond foncé (en-tête, haut de page, pied de page) */
  --ink-2: #24211F;        /* variante plus pâle */
  --copper: #A8562C;       /* cuivre : boutons, accents */
  --copper-dark: #8A4421;
  --copper-light: #D08A5B; /* cuivre lisible sur fond foncé */
  --cream: #F6F2EA;        /* fond des sections pâles */
  --paper: #FBF9F4;        /* fond des champs */
  --line: #D9D2C5;         /* bordures */
  --white: #FFFFFF;
  --text: #1E1C1A;
  --text-muted: #5F5A53;
  --error: #B3261E;
  --radius: 4px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", 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(--copper-light); outline-offset: 2px; }

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

/* ---------- En-tête ---------- */
.site-header {
  background: var(--ink);
  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: 700; font-size: 2rem;
  line-height: 1; text-decoration: none; color: var(--white);
}
.logo span { color: var(--copper-light); }
.logo-tagline {
  display: block; margin-top: .35rem;
  font: 600 .62rem var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: #CFC8BD;
}
.lang-switch {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
  padding: .35rem .75rem; font: 600 .9rem var(--font-body); text-decoration: none;
}
.lang-switch:hover { border-color: var(--copper-light); }

/* ---------- Haut de page (hero) ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(20,19,18,.96) 0%, rgba(20,19,18,.88) 40%, rgba(20,19,18,.4) 72%, rgba(20,19,18,.1) 100%),
    var(--ink) url("../img/hero-camion.webp") right center / cover no-repeat;
  color: var(--white);
  padding-block: 3.5rem 0;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1; letter-spacing: -.01em; margin: 0 0 1.25rem; max-width: 14ch;
}
.hero p { font-size: 1.2rem; color: #E4DFD7; max-width: 46ch; margin: 0 0 2rem; }
.hero .hero-status, .eyebrow {
  display: inline-block; margin-bottom: 1.25rem;
  font: 600 .8rem var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper-light);
}
.eyebrow::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 2.25rem; height: 1px; margin-left: .9rem; background: var(--copper-light);
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3.5rem; }

/* Filet cuivre sous le haut de page */
.hazard-stripe { height: 3px; background: var(--copper); }

/* Arguments sous le titre de la page d'inscription */
.hero-signup { padding-block: 3.5rem 2.75rem; }
.hero-badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.25rem 0;
}
.hero-badges li {
  display: flex; align-items: center; gap: .85rem;
  max-width: 15rem; padding-right: 1.75rem; margin-right: 1.75rem;
  border-right: 1px solid rgba(255,255,255,.22);
  font: 600 .74rem/1.45 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: #EDE8E0;
}
.hero-badges li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-badges svg {
  flex: none; width: 2.1rem; height: 2.1rem;
  fill: none; stroke: var(--copper-light); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}

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

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem; }
.section-light { background: var(--cream); }
.section h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; 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: 1px solid var(--copper); padding-top: 1rem; }
.steps li::before {
  content: "0" counter(step); display: block;
  font-family: var(--font-display); font-weight: 600; font-size: 2.5rem; line-height: 1;
  color: var(--copper); 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(--ink); 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: #E4DFD7; }
.callout strong { display: block; color: var(--white); font-size: 1.25rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #B9B2A8; padding-block: 2rem; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-footer .logo { font-size: 1.5rem; }
.site-footer .footer-rights { margin-right: auto; }
.site-footer a:not(.logo) { color: #E4DFD7; }

/* ---------- Page d'inscription : accroche à gauche, formulaire à droite ---------- */
.page-form .hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); max-width: 11ch; }
.signup-layout { display: grid; gap: 3rem 4rem; grid-template-columns: minmax(0, 1fr); }
.signup-aside h2 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; margin: 0; }
.signup-aside h2::before, .signup-aside h2::after {
  content: ""; display: block; width: 2.25rem; height: 2px; background: var(--copper);
}
.signup-aside h2::before { margin-bottom: 1.5rem; }
.signup-aside h2::after { margin-top: 1.75rem; }
.signup-aside p { font-size: 1.15rem; margin: 1.75rem 0 0; max-width: 26ch; }
.signup-aside .aside-slogan {
  margin-top: 3rem; max-width: 14rem;
  font: 600 .74rem/1.9 var(--font-body); letter-spacing: .24em; text-transform: uppercase;
  color: var(--copper-dark);
}
.aside-slogan svg {
  display: block; width: 4.25rem; height: 1.8rem; margin-bottom: .75rem;
  fill: none; stroke: var(--copper); stroke-width: 1.4; stroke-linejoin: round;
}
@media (min-width: 900px) {
  .signup-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); align-items: start; }
  .signup-aside { position: sticky; top: 2rem; }
}

/* ---------- Formulaire ---------- */
.signup-form .form-step {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.6rem; line-height: 1.2; margin: 2.75rem 0 1.5rem;
}
.signup-form .form-step:first-of-type { margin-top: 0; }
.form-step .step-number { font-size: 1.75rem; color: var(--copper); }
.form-step .optional { font-family: var(--font-body); font-size: 1rem; }
.form-step::after { content: ""; flex: 1; height: 1px; background: var(--copper); opacity: .55; align-self: center; }
.field { margin-bottom: 1.4rem; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.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: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--copper); outline: 2px solid rgba(168,86,44,.25); outline-offset: 0; }
input[type=checkbox], input[type=radio] { accent-color: var(--copper); width: 1.1rem; height: 1.1rem; flex: none; }
.two-columns { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem 2rem; }
.choices label { font-weight: 400; display: flex; align-items: center; gap: .55rem; margin: 0; }
/* Cases à cocher présentées en pastilles */
.choices-chips { gap: .6rem; }
.choices-chips label {
  padding: .5rem .85rem; font-size: .9rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.choices-chips label:hover, .choices-chips label:has(input:checked) { border-color: var(--copper); }
.consent { margin-top: 1.75rem; }
.consent label { font-weight: 400; font-size: .9rem; display: flex; gap: .75rem; align-items: flex-start; }
.consent input { margin-top: .2rem; }
.signup-form .button-primary::after { content: "\2192"; margin-left: .75rem; }
.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 (max-width: 640px) {
  /* Sur téléphone, le texte couvre toute la photo : voile uniforme pour rester lisible */
  .hero {
    background:
      linear-gradient(rgba(20,19,18,.86), rgba(20,19,18,.86)),
      var(--ink) url("../img/hero-camion.webp") 70% center / cover no-repeat;
  }
  .hero-badges li { border-right: 0; margin-right: 0; padding-right: 0; max-width: none; width: 100%; }
  .signup-form .form-step { flex-wrap: wrap; gap: .25rem .75rem; font-size: 1.35rem; }
  .form-step::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
