/* ==========================================================
   Association Ouled Sbouya — feuille de style du site public
   Palette : figue (vert), ocre (argan), terre cuite (fruit), papier
   ========================================================== */

:root {
  --papier: #F4EEE3;
  --papier-2: #EBE2D1;
  --sable: #DCCBAE;
  --encre: #1E2620;
  --encre-2: #48514A;
  --encre-3: #6E746C;
  --figue: #2F4A32;
  --figue-2: #3F6142;
  --ocre: #C98A2B;
  --ocre-clair: #F1DDB4;
  --terre: #A8432A;
  --terre-fonce: #873320;
  --blanc: #FFFDF8;
  --ligne: #D6C9B2;
  --ok: #2F6B3A;
  --erreur: #A3261B;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur: 1160px;
  --marge: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 17px/1.62 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--figue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terre); }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--encre); letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--marge); }
.wrap-etroit { max-width: 780px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Bandeau motif amazigh ---------- */
.motif { height: 10px; background: url(../img/motif.svg) repeat-x center / auto 10px; }
.motif-epais { height: 16px; background-size: auto 16px; }

/* ---------- En-tête ---------- */
.topbar { background: var(--figue); color: #E9E2D2; font-size: 13.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar a { color: #F4EEE3; text-decoration: none; }
.topbar a:hover { color: var(--ocre-clair); text-decoration: underline; }
.topbar .lieux { letter-spacing: .02em; }
.topbar .compte-liens { display: flex; gap: 18px; }

.entete { background: var(--papier); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 40; }
.entete .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.marque { display: flex; flex-direction: column; text-decoration: none; color: var(--encre); line-height: 1.05; margin-right: auto; }
.marque:hover { color: var(--encre); }
.marque b { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; }
.marque small { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--terre); margin-top: 4px; font-weight: 600; }
.marque .logo-img { max-height: 54px; width: auto; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--encre); text-decoration: none; padding: 8px 9px; font-size: 15px; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--terre); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--terre-fonce); }
.entete .btn { flex-shrink: 0; }

.menu-btn { display: none; background: none; border: 1.5px solid var(--encre); color: var(--encre); font: 600 14px var(--sans); padding: 8px 12px; border-radius: 3px; cursor: pointer; align-items: center; gap: 8px; }
.menu-btn .barres { width: 16px; height: 10px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-btn .barres::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15.5px/1.2 var(--sans);
  padding: 13px 22px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .08s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-don { background: var(--terre); color: #fff; box-shadow: inset 0 -3px 0 var(--terre-fonce); }
.btn-don:hover { background: var(--terre-fonce); color: #fff; }
.btn-figue { background: var(--figue); color: #fff; box-shadow: inset 0 -3px 0 #1F3322; }
.btn-figue:hover { background: #24392A; color: #fff; }
.btn-trait { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn-trait:hover { background: var(--encre); color: var(--papier); }
.btn-clair { background: var(--papier); color: var(--figue); }
.btn-clair:hover { background: #fff; color: var(--terre); }
.btn-petit { padding: 9px 14px; font-size: 14.5px; }
.btn-large { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.lien-fleche { font-weight: 600; text-decoration: none; color: var(--terre-fonce); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { color: var(--figue); }

/* ---------- Accueil : héros ---------- */
.heros { padding: clamp(36px, 6vw, 76px) 0 clamp(40px, 6vw, 70px); }
.heros .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.surtitre { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--terre); font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.surtitre::before { content: ""; width: 28px; height: 2px; background: var(--terre); }
.heros h1 { margin-bottom: 22px; }
.heros .chapo { font-size: 1.14rem; color: var(--encre-2); max-width: 36em; margin-bottom: 30px; }
.heros .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.heros figure { margin: 0; position: relative; }
.heros figure .cadre { border: 1px solid var(--sable); padding: 10px; background: var(--blanc); box-shadow: 10px 10px 0 var(--ocre-clair); }
.heros figure img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.heros figure picture { display: block; }
.heros figcaption { font-size: 13px; color: var(--encre-3); margin-top: 12px; font-style: italic; font-family: var(--serif); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section-sable { background: var(--papier-2); }
.section-figue { background: var(--figue); color: #EDE6D6; }
.section-figue h2, .section-figue h3 { color: #fff; }
.entete-section { display: grid; grid-template-columns: 180px 1fr; gap: 24px; border-top: 1.5px solid var(--encre); padding-top: 18px; margin-bottom: 38px; }
.entete-section .num { font-family: var(--serif); font-size: 15px; color: var(--terre); font-weight: 700; letter-spacing: .04em; }
.entete-section h2 { margin: 0; max-width: 22em; }
.section-figue .entete-section { border-color: rgba(255,255,255,.5); }
.section-figue .entete-section .num { color: var(--ocre); }

.deux-col { display: grid; grid-template-columns: 180px 1fr; gap: 24px; }
.texte-long { max-width: 40em; font-size: 1.08rem; }
.texte-long p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; color: var(--terre); font-weight: 700; }
.texte-long.sans-lettrine p:first-child::first-letter { all: unset; }

/* Piliers */
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ligne); }
.pilier { padding: 28px 28px 8px 0; border-right: 1px solid var(--ligne); }
.pilier + .pilier { padding-left: 28px; }
.pilier:last-child { border-right: 0; }
.pilier .chiffre { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--ocre); font-weight: 700; display: block; margin-bottom: 14px; }
.pilier h3 { font-size: 1.22rem; }
.pilier p { color: var(--encre-2); font-size: 16px; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.chiffres div { padding: 6px 24px; border-left: 2px solid var(--ocre); }
.chiffres b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; line-height: 1.1; }
.chiffres span { font-size: 15px; color: #D9D1BE; }

/* Projets (cartes horizontales) */
.liste-projets { display: grid; gap: 28px; }
.projet-ligne { display: grid; grid-template-columns: 340px 1fr; gap: 30px; background: var(--blanc); border: 1px solid var(--ligne); padding: 16px; }
.projet-ligne .visuel { aspect-ratio: 4/3; background: var(--papier-2) url(../img/paysage.svg) center / cover; overflow: hidden; }
.projet-ligne .visuel img { width: 100%; height: 100%; object-fit: cover; }
.projet-ligne .corps { padding: 8px 8px 8px 0; display: flex; flex-direction: column; }
.projet-ligne h3 { font-size: 1.45rem; margin-bottom: 8px; }
.projet-ligne h3 a { color: var(--encre); text-decoration: none; }
.projet-ligne h3 a:hover { color: var(--terre); }
.meta { font-size: 14px; color: var(--encre-3); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.etiquette { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.etiquette-encours { color: var(--terre); }
.etiquette-realise { color: var(--figue-2); }
.projet-ligne .bas { margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

.jauge { width: 100%; }
.jauge .barre { height: 8px; background: var(--papier-2); border: 1px solid var(--ligne); }
.jauge .barre i { display: block; height: 100%; background: var(--ocre); }
.jauge .legende { display: flex; justify-content: space-between; font-size: 14px; margin-top: 6px; color: var(--encre-2); }
.jauge .legende b { color: var(--encre); }

/* Lettre */
.lettre { background: var(--blanc); border: 1px solid var(--ligne); padding: clamp(24px, 5vw, 56px); position: relative; }
.lettre::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: url(../img/motif.svg) repeat-x center / auto 6px; }
.lettre p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; }
.lettre .signature { margin-top: 28px; font-family: var(--serif); }
.lettre .signature b { display: block; font-size: 1.35rem; font-style: italic; color: var(--figue); }
.lettre .signature span { color: var(--encre-3); font-size: 15px; }
.extrait { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; border-left: 3px solid var(--terre); padding-left: 22px; margin: 0 0 22px; max-width: 34em; }

/* Bureau */
.bureau { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.membre-bureau { border-top: 3px solid var(--figue); padding-top: 16px; }
.membre-bureau .photo { aspect-ratio: 1; background: var(--papier-2); margin-bottom: 14px; display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; color: var(--figue-2); overflow: hidden; }
.membre-bureau .photo img { width: 100%; height: 100%; object-fit: cover; }
.membre-bureau .fonction { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--terre); font-weight: 700; }
.membre-bureau h3 { margin: 4px 0 2px; }
.membre-bureau .famille { color: var(--encre-3); font-size: 15px; }

/* Listes à puces éditoriales */
.liste-tirets { list-style: none; padding: 0; margin: 0; }
.liste-tirets li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--ligne); position: relative; }
.liste-tirets li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 14px; height: 2px; background: var(--terre); }
.liste-tirets li strong { font-family: var(--serif); font-size: 1.08rem; }

/* Appel au don */
.appel { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.appel h2 { margin-bottom: 10px; }
.appel p { margin: 0; max-width: 40em; color: #E3DCCB; }
.appel .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* En-tête de page intérieure */
.titre-page { padding: clamp(34px, 6vw, 64px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--ligne); }
.titre-page h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 18em; }
.titre-page .chapo { font-size: 1.1rem; color: var(--encre-2); max-width: 42em; margin: 0; }
.fil { font-size: 14px; color: var(--encre-3); margin-bottom: 16px; }
.fil a { color: var(--encre-3); }

/* ---------- Page projet ---------- */
.projet-grille { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.projet-image { margin: 0 0 28px; border: 1px solid var(--ligne); padding: 10px; background: var(--blanc); }
.projet-image img { width: 100%; max-height: 520px; object-fit: cover; }
.encart { background: var(--blanc); border: 1px solid var(--ligne); padding: 24px; position: sticky; top: 100px; }
.encart h3 { font-size: 1.15rem; }
.encart dl { margin: 18px 0 0; font-size: 15px; }
.encart dt { color: var(--encre-3); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-top: 12px; }
.encart dd { margin: 2px 0 0; }
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 30px; }
.galerie a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--papier-2); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.04); }
.galerie figure { margin: 0; }
.galerie figcaption { font-size: 13px; color: var(--encre-3); padding-top: 4px; }
.video { position: relative; aspect-ratio: 16/9; background: #1c1c1c; margin-bottom: 18px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .consentement { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 20px; background-size: cover; background-position: center; }
.video .consentement::before { content: ""; position: absolute; inset: 0; background: rgba(20,24,20,.72); }
.video .consentement > div { position: relative; max-width: 420px; font-size: 14.5px; }
.video .consentement p { margin-bottom: 14px; }

.lightbox { position: fixed; inset: 0; background: rgba(16,18,16,.92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.ouvert { display: flex; }
.lightbox img { max-height: 86vh; width: auto; }
.lightbox button { position: absolute; top: 14px; right: 14px; background: none; border: 1.5px solid #fff; color: #fff; padding: 8px 14px; font: 600 14px var(--sans); cursor: pointer; border-radius: 3px; }

/* ---------- Formulaires ---------- */
.carte-form { background: var(--blanc); border: 1px solid var(--ligne); padding: clamp(22px, 4vw, 40px); }
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grille .plein { grid-column: 1 / -1; }
.champ label, .champ .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.champ .aide { font-size: 13.5px; color: var(--encre-3); margin-top: 5px; }
.oblig { color: var(--terre); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: 16px/1.4 var(--sans); color: var(--encre);
  padding: 12px 13px; background: #fff; border: 1.5px solid #B9AC94; border-radius: 3px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--figue); box-shadow: 0 0 0 3px rgba(63,97,66,.18); }
textarea { min-height: 150px; resize: vertical; }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.case input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--figue); }
.erreur-champ { color: var(--erreur); font-size: 14px; margin-top: 5px; }
.mdp-wrap { position: relative; }
.mdp-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--figue); font: 600 13px var(--sans); padding: 8px; cursor: pointer; }

/* Choix de montant */
.bascule { display: inline-grid; grid-auto-flow: column; border: 1.5px solid var(--encre); border-radius: 3px; overflow: hidden; margin-bottom: 22px; }
.bascule input { position: absolute; opacity: 0; pointer-events: none; }
.bascule label { padding: 11px 22px; font-weight: 600; cursor: pointer; font-size: 15px; }
.bascule label + input + label, .bascule input + label ~ label { border-left: 1.5px solid var(--encre); }
.bascule input:checked + label { background: var(--encre); color: var(--papier); }
.bascule input:focus-visible + label { outline: 3px solid var(--ocre); outline-offset: -3px; }
.montants { display: grid; grid-template-columns: repeat(4, 1fr) 1.4fr; gap: 10px; margin-bottom: 8px; }
.montants input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.montants label.m { display: grid; place-items: center; padding: 15px 6px; border: 1.5px solid #B9AC94; background: #fff; font: 700 1.15rem var(--serif); cursor: pointer; border-radius: 3px; transition: border-color .15s, background .15s; }
.montants label.m:hover { border-color: var(--figue); }
.montants input:checked + label.m { border-color: var(--terre); background: #FBF1E9; color: var(--terre-fonce); box-shadow: inset 0 0 0 1px var(--terre); }
.montants input:focus-visible + label.m { outline: 3px solid var(--ocre); }
.montant-libre { position: relative; }
.montant-libre input { height: 100%; font: 700 1.1rem var(--serif); padding-right: 34px; }
.montant-libre span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--encre-3); font-weight: 600; }
.recap-don { background: var(--papier); border-left: 3px solid var(--ocre); padding: 14px 16px; margin: 20px 0; font-size: 15.5px; }
.securite { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--encre-3); margin-top: 14px; }
.securite svg { flex-shrink: 0; }

.don-grille { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.cote { font-size: 15.5px; }
.cote h3 { font-size: 1.15rem; margin-top: 4px; }
.cote .bloc { border-top: 1.5px solid var(--encre); padding-top: 16px; margin-bottom: 28px; }

/* Alertes */
.alertes { margin: 18px 0; display: grid; gap: 10px; }
.alerte { padding: 13px 16px; border-left: 4px solid; background: var(--blanc); font-size: 15.5px; }
.alerte-success { border-color: var(--ok); background: #EEF4EC; }
.alerte-error { border-color: var(--erreur); background: #FAEDEA; }
.alerte-info { border-color: var(--ocre); background: #FBF4E6; }

/* Compte */
.compte-grille { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.compte-menu { border-top: 1.5px solid var(--encre); }
.compte-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ligne); text-decoration: none; color: var(--encre); font-weight: 500; }
.compte-menu a[aria-current="true"] { color: var(--terre-fonce); font-weight: 700; }
.compte-bloc { margin-bottom: 36px; }
.compte-bloc h2 { font-size: 1.5rem; border-bottom: 1px solid var(--ligne); padding-bottom: 10px; }
.statut-adh { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px; background: var(--blanc); border: 1px solid var(--ligne); }
.pastille { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--encre-3); }
.pastille.ok { background: var(--ok); }
.pastille.non { background: var(--terre); }
.tableau { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--blanc); border: 1px solid var(--ligne); }
.tableau th, .tableau td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--ligne); }
.tableau th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-3); background: var(--papier); }
.zone-danger { border: 1.5px solid #D7B3A9; background: #FBF1EE; padding: 20px; }

/* Pages légales */
.legal h2 { font-size: 1.4rem; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--ligne); }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1em 0; }
.legal td, .legal th { border: 1px solid var(--ligne); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--papier-2); }
.a-completer { background: #FFF1C9; padding: 0 4px; }

/* Vide */
.vide { padding: 40px; text-align: center; border: 1.5px dashed var(--sable); color: var(--encre-3); }

/* ---------- Pied de page ---------- */
.pied { background: #1F2E22; color: #CFC8B8; font-size: 15px; }
.pied .haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding: 56px 0 40px; }
.pied h4 { color: #fff; font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.pied a { color: #E8E1D0; text-decoration: none; }
.pied a:hover { color: var(--ocre); text-decoration: underline; }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 8px; }
.pied .nom { font-family: var(--serif); color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0 26px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; color: #A9A392; }
.pied .bas a { color: #CFC8B8; }
.reseaux { display: flex; gap: 10px; margin-top: 14px; }
.reseaux a { border: 1px solid rgba(255,255,255,.3); padding: 6px 10px; font-size: 13px; border-radius: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.ouvert {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--papier); border-bottom: 2px solid var(--encre);
    padding: 8px var(--marge) 18px; box-shadow: 0 16px 30px rgba(0,0,0,.08);
  }
  .nav.ouvert a { padding: 14px 0; border-bottom: 1px solid var(--ligne); font-size: 17px; }
  .nav.ouvert a::after { display: none; }
  .nav .nav-compte { display: block !important; }
  .entete .wrap { gap: 12px; position: relative; }
  .pied .haut { grid-template-columns: 1fr 1fr; }
}
.nav .nav-compte { display: none; }

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .heros .wrap, .projet-grille, .don-grille, .compte-grille { grid-template-columns: 1fr; }
  .heros figure { order: -1; }
  .heros figure .cadre { box-shadow: 6px 6px 0 var(--ocre-clair); }
  .entete-section, .deux-col { grid-template-columns: 1fr; gap: 6px; }
  .piliers { grid-template-columns: 1fr; border-top: 0; }
  .pilier, .pilier + .pilier { padding: 22px 0; border-right: 0; border-top: 1px solid var(--ligne); }
  .chiffres { grid-template-columns: 1fr; gap: 18px; }
  .projet-ligne { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
  .projet-ligne .corps { padding: 0 4px 6px; }
  .bureau { grid-template-columns: 1fr 1fr; }
  .appel { grid-template-columns: 1fr; }
  .encart { position: static; }
  .compte-menu { display: flex; overflow-x: auto; gap: 18px; border-top: 0; border-bottom: 1px solid var(--ligne); }
  .compte-menu a { border: 0; white-space: nowrap; }
  .topbar .lieux { display: none; }
  .topbar .wrap { justify-content: flex-end; }
}

@media (max-width: 560px) {
  .entete .wrap { min-height: 64px; }
  .marque b { font-size: 1.3rem; }
  .marque small { font-size: 10.5px; }
  .entete .btn-don { padding: 9px 12px; font-size: 14px; }
  .menu-btn { padding: 8px 10px; }
  .menu-btn .txt { display: none; }
  .form-grille { grid-template-columns: 1fr; }
  .montants { grid-template-columns: repeat(2, 1fr); }
  .montant-libre { grid-column: 1 / -1; }
  .montant-libre input { padding: 14px; }
  .bascule { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .bascule label { text-align: center; padding: 11px 8px; }
  .bureau { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: 1fr 1fr; }
  .pied .haut { grid-template-columns: 1fr; gap: 26px; }
  .heros .actions .btn { flex: 1 1 100%; }
  .tableau-adaptatif thead { display: none; }
  .tableau-adaptatif tr { display: block; border-bottom: 1px solid var(--ligne); padding: 8px 0; }
  .tableau-adaptatif td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 5px 12px; }
  .tableau-adaptatif td::before { content: attr(data-label); color: var(--encre-3); font-size: 13px; }
  .texte-long p:first-child::first-letter { font-size: 3em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .entete, .pied, .motif, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- v2 : actualités, contenu riche, bandeau ---------- */
.annonce { background: var(--ocre); color: #1E2620; font-size: 14.5px; font-weight: 600; text-align: center; padding: 9px var(--marge); }
.annonce a { color: #1E2620; }

.actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }
.actu .visuel { display: block; aspect-ratio: 3/2; background: var(--papier-2) url(../img/paysage.svg) center / cover; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--ligne); }
.actu .visuel img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.actu:hover .visuel img { transform: scale(1.03); }
.actu time { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--terre); font-weight: 700; }
.actu h3 { font-size: 1.25rem; margin: 6px 0 8px; }
.actu h3 a { color: var(--encre); text-decoration: none; }
.actu h3 a:hover { color: var(--terre); }
.actu p { color: var(--encre-2); font-size: 15.5px; margin: 0; }

.contenu-riche { font-size: 1.08rem; }
.contenu-riche h2 { font-size: 1.6rem; margin-top: 1.6em; }
.contenu-riche h3 { font-size: 1.25rem; margin-top: 1.4em; }
.contenu-riche ul, .contenu-riche ol { padding-left: 1.3em; margin: 0 0 1em; }
.contenu-riche li { margin-bottom: .35em; }
.contenu-riche blockquote { font-family: var(--serif); font-size: 1.2rem; border-left: 3px solid var(--terre); margin: 1.4em 0; padding: 2px 0 2px 20px; color: var(--encre-2); }
.contenu-riche figure { margin: 1.6em 0; }
.contenu-riche img { border: 1px solid var(--ligne); }
.contenu-riche figcaption { font-size: 14px; color: var(--encre-3); font-style: italic; font-family: var(--serif); margin-top: 6px; }
.contenu-riche hr { border: 0; height: 10px; background: url(../img/motif.svg) repeat-x center / auto 10px; margin: 2em 0; }

@media (max-width: 860px) { .actus { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .actus { grid-template-columns: 1fr; } }

/* ---------- Repères de lecture ---------- */
.heros figure img { object-position: center 62%; }
.progression { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progression i { display: block; height: 100%; width: 0; background: var(--terre); transition: width .08s linear; }
.lecture { position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--ligne); background: var(--papier); font-size: 14px; box-shadow: 0 8px 18px rgba(30,38,32,.06); }
.lecture[hidden] { display: none; }
.lecture .wrap { display: flex; align-items: center; gap: 10px; min-height: 40px; position: relative; }
.lecture-page { color: var(--encre-3); white-space: nowrap; max-width: 34%; overflow: hidden; text-overflow: ellipsis; }
.lecture-sep { color: var(--sable); }
.lecture-section { font-family: var(--serif); font-weight: 700; color: var(--encre); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecture-btn { background: none; border: 1px solid var(--encre); border-radius: 3px; font: 600 13px var(--sans); padding: 5px 10px; cursor: pointer; color: var(--encre); flex-shrink: 0; }
.lecture-btn::after { content: " ▾"; font-size: 10px; }
.lecture-btn[aria-expanded="true"]::after { content: " ▴"; }
.lecture-liste { position: absolute; right: var(--marge); top: calc(100% + 4px); background: var(--blanc); border: 1px solid var(--ligne); box-shadow: 0 14px 30px rgba(0,0,0,.1); list-style: none; margin: 0; padding: 6px 0; min-width: 260px; max-width: calc(100vw - 2 * var(--marge)); z-index: 50; }
.lecture-liste a { display: flex; gap: 10px; padding: 9px 16px; text-decoration: none; color: var(--encre); font-size: 14.5px; }
.lecture-liste a:hover { background: var(--papier); }
.lecture-liste a b { color: var(--terre); font-family: var(--serif); min-width: 22px; }
.lecture-liste a[aria-current="true"] { background: var(--papier-2); font-weight: 600; }
.entete-section, [id^="s-"] { scroll-margin-top: 140px; }
.haut-de-page { position: fixed; right: 18px; bottom: 18px; z-index: 30; background: var(--encre); color: var(--papier); text-decoration: none; font: 600 14px var(--sans); padding: 10px 14px; border-radius: 3px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.haut-de-page.visible { opacity: 1; transform: none; pointer-events: auto; }
.haut-de-page:hover { background: var(--terre); color: #fff; }
@media (max-width: 560px) {
  .lecture-page, .lecture-sep { display: none; }
  .lecture .wrap { min-height: 38px; }
  .haut-de-page { right: 12px; bottom: 12px; padding: 9px 12px; }
}
@media print { .lecture, .progression, .haut-de-page { display: none !important; } }

/* ---------- Séparation claire des pages et des sections ---------- */
:root { --papier-2: #E9DECA; }
.ariane { background: var(--figue); color: #E6DFCF; font-size: 14px; }
.ariane .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.ariane a { color: #fff; text-decoration: none; }
.ariane a:hover { text-decoration: underline; color: var(--ocre-clair); }
.ariane-ici { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ocre); font-weight: 700; margin-right: 4px; }
.ariane-sep { color: #8FA08F; }
.ariane [aria-current="page"] { color: var(--ocre-clair); font-weight: 600; }

.titre-page { background: var(--papier-2); border-bottom: 0; position: relative; padding-bottom: clamp(30px, 5vw, 52px); }
.titre-page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: url(../img/motif.svg) repeat-x center / auto 8px; }

main > section.section { position: relative; }
main > section.section + section.section::before {
  content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 22px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='22' viewBox='0 0 120 22'%3E%3Cpath d='M60 1 L70 11 L60 21 L50 11 Z' fill='%23A8432A'/%3E%3Cpath d='M60 6 L65 11 L60 16 L55 11 Z' fill='%23F4EEE3'/%3E%3Cpath d='M36 6 L41 11 L36 16 L31 11 Z M84 6 L89 11 L84 16 L79 11 Z' fill='%23C98A2B'/%3E%3C/svg%3E") center / 120px 22px no-repeat;
}
main > section.section + section.section { border-top: 1px solid var(--ligne); }
main > section.section-figue + section.section, main > section.section + section.section-figue { border-top: 0; }

.entete-section { align-items: end; border-top-width: 2px; }
.entete-section .num { display: flex; align-items: baseline; gap: 12px; font-family: var(--sans); }
.entete-section .num b { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: .9; color: var(--terre); font-weight: 700; letter-spacing: -.02em; }
.entete-section .num span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--encre-2); }
.section-figue .entete-section .num span { color: #D9D1BE; }

.nav a[aria-current="page"] { font-weight: 700; color: var(--terre-fonce); }
.nav a[aria-current="page"]::after { height: 3px; bottom: 0; }
@media (max-width: 1200px) {
  .nav.ouvert a[aria-current="page"] { background: var(--papier-2); padding-left: 12px; border-left: 4px solid var(--terre); }
}
@media (max-width: 860px) {
  .entete-section .num { margin-bottom: 4px; }
  .ariane-ici { display: none; }
}

/* Portrait du Président près de la signature */
.lettre .signature { display: flex; align-items: center; gap: 18px; }
.signature-photo { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 3px solid var(--blanc); box-shadow: 0 0 0 1px var(--sable); flex-shrink: 0; }
.signature-courte { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-family: var(--serif); }
.signature-courte img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 2px solid var(--blanc); box-shadow: 0 0 0 1px var(--sable); }
.signature-courte p { margin: 0; line-height: 1.4; color: var(--encre-2); }
.signature-courte b { color: var(--encre); font-size: 1.1rem; }
.membre-bureau .photo img { object-position: center 35%; }
