:root {
  --primary: #0066cc;
  --secondary: #00aaff;
  --accent: #ffdd57;
  --dark: #003049;
  --light: #f8f9fa;
  --success: #28a745;
  --warning: #ff9800;
  --muted: #6c757d;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================
   NAVBAR + AUTH DROPDOWN
========================= */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.98) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  padding: .5rem 0;
}
.navbar-brand {
  font-size: 1.8rem;
  color: var(--primary) !important;
  font-weight: 800;
}
.navbar-nav .nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  margin: 0 .5rem;
  transition: all .3s ease;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  width: 0; height: 2px;
  background: var(--primary);
  transition: all .3s ease;
  transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 100%; }

/* Toggler mobile */
.navbar-toggler {
  border: none !important;
  padding: .25rem .5rem !important;
  border-radius: .375rem !important;
  background: transparent !important;
}
.navbar-toggler:focus { box-shadow: none !important; outline: none !important; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.navbar .dropdown-menu { z-index: 2000; }

@media (max-width: 991.98px) {
  .navbar-toggler { border-color: rgba(0,0,0,0.1) !important; }
  .navbar-toggler:hover, .navbar-toggler:focus { background-color: rgba(0,0,0,0.05) !important; }
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    border-radius: 10px;
    margin-top: 10px; padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
}

.btn-auth {
  background: linear-gradient(45deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: .5rem 1.5rem !important;
  font-weight: 600 !important;
}
.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,102,204,0.3);
  color: #fff !important;
}

.auth-dropdown {
  border-radius: 15px !important;
  border: none !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
  padding: 1rem !important;
}
.auth-dropdown .dropdown-item {
  border-radius: 10px !important;
  padding: .8rem 1rem !important;
  font-weight: 500;
  transition: all .3s ease;
}
.auth-dropdown .dropdown-item:hover {
  background: linear-gradient(45deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  transform: translateX(5px);
}

/* =========================
   HERO SECTIONS (about/join/contact)
========================= */
.hero, .hero-about, .hero-join, .hero-contact {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero { min-height: 100vh; display: flex; align-items: center; }
.hero-about, .hero-join, .hero-contact { padding: 8rem 0 6rem; }
.hero::before,
.hero-about::before,
.hero-join::before,
.hero-contact::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
}
.hero .container,
.hero-about .container,
.hero-join .container,
.hero-contact .container { position: relative; z-index: 2; }

.hero h1, .hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p, .hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  max-width: 600px;
  opacity: .9;
}

/* Particules décoratives (option) */
.particles { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.particle {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* =========================
   SECTIONS GÉNÉRALES
========================= */
.section { padding: 5rem 0; }
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================
   STATS (compteurs)
========================= */
.stats-section {
  background: #fff;
  margin-top: -3rem;
  position: relative; z-index: 3;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  padding: 3rem 0;
}
.stat-card { text-align: center; padding: 2rem 1rem; }
.stat-number {
  font-size: 3rem; font-weight: 800;
  color: var(--primary); display: block;
  animation: countUp 2s ease-out;
}
.stat-label { font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-top: .5rem; }
@keyframes countUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================
   TIMELINE (Notre histoire)
========================= */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(-50%);
}
.timeline-item { position: relative; margin-bottom: 3rem; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; padding-right: 3rem; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 3rem; }
.timeline-dot {
  position: absolute; top: 20px; width: 20px; height: 20px;
  background: var(--primary); border-radius: 50%; border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}
.timeline-item:nth-child(odd) .timeline-dot { right: -13px; }
.timeline-item:nth-child(even) .timeline-dot { left: -13px; }
.timeline-content {
  background: #fff; padding: 2rem; border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all .3s ease;
}
.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,102,204,0.2); }
.timeline-year { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.timeline-title { font-size: 1.4rem; font-weight: 600; color: var(--dark); margin-bottom: 1rem; }

/* =========================
   TEAM
========================= */
.team-member {
  background: #fff; border-radius: 20px; padding: 2rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all .3s ease; margin-bottom: 2rem;
}
.team-member:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,102,204,0.2); }
.team-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.5rem; border: 4px solid var(--accent);
}
.team-name { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.team-role { color: var(--primary); font-weight: 600; margin-bottom: 1rem; }
.team-bio { color: var(--muted); line-height: 1.6; }

/* =========================
   VALEURS
========================= */
.value-card {
  background: #fff; border-radius: 20px; padding: 2.5rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all .3s ease; height: 100%; position: relative; overflow: hidden;
}
.value-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}
.value-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,102,204,0.2); }
.value-card:hover::before { left: 100%; }
.value-icon {
  width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  font-size: 2rem; color: #fff;
}
.value-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }

/* =========================
   IMPACT
========================= */
.impact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; margin-top: 3rem;
}
.impact-item {
  background: #fff; border-radius: 15px; padding: 2rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-left: 5px solid var(--success);
}
.impact-number { font-size: 2.5rem; font-weight: 800; color: var(--success); display: block; }
.impact-text { color: var(--muted); font-weight: 600; margin-top: .5rem; }

/* =========================
   OPTION CARDS (rejoindre)
========================= */
.option-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 25px; padding: 3rem 2rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  text-align: center; transition: all .3s cubic-bezier(0.4,0,0.2,1);
  height: 100%; position: relative; overflow: hidden;
  border: 3px solid transparent;
}
.option-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}
.option-card:hover { transform: translateY(-15px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.option-card:hover::before { left: 100%; }
.option-card.student { border-color: var(--primary); }
.option-card.volunteer { border-color: var(--success); }
.option-card.partner { border-color: var(--warning); }
.option-icon {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem; font-size: 3rem; color: #fff; position: relative;
}
.option-icon.student { background: linear-gradient(45deg, var(--primary), var(--secondary)); }
.option-icon.volunteer { background: linear-gradient(45deg, var(--success), #20c997); }
.option-icon.partner { background: linear-gradient(45deg, var(--warning), #ff6b35); }
.option-title { font-size: 1.8rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; }
.option-description { color: var(--muted); margin-bottom: 2rem; line-height: 1.6; }
.option-features { list-style: none; padding: 0; margin-bottom: 2rem; text-align: left; }
.option-features li { display: flex; align-items: center; margin-bottom: .8rem; color: var(--muted); }
.option-features li i { color: var(--success); margin-right: .8rem; font-size: 1.1rem; }

/* Boutons */
.btn-join,
.btn-cta {
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all .3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.btn-join {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  text-transform: uppercase;
}
.btn-join::before,
.btn-cta::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}
.btn-join:hover, .btn-cta:hover { transform: translateY(-3px); }
.btn-join:hover::before, .btn-cta:hover::before { left: 100%; }

.btn-join.student { background: linear-gradient(45deg, var(--primary), var(--secondary)); color: #fff; }
.btn-join.volunteer { background: linear-gradient(45deg, var(--success), #20c997); color: #fff; }
.btn-join.partner { background: linear-gradient(45deg, var(--warning), #ff6b35); color: #fff; }

/* Aligner les boutons en bas des cartes */
.option-card .btn-join { margin-top: auto; align-self: center; }

/* =========================
   PROCESSUS
========================= */
.process-section { background: var(--light); }
.process-step {
  background: #fff; border-radius: 20px; padding: 2.5rem; margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all .3s ease; position: relative;
}
.process-step:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,102,204,0.15); }
.process-number {
  position: absolute; top: -15px; left: 30px;
  width: 40px; height: 40px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
}
.process-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin: 0 0 1rem 1rem; }
.process-description { color: var(--muted); line-height: 1.6; }

/* =========================
   TÉMOIGNAGES
========================= */
.testimonial-card {
  background: #fff; border-radius: 20px; padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); text-align: center;
  transition: all .3s ease; height: 100%;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,102,204,0.15); }
.testimonial-photo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.5rem; border: 3px solid var(--accent);
}
.testimonial-text { color: var(--muted); font-style: italic; margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.6; }
.testimonial-author { font-weight: 600; color: var(--dark); }
.testimonial-role { color: var(--primary); font-size: .9rem; }

/* =========================
   FAQ
========================= */
.faq-item {
  background: #fff; border-radius: 15px; margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); overflow: hidden; transition: all .3s ease;
}
.faq-item:hover { box-shadow: 0 10px 25px rgba(0,102,204,0.1); }
.faq-question {
  background: none; border: none; width: 100%; text-align: left;
  padding: 1.5rem 2rem; font-weight: 600; color: var(--dark);
  font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; transition: all .3s ease;
}
.faq-question:hover { background: rgba(0,102,204,0.05); }
.faq-question.active { background: rgba(0,102,204,0.1); color: var(--primary); }
.faq-answer { padding: 0 2rem 1.5rem; color: var(--muted); line-height: 1.6; display: none; }
.faq-answer.show { display: block; animation: fadeInDown .3s ease; }
.faq-icon { transition: transform .3s ease; }
.faq-question.active .faq-icon { transform: rotate(180deg); }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================
   CTA SECTION (unifiée)
========================= */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
}
.cta-section .container { position: relative; z-index: 2; }

.btn-cta {
  background: var(--accent); color: var(--dark);
  padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin: 0 1rem;
}
.btn-cta:hover {
  box-shadow: 0 10px 25px rgba(255,221,87,0.4);
  color: var(--dark);
}

/* =========================
   CONTACT (form + cards + map)
========================= */
.contact-section { padding: 5rem 0; margin-top: -3rem; position: relative; z-index: 3; }
.contact-form-card {
  background: #fff; border-radius: 20px; padding: 3rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1); margin-bottom: 2rem;
}
.form-floating { margin-bottom: 1.5rem; }
.form-control, .form-select {
  border: 2px solid #e9ecef; border-radius: 15px; padding: 1rem; font-size: 1rem; transition: all .3s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(0,102,204,0.25);
}
.btn-submit {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: #fff; border: none; border-radius: 25px; padding: 1rem 3rem;
  font-weight: 600; font-size: 1.1rem; transition: all .3s ease; width: 100%;
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,102,204,0.3); color: #fff; }
.btn-submit:disabled { opacity: .7; transform: none; box-shadow: none; }

.contact-info-card {
  background: #fff; border-radius: 20px; padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); text-align: center;
  transition: all .3s ease; margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.contact-info-card::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
}
.contact-info-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,102,204,0.2); }
.contact-info-card:hover::before { left: 100%; }
.contact-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  font-size: 1.5rem; color: #fff;
}
.contact-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.contact-text { color: var(--muted); margin-bottom: 1rem; font-size: .9rem; }
.contact-link { color: var(--primary); text-decoration: none; font-weight: 600; transition: all .3s ease; font-size: .95rem; }
.contact-link:hover { color: var(--secondary); }

.hours-card {
  background: linear-gradient(135deg, var(--accent), #ffc107);
  color: var(--dark); border-radius: 20px; padding: 1.5rem; text-align: center; margin: 1.5rem 0;
}
.hours-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.hours-list { list-style: none; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0; border-bottom: 1px solid rgba(0,48,73,0.1); font-size: .9rem;
}
.hours-list li:last-child { border-bottom: none; }

.alert-custom { border-radius: 15px; border: none; padding: 1rem 1.5rem; margin-bottom: 1.5rem; display: none; }
.alert-success-custom { background: rgba(40,167,69,0.1); color: var(--success); border-left: 4px solid var(--success); }
.alert-danger-custom { background: rgba(220,53,69,0.1); color: #dc3545; border-left: 4px solid #dc3545; }

.map-section {
  background: #fff; border-radius: 20px; padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-top: 2rem;
}
.map-placeholder {
  height: 400px; background: linear-gradient(135deg, #e9ecef, #f8f9fa);
  border-radius: 15px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: var(--muted); font-size: 1.2rem;
}

/* =========================
   CTA BUTTON GROUP (hero)
========================= */
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================
   FOOTER
========================= */
.footer {
  background: linear-gradient(135deg, var(--dark), #001a2e);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -50px; left: 0; right: 0; height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  clip-path: polygon(0 50px, 100% 0, 100% 50px, 0 100px);
}
.footer a { color: #fff; text-decoration: underline; }

/* =========================
   ANIM UTILES
========================= */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all .6s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
@keyframes slideInUp { to { opacity: 1; transform: translateY(0); } }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .navbar { z-index: 1050 !important; }
  .hero-about, .hero-join, .hero-contact { padding: 6rem 0 4rem; }
  .stats-section { margin-top: -2rem; padding: 2rem 0; }
  .stat-number { font-size: 2.5rem; }
  .timeline::before { left: 20px; }
  .timeline-item {
    width: 100%; left: 0 !important;
    padding-left: 3rem !important; padding-right: 1rem !important;
    text-align: left !important;
  }
  .timeline-dot { left: 7px !important; right: auto !important; }
  .section { padding: 3rem 0; }

  .option-card { margin-bottom: 2rem; padding: 2rem 1.5rem; }
  .option-icon { width: 80px; height: 80px; font-size: 2.5rem; margin-bottom: 1.5rem; }
  .option-title { font-size: 1.5rem; }

  .btn-join, .btn-cta {
    display: block; margin: 1rem auto 0; max-width: 250px;
  }

  .testimonial-card { margin-bottom: 2rem; }
  .process-step { padding: 2rem 1.5rem; margin-left: 1rem; margin-right: 1rem; }

  .contact-form-card { padding: 2rem; margin: 1rem 0; }
  .contact-info-card { margin-bottom: 2rem; }
  .map-section { margin-top: 2rem; }
  .map-placeholder { height: 300px; }
}

/* Respect accessibilité / préférences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Focus visible */
.btn-cta:focus-visible,
.btn-join:focus-visible,
.navbar-nav .nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
