/* ========================================================
   ECOLE INTERNATIONALE ALLIANCE DU NIGER
   Feuille de style principale
   Couleurs officielles:
   - Rouge principal:    #E52B2D
   - Bleu accent:        #1EA7D7
   - Jaune/Or:           #F4C414
   - Vert:               #3C9B4A
   - Or décoratif:       #C9A24A
   - Fond sombre:        #1F2D3D
   - Blanc:              #FFFFFF
   ======================================================== */

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rouge:    #E52B2D;
  --bleu:     #1EA7D7;
  --jaune:    #F4C414;
  --vert:     #3C9B4A;
  --or:       #C9A24A;
  --sombre:   #1F2D3D;
  --gris-clair: #F7F9FC;
  --gris-texte: #555;
  --blanc:    #FFFFFF;
  --radius:   12px;
  --radius-pill: 50px;
  --shadow:   0 4px 24px rgba(0,0,0,.12);
  --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--sombre);
  background: var(--blanc);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--sombre);
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--rouge);
  margin: .7rem auto 0;
  border-radius: 2px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--rouge);
  color: var(--blanc);
  border-color: var(--rouge);
}
.btn-primary:hover { background: #c01f21; border-color: #c01f21; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(229,43,45,.35); }

.btn-secondary {
  background: var(--jaune);
  color: var(--sombre);
  border-color: var(--jaune);
}
.btn-secondary:hover { background: #d4a800; border-color: #d4a800; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--blanc);
  border-color: var(--blanc);
}
.btn-outline:hover { background: var(--blanc); color: var(--sombre); }

.btn-blue {
  background: var(--bleu);
  color: var(--blanc);
  border-color: var(--bleu);
}
.btn-blue:hover { background: #1789b0; border-color: #1789b0; transform: translateY(-2px); }

/* ── TOP BAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--sombre);
  color: rgba(255,255,255,.7);
  font-size: .8rem;
  padding: .4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.topbar a { color: rgba(255,255,255,.8); transition: color var(--transition); }
.topbar a:hover { color: var(--jaune); }
.topbar-left { display: flex; gap: 1.5rem; }
.topbar-right { display: flex; gap: 1rem; align-items: center; }
.topbar i { margin-right: .3rem; }

/* ── HEADER / NAVBAR ─────────────────────────────────────── */
.navbar {
  background: var(--sombre);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 72px;
}

/* Logo capsule */
.nav-logo {
  display: flex;
  align-items: center;
  background: var(--blanc);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  padding: .5rem 1.5rem .5rem .5rem;
  margin: .5rem 0;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 54px;
  width: auto;
}
.nav-logo-text {
  line-height: 1.1;
}
.nav-logo-text strong {
  display: block;
  font-size: 1.05rem;
  color: var(--sombre);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.nav-logo-text span {
  font-size: .7rem;
  color: var(--rouge);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}
.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-links > li > a {
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  font-weight: 600;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: color var(--transition), background var(--transition);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: var(--jaune);
  background: rgba(255,255,255,.07);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--sombre);
  min-width: 220px;
  border-top: 3px solid var(--rouge);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 200;
}
.nav-links > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  color: rgba(255,255,255,.85);
  padding: .7rem 1.2rem;
  font-size: .85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: all var(--transition);
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,.1);
  color: var(--jaune);
  padding-left: 1.5rem;
}

/* CTA in nav */
.nav-cta {
  display: flex;
  align-items: center;
  padding: 0 .75rem;
}
.nav-cta .btn { font-size: .8rem; padding: .55rem 1.2rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  color: var(--blanc);
  font-size: 1.5rem;
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-fluid { width: 100%; }

/* ── HERO SLIDER ─────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 580px;
  background: var(--sombre);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanc);
  padding: 2rem;
  gap: 1.2rem;
}
.slide-tag {
  background: var(--rouge);
  color: var(--blanc);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .35rem 1rem;
  border-radius: var(--radius-pill);
}
.slide-content h1 {
  color: var(--blanc);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  max-width: 750px;
}
.slide-content p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 600px;
}
.slide-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,.6);
}
.slider-dot.active { background: var(--blanc); transform: scale(1.3); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  border: none;
  color: var(--blanc);
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.slider-arrow:hover { background: var(--rouge); }
.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

/* ── ANNOUNCEMENT BAR ────────────────────────────────────── */
.announce-bar {
  background: var(--jaune);
  color: var(--sombre);
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 1rem;
  position: relative;
}
.announce-bar a { color: var(--rouge); text-decoration: underline; }
.announce-close {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.1);
  border: none;
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── SECTIONS SPACING ────────────────────────────────────── */
section { padding: 4.5rem 0; }
section.tight { padding: 2.5rem 0; }

/* ── PRÉSENTATION (about intro) ──────────────────────────── */
.about-intro {
  background: var(--blanc);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-text p { color: var(--gris-texte); margin-bottom: 1rem; }
.about-text .slogan {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--sombre);
  border-left: 4px solid var(--rouge);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  line-height: 1.7;
}
.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-img img { width: 100%; height: 380px; object-fit: cover; }

/* ── CHIFFRES CLÉS ───────────────────────────────────────── */
.stats-band {
  background: var(--sombre);
  color: var(--blanc);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 1rem; }
.stat-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--jaune);
  line-height: 1;
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .3rem;
}

/* ── NIVEAUX CARDS ───────────────────────────────────────── */
.niveaux {
  background: var(--gris-clair);
}
.niveaux-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.niveau-card {
  background: var(--blanc);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.niveau-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.niveau-card-img {
  height: 200px;
  overflow: hidden;
}
.niveau-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.niveau-card:hover .niveau-card-img img { transform: scale(1.07); }
.niveau-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.niveau-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .2rem .7rem;
  border-radius: var(--radius-pill);
  margin-bottom: .6rem;
}
.badge-rouge   { background: rgba(229,43,45,.1); color: var(--rouge); }
.badge-bleu    { background: rgba(30,167,215,.1); color: var(--bleu); }
.badge-vert    { background: rgba(60,155,74,.1);  color: var(--vert); }
.badge-jaune   { background: rgba(244,196,20,.15); color: #9a7a00; }

.niveau-card-body h3 { margin-bottom: .5rem; }
.niveau-card-body p  { color: var(--gris-texte); font-size: .9rem; flex: 1; }
.niveau-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  color: var(--rouge);
  font-weight: 700;
}

/* ── FEATURE TEAL BLOCK ──────────────────────────────────── */
.feature-block {
  background: var(--bleu);
  border-radius: var(--radius);
  padding: 3.5rem;
  margin: 0 1.5rem;
  position: relative;
  overflow: hidden;
  color: var(--blanc);
}
.feature-block::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}
.feature-block::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.feature-block .section-title { color: var(--blanc); }
.feature-block .section-title::after { background: var(--jaune); }
.feature-block p { color: rgba(255,255,255,.88); max-width: 750px; margin: 0 auto 1.5rem; text-align: center; }
.feature-block-btns { text-align: center; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── ACTUALITÉS ──────────────────────────────────────────── */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.actu-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blanc);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.actu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.actu-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.actu-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.actu-card:hover .actu-img img { transform: scale(1.06); }
.actu-date {
  position: absolute;
  bottom: 0; left: 0;
  background: var(--rouge);
  color: var(--blanc);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 0 var(--radius) 0 0;
}
.actu-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.actu-cat {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--bleu);
  margin-bottom: .4rem;
}
.actu-body h3 { font-size: 1rem; margin-bottom: .5rem; }
.actu-body p  { font-size: .87rem; color: var(--gris-texte); flex: 1; }
.actu-body a  { margin-top: 1rem; color: var(--rouge); font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; }
.actu-body a:hover { color: var(--sombre); }
.actu-body a i { transition: transform var(--transition); }
.actu-body a:hover i { transform: translateX(4px); }

/* ── GALERIE ─────────────────────────────────────────────── */
.galerie { background: var(--gris-clair); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: .8rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item.wide  { grid-column: span 2; }
.gallery-item.tall  { grid-row:    span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s, filter .5s;
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(.75); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(229,43,45,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--blanc);
  font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── TÉMOIGNAGES ─────────────────────────────────────────── */
.temoignages { background: var(--blanc); }
.temoignages-slider {
  position: relative;
  overflow: hidden;
}
.temoignages-track {
  display: flex;
  transition: transform .5s ease;
}
.temoignage-card {
  min-width: 100%;
  padding: 0 3rem;
  text-align: center;
}
.temoignage-quote {
  font-size: 3rem;
  color: var(--rouge);
  line-height: 1;
  margin-bottom: .5rem;
}
.temoignage-card p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gris-texte);
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.8;
}
.temoignage-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.temoignage-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gris-clair);
  overflow: hidden;
  border: 3px solid var(--rouge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.temoignage-info strong { display: block; font-size: .95rem; }
.temoignage-info small  { color: var(--gris-texte); font-size: .82rem; }
.stars { color: var(--jaune); font-size: .9rem; }
.temoignages-nav {
  display: flex;
  justify-content: center;
  gap: .8rem;
  margin-top: 2rem;
}

/* ── INSCRIPTION CTA ──────────────────────────────────────── */
.inscription-cta {
  background: linear-gradient(135deg, var(--rouge) 0%, #8b0000 100%);
  color: var(--blanc);
  text-align: center;
  padding: 4rem 0;
}
.inscription-cta h2 { color: var(--blanc); margin-bottom: 1rem; }
.inscription-cta p  { opacity: .9; max-width: 650px; margin: 0 auto 2rem; }
.inscription-cta .btn-secondary { font-size: 1.05rem; padding: .9rem 2.5rem; }

/* ── ESPACE PARENTS ──────────────────────────────────────── */
.espace-parents-band {
  background: var(--vert);
  color: var(--blanc);
  padding: 2.5rem 0;
}
.espace-parents-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.espace-parents-band h3 { color: var(--blanc); margin-bottom: .3rem; }
.espace-parents-band p  { opacity: .85; font-size: .95rem; }

/* ── CONTACT BAND ─────────────────────────────────────────── */
.contact-band {
  background: var(--gris-clair);
  padding: 4rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--rouge);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blanc);
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-item strong { display: block; margin-bottom: .2rem; }
.contact-item span   { color: var(--gris-texte); font-size: .9rem; }

/* ── FORM STYLES ─────────────────────────────────────────── */
.form-card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--sombre);
  margin-bottom: .4rem;
}
.form-group label .required { color: var(--rouge); }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #e8e8e8;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--sombre);
  transition: border-color var(--transition);
  background: #fafafa;
}
.form-control:focus {
  outline: none;
  border-color: var(--bleu);
  background: var(--blanc);
}
.form-control.error { border-color: var(--rouge); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint   { font-size: .78rem; color: var(--gris-texte); margin-top: .3rem; }
.form-success {
  background: rgba(60,155,74,.1);
  border: 2px solid var(--vert);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--vert);
  font-weight: 600;
  display: none;
}
.form-success i { font-size: 2.5rem; display: block; margin-bottom: .5rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--sombre);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .nav-logo-text strong { color: var(--blanc); }
.footer-brand .nav-logo-text span   { color: var(--jaune); }
.footer-about {
  margin-top: 1rem;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
}
.footer-socials {
  display: flex;
  gap: .75rem;
  margin-top: 1.2rem;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--rouge); color: var(--blanc); transform: translateY(-2px); }

.footer-col h4 {
  color: var(--blanc);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--rouge);
  display: inline-block;
}
.footer-col ul li {
  margin-bottom: .6rem;
}
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.footer-col ul li a:hover { color: var(--jaune); padding-left: .3rem; }
.footer-col ul li a i { font-size: .7rem; color: var(--rouge); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: var(--jaune); }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  background: var(--gris-clair);
  padding: .8rem 0;
  font-size: .85rem;
}
.breadcrumb ol { display: flex; gap: .5rem; align-items: center; list-style: none; }
.breadcrumb li + li::before { content: '›'; color: var(--rouge); margin-right: .5rem; }
.breadcrumb a { color: var(--rouge); }
.breadcrumb li:last-child { color: var(--gris-texte); }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  background: var(--sombre);
  color: var(--blanc);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(229,43,45,.3), transparent);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--blanc); margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 0 60px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--rouge);
  color: var(--blanc);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--blanc);
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-nav:hover { background: var(--rouge); }
.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--blanc);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  position: relative;
  animation: modalIn .4s ease;
}
@keyframes modalIn {
  from { transform: scale(.92) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  background: var(--sombre);
  color: var(--blanc);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.modal-header h3 { color: var(--blanc); flex: 1; }
.modal-close {
  background: var(--rouge);
  border: none;
  color: var(--blanc);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-body { padding: 1.5rem; }
.modal-body ul { list-style: none; }
.modal-body ul li {
  padding: .6rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.modal-body ul li i { color: var(--rouge); }

/* ── BACK TO TOP ─────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  background: var(--rouge);
  color: var(--blanc);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 500;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { background: var(--sombre); }

/* ── TABS ────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .8rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gris-texte);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.tab-btn:hover   { color: var(--rouge); }
.tab-btn.active  { color: var(--rouge); border-bottom-color: var(--rouge); }
.tab-content     { display: none; }
.tab-content.active { display: block; }

/* ── DOCUMENT CARDS ──────────────────────────────────────── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.doc-card {
  background: var(--blanc);
  border: 2px solid #f0f0f0;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.doc-card:hover { border-color: var(--rouge); box-shadow: var(--shadow); transform: translateY(-2px); }
.doc-icon {
  font-size: 2rem;
  color: var(--rouge);
  flex-shrink: 0;
}
.doc-info { flex: 1; }
.doc-info strong { display: block; font-size: .9rem; color: var(--sombre); }
.doc-info small  { color: var(--gris-texte); font-size: .78rem; }
.doc-download {
  background: var(--rouge);
  color: var(--blanc);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  transition: var(--transition);
  text-decoration: none;
}
.doc-download:hover { background: var(--sombre); }

/* ── INSCRIPTION STEPS ───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.step::after {
  content: '→';
  position: absolute;
  right: -1rem;
  top: 1.8rem;
  font-size: 1.5rem;
  color: var(--rouge);
}
.step:last-child::after { display: none; }
.step-num {
  width: 52px; height: 52px;
  background: var(--rouge);
  color: var(--blanc);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 1rem;
}
.step h4 { font-size: .95rem; margin-bottom: .3rem; }
.step p  { font-size: .82rem; color: var(--gris-texte); }

/* ── ACCREDITATION LOGOS ──────────────────────────────────── */
.accred-band {
  background: var(--blanc);
  padding: 2rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.accred-band .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.accred-item {
  text-align: center;
  font-size: .8rem;
  color: var(--gris-texte);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.accred-icon {
  font-size: 2rem;
  color: var(--rouge);
  display: block;
  margin-bottom: .4rem;
}

/* ── ADMIN STYLES ────────────────────────────────────────── */
.admin-sidebar {
  width: 260px;
  background: var(--sombre);
  color: var(--blanc);
  min-height: 100vh;
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-main { margin-left: 260px; padding: 2rem; background: var(--gris-clair); min-height: 100vh; }
.admin-logo { padding: 1rem 1.5rem 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo img { height: 50px; margin-bottom: .5rem; }
.admin-logo span { display: block; font-size: .7rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.admin-nav { padding: 1rem 0; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.07);
  color: var(--blanc);
  border-left-color: var(--rouge);
}
.admin-nav a i { width: 18px; text-align: center; font-size: 1rem; }
.admin-nav .nav-section-title {
  padding: 1.2rem 1.5rem .4rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.35);
}
.admin-header {
  background: var(--blanc);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-header h1 { font-size: 1.3rem; color: var(--sombre); }
.admin-card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  margin-bottom: 1.5rem;
}
.admin-card h2 {
  font-size: 1rem;
  color: var(--sombre);
  margin-bottom: 1.2rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--gris-clair);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.admin-card h2 i { color: var(--rouge); }
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  border-left: 4px solid var(--rouge);
}
.stat-card:nth-child(2) { border-color: var(--bleu); }
.stat-card:nth-child(3) { border-color: var(--vert); }
.stat-card:nth-child(4) { border-color: var(--jaune); }
.stat-card-icon {
  font-size: 2rem;
  opacity: .8;
}
.stat-card-num { font-size: 1.8rem; font-weight: 900; color: var(--sombre); line-height: 1; }
.stat-card-label { font-size: .78rem; color: var(--gris-texte); text-transform: uppercase; letter-spacing: .05em; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th {
  background: var(--gris-clair);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gris-texte);
}
.admin-table td { padding: .75rem 1rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }
.badge-status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
}
.badge-new      { background: rgba(30,167,215,.15); color: var(--bleu); }
.badge-traite   { background: rgba(60,155,74,.15); color: var(--vert); }
.badge-attente  { background: rgba(244,196,20,.2); color: #9a7a00; }
.btn-sm { padding: .3rem .75rem; font-size: .78rem; }

/* ── UTILITIES ───────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-rouge   { color: var(--rouge); }
.text-bleu    { color: var(--bleu); }
.text-vert    { color: var(--vert); }
.text-jaune   { color: var(--jaune); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .niveaux-grid  { grid-template-columns: repeat(2, 1fr); }
  .actu-grid     { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
  .steps         { grid-template-columns: repeat(2, 1fr); }
  .steps .step::after { display: none; }
  .stat-cards    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar          { display: none; }
  .nav-toggle      { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sombre);
    flex-direction: column;
    padding: 1rem 0;
    border-top: 2px solid var(--rouge);
    z-index: 1000;
  }
  .nav-links.open  { display: flex; }
  .nav-links > li  { border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-links > li > a { padding: .85rem 1.5rem; }
  .dropdown-menu   {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: rgba(255,255,255,.04);
  }
  .navbar          { position: relative; }
  .nav-cta         { padding: .75rem 1.5rem; }
  .hero-slider     { height: 420px; }
  .about-grid      { grid-template-columns: 1fr; }
  .about-img       { order: -1; }
  .contact-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .niveaux-grid    { grid-template-columns: 1fr; }
  .actu-grid       { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .feature-block   { margin: 0 0; border-radius: 0; padding: 2.5rem 1.5rem; }
  .form-grid-2     { grid-template-columns: 1fr; }
  .temoignage-card { padding: 0 1rem; }
  .admin-sidebar   { transform: translateX(-100%); transition: transform .3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main      { margin-left: 0; padding: 1rem; }
  .stat-cards      { grid-template-columns: 1fr 1fr; }
  .steps           { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-slider    { height: 340px; }
  .slide-btns     { flex-direction: column; align-items: center; }
  .gallery-grid   { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .stat-cards     { grid-template-columns: 1fr; }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .navbar, .topbar, footer, #back-to-top { display: none; }
  body { color: #000; }
}
