/* --- RESET & VARIABLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --violet: #8B5CF6;
  --indigo: #4F46E5;
  --violet-clair: #C4B5FD;
  --gradient-accent: linear-gradient(135deg, #4F46E5, #8B5CF6);
  --gradient-hero: linear-gradient(135deg, #07090E 0%, #151330 40%, #200D42 80%, #3B1078 100%);
  --bleu-fonce: #0F172A;
  --gris-clair: #f8f7fc;
  --blanc: #ffffff;
  --shadow-soft: 0 8px 32px rgba(79, 70, 229, 0.08);
  --shadow-medium: 0 12px 48px rgba(79, 70, 229, 0.12);
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gris-clair);
  color: #1a1a2e;
  line-height: 1.7;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* --- PARTICULES (canvas) --- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- MODAL PUBLICITAIRE SIAE --- */
.siae-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.siae-modal-overlay.active {
  display: flex;
}
.siae-modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: modalScaleUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalScaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.close-siae-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  transition: 0.2s;
}
.close-siae-modal:hover {
  color: var(--bleu-fonce);
}
.siae-modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}
.siae-modal-header h3 {
  font-size: 1.5rem;
  color: var(--bleu-fonce);
  margin: 0;
}

/* --- HEADER & LOGO --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 5%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}
header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blanc);
  letter-spacing: -0.5px;
}
header .logo span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.9rem;
  transition: 0.3s;
}
header nav a:hover {
  color: var(--violet-clair);
}
.menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 5% 60px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  color: white;
  margin-bottom: 15px;
  letter-spacing: -1.5px;
}
.hero h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub-slogan {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 750px;
  margin: 0 auto 35px;
  font-weight: 300;
}
.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 50px;
}
.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-primary {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(79, 70, 229, 0.6);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
}
.btn-outline:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--violet);
  transform: translateY(-3px);
}
.btn-secondary {
  background: white;
  color: var(--bleu-fonce);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  background: #f1f5f9;
}

/* --- ENCARTS HERO --- */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.card-offre {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  color: white;
  transition: 0.3s ease;
}
.card-offre:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--violet);
}
.card-offre i {
  font-size: 1.6rem;
  color: var(--violet-clair);
  margin-bottom: 12px;
}
.card-offre h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.card-offre p {
  opacity: 0.7;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* --- CARTES CLIQUABLES --- */
#decouvrir {
  background: white;
  padding: 90px 5%;
}
.cartes-decouvrir {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.carte-cliquable {
  background: var(--gris-clair);
  border: 1px solid rgba(79, 70, 229, 0.06);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: left;
  transition: all 0.4s ease;
  display: block;
}
.carte-cliquable:hover {
  transform: translateY(-8px);
  background: white;
  border-color: var(--violet);
  box-shadow: var(--shadow-medium);
}
.carte-cliquable i {
  font-size: 2.2rem;
  color: var(--violet);
  margin-bottom: 18px;
  display: block;
}
.carte-cliquable h3 {
  font-size: 1.25rem;
  color: var(--bleu-fonce);
  margin-bottom: 10px;
  font-weight: 700;
}
.carte-cliquable p {
  color: #666;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.carte-cliquable .lien {
  color: var(--indigo);
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- SECTIONS --- */
section {
  padding: 90px 5%;
  max-width: 1280px;
  margin: 0 auto;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--bleu-fonce);
  letter-spacing: -0.5px;
}
.section-sub {
  color: #666;
  margin-bottom: 45px;
  font-size: 1.05rem;
}

/* --- ACCORDÉON --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(79, 70, 229, 0.04);
}
.accordion-header {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--bleu-fonce);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 24px;
  color: #555;
}
.accordion-item.active .accordion-body {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* --- GALERIE & LIGHTBOX --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 220px;
  background: #e2e8f0;
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: white;
  font-weight: 600;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 12px; }
.close-lightbox { position: absolute; top: 25px; right: 35px; font-size: 2.5rem; color: white; cursor: pointer; }

/* --- À PROPOS --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-grid .values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.about-grid .values span {
  background: var(--bleu-fonce);
  color: white;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
}
.image-placeholder {
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=600&h=400&fit=crop');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  height: 300px;
  box-shadow: var(--shadow-medium);
}

/* --- PARTENAIRES --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.partner-card {
  background: white;
  border-radius: 18px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: 0.3s;
}
.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}
.partner-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.partner-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* --- ÉVÉNEMENT --- */
#evenement {
  background: linear-gradient(135deg, #0f172a, #312e81);
  color: white;
  border-radius: 24px;
  margin: 40px auto;
  max-width: 1200px;
}
.cd-item {
  background: rgba(255,255,255,0.08);
  padding: 12px 18px;
  border-radius: 12px;
  min-width: 70px;
}
.cd-item span { font-size: 24px; font-weight: bold; }

/* --- CONTACT --- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-wrap form {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.contact-wrap input, .contact-wrap textarea {
  width: 100%;
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 15px;
}
.contact-wrap textarea { min-height: 110px; }

/* --- ACTUALITÉS --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.news-card img { width: 100%; height: 170px; object-fit: cover; }
.news-card .content { padding: 20px; }
.news-card .date { color: var(--violet); font-size: 0.8rem; font-weight: bold; display: block; margin-bottom: 6px; }

/* --- FOOTER, WHATSAPP & ÉTIQUETTE FLOTTANTE --- */
footer {
  background: var(--bleu-fonce);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 30px;
  margin-top: 50px;
}
footer .socials { display: flex; justify-content: center; gap: 15px; margin-bottom: 10px; font-size: 1.2rem; }
footer .socials a { color: white; opacity: 0.6; transition: 0.3s; }
footer .socials a:hover { opacity: 1; color: var(--violet-clair); }

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
}

.siae-floating-tab {
  position: fixed;
  bottom: 95px;
  right: 25px;
  background: white;
  padding: 8px;
  border-radius: 50px;
  box-shadow: c0 8px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  z-index: 988;
  border: 2px solid var(--violet);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.siae-floating-tab img {
  height: 35px;
  width: 35px;
  object-fit: contain;
  border-radius: 50%;
}
.siae-floating-tab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

/* --- ANIMATIONS REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media(max-width: 900px) {
  .hero-cards, .cartes-decouvrir, .partners-grid, .about-grid, .contact-wrap {
    grid-template-columns: 1fr;
  }
  header nav { display: none; }
  .menu-toggle { display: block; }
}

/* --- MENU MOBILE RESPONSIVE --- */
@media(max-width: 900px) {
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    gap: 15px;
  }
  header nav.active {
    display: flex;
  }
  header nav a {
    font-size: 1.1rem;
    padding: 8px 0;
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
}