/* ==========================================================================
   Kit contre le cyberharcèlement — feuille de style commune aux 5 pages
   Charte visuelle basée sur le visuel de campagne
   "Derrière l'écran : cyberharcèlement et créatrices de contenu"
   (couleurs échantillonnées directement dans l'image)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Palette de base, échantillonnée dans le visuel de campagne */
  --pink: #F9BDAE;
  --pink-deep: #8E0A34;
  --blue: #A9AEC8;
  --blue-deep: #2E3358;
  --blue-accent: #2E3FA8;   /* variante plus vive, utilisée pour les accents fins (nav, bordures) */
  --navy: #24275A;
  --navy-deep: #14163C;
  --coral: #E97D72;
  --coral-deep: #7A160A;
  --cream: #FBE8D0;

  /* Tokens sémantiques */
  --ink: #24275A;
  --ink-soft: #53567A;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: #F6F1EC;
  --border: #E7E0D6;

  --font-display: 'Anton', 'Montserrat', sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  --radius: 12px;
  --max-width: 800px;

  /* Accent par défaut (remplacé par les classes .tone-*) */
  --accent: var(--navy);
  --accent-deep: var(--navy-deep);
}

/* ---------- Teintes par page : Constat=marine, Prévention=bleu, Réaction=corail, Annuaire=rose ---------- */

.tone-constat    { --accent: var(--navy);        --accent-deep: var(--navy-deep); }
.tone-prevention { --accent: var(--blue-accent);  --accent-deep: var(--navy-deep); }
.tone-reaction   { --accent: var(--coral-deep);   --accent-deep: var(--coral-deep); }
.tone-annuaire   { --accent: var(--pink-deep);    --accent-deep: var(--pink-deep); }

/* ---------- Reset & base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; color: var(--ink); }

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  color: var(--accent);
}

h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
}

h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; }

p { color: var(--ink-soft); max-width: 78ch; }

a { color: var(--accent); }

/* ---------- Header / nav (bandeau rose, commun aux 5 pages) ---------- */

.site-header {
  background: var(--pink);
}

.site-header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--navy);
  opacity: 0.72;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover { opacity: 1; }

nav.main-nav a.active {
  opacity: 1;
  border-bottom-color: var(--accent-deep, var(--navy));
}

/* ---------- Footer (bandeau marine, commun aux 5 pages) ---------- */

.site-footer {
  background: var(--navy);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer .credit-logos {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer img { display: block; height: 20px; width: auto; }
.site-footer img.credit-descodeuses { height: 26px; }

/* ---------- Layout helpers ---------- */

main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.prose { max-width: var(--max-width); }

.hero { padding: 1.5rem 0 2.5rem; }

.hero-split {
  padding: 2rem 0 1.5rem;
  display: flex;
  gap: 3.5rem;
  align-items: flex-end;
}

.hero-split .hero-main { flex: 1 1 360px; max-width: 480px; min-width: 0; }
.hero-split .hero-stats { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; flex-shrink: 0; }
.hero-split .stat-row { margin: 0; gap: 1.5rem; }
.hero-split .stat-block { width: 120px; flex-shrink: 0; }
.hero-split .stat-number { font-size: 2.1rem; }

/* Palier intermédiaire : sous 1080px, empiler proprement plutôt que de
   laisser les deux colonnes se chevaucher ou retomber à la ligne. */
@media (max-width: 1080px) {
  .hero-split { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-split .hero-main { max-width: 100%; flex: none; }
  .hero-split .hero-stats { flex: none; width: 100%; }
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

/* ---------- Fiche grid (cartes cliquables : Prévention / Réaction) ---------- */

.fiche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 32px;
  margin: 8px 0 16px;
  padding: 10px 0;
}

.fiche {
  position: relative;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(36,39,90,.12);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.fiche:hover, .fiche:focus-visible {
  box-shadow: 0 18px 40px rgba(36,39,90,.18);
  transform: translateY(-3px);
}

.fiche:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 4px; }

.fiche:nth-child(5n+1) { transform: rotate(-1.4deg); }
.fiche:nth-child(5n+2) { transform: rotate(0.9deg); }
.fiche:nth-child(5n+3) { transform: rotate(-0.7deg); }
.fiche:nth-child(5n+4) { transform: rotate(1.2deg); }
.fiche:nth-child(5n+5) { transform: rotate(-1deg); }
.fiche:hover:nth-child(n), .fiche:focus-visible:nth-child(n) { transform: translateY(-3px) rotate(0deg); }

.fiche-pin {
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.18), 0 4px 8px rgba(20,22,60,.3);
}

.fiche-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  padding: 22px;
  border-radius: 14px;
}

.fiche-top { display: flex; justify-content: space-between; align-items: center; }

.fiche-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
}

.fiche-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fiche-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.15; color: var(--navy); }
.fiche-desc { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }

.fiche-meta-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fiche-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
}

.fiche-cta { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* ---------- CTA banner (renvoi vers l'autre parcours) ---------- */

.cta-banner {
  margin: 16px 0 40px;
  padding: 26px 32px;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-banner p.cta-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--navy); }
.cta-banner p.cta-sub { margin: 0; font-size: 14px; color: var(--ink-soft); }

.cta-banner a.btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

/* ---------- Modale (détail d'un parcours / d'une situation) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,22,60,.55);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4vh 20px;
  overflow-y: auto;
  z-index: 200;
}

.modal-overlay[hidden] { display: none; }

.modal-dialog {
  width: 100%;
  max-width: 900px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(20,22,60,.35);
  margin-bottom: 4vh;
}

.modal-head {
  padding: 32px 40px 26px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  border-radius: 20px 20px 0 0;
}

.modal-num { font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: .9; flex-shrink: 0; }

.modal-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }

.modal-title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
}

.modal-goal { margin: 0; font-size: 15px; line-height: 1.5; color: var(--navy); max-width: 620px; }

.modal-close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.modal-body { padding: 28px 40px 34px; display: flex; flex-direction: column; gap: 22px; }

.modal-intro { background: var(--surface-soft); border-radius: 12px; padding: 18px 22px; }
.modal-intro p.t { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--navy); }
.modal-intro p.d { margin: 0; font-size: 15px; line-height: 1.55; }

.step-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
}

.step-pill .num {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-pill .name { font-size: 12.5px; font-weight: 700; color: var(--navy); }

.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.step-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
}

.step-item-head { display: flex; flex-direction: column; gap: 8px; }

.step-item-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item-label { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.step-item-name { margin: 0; overflow-wrap: break-word; font-size: 16.5px; font-weight: 800; line-height: 1.2; color: var(--navy); }
.step-item-count { margin: 0; font-size: 12px; color: var(--ink-soft); }

.gesture-grid { display: grid; gap: 12px; min-width: 0; }
.step-item > * { min-width: 0; }

.gesture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 2px 6px rgba(36,39,90,.05);
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.gesture-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

.gesture-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.gesture-flag { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #F6DFCD; color: var(--coral-deep); }

.gesture-card p.title { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.gesture-card p.desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.gesture-card a.link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  max-width: 100%;
  min-height: 34px;
  padding: 8px 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  hyphens: none;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.modal-boxes { display: flex; gap: 16px; flex-wrap: wrap; }

.alert-box-modal {
  flex: 1 1 260px;
  background: var(--cream);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.alert-box-modal > div { min-width: 0; flex: 1 1 200px; }
.alert-box-modal p.t { margin: 0 0 4px; font-size: 14.5px; font-weight: 800; color: var(--coral-deep); }
.alert-box-modal p.d { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.alert-box-modal a.link {
  display: inline-block;
  max-width: 100%;
  min-height: 42px;
  padding: 11px 18px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--coral-deep);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
}

.note-box-modal { flex: 1 1 260px; background: var(--navy); border-radius: 12px; padding: 18px 22px; }
.note-box-modal p.t { margin: 0 0 4px; font-size: 14.5px; font-weight: 800; color: var(--pink); }
.note-box-modal p.d { margin: 0; font-size: 13.5px; line-height: 1.5; color: #FFFFFF; }

.modal-sources { margin: 0; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); }

.modal-nav { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.modal-nav button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
}

.modal-nav .prev { border: 1px solid var(--border); background: var(--surface); color: var(--navy); }
.modal-nav .next { border: none; background: var(--blue-accent); color: #FFFFFF; }

/* Largeurs intermédiaires (tablette, petite fenêtre) : l'en-tête d'étape passe
   au-dessus des gestes et la grille s'adapte à la place disponible. */
@media (max-width: 860px) {
  .step-item { grid-template-columns: 1fr; gap: 14px; }
  .step-item-head { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
  .gesture-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important; }
}

/* ---------- Source line ---------- */

.source-line {
  font-size: 0.76rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 1.1rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.badge-added { background: #E4E6F0; color: var(--blue-accent); }
.badge-check { background: #F6DFCD; color: var(--coral-deep); }

/* ---------- Intro box ---------- */

.intro-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
  max-width: var(--max-width);
}

.intro-box h3 { margin-bottom: 0.5rem; }
.intro-box ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.intro-box li { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.4rem; }

.section-title { margin-top: 2.5rem; padding-top: 0.5rem; }

/* ---------- Sommaire (page Notre constat) ---------- */

.page-toc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 2.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: var(--max-width);
}

.page-toc .toc-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-right: 0.3rem;
}

.page-toc a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: var(--surface-soft);
}

.page-toc a:hover { background: var(--cream); }

/* ---------- Titres de partie (Notre étude / Lexique) ---------- */

.part-section { margin: 0 0 2.25rem; }
.part-section-break { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); max-width: 1000px; }

h2.part-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--accent);
  margin: 0;
  text-align: left;
}

/* ---------- Glossaire (page Notre constat) ---------- */

.glossary-section { max-width: 1000px; }

.glossary {
  columns: 2;
  column-gap: 2.75rem;
  margin: 0.5rem 0 1.5rem;
}

.glossary .term {
  break-inside: avoid;
  margin: 0 0 1.15rem;
}

.glossary dt {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.96rem;
  margin: 0 0 0.2rem;
}

.glossary dd {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Page Notre constat : contenu centré (propre à cette page) ---------- */

.tone-constat .prose,
.tone-constat .page-toc,
.tone-constat .glossary-section,
.tone-constat > .source-line {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Stat blocks (chiffres clés simples) ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 1.75rem 0 2.5rem;
  max-width: 900px;
}

.stat-block { border-left: 2px solid var(--border); padding-left: 1rem; }

.stat-number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.3rem;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.stat-label { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.stat-base { font-size: 0.75rem; color: var(--ink-soft); opacity: 0.75; display: block; margin-top: 0.25rem; }

/* ---------- Donut chart (CSS conic-gradient) ---------- */

.donut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.75rem 0 1.25rem;
}

.donut-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; max-width: 230px; }

.donut-chart {
  --pct: 50;
  --c: var(--accent);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--pct) * 1%), var(--surface-soft) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.donut-chart::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--surface);
}

.donut-chart .donut-value {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--c);
}

.donut-item p { margin: 0; font-size: 0.86rem; }

/* ---------- Bar chart ---------- */

.bar-chart { margin: 1.6rem 0 1.1rem; max-width: 720px; }

.bar-row { margin-bottom: 1.1rem; }

.bar-row .bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.bar-row .bar-label { font-size: 0.88rem; color: var(--ink); font-weight: 600; }
.bar-row .bar-value { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--bar-c); flex-shrink: 0; }

.bar-track {
  background: var(--surface-soft);
  border-radius: 999px;
  height: 16px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--bar-c);
  width: 0%;
}

/* ---------- Annuaire : filtre + cartes ressources ---------- */

.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-top: 3px solid var(--accent);
}

.resource-card .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }

.tag {
  font-size: 0.72rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  color: var(--ink-soft);
}

.resource-card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.resource-card p { margin: 0 0 0.6rem; font-size: 0.92rem; }
.resource-card a { font-size: 0.9rem; font-weight: 600; }
.resource-card.is-hidden { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 560px) {
  nav.main-nav { gap: 1rem; }
  main { padding: 2rem 1.25rem 3rem; }
  .stat-row { gap: 1.25rem; }
  .site-footer .credit-logos { gap: 1.3rem; }
  .site-footer img { height: 16px; }
  .site-footer img.credit-descodeuses { height: 21px; }

  .glossary { columns: 1; }
  .part-section-break { margin-top: 2.25rem; padding-top: 1.5rem; }

  .hero-split { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-split .hero-main { max-width: 100%; flex: none; }
  .hero-split .hero-stats { flex: none; }
  .hero-split .stat-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-split .stat-block { width: 100%; }

  .fiche-grid { grid-template-columns: 1fr; gap: 32px; }
  .fiche:nth-child(n) { transform: none !important; }

  .modal-overlay { padding: 0; }
  .modal-dialog { max-width: 100%; min-height: 100%; border-radius: 0; margin-bottom: 0; }
  .modal-head { padding: 24px 64px 20px 20px; border-radius: 0; position: relative; }
  .modal-close { position: absolute; top: 18px; right: 18px; margin-left: 0; }
  .modal-num { font-size: 42px; }
  .modal-body { padding: 22px 20px 28px; gap: 18px; }
  .step-item { grid-template-columns: 1fr; gap: 12px; }
  .step-item-head { flex-direction: row; align-items: center; gap: 12px; }
  .gesture-grid { grid-template-columns: 1fr !important; }
  .modal-boxes { flex-direction: column; }
  .modal-nav { flex-direction: column-reverse; }
  .modal-nav button { width: 100%; }

  .cta-banner { padding: 22px; flex-direction: column; align-items: flex-start; }
}