/*
Theme Name: AFESDI 2026
Author: AFESDI
Description: Site AFESDI responsive, modifiable depuis Apparence > Personnaliser et l’éditeur WordPress.
Version: 6.5
*/
:root{
  --forest:#0b5c4d;
  --forest-dark:#083d35;
  --forest-ink:#123d35;
  --sage:#eaf2ed;
  --sage-soft:#f4f8f5;
  --ivory:#fbf8f1;
  --sand:#efe4cf;
  --gold:#d8a548;
  --gold-soft:#f4dfb8;
  --text:#2b4841;
  --muted:#697d77;
  --line:#dde7e1;
  --white:#ffffff;
  --shadow-sm:0 10px 28px rgba(23,63,54,.08);
  --shadow-lg:0 22px 60px rgba(15,57,49,.16);
  --radius:24px;
  --radius-sm:15px;
  --font-sans:"Aptos","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-display:"Iowan Old Style","Baskerville","Palatino Linotype",Palatino,Georgia,serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--white);color:var(--text);font-family:var(--font-sans);font-size:16px;line-height:1.72;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
img,video{max-width:100%}
img{height:auto}
button,input,textarea,select{font:inherit}
::selection{background:var(--gold-soft);color:var(--forest-dark)}
.wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}
#accueil,#histoire,#domaines,#ressources,#contact{scroll-margin-top:100px}

/* En-tête */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.93);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(11,92,77,.09);box-shadow:0 7px 24px rgba(20,58,50,.04)}
.head{min-height:88px;display:flex;align-items:center;gap:24px}
.logo{flex:0 0 auto;width:132px}
.logo a{display:block}
.logo img{display:block;width:132px;height:68px;object-fit:contain;object-position:left center}
.nav{display:flex;align-items:center;justify-content:center;gap:clamp(16px,2vw,30px);margin-left:auto}
.nav a{position:relative;padding:9px 0;color:#36534c;font-size:13px;font-weight:720;letter-spacing:.02em;white-space:nowrap}
.nav a:after{content:"";position:absolute;left:0;right:100%;bottom:4px;height:2px;background:var(--gold);transition:right .25s ease}
.nav a:hover{color:var(--forest)}
.nav a:hover:after{right:0}
.head-actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.login{font-size:13px;font-weight:750;color:var(--forest);padding:10px 4px}
.donate,.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;cursor:pointer;font-weight:760;transition:transform .22s ease,box-shadow .22s ease,background .22s ease,color .22s ease}
.donate{background:var(--forest);color:#fff;padding:12px 18px;border-radius:999px;font-size:13px;box-shadow:0 10px 20px rgba(11,92,77,.16)}
.donate:hover,.btn:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(11,92,77,.2)}
.nav-toggle{display:none;border:1px solid var(--line);background:#fff;color:var(--forest-dark);border-radius:999px;padding:9px 14px;font-weight:750;cursor:pointer}

/* Typographie */
.eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--forest);font-size:11px;font-weight:850;letter-spacing:.18em;text-transform:uppercase}
.eyebrow:before{content:"";width:26px;height:2px;border-radius:2px;background:var(--gold)}
h1,h2,h3,p{overflow-wrap:anywhere}
.hero h1,.section h2,.focus-section h2,.project-feature h2{font-family:var(--font-display);font-weight:700;letter-spacing:-.035em;color:var(--forest-dark)}

/* Hero */
.hero{position:relative;min-height:650px;display:flex;align-items:center;overflow:hidden;background-position:center;background-size:cover}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(251,248,241,.98) 0%,rgba(251,248,241,.94) 31%,rgba(251,248,241,.71) 48%,rgba(251,248,241,.2) 70%,rgba(251,248,241,0) 100%)}
.hero:after{content:"";position:absolute;width:390px;height:390px;border:1px solid rgba(216,165,72,.38);border-radius:50%;left:-180px;bottom:-205px;box-shadow:0 0 0 44px rgba(216,165,72,.07),0 0 0 88px rgba(216,165,72,.04)}
.hero-inner{position:relative;z-index:2;padding-block:100px 120px}
.hero-copy{max-width:590px}
.hero h1{font-size:clamp(44px,5.15vw,72px);line-height:1.03;margin:18px 0 24px}
.hero p{max-width:555px;margin:0;color:#405b54;font-size:clamp(16px,1.5vw,19px);line-height:1.75}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin-top:31px}
.btn{margin-top:0;background:var(--forest);color:#fff;padding:14px 22px;border-radius:999px;font-size:14px;box-shadow:0 12px 26px rgba(11,92,77,.18)}
.text-link{display:inline-flex;gap:10px;align-items:center;color:var(--forest-dark);font-size:14px;font-weight:780;padding:9px 2px;border-bottom:1px solid rgba(11,92,77,.28)}
.text-link:hover{border-color:var(--gold)}
.hero-caption{position:absolute;right:28px;bottom:22px;z-index:2;padding:9px 12px;border-radius:999px;background:rgba(7,46,40,.52);backdrop-filter:blur(7px);color:#fff;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.hero-caption span{color:#f0c66e}

/* Priorités */
.focus-section{position:relative;padding:88px 0 96px;background:linear-gradient(180deg,#fff 0%,#fafcfb 100%);overflow:hidden}
.focus-section:before{content:"";position:absolute;right:-160px;top:70px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(216,165,72,.11),rgba(216,165,72,0) 68%);pointer-events:none}
.section-topline{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-bottom:9px;color:var(--muted);font-size:13px}
.section-topline>span:last-child{max-width:390px;text-align:right}
.focus-section h2{max-width:720px;margin:7px 0 36px;font-size:clamp(38px,4.1vw,58px);line-height:1.08}
.priority-grid{display:grid;grid-template-columns:minmax(0,1.18fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(235px,auto));gap:18px}
.priority-card{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;min-height:235px;padding:27px 27px 25px;border:1px solid #e6ece8;border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm);cursor:pointer;outline-offset:4px;transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease,background .28s ease,color .28s ease}
.priority-card:after{content:"";position:absolute;z-index:-1;right:-38px;bottom:-55px;width:145px;height:145px;border-radius:50%;background:#f5ead8;transition:transform .3s ease,background .3s ease}
.priority-card:first-child{grid-column:1;grid-row:1 / span 2;min-height:488px;justify-content:flex-end;padding:34px;background:linear-gradient(180deg,rgba(7,46,40,.05),rgba(7,46,40,.86)),url('assets/images/agriculture.jpeg') center/cover;border-color:transparent;box-shadow:var(--shadow-lg);color:#fff}
.priority-card:first-child:after{width:210px;height:210px;background:rgba(216,165,72,.18);right:-85px;bottom:-88px}
.priority-card:nth-child(2){grid-column:2;grid-row:1}.priority-card:nth-child(3){grid-column:3;grid-row:1}.priority-card:nth-child(4){grid-column:2;grid-row:2}.priority-card:nth-child(5){grid-column:3;grid-row:2}
.card-num{display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;width:47px;height:47px;margin-bottom:24px;border-radius:15px 15px 15px 5px;background:var(--gold);color:#2b261d;font-size:15px;font-weight:850;box-shadow:0 8px 20px rgba(216,165,72,.2)}
.priority-card:first-child .card-num{background:rgba(255,255,255,.92);color:var(--forest-dark)}
.priority-card h3{margin:0 0 10px;color:var(--forest-dark);font-size:clamp(19px,1.6vw,23px);line-height:1.22;letter-spacing:-.02em}
.priority-card:first-child h3{max-width:440px;color:#fff;font-family:var(--font-display);font-size:clamp(31px,3vw,43px);line-height:1.06}
.priority-card p{margin:0;color:#61746e;font-size:14px;line-height:1.62}
.priority-card:first-child p{max-width:440px;color:#eef5f2;font-size:16px}
.card-more{display:block;margin-top:auto;padding-top:20px;color:var(--forest);font-size:12px;font-weight:820}
.priority-card:first-child .card-more{color:#fff}
.card-detail{max-height:0;opacity:0;overflow:hidden;transition:max-height .38s ease,opacity .25s ease,margin .25s ease}
.card-detail strong{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase}
.card-detail ul{margin:8px 0 0;padding-left:18px;font-size:13px;line-height:1.5}
.card-detail li{margin:5px 0}
.priority-card:hover,.priority-card:focus,.priority-card.is-active{transform:translateY(-5px);box-shadow:0 20px 44px rgba(15,57,49,.15);border-color:rgba(11,92,77,.18);background:var(--forest);color:#fff}
.priority-card:hover:after,.priority-card:focus:after,.priority-card.is-active:after{transform:scale(1.14);background:rgba(255,255,255,.09)}
.priority-card:hover h3,.priority-card:focus h3,.priority-card.is-active h3,.priority-card:hover p,.priority-card:focus p,.priority-card.is-active p,.priority-card:hover .card-more,.priority-card:focus .card-more,.priority-card.is-active .card-more{color:#fff}
.priority-card:hover .card-detail,.priority-card:focus .card-detail,.priority-card.is-active .card-detail{max-height:270px;opacity:1;margin-top:15px}
.priority-card:first-child:hover,.priority-card:first-child:focus,.priority-card:first-child.is-active{background:linear-gradient(180deg,rgba(8,61,53,.3),rgba(8,61,53,.96)),url('assets/images/agriculture.jpeg') center/cover}
.priority-card:focus-visible{outline:3px solid var(--gold)}

/* Sections éditoriales */
.section{padding:104px 0}
.editorial{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);gap:clamp(48px,7vw,98px);align-items:center}
.editorial-image{position:relative;min-width:0}
.editorial-image:before{content:"";position:absolute;left:-18px;top:-18px;width:38%;height:38%;border-top:3px solid var(--gold);border-left:3px solid var(--gold);border-radius:20px 0 0 0;z-index:0}
.editorial-image img{position:relative;z-index:1;display:block;width:100%;height:475px;object-fit:cover;border-radius:30px 8px 30px 8px;box-shadow:var(--shadow-lg)}
.image-label{position:absolute;z-index:2;left:20px;bottom:20px;padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.93);backdrop-filter:blur(7px);color:var(--forest);font-size:11px;font-weight:800;box-shadow:var(--shadow-sm)}
.editorial-text h2,.section-heading h2{margin:15px 0 22px;font-size:clamp(38px,4vw,55px);line-height:1.08}
.editorial-text p{margin:0 0 18px;color:#506861;font-size:16px;line-height:1.85}
.quote{margin-top:29px;padding:20px 0 20px 22px;border-left:3px solid var(--gold);color:var(--forest-dark);font-family:var(--font-display);font-size:clamp(23px,2.3vw,31px);font-style:italic;font-weight:700;line-height:1.3}
.history{background:linear-gradient(180deg,var(--sage-soft),#fff)}
.history .editorial{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr)}
.history .editorial-image img{height:520px}
.signature{display:flex;flex-direction:column;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.signature-line{display:block;width:44px;height:3px;margin-bottom:12px;border-radius:3px;background:var(--gold)}
.signature strong{color:var(--forest-dark);font-size:14px}
.signature small{margin-top:3px;color:var(--muted);font-size:12px}

/* Projet vedette */
.project-feature{position:relative;overflow:hidden;background:var(--forest-dark);color:#fff}
.project-feature:after{content:"";position:absolute;right:-160px;top:-170px;width:430px;height:430px;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 52px rgba(255,255,255,.025),0 0 0 104px rgba(255,255,255,.018)}
.project-inner{position:relative;z-index:1;display:grid;grid-template-columns:1.03fr .97fr;align-items:stretch}
.project-photo{min-height:450px;overflow:hidden}
.project-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.project-feature:hover .project-photo img{transform:scale(1.025)}
.project-copy{display:flex;flex-direction:column;justify-content:center;padding:70px 0 70px clamp(40px,6vw,86px)}
.project-copy .eyebrow{color:#e7f1ed}.project-copy .eyebrow:before{background:var(--gold)}
.project-feature h2{margin:16px 0 19px;color:#fff;font-size:clamp(38px,4vw,55px);line-height:1.06}
.project-copy p{max-width:470px;margin:0;color:#d5e4df;font-size:16px;line-height:1.78}
.btn.light{align-self:flex-start;margin-top:26px;background:var(--gold);color:#173a33;box-shadow:none}
.btn.light:hover{background:#e3b45d}

/* Infos & vidéo */
.information{background:#fff}
.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:38px}
.info-layout{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:58px;align-items:start}
.terrain-video{position:sticky;top:116px;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--ivory);box-shadow:var(--shadow-sm)}
.terrain-video video{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:17px;background:#0d322c}
.terrain-video p{margin:10px 5px 1px;color:var(--muted);font-size:12px}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.info-block{padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(20,63,54,.045)}
.info-block:nth-child(2),.info-block:nth-child(3){background:var(--sage-soft)}
.info-block h3{margin:0 0 9px;color:var(--forest-dark);font-size:20px;line-height:1.25}
.info-block p{margin:0;color:var(--muted);font-size:14px;line-height:1.72}
.info-block h3+ p + h3{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}

/* Pied de page */
.footer{position:relative;padding:55px 0;background:#062f29;color:#fff;overflow:hidden}
.footer:after{content:"AFESDI";position:absolute;right:3vw;bottom:-44px;color:rgba(255,255,255,.028);font-size:clamp(90px,15vw,210px);font-weight:900;letter-spacing:-.08em;line-height:1}
.footer .wrap{position:relative;z-index:1}
.footer strong{display:block;max-width:760px;font-family:var(--font-display);font-size:clamp(21px,2vw,27px);line-height:1.35}
.footer p{margin:9px 0 0;color:#bbd2cb;font-size:14px}
.editbar{position:fixed;right:20px;bottom:20px;z-index:100;padding:11px 16px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:var(--forest);color:#fff;font-size:13px;font-weight:750;box-shadow:0 12px 34px rgba(7,46,40,.25)}

/* Responsive */
@media(max-width:1120px){
  .head{flex-wrap:wrap;padding-block:9px;gap:9px 18px}
  .nav-toggle{display:block;margin-left:auto}
  .head-actions{margin-left:0}
  .nav{display:none;order:4;width:100%;margin:0;padding:7px 0 11px;flex-direction:column;align-items:stretch;gap:0;border-top:1px solid var(--line)}
  .nav.is-open{display:flex}
  .nav a{padding:10px 4px;font-size:14px}
  .nav a:after{display:none}
  .priority-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .priority-card:first-child{grid-column:1 / -1;grid-row:auto;min-height:350px}
  .priority-card:nth-child(n+2){grid-column:auto;grid-row:auto}
  .info-layout{gap:34px}
}
@media(max-width:860px){
  .hero{min-height:590px;background-position:58% center}
  .hero:before{background:linear-gradient(90deg,rgba(251,248,241,.98),rgba(251,248,241,.88) 60%,rgba(251,248,241,.38))}
  .editorial,.history .editorial,.project-inner,.info-layout{grid-template-columns:1fr}
  .editorial{gap:44px}
  .history .editorial-text{order:2}.history .editorial-image{order:1}
  .editorial-image img,.history .editorial-image img{height:380px}
  .project-photo{height:340px;min-height:0}
  .project-copy{padding:48px 0 58px}
  .terrain-video{position:static}
}
@media(max-width:680px){
  .wrap{width:min(100% - 30px,1180px)}
  .site-header{position:relative}
  .logo,.logo img{width:108px}.logo img{height:60px}
  .head{min-height:72px}.head-actions{order:3;width:100%;justify-content:flex-end}.head-actions .donate{padding:9px 13px}.login{font-size:12px}
  .hero{min-height:520px;background-position:62% center}
  .hero:before{background:linear-gradient(90deg,rgba(251,248,241,.97),rgba(251,248,241,.89) 72%,rgba(251,248,241,.55))}
  .hero-inner{padding-block:68px 80px}
  .hero h1{font-size:clamp(39px,11vw,53px);line-height:1.02}.hero p{font-size:16px;line-height:1.68}
  .hero-actions{gap:17px}.btn{padding:13px 18px}.hero-caption{right:14px;bottom:14px;font-size:8px}
  .focus-section,.section{padding:68px 0}
  .section-topline{display:block}.section-topline>span:last-child{display:block;margin-top:8px;text-align:left}
  .focus-section h2,.editorial-text h2,.section-heading h2{font-size:clamp(34px,9.5vw,43px)}
  .priority-grid{grid-template-columns:1fr}
  .priority-card:first-child{grid-column:auto;min-height:310px;padding:27px}.priority-card:nth-child(n+2){grid-column:auto;min-height:205px}
  .priority-card{padding:23px}.priority-card h3{font-size:20px}.priority-card p{font-size:14px}.card-num{margin-bottom:18px}
  .editorial-image:before{left:-8px;top:-8px}.editorial-image img,.history .editorial-image img{height:300px;border-radius:22px 7px 22px 7px}
  .editorial-text p{font-size:15px;line-height:1.78}.quote{font-size:24px}
  .project-photo{height:270px}.project-copy{padding:38px 0 48px}
  .section-heading{display:block;margin-bottom:26px}
  .info-grid{grid-template-columns:1fr}.info-block{padding:21px}
  .footer{padding:44px 0}.editbar{right:12px;bottom:12px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.priority-card,.card-detail,.project-photo img,.btn,.donate{transition:none!important}.priority-card:hover,.priority-card:focus,.priority-card.is-active,.btn:hover,.donate:hover{transform:none!important}}
/* Reprise fidèle de la maquette finale avec les images AFESDI */
:root{--forest:#547913;--forest-dark:#29490c;--forest-ink:#263f15;--gold:#bb8f24;--font-sans:'Segoe UI',Arial,sans-serif;--font-display:Georgia,'Times New Roman',serif}
body{background:#fff;color:#242b22;font-size:16px;line-height:1.65}.wrap{width:min(1180px,calc(100% - 48px))}.site-header{background:rgba(255,255,255,.96);box-shadow:0 2px 14px #152b1518}.nav a{color:#202720;font-size:14px;font-weight:650}.donate{background:#4f7415}.hero{min-height:540px;background-position:center 44%;overflow:hidden}.hero:before{background:linear-gradient(90deg,rgba(9,26,10,.82) 0%,rgba(15,34,10,.58) 30%,rgba(15,34,10,.13) 62%,transparent 88%)}.hero:after{display:none}.hero-inner{padding-block:58px 88px}.hero-copy{max-width:465px}.hero .eyebrow{color:#e8f3df}.hero .eyebrow:before{background:#d4af45}.hero h1{font-size:clamp(45px,5.2vw,67px);max-width:420px;color:#fff;margin:17px 0 20px;line-height:1.02}.hero p{max-width:470px;color:#fff;font-size:16px;line-height:1.6;text-shadow:0 1px 3px #0007}.hero-actions{gap:14px;margin-top:26px}.hero .btn,.hero .text-link{background:#fff;color:#1b2519;border:0;border-radius:3px;padding:11px 17px;box-shadow:0 3px 10px #0003;font-size:13px;font-weight:750}.hero .text-link:hover,.hero .btn:hover{background:#e9f2db}.hero-caption{display:none}.hero-wave{position:absolute;left:0;bottom:-1px;width:100%;height:72px;z-index:2;pointer-events:none}
.focus-section{padding:54px 0 62px;background:#fff}.focus-section:before{display:none}.section-topline{display:none}.focus-section h2{max-width:none;margin:0 0 28px;font:750 clamp(28px,3vw,37px)/1.2 var(--font-sans);letter-spacing:-.025em;color:#555b52}.priority-grid{grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(142px,auto));gap:14px}.priority-card{min-height:142px;padding:17px 20px 15px;border-radius:13px;border:1px solid #e0e5de;background:#fff;box-shadow:0 5px 16px #132e1118}.priority-card:after{background:transparent;box-shadow:none}.priority-card:first-child{min-height:298px;padding:23px;justify-content:end;background:linear-gradient(0deg,rgba(12,30,9,.83),rgba(12,30,9,.08) 75%),url('assets/images/agriculture.jpeg') center/cover;border:2px solid white;box-shadow:0 7px 18px #132e1130}.priority-card:first-child h3{font:750 clamp(31px,3.2vw,43px)/1.07 var(--font-sans);color:#fff;max-width:350px}.priority-card:first-child p{font-size:16px}.priority-card h3{font:750 clamp(18px,1.55vw,22px)/1.15 var(--font-sans);margin:4px 0 7px;color:#202b1e}.priority-card p{font-size:12px;line-height:1.45;color:#4f594e}.card-num,.priority-card:first-child .card-num{width:47px;height:38px;border-radius:0 0 11px 11px;background:#517510;color:#fff;font:800 18px var(--font-sans);margin:-17px 0 12px -4px;box-shadow:none}.priority-card:first-child .card-num{align-self:flex-start;margin:-23px 0 auto -9px}.card-more{display:none}.priority-card:first-child .card-more{display:inline-block;align-self:flex-start;padding:7px 13px;margin-top:14px;background:#537916;color:#fff;border-radius:3px;font-size:11px}.priority-card:nth-child(4):after,.priority-card:nth-child(5):after{content:"";position:absolute;z-index:-1;right:0;bottom:0;width:48%;height:75%;border-radius:0;background:linear-gradient(90deg,#ffffffec,#ffffff15),url('assets/images/formation.jpeg') center/cover;opacity:.58}.priority-card:nth-child(5):after{background:linear-gradient(90deg,#ffffffec,#ffffff15),url('assets/images/roue.jpeg') center/cover}.priority-card:hover,.priority-card:focus,.priority-card.is-active{background:#4d7414;color:#fff;transform:translateY(-3px)}.priority-card:hover:after,.priority-card:focus:after,.priority-card.is-active:after{opacity:.13}.priority-card:first-child:hover,.priority-card:first-child:focus,.priority-card:first-child.is-active{background:linear-gradient(0deg,rgba(27,67,8,.95),rgba(27,67,8,.64)),url('assets/images/agriculture.jpeg') center/cover}.priority-card:hover .card-num,.priority-card:focus .card-num,.priority-card.is-active .card-num{background:#d3ad43;color:#172117}.priority-card:hover .card-more,.priority-card:focus .card-more,.priority-card.is-active .card-more{display:inline-block}.priority-card .card-detail ul{font-size:12px}.priority-card:hover .card-detail,.priority-card:focus .card-detail,.priority-card.is-active .card-detail{max-height:220px}
.mission-showcase{padding:30px 0 70px;text-align:center}.center-title{display:flex;align-items:center;justify-content:center;gap:22px;margin-bottom:24px}.center-title h2{font:750 clamp(23px,2.6vw,33px)/1.2 var(--font-sans);letter-spacing:-.025em;color:#171d16;margin:0}.title-rule{height:1px;flex:1;background:#dde2db}.mission-video{position:relative;overflow:hidden;border-radius:17px;box-shadow:0 10px 25px #1230102b;background:#102313}.mission-video video{display:block;width:100%;aspect-ratio:2.75/1;object-fit:cover}.mission-video:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#10231155,transparent);pointer-events:none}.mission-video.is-playing:after{display:none}.video-start{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:12px;border:0;background:transparent;color:#fff;font:800 clamp(18px,2vw,26px) var(--font-sans);text-shadow:0 2px 8px #0009;cursor:pointer}.play-icon{display:grid;place-items:center;width:96px;height:96px;border-radius:50%;border:2px solid #fff;background:#111a13a8;font-size:37px;padding-left:7px;transition:transform .2s}.video-start:hover .play-icon{transform:scale(1.08)}.mission-video.is-playing .video-start{display:none}.mission-statement{font-size:clamp(16px,1.6vw,21px);margin:22px auto 7px;max-width:850px}.mission-quote{font:italic 700 24px var(--font-display);color:#1b2917;margin:0}
.help-section{padding:60px 0 78px;background:#f8f8f5}.help-heading{display:flex;align-items:center;gap:20px;margin-bottom:24px}.help-heading h2{font:750 clamp(28px,3vw,37px) var(--font-sans);color:#5c6259;margin:0}.help-heading span{flex:1;height:1px;background:#dce1d9}.help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.help-card{display:block;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 5px 18px #142b1420;transition:transform .2s,box-shadow .2s}.help-card:hover{transform:translateY(-5px);box-shadow:0 15px 28px #142b1433}.help-card img{display:block;width:100%;height:145px;object-fit:cover}.help-card>div{padding:18px 21px 22px}.help-card h3{font:800 21px var(--font-sans);margin:0 0 7px;color:#172416}.help-card p{font-size:14px;color:#4c5d48;margin:0 0 12px}.help-card span{font-size:13px;font-weight:800;color:#4f7415}
.history{background:#fff}.information{background:#f8faf7}.information .info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.donation-section{background:#eff4e8}.donation-grid{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}.donation-section h2{font-size:clamp(34px,3.8vw,50px);margin:16px 0}.bank-details{background:#fff;padding:26px 30px;border-radius:16px;box-shadow:0 10px 24px #18301c15}.bank-details h3{margin:0 0 14px;color:#29490c}.bank-details p{margin:0 0 15px}.bank-details small{display:block;color:#64735e}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:45px}.footer a{text-decoration:underline;text-underline-offset:3px}.footer h3{margin:0 0 10px;color:#fff;font-size:18px}
@media(max-width:1120px){.priority-grid{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(160px,auto))}.priority-card:first-child{grid-column:1;grid-row:1/span 2}.priority-card:nth-child(2){grid-column:2;grid-row:1}.priority-card:nth-child(3){grid-column:3;grid-row:1}.priority-card:nth-child(4){grid-column:2;grid-row:2}.priority-card:nth-child(5){grid-column:3;grid-row:2}}
@media(max-width:860px){.priority-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.priority-card:first-child{grid-column:1/-1;grid-row:auto;min-height:310px}.priority-card:nth-child(n+2){grid-column:auto;grid-row:auto;min-height:170px}.mission-video video{aspect-ratio:16/9}.donation-grid{grid-template-columns:1fr}}
@media(max-width:680px){.hero{min-height:510px;background-position:62% center}.hero:before{background:linear-gradient(90deg,#0b2215d9,#0b221587 70%,#0b22154d)}.hero-inner{padding-block:54px 80px}.hero h1{font-size:clamp(42px,11vw,58px)}.hero-wave{height:48px}.focus-section{padding:36px 0 50px}.focus-section h2{font-size:29px}.priority-grid{grid-template-columns:1fr}.priority-card:first-child{grid-column:1;min-height:300px}.priority-card:nth-child(n+2){grid-column:1;min-height:155px}.mission-showcase{padding:22px 0 55px}.center-title{gap:10px}.center-title h2{font-size:23px}.mission-video video{aspect-ratio:1.45/1}.play-icon{width:68px;height:68px;font-size:26px}.mission-statement{font-size:16px}.mission-quote{font-size:20px}.help-section{padding:48px 0}.help-grid{grid-template-columns:1fr}.help-card img{height:175px}.information .info-grid,.footer-grid{grid-template-columns:1fr}.donation-section{padding:55px 0}}
.priority-card:first-child{background:linear-gradient(0deg,rgba(12,30,9,.83),rgba(12,30,9,.08) 75%),var(--priority-photo) center/cover}.priority-card:first-child:hover,.priority-card:first-child:focus,.priority-card:first-child.is-active{background:linear-gradient(0deg,rgba(27,67,8,.95),rgba(27,67,8,.64)),var(--priority-photo) center/cover}.priority-card:nth-child(4):after,.priority-card:nth-child(5):after{background:linear-gradient(90deg,#ffffffec,#ffffff15),var(--priority-small-photo) center/cover}
.project-details{background:#fff}.project-details h2{font-size:clamp(32px,3.7vw,48px);margin:15px 0 30px}.project-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.project-detail-grid article{border:1px solid #e3e8df;border-radius:17px;overflow:hidden;background:#fff;box-shadow:0 6px 18px #122d1512}.project-detail-grid img{width:100%;height:235px;object-fit:cover;display:block}.project-detail-grid article>div{padding:23px 26px 27px}.project-detail-grid h3{font-size:22px;margin:0 0 12px;color:#29490c}.project-detail-grid p{color:#4e6047;margin:0;line-height:1.7}@media(max-width:680px){.project-detail-grid{grid-template-columns:1fr}.project-detail-grid img{height:190px}}

.mission-video.youtube-video{aspect-ratio:16/9;max-width:1100px;margin-inline:auto}.mission-video.youtube-video iframe{display:block;width:100%;height:100%;border:0}.mission-video.youtube-video:after{display:none}@media(max-width:680px){.mission-video.youtube-video{aspect-ratio:16/9}}

.afesdi-header-edit{background:none;border:0;cursor:pointer;font-family:inherit}.editbar{display:none}
/* Actualités */
.news-section{background:#f7f9f3;padding:75px 0 82px}.news-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:25px}.news-head h2{font:750 clamp(33px,3.7vw,48px)/1.12 var(--font-sans);color:#29490c;margin:10px 0}.news-head p{max-width:680px;color:#596955;margin:0;font-size:14px}.news-controls{display:flex;gap:8px}.news-controls button{width:43px;height:43px;border:1px solid #c7d5bd;background:white;color:#31510c;border-radius:50%;font-size:22px;cursor:pointer}.news-controls button:hover{background:#547913;color:#fff}.news-viewport{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-behavior:smooth}.news-viewport::-webkit-scrollbar{display:none}.news-track{display:flex;gap:18px;padding:6px 3px 19px}.news-card{position:relative;flex:0 0 calc((100% - 36px)/3);min-width:0;height:355px;overflow:hidden;border-radius:15px;scroll-snap-align:start;background:#1c3018;box-shadow:0 8px 22px #14280e22}.news-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s}.news-card:hover img,.news-card:focus-within img{transform:scale(1.06)}.news-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0a220fee 0%,#0b2514ac 34%,transparent 80%);pointer-events:none}.news-card-copy{position:absolute;z-index:1;left:22px;right:22px;bottom:20px;color:#fff}.news-label{display:inline-block;margin-bottom:9px;color:#e9d581;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.news-card h3{font:750 clamp(21px,2vw,27px)/1.14 var(--font-sans);margin:0}.news-card p{max-height:0;opacity:0;overflow:hidden;margin:0;font-size:13px;line-height:1.45;transition:max-height .3s,opacity .3s,margin .3s}.news-card:hover p,.news-card:focus-within p{max-height:80px;opacity:1;margin:9px 0}.news-read{margin-top:15px;padding:8px 12px;border:1px solid #fff9;border-radius:3px;background:#fff;color:#29490c;font-weight:800;font-size:12px;cursor:pointer}.news-read:hover{background:#e8f2d9}.news-instruction{margin:2px 0 0;color:#687663;font-size:12px}.news-modal[hidden]{display:none}.news-modal{position:fixed;z-index:10000;inset:0;display:grid;place-items:center;padding:20px;background:#102011c9}.news-dialog{position:relative;width:min(680px,100%);max-height:min(90vh,850px);overflow-y:auto;border-radius:16px;background:white;box-shadow:0 22px 80px #0006}.news-modal-image{display:block;width:100%;height:255px;object-fit:cover}.news-modal-copy{padding:26px 32px 32px}.news-modal-copy h2{font:750 clamp(26px,3vw,36px)/1.16 var(--font-sans);color:#29490c;margin:10px 0 15px}.news-modal-copy p{white-space:pre-line;line-height:1.7;color:#34442f}.news-modal-copy small{color:#687663}.news-close{position:absolute;right:13px;top:13px;width:38px;height:38px;border:0;border-radius:50%;background:#fff;color:#24351d;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 2px 8px #0003}.news-add{margin:14px 0;padding:10px 17px;border:0;border-radius:5px;background:#547913;color:#fff;font-weight:750;cursor:pointer}.news-add-form{max-width:650px;margin:18px 0;padding:22px;border-radius:14px;background:#fff;box-shadow:0 5px 20px #132b101c}.news-add-form[hidden]{display:none}.news-add-form label{display:block;margin:10px 0;font-weight:700;color:#29490c}.news-add-form input,.news-add-form textarea{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #bac9b2;border-radius:5px;font:inherit}.news-add-form button{padding:10px 17px;border:0;border-radius:5px;background:#547913;color:#fff;cursor:pointer}.news-add-form .news-status{margin-left:12px}@media(max-width:880px){.news-card{flex-basis:calc((100% - 18px)/2)}}@media(max-width:620px){.news-section{padding:50px 0}.news-head{align-items:start}.news-head h2{font-size:32px}.news-card{flex-basis:84%;height:340px}.news-card p{max-height:80px;opacity:1;margin:9px 0}.news-modal-image{height:190px}.news-modal-copy{padding:22px}.news-controls button{width:37px;height:37px}}

/* En-tête GSM : connexion et don masqués, accès édition conservé après connexion */
@media(max-width:680px){.head-actions .donate,.head-actions [data-afesdi-login]{display:none}.head-actions.is-guest{display:none}.head-actions.is-logged-in{width:auto;order:2;margin-left:auto}.head-actions.is-logged-in .login{font-size:12px}.head{flex-wrap:wrap}}

/* Indication tactile pour les priorités sur GSM */
.mobile-priority-instruction,.mobile-card-cue{display:none}
@media(max-width:680px){
 .mobile-priority-instruction{display:flex;align-items:center;gap:8px;margin:-12px 0 18px;color:#4f7415;font-size:14px;font-weight:750}
 .mobile-priority-instruction span{display:inline-block;animation:afesdi-point 2.2s ease-in-out infinite}
 .priority-card{cursor:pointer;transition:transform .25s,box-shadow .25s,border-color .25s}
 .priority-card:not(.is-active){box-shadow:0 7px 22px #1d48152d;border-color:#a9c78e}
 .mobile-card-cue{display:inline-flex;align-items:center;align-self:flex-start;gap:6px;margin-top:10px;padding:7px 11px;border-radius:999px;background:#e8f3d8;color:#355b0e;font-size:12px;font-weight:800}
 .mobile-card-cue .cue-open{display:none}
 .priority-card.is-active .mobile-card-cue{background:#fff;color:#355b0e}
 .priority-card.is-active .mobile-card-cue .cue-closed{display:none}
 .priority-card.is-active .mobile-card-cue .cue-open{display:inline}
 .priority-card:first-child .mobile-card-cue{background:#fff;color:#355b0e}
 .priority-card .card-more{display:none!important}
}
@keyframes afesdi-point{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}
@media(prefers-reduced-motion:reduce){.mobile-priority-instruction span{animation:none}}

@media(max-width:680px) and (hover:none){.priority-card:not(.is-active) .card-detail{max-height:0;opacity:0;margin-top:0}.priority-card:not(.is-active):not(:first-child){background:#fff;color:#242b22}.priority-card:not(.is-active):not(:first-child) h3{color:#202b1e}.priority-card:not(.is-active):not(:first-child) p{color:#4f594e}.priority-card:first-child:not(.is-active){background:linear-gradient(0deg,rgba(12,30,9,.83),rgba(12,30,9,.08) 75%),var(--priority-photo) center/cover}}
