/**
 * base.css — Reset moderne + typographie de base
 *
 * Un "reset" annule les styles par défaut des navigateurs (chacun a les siens).
 * On repart d'une ardoise vide, puis on pose nos propres fondations.
 */


/* ── Reset ───────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;   /* padding et border inclus dans la largeur */
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}


body {
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-cream);          /* #F4EFE3 — fond global */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

address {
  font-style: normal;
}


/* ── Typographie ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--color-title);
  line-height: var(--lh-heading);
}

h1 { font-size: var(--fs-h1-inner); line-height: var(--lh-heading); }
h2 { font-size: var(--fs-h2);       line-height: var(--lh-h2);     }
h3 { font-size: var(--fs-h3);       line-height: var(--lh-h3);     }
h4 { font-size: 18px;               line-height: 1.4;               }

p {
  color: var(--color-body);
  line-height: var(--lh-body);
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}


/* ── Classe Eyebrow ──────────────────────────────────────────────────────────── */
/*
 * L'eyebrow est le petit texte en majuscules au-dessus d'un titre.
 * Exemple : "PSYCHOLOGUE · AUTEUR · CONFÉRENCIER" au-dessus du H1 hero.
 */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-secondary);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}


/* ── Container ───────────────────────────────────────────────────────────────── */
/*
 * Toutes les sections du site ont leur contenu enveloppé dans .container.
 * Ça centre le contenu et lui donne une largeur max de 1280px.
 */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (max-width: 1024px) {
  .container { padding-inline: 40px; }
}

@media (max-width: 600px) {
  .container { padding-inline: 24px; }
}


/* ── Sections ────────────────────────────────────────────────────────────────── */

.section {
  padding-block: var(--space-16);   /* 64px en haut et en bas par défaut */
}


.section--sm   { padding-block: var(--space-12); }
.section--lg   { padding-block: var(--space-24); }
.section--dark { background-color: var(--color-hero-bg); }
.section--tint { background-color: var(--color-light); }


/* ── Accessibilité ───────────────────────────────────────────────────────────── */

/* Masquer visuellement sans retirer de l'arbre d'accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible : anneau vert pour la navigation clavier */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ── Page — en-tête intérieure ───────────────────────────────────────────────── */

.page-hero {
  background-color: var(--color-hero-bg);
  padding-top: calc(72px + var(--space-16));   /* 72px = hauteur navbar */
  padding-bottom: var(--space-16);
}

.page-hero .eyebrow {
  color: rgba(192, 221, 151, 0.7);
  margin-bottom: var(--space-4);
}

.page-title {
  font-size: var(--fs-h1-inner);
  color: #F9F7F2;
}

.page-content {
  padding-block: var(--space-16);
}

.page-body {
  max-width: 720px;
}


/* ── 404 ──────────────────────────────────────────────────────────────────────── */

.error-404 {
  padding-top: calc(72px + var(--space-20));
  padding-bottom: var(--space-20);
}

.error-content {
  max-width: 600px;
}

.error-content .eyebrow {
  color: var(--color-partner);
  margin-bottom: var(--space-4);
}

.error-content h1 {
  margin-bottom: var(--space-4);
}

.error-content p {
  margin-bottom: var(--space-8);
  font-size: 18px;
}


/* ── Boutons pleine largeur en mobile ──────────────────────────────────────── */

@media (max-width: 600px) {
  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-secondary-light,
  .btn-hero-primary,
  .btn-hero-secondary,
  .about-btn,
  .about-btn--solid,
  .about-btn--ghost,
  .contact-card__btn,
  .rech-btn,
  .conf-cta-primary,
  .conf-cta-outline,
  .livres-hero__cta,
  .news-see-all,
  .events-cta-pill {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
  }

  /* Conteneurs flex de boutons → colonne sur mobile */
  .conf-ctas {
    flex-direction: column;
  }
}
