@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

/* ============================================================
   DÉCOUVRIR MONTESSORI — Design system
   Direction : naturel, chaleureux, bienveillant
   ============================================================ */

:root {
  /* Palette principale */
  --primary:        #4E91AB;   /* bleu Montessori */
  --primary-dark:   #1B4460;   /* bleu profond */
  --primary-light:  #9DC4D7;   /* ciel */
  --primary-pale:   #E8F3F8;   /* bleu très pâle */

  /* Accent naturel */
  --sage:           #7CAB8A;   /* vert sauge */
  --sage-pale:      #E4EFE8;
  --terra:          #C7784F;   /* terracotta */
  --terra-pale:     #FAEEE5;

  /* Neutres chauds */
  --cream:          #F9F6F1;   /* fond principal */
  --ivory:          #FFFDF9;   /* fond article */
  --dark:           #2D3F4E;
  --text:           #3E5260;
  --text-light:     #6B8494;
  --border:         rgba(78,145,171,0.15);

  /* Ombres */
  --shadow-sm:      0 2px 16px rgba(45,63,78,0.07);
  --shadow-md:      0 6px 32px rgba(45,63,78,0.11);
  --shadow-lg:      0 12px 48px rgba(45,63,78,0.15);

  /* Coins arrondis */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-full: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5em; }
h1, h2, h3, h4, h5 { font-family: 'Playfair Display', 'Georgia', serif; }

/* ============================================================
   CONTENEUR
   ============================================================ */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 20px rgba(45,63,78,0.06);
}
/* Ligne colorée en bas du header */
.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--sage) 50%, var(--terra) 100%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-right: 32px;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(53%) sepia(33%) saturate(500%) hue-rotate(162deg);
}
.logo-img--footer {
  height: 40px;
  width: auto;
  display: block;
  filter: none;
}

/* Nav principale */
.site-nav > ul {
  display: flex;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dark);
  font-family: 'Nunito', sans-serif;
  font-size: 0.90rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > a.active {
  background: var(--primary-pale);
  color: var(--primary-dark);
  text-decoration: none;
}
.site-nav > ul > li > a.active { color: var(--primary); }
.nav-arrow { font-size: 0.58rem; opacity: 0.45; transition: transform 0.18s; }
.has-dropdown:hover .nav-arrow,
.has-dropdown.open  .nav-arrow { transform: rotate(180deg); opacity: 0.8; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 300;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: var(--ivory);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.has-dropdown:hover .dropdown,
.has-dropdown.open  .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { margin: 0; padding: 0; }
.dropdown a {
  display: block;
  padding: 9px 20px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
}
.dropdown a:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
  text-decoration: none;
}
.dropdown-separator {
  height: 1px;
  background: var(--border);
  margin: 4px 12px;
}
.dropdown-more a {
  color: var(--primary) !important;
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
}

/* Burger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.2s;
}

/* ============================================================
   FIL D'ARIANE
   ============================================================ */
.breadcrumb {
  padding: 10px 0 4px;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
}
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--text-light); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   PAGE BANNER — Nouveau composant (remplace page-bandeau)
   Structure :
   <section class="page-banner">
     <div class="container">
       <span class="page-banner-eyebrow">Catégorie</span>
       <h1>Titre</h1>
       <p class="page-banner-intro">Texte d'intro</p>
     </div>
   </section>
   ============================================================ */
.page-banner {
  position: relative;
  background: var(--primary-pale);
  overflow: hidden;
  padding: 52px 0 44px;
}
/* Cercle décoratif organique */
.page-banner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(124,171,138,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-banner::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(78,145,171,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner-eyebrow {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}
.page-banner h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.22;
  max-width: none;
  margin-bottom: 14px;
}
.page-banner-intro {
  font-size: 1.05rem;
  color: var(--text);
  max-width: none;
  line-height: 1.75;
}

/* ============================================================
   HOME COVER — grand visuel de la page d'accueil
   ============================================================ */
.home-cover {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.home-cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-dark);
}
.home-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,68,96,0.90) 0%, rgba(27,68,96,0.35) 55%, transparent 100%);
}
.home-cover-content {
  position: relative;
  padding-bottom: 60px;
  z-index: 1;
}
.home-cover-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.22;
  margin-bottom: 12px;
}
.home-cover-intro {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.68;
}

/* ============================================================
   IMAGE À LA UNE (dans l'article body)
   ============================================================ */
.article-featured-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-md);
  margin-bottom: 2em;
  box-shadow: var(--shadow-md);
}
.img-credit {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: -1.5em 0 2em;
  line-height: 1.5;
}
.img-credit a { color: inherit; }

/* ============================================================
   LAYOUT ARTICLE
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
  padding: 48px 24px 80px;
  max-width: 1160px;
  margin: 0 auto;
}
/* Sans min-width:0, une colonne de grille refuse de descendre sous la largeur
   intrinseque de son contenu : un tableau large deborde alors toute la page
   au lieu de scroller dans son .table-wrap. */
.article-layout > .article-body { min-width: 0; }
.article-body .table-wrap { max-width: 100%; }

/* Article intro */
.article-intro {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 22px;
  margin-bottom: 2em;
}

/* Article body */
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2.6em 0 0.8em;
  padding-top: 0.2em;
  border-top: 2px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; border-top: none; }
.article-body h3 {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 1.8em 0 0.5em;
  font-family: 'Nunito', sans-serif;
  font-style: normal;
}
.article-body p { margin-bottom: 1.2em; }
.article-body ul,
.article-body ol { margin-bottom: 1.2em; }
.article-body li { margin-bottom: 0.4em; }
.article-body strong { color: var(--dark); }
.article-body a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--primary); }
.article-body img:not(.leaflet-tile):not(.leaflet-marker-icon):not(.leaflet-marker-shadow) {
  border-radius: var(--r-md);
  margin: 1.5em 0;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 22px 26px;
  margin: 2em 0;
  position: relative;
}
.info-box::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--sage) 100%);
  border-radius: 4px 0 0 4px;
}
.info-box h2,
.info-box h3,
.info-box h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}
.info-box p { margin-bottom: 0; font-size: 0.95rem; }
.info-box ul { margin-bottom: 0; font-size: 0.95rem; }

/* Highlight box (variante verte) */
.highlight-box {
  background: var(--sage-pale);
  border: 1px solid rgba(124,171,138,0.30);
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 22px 26px;
  margin: 2em 0;
}
.highlight-box h3,
.highlight-box h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.35;
}
.highlight-box p:last-child,
.highlight-box ul:last-child { margin-bottom: 0; }
.highlight-box p,
.highlight-box ul { font-size: 0.95rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 88px; }
.sidebar-block {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar-block h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-toc { list-style: none; padding: 0; }
.sidebar-toc li { margin-bottom: 6px; }
.sidebar-toc a {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.45;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.sidebar-toc a::before {
  content: '›';
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}
.sidebar-toc a:hover { color: var(--primary-dark); text-decoration: underline; }

.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sidebar-links li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-links li.current strong { color: var(--primary-dark); }
.sidebar-links a {
  font-size: 0.87rem;
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}
.sidebar-links a:hover { color: var(--primary-dark); text-decoration: underline; }

/* CTA sidebar */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--r-md);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sidebar-cta::before {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.sidebar-cta h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  border: none;
  padding: 0;
}
.sidebar-cta p { font-size: 0.88rem; margin-bottom: 16px; line-height: 1.55; color: rgba(255,255,255,0.85); }
.sidebar-cta a {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 0.83rem;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: var(--r-full);
  text-decoration: none;
  transition: opacity 0.18s;
}
.sidebar-cta a:hover { opacity: 0.88; text-decoration: none; }

/* ============================================================
   PAGE ACCUEIL — Statistiques
   ============================================================ */
.home-stats {
  background: var(--primary-dark);
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.home-stats::after {
  content: '';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.50);
  margin-top: 5px;
  font-family: 'Nunito', sans-serif;
}

/* ============================================================
   PAGE ACCUEIL — Sections
   ============================================================ */
.home-section { padding: 72px 0; }
.home-section.alt-bg { background: var(--primary-pale); }

.intro-rubrique { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terra);
  margin-bottom: 10px;
}
.titre-rubrique {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
/* Anciens styles pour compatibilité */
.titre-rubrique:not(.intro-rubrique .titre-rubrique) {
  text-align: center;
  margin-bottom: 32px;
}
.section-subtitle:not(.intro-rubrique .section-subtitle) {
  text-align: center;
  margin-top: -20px;
  margin-bottom: 32px;
}

/* Cards thématiques */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.theme-card {
  background: #EAF4F8;
  border: none;
  border-radius: var(--r-lg);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.theme-card.green  { background: #EBF4ED; }
.theme-card.coral  { background: #F9EDE5; }
.theme-card:hover  { background: #deedf4; }
.theme-card.green:hover  { background: #ddeee1; }
.theme-card.coral:hover  { background: #f4e0d2; }
.theme-card .card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  margin-bottom: 16px;
  display: block;
  line-height: 1.3;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(78,145,171,0.2);
}
.theme-card.green .card-title  { color: #4a7a57; border-bottom-color: rgba(124,171,138,0.3); }
.theme-card.coral .card-title  { color: #a05630; border-bottom-color: rgba(199,120,79,0.3); }
.theme-card .card-title:hover  { text-decoration: underline; }
.theme-card .card-text {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.home-author {
  max-width: 860px;
  margin: 36px auto 0;
  padding: 22px 28px;
  border-left: 4px solid var(--primary-light);
  background: var(--ivory, #faf7f2);
  border-radius: var(--r-md);
}
.home-author p { margin: 0; font-size: 0.98rem; line-height: 1.75; color: var(--text); }
.home-author a { color: var(--primary-dark); font-weight: 600; }
.card-links { list-style: none; padding: 0; margin: 0; flex: 1; }
.card-links li {
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.card-links li:last-child { border-bottom: none; }
.card-links a {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.84rem;
  color: var(--text);
  padding: 7px 0;
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.card-links a:hover { color: var(--dark); padding-left: 4px; text-decoration: none; }
.card-more {
  font-family: 'Nunito', sans-serif;
  font-size: 0.80rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.card-more:hover { text-decoration: underline; }

/* ============================================================
   PAGE ACCUEIL — AGE TIMELINE
   ============================================================ */
.age-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 2rem 0 1.2rem;
}
.age-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px 20px;
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.age-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.age-tile-blue  { background: linear-gradient(150deg, #4E91AB 0%, #6ab5d0 100%); }
.age-tile-green { background: linear-gradient(150deg, #7CAB8A 0%, #9ec8ac 100%); }
.age-tile-coral { background: linear-gradient(150deg, #C7784F 0%, #d99570 100%); }
.age-tile-range {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.age-tile-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
}
.age-hub-link {
  text-align: center;
  margin-top: 18px;
}
.age-hub-link a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.age-hub-link a:hover { text-decoration: underline; }

/* ============================================================
   PAGE ACCUEIL — FEATURE ARTICLES (par où commencer)
   ============================================================ */
.home-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2rem;
}
.home-feature-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--ivory);
  text-decoration: none;
  transition: box-shadow 0.22s, transform 0.22s;
  box-shadow: var(--shadow-sm);
}
.home-feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.home-feature-img {
  width: 100%;
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: var(--primary-pale);
}
.home-feature-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-feature-cat {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terra);
  margin-bottom: 6px;
}
.home-feature-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
  line-height: 1.35;
}
.home-feature-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

/* ============================================================
   PAGE ACCUEIL — RESSOURCES PRATIQUES
   ============================================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 2rem;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 16px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.resource-card:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 12px rgba(78,145,171,0.15);
  text-decoration: none;
}
.resource-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
}
.resource-desc {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
  .age-timeline { grid-template-columns: repeat(3, 1fr); }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .age-timeline { grid-template-columns: repeat(2, 1fr); }
  .home-features { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .age-timeline { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE ACCUEIL — CTA
   ============================================================ */
.home-cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0E3450 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.home-cta-section::before {
  content: '';
  position: absolute;
  left: -60px; top: -60px;
  width: 320px; height: 320px;
  background: rgba(78,145,171,0.15);
  border-radius: 50%;
}
.home-cta-section::after {
  content: '';
  position: absolute;
  right: 8%; bottom: -40px;
  width: 200px; height: 200px;
  background: rgba(124,171,138,0.10);
  border-radius: 50%;
}
.home-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.home-cta-inner h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 10px;
}
.home-cta-inner p { color: rgba(255,255,255,0.75); max-width: 480px; font-size: 1rem; }
.cta-buttons { display: flex; gap: 14px; flex-shrink: 0; }
.btn-cta-light {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: var(--r-full);
  text-decoration: none;
  font-size: 0.90rem;
  transition: opacity 0.18s, transform 0.18s;
}
.btn-cta-light:hover { opacity: 0.92; transform: translateY(-1px); text-decoration: none; }
.btn-cta-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.50);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: var(--r-full);
  text-decoration: none;
  font-size: 0.90rem;
  transition: background 0.18s, border-color 0.18s;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.80); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.60);
  padding: 56px 0 28px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--terra) 0%, var(--primary) 50%, var(--sage) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
  position: relative;
  z-index: 1;
}
.footer-logo {
  margin-bottom: 12px;
}
.footer-desc { font-size: 0.88rem; line-height: 1.70; max-width: 250px; }
.footer-col h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.60);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,0.60);
  font-size: 0.87rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   PAGE 404
   ============================================================ */
.error-404 { padding: 100px 20px; text-align: center; }
.error-404-inner { max-width: 560px; margin: 0 auto; }
.error-code {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.4;
}
.error-404 h1 { font-size: 1.9rem; margin-bottom: 14px; color: var(--dark); }
.error-404 p { color: var(--text-light); margin-bottom: 32px; }
.btn-home {
  display: inline-block;
  padding: 13px 30px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-full);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  margin-bottom: 52px;
  transition: background 0.18s;
}
.btn-home:hover { background: var(--primary-dark); text-decoration: none; }
.error-suggestions h2 { font-size: 1rem; color: var(--text-light); margin-bottom: 14px; font-family: 'Nunito', sans-serif; }
.error-suggestions ul { list-style: none; padding: 0; }
.error-suggestions li { margin-bottom: 10px; }
.error-suggestions a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  margin-bottom: 52px;
}
.blog-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s, transform 0.22s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 22px 24px 20px; }
.blog-card-cat {
  font-family: 'Nunito', sans-serif;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terra);
  margin-bottom: 8px;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.blog-card h3 a { color: var(--dark); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary-dark); text-decoration: underline; }
.blog-card-excerpt { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   FORMULAIRE CONTACT
   ============================================================ */
.contact-section { padding: 52px 0 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 52px;
  align-items: start;
}
.contact-form-wrap {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form-wrap h2 {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.contact-form-wrap .form-subtitle {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(78,145,171,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 32px;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  width: 100%;
  text-align: center;
}
.form-submit:hover { opacity: 0.90; transform: translateY(-1px); }
.form-success {
  background: var(--sage-pale);
  border: 1px solid var(--sage);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  color: var(--dark);
  font-size: 0.92rem;
  margin-top: 16px;
  display: none;
}
.form-error {
  background: var(--terra-pale);
  border: 1px solid var(--terra);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  color: var(--dark);
  font-size: 0.85rem;
  margin-top: 8px;
  display: none;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Raisons de contacter */
.contact-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.contact-reason-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}
.contact-reason-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.contact-reason-item h2 {
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.contact-reason-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

/* Carte à propos */
.contact-about-card {
  background: var(--primary-pale);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-about-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--primary);
}
.contact-about-card h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 2px;
}
.contact-about-role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px !important;
}
.contact-about-card p {
  font-size: 0.87rem;
  color: var(--text);
  margin-bottom: 12px;
}
.contact-about-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* FAQ contact */
.contact-faq {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.contact-faq h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 18px;
}
.contact-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-faq-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.contact-faq-item p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .contact-reasons { grid-template-columns: 1fr; }
  .contact-about-card { flex-direction: column; align-items: center; text-align: center; }
}
.contact-info-block p { font-size: 0.92rem; margin-bottom: 0; }

/* ============================================================
   PARTNER BANNER (page article-partenaire)
   ============================================================ */
.partner-banner {
  background: var(--terra-pale);
  border: 1px solid rgba(199,120,79,0.25);
  border-left: 4px solid var(--terra);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.partner-banner .partner-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--terra);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.partner-banner p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-track {
  position: relative;
  padding-left: 2.5rem;
  margin: 1.5rem 0;
}
.timeline-track::before {
  content: '';
  position: absolute;
  left: .55rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--sage));
}
.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .75rem;
  align-items: start;
  min-width: 0;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -2.05rem;
  top: .45rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
  border-radius: 50%;
}
.timeline-dot--last {
  background: var(--terra);
  box-shadow: 0 0 0 2px var(--terra);
}
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: .25rem;
}
.timeline-content {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .85rem 1.1rem;
  font-size: 1rem;
}
.timeline-content strong { color: var(--dark); }

/* ============================================================
   PHASE CARDS (esprit absorbant, etc.)
   ============================================================ */
.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.phase-card {
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
}
.phase-card--blue {
  background: var(--primary-pale);
  border-color: var(--primary-light);
}
.phase-card--sage {
  background: var(--sage-pale);
  border-color: var(--sage);
}
.phase-card .phase-age {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.phase-card--sage .phase-age { color: #3e6b4a; }
.phase-card h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .6rem;
  color: var(--dark);
}
.phase-card p { font-size: .9rem; margin: 0; color: var(--text); }

/* ============================================================
   TABLEAU COMPARATIF
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 0;
}
.data-table th {
  background: var(--primary);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  padding: .65rem 1rem;
  text-align: left;
}
.data-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--ivory); }
.data-table tr:last-child td { border-bottom: none; }

/* PLAN DE DÉVELOPPEMENT - variante */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.plan-card {
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--ivory);
}
.plan-card:nth-child(2) { border-left-color: var(--sage); }
.plan-card:nth-child(3) { border-left-color: var(--terra); }
.plan-card:nth-child(4) { border-left-color: var(--primary-dark); }
.plan-card .plan-age {
  font-family: 'Playfair Display', serif;
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: .3rem;
}
.plan-card:nth-child(2) .plan-age { color: #3e6b4a; }
.plan-card:nth-child(3) .plan-age { color: var(--terra); }
.plan-card:nth-child(4) .plan-age { color: var(--primary-dark); }
.plan-card h4 {
  font-size: .97rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}
.plan-card p { font-size: .87rem; margin: 0; color: var(--text-light); }

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */
.blog-listing {
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 52px;
  align-items: start;
}
.blog-category {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.blog-category-title {
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terra);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.blog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-list li {
  border-bottom: 1px solid var(--border);
}
.blog-list li:last-child { border-bottom: none; }
.blog-list a {
  display: block;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.blog-list a:hover {
  color: var(--primary-dark);
  padding-left: 6px;
  text-decoration: none;
}
@media (max-width: 768px) {
  .blog-listing { grid-template-columns: 1fr; padding: 32px 0 60px; }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
/* Menu burger jusqu'à 900 px : entre 769 et 900, le menu complet ne tient pas sur une ligne */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    z-index: 199;
    max-height: calc(100vh - 71px);
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a {
    color: var(--dark);
    padding: 11px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    margin: 2px 0 8px 12px;
    padding: 2px 0;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  /* l'état ouvert du bureau recentre de -50 % : on l'annule, sinon les liens sortent de l'écran */
  .has-dropdown:hover .dropdown,
  .has-dropdown.open .dropdown { transform: none; }
  .dropdown::before { display: none; }
  .dropdown a { color: var(--dark) !important; padding: 7px 14px; font-size: 0.85rem; }
  .dropdown a:hover { background: rgba(78,145,171,0.08); color: var(--primary) !important; }
}
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px 60px; }
  .phase-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .data-table { font-size: .82rem; }
  .data-table th, .data-table td { padding: .5rem .75rem; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .home-cta-inner { flex-direction: column; text-align: center; }
  .cta-buttons { flex-wrap: wrap; justify-content: center; }
  .page-banner { padding: 36px 0 32px; }
  .page-banner h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .blog-grid   { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .article-featured-img { aspect-ratio: 4 / 3; }
  .timeline-item { grid-template-columns: 3.5rem 1fr; }
  .article-layout { padding: 24px 16px 48px; }
  .container { padding: 0 16px; }
  .materiel-links-grid { grid-template-columns: 1fr; }
}

/* Label publi-rédactionnel */
.publi-notice {
  display: inline-block;
  background: var(--terra-pale);
  color: var(--terra);
  border: 1px solid rgba(199,120,79,0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: 1.2rem;
}

/* ============================================================
   GRILLE MATÉRIEL
   ============================================================ */
.materiel-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 1.5rem 0 2rem;
}
.materiel-link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid rgba(78,145,171,0.18);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.materiel-link-card:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(78,145,171,0.15);
  text-decoration: none;
}
.materiel-link-card strong {
  color: var(--primary);
  font-size: .95rem;
}
.materiel-link-card span {
  font-size: .82rem;
  color: var(--text-light);
}
@media (max-width: 768px) {
  .materiel-links-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PAGE ACTIVITÉS PAR ÂGE — HUB
   ============================================================ */
.age-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 2rem 0 2.5rem;
}
.age-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.age-card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
}
.age-baby    { background: linear-gradient(90deg, #4E91AB 0%, #6fb3cc 100%); }
.age-toddler1 { background: linear-gradient(90deg, #7CAB8A 0%, #a0c8aa 100%); }
.age-toddler2 { background: linear-gradient(90deg, #C7784F 0%, #d9996f 100%); }
.age-preschool1 { background: linear-gradient(90deg, #4E91AB 0%, #6fb3cc 100%); }
.age-preschool2 { background: linear-gradient(90deg, #7CAB8A 0%, #a0c8aa 100%); }
.age-elementary { background: linear-gradient(90deg, #C7784F 0%, #d9996f 100%); }
.age-label {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.age-card-body {
  padding: 20px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.age-card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.age-card-body h3 a {
  color: var(--dark);
  text-decoration: none;
}
.age-card-body h3 a:hover { color: var(--primary); }
.age-card-body p {
  font-size: .88rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.age-card-body ul {
  font-size: .84rem;
  color: var(--text);
  padding-left: 16px;
  margin-bottom: 0;
  flex: 1;
}
.age-card-body ul li { margin-bottom: 4px; }
@media (max-width: 768px) {
  .age-cards-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE QUI SUIS-JE
   ============================================================ */
.presentation-bandeau {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.about-photo {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
}
.about-intro-text h2 { margin-top: 0; }
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}
.about-value-item {
  background: var(--cream);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--sage);
}
.about-value-item h4 {
  margin: 0 0 8px;
  color: var(--sage);
  font-size: .95rem;
}
.about-value-item p {
  margin: 0;
  font-size: .88rem;
  color: var(--text-light);
}
.about-quote {
  background: var(--cream);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .presentation-bandeau { flex-direction: column; align-items: center; text-align: center; }
  .about-photo { width: 150px; height: 150px; }
}

.courriel-protege { unicode-bidi: bidi-override; direction: rtl; white-space: nowrap; }

/* ============================================================
   FRISE / GRAPHIQUE SVG
   ============================================================ */
.frise-figure { margin: 1.8rem 0 2rem; }
.frise-svg { width: 100%; height: auto; display: block; overflow: visible; }
.frise-svg text { font-family: 'Nunito', sans-serif; font-size: 13px; fill: var(--text); }
.frise-grid line { stroke: rgba(78,145,171,0.18); stroke-width: 1; }
.frise-row rect { fill: var(--primary); }
.frise-row .age { text-anchor: end; font-weight: 700; fill: var(--primary-dark); font-size: 12px; }
.frise-axe text { text-anchor: middle; font-size: 12px; fill: var(--text); }
.frise-axe .unite { text-anchor: end; font-size: 11px; font-style: italic; }
.frise-figure figcaption { font-size: 0.84rem; color: var(--text-light); line-height: 1.6; margin-top: 0.7rem; }
@media (max-width: 600px) {
  .frise-svg { min-width: 560px; }
  .frise-figure { overflow-x: auto; }
}

/* ============================================================
   PAGE ACCUEIL — v2 du 20 septembre 2026 (classes propres à l'accueil)
   ============================================================ */
.home-cover.home-cover-v2 { height: 580px; }
.home-cover-v2 .home-cover-gradient {
  background:
    linear-gradient(to top, rgba(27,68,96,0.94) 0%, rgba(27,68,96,0.55) 45%, rgba(27,68,96,0.10) 100%),
    linear-gradient(100deg, rgba(27,68,96,0.35) 0%, transparent 60%);
}
.home-cover-v2 .home-cover-content { padding-bottom: 96px; }
.home-cover-v2 .home-cover-content h1 { max-width: 760px; text-shadow: 0 2px 18px rgba(0,0,0,0.25); }
.home-cover-v2 .home-cover-intro { max-width: 640px; font-size: 1.06rem; margin-bottom: 26px; }
.home-cover-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-cover-actions a {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.92rem;
  padding: 12px 22px; border-radius: var(--r-full); text-decoration: none; transition: transform .15s, background .2s;
}
.home-cover-actions a:hover { transform: translateY(-1px); text-decoration: none; }
.home-cover-actions .btn-plein { background: #fff; color: var(--primary-dark); }
.home-cover-actions .btn-plein:hover { background: var(--cream); }
.home-cover-actions .btn-vide { border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.home-cover-actions .btn-vide:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* Trois situations, cartes qui chevauchent la couverture */
.home-situations-v2 { background: var(--cream); padding: 0 0 8px; }
.home-situations-v2 .situations-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: -64px; position: relative; z-index: 2;
}
.situation-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--ivory); border-radius: var(--r-lg); padding: 26px 26px 22px;
  box-shadow: var(--shadow-md); text-decoration: none; border-top: 5px solid var(--primary);
  transition: transform .18s, box-shadow .18s;
}
.situation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.situation-card.sage  { border-top-color: var(--sage); }
.situation-card.terra { border-top-color: var(--terra); }
.situation-icon {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--primary-pale); color: var(--primary-dark);
}
.situation-card.sage  .situation-icon { background: var(--sage-pale);  color: #4a7a57; }
.situation-card.terra .situation-icon { background: var(--terra-pale); color: #a05630; }
.situation-icon svg { width: 24px; height: 24px; }
.situation-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.28rem; font-weight: 700; color: var(--dark); line-height: 1.25; }
.situation-text  { font-size: 0.94rem; line-height: 1.68; color: var(--text); flex: 1; }
.situation-link  { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.86rem; color: var(--primary); }
.situation-card.sage  .situation-link { color: #4a7a57; }
.situation-card.terra .situation-link { color: #a05630; }

/* Cartes « ce que vous trouverez ici » : titre avec pastille numérotée */
.home-promesses .theme-card { padding: 30px 28px 26px; }
.home-promesses .card-num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1rem; margin-bottom: 14px;
  background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm);
}
.home-promesses .theme-card.green .card-num { color: #4a7a57; }
.home-promesses .theme-card.coral .card-num { color: #a05630; }
.home-promesses .theme-card .card-title { border-bottom: none; padding-bottom: 0; margin-bottom: 10px; font-size: 1.24rem; }
.home-promesses .theme-card .card-text { font-size: 0.96rem; }

/* Bloc auteur, portrait à gauche */
.home-author-v2 {
  max-width: 900px; margin: 44px auto 0; padding: 28px 32px;
  background: var(--ivory); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 96px 1fr; gap: 26px; align-items: center;
}
.home-author-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(150deg, var(--primary) 0%, var(--sage) 100%);
  color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.home-author-v2 .author-nom { font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 0 0 2px; }
.home-author-v2 .author-role { font-family: 'Nunito', sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.home-author-v2 p.author-texte { margin: 0; font-size: 0.98rem; line-height: 1.75; color: var(--text); }
.home-author-v2 p.author-texte a { color: var(--primary-dark); font-weight: 700; }

/* Entrées par thème : titre coloré avec trait court */
.home-themes .theme-card { padding: 26px 24px 20px; }
.home-themes .theme-card .card-title { border-bottom: none; padding-bottom: 0; margin-bottom: 14px; }
.home-themes .theme-card .card-title::after {
  content: ''; display: block; width: 36px; height: 3px; border-radius: 2px; margin-top: 10px; background: var(--primary);
}
.home-themes .theme-card.green .card-title::after { background: var(--sage); }
.home-themes .theme-card.coral .card-title::after { background: var(--terra); }

/* Questions fréquentes : cartes un peu plus généreuses */
.home-resources .resource-card { padding: 22px 20px; gap: 8px; border-radius: var(--r-lg); }
.home-resources .resource-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.02rem; color: var(--primary-dark); }
.home-resources .resource-desc { font-size: 0.86rem; line-height: 1.55; }

@media (max-width: 900px) {
  .home-situations-v2 .situations-grid { grid-template-columns: 1fr; margin-top: -40px; }
  .home-cover.home-cover-v2 { height: auto; min-height: 520px; }
  .home-cover-v2 .home-cover-content { padding-top: 140px; padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .home-author-v2 { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; }
  .home-author-avatar { margin: 0 auto; }
}
.home-cover-v2 .home-cover-bg { background-position: 62% 35%; }
.home-promesses .theme-grid, .home-themes .theme-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .home-promesses .theme-grid, .home-themes .theme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .home-promesses .theme-grid, .home-themes .theme-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CARTES DE NOMENCLATURE (pages /cartes-de-nomenclature-*)
   Ajouté le 8 octobre 2026. Préfixe nomen-.
   ============================================================ */
.nomen-telecharger {
  display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center;
  background: var(--ivory); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 24px; margin: 28px 0 36px;
  border-top: 5px solid var(--nomen-couleur, var(--primary));
}
.nomen-telecharger img { border-radius: var(--r-sm); box-shadow: var(--shadow-md); background: #fff; }
.nomen-telecharger h2, .nomen-telecharger h3, .nomen-telecharger h4 { margin: 0 0 6px; font-size: 1.45rem; color: var(--primary-dark); }
.nomen-meta { font-size: .92rem; color: var(--text-light); margin-bottom: 16px; }
.nomen-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.nomen-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px;
  border-radius: var(--r-full); font-weight: 800; font-size: .95rem; line-height: 1.2;
  background: var(--primary-dark); color: #fff; border: 2px solid var(--primary-dark);
  transition: transform .15s ease, background .15s ease;
}
.nomen-btn:hover { text-decoration: none; transform: translateY(-1px); background: var(--primary); border-color: var(--primary); }
.nomen-btn small { font-weight: 600; opacity: .8; font-size: .8rem; }
.nomen-btn--alt { background: transparent; color: var(--primary-dark); }
.nomen-btn--alt:hover { background: var(--primary-pale); color: var(--primary-dark); border-color: var(--primary-dark); }
.nomen-btn svg { width: 18px; height: 18px; flex: none; }
.nomen-astuce { margin-top: 14px; font-size: .88rem; color: var(--text-light); }
.nomen-lots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 22px 0 34px; }
.nomen-lot {
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center;
  background: var(--ivory); border: 1px solid var(--border); border-radius: var(--r-md);
  border-left: 5px solid var(--nomen-couleur); padding: 14px; box-shadow: var(--shadow-sm);
}
.nomen-lot img { border-radius: 6px; background: #fff; box-shadow: var(--shadow-sm); }
.nomen-lot h3 { font-size: 1.12rem; margin: 0 0 2px; }
.nomen-lot h3 a { color: var(--primary-dark); }
.nomen-lot p { font-size: .9rem; margin: 0 0 8px; color: var(--text-light); line-height: 1.5; }
.nomen-lot .nomen-liens { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; font-weight: 700; }
.nomen-mots { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin: 20px 0 32px; padding: 0; list-style: none; }
.nomen-mots li {
  background: #fff; border: 2px solid var(--nomen-couleur, var(--primary)); border-radius: 10px;
  overflow: hidden; text-align: center;
}
.nomen-mots img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; padding: 6px; }
.nomen-mots span {
  display: block; border-top: 1px solid var(--border); padding: 6px 4px 9px;
  font-family: 'Playwrite FR', 'Nunito', cursive; font-size: 1.05rem; color: var(--primary-dark); line-height: 1.5;
}
.nomen-apercus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 30px; }
.nomen-apercus figure { margin: 0; }
.nomen-apercus img { border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); background: #fff; }
.nomen-apercus figcaption { font-size: .86rem; color: var(--text-light); margin-top: 8px; text-align: center; }
.nomen-etapes { counter-reset: etape; list-style: none; padding: 0; margin: 18px 0 28px; }
.nomen-etapes li { counter-increment: etape; position: relative; padding: 0 0 14px 52px; }
.nomen-etapes li::before {
  content: counter(etape); position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sage-pale); color: var(--primary-dark); font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.article-body a.nomen-btn, .article-body a.nomen-btn:hover { color: #fff; text-decoration: none; border-bottom-width: 2px; }
.article-body a.nomen-btn--alt, .article-body a.nomen-btn--alt:hover { color: var(--primary-dark); }
.article-body .nomen-lot a, .article-body .nomen-liens a { text-decoration: none; }
@media (max-width: 760px) {
  .nomen-telecharger { grid-template-columns: 1fr; text-align: left; }
  .nomen-telecharger img { max-width: 200px; }
  .nomen-lots { grid-template-columns: 1fr; }
  .nomen-apercus { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .site-footer, .sidebar, .breadcrumb, .nomen-boutons { display: none !important; }
}

/* ============================================================
   FICHES DE MATHS (réutilisent les blocs nomen-)
   ============================================================ */
.maths-apercu { margin: 18px auto 30px; max-width: 420px; }
.maths-apercu img { border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); background: #fff; }
/* Playfair Display a des chiffres elzéviriens : « 01 » se lisait « o1 » dans les titres */
h1, h2, h3, h4 { font-variant-numeric: lining-nums; }

/* Entrée « À imprimer » du menu, mise en avant */
.site-nav > ul > li.nav-imprimer > a { background: var(--terra-pale); color: #A8552E; }
.site-nav > ul > li.nav-imprimer > a:hover,
.site-nav > ul > li.nav-imprimer > a.active { background: var(--terra); color: #fff; }
@media (max-width: 900px) {
  .site-nav > ul > li.nav-imprimer > a { background: transparent; color: #A8552E; }
}
@media (min-width: 901px) { .site-logo { flex-shrink: 0; } }
@media (min-width: 901px) and (max-width: 1340px) {
  .site-nav > ul > li > a { padding: 7px 8px; font-size: 0.84rem; }
  .site-nav > ul { gap: 0; }
  .logo-img { height: auto; max-height: 44px; max-width: 230px; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .site-nav > ul > li > a { padding: 6px 6px; font-size: 0.8rem; }
  .nav-arrow { display: none; }
  .logo-img { height: auto; max-height: 44px; max-width: 150px; }
}

/* ============================================================
   NEWSLETTER (9 octobre 2026, repris de villeurbanne-info.fr)
   Formulaire partagé (inc/formulaire-newsletter.php) : page /newsletter/,
   encart de fin d'article et encart flottant (inc/newsletter.php, js/newsletter.js).
   Couleurs tirées des variables du site, le bloc se recopie d'un site à l'autre.
   ============================================================ */
/* Correspondance avec les couleurs du site : le bloc newsletter, repris des guides locaux,
   lit --primary, --accent, --text… sous ses propres valeurs. */
.nl-form, .nl-encart, .nl-bloc, .nl-flottant {
  /* bouton : bleu profond (blanc dessus 10,3:1), le bleu Montessori ne donne que 3,5:1 */
  --primary: #1B4460;
  --primary-dark: #12324A;
  --accent: var(--terra);
  --text: var(--dark);
  --border: rgba(78,145,171,0.25);
  --bg-alt: var(--cream);
  --radius: var(--r-md);
  --shadow-sm: 0 2px 16px rgba(45,63,78,0.07);
  --shadow-md: 0 10px 34px rgba(27,68,96,0.18);
  /* encart flottant : fond bleu profond, bouton terracotta clair, texte bleu profond (5,7:1) */
  --nl-fond: #1B4460;
  --nl-bouton: #F2B38C;
  --nl-bouton-texte: #1B4460;
}

.nl-form { margin: 0; }
.nl-label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; color: var(--text); line-height: 1.4; }
.nl-ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-champ {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.nl-champ:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.nl-bouton {
  flex: 0 0 auto;
  padding: 12px 20px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.nl-bouton:hover, .nl-bouton:focus-visible { background: var(--primary-dark); border-color: var(--primary-dark); }
.nl-mention { font-size: 0.76rem; line-height: 1.5; color: var(--text-light); margin: 10px 0 0; }
.nl-mention a { color: var(--text-light); text-decoration: underline; }
/* Champ piège pour les robots : hors écran, pas display:none que certains détectent */
.nl-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.nl-encart {
  margin: 2.5rem 0 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.nl-encart-titre { font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; color: var(--text); }
.nl-encart-texte { font-size: 0.95rem; line-height: 1.6; color: var(--text-light); margin: 0 0 16px; }

.nl-bloc { margin: 28px 0 36px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.nl-etat { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.92rem; line-height: 1.5; }
.nl-etat p { margin: 4px 0 0; }
.nl-etat--ok { background: #EAF6EC; border: 1px solid #B9DFC0; }
.nl-etat--ko { background: #FDECEC; border: 1px solid #F1B8B8; }

@media (max-width: 768px) {
  .nl-encart, .nl-bloc { padding: 18px; }
  .nl-bouton { flex: 1 1 100%; }
}

/* Encart flottant */
.nl-flottant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 400px;
  max-width: calc(100vw - 32px);
  padding: 24px 24px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s, transform 0.25s, visibility 0s linear 0.25s;
}
.nl-flottant[hidden] { display: none; }
.nl-flottant--visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s, visibility 0s; }
.nl-flottant-fermer {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-light);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.nl-flottant-fermer:hover, .nl-flottant-fermer:focus-visible { color: var(--text); background: var(--bg-alt); }
.nl-flottant-surtitre {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-pale);
  border-radius: 4px;
}
.nl-flottant-titre { font-weight: 800; font-size: 1.2rem; line-height: 1.25; margin: 0 32px 6px 0; color: var(--text); }
.nl-flottant-texte { font-size: 0.9rem; line-height: 1.5; color: var(--text-light); margin: 0 0 16px; }
.nl-flottant .nl-mention { font-size: 0.7rem; }
.nl-flottant .nl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nl-flottant .nl-ligne { flex-wrap: nowrap; }
.nl-flottant .nl-champ { flex: 1 1 0; padding: 11px 12px; font-size: 0.92rem; }
.nl-flottant .nl-bouton { padding: 11px 16px; }
.nl-flottant-lien { display: none; }

@media (prefers-reduced-motion: reduce) {
  .nl-flottant { transition: none; transform: none; }
}

/* Sous 768 px : bandeau fin, sans formulaire, pour ne pas recouvrir la lecture */
@media (max-width: 768px) {
  .nl-flottant {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    padding: 10px 44px 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 0;
    border-width: 3px 0 0;
  }
  .nl-flottant[hidden] { display: none; }
  .nl-flottant-titre { margin: 0; font-size: 0.95rem; flex: 1 1 auto; }
  .nl-flottant-surtitre, .nl-flottant-texte, .nl-flottant-form { display: none; }
  .nl-flottant-lien {
    display: inline-block;
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    text-decoration: none;
  }
  .nl-flottant-lien:hover { color: #fff; text-decoration: none; }
  .nl-flottant-fermer { top: 50%; transform: translateY(-50%); right: 4px; }
}
.nl-insecable { white-space: nowrap; }

/* Encart flottant plus visible (9 octobre 2026) : fond sombre aux couleurs du site,
   bouton d'accent, carte plus large. Les trois couleurs ci-dessous sont propres au site. */
.nl-flottant {
  /* couleurs : voir la correspondance en tête du bloc */
  width: 460px;
  padding: 28px 28px 22px;
  background: var(--nl-fond);
  border: 0;
  border-top: 6px solid var(--nl-bouton);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  color: #fff;
}
.nl-flottant-surtitre { background: var(--nl-bouton); color: var(--nl-bouton-texte); }
.nl-flottant-titre { color: #fff; font-size: 1.4rem; }
.nl-flottant-texte { color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; }
.nl-flottant .nl-champ { border-color: transparent; }
.nl-flottant .nl-champ:focus { outline-color: var(--nl-bouton); }
.nl-flottant .nl-bouton { background: var(--nl-bouton); border-color: var(--nl-bouton); color: var(--nl-bouton-texte); font-weight: 700; }
.nl-flottant .nl-bouton:hover, .nl-flottant .nl-bouton:focus-visible { background: #fff; border-color: #fff; color: var(--nl-fond); }
.nl-flottant .nl-mention, .nl-flottant .nl-mention a { color: rgba(255, 255, 255, 0.72); }
.nl-flottant-fermer { color: rgba(255, 255, 255, 0.8); }
.nl-flottant-fermer:hover, .nl-flottant-fermer:focus-visible { color: #fff; background: rgba(255, 255, 255, 0.12); }
@media (max-width: 768px) {
  .nl-flottant { width: auto; padding: 10px 44px 10px 16px; border-width: 4px 0 0; }
  .nl-flottant-titre { font-size: 0.95rem; }
  .nl-flottant-lien, .nl-flottant-lien:hover { background: var(--nl-bouton); color: var(--nl-bouton-texte); }
}

/* ============================================================
   PAGE « À IMPRIMER » EN GRILLE (refaite le 10 octobre 2026)
   Pleine largeur, barre de rubriques collante, 4 cartes par ligne,
   vignette = haut de l'aperçu intérieur (outils/vignettes_a_imprimer.py).
   ============================================================ */
.fiches-rubriques {
  position: sticky; top: var(--hauteur-entete, 72px); z-index: 150;
  background: rgba(255, 253, 249, 0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.fiches-rubriques__ligne { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 10px; padding-bottom: 10px; }
.fiches-rubriques a {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--border); color: var(--primary-dark); font-weight: 700; font-size: .86rem; white-space: nowrap;
  text-decoration: none; transition: background .15s ease;
}
.fiches-rubriques a:hover { background: var(--primary-pale); text-decoration: none; }
.fiches-rubriques a span { min-width: 22px; padding: 1px 7px; border-radius: var(--r-full); background: var(--primary-dark); color: #fff; font-size: .78rem; text-align: center; }
.fiches-page { padding-top: 10px; padding-bottom: 50px; }
.fiches-rubrique { padding-top: 34px; scroll-margin-top: 150px; }
.fiches-rubrique__tete h2 { font-size: 1.75rem; margin: 0 0 8px; color: var(--primary-dark); }
.fiches-rubrique__tete p { margin: 0 0 20px; line-height: 1.75; }
.fiches-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fiche-carte {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  border-top: 5px solid var(--fiche-couleur, var(--primary)); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.fiche-carte:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fiche-carte__image { display: block; background: #fff; border-bottom: 1px solid var(--border); }
.fiche-carte__image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.fiche-carte__corps { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.fiche-carte h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 4px; }
.fiche-carte h3 a { color: var(--primary-dark); text-decoration: none; }
.fiche-carte h3 a:hover { color: var(--primary); }
.fiche-carte__meta { font-size: .88rem; color: var(--text-light); margin: 0 0 14px; }
.fiche-carte__boutons { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.fiche-carte__btn { padding: 8px 14px; font-size: .88rem; color: #fff; white-space: nowrap; }
.fiche-carte__btn:hover { color: #fff; }
.fiche-carte__btn svg { width: 16px; height: 16px; }
.fiches-conseils { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; padding-top: 44px; align-items: start; scroll-margin-top: 150px; }
.fiches-conseils h2 { font-size: 1.75rem; color: var(--primary-dark); margin: 0 0 14px; }
.fiches-conseils ul { padding-left: 20px; line-height: 1.75; }
.fiches-conseils li { margin-bottom: 8px; }
@media (max-width: 1100px) {
  .fiches-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fiches-rubriques__ligne { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fiches-rubriques a { flex: none; }
}
@media (max-width: 860px) {
  .fiches-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .fiches-conseils { grid-template-columns: 1fr; }
  .fiches-rubriques__ligne { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .fiches-rubriques a { flex: none; }
}
@media (max-width: 480px) {
  .fiche-carte__corps { padding: 12px; }
  .fiche-carte h3 { font-size: 1rem; }
  .fiche-carte__btn { padding: 7px 11px; font-size: .82rem; }
}
/* Bloc « à la une » (calendrier de l'Avent) : grande image à gauche, texte et boutons à droite */
.fiche-une {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0; align-items: stretch;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
  border-top: 5px solid var(--terra); box-shadow: var(--shadow-sm);
}
.fiche-une__image { display: block; background: #fff; }
.fiche-une__image img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fiche-une__texte { padding: 28px 32px; display: flex; flex-direction: column; justify-content: center; }
.fiche-une__surtitre { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--terra); }
.fiche-une h2 { font-size: 1.75rem; margin: 0 0 10px; color: var(--primary-dark); }
.fiche-une__texte > p { line-height: 1.75; margin: 0 0 14px; }
.fiche-une .fiche-carte__boutons { margin-top: 4px; }
.fiche-une__voir, .fiche-une__voir:hover { color: var(--primary-dark); }
@media (max-width: 860px) {
  .fiche-une { grid-template-columns: 1fr; }
  .fiche-une__texte { padding: 20px 18px; }
}
/* Très petits téléphones : les boutons prennent toute la largeur de la carte au lieu de déborder */
@media (max-width: 400px) {
  .fiche-carte__boutons { flex-direction: column; }
  .fiche-carte__btn { width: 100%; justify-content: center; padding: 8px 6px; gap: 6px; font-size: .8rem; }
  .fiche-carte__btn svg { width: 14px; height: 14px; }
}

/* Pages d'activités : dessins du plateau et des temps du geste */
.activite-figure { margin: 1.6rem 0 1.8rem; }
.activite-figure img { width: 100%; height: auto; display: block; }
.activite-figure.plateau { margin-top: 0; }
.activite-figure figcaption { font-size: 0.84rem; color: var(--text-light); line-height: 1.6; margin-top: 0.6rem; }
@media (max-width: 600px) {
  .activite-figure.gestes { overflow-x: auto; }
  .activite-figure.gestes img { min-width: 620px; }
}
