: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;}
/* logo/text wrapper inside navbar-brand */
.brand-wrapper{position:relative;display:inline-block;}
/* text centered over image */
.brand-text{position:absolute;top:59%;left:84%;transform:translate(-50%,-50%);font-size:16px;font-weight:700;white-space:nowrap;color:#0e0e0e;}

/* scale logo responsively */
.brand-wrapper .logo{max-width:400px;height:auto;display:block;}

@media(max-width:767px){
  .brand-wrapper .logo{max-width:180px;}
  /* shrink text on small screens */
  .brand-text{font-size:12px;padding:2px 6px;}
}

.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:#1E1E1E}

/* Hero */
.hero{position:relative;height:350px;background-image: url('./img/Img_banniere.jpg');background-size:cover;background-position:center;background-repeat:no-repeat;display:flex;align-items:center;}
.hero-overlay{position:absolute;inset:0;}
.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{width:100%;border-radius:14px;overflow:hidden;}
/* let the image determine height and scale naturally */
.img-large img{width:100%;height:auto;object-fit:contain;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:#1E1E1E;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;display:flex;flex-direction:column;overflow:hidden}
.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);min-height:160px;display:flex;flex-direction:column;justify-content:center}
.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{min-height:140px;display:flex;flex-direction:column;justify-content:center;width:100%}
.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.6}
.value-body .inter{width:100%;margin:0 0 8px;display:block}
.value-body .text-haut{flex:1;min-height:90px;width:100%;margin:0 0 12px;display:block}
.value-body .height_text{width:100%;min-height:120px;margin:0 0 12px;display:block}
.btn-details{background:var(--orange);color:#1E1E1E;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;width:100%}

@media(max-width:991px){
  .values-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:991px){
  .values-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:767px){
  /* stack about section images vertically and shrink the large photo */
  .about-grid{grid-template-columns:1fr}
  .about-images .top-row{flex-direction:column;gap:16px}
  /* remove explicit height so image stays proportional */
  .bottom-row .img-large{height:auto}
}

@media(max-width:767px){
  .values-grid{grid-template-columns:1fr}
  /* stack project cards vertically and make the interior flow nicely */
  .value-card{padding:18px;flex-direction:column;align-items:flex-start}
  .card-top{flex-direction:column;align-items:flex-start;gap:12px;width:100%}
  .project-card .value-body{min-height:140px;padding-right:0}
  .value-body .inter{min-height:50px}
  .value-body .text-haut{min-height:100px}
  .value-body .height_text{min-height:190px}
  .btn-details{margin-top:12px;align-self:flex-start}
}

@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}

  /* make the large image even smaller on very narrow viewports */
  .bottom-row .img-large{height:160px}
}

/* 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}

/* Partner cards: uniform sizing */
.partner-card{width:100%;max-width:240px;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,0.15);background-color:#ffffff;display:flex;align-items:center;justify-content:center;min-height:120px}
.partner-card.p-3{padding:16px}
.partner-logo{max-height:80px;width:auto;object-fit:contain;display:block;margin:auto}

@media (max-width:480px){
  .partner-card{min-height:96px;max-width:180px}
  .partner-logo{max-height:56px}
}

/* Events */
.events{padding:36px 0}
.event-list{display:grid;gap:12px}

/* New events list styling to match mock */
.events-list{display:flex;flex-direction:column;gap:18px}
.event-row{display:flex;gap:18px;align-items:stretch}
.event-card{flex:1;border-radius:12px;overflow:hidden;display:flex;align-items:center}
.event-meta{display:flex;align-items:center;width:100%}
.event-number{flex:0 0 110px;background:rgba(0,0,0,0.06);color:#fff;font-weight:700;font-size:20px;display:flex;align-items:center;justify-content:center;min-height:120px}
.event-info{flex:1;padding:18px}
.event-label{font-weight:700;color:#fff;font-size:20px;margin-bottom:6px}
.event-desc{color:rgba(255,255,255,0.95);font-size:14px;line-height:1.4}
.event-thumb{flex:0 0 160px;border-radius:12px;overflow:hidden}
.event-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* color variants for left panels */
.event-variant-1 .event-number{background:linear-gradient(90deg,#f4a261,#f08a3f)}
.event-variant-1 .event-card{background:linear-gradient(90deg,rgba(244,162,97,0.95),rgba(240,138,63,0.95))}
.event-variant-2 .event-number{background:linear-gradient(90deg,#6b2b66,#4b2a5d)}
.event-variant-2 .event-card{background:linear-gradient(90deg,rgba(107,43,102,0.95),rgba(75,42,93,0.95))}
.event-variant-3 .event-number{background:linear-gradient(90deg,#16a34a,#0f8a3b)}
.event-variant-3 .event-card{background:linear-gradient(90deg,rgba(22,163,74,0.95),rgba(15,138,59,0.95))}
.event-variant-4 .event-number{background:linear-gradient(90deg,#1e40af,#2b6fb2)}
.event-variant-4 .event-card{background:linear-gradient(90deg,rgba(30,64,175,0.95),rgba(43,111,178,0.95))}

@media (max-width:991px){
  .event-number{flex-basis:96px;font-size:40px;min-height:96px}
  .event-thumb{flex-basis:140px}
}

@media (max-width:767px){
  .event-row{flex-direction:row;gap:12px}
  .events-list{gap:12px}
  .event-row{align-items:stretch}
  .event-number{flex-basis:88px;font-size:36px;min-height:88px}
  .event-thumb{flex-basis:120px}
}

@media (max-width:480px){
  .event-row{flex-direction:column}
  .event-thumb{width:100%;height:160px;flex:0 0 auto}
  .event-number{width:100%;height:auto;min-height:72px;font-size:36px;padding:16px 0}
  .event-info{padding: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:transparent;color:#222;padding:0;margin-top:60px}
.footer-top{background:#F5F5F5;padding:28px 0}
.footer-content{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:24px;max-width:var(--max-width);margin:0 auto;padding:0 var(--container-padding)}

.footer-left{display:flex;align-items:center;gap:20px}
.footer-logo{flex:0 0 auto}
.footer-logo-img{max-width:295px;height:auto;display:block}

.footer-right{display:flex;align-items:center;gap:12px}
.footer-follow{font-weight:600;color:#111;margin-right:8px}
.footer-sep{color:#666;margin:0 8px}
.footer-social{display:flex;gap:12px;align-items:center}
.social-link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:transparent;color:#222;transition:all 0.22s ease;text-decoration:none;border:1px solid rgba(0,0,0,0.06)}
.social-link:hover{background:var(--orange);color:#fff;transform:translateY(-3px);box-shadow:0 8px 20px rgba(255,139,61,0.18)}
.social-link svg{width:20px;height:20px}

.footer-bottom{background:#F5F5F5;padding:14px 0}
.footer-bottom-inner{max-width:var(--max-width);margin:0 auto;padding:0 var(--container-padding);display:flex;justify-content:flex-start}
.footer-copyright{margin:0;font-size:12px;color:#222}

/* Footer responsive */
@media(max-width:768px){
  .footer-top{padding:20px 0}
  .footer-content{flex-direction:column;text-align:center;gap:18px}
  .footer-left{flex-direction:column;align-items:center}
  .footer-right{justify-content:center}
  .footer-bottom-inner{justify-content:center}
  .footer-logo-img{max-width:180px}
  .social-link{width:36px;height:36px}
  .social-link svg{width:18px;height:18px}
  .footer-sep{display:none}
}

/* Responsive */
@media(min-width:768px){
  .main-nav{display:flex}
  .hero{height:500px}
  .banner-green h1{font-size:26px}
}
@media(min-width:1024px){
  .hero{height:600px}
}
@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}
  .card-info{min-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}
