:root{
  --green:#16a34a;
  --deep-green:#11914a;
  --purple:#6b2b66;
  --orange:#ff8b3d;
  --muted:#f5f5f7;
  --max-width:1200px;
  --container-padding:20px;
}
*{box-sizing:border-box}
/* prevent horizontal scroll caused by wide elements */
html,body{overflow-x:hidden}
/* make images responsive by default */
img{max-width:100%;height:auto;display:block}

/* body{font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial;line-height:1.5;color:#222;margin:0} */
.container{max-width:var(--max-width);margin:0 auto;padding:0 var(--container-padding)}

/* Header */
.site-header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:40}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.logo{font-weight:700;color:var(--deep-green);max-width:250px;height:auto;}
.main-nav{display:none}
.main-nav a{margin:0 12px;color:#333;text-decoration:none;font-weight:500}
.btn{display:inline-block;padding:10px 16px;border-radius:6px;text-decoration:none}
.btn-cta{background:var(--orange);color:#fff}

/* Hero */
.hero{position:relative;height:420px;background-image:linear-gradient(rgba(89, 20, 89, 0.25), rgba(89, 20, 89, 0.25)), url('./img/banniere.png');background-size:cover;background-position:top;display:flex;align-items:center;margin-top: 6rem;}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.25))}
.hero-inner{position:relative;display:flex;align-items:center;justify-content:center}
.play{width:72px;height:72px;border-radius:50%;background:rgba(255,255,255,0.85);border:none;font-size:22px}

.banner-green{background:var(--green);color:#fff;padding:28px 0;text-align:center}
.banner-green h1{margin:0;font-size:20px;letter-spacing:0.6px}
.banner-green .subtitle{opacity:0.95;margin-top:8px}

/* About */
.about{padding:48px 0}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.about-images{display:flex;flex-direction:column;gap:22px}
.about-images .top-row{display:flex;gap:22px;align-items:flex-start}
.img-small{background:linear-gradient(45deg,#e6e6e6,#ddd);border-radius:14px;overflow:hidden}
.img-thumb{flex:1;min-width:0;height:140px;border-radius:12px}
.img-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.img-square{width:220px;height:220px;border-radius:14px;overflow:hidden}
.img-square img{width:100%;height:100%;object-fit:cover;display:block}
.bottom-row .img-large{height:320px;border-radius:14px;overflow:hidden}
.img-large img{width:100%;height:100%;object-fit:cover;display:block}
.about-text h2{margin-top:0;font-size:40px;letter-spacing:1px}
.lead{color:#222;opacity:0.95}
.about-list{margin-top:18px;margin-bottom:12px;padding-left:0;list-style:none}
.about-list li{margin-bottom:16px}
.about-list li strong{display:block;font-weight:700}
.about-cta{margin-top:26px}
.btn-orange{background:var(--orange);color:#fff;padding:14px 26px;border-radius:12px;text-decoration:none;display:inline-block;box-shadow:0 6px 20px rgba(255,139,61,0.16)}
.btn-large{min-width:320px;font-size:18px;padding:16px 28px}

/* Members */
.members{padding:24px 0 48px}
.members{padding:36px 0;background:#f3f3f3}
.members-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:6px}
.section-title{text-align:center;margin:8px 0 18px;font-size:28px}
.nav-arrows{display:flex;gap:12px}
.nav-arrow{border:2px solid #111;border-radius:28px;padding:8px 18px;background:#fff;cursor:pointer;font-size:18px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;padding:18px 0}
.card{background:transparent;border-radius:12px;text-align:left}
.card-img{height:250px;border-radius:14px 14px 6px 6px;background-size:cover;background-position:center;box-shadow:0 8px 18px rgba(0,0,0,0.06)}
.card-info{background:#fff;padding:18px;border-radius:12px;margin-top:-18px;box-shadow:0 6px 18px rgba(0,0,0,0.06)}
.card-info h4{margin:0 0 8px;font-size:18px}
.card-info p{margin:0;color:#777}

/* Membership */
.membership{position:relative;padding:56px 0;background-image:linear-gradient(rgba(156, 132, 154, 0.6), rgba(201, 152, 207, 0.6)), url('./img/bkg_img.png');background-size:cover;background-position:center;background-repeat:no-repeat;color:#fff}
.membership-inner{position:relative;z-index:2}
.membership-box{padding:28px;border-radius:14px;display:flex;flex-direction:column;height:100%}
.membership-box ul{flex:1}
.membership-box h4{margin-top:0;margin-bottom:12px}
.membership-box.box-left{background:#591459}
.membership-box.box-left ul{padding-left:18px}
.membership-box.box-left li{margin-bottom:12px;}
.membership-box.box-right{background:#fff;color:#222;box-shadow:0 12px 30px rgba(0,0,0,0.06)}
.membership-box.box-right ul{padding-left:22px}
.membership-box.box-right li{position:relative;padding-left:34px;margin-bottom:12px;list-style:none ;}
.membership-box.box-right li::before{content:'✓';position:absolute;left:0;top:0;background:var(--green);color:#fff;width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
.membership-cta{text-align:center;margin-top:28px}
.membership-cta .btn-large{min-width:420px;padding:16px 28px;border-radius:12px;font-size:18px;box-shadow:0 8px 28px rgba(255,139,61,0.18)}

/* subtle overlay to ensure text contrast over background image */
.membership::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,0.02), rgba(0,0,0,0.12));z-index:1}

/* Values / Projects cards */
.values{padding:56px 0;background:#DBD0DD;}
.values .section-title{margin-bottom:24px}
.values-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;align-items:stretch}
.value-card{background:#fff;border-radius:16px;padding:22px 22px 18px;display:flex;flex-direction:row;justify-content:space-between;box-shadow:0 12px 28px rgba(0,0,0,0.06)}
.value-card .card-top{gap:18px;align-items:center; justify-content: flex-start; }
.project-icon{width:64px;height:64px;border-radius:12px;background:transparent;display:flex;align-items:center;justify-content:center;flex:0 0 64px}
.project-icon svg{display:block;width:44px;height:44px}
.value-body h4{margin:0 0 12px;font-size:22px;font-weight:700}
.value-body p{margin:0;color:#555;font-size:15px;line-height:1.4}
.btn-details{background:var(--orange);color:#fff;padding:8px 18px;border-radius:14px;border:none;align-self:flex-end;box-shadow:0 8px 24px rgba(255,139,61,0.14);cursor:pointer}

/* Small tweaks to keep layout similar to mock */
.project-card .value-body{padding-right:6px}

@media(max-width:991px){
  .values-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:480px){
  .values-grid{grid-template-columns:1fr}
  .value-card{padding:18px}
  .project-icon{width:48px;height:48px;flex:0 0 48px}
  .value-body h4{font-size:18px}
}

/* Partners */
.partners{padding:26px 0}
.partners-row{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:center}
.partner{background:#fff;padding:12px 14px;border-radius:6px;flex:0 1 auto;text-align:center;min-height:72px;display:flex;align-items:center;justify-content:center}

/* Events */
.events{padding:36px 0}
.event-list{display:grid;gap:12px}

/* event image sizing */
.event-img{width:100%;height:auto;display:block}
.event{display:flex;gap:14px;align-items:center;padding:12px;background:#fff;border-radius:10px}
.event-date{width:84px;background:var(--muted);border-radius:8px;padding:8px;text-align:center}
.event-date .day{display:block;font-size:24px;font-weight:700;color:var(--deep-green)}

/* Footer */
.site-footer{background:#111;color:#fff;padding:22px 0;text-align:center;margin-top:30px}

/* Responsive */
@media(min-width:768px){
  .main-nav{display:flex}
  .hero{height:520px}
  .banner-green h1{font-size:26px}
}
@media(max-width:767px){
  .header-inner{padding:12px}
  .main-nav{display:none}
  .about-grid{grid-template-columns:1fr}
  .about-images{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .img-1{grid-column:auto;height:150px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .values-grid{grid-template-columns:repeat(2,1fr)}
  .partners-row{flex-direction:row;justify-content:center}
  .card-img{height:180px}
  .cards{gap:14px}
  .membership-inner{grid-template-columns:1fr}
  .membership-cta .btn-large{width:100%;min-width:0}
}

/* About section: mobile stacking and justified text */
.about-text{font-family:Inter, Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; text-align:justify; text-justify:inter-word;}
.about-text h2{font-weight:700}
.about-list li strong{font-weight:700}

@media(max-width:767px){
  .about-text{padding:0 12px}
  .about-text h2{font-size:22px;margin-bottom:8px;text-align:left}
  .lead{font-size:15px}
  .about-list{padding-left:14px}
  .about-list li{margin-bottom:12px}

  /* Stack image thumbnails vertically and reduce heights */
  .about-images .top-row{display:flex;flex-direction:column;gap:12px}
  .img-thumb{height:120px}
  .img-square{width:100%;height:160px}
  .bottom-row .img-large{height:220px}

  .about-cta .btn-large{width:100%;min-width:0}
}

/* Mobile: center A PROPOS block, add section padding, justify text, full-width CTA */
@media (max-width:767px) {
  .about{padding:28px 16px}
  .about-text{margin:0 auto;max-width:720px;text-align:justify}
  .about-text h2{font-size:22px;margin-bottom:10px;text-align:center}
  .about-text p, .about-text .lead, .about-list li{ text-align:justify; text-justify:inter-word; text-align-last:left }
  .about-cta{display:block;width:100%;padding:0;margin-top:14px}
  .about-cta .btn-large{display:block;width:100%;box-sizing:border-box}
}

/* Ensure headings stay left-aligned and text blocks are justified */
.about-text h2{ text-align:left }
.about-text p, .about-text .lead, .about-list li{ text-align:justify; text-justify:inter-word; -webkit-hyphens:auto; -ms-hyphens:auto; hyphens:auto; text-align-last:left; -moz-text-align-last:left }

/* Membership box: ensure full width on mobile and prevent text overflow */
.membership-box{box-sizing:border-box;overflow-wrap:break-word;word-break:break-word;hyphens:auto;background:#fff;padding:24px;border-radius:6px;border:1px solid rgba(0,0,0,0.04)}
.membership-box h4{margin-bottom:10px}
.membership-box ul{padding-left:18px;margin:0}
.membership-box li{margin-bottom:8px;line-height:1.45}

@media(max-width:767px){
  .membership-box{padding:18px}
  .membership-box.box-left,.membership-box.box-right{width:100%}
  .membership-box ul{padding-left:16px}
  .membership-cta .btn-large{width:100%;max-width:100%}
}

/* defensive rule to avoid any accidental horizontal overflow */
.membership-box, .membership-box *{max-width:100%}


/* About section: harmonize font and mobile tweaks */
.about-text{font-family:Inter, Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;}
.about-text h2{font-size:36px}
.lead{font-size:16px}
.about-list li strong{font-size:15px}
.about-cta .btn-large{min-width:320px}

@media(max-width:767px){
  .about-text h2{font-size:26px;margin-bottom:10px}
  .about-text{padding:0 12px}
  .lead{font-size:15px}
  .about-list{padding-left:14px}
  .about-cta .btn-large{width:100%;min-width:0}
}

@media(max-width:480px){
  .btn-large{min-width:0;padding-left:14px;padding-right:14px}
}

/* partner logos sizing */
.partner-logo{max-height:80px;width:auto;display:block;margin-left:auto;margin-right:auto}

/* ensure large cards don't cause horizontal overflow */
.cards{overflow:hidden}
