/* ============================================
   APN NIVELLES — PARTENAIRES.PHP — CSS 2025
   Design system aligné sur index.css
   ============================================ */

*{margin:0;padding:0;box-sizing:border-box;}

:root{
  --dark:#111827;
  --dark2:#1f2937;
  --dark3:#0a0f1a;
  --gold:#f0b429;
  --gold-dark:#d9a020;
  --light:#f4f4f0;
  --text:#1a1a1a;
  --muted:#6b7280;
  --border:#e5e7eb;
  --cond:#1A7A4A;
  --cond-dk:#063320;
}

body{
  font-family:'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:#fff;
  color:var(--text);
  line-height:1.6;
}

h1,h2,h3,h4{
  font-family:'Roboto Slab',serif;
  font-weight:700;
  line-height:1.2;
}

.container{max-width:1100px;margin:0 auto;}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb-bar{
  background:var(--dark2);
  padding:0.6rem 2rem;
}
.breadcrumb-bar ol{
  display:flex;gap:0.5rem;
  list-style:none;
  max-width:1100px;margin:0 auto;
  font-size:0.8rem;color:#9ca3af;
}
.breadcrumb-bar li+li::before{content:"›";margin-right:0.5rem;}
.breadcrumb-bar a{color:#9ca3af;text-decoration:none;}
.breadcrumb-bar a:hover{color:var(--gold);}
.breadcrumb-bar li:last-child{color:#d1d5db;}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section{
  position:relative;
  width:100%;
  overflow:hidden;
}

.hero-image-wrap{
  position:relative;
  width:100%;
  display:block;
  line-height:0;
}

.hero-image-wrap img,
.hero-image-wrap picture img{
  width:100%;
  height:auto;
  display:block;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to right,
    rgba(17,24,39,0.85) 0%,
    rgba(17,24,39,0.60) 50%,
    rgba(17,24,39,0.40) 100%
  );
  z-index:1;
}

.hero-content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2rem;
}

.hero-badge{
  display:inline-block;
  background:rgba(255,255,255,0.1);
  color:#e5e7eb;
  font-size:0.75rem;letter-spacing:0.1em;text-transform:uppercase;
  padding:5px 16px;border-radius:20px;margin-bottom:1.2rem;
  border:1px solid rgba(255,255,255,0.2);
}

.hero-title{
  font-family:'Roboto Slab',serif;
  font-size:clamp(1.8rem,4vw,3rem);
  color:#fff;line-height:1.15;margin-bottom:0.9rem;
  text-shadow:0 2px 16px rgba(0,0,0,0.7);
}
.hero-title span{color:var(--gold);}

.hero-desc{
  color:#e5e7eb;
  font-size:clamp(0.88rem,1.6vw,1.05rem);
  line-height:1.65;margin-bottom:1.4rem;
  max-width:620px;
  text-shadow:0 1px 8px rgba(0,0,0,0.6);
}

.hero-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}

.btn-hero{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--gold);color:#111;
  padding:13px 30px;border-radius:8px;
  text-decoration:none;font-weight:700;font-size:0.95rem;
  transition:all 0.2s;
}
.btn-hero:hover{background:var(--gold-dark);transform:translateY(-2px);}

.btn-hero-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.12);
  color:#fff;
  padding:13px 26px;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  font-size:0.95rem;
  border:1px solid rgba(255,255,255,0.35);
  transition:all 0.2s;
}
.btn-hero-secondary:hover{
  background:rgba(255,255,255,0.24);
  transform:translateY(-2px);
}

/* ============================================
   SECTIONS COMMUNES
   ============================================ */
.section-pad{padding:5rem 2rem;}
.section-pad-sm{padding:4rem 2rem;}
.bg-light{background:var(--light);}
.bg-white{background:#fff;}
.bg-dark{background:var(--dark);}

.sect-title{text-align:center;margin-bottom:3rem;}
.sect-title h2{font-size:1.9rem;color:var(--dark);margin-bottom:0.5rem;}
.sect-title p{color:var(--muted);font-size:0.95rem;max-width:600px;margin:0 auto;}
.sect-title.light h2{color:#fff;}
.sect-title.light p{color:#9ca3af;}

/* ============================================
   GRILLE PARTENAIRES
   ============================================ */
.partners-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.5rem;
}

.partner-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:2rem 1.6rem;
  text-align:center;
  transition:transform 0.25s,box-shadow 0.25s;
}
.partner-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 32px rgba(0,0,0,0.09);
}

.partner-logo{
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 1.4rem;
}
.partner-logo img{
  max-width:100%;
  max-height:110px;
  width:auto;
  height:auto;
  object-fit:contain;
}

.partner-card h3{
  font-size:1.15rem;
  color:var(--dark);
  margin-bottom:0.7rem;
}

.partner-card p{
  font-size:0.9rem;
  color:var(--muted);
  line-height:1.65;
  margin-bottom:1.2rem;
}

.partner-card a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--cond);
  color:#fff;
  padding:10px 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:0.85rem;
  transition:background 0.2s;
}
.partner-card a:hover{background:var(--cond-dk);}

/* ============================================
   TEXTE SEO / MISSION
   ============================================ */
.partners-seo{
  max-width:900px;
  margin:0 auto;
}
.partners-seo h2{
  font-size:1.7rem;
  color:var(--dark);
  margin-bottom:1rem;
}
.partners-seo p{
  color:#374151;
  font-size:0.98rem;
  line-height:1.8;
  margin-bottom:0.9rem;
}
.partners-seo strong{color:var(--dark);}

/* ============================================
   CONTACT (fond sombre, style eta-card)
   ============================================ */
.contact-inner{
  max-width:700px;
  margin:0 auto;
  text-align:center;
}
.contact-inner p{
  color:#d1d5db;
  font-size:0.95rem;
  line-height:1.8;
  margin-bottom:0.4rem;
}
.contact-inner p strong{color:#fff;}
.contact-inner .btn-hero{margin-top:1.4rem;}

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:900px){
  .partners-grid{grid-template-columns:1fr;}
  .hero-content{padding:1.5rem;}
}