/* ============================================================
   CHRYS BERNARD — layout.css
   Reset, body, structure de page, sections, grilles
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-dark);
  color: var(--color-offwhite);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--size-base);
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── Wrapper de page ── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content {
  flex: 1;
  padding-top: var(--nav-height);
}

/* ── Conteneur centré ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

/* ── Sections ── */
.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.section--sm {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.section--flush {
  padding-top: 0;
  padding-bottom: 0;
}

/* ── En-têtes de section ── */
.section-label {
  font-size: var(--size-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.section-title em {
  font-style: italic;
  color: var(--color-offwhite);
}

/* ── Séparateur vertical doré ── */
.divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
  margin: 0 auto;
}

/* ── Grille 2 colonnes ── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* ── Grille 3 colonnes ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* ── Bordure de séparation ── */
.border-top {
  border-top: 1px solid var(--color-border);
}

.border-bottom {
  border-bottom: 1px solid var(--color-border);
}

/* ── Utilitaires d'alignement ── */
.text-center { text-align: center; }
.text-muted   { color: var(--color-muted); }
