/* ==========================================================================
   MontesStory — feuille de style principale
   Palette : vert sapin, olive, framboise, rose, rose poudré, crème
   ========================================================================== */

/* ---------- Polices auto-hébergées (aucun appel à un serveur tiers) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Palette de marque */
  --vert: #41705C;
  --vert-fonce: #2F5445;
  --olive: #8A983E;
  --olive-fonce: #5E6A22;
  --framboise: #CF4563;
  --framboise-fonce: #A9304C;   /* version accessible pour petits textes / liens */
  --rose: #E06F8B;
  --poudre: #EFAFAF;
  --poudre-clair: #F8DEDC;
  --creme: #FAF6EA;
  --blanc: #FFFDF8;

  /* Rôles */
  --bg: var(--creme);
  --surface: var(--blanc);
  --texte: #2C3A33;
  --texte-doux: #56645C;
  --ligne: #E8E0CD;
  --lien: var(--framboise-fonce);

  --font-titre: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-texte: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rayon: 22px;
  --rayon-s: 12px;
  --ombre: 0 10px 30px -18px rgba(47, 84, 69, .35);
  --largeur: 1160px;
  --largeur-texte: 720px;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--texte);
  font-family: var(--font-texte);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lien); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--framboise); }
:focus-visible { outline: 2px solid var(--framboise-fonce); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-titre); font-weight: 500; line-height: 1.15; color: var(--vert-fonce); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.container-texte { width: min(100% - 32px, var(--largeur-texte)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--vert); color: var(--creme); padding: 10px 16px; border-radius: var(--rayon-s); }
.skip-link:focus { top: 12px; color: var(--creme); }

/* Marqueur des informations à compléter avant mise en ligne */
.a-completer { background: #FFF2B8; color: #6B5300; padding: 0 .3em; border-radius: 4px; font-style: normal; }

/* ---------- Boutons & petits éléments ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px;
  font-family: var(--font-texte); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primaire { background: var(--vert); color: var(--creme); }
.btn-primaire:hover { background: var(--vert-fonce); color: var(--creme); }
.btn-contour { border-color: var(--vert); color: var(--vert-fonce); background: transparent; }
.btn-contour:hover { background: var(--vert); color: var(--creme); }

.surtitre {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--framboise-fonce); margin-bottom: 1rem;
}
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  padding: .3em .9em; border-radius: 999px; text-decoration: none;
}
.tag--expat { background: var(--poudre-clair); color: var(--framboise-fonce); }
.tag--montessori { background: #E3EADF; color: var(--vert-fonce); }
.tag--classe { background: #ECEDD3; color: var(--olive-fonce); }
.tag--figures { background: #F3E6D0; color: #7A4A1E; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 234, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--ligne); box-shadow: 0 6px 20px -18px rgba(47, 84, 69, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { width: 190px; height: auto; }

.nav-principale ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav-principale a {
  display: block; padding: .5em 1em; border-radius: 999px;
  color: var(--texte); text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.nav-principale a:hover { background: var(--poudre-clair); color: var(--framboise-fonce); }
.nav-principale a[aria-current="page"] { color: var(--framboise-fonce); background: var(--poudre-clair); }
.nav-principale .nav-cta a { background: var(--vert); color: var(--creme); margin-left: 8px; }
.nav-principale .nav-cta a:hover { background: var(--vert-fonce); color: var(--creme); }

/* Sélecteur de langue (drapeaux) */
.nav-principale .lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--ligne); }
.nav-principale .lang-switch a { display: inline-flex; align-items: center; gap: 7px; padding: .4em .7em; font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.nav-principale .lang-switch img { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); object-fit: cover; display: block; }
.nav-principale .lang-switch a[aria-current="true"] { background: var(--poudre-clair); color: var(--framboise-fonce); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--poudre-clair); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--vert-fonce); border-radius: 2px;
  transform: translateX(-50%); transition: transform .3s, background-color .3s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; transform: none; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .logo img { width: 150px; }
  .nav-toggle { display: block; }
  .nav-principale {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--creme); border-bottom: 1px solid var(--ligne);
    padding: 16px 16px 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-principale.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-principale ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-principale a { padding: .9em 1.1em; font-size: 1.05rem; }
  .nav-principale .nav-cta a { margin: 8px 0 0; text-align: center; }
  .nav-principale .lang-switch { margin: 10px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--ligne); justify-content: center; gap: 8px; }
  .nav-principale .lang-switch a { padding: .6em 1.1em; font-size: .95rem; }
}

/* ==========================================================================
   HERO (accueil)
   ========================================================================== */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero h1 em { font-style: italic; color: var(--framboise); }
.hero-intro { font-size: 1.15rem; color: var(--texte-doux); max-width: 36em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cercles de la palette, en écho à la charte */
.cercles { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-inline: auto; width: 100%; }
.cercles span { position: absolute; border-radius: 50%; }
.cercles .c1 { width: 58%; aspect-ratio: 1; background: var(--vert);      top: 6%;  left: 0; }
.cercles .c2 { width: 42%; aspect-ratio: 1; background: var(--olive);     top: 0;   right: 8%; opacity: .92; }
.cercles .c3 { width: 50%; aspect-ratio: 1; background: var(--framboise); bottom: 4%; left: 22%; opacity: .9; }
.cercles .c4 { width: 38%; aspect-ratio: 1; background: var(--rose);      bottom: 18%; right: 0; opacity: .9; }
.cercles .c5 { width: 30%; aspect-ratio: 1; background: var(--poudre);    top: 36%; left: 40%; }
.cercles .c6 { width: 16%; aspect-ratio: 1; background: var(--blanc);     top: 42%; left: 47%; box-shadow: var(--ombre); }

/* Photo du hero, avec deux ronds de la palette en arrière-plan */
.hero-visuel { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.hero-visuel img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
.hero-visuel span { position: absolute; border-radius: 50%; }
.hero-visuel .c1 { width: 42%; aspect-ratio: 1; background: var(--vert); top: -8%; left: -10%; }
.hero-visuel .c2 { width: 34%; aspect-ratio: 1; background: var(--framboise); bottom: -8%; right: -8%; opacity: .9; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cercles { max-width: 300px; order: -1; }
  .hero-visuel { max-width: 300px; order: -1; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--blanc { background: var(--blanc); }
.section--poudre { background: var(--poudre-clair); }
.section-entete { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-entete p { color: var(--texte-doux); }

/* Univers (3 thématiques) */
.univers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.univers-carte {
  position: relative; padding: 36px 30px 32px; border-radius: var(--rayon);
  background: var(--surface); border: 1px solid var(--ligne);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.univers-carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); color: inherit; }
.univers-carte .pastille { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 22px; display: grid; place-items: center; }
.univers-carte .pastille svg { width: 26px; height: 26px; }
.univers-carte h3 { margin-bottom: .4em; }
.univers-carte p { color: var(--texte-doux); font-size: .98rem; margin-bottom: 1.2em; }
.univers-carte .lire { font-weight: 700; font-size: .9rem; color: var(--framboise-fonce); }
.pastille--expat { background: var(--poudre-clair); color: var(--framboise); }
.pastille--montessori { background: #E3EADF; color: var(--vert); }
.pastille--classe { background: #ECEDD3; color: var(--olive-fonce); }
.pastille--figures { background: #F3E6D0; color: #9A5F28; }

@media (max-width: 1100px) { .univers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .univers-grid { grid-template-columns: 1fr; } }

/* Mon histoire */
.histoire-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.histoire-visuel {
  aspect-ratio: 4 / 5; border-radius: 200px 200px var(--rayon) var(--rayon);
  background: linear-gradient(160deg, var(--poudre) 0%, var(--rose) 100%);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.histoire-visuel::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--vert); opacity: .85; bottom: -18%; right: -14%; }
.histoire-visuel p { position: relative; z-index: 1; color: var(--blanc); font-family: var(--font-titre); font-size: 1.2rem; font-style: italic; text-align: center; padding: 24px; }
/* Photo réelle : carré complet (texte incrusté dans l'image), sans rond décoratif */
.histoire-visuel--photo { aspect-ratio: 1; border-radius: var(--rayon); background: var(--poudre-clair); }
.histoire-visuel--photo::after { content: none; }
.histoire-visuel--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .histoire-grid { grid-template-columns: 1fr; gap: 40px; } .histoire-visuel { max-width: 360px; margin-inline: auto; width: 100%; } }

/* Citation */
.citation { text-align: center; }
.citation blockquote { margin: 0 auto; max-width: 760px; }
.citation blockquote p { font-family: var(--font-titre); font-style: italic; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.25; color: var(--vert-fonce); margin-bottom: .6em; }
.citation cite { font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--framboise-fonce); }

/* Contact */
.contact-bloc {
  background: var(--vert); color: var(--creme); border-radius: var(--rayon);
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.contact-bloc::before { content: ""; position: absolute; width: 280px; aspect-ratio: 1; border-radius: 50%; background: var(--olive); opacity: .45; top: -120px; right: -80px; }
.contact-bloc > * { position: relative; }
.contact-bloc h2 { color: var(--creme); }
.contact-bloc p { color: #E4EDE7; margin: 0; }
.contact-bloc .btn { background: var(--creme); color: var(--vert-fonce); justify-self: end; }
.contact-bloc .btn:hover { background: var(--poudre); color: var(--vert-fonce); }
@media (max-width: 760px) { .contact-bloc { grid-template-columns: 1fr; } .contact-bloc .btn { justify-self: start; } }

/* ==========================================================================
   ARTICLES — cartes (accueil + journal)
   ========================================================================== */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .articles-grid { grid-template-columns: 1fr; } }

.carte-article {
  display: flex; flex-direction: column; background: var(--surface);
  border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne);
  transition: transform .3s, box-shadow .3s;
}
.carte-article:hover { transform: translateY(-4px); box-shadow: var(--ombre); }
.carte-article[hidden] { display: none; }
.carte-visuel { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.carte-visuel img { width: 100%; height: 100%; object-fit: cover; }
/* Visuels de remplacement aux couleurs de la catégorie (en attendant les photos) */
.carte-visuel--expat { background: var(--poudre-clair); }
.carte-visuel--montessori { background: #E3EADF; }
.carte-visuel--classe { background: #ECEDD3; }
.carte-visuel--figures { background: #F3E6D0; }
.carte-visuel .rond { position: absolute; border-radius: 50%; }
.carte-visuel--expat .r1 { width: 46%; aspect-ratio: 1; background: var(--rose); left: 14%; top: 18%; }
.carte-visuel--expat .r2 { width: 30%; aspect-ratio: 1; background: var(--framboise); right: 16%; bottom: -8%; opacity: .85; }
.carte-visuel--montessori .r1 { width: 44%; aspect-ratio: 1; background: var(--vert); left: 18%; top: 20%; opacity: .9; }
.carte-visuel--montessori .r2 { width: 30%; aspect-ratio: 1; background: var(--poudre); right: 18%; top: 8%; }
.carte-visuel--classe .r1 { width: 46%; aspect-ratio: 1; background: var(--olive); right: 14%; top: 14%; opacity: .9; }
.carte-visuel--classe .r2 { width: 26%; aspect-ratio: 1; background: var(--creme); left: 20%; bottom: 12%; box-shadow: var(--ombre); }
.carte-visuel--figures .r1 { width: 42%; aspect-ratio: 1; background: #D9A15B; left: 16%; top: 16%; opacity: .9; }
.carte-visuel--figures .r2 { width: 28%; aspect-ratio: 1; background: var(--framboise); right: 18%; bottom: 10%; opacity: .8; }

.carte-corps { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.carte-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; font-size: .85rem; color: var(--texte-doux); }
.carte-article h3 { font-size: 1.6rem; margin-bottom: .6em; }
.carte-article h3 a { color: var(--vert-fonce); text-decoration: none; }
.carte-article h3 a::after { content: ""; position: absolute; inset: 0; } /* carte entièrement cliquable */
.carte-article { position: relative; }
.carte-article h3 a:hover { color: var(--framboise-fonce); }
.carte-serie { font-family: var(--font-titre); font-style: italic; font-size: 1.05rem; color: var(--framboise-fonce); margin: -4px 0 .6em; }
.carte-lien { margin-top: auto; font-weight: 700; font-size: .9rem; color: var(--framboise-fonce); }

/* ==========================================================================
   JOURNAL
   ========================================================================== */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.page-hero .container-texte { position: relative; }
.page-hero p { color: var(--texte-doux); font-size: 1.1rem; }
.page-hero h1 em { font-style: italic; color: var(--framboise); }
.page-hero-deco { position: absolute; border-radius: 50%; pointer-events: none; }
.page-hero-deco.d1 { width: 220px; aspect-ratio: 1; background: var(--poudre); opacity: .55; left: -70px; top: 30px; }
.page-hero-deco.d2 { width: 140px; aspect-ratio: 1; background: var(--olive); opacity: .25; right: 6%; bottom: -40px; }

.filtres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 48px; padding: 0; list-style: none; }
.filtre {
  font-family: var(--font-texte); font-size: .92rem; font-weight: 600;
  padding: .6em 1.3em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ligne); background: var(--surface); color: var(--texte);
  transition: all .2s;
}
.filtre:hover { border-color: var(--rose); color: var(--framboise-fonce); }
.filtre[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: var(--creme); }
.journal-vide { text-align: center; color: var(--texte-doux); }

/* ==========================================================================
   ARTICLE (page)
   ========================================================================== */
.fil-ariane { font-size: .88rem; color: var(--texte-doux); margin-bottom: 28px; }
.fil-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fil-ariane li + li::before { content: "›"; margin-right: 6px; color: var(--rose); }
.fil-ariane a { color: var(--texte-doux); }

.article-entete { padding: clamp(40px, 6vw, 72px) 0 32px; text-align: center; }
.article-entete .carte-meta { justify-content: center; }
.article-entete h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.article-entete .carte-serie { font-size: 1.3rem; }
.article-couverture { width: min(100% - 32px, 980px); margin: 0 auto 56px; border-radius: var(--rayon); aspect-ratio: 21 / 9; }
.article-contenu { padding-bottom: 64px; }
.article-contenu p, .article-contenu li, .article-contenu blockquote { text-wrap: pretty; }
.article-entete h1, .article-contenu h2, .carte-article h2, .carte-article h3 { text-wrap: balance; }
.article-contenu h2 { margin-top: 1.6em; }
.article-contenu blockquote { margin: 2em 0; padding: 8px 0 8px 24px; border-left: 3px solid var(--rose); font-family: var(--font-titre); font-style: italic; font-size: 1.45rem; color: var(--vert-fonce); }
.contenu-a-venir {
  text-align: center; padding: 48px 24px; border: 1.5px dashed var(--poudre); border-radius: var(--rayon);
  color: var(--texte-doux); background: var(--surface);
}
.article-pied { border-top: 1px solid var(--ligne); padding: 32px 0 80px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }

/* ==========================================================================
   PAGES LÉGALES — legal design
   ========================================================================== */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; padding-bottom: 96px; }
.legal-sommaire { position: sticky; top: calc(var(--header-h) + 24px); background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 24px; }
.legal-sommaire h2 { font-family: var(--font-texte); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--texte-doux); margin-bottom: 12px; }
.legal-sommaire ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.legal-sommaire li { counter-increment: s; }
.legal-sommaire a { display: flex; gap: 10px; padding: 6px 0; font-size: .92rem; color: var(--texte); text-decoration: none; line-height: 1.4; }
.legal-sommaire a::before { content: counter(s, decimal-leading-zero); color: var(--framboise-fonce); font-weight: 700; font-size: .8rem; padding-top: 2px; }
.legal-sommaire a:hover { color: var(--framboise-fonce); }

.legal-contenu { max-width: 760px; min-width: 0; }
.legal-contenu section { padding: 8px 0 28px; border-bottom: 1px solid var(--ligne); margin-bottom: 28px; }
.legal-contenu section:last-child { border-bottom: 0; }
.legal-contenu h2 { font-size: 2rem; display: flex; align-items: baseline; gap: 14px; }
.legal-contenu h2 .num { font-family: var(--font-texte); font-size: .85rem; font-weight: 700; color: var(--framboise-fonce); background: var(--poudre-clair); border-radius: 999px; padding: .2em .7em; flex-shrink: 0; transform: translateY(-4px); }
.legal-contenu h3 { font-size: 1.35rem; margin-top: 1.4em; }
.legal-contenu ul { padding-left: 1.2em; }
.legal-contenu li { margin-bottom: .4em; }

/* "En bref" : résumé en langage clair */
.en-bref { background: #E3EADF; border-radius: var(--rayon-s); padding: 16px 20px; margin: 0 0 20px; display: flex; gap: 14px; align-items: flex-start; }
.en-bref svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--vert); margin-top: 3px; }
.en-bref p { margin: 0; color: var(--vert-fonce); font-weight: 600; }

/* Fiche d'identité */
.fiche { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-s); padding: 22px 24px; margin: 0 0 16px; }
.fiche dt { font-weight: 700; color: var(--texte-doux); font-size: .92rem; }
.fiche dd { margin: 0; }
@media (max-width: 560px) { .fiche { grid-template-columns: 1fr; gap: 2px; } .fiche dd { margin-bottom: 10px; } }

/* L'essentiel en un coup d'œil */
.essentiel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 48px; }
.essentiel-carte { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-s); padding: 22px; display: flex; gap: 16px; }
.essentiel-carte .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--poudre-clair); color: var(--framboise-fonce); }
.essentiel-carte .ico svg { width: 22px; height: 22px; }
.essentiel-carte h3 { font-family: var(--font-texte); font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: var(--vert-fonce); }
.essentiel-carte p { margin: 0; font-size: .95rem; color: var(--texte-doux); line-height: 1.55; }
@media (max-width: 640px) { .essentiel { grid-template-columns: 1fr; } }

/* Tableau responsive */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--ligne); border-radius: var(--rayon-s); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--ligne); }
.table-wrap th { background: var(--poudre-clair); color: var(--vert-fonce); font-weight: 700; font-size: .85rem; letter-spacing: .03em; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Droits RGPD */
.droits { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.droits li { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-s); padding: 14px 16px; margin: 0; font-size: .95rem; }
.droits strong { display: block; color: var(--vert-fonce); }
@media (max-width: 560px) { .droits { grid-template-columns: 1fr; } }

.maj { font-size: .9rem; color: var(--texte-doux); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-sommaire { position: static; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--vert-fonce); color: #DCE6E0; padding: 72px 0 0; font-size: .95rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; background: var(--vert); right: -120px; top: -160px; opacity: .7; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-marque img { width: 200px; margin-bottom: 18px; }
.footer-marque p { color: #C9D7CF; max-width: 30em; }
.site-footer h2 { font-family: var(--font-texte); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--poudre); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--creme); text-decoration: none; }
.site-footer a:hover { color: var(--poudre); text-decoration: underline; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: .45em 1em; border-radius: 999px; background: rgba(250, 246, 234, .1); font-size: .85rem; color: var(--creme); }
.footer-badge svg { width: 16px; height: 16px; color: var(--poudre); }

.footer-bas { position: relative; border-top: 1px solid rgba(250, 246, 234, .15); padding: 22px 0 28px; }
.footer-bas .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .85rem; color: #B9CBC1; }
.footer-bas ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bas li { margin: 0; }
.footer-bas a { color: #DCE6E0; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-marque { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Article — éléments éditoriaux */
.article-chapo { font-size: 1.2rem; color: var(--vert-fonce); }
.mot-magique {
  margin: 1.2em 0; text-align: center; font-family: var(--font-titre); font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 3.6rem); letter-spacing: .12em; text-transform: uppercase; color: var(--framboise-fonce);
}
.liste-parcours { list-style: none; padding: 20px 24px; margin: 1.4em 0; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-s); }
.liste-parcours li { padding: 6px 0; }
.liste-parcours li span { margin-right: .4em; }
.article-signature { margin-top: 2em; font-family: var(--font-titre); font-style: italic; font-size: 1.35rem; color: var(--vert-fonce); }
.article-signature span { font-style: normal; font-size: 1.1rem; color: var(--framboise-fonce); }
.article-portrait { width: min(100% - 32px, 560px); margin: 0 auto 56px; }
.article-portrait img { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); }

/* Photos insérées dans le corps des articles */
.article-photo { width: min(100%, 440px); margin: 2.2em auto; }
.article-photo img { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); }
.article-photo figcaption, .article-photos figcaption { margin-top: 10px; font-size: .88rem; color: var(--texte-doux); text-align: center; text-wrap: balance; }
.article-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 2.2em 0; }
.article-photos figure { margin: 0; }
.article-photos img { width: 100%; height: auto; border-radius: var(--rayon); box-shadow: var(--ombre); }
@media (max-width: 560px) { .article-photos { grid-template-columns: 1fr; } }
.article-couverture img { width: 100%; height: 100%; object-fit: cover; }
