/* =====================================================
   ÉCOLE INTERNATIONALE ALLIANCE DU NIGER
   Fichier: css/style.css
   Design inspiré de eurecole.com
   ===================================================== */

/* ---- Variables CSS ---- */
:root {
  --primary: #1a5276;
  --primary-dark: #154360;
  --primary-light: #2e86c1;
  --gold: #d4ac0d;
  --gold-dark: #b7950b;
  --gold-light: #f4d03f;
  --white: #ffffff;
  --gray-light: #f4f6f8;
  --gray: #e5e8ea;
  --gray-mid: #aab7b8;
  --gray-dark: #555;
  --text: #2c3e50;
  --text-light: #5d6d7e;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.3s ease;
  --font: 'Poppins', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; transition: var(--transition); }

ul { list-style: none; }

/* ---- Utility Classes ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,172,13,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-gold { background: var(--gold-light); color: var(--primary-dark); }
.badge-blue { background: var(--primary-light); color: var(--white); }
.badge-green { background: #27ae60; color: var(--white); }

/* ====================================================
   HEADER / NAVIGATION
   ==================================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

#header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

#header.scrolled .nav-logo-text h1 { color: var(--primary); }
#header.scrolled .nav-logo-text span { color: var(--gold-dark); }
#header.scrolled .nav-links a { color: var(--text); }
#header.scrolled .nav-links a:hover { color: var(--primary); }
#header.scrolled .nav-top { display: none; }

.nav-top {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 6px 0;
  transition: var(--transition);
}

.nav-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-top span { display: flex; align-items: center; gap: 5px; }
.nav-top a { color: rgba(255,255,255,0.85); }
.nav-top a:hover { color: var(--gold-light); }

.navbar {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  transition: var(--transition);
}

#header.scrolled .navbar {
  background: var(--white);
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(212,172,13,0.4);
}

.nav-logo-text h1 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  transition: var(--transition);
}

.nav-logo-text span {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 400;
  display: block;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(212,172,13,0.2);
  color: var(--gold-light);
}

#header.scrolled .nav-links a:hover,
#header.scrolled .nav-links a.active {
  background: var(--gold-light);
  color: var(--primary-dark);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--primary-dark) !important;
  border-radius: 50px !important;
  padding: 9px 20px !important;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#header.scrolled .hamburger span { background: var(--primary); }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================================================
   HERO SLIDER
   ==================================================== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide:nth-child(1) {
  background: linear-gradient(135deg, #1a5276 0%, #154360 30%, #0e2d45 60%, #1a3a5c 100%);
}
.slide:nth-child(2) {
  background: linear-gradient(135deg, #154360 0%, #1a5276 40%, #2e86c1 100%);
}
.slide:nth-child(3) {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a5276 50%, #d4ac0d 100%);
}

/* Decorative patterns on slides */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2;
}

.slide-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.slide-text {
  max-width: 900px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.slide-text h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.slide-text h1 span { color: var(--gold-light); }

.slide-text p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  font-style: italic;
}

.slide-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Slider controls */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px;
  height: 46px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.slider-nav:hover { background: var(--gold); color: var(--primary-dark); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator i { font-size: 1.4rem; display: block; margin-bottom: 4px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ====================================================
   STATS BAR
   ==================================================== */
.stats-bar {
  background: var(--primary-dark);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.stat-item {
  color: var(--white);
  padding: 10px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ====================================================
   SECTION BIENVENUE
   ==================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome-text .section-title { text-align: left; }
.welcome-text .section-title::after { margin-left: 0; }

.welcome-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1rem;
}

.welcome-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.welcome-image {
  position: relative;
}

.welcome-image-main {
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.welcome-image-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.image-badge-floating {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-hover);
  font-weight: 700;
}

.image-badge-floating .number { font-size: 2rem; line-height: 1; }
.image-badge-floating .text { font-size: 0.75rem; }

/* ====================================================
   NOS SITES
   ==================================================== */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.site-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--gold);
}

.site-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.site-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

.site-card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--white), transparent);
}

.site-card-body {
  padding: 28px;
}

.site-card-body h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.site-card-body p {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.site-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.site-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.site-meta i { color: var(--gold-dark); }

/* ====================================================
   NOS NIVEAUX
   ==================================================== */
.niveaux-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.niveau-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.niveau-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.niveau-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.niveau-card:hover::before { transform: scaleX(1); }

.niveau-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.niveau-card:hover .niveau-icon {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
}

.niveau-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.niveau-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.niveau-ages {
  display: inline-block;
  background: var(--gray-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ====================================================
   ACTUALITÉS
   ==================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-card-img {
  height: 190px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}

.news-card-img .news-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.news-card-body {
  padding: 24px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-card-body h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.news-read-more {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-read-more:hover { color: var(--primary); gap: 10px; }

/* ====================================================
   TÉMOIGNAGES
   ==================================================== */
.testimonials-section {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0;
}

.testimonials-section .section-title { color: var(--white); }

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.testimonial-slide.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.testimonial-quote {
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.92;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar {
  width: 54px; height: 54px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.author-info strong { display: block; font-size: 1rem; }
.author-info span { font-size: 0.82rem; opacity: 0.75; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.t-dot.active { background: var(--gold); }

/* ====================================================
   CTA SECTION
   ==================================================== */
.cta-section {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--primary-dark);
  opacity: 0.85;
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}
.btn-dark:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ====================================================
   FOOTER
   ==================================================== */
footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo-icon {
  width: 46px; height: 46px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.footer-brand-text h3 {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

.footer-brand-text span {
  font-size: 0.75rem;
  color: var(--gold-light);
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 2px;
  background: var(--gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-links a i { font-size: 0.7rem; color: var(--gold); }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.footer-contact-list i {
  color: var(--gold);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: var(--gold-light); }

/* ====================================================
   PAGE INTÉRIEURE - HERO
   ==================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 140px 0 70px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto 20px;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  opacity: 0.75;
  position: relative;
}

.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { opacity: 0.5; }

/* ====================================================
   FORMULAIRES
   ==================================================== */
.form-section {
  padding: 80px 0;
  background: var(--gray-light);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.form-title {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.form-description {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

label .required { color: #e74c3c; margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}

textarea { min-height: 130px; resize: vertical; }

select { cursor: pointer; }

.form-error {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 5px;
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  background: #d5f5e3;
  color: #1e8449;
  border: 1px solid #a9dfbf;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 0.95rem;
  display: none;
  align-items: center;
  gap: 10px;
}

.form-success.visible { display: flex; }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--gray);
  border-radius: var(--radius-sm);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-area:hover { border-color: var(--primary); background: rgba(26,82,118,0.03); }
.file-upload-area i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.file-upload-area p { font-size: 0.88rem; color: var(--text-light); }
.file-upload-area strong { color: var(--primary); }

/* ====================================================
   ESPACE PARENTS - Login
   ==================================================== */
.login-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
}

.login-box {
  background: var(--white);
  border-radius: 20px;
  padding: 50px 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  text-align: center;
}

.login-logo {
  width: 70px; height: 70px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin: 0 auto 20px;
}

.login-box h2 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.login-box > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.login-box .form-group { text-align: left; }

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-mid);
}

.input-icon-wrapper input {
  padding-left: 40px;
}

.forgot-link {
  text-align: right;
  font-size: 0.83rem;
  margin-top: 6px;
}

.forgot-link a { color: var(--primary-light); }
.forgot-link a:hover { text-decoration: underline; }

/* Dashboard */
.dashboard-wrapper {
  display: none;
  min-height: 100vh;
  background: var(--gray-light);
}

.dashboard-wrapper.active { display: flex; }

.dashboard-sidebar {
  width: 260px;
  background: var(--primary-dark);
  color: var(--white);
  flex-shrink: 0;
  padding: 30px 0;
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
}

.dash-sidebar-header {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  margin-bottom: 20px;
}

.dash-sidebar-header .logo-icon {
  width: 56px; height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 0 auto 12px;
}

.dash-sidebar-header h3 { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.dash-sidebar-header p { font-size: 0.75rem; opacity: 0.6; }

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.dash-nav a:hover,
.dash-nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  padding-left: 30px;
}

.dash-nav a.active { border-left: 3px solid var(--gold); }
.dash-nav a i { width: 18px; text-align: center; font-size: 0.95rem; }

.dash-main {
  flex: 1;
  margin-left: 260px;
  padding: 90px 32px 40px;
  min-height: 100vh;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.dash-header h1 { font-size: 1.5rem; color: var(--primary); font-weight: 700; }
.dash-header p { font-size: 0.85rem; color: var(--text-light); }

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.dash-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  flex-shrink: 0;
}

.dash-card-icon.blue { background: var(--primary); }
.dash-card-icon.gold { background: var(--gold); color: var(--primary-dark); }
.dash-card-icon.green { background: #27ae60; }
.dash-card-icon.red { background: #e74c3c; }

.dash-card-info strong { display: block; font-size: 1.4rem; color: var(--primary); font-weight: 800; }
.dash-card-info span { font-size: 0.82rem; color: var(--text-light); }

.dash-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  display: none;
}

.dash-section.active { display: block; }

.dash-section h2 {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-light);
}

/* ====================================================
   GALERIE
   ==================================================== */
.gallery-filter {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--gray);
  background: var(--white);
  color: var(--text-light);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,82,118,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-bg { transform: scale(1.05); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay i { font-size: 2rem; color: var(--white); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
  max-width: 900px;
  width: 90%;
  text-align: center;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -40px; right: 0;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: var(--transition);
}

.lightbox-close:hover { color: var(--gold); }

.lightbox-img {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.lightbox-caption {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

/* ====================================================
   TÉLÉCHARGEMENTS
   ==================================================== */
.download-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.download-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }

.download-icon {
  width: 46px; height: 46px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}

.download-icon.pdf { background: #e74c3c; }
.download-icon.doc { background: #2980b9; }
.download-icon.xls { background: #27ae60; }

.download-info { flex: 1; }
.download-info h4 { font-size: 0.95rem; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.download-info span { font-size: 0.8rem; color: var(--text-light); }

.download-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.download-btn:hover { background: var(--gold); color: var(--primary-dark); }

/* ====================================================
   CONTACT
   ==================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.contact-info-card h4 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 3rem;
  margin-top: 16px;
  overflow: hidden;
  position: relative;
}

/* ====================================================
   TABLES (admin-style)
   ==================================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  background: var(--gray-light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--gray);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text);
}

.data-table tr:hover td { background: rgba(26,82,118,0.03); }

/* ====================================================
   AOS Animations (custom)
   ==================================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-left"] { transform: translateX(-20px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(20px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .niveaux-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .welcome-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 20px; flex-direction: column; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { color: rgba(255,255,255,0.9) !important; padding: 12px 16px; border-radius: var(--radius-sm); }
  .hamburger { display: flex; }

  .sites-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.65rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col:not(:first-child) { display: none; }
  .footer-col:first-child { display: block; }

  .dashboard-sidebar { width: 100%; position: relative; min-height: auto; }
  .dash-main { margin-left: 0; }
  .dashboard-wrapper { flex-direction: column; }

  .login-box { padding: 36px 24px; }

  .slide-buttons { flex-direction: column; align-items: center; }

  .nav-top-inner { display: none; }
}

@media (max-width: 480px) {
  .niveaux-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ====================================================
   SCROLL TO TOP
   ==================================================== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  color: var(--white);
}

/* ====================================================
   NOTIFICATIONS / ALERTS
   ==================================================== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-success { background: #d5f5e3; color: #1e8449; border: 1px solid #a9dfbf; }
.alert-error { background: #fadbd8; color: #922b21; border: 1px solid #f5b7b1; }
.alert-info { background: #d6eaf8; color: #1a5276; border: 1px solid #a9cce3; }
.alert-warning { background: #fef9e7; color: #7d6608; border: 1px solid #f9e79f; }

/* ====================================================
   CATEGORIES TABS
   ==================================================== */
.cat-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  justify-content: center;
}

.cat-tab {
  padding: 9px 22px;
  border-radius: 50px;
  background: var(--white);
  border: 2px solid var(--gray);
  color: var(--text-light);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cat-tab:hover,
.cat-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ====================================================
   PRELOADER
   ==================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--primary-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 80px; height: 80px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-dark);
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.preloader p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-family: var(--font);
}

/* Print styles */
@media print {
  header, footer, .scroll-top, .preloader { display: none; }
  body { color: #000; }
}
