
:root{
  --green:#009e60;
  --yellow:#ffdf00;
  --red:#ce1126;
  --maroon:#7a0026;
  --dark:#0f172a;
  --light:#ffffff;
  --muted:#f6f7fb;
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;color:#222;background:#ffffff;line-height:1.6;}

.container{max-width:1100px;margin:0 auto;padding:0 1.25rem;}
.header{
  position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:0.8rem 0;}
.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--dark);font-weight:800;}
.brand img{height:36px;}
.nav a{margin-left:1rem;text-decoration:none;color:#333;font-weight:600;}
.nav a.active{color:var(--maroon);}
.nav a:hover{color:var(--green);}

.hero{
  position:relative;min-height:65vh;display:flex;align-items:center;color:white;overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
  z-index:1;
}
.hero img.bg{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:contrast(1.05) saturate(1.03);
}
.hero-content{position:relative;z-index:2;padding:2rem;}
.hero h1{font-size:clamp(2rem,5vw,3.2rem);margin:0 0 .5rem;font-weight:800;}
.hero p{font-size:clamp(1rem,2.5vw,1.25rem);margin:0 0 1rem; max-width:720px;}
.cta{display:flex;gap:.8rem;flex-wrap:wrap;}
.btn{
  display:inline-block;padding:.8rem 1.2rem;border-radius:999px;text-decoration:none;font-weight:700;
}
.btn.brand{background:var(--green);color:white;}
.btn.brand:hover{opacity:.9;}
.btn.ghost{border:2px solid white;color:white;background:transparent;}
.badges{display:flex;gap:.75rem;align-items:center;margin-top:1rem;}
.badges img{height:34px; background:white; border-radius:8px; padding:4px;}

.section{padding:3rem 0;background:#fff;}
.section.alt{background:var(--muted);}
h2.section-title{font-size:2rem;margin:0 0 1rem;}

.grid{display:grid;gap:1rem;}
.grid.cols-3{grid-template-columns:repeat(3,1fr);}
.card{background:white;border-radius:18px;box-shadow:0 6px 22px rgba(0,0,0,.08);padding:1.2rem;}

footer{background:#0c1324;color:#cdd1dc;margin-top:2rem;}
.footer-inner{display:grid;gap:1.2rem;grid-template-columns:2fr 1fr 1fr; padding:2rem 0;}
footer a{color:#e8eaf2;text-decoration:none;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:1rem 0;text-align:center;color:#9aa1b5;}

.banner{
  padding:1rem;border-left:6px solid var(--green);
  background:linear-gradient(90deg, rgba(0,158,96,.08), rgba(255,223,0,.05));
  border-radius:12px;margin:1rem 0;
}
.table{width:100%;border-collapse:separate;border-spacing:0 8px;}
.table tr td{background:#fff;padding:12px;border-radius:10px;}
.table tr td strong{display:block;color:#111;margin-bottom:6px;}

.socials{display:flex;gap:10px;align-items:center;}
.socials a{
  display:inline-flex;align-items:center;gap:8px;
  text-decoration:none;padding:.5rem .8rem;border-radius:10px;background:#f2f3f7;color:#222;font-weight:600;
}
.socials a:hover{background:#e8eaf2;}

@media (max-width:900px){
  .grid.cols-3{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr;}
}
/* --- Liens AESPC (style uniforme pour tout le site) --- */

a {
  color: var(--green);               /* Vert du Sénégal par défaut */
  text-decoration: none;             /* Pas de soulignement de base */
  font-weight: 600;                  /* Légèrement en gras pour la lisibilité */
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--red);                 /* Passe au rouge du drapeau au survol */
  text-decoration: underline;        /* Souligne au survol */
  transform: scale(1.02);            /* Petit effet zoom subtil */
}
/* --- Boutons AESPC aux couleurs du Sénégal --- */

/* Bouton principal (vert par défaut) */
.btn.brand {
  background: var(--green);
  color: white;
  border: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Survol : passe au rouge */
.btn.brand:hover {
  background: var(--red);
  transform: scale(1.05);
}

/* Bouton secondaire (transparent) */
.btn.ghost {
  border: 2px solid white;
  color: white;
  background: transparent;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Survol : devient jaune, texte foncé */
.btn.ghost:hover {
  background: var(--yellow);
  color: var(--dark);
  transform: scale(1.05);
}
/* --- Bordures aux couleurs du Sénégal (vert, jaune, rouge) --- */

/* Bande colorée en haut du site */
.header::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(to right, var(--green), var(--yellow), var(--red));
}

/* Bande colorée en bas du site */
footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(to right, var(--green), var(--yellow), var(--red));
}
.header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.intro-card {
  background: linear-gradient(90deg, rgba(0,158,96,0.1), rgba(255,223,0,0.1));
  border-left: 6px solid var(--green);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.intro-card p {
  margin: 0;
  font-size: 1.1rem;
  color: #111;
  line-height: 1.6;
}

.intro-icon {
  width: 50px;
  flex-shrink: 0;
}
.mission-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--green);
}
.section-subtitle {
  font-size: 1.6rem;
  color: var(--maroon);
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 5px solid var(--yellow);
  padding-left: 0.5rem;
}

.styled-list li {
  margin-bottom: 0.6rem;
  padding-left: 0.4rem;
  font-size: 1.05rem;
  list-style: none;
}
.study-grid {
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.study-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.study-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--maroon);
}

.study-card p {
  margin: 0;
  line-height: 1.6;
}

.study-card.wide {
  grid-column: span 2;
}

.alert-box {
  margin-top: 1rem;
  background: linear-gradient(90deg, rgba(255,223,0,0.1), rgba(206,17,38,0.1));
  border-left: 5px solid var(--red);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #333;
  font-size: 0.95rem;
}
.contact-section {
  background: linear-gradient(180deg, rgba(0,158,96,0.05), rgba(255,223,0,0.05));
  padding-bottom: 4rem;
}

.contact-grid {
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--red);
  text-decoration: underline;
}

.contact-end {
  text-align: center;
  margin-top: 2rem;
  background: rgba(255,223,0,0.15);
  border-left: 6px solid var(--yellow);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  color: #222;
}
.footer {
  background: #0c1324;
  color: #e5e7eb;
  padding-top: 2.5rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-about h3 {
  color: var(--yellow);
  font-weight: 800;
  margin: 0;
  font-size: 1.6rem;
}

.footer-flag {
  width: 40px;
  border-radius: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.footer-about p {
  color: #d1d5db;
  line-height: 1.5;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.5rem;
}

.socials a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  background: var(--green);
  color: white;
}

.footer-contact a, 
.footer-partners a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
}

.footer-contact a:hover,
.footer-partners a:hover {
  color: var(--red);
  text-decoration: underline;
}

.partner-logo {
  height: 40px;
  background: white;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 0;
  text-align: center;
  position: relative;
}

.footer-gradient {
  height: 5px;
  margin-top: 1rem;
  background: linear-gradient(to right, var(--green), var(--yellow), var(--red));
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .socials {
    justify-content: center;
  }
}
/* --- FAQ Section --- */
.faq-container {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  border-left: 5px solid var(--green);
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--maroon);
  font-size: 1.05rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none; /* supprime la flèche par défaut */
}

.faq-item p {
  margin-top: 0.5rem;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

.text-muted {
  color: #555;
  font-style: italic;
  margin-bottom: 1rem;
}
.faq-end {
  text-align: center;
  margin-top: 3rem;
  background: rgba(255,223,0,0.1);
  border-radius: 12px;
  padding: 1.5rem;
}
/* --- Section Nos valeurs et missions --- */
.values {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(180deg, #fff, #fdfaf4);
}

.values .intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.6;
}

.values-grid {
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.value-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.value-card .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
  animation: bounce 3s infinite ease-in-out;
}

.value-card h3 {
  color: var(--maroon);
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.value-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Animation douce pour les icônes */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.values .cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
/* --- Page Qui sommes-nous ? --- */
.about-hero {
  background: linear-gradient(120deg, var(--green), var(--yellow));
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.about-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
}

.about-hero .intro {
  max-width: 720px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-grid {
  align-items: center;
  gap: 2rem;
}

.about-photo {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Missions --- */
.mission-grid .mission-card {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.mission-grid .mission-card:hover {
  transform: translateY(-6px);
}

.mission-grid .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
}

/* --- Équipe --- */
.team-grid {
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.dual-photo {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.dual-photo img {
  width: 48%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
/* --- Contact dans la section équipe --- */
.contact-info {
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

.contact-info a {
  color: var(--maroon);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--yellow);
}
.motto {
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: #009739; /* vert du drapeau sénégalais */
  text-align: center;
  letter-spacing: 0.5px;
}

.motto em {
  color: #009739; /* jaune pour le mot wolof */
  font-style: normal;
}

/* --- Bande défilante "Sénégal rek" --- */
.marquee {
  background: linear-gradient(90deg, #00853f, #ffb612, #e31b23);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 18s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* --- Version mobile (plus lente et plus lisible) --- */
@media (max-width: 768px) {
  .marquee {
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .marquee span {
    animation: scroll-left 25s linear infinite;
  }
}

.center-content {
  text-align: center;
}

.no-events {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.no-events-img {
  width: 180px;
  opacity: 0.85;
}

.no-events p {
  font-size: 1.1rem;
  color: #444;
  font-weight: 600;
}
