/* ============================================================
   BASE — reset, polices, gabarit, typographie
   ============================================================ */

/* --- Polices auto-hébergées (variables) --- */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Stack Sans Headline';
  src: url('../fonts/stack-sans-headline.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-body);
  background: var(--bg-page);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; border: 0; background: none; }
button { cursor: pointer; }

/* --- Gabarit --- */
.container {
  width: 100%;
  max-width: var(--w-container);
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1240px) {
  .container { padding-inline: 0; }
}

/* --- Titres --- */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  color: var(--c-ink);
  font-weight: 600;
}
.h-hero   { font-size: 70px; line-height: 84px;   font-weight: 700; }
.h-xl     { font-size: 62px; line-height: 77.5px; }
.h-section{ font-size: 48px; line-height: 62px; }   /* Figma 62.4 → 62 pour éviter l'accumulation de sous-pixels */
.h-card   { font-size: 24px; line-height: 31.2px; font-weight: 500; }
.h-item   { font-size: 22px; line-height: 27.5px; font-weight: 400; }
.h-small  { font-size: 20px; line-height: 30px;   font-weight: 500; }

/* --- Badge « LA SELECTION DE SAID » --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;            /* Figma : 27 px stroke compris */
  padding: 0 14px;
  border: 0.75px solid var(--l-badge);
  border-radius: var(--r-card);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 12px;
  line-height: 15.1px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--c-ink);
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-gold);
  flex: none;
}
.badge--light { color: var(--c-white); }
.badge--hero {
  height: 30px;            /* Figma : 30 px stroke compris */
  border-color: var(--l-line);
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.02);
  font-size: 14px;
  line-height: 17.6px;
  color: var(--c-white);
}

/* --- En-tête de section (badge + titre + sous-titre) --- */
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section-head > .badge, .hero-head > .badge { align-self: flex-start; }
.section-head--center > .badge { align-self: center; }
.section-head .section-sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--c-body);
  margin-top: 6px;
}
.section-head--center { align-items: center; text-align: center; }
.section-head--center > h2,
.section-head--center > .section-sub { align-self: stretch; }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 28px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 14px;
  line-height: 17.6px;
  font-weight: 500;
  box-shadow: var(--sh-btn);
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--c-primary-dark); transform: translateY(-1px); }
.btn .ico { flex: none; }
.btn--white { background: var(--c-white); color: var(--c-ink); box-shadow: var(--sh-btn-light); }
.btn--white:hover { background: var(--bg-cream); }
.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
}
.btn--outline:hover { background: var(--t-primary-05); }

/* --- Accessibilité --- */
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 8px 16px;
  background: var(--c-white);
  color: var(--c-ink);
}
.skip-link:focus { left: 8px; top: 8px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
