/* ==========================================================================
   VANDERBERG SOURCING — Feuille de style principale
   Palette navy/argent issue du logo. Typographie : Archivo (titres),
   Source Sans 3 (texte), IBM Plex Mono (étiquettes techniques).
   ========================================================================== */

:root {
  /* Couleurs */
  --navy-900: #0E1B2E;
  --navy-800: #14243F;
  --navy-700: #1F3864;
  --navy-500: #2E5288;
  --steel-400: #4A7BA7;
  --steel-200: #A8BED4;
  --silver-200: #C7CED6;
  --silver-100: #E4E8EC;
  --paper: #F7F8FA;
  --white: #FFFFFF;
  --ink: #101823;
  --ink-soft: #4A5361;
  --accent: #B08D57;

  /* Typographie */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Mesures */
  --wrap: 1180px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 35, .06), 0 4px 12px rgba(16, 24, 35, .05);
  --shadow-md: 0 2px 6px rgba(16, 24, 35, .08), 0 18px 40px rgba(16, 24, 35, .10);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--steel-400);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------- Layout --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--paper { background: var(--paper); }
.section--navy {
  background: var(--navy-800);
  color: var(--silver-100);
}
.section--navy h2, .section--navy h3 { color: var(--white); }

.section__intro { max-width: 660px; margin-bottom: 46px; }
.section__intro p { color: var(--ink-soft); font-size: 1.06rem; margin-bottom: 0; }
.section--navy .section__intro p { color: var(--steel-200); }

/* Étiquette technique — reprend le vocabulaire des fiches produit */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-400);
  display: block;
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--steel-200); }

.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ------------------------------------------------------------ Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.btn--primary:hover { background: var(--navy-800); border-color: var(--navy-800); }

.btn--ghost { background: transparent; color: var(--navy-700); border-color: var(--silver-200); }
.btn--ghost:hover { border-color: var(--navy-700); background: var(--white); }

.btn--light { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.btn--light:hover { background: var(--silver-100); border-color: var(--silver-100); }

.btn--wide { width: 100%; justify-content: center; }

/* ------------------------------------------------------------- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--silver-100);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
.brand__name span {
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--steel-400);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: .97rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: var(--radius);
  transition: color .16s ease, background .16s ease;
}
.nav a:hover { color: var(--navy-700); background: var(--paper); }
.nav a.is-active { color: var(--navy-700); }
.nav .btn { margin-left: 10px; }
.nav .btn:hover { background: var(--navy-800); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--silver-200);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  color: var(--navy-700);
  font-size: 1.15rem;
  line-height: 1;
}

/* --------------------------------------------------------------- Hero --- */
.hero {
  background:
    radial-gradient(1000px 480px at 88% -12%, rgba(74, 123, 167, .16), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--silver-100);
  padding: 78px 0 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { margin-bottom: .35em; }
.hero h1 em {
  font-style: normal;
  color: var(--steel-400);
}

.hero__slogan {
  font-size: 1.24rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points svg { flex: none; color: var(--steel-400); }

/* ---------------------------------------- Signature : la fiche produit -- */
.spec {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.spec__head {
  background: var(--navy-800);
  color: var(--white);
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.spec__title {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.spec__ref {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--steel-200);
}

.spec__body { padding: 8px 22px 22px; }

.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--silver-100);
}
.spec__row:last-child { border-bottom: 0; }

.spec__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  flex: none;
}
.spec__value {
  font-weight: 600;
  color: var(--navy-800);
  text-align: right;
  font-size: .97rem;
}
.spec__value--muted { color: var(--ink-soft); font-weight: 400; }

.spec__foot {
  background: var(--paper);
  border-top: 1px solid var(--silver-100);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.spec__stamp {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1D6B4F;
  border: 1.5px solid #1D6B4F;
  border-radius: 3px;
  padding: 5px 10px;
  transform: rotate(-2deg);
}
.spec__note { font-size: .85rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- Grille --- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--silver-100);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--ink-soft); font-size: .97rem; margin-bottom: 0; }
.card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy-700);
  margin-bottom: 16px;
}

/* Catégories : « on peut tout trouver » */
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cats span {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  padding: 8px 14px;
  border: 1px solid var(--silver-200);
  border-radius: 100px;
  color: var(--navy-700);
  background: var(--white);
}
.cats span.is-open {
  border-style: dashed;
  color: var(--steel-400);
}

/* ------------------------------------------- Économies : comparateur --- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
  max-width: 720px;
}
.compare__card {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  text-align: center;
}
.compare__card--before {
  background: var(--silver-100);
  border: 1px solid var(--silver-200);
}
.compare__card--after {
  background: var(--white);
  border: 1.5px solid var(--navy-700);
  box-shadow: var(--shadow-md);
}
.compare__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 10px;
}
.compare__price {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
}
.compare__price--old { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 2px; }
.compare__arrow { display: grid; place-items: center; color: var(--steel-400); font-size: 1.5rem; }
.compare__foot {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* -------------------------------------------------------- Process/étapes */
.steps { counter-reset: step; display: grid; gap: 2px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--silver-100);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step__num {
  counter-increment: step;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  color: var(--steel-400);
  padding-top: 4px;
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--ink-soft); margin-bottom: 0; }
.step__meta {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--steel-400);
  margin-top: 8px;
  display: inline-block;
}
.section--navy .step { border-color: rgba(168, 190, 212, .22); }
.section--navy .step p { color: var(--steel-200); }
.section--navy .step__num { color: var(--steel-200); }

/* ------------------------------------------------------------ Bandeau --- */
.cta-band { background: var(--navy-800); color: var(--white); padding: 68px 0; }
.cta-band h2 { color: var(--white); margin-bottom: .4em; }
.cta-band p { color: var(--steel-200); max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ----------------------------------------------------------- Formulaire */
.form-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }

.form {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .93rem;
  color: var(--navy-800);
  margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="file"],
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1.5px solid var(--silver-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 138px; resize: vertical; }

.field input:focus, .field textarea:focus {
  border-color: var(--steel-400);
  box-shadow: 0 0 0 3px rgba(74, 123, 167, .16);
  outline: none;
}

.field input[type="file"] { padding: 10px 12px; background: var(--paper); cursor: pointer; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper);
  border: 1.5px solid var(--silver-200);
  border-radius: var(--radius);
  padding: 15px 16px;
  margin-bottom: 22px;
  cursor: pointer;
}
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--navy-700); }
.check span { font-size: .95rem; color: var(--navy-800); font-weight: 600; }
.check small { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }

.form__legal { font-size: .82rem; color: var(--ink-soft); margin: 16px 0 0; }

.aside-card {
  background: var(--navy-800);
  color: var(--silver-100);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
}
.aside-card h3 { color: var(--white); font-size: 1.1rem; }
.aside-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.aside-card li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: .95rem;
  border-bottom: 1px solid rgba(168, 190, 212, .18);
}
.aside-card li:last-child { border-bottom: 0; }
.aside-card li svg { flex: none; color: var(--steel-200); margin-top: 4px; }
.aside-card a { color: var(--white); font-weight: 600; }

.alert {
  border-radius: var(--radius);
  padding: 15px 18px;
  margin-bottom: 24px;
  font-size: .95rem;
  border: 1.5px solid;
}
.alert--ok { background: #EDF7F1; border-color: #1D6B4F; color: #14503A; }
.alert--err { background: #FDF0EF; border-color: #A63B32; color: #7E2C25; }

/* ------------------------------------------------------------- Footer --- */
.site-footer {
  background: var(--navy-900);
  color: var(--steel-200);
  padding: 54px 0 28px;
  font-size: .94rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(168, 190, 212, .18);
}
.site-footer h4 {
  color: var(--white);
  font-size: .78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer__brand img { width: 44px; height: 44px; object-fit: contain; }
.site-footer__brand strong { color: var(--white); font-family: var(--font-display); font-size: 1rem; }
.site-footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(168, 190, 212, .8);
}

/* ---------------------------------------------------------- Page intro -- */
.page-head {
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--silver-100);
  padding: 66px 0 54px;
}
.page-head h1 { margin-bottom: .3em; }

/* -------------------------------------------------------- Prose article */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--navy-800); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--ink-soft);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 3px; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--steel-400);
}

/* ------------------------------------------------- Emplacement d'image -- */
.figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--silver-200);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.figure img { width: 100%; display: block; }

/* --------------------------------------------------------- Responsive -- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 62px 0; }
  .hero { padding: 56px 0 64px; }

  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--silver-100);
    padding: 12px var(--gutter) 20px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .site-header__inner { position: relative; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .compare { grid-template-columns: 1fr; }
  .compare__arrow { transform: rotate(90deg); padding: 4px 0; }
  .step { grid-template-columns: 42px 1fr; gap: 14px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .form { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
