/* GRAACE — feuille de style unique (template validé). Couleurs et polices injectées depuis l'admin (parts/_head.php). */
:root {
    --terre: #2e1a08;
    --terre-2: #4a2d12;
    --flamme: #f04818;
    --olive: #627a32;
    --olive-fonce: #4c5f26;
    --or: #f0c000;
    --olive-pale: #eef2e4;
    --texte: #3b2f24;
    --doux: #6f6458;
    --blanc: #ffffff;
    --wrap: 1200px;
    --ease: cubic-bezier(.65, 0, .25, 1);
    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Figtree', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.7 var(--body); color: var(--texte); background: var(--blanc); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--terre); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 3px; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -.02em; color: var(--terre); margin: 0 0 .5em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 10px; border: 2px solid transparent; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--or); color: var(--terre); }
.btn-gold:hover { background: var(--terre); color: var(--or); }
.btn-flame { background: var(--flamme); color: #fff; }
.btn-flame:hover { background: var(--terre); }
.btn-ghost { border-color: rgba(46,26,8,.2); color: var(--terre); }
.btn-ghost:hover { border-color: var(--terre); }
.btn-line { color: var(--terre); padding-left: 0; padding-right: 0; border-radius: 0; background: linear-gradient(var(--olive), var(--olive)) 0 100% / 100% 2px no-repeat; }
.btn-line:hover { background-size: 30% 2px; }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--olive-fonce); }
.link { font-weight: 600; color: var(--olive-fonce); text-decoration: none; border-bottom: 2px solid var(--or); padding-bottom: 2px; }
.link:hover { color: var(--flamme); }

/* ------------------------------------------------ En-tête */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .35s; }
.hdr.is-scrolled { box-shadow: 0 1px 0 rgba(46,26,8,.08), 0 10px 30px rgba(46,26,8,.06); }
.hdr-in { display: flex; align-items: center; gap: 32px; height: 92px; transition: height .35s var(--ease); }
.hdr.is-scrolled .hdr-in { height: 72px; }
.logo img { height: 58px; width: auto; transition: height .35s var(--ease); }
.hdr.is-scrolled .logo img { height: 46px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; font-weight: 600; font-size: .96rem; text-decoration: none; color: var(--terre); }
.nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--or); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::after { background: var(--olive); }
.hdr-actions { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 0; font: 600 1rem var(--body); color: var(--terre); cursor: pointer; padding: 8px; position: relative; z-index: 70; }
.menu-lines { position: relative; width: 26px; height: 2px; background: currentColor; transition: background .3s; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; width: 26px; height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-lines::before { transform: translateY(-8px); }
.menu-lines::after { transform: translateY(8px); }
.menu-btn[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); }

/* Panneau mobile : glisse depuis la droite, liens en cascade */
.panel { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 60; background: var(--olive-pale); padding: 120px 34px 40px; display: flex; flex-direction: column; gap: 30px; transform: translateX(100%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s .55s; box-shadow: -20px 0 60px rgba(46,26,8,.12); }
.panel.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.panel nav { display: grid; }
.panel nav a { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--terre); text-decoration: none; padding: 6px 0; border-bottom: 1px solid rgba(46,26,8,.1); opacity: 0; transform: translateX(30px); transition: opacity .4s, transform .5s var(--ease), color .2s; }
.panel.is-open nav a { opacity: 1; transform: none; }
.panel nav a:hover { color: var(--flamme); }
.panel .btn { align-self: flex-start; }

/* ------------------------------------------------ Hero */
.hero { padding: 70px 0 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.hero-kicker { margin: 0 0 1.2rem; color: var(--olive-fonce); font-weight: 700; }
.hero-h { font-family: var(--display); font-weight: 800; font-size: clamp(2.8rem, 6.4vw, 5.6rem); line-height: .98; letter-spacing: -.035em; color: var(--terre); margin: 0 0 1.6rem; }
.hero-p { font-size: 1.15rem; color: var(--doux); max-width: 46ch; margin: 0 0 2rem; }
.hero-ctas { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1 / 1.05; }
.hero-photos { position: absolute; inset: 0 0 18% 12%; border-radius: 26px 26px 26px 140px; overflow: hidden; background: var(--olive-pale); }
.hero-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 8s linear; }
.hero-photos img.is-on { opacity: 1; transform: scale(1); }
.bands { position: absolute; left: -6%; bottom: -4%; width: 112%; height: 70%; z-index: 2; overflow: visible; pointer-events: none; }
.band { fill: none; stroke-width: 34; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; }
.band-olive { stroke: var(--olive); }
.band-gold { stroke: var(--or); }
.band-flame { stroke: var(--flamme); }
.is-ready .band { animation: paint 1.4s var(--ease) forwards; }
.is-ready .band-gold { animation-delay: .25s; }
.is-ready .band-flame { animation-delay: .5s; }
@keyframes paint { to { stroke-dashoffset: 0; } }
.js .hero-txt > * { opacity: 0; transform: translateY(18px); }
.is-ready .hero-txt > * { opacity: 1; transform: none; transition: opacity .8s, transform .9s var(--ease); }
.is-ready .hero-txt > :nth-child(2) { transition-delay: .1s; }
.is-ready .hero-txt > :nth-child(3) { transition-delay: .2s; }
.is-ready .hero-txt > :nth-child(4) { transition-delay: .3s; }
.hero-dots { position: absolute; left: 12%; bottom: 8%; z-index: 3; display: flex; gap: 8px; transform: translateY(150%); }
.hero-dots button { width: 34px; height: 6px; border-radius: 6px; border: 0; padding: 0; background: rgba(46,26,8,.18); cursor: pointer; transition: background .3s, width .3s var(--ease); }
.hero-dots button[aria-selected="true"] { background: var(--terre); width: 54px; }

/* ------------------------------------------------ Mission */
.mission { padding: 110px 0; background: var(--olive-pale); }
.mission-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; margin-bottom: 60px; }
.mission-lead { font-family: var(--display); font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.4; color: var(--terre); margin: 0; }
.aims { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(46,26,8,.15); }
.aims li { padding: 34px 34px 10px 0; display: grid; gap: 16px; align-content: start; }
.aims li + li { padding-left: 34px; border-left: 1px solid rgba(46,26,8,.15); }
.aims img { width: 74px; height: 74px; object-fit: contain; }
.aims p { margin: 0; color: var(--texte); font-weight: 500; }

/* ------------------------------------------------ Secteurs */
.causes { padding: 120px 0; }
.causes-head { max-width: 640px; margin-bottom: 50px; }
.causes-head p { color: var(--doux); }
.sectors { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.sector-list { display: grid; }
.sector-list button { display: flex; align-items: center; gap: 16px; padding: 17px 4px; border: 0; border-bottom: 1px solid rgba(46,26,8,.12); background: none; text-align: left; font: 600 1.05rem var(--body); color: var(--doux); cursor: pointer; position: relative; transition: color .3s, padding .4s var(--ease); }
.sector-list button i { width: 22px; text-align: center; color: var(--olive); transition: color .3s; }
.sector-list button::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--flamme); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sector-list button:hover { color: var(--terre); }
.sector-list button[aria-selected="true"] { color: var(--terre); padding-left: 14px; }
.sector-list button[aria-selected="true"] i { color: var(--flamme); }
.sector-list button[aria-selected="true"]::after { transform: scaleX(1); }
.sector-view { position: sticky; top: 110px; }
.sector-img { aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: var(--olive-pale); display: grid; place-items: center; }
.sector-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s var(--ease); }
.sector-img img.is-contain { object-fit: contain; width: 46%; height: auto; }
.sector-view.is-swapping .sector-img img, .sector-view.is-swapping .sector-title, .sector-view.is-swapping .sector-text { opacity: 0; transform: translateY(8px); }
.sector-title { font-family: var(--display); font-size: 1.7rem; color: var(--terre); margin: 26px 0 8px; transition: opacity .35s, transform .45s var(--ease); }
.sector-text { color: var(--doux); max-width: 62ch; margin: 0; transition: opacity .35s .05s, transform .45s .05s var(--ease); }

/* ------------------------------------------------ Histoires */
.news { padding: 110px 0; background: var(--olive-pale); }
.news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 40px; }
.stories { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 34px 40px; }
.story { text-decoration: none; color: var(--terre); display: grid; gap: 10px; align-content: start; }
.story-main { grid-row: span 2; }
.story-img { display: block; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 10; }
.story:not(.story-main) { grid-template-columns: 180px 1fr; column-gap: 22px; align-items: start; }
.story:not(.story-main) .story-img { grid-row: span 2; aspect-ratio: 1; }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.story:hover .story-img img { transform: scale(1.05); }
.story-meta { font-size: .88rem; color: var(--doux); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { background: var(--blanc); color: var(--olive-fonce); font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.story h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; margin: 0; transition: color .25s; }
.story-main h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.story:hover h3 { color: var(--flamme); }
.story p { margin: 0; color: var(--doux); }

/* ------------------------------------------------ Galerie */
.gallery { padding: 110px 0 100px; overflow: hidden; }
.hint { color: var(--doux); margin: 0; }
.strip { display: flex; gap: 18px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 max(28px, calc((100vw - var(--wrap)) / 2 + 28px)) 10px; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-drag { cursor: grabbing; }
.strip figure { flex: 0 0 auto; margin: 0; width: 360px; height: 270px; border-radius: 16px; overflow: hidden; }
.strip figure.tall { width: 260px; height: 360px; }
.strip img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* ------------------------------------------------ Don */
.donate { background: var(--olive); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.donate::before { content: ''; position: absolute; right: -80px; top: -40px; width: 420px; height: 120px; border-radius: 60px; background: var(--or); transform: rotate(-12deg); opacity: .9; }
.donate::after { content: ''; position: absolute; right: -60px; top: 70px; width: 420px; height: 60px; border-radius: 60px; background: var(--flamme); transform: rotate(-12deg); }
.donate-in { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; position: relative; z-index: 1; }
.donate h2 { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; margin: 0 0 .4em; max-width: 20ch; }
.donate p { margin: 0; opacity: .9; max-width: 50ch; }
.donate-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------ Contact */
.contact { padding: 120px 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.info { display: grid; grid-template-columns: 130px 1fr; gap: 12px 20px; margin: 30px 0 0; }
.info dt { font-weight: 700; color: var(--olive-fonce); }
.info dd { margin: 0; }
.info a { text-decoration: none; }
.info a:hover { color: var(--flamme); }
.form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--terre); }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 13px 16px; border: 1.5px solid rgba(46,26,8,.15); border-radius: 10px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(98,122,50,.15); }
.form .btn { justify-self: start; }
.form-note { margin: 0; color: var(--olive-fonce); font-weight: 600; min-height: 1.5em; }

/* ------------------------------------------------ Pied de page */
.ftr { background: var(--terre); color: #d8cbbd; padding: 80px 0 28px; }
.ftr-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; gap: 50px; }
.ftr-logo { width: 220px; background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.ftr h3 { font-family: var(--display); color: #fff; font-size: 1.1rem; margin: 0 0 12px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { color: var(--or); }
.nl-row { display: flex; gap: 8px; background: var(--terre-2); border-radius: 12px; padding: 6px; }
.nl-row input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; padding: 0 12px; font: inherit; }
.nl-row input:focus { outline: none; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* ------------------------------------------------ Responsive */
@media (max-width: 1080px) {
    .nav, .hdr-actions { display: none; }
    .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
    .hero-grid, .mission-head, .sectors, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding-top: 40px; }
    .hero-art { max-width: 560px; }
    .aims { grid-template-columns: 1fr; }
    .aims li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(46,26,8,.15); }
    .sector-view { position: static; order: -1; }
    .stories { grid-template-columns: 1fr; }
    .story-main { grid-row: auto; }
    .ftr-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .hdr-in { height: 76px; }
    .logo img { height: 46px; }
    .story:not(.story-main) { grid-template-columns: 110px 1fr; }
    .row-2 { grid-template-columns: 1fr; }
    .strip figure { width: 260px; height: 200px; }
    .strip figure.tall { width: 190px; height: 260px; }
    .info { grid-template-columns: 1fr; gap: 2px; }
    .info dd { margin-bottom: 10px; }
    .mission, .causes, .news, .gallery, .contact { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .band { stroke-dashoffset: 0; }
    html { scroll-behavior: auto; }
}

/* Correctifs après relecture des captures */
.hero-h { font-size: clamp(2.6rem, 5vw, 4.5rem); max-width: 11ch; text-wrap: balance; }
.hero-dots { left: auto; right: 4%; top: 4%; bottom: auto; transform: none; background: rgba(255,255,255,.85); padding: 8px 10px; border-radius: 999px; }
.donate::before { top: -70px; }
.donate::after { top: 40px; }
@media (max-width: 900px) { .donate::before, .donate::after { opacity: .35; } }
.link { white-space: nowrap; }
/* Crédit concepteur : discret, s'éclaire au survol */
.ftr .credit { color: #9c8c7c; font-size: .82rem; text-decoration: none; transition: color .3s; }
.ftr .credit:hover, .ftr .credit:focus-visible { color: var(--or); }

/* ===================================================================== */
/* Site : compléments du template pour les pages intérieures             */
/* ===================================================================== */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.reveal { }
.logo-txt { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--terre); }
.h3 { font-family: var(--display); font-size: 1.15rem; color: var(--terre); margin: 26px 0 10px; }
.section { padding: 100px 0; }
.section-cream { background: var(--olive-pale); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--doux); }
.lead { font-size: 1.12rem; color: var(--doux); max-width: 60ch; }
.lead.center { margin: 0 auto 40px; }
.lead-rich { font-size: 1.08rem; color: var(--doux); }
.lead-rich p { margin: 0 0 1em; }
.hero-txt .hero-h { text-wrap: balance; }
.sector-link { display: inline-block; margin-top: 18px; }

/* Bandeau des pages intérieures : clair, sobre */
.page-hero { padding: 54px 0 46px; background: var(--olive-pale); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -60px; bottom: 26px; width: 340px; height: 22px; border-radius: 22px; background: var(--or); transform: rotate(-8deg); box-shadow: 30px 30px 0 -2px var(--flamme), -20px -28px 0 -2px var(--olive); opacity: .9; }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.03em; color: var(--terre); margin: 0; max-width: 22ch; position: relative; z-index: 1; }
.breadcrumb { color: var(--doux); font-size: .92rem; margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--olive-fonce); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--flamme); }

/* Grilles de cartes « story » */
.grid { display: grid; gap: 44px 34px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid .story-img { aspect-ratio: 4 / 3; }
.story-empty { display: grid; place-items: center; height: 100%; background: var(--olive-pale); color: #b8bfa5; font-size: 2.2rem; }
.story-meta i { color: var(--olive); }
.story-meta i + * { margin-left: -4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters a { padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(46,26,8,.15); color: var(--terre); text-decoration: none; font-weight: 600; transition: border-color .25s, background .25s, color .25s; }
.filters a:hover { border-color: var(--terre); }
.filters a.active { background: var(--terre); border-color: var(--terre); color: #fff; }
.filters small { opacity: .7; }
.empty-state { color: var(--doux); padding: 30px 0; }

/* Article (image bannière, titre vert léger, colonne centrée) */
.article-banner { max-height: 540px; overflow: hidden; background: var(--terre); }
.article-banner img { width: 100%; height: 540px; object-fit: cover; }
.article-section { padding: 60px 0 100px; }
.article-column { max-width: 860px; }
.article-title { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; letter-spacing: -.02em; color: var(--olive); margin: 0 0 16px; }
.card-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--doux); font-size: .9rem; margin: 0 0 28px; }
.card-meta .tag { background: var(--olive-pale); }
.article-back { margin-top: 40px; }
.article-cover { width: 100%; border-radius: 18px; margin-bottom: 30px; }
.rich { overflow-wrap: anywhere; }
.rich p { margin: 0 0 1.1em; }
.rich ul { padding-left: 1.2em; }
.rich li::marker { color: var(--flamme); }
.rich a { color: var(--olive-fonce); }
.rich img { border-radius: 14px; margin: 1em 0; }
.article .rich { color: #6a5e52; }
.post-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 1.6em 0; }
.post-gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 6px; cursor: zoom-in; }

/* Page cause : contenu + liste latérale */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 60px; align-items: start; }
.sidebar { position: sticky; top: 110px; background: var(--olive-pale); border-radius: 18px; padding: 26px; }
.sidebar h3 { font-family: var(--display); color: var(--terre); margin: 0 0 10px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { border-bottom: 1px solid rgba(46,26,8,.1); }
.side-list a { display: flex; gap: 10px; align-items: center; padding: 11px 0; color: var(--terre); text-decoration: none; font-weight: 600; }
.side-list a:hover { color: var(--flamme); }
.side-list i { color: var(--olive); width: 20px; text-align: center; }
.title-icon { color: var(--flamme); }
.article h2 { font-family: var(--display); color: var(--terre); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }

/* About Us */
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(46,26,8,.15); }
.mission-item { padding: 34px 34px 10px 0; display: grid; gap: 16px; align-content: start; }
.mission-item + .mission-item { padding-left: 34px; border-left: 1px solid rgba(46,26,8,.15); }
.mission-item img { width: 74px; height: 74px; object-fit: contain; }
.mission-item h3 { font-family: var(--body); font-size: 1rem; font-weight: 500; color: var(--texte); margin: 0; line-height: 1.6; }
.section-head .lead p { margin: 0; }
.sector-links { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 30px; }
.sector-links a { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(46,26,8,.12); color: var(--terre); text-decoration: none; font-weight: 600; transition: color .25s, padding .35s var(--ease); }
.sector-links a:hover { color: var(--flamme); padding-left: 8px; }
.sector-links i { color: var(--olive); width: 22px; text-align: center; }

/* Galerie */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-item { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--olive-pale); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(46,26,8,.8)); color: #fff; font-size: .82rem; line-height: 1.3; opacity: 0; transition: opacity .3s; }
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }

/* Team, testimonials, events */
.team-card { text-align: center; }
.team-photo { width: 160px; height: 160px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: var(--olive-pale); display: grid; place-items: center; font-size: 3rem; color: #c3c9b0; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: var(--display); color: var(--terre); margin: 0; }
.team-role { color: var(--flamme); font-weight: 600; margin: 4px 0 10px; }
.testimonial { margin: 0; padding: 30px; border-radius: 18px; background: var(--olive-pale); }
.testimonial p { font-family: var(--display); font-size: 1.15rem; color: var(--terre); }
.testimonial footer { display: flex; gap: 12px; align-items: center; color: var(--doux); }
.testimonial footer img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.list-title { font-family: var(--display); color: var(--terre); margin: 10px 0 18px; }
.event-list { display: grid; gap: 12px; margin-bottom: 40px; }
.event-row { display: flex; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(46,26,8,.12); color: var(--terre); text-decoration: none; }
.event-row:hover strong { color: var(--flamme); }
.event-date { flex: 0 0 76px; text-align: center; background: var(--olive); color: #fff; border-radius: 14px; padding: 10px 6px; font-size: .78rem; text-transform: uppercase; }
.event-date strong { display: block; font-size: 1.6rem; line-height: 1; color: #fff !important; }
.event-details dt { font-weight: 700; color: var(--olive-fonce); margin-top: 12px; }
.event-details dd { margin: 2px 0 0; }

/* Donate */
.donate-appeal { display: flex; gap: 34px; align-items: center; padding: 36px; border-radius: 22px; background: var(--olive-pale); margin-bottom: 36px; }
.donate-appeal img { max-height: 130px; width: auto; }
.donate-appeal h2 { font-family: var(--display); color: var(--terre); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; margin: 0 0 14px; }
.donate-methods { margin-bottom: 36px; }
.donate-card { padding: 30px; border-radius: 18px; border: 1.5px solid rgba(46,26,8,.12); }
.donate-card > i { font-size: 1.8rem; color: var(--flamme); margin-bottom: 14px; }
.donate-card h3 { font-family: var(--display); color: var(--terre); }

/* Partenaires */
.logos { display: flex; flex-wrap: wrap; gap: 18px; }
.logos > * { display: grid; place-items: center; gap: 8px; min-width: 180px; padding: 22px; border-radius: 16px; background: var(--olive-pale); color: var(--terre); text-decoration: none; font-weight: 600; }
.logos img { max-height: 62px; width: auto; }

/* Boutons hérités */
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--terre); }
.btn-secondary { background: var(--flamme); color: #fff; }
.btn-secondary:hover { background: var(--terre); }
.btn-outline { border-color: rgba(46,26,8,.25); color: var(--terre); }
.btn-outline:hover { border-color: var(--terre); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }

/* Pied de page */
.ftr-text { font-size: .95rem; }
.ftr-text p { margin: 0 0 .8em; }
.ftr-partners { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.ftr-partners img { max-height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.socs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.soc { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(46,26,8,.2); color: var(--terre); text-decoration: none; }
.ftr .soc { border-color: rgba(255,255,255,.2); color: #fff; }
.soc:hover { background: var(--or); border-color: var(--or); color: var(--terre); }
.ftr-page { color: #d8cbbd !important; margin-left: 14px; }
.ftr .credit { color: #9c8c7c; font-size: .82rem; text-decoration: none; transition: color .3s; }
.ftr a.credit:hover, .ftr a.credit:focus-visible { color: var(--or); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map { display: block; width: 100%; height: 400px; border: 0; }

/* Messages flash, visionneuse, 404 */
.toast { position: fixed; top: 100px; right: 20px; z-index: 300; max-width: 380px; padding: 16px 46px 16px 20px; border-radius: 14px; background: #fff; color: var(--terre); box-shadow: 0 20px 50px rgba(46,26,8,.18); border-left: 5px solid var(--olive); animation: toast-in .5s var(--ease); }
.toast-error { border-left-color: var(--flamme); }
.toast-close { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: var(--doux); }
@keyframes toast-in { from { transform: translateX(40px); opacity: 0; } }
.lb-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(46,26,8,.92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lb-overlay img { max-width: 94vw; max-height: 90vh; border-radius: 10px; }
.big-404 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 20vw, 11rem); line-height: 1; color: var(--olive); }

@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .mission-grid { grid-template-columns: 1fr; }
    .mission-item + .mission-item { padding-left: 0; border-left: 0; border-top: 1px solid rgba(46,26,8,.15); }
}
@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .article-banner img { height: 260px; }
    .donate-appeal { flex-direction: column; text-align: center; padding: 26px; }
    .page-hero::after { width: 200px; right: -80px; }
}
.grid .story, .grid .story:not(.story-main) { grid-template-columns: none; column-gap: 0; }
.grid .story .story-img, .grid .story:not(.story-main) .story-img { grid-row: auto; aspect-ratio: 4 / 3; }
