/* =========================================================
   HÉBRON CORPORATION SARL — style.css
   Base : jetons de design, typographie, mise en page.
   Concept : planche d'architecte — fond ivoire, sections
   anthracite, cotes et cartouches en laiton.
   ========================================================= */

:root {
  /* Couleurs */
  --charcoal: #1b1b1b;      /* anthracite : textes, sections sombres */
  --charcoal-2: #262420;    /* anthracite chaud : cartes sur fond sombre */
  --stone: #c8b79c;         /* pierre : traits, fonds secondaires */
  --stone-soft: #e9e1d2;    /* pierre claire : séparateurs */
  --ivory: #f5f1e8;         /* fond principal */
  --white: #ffffff;
  --gold: #b08d57;          /* laiton : accent discret */
  --gold-dark: #8a6a3a;     /* laiton foncé : texte accent sur ivoire (contraste AA) */
  --muted: #5e5850;         /* texte secondaire sur ivoire */
  --muted-dark: #b9b0a2;    /* texte secondaire sur anthracite */
  --line: #d9cfbd;
  --line-dark: #3a3631;
  --wa: #1f9d55;            /* WhatsApp */

  /* Typographie */
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --fs-h1: clamp(2.4rem, 5.6vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 3rem);
  --fs-h3: clamp(1.2rem, 1.8vw, 1.6rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;

  /* Espacements */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --section: clamp(64px, 9vw, 120px);
  --radius: 2px;
  --shadow: 0 18px 40px -24px rgba(27, 27, 27, .35);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

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

/* ---------- Typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.on-dark .label { color: var(--gold); }
.prose { max-width: 68ch; display: grid; gap: 1em; }
.prose p { color: var(--muted); }

/* ---------- Mise en page ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.on-dark { background: var(--charcoal); color: var(--ivory); }
.on-dark .lead, .on-dark .prose p { color: var(--muted-dark); }
.on-stone { background: var(--stone-soft); }
.on-white { background: var(--white); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* En-tête de section : index + titre, façon cartouche */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head__title { display: grid; gap: 14px; }
.sec-index { display: flex; align-items: center; gap: 12px; }
.sec-index::after { content: ""; flex: 0 0 56px; height: 1px; background: currentColor; opacity: .5; }
.sec-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head--center .sec-index::after { display: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--ivory); padding: 10px 14px; }
.skip:focus { top: 12px; }
