/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-corps);
  font-size: var(--fs-base);
  color: var(--c-texte);
  background: var(--c-creme);
  line-height: var(--lh-relaxed);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-titre);
  font-weight: 700;
  line-height: var(--lh-tight);
}

/* ── Polices ── */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-variation-settings: 'SOFT' 0, 'WONK' 1;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Utilitaires ── */
.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;
}
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--section-px);
}
.surtitre {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--f-corps);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-acier);
}
.surtitre::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-brique);
  flex-shrink: 0;
}
.texte-brique { color: var(--c-brique); }
.texte-acier  { color: var(--c-acier); }
.texte-creme  { color: var(--c-creme); }

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--c-brique);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--c-brique);
  color: var(--c-creme);
  padding: var(--sp-2) var(--sp-4);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* ── Sections de base ── */
.section {
  position: relative;
  padding-block: var(--section-py);
}
.section--bleu   { background: var(--c-bleu);  color: var(--c-creme); }
.section--nuit   { background: var(--c-nuit);  color: var(--c-creme); }
.section--creme  { background: var(--c-creme); color: var(--c-texte); }
.section--creme2 { background: var(--c-creme2);color: var(--c-texte); }

/* ── Courbes de niveau (fond décoratif) ── */
.courbes-de-niveau {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.06;
}
.courbes-de-niveau svg {
  width: 100%;
  height: 100%;
  stroke: var(--c-creme);
  fill: none;
  stroke-width: 1;
}


/* =====================================================
   RESPONSIVE GLOBAL
   ===================================================== */
@media (max-width: 1024px) {
  :root {
    --section-px: 48px;
    --section-py: 80px;
  }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .service-chapitre__inner { grid-template-columns: 1fr; gap: 40px; }
  .service-chapitre__visuel { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  :root {
    --section-px: 24px;
    --section-py: 60px;
  }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bas { flex-direction: column; text-align: center; }
  .footer__legal { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Contact */
  .contact-champs { grid-template-columns: 1fr; }

  /* Comparateur */
  .comparateur { aspect-ratio: 3/4; }

  /* Service nav */
  .service-nav { padding: 0 var(--section-px); }

  /* Grilles */
  .grille-2, .grille-3 { grid-template-columns: 1fr !important; }

  /* Hero bande ALTI */
  .bande-alti__panel { padding: 40px 24px; }
  .bande-alti__lettre { font-size: 20vw; }
}
