/* ==========================================================================
   Réussir le CEB 2026 — feuille de style commune
   Palette : bleu confiance · vert réussite · jaune motivation · bleu pédago
   ========================================================================== */

:root {
  --paper: #F8FAFC;            /* blanc cassé pédagogique */
  --paper-dark: #E2E8F0;       /* gris très clair pour sections */
  --paper-light: #FFFFFF;      /* blanc pur pour cartes */
  --ink: #0F172A;              /* slate très foncé */
  --ink-soft: #334155;         /* gris texte demandé */
  --ink-muted: #64748B;
  --rule: #CBD5E1;             /* bordures gris bleuté */
  --accent: #1E3A8A;           /* bleu confiance — primaire */
  --accent-soft: #2750B0;      /* bleu confiance hover */
  --accent-bright: #22C55E;    /* vert réussite — accent fort */
  --accent-light: #38BDF8;     /* bleu clair pédagogique */
  --highlight: #FACC15;        /* jaune motivation */
  --green-soft: #16A34A;       /* vert sombre — feedback success */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }
section[id] { scroll-margin-top: 6.5rem; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(30, 58, 138, 0.12) 1px, transparent 1.5px);
  background-size: 1cm 1cm;
  background-position: 0.5cm 0.5cm;
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* Pas de texture séparée — le pointillé est dessiné directement sur le body */
body::before { display: none; }

main, header, footer { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.8em; font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: 0.5em; font-weight: 700; }
h4 { font-size: 1.1rem; margin-bottom: 0.4em; font-weight: 700; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
a:hover { color: var(--accent-soft); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Container des pages article (méthode, pourquoi) — un peu plus large que narrow
   pour accueillir des grilles 3 colonnes sans paraître étriqué. */
.container-article {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Corps d'article éditorial — espacement vertical cohérent entre sections.
   Bottom padding aligné sur les sections génériques pour matcher le gap
   avant la FAQ (comme sur ressources.html). */
.article-body {
  padding: 3rem 0;
}
.article-body .article-section {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
}
.article-body .article-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}
.article-body h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 1rem;
  color: var(--ink);
  max-width: 30ch;
}
.article-body h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  color: var(--accent);
}
.article-body p {
  color: var(--ink-soft);
  margin-bottom: 1em;
  max-width: 70ch;
}
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--ink); }
.article-body ul {
  color: var(--ink-soft);
  margin-bottom: 1.2em;
  padding-left: 1.4rem;
  max-width: 70ch;
}
.article-body ul li { margin-bottom: 0.4rem; }

/* Liste de sources — plus aérée, sans puces. */
.article-body .source-list {
  list-style: none;
  padding-left: 0;
  border-top: 1px solid var(--rule);
  max-width: none;
}
.article-body .source-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
  margin-bottom: 0;
}

/* Cartes d'info à l'intérieur de l'article : leurs titres et listes restent compacts. */
.article-body .info-card h4 {
  margin-top: 0;
  color: var(--accent);
}
.article-body .info-card ul,
.article-body .info-card p {
  max-width: none;
  margin-bottom: 0;
}
.article-body .info-card ul { padding-left: 1.2rem; }
.article-body .info-card li { font-size: 0.92rem; margin-bottom: 0.3rem; }

/* Espacement uniforme entre h2 et grilles. */
.article-body .method-grid,
.article-body .info-grid {
  margin-top: 1.5rem;
}

/* ========== HEADER ========== */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(248, 250, 252, 0.92);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-year {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  color: var(--accent-bright);
  margin-left: 0.15em;
}

.logo-mark {
  display: inline-block;
  font-size: 3rem;
  margin-right: 0.6rem;
  vertical-align: -0.85rem;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 1.05rem;
}


.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover, .nav a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink);
  padding: 0.2rem 0.5rem;
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    flex-direction: column;
    gap: 0;
    padding: 0.6rem 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(26, 20, 16, 0.08);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.6rem 1.2rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
}

/* ========== HERO ========== */
.hero {
  padding: 4rem 0 3.5rem;
  position: relative;
}

/* ========== BARRE PARTAGE FLOTTANTE ========== */
.floating-share {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 0.6rem;
}

.floating-share-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.1rem;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, background 0.18s ease;
}
.floating-share-toggle:hover {
  background: var(--accent);
  transform: scale(1.04);
}
.floating-share-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }

.floating-share-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #ffffff;
  border-radius: 28px;
  padding: 0.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-share.collapsed .floating-share-panel {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.share-btn-floating {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper-light);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.share-btn-floating:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  filter: brightness(1.08);
}

.share-btn-floating svg { width: 20px; height: 20px; }

/* Le label texte est masqué visuellement mais présent pour l'accessibilité
   et pour le feedback "Lien copié" sur le bouton "copy". */
.share-btn-floating .share-label-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .floating-share { bottom: 1rem; right: 1rem; gap: 0.45rem; }
  .share-btn-floating { width: 38px; height: 38px; }
  .floating-share-toggle { width: 40px; height: 40px; }
}

@media print {
  .floating-share { display: none; }
}

/* ========== DOUBLE TEASER (Pourquoi + Méthode sur l'accueil) ========== */
.dual-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.dual-teaser-card {
  background: var(--paper-light);
  border: 1px solid var(--rule);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.dual-teaser-card .section-eyebrow { margin-bottom: 0.6rem; }
.dual-teaser-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.8rem;
  color: var(--ink);
}
.dual-teaser-card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.dual-teaser-card .btn {
  align-self: flex-start;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}
.dual-teaser-card .btn:hover {
  background: var(--paper-light);
  color: var(--ink);
}

@media (max-width: 700px) {
  .dual-teaser-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .dual-teaser-card { padding: 1.5rem; }
}

/* ========== BANNIÈRE D'ACCROCHE (accueil) ========== */
.banner-hero {
  margin: 0;
  padding: 0;
  width: 100%;
}
.banner-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== FILTRES RESSOURCES (chips) ========== */
.resource-filters {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2.5rem;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 2rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  background: #f3eee0;
  border: 1px solid transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
@media (hover: hover) {
  .filter-chip:hover:not(:disabled):not(.is-active) {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08), inset 0 0 0 1px rgba(0,0,0,0.08);
  }
}
.filter-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.filter-chip.is-active {
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
}
/* Couleurs spécifiques quand actif (couleur de la discipline) */
.filter-chip[data-value="methode"].is-active {
  background: #ecd97f;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(184,149,12,0.25);
}
.filter-chip[data-value="mathematiques"].is-active {
  background: var(--accent);
  color: var(--paper-light);
  box-shadow: 0 3px 10px rgba(160,40,50,0.28);
}
.filter-chip:disabled {
  background: transparent;
  border: 1px dashed var(--rule);
  box-shadow: none;
  color: var(--ink-muted);
  cursor: not-allowed;
  opacity: 0.85;
}
.chip-icon {
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
  flex: 0 0 auto;
}
.chip-icon[data-icon="guide"]       { -webkit-mask-image: url(/assets/icons/guide.svg);       mask-image: url(/assets/icons/guide.svg); }
.chip-icon[data-icon="flashcards"]  { -webkit-mask-image: url(/assets/icons/flashcards.svg);  mask-image: url(/assets/icons/flashcards.svg); }
.chip-icon[data-icon="theorie"]     { -webkit-mask-image: url(/assets/icons/theorie.svg);     mask-image: url(/assets/icons/theorie.svg); }
.chip-icon[data-icon="exercices"]   { -webkit-mask-image: url(/assets/icons/exercices.svg);   mask-image: url(/assets/icons/exercices.svg); }
.chip-icon[data-icon="corrections"] { -webkit-mask-image: url(/assets/icons/corrections.svg); mask-image: url(/assets/icons/corrections.svg); }
.chip-icon[data-icon="math"]        { -webkit-mask-image: url(/assets/icons/math.svg);        mask-image: url(/assets/icons/math.svg); }
.chip-icon[data-icon="methode"]     { -webkit-mask-image: url(/assets/icons/methode.svg);     mask-image: url(/assets/icons/methode.svg); }
.chip-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: var(--ink-muted);
}
.resource-card.hidden { display: none; }

/* (carnet headings retirés — trop d'espace vertical) */

/* Tag de discipline coloré (fond) + icône de type SVG (mask) */
.resource-card[data-discipline="mathematiques"] .resource-tag { background: var(--accent); color: var(--paper-light); }
.resource-card[data-discipline="methode"] .resource-tag { background: #ecd97f; color: var(--ink); }

/* Icône type en HAUT À DROITE de la card */
.resource-card::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  background-color: var(--accent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  opacity: 0.85;
  pointer-events: none;
}
.resource-card[data-type="theorie"]::after { -webkit-mask-image: url(/assets/icons/theorie.svg); mask-image: url(/assets/icons/theorie.svg); }
.resource-card[data-type="flashcards"]::after { -webkit-mask-image: url(/assets/icons/flashcards.svg); mask-image: url(/assets/icons/flashcards.svg); }
.resource-card[data-type="exercices"]::after { -webkit-mask-image: url(/assets/icons/exercices.svg); mask-image: url(/assets/icons/exercices.svg); }
.resource-card[data-type="corrections"]::after { -webkit-mask-image: url(/assets/icons/corrections.svg); mask-image: url(/assets/icons/corrections.svg); }
.resource-card[data-type="guide"]::after { -webkit-mask-image: url(/assets/icons/guide.svg); mask-image: url(/assets/icons/guide.svg); background-color: #b8950c; }
/* Espace à droite pour le titre afin de pas chevaucher l'icône */
.resource-card h3 { padding-right: 2.5rem; }


/* Carte "à la une" — fond jaune pâle pour la mettre en valeur, sans bordure agressive */
.resource-card-featured {
  background: #fef7d6;
  border: 1px solid #ecd97f;
}
.resource-card-featured h3 { color: var(--ink); }
.resource-meta-flag {
  background: #ecd97f;
  color: var(--ink) !important;
  padding: 0.15rem 0.5rem;
  font-weight: 600;
  border-radius: 2px;
}
.resource-count {
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
}
.resource-empty {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--rule);
}

@media (max-width: 720px) {
  .filter-chip { font-size: 0.82rem; padding: 0.35rem 0.7rem; }
}

/* ========== BANDEAU CREDIBILITE & SCOPE ========== */
.trust-strip {
  background: var(--paper-light);
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  text-align: center;
}
.trust-strip p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 80ch;
  margin: 0 auto;
}
.trust-strip p + p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}
.trust-strip .trust-scope strong { color: var(--accent); }
.trust-strip a {
  color: var(--accent);
  font-weight: 500;
}

/* ========== LOGO TAMPON (header) ========== */
.logo-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: inset 0 0 0 3px var(--paper-light), inset 0 0 0 4px var(--accent-soft);
  transform: rotate(-7deg);
  font-family: 'Nunito', system-ui, sans-serif;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  padding: 0.15rem;
  transition: transform 0.2s ease;
}
.logo-stamp:hover { transform: rotate(0deg); color: var(--ink); }

.logo-stamp-top {
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1px;
}

.logo-stamp-flag {
  display: flex;
  width: 26px;
  height: 14px;
  margin: 1px 0;
  border: 1px solid var(--ink);
}
.logo-stamp-flag span { flex: 1; }
.logo-stamp-flag span:nth-child(1) { background: #000; }
.logo-stamp-flag span:nth-child(2) { background: #FAE042; }
.logo-stamp-flag span:nth-child(3) { background: #ED2939; }

.logo-stamp-mid {
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-top: 2px;
}

.logo-stamp-year {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 1px;
}


.hero-eyebrow,
.page-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.hero h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 60%, var(--highlight) 60%);
  padding: 0 0.1em;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 60ch;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: -0.5rem 0 1.5rem;
  max-width: 70ch;
}
.hero-subtitle strong { color: var(--ink); }

.hero-lead-row {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-lead-row .hero-lead { flex: 0 1 60ch; }
.hero-lead-row .hero-cta { flex-shrink: 0; align-self: flex-end; margin-left: auto; }

@media (max-width: 720px) {
  .hero-lead-row { display: block; }
  .hero-lead-row .hero-lead { margin-bottom: 1.2rem; }
  .hero-lead-row .hero-cta { display: inline-block; }
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 2.5rem;
}
.hero-meta > div {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent-bright);
  padding: 1rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.hero-meta > div:nth-child(2) { border-left-color: var(--accent); }
.hero-meta > div:nth-child(3) { border-left-color: var(--highlight); }
.hero-meta > div:nth-child(4) { border-left-color: var(--accent-light); }
@media (max-width: 700px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}

.hero-meta strong {
  display: block;
  color: var(--accent);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* ========== SECTION GENERIQUE ========== */
section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--rule);
}

section:last-of-type { border-bottom: none; }

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.section-intro {
  max-width: 65ch;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ========== PAGE INTERIEURE (méthode, pourquoi) ========== */
.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 24ch;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.page-content {
  padding: 3rem 0 4rem;
}

.page-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  border-top: 2px solid var(--ink);
  padding-top: 2rem;
  max-width: 24ch;
}

.page-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  color: var(--accent);
}

.page-content p {
  color: var(--ink-soft);
  margin-bottom: 1.2em;
  max-width: 65ch;
}

.page-content ul, .page-content ol {
  color: var(--ink-soft);
  margin-bottom: 1.4em;
  padding-left: 1.4rem;
  max-width: 65ch;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content strong { color: var(--ink); }

/* Quand .page-content est imbriqué dans une <section>, on neutralise le padding
   pour éviter de cumuler avec celui de la section. */
section > .page-content { padding: 0; }

.page-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ========== CHANGELOG ========== */
.changelog {
  list-style: none;
  padding-left: 0 !important;
  border-top: 1px solid var(--rule);
  margin-top: 1.5rem;
}

.changelog li {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
  color: var(--ink-soft);
  margin-bottom: 0 !important;
}

.changelog li strong {
  display: inline-block;
  min-width: 8.5rem;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 600px) {
  .changelog li strong { display: block; min-width: 0; margin-bottom: 0.2rem; }
}

/* ========== RESSOURCES (cards) ========== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.resource-card {
  background: var(--paper-light);
  border: 1px solid var(--rule);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 20, 16, 0.08);
}

.resource-tag {
  position: absolute;
  top: -9px;
  left: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.resource-card h3 {
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
}

.resource-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.resource-meta {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 1.2rem;
}

.resource-meta span:not(:last-child)::after {
  content: ' · ';
  margin: 0 0.3rem;
}

.resource-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Nunito', sans-serif;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-secondary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.28);
}

.btn-large {
  padding: 0.95rem 1.8rem;
  font-size: 1rem;
}

/* ========== METHODE — STEPS NUMEROTEES ========== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.method-step {
  border-top: 2px solid var(--ink);
  padding-top: 1.2rem;
}

.method-num {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.method-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.method-step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ========== SOURCES ========== */
.sources-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}

.sources-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
}

.source-name {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.source-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.source-link {
  font-size: 0.85rem;
  white-space: nowrap;
}

.source-link::after { content: ' ↗'; }

@media (max-width: 600px) {
  .sources-list li { grid-template-columns: 1fr; }
}

/* ========== AVERTISSEMENT ========== */
.disclaimer {
  background: var(--paper-light);
  border: 2px solid var(--accent);
  padding: 2rem;
  position: relative;
}

.disclaimer::before {
  content: '!';
  position: absolute;
  top: -18px;
  left: 1.8rem;
  background: var(--accent);
  color: var(--paper);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 36px;
}

.disclaimer h2 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 0.3rem;
}

.disclaimer p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.disclaimer p:last-child { margin-bottom: 0; }

.disclaimer strong { color: var(--ink); }

/* ========== FAQ ========== */
.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 0;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover { color: var(--accent); }

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 1.4rem 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 70ch;
}

.faq-item.open .faq-answer { max-height: 600px; }

/* ========== DATES & INFOS PRATIQUES ========== */
.dates-block {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}

.dates-block .section-eyebrow {
  color: var(--paper-dark);
}

.dates-block h2 {
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.dates-block .section-intro {
  color: var(--paper-dark);
  opacity: 0.85;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(245, 241, 232, 0.15);
  border: 1px solid rgba(245, 241, 232, 0.15);
  margin-top: 2rem;
}

.date-cell {
  background: var(--ink);
  padding: 1.5rem 1.2rem;
}

.date-day {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--paper);
  line-height: 1;
}

.date-month {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-dark);
  opacity: 0.7;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
}

.date-label {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--paper);
  font-style: italic;
}

.date-detail {
  font-size: 0.82rem;
  color: var(--paper-dark);
  opacity: 0.7;
  margin-top: 0.3rem;
}

/* Encart info pratique */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  background: var(--paper-light);
  border: 1px solid var(--rule);
  padding: 1.5rem;
}

.info-card h4 {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ========== NOUVEAUTES 2026 ========== */
.novelty-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}

.novelty-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.novelty-tag {
  font-family: 'Nunito', system-ui, sans-serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding-top: 0.3rem;
}

.novelty-content h4 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.novelty-content p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 600px) {
  .novelty-list li {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ========== FORMULAIRES ========== */
.forms-block {
  background: var(--paper-dark);
  padding: 4.5rem 0;
}

.forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 760px) {
  .forms-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2rem;
}

.form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-card .form-intro {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

/* Asterisque rouge sur les labels des champs obligatoires */
.form-field:has(input[required], textarea[required]) > label::after {
  content: ' *';
  color: #dc2626;
  font-weight: 700;
}

/* Feedback visuel sur les champs invalides après interaction utilisateur */
.form-field input:user-invalid,
.form-field textarea:user-invalid,
.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #dc2626;
  background: #fef2f2;
}
.form-field .field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #dc2626;
}

/* Optin checkbox layout : checkbox aligné à gauche, label inline */
.form-optin label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.4;
}
.form-optin input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.form-optin span::after {
  content: ' *';
  color: #dc2626;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  background: var(--paper-light);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-result {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-result.success { color: var(--green-soft); }
.form-result.error { color: var(--accent); }

/* Honeypot anti-bot, jamais visible */
.botcheck { display: none !important; }

/* ========== PARTAGE SOCIAL ========== */
.share-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

.share-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-right: 0.5rem;
  font-weight: 500;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.share-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ========== MODAL PDF ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 20, 16, 0.92);
  z-index: 9999;
  padding: 2rem;
}

.modal.open { display: flex; flex-direction: column; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  padding-bottom: 1rem;
  gap: 1rem;
}

.modal-title {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: var(--paper);
  color: var(--ink);
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.3rem;
  font-weight: 300;
}

.modal-body {
  flex: 1;
  background: white;
  overflow: hidden;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== UTILITAIRES ========== */
.lede-quote {
  font-family: 'Nunito', system-ui, sans-serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  max-width: 60ch;
}

.text-prose {
  max-width: 65ch;
}

.text-prose p { color: var(--ink-soft); margin-bottom: 1.2em; }
.text-prose p:last-child { margin-bottom: 0; }

::selection { background: var(--highlight); color: var(--ink); }

/* Surlignage type marqueur jaune dans les titres */
mark, .hl {
  background: var(--highlight);
  color: var(--ink);
  padding: 0 0.18em;
  border-radius: 1px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--ink);
  color: var(--paper-dark);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}

.site-footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--paper);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.site-footer p {
  color: var(--paper-dark);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.4rem; }

.site-footer a {
  color: var(--paper-dark);
  text-decoration: none;
  opacity: 0.85;
}

.site-footer a:hover {
  color: var(--paper);
  opacity: 1;
  text-decoration: underline;
}

.author-card {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  font-size: 0.85rem;
}

.author-card .author-name {
  color: var(--paper);
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.author-card a {
  color: var(--paper);
  opacity: 0.9;
}

.author-card a:hover { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 232, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-disclaimer {
  font-size: 0.82rem;
  opacity: 0.7;
  margin-top: 0.8rem;
}

.footer-legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
}

.footer-legal a {
  color: var(--paper);
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.8rem;
}
.footer-legal a:hover { opacity: 1; }

.footer-craft {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
  margin-left: auto;
  text-align: right;
}
.footer-craft .heart {
  color: #e0245e;
  font-size: 0.95rem;
  vertical-align: -0.05em;
}

@media (max-width: 600px) {
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 720px) {
  .site-footer .container { grid-template-columns: 1fr; }
}
