/* ═══════════════════════════════════════════════════════════
   British Academy of Monastir — Public Site
   ═══════════════════════════════════════════════════════════ */

:root {
  --navy-950: #0a1f44;
  --navy-900: #122a52;
  --navy-800: #1b3a68;
  --red-500: #c8202b;
  --red-400: #d94452;
  --red-050: #fdecec;
  --cream-50: #f7f5ef;
  --cream-100: #efece2;
  --slate-700: #334155;
  --slate-600: #4a5568;
  --slate-400: #94a0b3;
  --hairline: #e4e1d6;
  --white: #ffffff;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 4px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 68, 0.10);
  --shadow-lg: 0 20px 48px rgba(10, 31, 68, 0.16);

  --radius-md: 12px;
  --radius-lg: 20px;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-950);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--red-500); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red-500);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(200, 32, 43, 0.28);
}
.btn-primary:hover { background: var(--red-400); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(200, 32, 43, 0.34); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--hairline);
}
.btn-outline:hover { border-color: var(--red-500); color: var(--red-500); transform: translateY(-2px); }

.btn-lg { padding: 14px 28px; font-size: 0.98rem; }
.btn-block { width: 100%; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 0.98rem; color: var(--navy-950); }
.brand-text small { font-size: 0.72rem; color: var(--slate-400); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-600);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--red-500);
  transition: right 0.25s ease;
}
.main-nav a:hover { color: var(--navy-950); }
.main-nav a:hover::after { right: 0; }
.main-nav a.active { color: var(--navy-950); }
.main-nav a.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--cream-50);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--navy-950);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 100px;
  background: linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--cream-50);
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-stripe {
  position: absolute;
  width: 160%;
  height: 140px;
  transform: rotate(-8deg);
}
.stripe-1 { background: rgba(200, 32, 43, 0.14); top: -20px; left: -30%; }
.stripe-2 { background: rgba(255, 255, 255, 0.05); top: 90px; left: -40%; }
.hero-glow {
  position: absolute;
  width: 560px; height: 560px;
  right: -180px; top: -120px;
  background: radial-gradient(circle, rgba(200,32,43,0.35) 0%, transparent 70%);
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(247, 245, 239, 0.82);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }

.hero-note { font-size: 0.78rem; color: rgba(247, 245, 239, 0.6); margin-bottom: 30px; max-width: 440px; }

.hero-trust { display: flex; align-items: center; gap: 22px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); }
.trust-item span { font-size: 0.78rem; color: rgba(247, 245, 239, 0.65); }
.trust-divider { width: 1px; height: 34px; background: rgba(255,255,255,0.18); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }

.hero-badge-ring {
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  animation: floatSlow 6s ease-in-out infinite;
}
.hero-logo { width: 220px; height: 220px; border-radius: 50%; box-shadow: 0 20px 50px rgba(0,0,0,0.35); }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--navy-950);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
}
.floating-card strong { display: block; font-size: 0.82rem; }
.floating-card small { font-size: 0.72rem; color: var(--slate-400); }
.fc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--red-050);
  color: var(--red-500);
  flex-shrink: 0;
}
.fc-icon svg { width: 20px; height: 20px; }
.card-1 { top: 6%; left: -6%; animation: floatSlow 5s ease-in-out infinite; }
.card-2 { bottom: 8%; right: -8%; animation: floatSlow 5.5s ease-in-out infinite reverse; }

/* ── Section shared ──────────────────────────────────────── */
.section { padding: 96px 0; }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { color: var(--slate-600); font-size: 1rem; }

/* ── Trust bar ───────────────────────────────────────────── */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-950);
  font-size: 0.85rem;
  font-weight: 600;
}
.trust-badge svg { color: var(--red-500); flex-shrink: 0; }

/* ── About ───────────────────────────────────────────────── */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-frame {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy-950), var(--navy-800));
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-frame--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.flag-corner {
  position: absolute;
  inset: -40% -40% auto auto;
  width: 60%; height: 60%;
  background: conic-gradient(from 45deg, var(--red-500) 0deg 90deg, transparent 90deg);
  opacity: 0.5;
  border-radius: 50%;
}
.about-frame-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  color: var(--cream-50);
}
.about-frame-emoji { font-size: 3rem; margin-bottom: 16px; }
.about-frame-content p { font-family: var(--font-display); font-weight: 500; max-width: 260px; opacity: 0.9; }

.about-copy .section-eyebrow { margin-bottom: 10px; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 18px; }
.about-copy p { color: var(--slate-600); }

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--navy-950); }
.check-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--red-050); color: var(--red-500);
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}

/* ── Programs ────────────────────────────────────────────── */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.program-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.program-photo {
  margin: -32px -24px 20px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.program-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.program-card:hover .program-photo img { transform: scale(1.06); }
.program-photo + .program-icon {
  margin-top: -50px;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
}
.program-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--red-050);
  color: var(--red-500);
  margin-bottom: 18px;
}
.program-icon svg { width: 26px; height: 26px; }
.program-card h3 { font-size: 1.05rem; display: flex; flex-direction: column; gap: 4px; }
.program-card h3 span { font-size: 0.76rem; font-weight: 500; color: var(--slate-400); text-transform: none; }
.program-card p { color: var(--slate-600); font-size: 0.92rem; margin: 0; }
.program-note { color: var(--slate-400) !important; font-size: 0.78rem !important; margin-top: 8px !important; }

/* ── Community (Events / Sessions / Clubs) ──────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.community-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.community-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.community-icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--red-050);
  color: var(--red-500);
  margin-bottom: 18px;
}
.community-icon svg { width: 26px; height: 26px; }
.community-card h3 { font-size: 1.05rem; }
.community-card p { color: var(--slate-600); font-size: 0.92rem; margin: 0; }

/* ── Photo gallery ───────────────────────────────────────── */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.gallery-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--slate-600);
  background: var(--cream-100);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.gallery-tab:hover { color: var(--navy-950); }
.gallery-tab.active { background: var(--red-500); color: var(--white); }
.gallery-panel[hidden] { display: none; }
.video-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-bottom: 32px;
}
.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.video-frame {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-caption {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-950);
  margin: 0;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.album-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.album-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.album-card:hover img { transform: scale(1.06); }
.album-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  text-align: left;
  color: var(--white);
  background: linear-gradient(0deg, rgba(10,31,68,0.85) 0%, rgba(10,31,68,0.15) 65%, transparent 100%);
}
.album-card-overlay strong { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.25; }
.album-card-overlay small { font-size: 0.78rem; opacity: 0.85; margin-top: 2px; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 28, 0.92);
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(920px, 92vw);
  max-height: 90vh;
}
.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-height: 90vh;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  background: var(--navy-950);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-nav:hover { background: var(--red-500); transform: scale(1.06); }
.lightbox-counter {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.subsection-title {
  text-align: center;
  font-size: 1.1rem;
  color: var(--navy-950);
  margin-bottom: 28px;
}

/* ── Testimonials (carrousel défilant) ──────────────────────
   Piste dupliquée ×2, translateX 0 → -50% : boucle infinie sans
   coupure visible. Défile de droite à gauche, pause au survol,
   désactivé si l'utilisateur préfère moins d'animations ──────── */
.testimonials { background: var(--white); }

.testimonial-marquee {
  position: relative;
  overflow: hidden;
  margin-inline: calc(-1 * 24px);
  padding-inline: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.testimonial-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testimonial-scroll 38s linear infinite;
}

.testimonial-marquee:hover .testimonial-track { animation-play-state: paused; }

@keyframes testimonial-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
}

.testimonial-card {
  flex: 0 0 320px;
  width: 320px;
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
}
.testimonial-card p {
  font-style: italic;
  color: var(--slate-700);
  margin-bottom: 20px;
}
.testimonial-card footer { display: flex; align-items: center; gap: 12px; }
.avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-card footer strong { display: block; font-size: 0.88rem; color: var(--navy-950); }
.testimonial-card footer small { font-size: 0.78rem; color: var(--slate-400); }

.fb-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
}
.fb-cta p { margin: 0; color: var(--slate-600); font-weight: 500; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { background: var(--white); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--navy-950);
}
.faq-question:hover { color: var(--red-500); }
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--red-050);
  color: var(--red-500);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0; color: var(--slate-600); font-size: 0.92rem; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-map {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--red-050);
  color: var(--red-500);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list li strong { display: block; font-size: 0.88rem; color: var(--navy-950); margin-bottom: 2px; }
.contact-list li span, .contact-list li a { display: block; font-size: 0.92rem; color: var(--slate-600); }
.contact-list li a:hover { color: var(--red-500); }
.contact-list li .phone-group a { display: inline; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}
.contact-form h3 { font-size: 1.15rem; margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-950);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy-950);
  background: var(--cream-50);
  border: 1.5px solid var(--hairline);
  border-radius: 9px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(200, 32, 43, 0.12);
}
.form-note { text-align: center; margin: 14px 0 0; font-size: 0.86rem; color: var(--red-500); min-height: 1.2em; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--navy-950); color: rgba(247,245,239,0.75); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 36px;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand strong { color: var(--white); font-family: var(--font-display); font-size: 0.95rem; }
.footer-brand p { margin: 2px 0 0; font-size: 0.78rem; }

.footer-tagline {
  margin: 18px 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 320px;
}

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

.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 0.88rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--white); }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { font-size: 0.88rem; line-height: 1.5; }
.footer-contact a { transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--white); }

.footer-social {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, color 0.2s ease;
}
.footer-social:hover { background: var(--red-500); color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
}
.footer-bottom p { margin: 0; font-size: 0.8rem; text-align: center; }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom a { color: inherit; opacity: 0.75; text-decoration: underline; }
.footer-bottom a:hover { opacity: 1; }

/* ── WhatsApp flottant ───────────────────────────────────── */
.whatsapp-fab {
  position: fixed;
  left: 24px; bottom: 24px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  box-shadow: var(--shadow-md);
  z-index: 400;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }

/* ── Scroll to top ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 400;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--red-500); }

/* ── Scroll-reveal animation ─────────────────────────────── */
[data-animate] { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate="fade-up"] { transform: translateY(24px); }
[data-animate="fade-left"] { transform: translateX(24px); }
[data-animate="fade-right"] { transform: translateX(-24px); }
[data-animate].in-view { opacity: 1; transform: translate(0, 0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }

  /* ── Sur mobile : le texte (titre, accroche, CTA) passe avant
     le visuel, pour ne pas repousser l'essentiel hors écran.
     Le badge est réduit et les cartes flottantes deviennent une
     rangée statique sous le badge au lieu de disparaître ────── */
  .hero-visual {
    flex-direction: column;
    min-height: 0;
    margin-top: 36px;
    gap: 16px;
  }
  .hero-badge-ring { width: 150px; height: 150px; }
  .hero-logo { width: 112px; height: 112px; }

  .floating-card {
    position: static;
    animation: none;
    width: 100%;
    max-width: 220px;
  }
  .card-1, .card-2 { top: auto; left: auto; right: auto; bottom: auto; }
  .hero-floating-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .about-inner { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-form { position: static; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .album-grid { grid-template-columns: 1fr; }
  .testimonial-card { flex-basis: 280px; width: 280px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-col--brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .header-inner.menu-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }

  .header-actions .btn-primary { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 130px 0 70px; }
  .programs-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .fb-cta { flex-direction: column; align-items: flex-start; }
  .testimonial-card { flex-basis: 260px; width: 260px; padding: 22px; }
  .lightbox-inner { gap: 8px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 1.3rem; }
  .lightbox-close { top: -40px; width: 34px; height: 34px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-col--brand { grid-column: span 1; }
  .footer-brand { justify-content: center; }
  .footer-tagline { max-width: none; margin-inline: auto; }
  .footer-socials { justify-content: center; }
  .footer-nav { align-items: center; }
}
