/* =========================================================================
   Maisons Paysannes de Lot-et-Garonne — feuille de style (démo)
   Reprend les composants du Figma du site national MPF :
   header blanc + barre de navigation anthracite, sections vert-de-gris,
   cartes blanches "titre / image / résumé / Lire la suite", boutons rouges.
   ========================================================================= */

:root {
  /* Charte MPF 2017 : rouge national 484C, jaune ocre délégation 131C,
     accompagnement : vert de gris 5497C, jaune 7403C, mastic 454C, 482C, gris anthracite */
  --ocre: #d08a00;
  --ocre-fonce: #a86f00;
  --jaune: #f1d384;
  --jaune-clair: #fbf1d6;
  --mastic: #cdc5a7;
  --vdg-charte: #849895;
  --rouge: #9f3224;
  --rouge-fonce: #7e2519;
  --bleu: #1e2e50;
  --vert-gris: #c1cbc9;
  --vert-gris-clair: #dfe5e4;
  --sable: #ddc8b7;
  --nav: #58585a;
  --footer: #3f3f41;
  --texte: #181818;
  --texte-doux: #4a4a4a;
  --bord: #8f8f8f;
  --blanc: #ffffff;
  --contenu: 1160px;
  --rayon: 6px;
  --base: 18px;
}
html.grand-texte { --base: 21px; }

* { box-sizing: border-box; }
html { font-size: var(--base); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.conteneur { max-width: var(--contenu); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Bandeau démo ---------- */
.bandeau-demo {
  background: #2b2b2b; color: #eee; font-size: .72rem; text-align: center;
  padding: 6px 16px; letter-spacing: .02em;
}
.bandeau-demo strong { color: #fff; }
.bandeau-demo a { color: #fff; }

/* ---------- Header (composant Figma) ---------- */
.entete { background: var(--blanc); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.marque { display: flex; align-items: center; text-decoration: none; }
.marque img { height: 74px; width: auto; }
.signature { display: flex; align-items: center; gap: 10px; font-size: .7rem; color: var(--texte-doux); margin-right: auto; margin-left: 28px; padding-left: 22px; border-left: 2px solid var(--jaune); max-width: 250px; line-height: 1.3; }
.signature img { width: 34px; height: 34px; flex: none; }
.marque .delegation { border-left: 2px solid var(--vert-gris); padding-left: 16px; line-height: 1.2; }
.marque .delegation b { display: block; color: var(--rouge); font-size: 1.05rem; }
.marque .delegation span { color: var(--texte-doux); font-size: .72rem; }
.actions-entete { display: flex; gap: 12px; align-items: center; }
.btn-contour {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--bord); border-radius: 4px; background: #fff;
  padding: 8px 14px; font-size: .72rem; color: #333; text-decoration: none; cursor: pointer;
  font-family: inherit;
}
.btn-contour:hover { border-color: var(--texte); }
.btn-contour svg { width: 18px; height: 18px; }

/* ---------- Navigation principale ---------- */
.nav { background: var(--nav); color: #fff; border-radius: 0 0 6px 6px; position: sticky; top: 0; z-index: 20; }
.nav .conteneur { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
  padding: 10px 14px; font-size: .9rem; border-radius: 4px;
}
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.14); box-shadow: inset 0 -3px 0 var(--ocre); }
.nav a svg { width: 22px; height: 22px; }
.btn-texte {
  background: #fff; color: var(--texte); border: 0; border-radius: 4px; cursor: pointer;
  padding: 8px 12px; font: inherit; font-size: .78rem; display: inline-flex; gap: 6px; align-items: center;
}
.btn-texte b { font-size: 1rem; }
.burger { display: none; background: none; border: 0; color: #fff; font: inherit; font-size: .9rem; padding: 12px 0; cursor: pointer; align-items: center; gap: 10px; }
.burger svg { width: 26px; height: 26px; }

/* ---------- Fil d'Ariane ---------- */
.ariane { font-size: .78rem; padding: 14px 0; }
.ariane a { text-decoration: underline; }
.ariane span[aria-hidden] { margin: 0 6px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--grise { background: var(--vert-gris); }
.section--claire { background: var(--vert-gris-clair); }
.titre-section { text-align: center; color: var(--bleu); font-size: 1.75rem; margin: 0 0 14px; font-weight: 700; }
.chapo-section { text-align: center; font-size: 1.2rem; margin: 0 auto 40px; max-width: 820px; }
.lien-plus { display: block; text-align: center; margin-top: 36px; font-size: .9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: var(--rouge); color: #fff; text-decoration: none;
  border-radius: var(--rayon); padding: 6px 18px; font-size: .85rem; border: 0; cursor: pointer;
  font-family: inherit; line-height: 1.4;
}
.btn:hover { background: var(--rouge-fonce); }
.btn--grand { padding: 12px 24px; font-size: 1rem; }
.btn--blanc { background: #fff; color: var(--texte); }
.btn--blanc:hover { background: #f1f1f1; }
.btn--contour { background: transparent; color: var(--bleu); box-shadow: inset 0 0 0 2px var(--bleu); }
.btn--contour:hover { background: var(--bleu); color: #fff; }

/* ---------- Héro plein écran ---------- */
.hero { position: relative; min-height: min(82vh, 760px); background-size: cover; background-position: center 18%; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,22,18,.78) 0%, rgba(25,22,18,.45) 45%, rgba(25,22,18,.05) 75%), linear-gradient(0deg, rgba(25,22,18,.55), transparent 45%); }
.hero__texte { position: relative; padding-top: 80px; padding-bottom: 70px; width: 100%; }
.hero__logo { width: min(420px, 78vw); height: auto; margin-bottom: 26px; }
.hero__mots { color: var(--jaune); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin: 0 0 14px; }
.hero__accroche { font-size: 1.2rem; max-width: 540px; margin: 0 0 30px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero__boutons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__motif { position: absolute; right: -40px; top: 40px; width: min(440px, 40vw); opacity: .55; pointer-events: none; }
.btn--ocre { background: var(--ocre); color: #1d1600; font-weight: 700; }
.btn--ocre:hover { background: #e39b0b; }
.btn--verre { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); backdrop-filter: blur(4px); }
.btn--verre:hover { background: rgba(255,255,255,.28); }

/* Bandeau prochain rendez-vous */
.bandeau-rdv { display: block; width: 100%; border: 0; background: var(--ocre); color: #1d1600; font: inherit; cursor: pointer; text-align: left; padding: 0; }
.bandeau-rdv .conteneur { display: flex; gap: 18px; align-items: center; padding-top: 14px; padding-bottom: 14px; font-size: .85rem; flex-wrap: wrap; }
.bandeau-rdv b { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; background: #1d1600; color: var(--jaune); padding: 4px 10px; border-radius: 3px; }
.bandeau-rdv__voir { margin-left: auto; font-weight: 700; }
.bandeau-rdv:hover .bandeau-rdv__voir { text-decoration: underline; }

/* Bannière photo des pages intérieures */
.banniere { position: relative; background-size: cover; background-position: center 40%; color: #fff; min-height: 300px; display: flex; align-items: flex-end; }
.banniere::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(25,22,18,.8), rgba(25,22,18,.25) 70%); }
.banniere .conteneur { position: relative; width: 100%; padding-top: 40px; padding-bottom: 36px; }
.banniere h1 { font-size: 2.4rem; margin: 6px 0 8px; line-height: 1.1; }
.banniere h1::after { content: ""; display: block; width: 64px; height: 5px; background: var(--ocre); margin-top: 14px; }
.banniere p { margin: 0; max-width: 680px; font-size: 1.05rem; opacity: .95; }
.ariane--clair { padding: 0 0 10px; color: rgba(255,255,255,.9); }

/* Sections couleur */
.section--ocre { background: var(--jaune-clair); }
.section--sombre { background: #2e2c29; color: #fff; }
.section--sombre .titre-section { color: #fff; }
.section--photos { background: #fff; }
.titre-section::after { content: ""; display: block; width: 56px; height: 5px; background: var(--ocre); margin: 14px auto 0; }

/* Récit à la une (photo pleine largeur) */
.une { position: relative; display: flex; align-items: flex-end; min-height: 520px; background-size: cover; background-position: center; color: #fff; text-decoration: none; overflow: hidden; border-radius: 4px; }
.une::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,18,15,.88) 0%, rgba(20,18,15,.35) 55%, rgba(20,18,15,0) 80%); transition: opacity .3s; }
.une:hover::before { opacity: .85; }
.une__corps { position: relative; padding: 40px 44px; max-width: 760px; }
.une__corps h3 { font-size: 2rem; margin: 14px 0 10px; line-height: 1.15; }
.une__corps p { margin: 0 0 22px; font-size: 1rem; opacity: .95; }
.une .pastille { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); }

/* Mur de photos */
.mur { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 10px; grid-auto-flow: dense; }
.mur a { position: relative; background-size: cover; background-position: center; border-radius: 4px; overflow: hidden; color: #fff; text-decoration: none; }
.mur a:first-child { grid-column: span 2; grid-row: span 2; }
.mur a:nth-child(4) { grid-row: span 2; }
.mur a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .78rem; font-weight: 700; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); transform: translateY(100%); transition: transform .3s; }
.mur a span small { display: block; font-weight: 400; color: var(--jaune); }
.mur a:hover span, .mur a:focus span { transform: none; }
.mur a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--ocre); transition: box-shadow .2s; }
.mur a:hover::after { box-shadow: inset 0 0 0 4px var(--ocre); }

/* ---------- Carte Figma : titre / image / résumé / Lire la suite ---------- */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
.carte { background: #fff; display: flex; flex-direction: column; text-align: center; text-decoration: none; color: inherit; }
.carte__titre { font-size: 1.05rem; font-weight: 400; margin: 0; padding: 14px 18px; min-height: 76px; display: flex; align-items: center; justify-content: center; line-height: 1.3; }
.carte__image { aspect-ratio: 376 / 232; overflow: hidden; background: #eee; }
.carte__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.carte:hover .carte__image img { transform: scale(1.04); }
.carte__resume { font-size: .78rem; padding: 14px 18px 0; margin: 0; flex: 1; }
.carte__meta { font-size: .7rem; color: var(--texte-doux); padding: 10px 18px 0; }
.carte__pied { padding: 14px 18px 18px; }

/* Variante "récit" pour Vie de l'association */
.recit { background: #fff; display: grid; grid-template-columns: 1fr 1fr; text-decoration: none; color: inherit; }
.recit__image { min-height: 280px; background-size: cover; background-position: center; }
.recit__corps { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.recit__corps h3 { color: var(--bleu); font-size: 1.45rem; margin: 10px 0 12px; line-height: 1.2; }
.recit__corps p { margin: 0 0 22px; font-size: .9rem; }
.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; background: var(--vert-gris-clair); border-radius: 30px; padding: 4px 12px; color: var(--texte); }
.pastille svg { width: 14px; height: 14px; }
.grille-recits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.mini-recit { background: #fff; display: grid; grid-template-columns: 220px 1fr; text-decoration: none; color: var(--texte); border-radius: 4px; overflow: hidden; }
.mini-recit__image { background-size: cover; background-position: center; min-height: 190px; transition: transform .4s; }
.mini-recit:hover .mini-recit__image { transform: scale(1.04); }
.mini-recit__corps { padding: 18px 20px; }
.mini-recit__corps h3 { font-size: .98rem; margin: 8px 0 6px; color: var(--bleu); line-height: 1.3; }
.mini-recit__corps p { margin: 0; font-size: .74rem; color: var(--texte-doux); }

/* Variante "communication" : liste avec étiquette */
.liste-com { display: flex; flex-direction: column; gap: 14px; max-width: 920px; margin: 0 auto; }
.com { background: #fff; display: grid; grid-template-columns: 8px 1fr auto; text-decoration: none; color: inherit; align-items: stretch; border: 1px solid #d8dddc; }
.com__barre { background: var(--c, var(--bleu)); }
.com__corps { padding: 18px 24px; }
.com__corps h3 { margin: 8px 0 6px; font-size: 1.08rem; color: var(--bleu); line-height: 1.3; }
.com__corps p { margin: 0; font-size: .78rem; color: var(--texte-doux); }
.com__fleche { display: flex; align-items: center; padding: 0 24px; color: var(--rouge); }
.com__fleche svg { width: 26px; height: 26px; }
.com:hover { border-color: var(--bleu); }
.etiquette { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--c, var(--bleu)); padding: 3px 10px; border-radius: 3px; }
.etiquette--date { background: none; color: var(--texte-doux); padding-left: 8px; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ---------- Prochains rendez-vous ---------- */
.rdv-liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rdv { background: #fff; box-shadow: 0 2px 0 var(--ocre); border-radius: var(--rayon); padding: 18px; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer; border: 0; font: inherit; color: inherit; }
.rdv:hover { box-shadow: 0 0 0 2px var(--bleu) inset; }
.rdv__date { display: flex; align-items: baseline; gap: 8px; }
.rdv__jour { font-size: 2.4rem; font-weight: 700; color: var(--ocre-fonce); line-height: 1; }
.rdv__mois { font-size: .85rem; text-transform: uppercase; font-weight: 700; color: var(--bleu); }
.rdv h3 { font-size: .9rem; margin: 0; line-height: 1.3; }
.rdv__lieu { font-size: .72rem; color: var(--texte-doux); display: flex; gap: 6px; align-items: flex-start; }
.rdv__lieu svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.type-point { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 700; color: var(--texte); }
.type-point::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }

/* ---------- Bande national ---------- */
.bande-nationale { background: var(--rouge) center/cover; color: #fff; position: relative; }
.bande-nationale::before { content: ""; position: absolute; inset: 0; background: rgba(110,30,20,.82); }
.bande-nationale .conteneur { position: relative; }
.bande-nationale__mono { width: 76px; height: 76px; border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.bande-nationale .conteneur { display: flex; gap: 32px; align-items: center; justify-content: space-between; padding: 44px 20px; flex-wrap: wrap; }
.bande-nationale h2 { margin: 0 0 6px; font-size: 1.35rem; }
.bande-nationale p { margin: 0; opacity: .9; font-size: .9rem; max-width: 640px; }

/* ---------- Agenda / calendrier ---------- */
.agenda-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.agenda-tete h2 { margin: 0; color: var(--bleu); font-size: 1.7rem; min-width: 260px; text-align: center; flex: 1; }
.btn-mois { background: #fff; border: 2px solid var(--bleu); color: var(--bleu); font: inherit; font-size: .85rem; font-weight: 700; padding: 10px 16px; border-radius: var(--rayon); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.btn-mois:hover { background: var(--bleu); color: #fff; }
.btn-mois svg { width: 20px; height: 20px; }
.legende { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.filtre { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--c); border-radius: 30px; padding: 6px 14px; font: inherit; font-size: .78rem; cursor: pointer; }
.filtre::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.filtre[aria-pressed="false"] { opacity: .45; border-style: dashed; }
.calendrier { background: #fff; border: 1px solid #b9c2c0; }
.cal-jours, .cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-jours div { background: var(--nav); color: #fff; text-align: center; padding: 10px 4px; font-size: .78rem; font-weight: 700; }
.cal-case { min-height: 118px; border-right: 1px solid #dde2e1; border-bottom: 1px solid #dde2e1; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cal-case:nth-child(7n) { border-right: 0; }
.cal-case--hors { background: #f4f6f6; color: #a2a8a7; }
.cal-num { font-size: .8rem; font-weight: 700; }
.cal-case--auj .cal-num { background: var(--rouge); color: #fff; border-radius: 50%; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.cal-evts { display: flex; flex-direction: column; gap: 4px; }
.cal-evt { display: block; width: 100%; text-align: left; background: var(--c); color: #fff; border: 0; border-radius: 4px; font: inherit; font-size: .66rem; line-height: 1.25; padding: 4px 6px; cursor: pointer; overflow: hidden; max-height: calc(2.5em + 8px); text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-evt:hover, .cal-evt:focus { outline: 2px solid var(--texte); outline-offset: 1px; }
.mois-liste { margin-top: 40px; }
.mois-liste h3 { color: var(--bleu); font-size: 1.3rem; margin: 0 0 16px; }
.evt-ligne { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; background: #fff; border-left: 8px solid var(--c); padding: 16px 20px; margin-bottom: 10px; }
.evt-ligne__date { text-align: center; }
.evt-ligne__date b { display: block; font-size: 1.9rem; color: var(--rouge); line-height: 1; }
.evt-ligne__date span { font-size: .72rem; text-transform: uppercase; font-weight: 700; color: var(--bleu); }
.evt-ligne h4 { margin: 4px 0; font-size: 1rem; }
.evt-ligne p { margin: 0; font-size: .76rem; color: var(--texte-doux); }
.vide { background: #fff; padding: 24px; text-align: center; color: var(--texte-doux); }

/* Fenêtre de détail */
.modale-fond { position: fixed; inset: 0; background: rgba(20,20,20,.55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modale-fond.ouverte { display: flex; }
.modale { background: #fff; max-width: 560px; width: 100%; border-top: 10px solid var(--c, var(--bleu)); padding: 28px 30px; position: relative; max-height: 90vh; overflow: auto; }
.modale h3 { margin: 8px 0 16px; color: var(--bleu); font-size: 1.4rem; line-height: 1.25; }
.modale dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: .85rem; }
.modale dt { font-weight: 700; }
.modale dd { margin: 0; }
.modale p { font-size: .9rem; }
.fermer { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; line-height: 1; padding: 6px; }

/* ---------- Article ---------- */
.article-tete { padding-top: 30px; padding-bottom: 10px; }
.article-tete .publie { font-size: .9rem; margin: 0 0 10px; color: var(--texte-doux); }
.article-tete h1 { font-size: 2rem; margin: 10px 0 26px; line-height: 1.2; }
.article-une { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; margin-bottom: 30px; }
.article-une figure { margin: 0; border: 1px solid var(--bord); }
.article-une figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-corps { max-width: 780px; margin: 0 auto; padding-bottom: 56px; }
.article-une .bloc-intro { margin-top: 0; }

/* BLOCS — un composant par type, toujours rendu de la même façon */
.bloc-intro { font-size: 1.15rem; font-weight: 700; line-height: 1.5; margin: 0 0 22px; }
.bloc-texte p { margin: 0 0 18px; }
.bloc-intertitre { color: var(--bleu); font-size: 1.4rem; margin: 36px 0 14px; }
.bloc-image { margin: 28px 0; }
.bloc-image img { width: 100%; max-height: 520px; object-fit: cover; }
.bloc-image figcaption, .bloc-galerie figcaption { font-size: .74rem; color: var(--texte-doux); padding-top: 8px; font-style: italic; }
.bloc-galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0; }
.bloc-galerie figure { margin: 0; }
.bloc-galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: zoom-in; }
.bloc-citation { margin: 32px 0; padding: 8px 0 8px 28px; border-left: 5px solid var(--ocre); }
.bloc-citation p { font-size: 1.2rem; font-style: italic; margin: 0 0 8px; color: var(--bleu); }
.bloc-citation cite { font-size: .8rem; font-style: normal; color: var(--texte-doux); }
.bloc-infos { background: var(--jaune-clair); border-left: 6px solid var(--ocre); border-radius: var(--rayon); padding: 22px 26px; margin: 28px 0; }
.bloc-infos h3 { margin: 0 0 12px; color: var(--bleu); font-size: 1.05rem; }
.bloc-infos dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: .88rem; }
.bloc-infos dt { font-weight: 700; }
.bloc-infos dd { margin: 0; }
.bloc-liste { padding-left: 24px; margin: 0 0 22px; }
.bloc-liste li { margin-bottom: 8px; }
.bloc-encadre { border: 2px solid var(--rouge); background: #fbf2f0; padding: 16px 20px; margin: 0 0 26px; display: flex; gap: 14px; font-size: .9rem; }
.bloc-encadre svg { width: 26px; height: 26px; color: var(--rouge); flex: none; }
.bloc-bouton { margin: 28px 0; }
.bloc-document { display: flex; align-items: center; gap: 16px; border: 1px solid var(--bord); padding: 14px 18px; margin: 24px 0; text-decoration: none; color: inherit; background: #fff; }
.bloc-document:hover { border-color: var(--bleu); }
.bloc-document svg { width: 34px; height: 34px; color: var(--rouge); flex: none; }
.bloc-document b { display: block; font-size: .9rem; }
.bloc-document span { font-size: .72rem; color: var(--texte-doux); }

/* ---------- Commentaires ---------- */
.commentaires { background: var(--vert-gris-clair); padding: 56px 0; }
.commentaires .article-corps { padding-bottom: 0; }
.commentaires h2 { color: var(--bleu); margin: 0 0 22px; font-size: 1.5rem; }
.comm { background: #fff; padding: 18px 22px; margin-bottom: 12px; display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
.comm--equipe { border-left: 5px solid var(--rouge); }
.comm--attente { border: 2px dashed var(--rouge); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--vert-gris); color: var(--bleu); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.comm--equipe .avatar { background: var(--rouge); color: #fff; }
.comm__tete { font-size: .8rem; margin-bottom: 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.comm__tete b { font-size: .88rem; }
.comm__tete time { color: var(--texte-doux); }
.comm p { margin: 0; font-size: .88rem; }
.badge { font-size: .62rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: var(--rouge); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.badge--attente { background: #f3d9a4; color: #5a3b00; }
.form-comm { background: #fff; padding: 26px; margin-top: 26px; }
.form-comm h3 { margin: 0 0 18px; color: var(--bleu); font-size: 1.15rem; }
.champ { margin-bottom: 16px; }
.champ label { display: block; font-size: .82rem; margin-bottom: 6px; padding-left: 4px; }
.champ input, .champ textarea { width: 100%; border: 2px solid var(--bord); padding: 12px; font: inherit; font-size: .9rem; background: #fff; }
.champ input:focus, .champ textarea:focus { outline: none; border-color: var(--bleu); }
.champ textarea { min-height: 130px; resize: vertical; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aide { font-size: .7rem; color: var(--texte-doux); margin: 4px 0 0 4px; }
.coche { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; margin-bottom: 18px; }
.coche input { width: 22px; height: 22px; flex: none; }
.form-pied { text-align: center; }
.note-demo { margin-top: 18px; background: #fff8e6; border: 1px solid #ecd28f; padding: 16px 18px; font-size: .78rem; display: none; }
.note-demo.visible { display: block; }
.note-demo b { color: #5a3b00; }
.comm-ferme { background: #fff; padding: 18px 22px; font-size: .85rem; color: var(--texte-doux); }

/* ---------- Page rubrique ---------- */
.page-titre { text-align: center; padding: 40px 0 10px; }
.page-titre h1 { color: var(--bleu); font-size: 2rem; margin: 0 0 12px; }
.page-titre p { font-size: 1.15rem; margin: 0 auto; max-width: 760px; }

/* ---------- Kit de blocs ---------- */
.kit-bloc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid #d5dad9; }
.kit-bloc h3 { margin: 0 0 6px; color: var(--rouge); font-size: 1rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.kit-bloc .usage { font-size: .78rem; color: var(--texte-doux); margin: 0 0 14px; }
.kit-bloc pre { background: #24272b; color: #e6e6e6; padding: 16px; font-size: .68rem; overflow: auto; margin: 0; border-radius: 4px; white-space: pre-wrap; word-break: break-word; }
.kit-rendu { background: #fff; border: 1px dashed #b9c2c0; padding: 18px 22px; }
.kit-rendu > :first-child { margin-top: 0; }
.kit-rendu > :last-child { margin-bottom: 0; }
.schema { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.schema div { background: #fff; padding: 18px; border-top: 6px solid var(--c); font-size: .8rem; }
.schema b { display: block; color: var(--bleu); margin-bottom: 6px; font-size: .9rem; }

/* ---------- Footer (composant Figma) ---------- */
.pied { background: var(--footer); color: #fff; font-size: .72rem; }
.pied .conteneur { display: flex; align-items: center; gap: 36px; padding: 26px 20px; flex-wrap: wrap; }
.pied .pied__logo { width: 150px; height: auto; }
.pied .credit { display: flex; align-items: center; gap: 10px; }
.pied .credit img { width: 26px; height: 26px; }
.pied a { color: #fff; }
.pied .liens { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.pied .conteneur > div:nth-child(3) { max-width: 260px; }
.pied .credit { width: 100%; border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; opacity: .8; }

/* ---------- Visionneuse ---------- */
.visionneuse { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px; cursor: zoom-out; }
.visionneuse.ouverte { display: flex; }
.visionneuse img { max-height: 88vh; max-width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .signature { display: none; }
  .mur { grid-template-columns: repeat(3, 1fr); }
  .rdv-liste { grid-template-columns: repeat(2, 1fr); }
  .grille { grid-template-columns: repeat(2, 1fr); }
  .schema { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 10px 9px; font-size: .8rem; }
}
@media (max-width: 820px) {
  html { --base: 17px; }
  html.grand-texte { --base: 20px; }
  .entete .btn-contour .txt { display: none; }
  .marque .delegation span { display: none; }
  .burger { display: inline-flex; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--nav); flex-direction: column; padding: 8px 12px 16px; border-radius: 0 0 6px 6px; }
  .nav.ouvert ul { display: flex; }
  .nav a { font-size: 1rem; padding: 14px 12px; }
  .marque img { height: 54px; }
  .hero { min-height: 560px; }
  .hero::before { background: linear-gradient(0deg, rgba(25,22,18,.85) 0%, rgba(25,22,18,.4) 60%, rgba(25,22,18,.15)); }
  .hero__texte { padding-top: 40px; padding-bottom: 36px; }
  .hero__accroche { font-size: 1rem; }
  .hero__motif { width: 200px; right: -30px; top: 20px; opacity: .4; }
  .bandeau-rdv__voir { margin-left: 0; }
  .banniere { min-height: 220px; }
  .banniere h1 { font-size: 1.7rem; }
  .une { min-height: 440px; }
  .une__corps { padding: 24px; }
  .une__corps h3 { font-size: 1.45rem; }
  .mur { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .mur a span { transform: none; }
  .section { padding: 48px 0; }
  .grille, .grille-recits { grid-template-columns: 1fr; }
  .recit { grid-template-columns: 1fr; }
  .recit__corps { padding: 24px; }
  .mini-recit { grid-template-columns: 1fr; }
  .mini-recit__image { min-height: 200px; }
  .article-une { grid-template-columns: 1fr; gap: 24px; }
  .article-tete h1 { font-size: 1.6rem; }
  .duo { grid-template-columns: 1fr; }
  .kit-bloc { grid-template-columns: 1fr; }
  .com { grid-template-columns: 6px 1fr; }
  .com__fleche { display: none; }
  .evt-ligne { grid-template-columns: 70px 1fr; }
  .evt-ligne .btn { grid-column: 1 / -1; justify-self: start; }
  .pied .liens { margin-left: 0; }
  /* Calendrier mobile : pastilles au lieu des libellés */
  .cal-case { min-height: 58px; padding: 4px; align-items: center; }
  .cal-evt { width: 12px; height: 12px; padding: 0; border-radius: 50%; font-size: 0; display: inline-block; }
  .cal-evts { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
  .cal-jours div { font-size: .7rem; padding: 8px 0; }
  .agenda-tete h2 { order: -1; flex-basis: 100%; font-size: 1.4rem; }
  .btn-mois .txt { display: none; }
}
@media (max-width: 560px) {
  .rdv-liste { grid-template-columns: 1fr; }
  .schema { grid-template-columns: 1fr; }
  .btn-texte .txt { display: none; }
}
