/* ============================================================
   D'eaumingue Lave-auto à la main — base.css
   Reset, variables (→ theme.json), typographie, utilitaires
   Pratcom Media · maquette v1 · 2026-10-06
   ============================================================ */

:root {
  /* Brand — relevé sur le logo (bleu électrique, noir, chrome) */
  --brand-primary: #1a6cff;
  --brand-primary-dark: #0b3fae;
  --brand-primary-light: #5c9bff;
  --brand-accent: #37d0ff;
  --brand-chrome: #d9dde3;
  --brand-chrome-dark: #9aa3ad;

  /* Surfaces sombres */
  --bg: #07090d;
  --bg-soft: #0e1218;
  --bg-card: #131922;
  --bg-card-hover: #182130;
  --border: rgba(217, 221, 227, 0.12);
  --border-strong: rgba(217, 221, 227, 0.28);

  /* Texte */
  --ink: #f4f6f8;
  --ink-soft: #c3cad3;
  --ink-muted: #8b95a1;
  --ink-on-primary: #ffffff;

  /* État / sémantique */
  --success: #2fd38a;
  --warning: #ffb547;

  /* Typographie */
  --font-headings: 'Kanit', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-body: 1.65;

  /* Échelle d'espacement */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.25rem;
  --header-height: 72px;

  /* Rayons et ombres */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(26, 108, 255, 0.35), 0 12px 40px rgba(26, 108, 255, 0.25);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-primary-light); text-decoration: none; }
a:hover { color: var(--brand-accent); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 var(--space-sm); }
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 600; }
strong { font-weight: 700; color: var(--ink); }

/* ---------- Accessibilité ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sr-only-focusable:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto; margin: 0;
  padding: 0.6rem 1rem; clip: auto; overflow: visible; z-index: 9999;
  background: var(--brand-primary); color: #fff; border-radius: var(--radius-sm);
}
:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }

/* ---------- Conteneurs ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.section { padding-block: var(--space-lg); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: var(--space-md); }
@media (min-width: 768px) {
  .section { padding-block: var(--space-xl); }
}

/* En-tête de section */
.section__head { max-width: 720px; margin-bottom: var(--space-md); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-headings); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-accent);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--brand-primary); border-radius: 2px;
}
.section__head--center .eyebrow::after {
  content: ""; width: 22px; height: 2px; background: var(--brand-primary); border-radius: 2px;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.muted { color: var(--ink-muted); }

/* Grilles simples (≤ 6 colonnes, compatibles core/columns) */
.grid { display: grid; gap: var(--space-sm); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: var(--space-md); }
}

/* Placeholder image (sections secondaires) */
.img-placeholder {
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(135deg, #141a24 0 12px, #10151d 12px 24px);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
  color: var(--ink-muted); font-size: 0.85rem; padding: var(--space-sm);
  aspect-ratio: 4 / 3;
}
