:root{
  --primary:#0f7a56;
  --dark: #0f1e16;
  --light: #f7faf8;
  --text: #1b2a22;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -40px; z-index: 100;
  background: #fff; border: 2px solid var(--primary); padding: 8px 12px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header / Nav */

header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #e5e7eb;
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 0;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); letter-spacing: .5px; }
.logo img { width: 40px; height: 40px; border-radius: 6px; }

/* 🔧 Ajout important : aligner verticalement tous les enfants (y compris le <div class="dropdown">) */
.nav-links {
  display: flex; gap: 0px; flex-wrap: wrap;
  align-items: center; /* NEW */
}

/* Style uni pour tous les liens de nav (y compris le .dropdown-toggle) */
.nav-links a {
  padding: 10px 12px; border-radius: 10px; font-weight: 600; color: #0f172a; text-decoration: none;
}
.nav-links a.active,
.nav-links a:hover { 
  background: transparent; /* Enlève l'ombre verte */
}

/* (Optionnel) S’assure que le wrapper dropdown s’aligne correctement */
.nav-links .dropdown { display: flex; align-items: center; }

/* Bouton burger */
.nav-toggle {
  display: none; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer;
}


/* Presentation */

.hero{
  background: radial-gradient(1200px 600px at 50% -20%, rgba(13,110,253,.12), transparent),
              linear-gradient(180deg, #f8f9fa 0%, #f8f9fa 100%);
}

.hero .lead{
  color: #495057;
}

.nav-pills .nav-link{
  border: 1px solid rgba(13,110,253,.15);
}

.nav-pills .nav-link:hover{
  background-color: rgba(13,110,253,.08);
}

.content h2,
.accordion-button{
  letter-spacing: .2px;
}

.accordion-button{
  font-weight: 600;
}

.accordion-button:not(.collapsed){
  color: var(--brand);
  background-color: rgba(13,110,253,.06);
}

.accordion-item{
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  margin-bottom: 1rem;
}

.accordion-body ul li{
  margin-bottom: .4rem;
}

.alert-info{
  border-left: 4px solid var(--brand);
}

.btn-outline-primary{
  --bs-btn-bg: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-color: #fff;
}

@media (min-width: 992px){
  .hero .display-5{
    font-size: 3rem;
  }
}




/* Team */

.team {
        padding: 36px 0;
        background-color: #f8f9fa;
    }
    .container {
        width: 80%;
        margin: 0 auto;
    }

    h2 {
        text-align: center;
 
    }

    /* Team Grid */
    .team-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    @media (max-width: 900px) {
        .team-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .team-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Team Card Styles */
    .team-card {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        background: #fff;
        transition: transform 0.18s ease, box-shadow 0.18s ease;
        text-align: center;
    }

    .team-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    /* Image Styles */
    .team-photo {
        width: 250%;
        height: 300px; /* Fixed height for uniformity */
        object-fit: cover; /* Ensures images cover the container without stretching */
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .team-card h3 {
        margin: 12px 0;
        font-size: 1.2rem;
        color: #333;
    }

    .role {
        margin: 8px 0;
        font-weight: 600;
        color: #475569;
    }

    .contact {
        font-size: 0.95rem;
        color: #6c757d;
    }

    .contact a {
        color: #007bff;
        text-decoration: none;
    }

    .contact a:hover {
        text-decoration: underline;
    }

/* Footer */
footer.site-footer { background: var(--dark); color: #cbd5e1; padding: 30px 0; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
footer h4 { color: #fff; margin-top: 0; }
footer a { color: #cbd5e1; }
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; background: rgba(244,179,0,.12); color: #6b4a00; font-weight: 700; }
.small { font-size: 14px; }
hr.sep { border: 0; border-top: 1px solid #e5e7eb; margin: 20px 0; }

/* Réactif */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; padding: 10px 0; }
  .nav-links.open { display: flex; }
  footer .cols { grid-template-columns: 1fr; }
}

/* Nav : jamais de soulignement */
.site-header .nav-links a,
.site-header .nav-links a:visited,
.site-header .nav-links a:hover,
.site-header .nav-links a:focus {
  text-decoration: none;
}

/* (optionnel) garder l'effet de survol sans souligner */
.site-header .nav-links a.active,
.site-header .nav-links a:hover {
  background: rgba(10,107,74,.1);
}

.social-icons {
  margin-top: 20px;
}

.social-icon {
  margin-right: 15px;
  font-size: 24px;
  
}

.social-icon:hover {
  color: #007BFF;
}