/* Nsanza Invest Group — styles de la page d'accueil (fusion des anciennes feuilles) */

/* ---- accueil.css ---- */
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;font-family:Poppins,Arial,sans-serif;color:#15333b;background:#fff;overflow-wrap:break-word}img,video{max-width:100%}img{display:block}a{color:inherit}button,input,textarea{font:inherit}button{cursor:pointer}.skip-link{position:absolute;top:-60px;left:10px;z-index:999;background:#fff;padding:12px}.skip-link:focus{top:10px}.section-wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}.site-nav{height:80px;padding:0 max(24px,calc((100% - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;position:relative;z-index:20;box-shadow:0 2px 12px #0001}.brand img{width:auto;height:62px;max-width:180px;object-fit:contain}.menu{display:flex;align-items:center;gap:clamp(12px,1.6vw,24px)}.menu a{text-decoration:none;font-size:14px;font-weight:600}.menu a:hover{color:#f58a08}#lang-toggle{border:1px solid #ddd;background:white;border-radius:8px;padding:8px 12px;font-weight:700}.menu-button{display:none}.masthead{height:clamp(470px,75svh,820px);min-height:470px;position:relative;display:grid;place-items:center;isolation:isolate;background:#172a30;color:#fff;overflow:hidden}.hero-video,.masthead-shade{position:absolute;inset:0;width:100%;height:100%}.hero-video{object-fit:cover;z-index:-2}.masthead-shade{background:linear-gradient(90deg,#031e28c9,#09202b76);z-index:-1}.masthead-content{text-align:center;padding:30px 20px;max-width:950px}.masthead h1{font-size:clamp(38px,6vw,76px);line-height:1.13;margin:0 0 18px}.masthead p{font-size:clamp(16px,2vw,23px);letter-spacing:.05em;margin:0 0 30px}.masthead p span{color:#ff9416}.primary-button{display:inline-block;background:#f58a08;border-radius:8px;color:white;text-decoration:none;font-weight:600;padding:14px 28px}.welcome{padding-block:84px}.welcome-inner{background:#fff5e9;border-left:5px solid #f58a08;border-radius:16px;padding:clamp(26px,5vw,64px);max-width:980px;margin:auto}.welcome h2{font-size:clamp(26px,3.3vw,44px);line-height:1.25;color:#b96300;margin:0 0 22px}.welcome p{line-height:1.9;font-size:clamp(15px,1.25vw,18px);margin:0}.story-stack{display:grid;gap:76px;padding-block:30px 80px}.story{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,5vw,72px)}.story.reverse .story-media{order:2}.story-media img{width:100%;height:clamp(260px,33vw,440px);object-fit:cover;border-radius:16px}.story-media:empty{display:none}.story:has(.story-media:empty){display:block}.story:has(.story-media:empty) .story-copy{max-width:900px;margin:auto}.story-copy h2,.leadership-copy h2{font-size:clamp(24px,2.4vw,34px);line-height:1.3;color:#0e6152;margin:0 0 18px}.story-copy p,.leadership-copy p{font-size:16px;line-height:1.9;margin:0 0 18px;white-space:pre-line}.projects-section{padding:84px 0;background:#f3f7f6}.projects-section h2,.values-section h2{text-align:center;font-size:clamp(27px,3vw,40px);margin:0 0 38px}.project-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.project-card{min-width:0;overflow:hidden;border-radius:14px;background:white;box-shadow:0 8px 26px #1232;display:flex;flex-direction:column}.project-card img{width:100%;height:180px;object-fit:cover}.project-card h3{font-size:18px;padding:20px 18px 8px;margin:0}.project-card a{color:#087a63;text-decoration:none;font-weight:600;padding:0 18px 24px;margin-top:auto}.leadership{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:clamp(28px,5vw,70px);align-items:center;padding-block:80px}.leadership-image img{width:100%;height:clamp(330px,45vw,620px);object-fit:cover;border-radius:16px}.values-section{background:#eaf4ee;padding:72px 0}.values-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:14px}.values-grid span{background:#fff;border-radius:100px;padding:12px 22px;font-weight:600;color:#0a6351}footer{background:#092b35;color:#fff;padding-top:66px}footer a{display:block;color:#e3eded;text-decoration:none;margin:12px 0;overflow-wrap:anywhere}.footer-grid{display:grid;grid-template-columns:1.2fr .8fr 1.2fr 1.1fr;gap:30px}.footer-logo{height:90px;width:auto;object-fit:contain;margin-bottom:18px}.footer-grid h2{font-size:20px}.footer-grid h3{font-size:17px;margin:0 0 20px}.footer-grid p{line-height:1.8}.footer-grid form{display:grid;gap:10px}.footer-grid input,.footer-grid textarea{width:100%;min-width:0;border:1px solid #ffffff66;border-radius:7px;background:#fff;color:#15333b;padding:12px}.footer-grid form button{border:0;background:#f58a08;color:#fff;border-radius:7px;padding:12px}.copyright{text-align:center;padding:25px 16px;margin:55px 0 0;border-top:1px solid #ffffff22;font-size:13px;color:#ccd9dc}@media(max-width:1050px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.menu{gap:12px}.menu a{font-size:12px}}@media(max-width:800px){.site-nav{height:72px;padding:0 20px}.brand img{height:54px}.menu-button{display:flex;flex-direction:column;gap:5px;background:transparent;border:0;padding:12px}.menu-button span{width:25px;height:3px;background:#15333b;border-radius:2px}.menu{display:none;position:absolute;left:0;right:0;top:72px;background:white;box-shadow:0 14px 18px #0002;padding:20px;flex-direction:column;align-items:stretch;gap:0}.menu.is-open{display:flex}.menu a{font-size:15px;padding:12px 4px}.menu #lang-toggle{align-self:flex-start;margin-top:10px}.story,.leadership{grid-template-columns:minmax(0,1fr);gap:24px}.story.reverse .story-media{order:0}.story-stack{gap:48px}.story-media img{height:300px}.leadership-image img{height:390px}.welcome{padding-block:50px}.projects-section{padding:58px 0}}@media(max-width:520px){.section-wrap{width:min(100% - 32px,1180px)}.masthead{height:72svh;min-height:450px}.masthead h1{font-size:clamp(32px,9vw,46px)}.masthead-content{padding:22px}.welcome-inner{padding:24px 20px}.story-media img{height:240px}.project-grid,.footer-grid{grid-template-columns:minmax(0,1fr)}.project-card img{height:220px}.story-stack{padding-bottom:44px}.leadership{padding-block:45px}.leadership-image img{height:360px}.values-section{padding:52px 0}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* V2 : dispositions et animations restaurées, sans réintroduire les largeurs fixes d'origine */
.site-nav{position:sticky;top:0;z-index:100;transition:box-shadow .25s ease,background .25s ease}
.site-nav.is-scrolled{box-shadow:0 5px 25px #092b3529}
.menu a{position:relative;transition:color .2s ease}
.menu a:focus-visible,.primary-button:focus-visible,.project-card a:focus-visible,.menu-button:focus-visible{outline:3px solid #f58a08;outline-offset:4px}
.masthead-content{animation:hero-entrance 1.05s ease both}
@keyframes hero-entrance{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.primary-button,.project-card,.project-card img{transition:transform .3s ease,box-shadow .3s ease}
.primary-button:hover{transform:translateY(-3px);box-shadow:0 9px 20px #0003}
.project-card:hover{transform:translateY(-5px);box-shadow:0 15px 32px #1233}
.project-card:hover img{transform:scale(1.035)}
.project-card img{transform-origin:center}
.story.text-only{display:block}
.story.text-only .story-copy{max-width:900px;margin:auto}
.reveal{opacity:1;transform:none}
.motion-enabled .reveal{opacity:0;transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1);transition-delay:var(--delay,0ms);will-change:opacity,transform}
.motion-enabled .reveal.from-left{transform:translateX(-32px)}
.motion-enabled .reveal.from-right{transform:translateX(32px)}
.motion-enabled .reveal.from-bottom{transform:translateY(24px)}
.motion-enabled .reveal.is-visible{opacity:1;transform:none}
@media(max-width:800px){.site-nav{position:sticky}.story.reverse .story-media{order:0}.story.reverse .story-copy{order:1}.motion-enabled .reveal.from-left,.motion-enabled .reveal.from-right{transform:translateY(18px)}.motion-enabled .reveal.is-visible{transform:none}}
@media(prefers-reduced-motion:reduce){.masthead-content{animation:none}.motion-enabled .reveal{opacity:1;transform:none;transition:none}.project-card,.project-card img,.primary-button{transition:none}}

/* V3: independent, visible text entrance effects */
.text-reveal{opacity:1;transform:none}
@media (prefers-reduced-motion:no-preference){
 .text-motion-ready .text-reveal{opacity:0;transform:translate3d(0,30px,0);filter:blur(3px);transition:opacity .85s ease,transform .85s cubic-bezier(.16,1,.3,1),filter .85s ease;transition-delay:var(--text-delay,0ms)}
 .text-motion-ready .text-reveal.text-visible{opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
}
@media(prefers-reduced-motion:reduce){.text-reveal{opacity:1!important;transform:none!important;filter:none!important}}


/* ---- accueil-premium.css ---- */
/* NSANZA INVEST GROUP - accueil premium V4 : styles limites a index.html */
:root{--ink:#12313a;--deep:#082b34;--green:#126b5b;--orange:#df8015;--paper:#fbfcfb;--line:#e2ebe7;--shadow:0 20px 55px rgba(8,43,52,.08)}
body{background:var(--paper);color:var(--ink);font-size:16px;-webkit-font-smoothing:antialiased}
.section-wrap{width:min(1160px,calc(100% - 64px))}
.site-nav{height:82px;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);border-bottom:1px solid var(--line);box-shadow:none;padding-inline:max(32px,calc((100% - 1160px)/2))}
.site-nav.is-scrolled{box-shadow:0 10px 30px rgba(8,43,52,.09)}
.brand img{height:60px}.menu a{font-size:13px;font-weight:600;letter-spacing:.01em}.menu a:hover{color:var(--green)}
#lang-toggle{border:1px solid #cfded8;border-radius:9px;color:var(--deep);padding:8px 12px}
.masthead{height:clamp(570px,82svh,850px);min-height:570px;background:#092d36}
.masthead-shade{background:linear-gradient(90deg,rgba(3,24,32,.83) 0%,rgba(3,24,32,.54) 62%,rgba(3,24,32,.38) 100%)}
.masthead-content{max-width:1040px;text-align:left;width:min(100% - 64px,1160px);padding:0}
.masthead h1{font-size:clamp(45px,6.5vw,88px);font-weight:600;letter-spacing:-.045em;max-width:880px;line-height:1.08;margin-bottom:22px;text-wrap:balance}
.masthead p{font-size:clamp(17px,1.7vw,22px);font-weight:400;letter-spacing:.13em;margin-bottom:36px}
.primary-button{background:var(--orange);border-radius:10px;padding:16px 29px;box-shadow:0 10px 25px rgba(0,0,0,.13)}
.welcome{padding-block:112px 86px}
.welcome-inner{max-width:1010px;padding:clamp(34px,5vw,70px);background:#fff;border:1px solid #e9e5db;border-left:5px solid var(--orange);box-shadow:var(--shadow);border-radius:18px}
.welcome h2{font-size:clamp(28px,3vw,43px);letter-spacing:-.035em;color:var(--deep);margin-bottom:22px;text-wrap:balance}
.welcome p{max-width:830px;font-size:clamp(15px,1.2vw,17px);line-height:1.95;color:#425962}
.story-stack{gap:86px;padding-block:40px 100px}.story{gap:clamp(32px,6vw,92px)}
.story-media img{height:clamp(330px,36vw,490px);border-radius:18px;box-shadow:var(--shadow)}
.story-copy h2,.leadership-copy h2{font-size:clamp(27px,2.7vw,38px);letter-spacing:-.025em;color:var(--deep);margin-bottom:23px;text-wrap:balance}
.story-copy h2:after,.leadership-copy h2:after{content:'';display:block;width:52px;height:3px;background:var(--orange);margin-top:18px;border-radius:4px}
.story-copy p,.leadership-copy p{font-size:15.5px;line-height:1.95;color:#405860;white-space:normal}
.story.text-only{padding:0 0 10px}.story.text-only .story-copy{max-width:900px}.story.text-only p{font-size:16px}
.projects-section{padding:100px 0 110px;background:#eef4f1}
.projects-section h2,.values-section h2{color:var(--deep);letter-spacing:-.035em;font-size:clamp(31px,3.3vw,45px);margin-bottom:48px}
.project-grid{gap:24px}.project-card{border-radius:16px;border:1px solid #e1ebe6;box-shadow:0 12px 28px rgba(8,43,52,.06)}
.project-card img{height:205px}.project-card h3{font-size:18px;padding:24px 22px 12px;color:var(--deep)}.project-card a{padding:0 22px 26px;color:var(--green);font-size:13px;letter-spacing:.03em}
.leadership{padding-block:110px;gap:clamp(34px,6vw,88px)}.leadership-image img{border-radius:18px;box-shadow:var(--shadow)}
.values-section{padding:85px 0;background:#e9f2ed}.values-grid{gap:12px}.values-grid span{border:1px solid #d8e9e0;color:var(--green);box-shadow:0 4px 15px rgba(8,43,52,.03)}
footer{background:var(--deep);padding-top:80px}footer a:hover{color:#ffba6b}.footer-grid{gap:38px}.footer-grid h3{color:#fff}.copyright{margin-top:70px}
/* Text motion is individual and does not rely on parent reveal visibility. */
@media(prefers-reduced-motion:no-preference){
 .text-motion-ready .text-reveal{transform:translate3d(0,20px,0);filter:none;transition-duration:.75s}
 .text-motion-ready .text-reveal.text-visible{transform:none}
}
@media(max-width:1050px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-nav{padding-inline:24px}}
@media(max-width:800px){.section-wrap{width:min(100% - 40px,1160px)}.site-nav{height:72px;padding:0 20px}.menu{top:72px;border-bottom:1px solid var(--line)}.masthead{height:72svh;min-height:510px}.masthead-content{width:calc(100% - 48px)}.masthead h1{font-size:clamp(38px,8vw,60px)}.welcome{padding-block:65px}.story-stack{gap:56px;padding-block:20px 65px}.story-media img{height:360px}.story.reverse .story-media{order:0}.projects-section{padding:75px 0}.leadership{padding-block:75px}.footer-grid{gap:30px}}
@media(max-width:520px){.section-wrap{width:calc(100% - 32px)}.masthead{height:74svh;min-height:460px}.masthead-content{width:calc(100% - 40px)}.masthead h1{font-size:clamp(35px,10vw,49px)}.masthead p{font-size:15px;letter-spacing:.06em}.welcome{padding-block:45px}.welcome-inner{padding:27px 23px}.story-media img{height:260px}.story-copy h2,.leadership-copy h2{font-size:27px}.story-copy p,.leadership-copy p{font-size:15px}.project-grid{grid-template-columns:minmax(0,1fr)}.project-card img{height:230px}.projects-section{padding:60px 0}.leadership{padding-block:55px}.values-section{padding:58px 0}.footer-grid{grid-template-columns:minmax(0,1fr)}.footer-grid h3{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.text-motion-ready .text-reveal{opacity:1!important;transform:none!important}}


/* ---- accueil-navigation.css ---- */
/* V5 : navigation transparente sur la video, blanche au defilement. */
.site-nav{position:absolute;top:0;left:0;right:0;width:100%;z-index:1000;background:transparent!important;border-bottom:1px solid transparent;box-shadow:none!important;backdrop-filter:none;transition:background-color .3s ease,border-color .3s ease,box-shadow .3s ease,backdrop-filter .3s ease}
.site-nav .menu a{color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.site-nav .menu a:hover{color:#ffc278}
.site-nav #lang-toggle{color:#fff;background:transparent;border:1px solid rgba(255,255,255,.85)}
.site-nav .menu-button span{background:#fff}
.site-nav.is-scrolled{position:fixed;background:rgba(255,255,255,.97)!important;border-bottom:1px solid #e2ebe7;box-shadow:0 8px 25px rgba(8,43,52,.11)!important;backdrop-filter:blur(14px)}
.site-nav.is-scrolled .menu a{color:#12313a;text-shadow:none}
.site-nav.is-scrolled .menu a:hover{color:#126b5b}
.site-nav.is-scrolled #lang-toggle{color:#12313a;background:#fff;border-color:#cfded8}
.site-nav.is-scrolled .menu-button span{background:#12313a}
/* Logo original sur la video, sans alteration des fichiers sources. */
.masthead{margin-top:0}
@media(min-width:801px){.site-nav .menu-button{display:none!important}}
@media(max-width:800px){
 .site-nav{height:72px}
 .site-nav .menu{background:#fff;box-shadow:0 15px 25px rgba(0,0,0,.16)}
 .site-nav .menu a{color:#12313a;text-shadow:none}
 .site-nav .menu #lang-toggle{color:#12313a;border-color:#cfded8}
 .site-nav .menu-button{display:flex}
}
@media(prefers-reduced-motion:reduce){.site-nav{transition:none}}


/* ---- accueil-bienvenue-v6.css ---- */
/* V6 — Bienvenue: isolated refinement, no changes to other sections */
.welcome.section-wrap{width:min(1180px,calc(100% - 48px));padding-block:clamp(64px,8vw,112px) clamp(55px,7vw,88px)}
.welcome .welcome-inner{position:relative;isolation:isolate;overflow:hidden;max-width:1060px;margin-inline:auto;padding:clamp(32px,5.5vw,76px);background:linear-gradient(125deg,#ffffff 0%,#fbfcfa 70%,#f2f7f3 100%);border:1px solid #e0e9e5;border-left:0;border-radius:22px;box-shadow:0 22px 65px rgba(9,43,53,.075);}
.welcome .welcome-inner::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#ff8a00 0%,#e7a44a 52%,#19866c 100%)}
.welcome .welcome-inner::after{content:"";position:absolute;z-index:-1;width:310px;height:310px;right:-160px;top:-175px;border:1px solid rgba(20,115,95,.12);border-radius:50%;box-shadow:0 0 0 45px rgba(20,115,95,.025),0 0 0 90px rgba(20,115,95,.018);pointer-events:none}
.welcome .welcome-kicker{display:inline-flex;align-items:center;gap:10px;margin:0 0 20px;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#167760}
.welcome .welcome-kicker::before{content:"";display:inline-block;width:24px;height:2px;background:#ff8a00}
.welcome h2{max-width:780px;margin:0 0 25px;font-size:clamp(29px,3.5vw,46px);line-height:1.2;letter-spacing:-.035em;color:#0a3440;text-wrap:balance}
.welcome p:not(.welcome-kicker){max-width:820px;margin:0;color:#415861;font-size:clamp(15px,1.25vw,17px);line-height:1.95;text-wrap:pretty}
@media(max-width:800px){.welcome.section-wrap{width:calc(100% - 40px);padding-block:65px 55px}.welcome .welcome-inner{padding:clamp(28px,5vw,46px)}}
@media(max-width:520px){.welcome.section-wrap{width:calc(100% - 32px);padding-block:45px 44px}.welcome .welcome-inner{padding:30px 24px;border-radius:16px}.welcome .welcome-kicker{font-size:10px;letter-spacing:.11em;margin-bottom:17px}.welcome h2{font-size:clamp(27px,8vw,36px);margin-bottom:19px}.welcome p:not(.welcome-kicker){font-size:15px;line-height:1.85}}


/* ---- accueil-innovation-v7.css ---- */
/* V7 — Innovation only. No changes to navigation, welcome or other pages. */
.story-stack > .story.innovation-feature {
  display:grid; grid-template-columns:minmax(0, 0.93fr) minmax(0, 1.07fr);
  gap:clamp(36px,6vw,86px); align-items:center;
  padding:clamp(18px,3vw,38px) 0 0;
}
.innovation-feature .innovation-visual {position:relative; min-width:0; isolation:isolate;}
.innovation-feature .innovation-visual::before {
  content:""; position:absolute; z-index:-1; inset:24px -18px -22px 24px;
  border-radius:24px; background:linear-gradient(145deg,#e9f2ed,#fff3e5);
}
.innovation-feature .innovation-visual::after {
  content:""; position:absolute; width:74px;height:5px;left:28px;bottom:-29px;
  background:linear-gradient(90deg,#df8015 55%,#126b5b 55%);border-radius:20px;
}
.innovation-feature .innovation-visual img {
  display:block;width:100%;height:clamp(390px,39vw,520px);
  object-fit:cover;object-position:center;border-radius:20px;
  box-shadow:0 20px 48px rgba(8,43,52,.11);
}
.innovation-feature .innovation-content {min-width:0;max-width:620px;}
.innovation-feature .innovation-eyebrow {
  display:inline-block;margin-bottom:18px;color:#126b5b;font-size:12px;
  font-weight:700;letter-spacing:.18em;text-transform:uppercase;
}
.innovation-feature .innovation-content h2 {
  max-width:570px;font-size:clamp(30px,3.2vw,45px);line-height:1.2;
  font-weight:700;letter-spacing:-.04em;margin:0 0 24px;color:#082b34;
}
.innovation-feature .innovation-content h2::after {margin-top:20px;}
.innovation-feature .innovation-content p {
  max-width:62ch;font-size:clamp(15px,1.12vw,16px);
  line-height:1.95;color:#405860;margin:0;
}
.story-stack:has(> .innovation-feature) > .story.text-only {
  margin-top:-34px;padding-left:clamp(0px,4vw,50px);
  border-left:2px solid #e6eee9;
}
.story-stack:has(> .innovation-feature) > .story.text-only .story-copy {max-width:1000px;}
@media(max-width:800px){
 .story-stack > .story.innovation-feature {grid-template-columns:minmax(0,1fr);gap:38px;padding-top:12px;}
 .innovation-feature .innovation-visual img {height:clamp(310px,65vw,450px);}
 .innovation-feature .innovation-content {max-width:none;}
 .story-stack:has(> .innovation-feature) > .story.text-only {margin-top:-12px;padding-left:20px;}
}
@media(max-width:520px){
 .innovation-feature .innovation-visual::before {inset:14px -7px -12px 14px;}
 .innovation-feature .innovation-visual img {height:300px;border-radius:15px;}
 .innovation-feature .innovation-content h2 {font-size:clamp(28px,8vw,34px);}
 .innovation-feature .innovation-content p {font-size:15px;line-height:1.85;}
 .story-stack:has(> .innovation-feature) > .story.text-only {padding-left:16px;}
}
@media(prefers-reduced-motion:no-preference){
 .innovation-feature .innovation-visual img {transition:transform .7s ease;}
 .innovation-feature .innovation-visual:hover img {transform:scale(1.015);}
}


/* ---- accueil-projets-v8.css ---- */
/* Nsanza Invest Group — V8 : uniquement la section Nos projets.
   À charger APRÈS accueil-innovation-v7.css dans index.html. */
.projects-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(155deg,#f4f8f5 0%,#edf4f0 100%);
  padding-block: clamp(72px,8vw,118px);
}
.projects-section::before {
  content:"";position:absolute;z-index:-1;pointer-events:none;
  width:440px;height:440px;right:-230px;top:-250px;border-radius:50%;
  background:radial-gradient(circle,rgba(31,127,102,.10),transparent 70%);
}
.projects-section .section-wrap {max-width:1160px}
.projects-section h2 {
  font-size:clamp(32px,3.5vw,48px);
  line-height:1.15;letter-spacing:-.035em;
  color:#10353c;text-align:center;
  margin:0 auto clamp(34px,4vw,55px);
}
.projects-section h2::after {
  content:"";display:block;width:54px;height:3px;
  border-radius:4px;background:#e18a18;margin:18px auto 0;
}
.projects-section .project-grid {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(16px,2vw,25px);align-items:stretch;
}
.projects-section .project-card {
  min-width:0;overflow:hidden;position:relative;
  display:flex;flex-direction:column;
  background:#fff;border:1px solid #dfe9e3;
  border-radius:19px;box-shadow:0 10px 30px rgba(9,48,50,.06);
  transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease;
}
.projects-section .project-card img {
  display:block;width:100%;height:clamp(175px,17vw,230px);
  object-fit:cover;transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.projects-section .project-card h3 {
  color:#123b42;font-size:clamp(17px,1.5vw,20px);
  font-weight:600;line-height:1.35;margin:0;
  padding:24px 22px 12px;
}
.projects-section .project-card a {
  display:inline-flex;align-items:center;align-self:flex-start;
  margin-top:auto;padding:4px 22px 25px;
  font-weight:600;font-size:13px;color:#126b5b;
  text-decoration:none;line-height:1.5;
}
.projects-section .project-card a:focus-visible {
  outline:3px solid #e18a18;outline-offset:-3px;border-radius:6px;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .projects-section .project-card:hover {
    transform:translateY(-7px);border-color:#bed9cb;
    box-shadow:0 24px 46px rgba(9,48,50,.13);
  }
  .projects-section .project-card:hover img {transform:scale(1.045)}
  .projects-section .project-card a:hover {color:#a45d08}
}
@media (max-width:1050px) {
  .projects-section .project-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .projects-section .project-card img {height:230px}
}
@media (max-width:600px) {
  .projects-section {padding-block:64px}
  .projects-section .project-grid {grid-template-columns:minmax(0,1fr);gap:20px}
  .projects-section .project-card img {height:clamp(205px,57vw,290px)}
  .projects-section .project-card h3 {padding-top:20px}
}
@media (prefers-reduced-motion:reduce) {
  .projects-section .project-card,
  .projects-section .project-card img {transition:none!important;transform:none!important}
}


/* ---- accueil-jeunesse-v9.css ---- */
/* V9 — Nsanza Invest Group : section Jeunesse uniquement.
   Conserve les animations reveal/text-reveal et les traductions FR/EN existantes. */
.story.reverse.youth-v9 {
  box-sizing:border-box;
  width:min(1160px,calc(100% - 48px));
  margin:clamp(68px,8vw,116px) auto;
  padding:clamp(24px,3.8vw,48px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
  align-items:center;
  gap:clamp(28px,5vw,72px);
  background:#f7f9f7;
  border:1px solid #e5ebe7;
  border-radius:26px;
  box-shadow:0 16px 50px rgba(10,49,50,.055);
  overflow:hidden;
}
.story.reverse.youth-v9 .story-media {
  min-width:0;
  width:100%;
  border-radius:18px;
  overflow:hidden;
  aspect-ratio:4/4.3;
  background:#dce8df;
  box-shadow:0 16px 38px rgba(13,53,55,.12);
}
.story.reverse.youth-v9 .story-media img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .65s ease;
}
.story.reverse.youth-v9 .story-copy {
  min-width:0;
  width:100%;
  max-width:610px;
  margin:0;
  padding:0;
  text-align:left;
}
.story.reverse.youth-v9 .story-copy::before {
  content:"NOTRE ENGAGEMENT";
  display:block;
  margin-bottom:16px;
  color:#177661;
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
}
.story.reverse.youth-v9 .story-copy h2 {
  max-width:560px;
  margin:0 0 22px;
  color:#103940;
  font-size:clamp(29px,3vw,43px);
  font-weight:700;
  letter-spacing:-.035em;
  line-height:1.18;
  text-align:left;
}
.story.reverse.youth-v9 .story-copy h2::after {
  content:"";
  display:block;
  width:52px;
  height:3px;
  margin-top:18px;
  border-radius:3px;
  background:#e58b18;
}
.story.reverse.youth-v9 .story-copy p {
  max-width:62ch;
  margin:0;
  color:#35535a;
  font-size:clamp(14px,1.13vw,16px);
  line-height:1.85;
  text-align:left;
  overflow-wrap:break-word;
}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .story.reverse.youth-v9 .story-media:hover img {transform:scale(1.045)}
}
@media (max-width:820px) {
  .story.reverse.youth-v9 {
    width:min(680px,calc(100% - 32px));
    grid-template-columns:minmax(0,1fr);
    gap:28px;
    padding:clamp(18px,4vw,30px);
  }
  .story.reverse.youth-v9 .story-media {aspect-ratio:16/10}
}
@media (max-width:480px) {
  .story.reverse.youth-v9 {border-radius:19px;margin-block:60px}
  .story.reverse.youth-v9 .story-media {aspect-ratio:4/3}
  .story.reverse.youth-v9 .story-copy h2 {font-size:29px}
  .story.reverse.youth-v9 .story-copy p {font-size:14px;line-height:1.75}
}
@media (prefers-reduced-motion:reduce) {
  .story.reverse.youth-v9 .story-media img {transition:none!important}
}


/* ---- accueil-gouvernance-v10.css ---- */
/* NSANZA — V10 Gouvernance : styles limités à cette section. */
.story.governance-v10 {
  width:min(1160px,calc(100% - 48px)); margin:clamp(68px,8vw,110px) auto 0;
  padding:clamp(24px,3.8vw,48px); box-sizing:border-box;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);
  gap:clamp(30px,5vw,70px);align-items:center;
  background:#f7faf8;border:1px solid #e2ece7;border-radius:26px;
  box-shadow:0 14px 45px rgba(10,49,50,.055);
}
.story.governance-v10 .story-media {
  width:100%;min-width:0;aspect-ratio:4/4.2;overflow:hidden;
  border-radius:18px;background:#e0e9e5;
  box-shadow:0 16px 38px rgba(13,53,55,.12);
}
.story.governance-v10 .story-media img {
  display:block;width:100%;height:100%;object-fit:cover;
  transition:transform .6s ease;
}
.story.governance-v10 .story-copy {min-width:0;max-width:610px;padding:0;margin:0;text-align:left}
.story.governance-v10 .story-copy::before {
  content:'NOTRE ENGAGEMENT';display:block;color:#177661;
  font-size:11px;font-weight:700;letter-spacing:.17em;margin-bottom:16px;
}
.story.governance-v10 .story-copy h2 {
  color:#103940;font-size:clamp(29px,3vw,43px);line-height:1.18;
  letter-spacing:-.035em;margin:0 0 22px;text-align:left;
}
.story.governance-v10 .story-copy h2::after {
  content:'';display:block;width:52px;height:3px;margin-top:18px;
  background:#e58b18;border-radius:3px;
}
.story.governance-v10 .story-copy p,
.story.text-only.governance-followup-v10 .story-copy p {
  font-size:clamp(14px,1.1vw,16px);line-height:1.85;
  color:#35535a;text-align:left;overflow-wrap:break-word;
}
.story.text-only.governance-followup-v10 {
  width:min(1064px,calc(100% - 64px));box-sizing:border-box;
  margin:0 auto clamp(70px,8vw,110px);
  padding:clamp(24px,3vw,40px) clamp(25px,4vw,55px);
  border-left:3px solid #d99a3e;
  background:#fff;border-radius:0 0 16px 16px;
}
.story.text-only.governance-followup-v10 .story-copy {max-width:100%;width:100%;margin:0;padding:0}
.story.text-only.governance-followup-v10 .story-copy p {max-width:95ch;margin:0}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .story.governance-v10 .story-media:hover img {transform:scale(1.045)}
}
@media(max-width:820px) {
  .story.governance-v10 {width:min(680px,calc(100% - 32px));grid-template-columns:minmax(0,1fr);gap:28px;padding:clamp(18px,4vw,30px)}
  .story.governance-v10 .story-media {aspect-ratio:16/10}
  .story.text-only.governance-followup-v10 {width:min(640px,calc(100% - 48px))}
}
@media(max-width:480px) {
  .story.governance-v10 {border-radius:19px;margin-top:60px}
  .story.governance-v10 .story-media {aspect-ratio:4/3}
  .story.governance-v10 .story-copy h2 {font-size:29px}
  .story.text-only.governance-followup-v10 {width:calc(100% - 40px);padding:24px 18px}
}
@media(prefers-reduced-motion:reduce) {.story.governance-v10 .story-media img {transition:none!important}}


/* ---- accueil-leadership-v11.css ---- */
/* V11 — exclusivement la section Leadership */
.leadership.leadership-v11{box-sizing:border-box;width:min(1180px,calc(100% - 48px));max-width:none;margin:clamp(72px,9vw,125px) auto;padding:clamp(24px,4vw,54px);display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:clamp(30px,5vw,76px);align-items:start;background:linear-gradient(140deg,#f7faf8,#fff 75%);border:1px solid #e3ebe8;border-radius:28px;box-shadow:0 18px 55px rgba(11,53,53,.055)}
.leadership.leadership-v11 .leadership-image{width:100%;min-width:0;overflow:hidden;border-radius:20px;background:#e3eae7;box-shadow:0 16px 38px rgba(11,53,53,.14);position:relative}
.leadership.leadership-v11 .leadership-image img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:center top;transition:transform .65s ease}
.leadership.leadership-v11 .leadership-copy{width:100%;max-width:none;min-width:0;margin:0;padding:0;text-align:left}
.leadership.leadership-v11 .leadership-copy:before{content:'VISION & ENGAGEMENT';display:block;margin:4px 0 17px;color:#187761;font-size:11px;letter-spacing:.18em;font-weight:750}
.leadership.leadership-v11 .leadership-copy h2{margin:0 0 25px;color:#123d42;font-size:clamp(30px,3vw,44px);line-height:1.17;letter-spacing:-.035em;text-align:left}
.leadership.leadership-v11 .leadership-copy h2:after{content:'';display:block;width:58px;height:3px;margin-top:20px;background:#e79a28;border-radius:4px}
.leadership.leadership-v11 .leadership-copy p{margin:0 0 20px;color:#39545b;font-size:clamp(14px,1.15vw,16px);line-height:1.85;text-align:left;max-width:68ch;overflow-wrap:break-word}
.leadership.leadership-v11 .leadership-copy p:last-child{margin-bottom:0}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.leadership.leadership-v11 .leadership-image:hover img{transform:scale(1.035)}}
@media(max-width:850px){.leadership.leadership-v11{grid-template-columns:1fr;width:min(710px,calc(100% - 32px));gap:28px;padding:clamp(18px,4vw,32px)}.leadership.leadership-v11 .leadership-image img{aspect-ratio:16/11}}
@media(max-width:480px){.leadership.leadership-v11{border-radius:20px;margin-block:62px}.leadership.leadership-v11 .leadership-copy h2{font-size:29px}.leadership.leadership-v11 .leadership-copy p{font-size:14px;line-height:1.75}}
@media(prefers-reduced-motion:reduce){.leadership.leadership-v11 .leadership-image img{transition:none!important}}


/* ---- accueil-valeurs-v12.css ---- */
/* V12 — Nos valeurs : styles limites a la section valeurs */
.values-section.values-v12 {padding:clamp(72px,8vw,112px) 0;background:linear-gradient(145deg,#f5f9f7 0%,#fff 72%);}
.values-v12 .section-wrap {max-width:1180px;margin-inline:auto;}
.values-v12 h2 {color:#123e43;font-size:clamp(30px,3.2vw,46px);line-height:1.2;letter-spacing:-.035em;text-align:center;margin:0 0 clamp(34px,4vw,54px);}
.values-v12 h2::after {content:"";display:block;width:56px;height:3px;border-radius:4px;background:#e58b18;margin:18px auto 0;}
.values-v12 .values-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:stretch;}
.values-v12 .value-card {box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:36px;min-height:180px;padding:24px 18px;border:1px solid #dfeae5;border-radius:17px;background:#fff;box-shadow:0 12px 30px rgba(12,55,54,.055);color:#183f43;text-align:left;white-space:normal;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease;}
.values-v12 .value-index {display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:#e9f4ef;color:#13705b;font-weight:700;font-size:13px;letter-spacing:.06em;}
.values-v12 .value-label {font-size:clamp(15px,1.25vw,18px);font-weight:700;line-height:1.4;overflow-wrap:anywhere;}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {.values-v12 .value-card:hover {transform:translateY(-7px);box-shadow:0 20px 40px rgba(12,55,54,.12);border-color:#9ccfbb;}}
@media (max-width:1000px) {.values-v12 .values-grid {grid-template-columns:repeat(3,minmax(0,1fr));}.values-v12 .value-card {min-height:155px;}}
@media (max-width:640px) {.values-v12 .values-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.values-v12 .value-card {min-height:140px;padding:19px 16px;gap:24px;}.values-v12 .section-wrap {padding-inline:16px;}}
@media (max-width:350px) {.values-v12 .values-grid {grid-template-columns:1fr;}.values-v12 .value-card {min-height:105px;}}
@media (prefers-reduced-motion:reduce) {.values-v12 .value-card {transition:none;}}


/* ---- accueil-finitions-v14.css ---- */
/* NSANZA — V14 : finitions non destructives, charge apres les styles V13. */
/* Evite les debordements horizontaux et les images deformees. */
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{overflow-x:clip}
.home-v14,.home-v14 section{min-width:0}
.home-v14 img{max-width:100%}
/* Retire uniquement l'espace externe entre la derniere section et le footer.
   Le padding interne de la section Nos valeurs est conserve. */
.home-v14{margin-bottom:0!important;padding-bottom:0!important}
.home-v14>.values-section.values-v12:last-child{margin-bottom:0!important}
.home-v14+.footer-v13{margin-top:0!important}
/* Rend les liens et commandes du footer plus faciles a utiliser au clavier. */
#contact.footer-v13 :is(a,button,input,textarea):focus-visible{outline:3px solid #ffad39;outline-offset:3px}
#contact.footer-v13 .footer-v13-contact a{overflow-wrap:anywhere;word-break:normal}
/* Navigation ancree accessible sous le menu fixe. */
#projets,#contact{scroll-margin-top:95px}
@media(max-width:700px){
  html{scroll-padding-top:74px}
  #projets,#contact{scroll-margin-top:74px}
  #contact.footer-v13 .footer-v13-contact a{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  #contact.footer-v13 *,#contact.footer-v13 *::before,#contact.footer-v13 *::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
}


/* Badge « BO disponible » sur la carte Perfect Tracking */
.project-card{position:relative}
.project-badge{position:absolute;top:14px;left:14px;display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:#fff;color:#126b5b;font-size:12px;font-weight:700;letter-spacing:.04em;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.project-badge::before{content:"";width:8px;height:8px;border-radius:50%;background:#1fae7a;box-shadow:0 0 0 3px rgba(31,174,122,.2)}

/* ---------- Accueil sur mobile : en attendant que la vidéo démarre,
   l'image fixe reçoit un lent zoom-glissement ---------- */
@keyframes nig-home-pan-m{
  0%{object-position:30% center;transform:scale(1.04)}
  100%{object-position:70% center;transform:scale(1.16)}
}
@media(max-width:800px) and (prefers-reduced-motion:no-preference){
  .hero-video{transform-origin:center center;animation:nig-home-pan-m 20s ease-in-out infinite alternate;will-change:transform}
}
.hero-video.is-playing{animation:none!important;transform:none!important}
