/* ============================================================
   THE FRENCH INSTITUTE — Design tokens (matches existing brand)
   ============================================================ */
:root {
  --purple: #3B2A8C;
  --purple-dark: #241a5c;
  --blue-light: #D9EEF9;
  --blue-lighter: #EFF8FC;
  --cream: #EFE6D8;
  --navy-text: #201A3D;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --gold-line: #C9A94E;
  --max-width: 1180px;
  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(59, 42, 140, 0.10);
}

@font-face {
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  color: var(--navy-text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--purple);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

.shout {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--purple);
}

.script {
  font-family: 'Parisienne', cursive;
  font-weight: 400;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--blue { background: var(--blue-light); }
.section--cream { background: var(--cream); }
.section--tight { padding: 48px 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(59,42,140,0.08);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex;
  gap: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { border-color: var(--purple); }
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    border-bottom: 1px solid rgba(59,42,140,0.08);
  }
  .nav__links.is-open { max-height: 400px; }
  .nav__links a { padding: 14px 24px; border-bottom: 1px solid rgba(59,42,140,0.06); }
  .nav__toggle {
    display: block;
    background: none; border: none; cursor: pointer;
    font-size: 1.6rem; color: var(--purple);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--blue-light);
  color: var(--purple-dark);
  box-shadow: 0 6px 0 var(--purple-dark);
}
.btn--primary:hover { box-shadow: 0 8px 0 var(--purple-dark); }
.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 0 var(--whatsapp-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.btn--whatsapp:hover { box-shadow: 0 8px 0 var(--whatsapp-dark); }
.btn--outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}

/* ---------- WhatsApp floating button (every page) ---------- */
.wa-float {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
main { padding-bottom: 90px; }
@media (max-width: 700px) {
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  main { padding-bottom: 80px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: start;
  padding: 50px 0 40px;
}
.hero h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.hero__checks { list-style: none; padding: 0; margin: 24px 0; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.hero__checks li { margin-bottom: 10px; padding-left: 28px; position: relative; }
.hero__checks li::before { content: "✔"; position: absolute; left: 0; color: var(--purple); font-weight: 700; }
.hero__img { position: relative; max-width: 380px; margin: 0 auto; }
.hero__img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
}

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid rgba(59,42,140,0.12);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.card h3 { font-family: 'Poppins', sans-serif; color: var(--purple); font-size: 1.05rem; margin-bottom: 10px; }
.card p { font-family: 'Poppins', sans-serif; font-size: 0.92rem; color: #4a4468; }

.stat-band {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  gap: 20px;
}
.stat-band .num { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--purple); font-weight: 700; }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr; } }

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  border-bottom: 6px solid var(--purple);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: #4a4468;
}
.testimonial .stars { color: #E8B923; letter-spacing: 2px; margin-bottom: 8px; }
.testimonial .name { font-weight: 600; color: var(--purple); }

/* ---------- Testimonials marquee ---------- */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marqueeScroll 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.testimonial--card {
  flex: 0 0 260px;
  background: var(--white);
  border-radius: var(--radius);
  border-bottom: 5px solid var(--purple);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  height: 190px;
}
.testimonial--card .stars { color: #E8B923; letter-spacing: 2px; margin-bottom: 8px; font-size: 0.85rem; }
.testimonial--card p.quote {
  font-size: 0.85rem;
  color: #4a4468;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  flex: 1;
  margin: 0 0 10px;
}
.testimonial--card .name { font-weight: 600; color: var(--purple); font-size: 0.85rem; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 700px) { .marquee__track { animation-duration: 22s; } }

/* ---------- Compact program cards ---------- */
.program-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--blue-light);
  display: flex;
  flex-direction: column;
}
.program-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.program-card__title {
  background: var(--cream);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: var(--purple);
  padding: 12px 18px;
}
.program-card__body { padding: 16px 18px 20px; font-family: 'Poppins', sans-serif; font-size: 0.88rem; color: #3d3760; flex: 1; display: flex; flex-direction: column; }
.program-card__body ul { margin: 8px 0; padding-left: 18px; }
.program-card__body li { margin-bottom: 4px; }
.program-card__body a { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--purple); text-decoration: underline; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; padding-top: 8px; }

/* ---------- Compact blog cards ---------- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.blog-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.blog-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.blog-card__body h3 { font-size: 1rem; margin: 0 0 8px; line-height: 1.3; }
.blog-card__body h3 a { color: var(--purple); text-decoration: none; }
.blog-card__body p { font-family: 'Poppins', sans-serif; font-size: 0.85rem; color: #4a4468; margin: 0 0 10px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.blog-card__body a.read-more { margin-top: auto; font-weight: 700; color: var(--purple); font-size: 0.82rem; text-decoration: none; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--blue-light);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 16px;
}
.faq-item summary {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--purple);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { font-family: 'Poppins', sans-serif; font-size: 0.92rem; margin-top: 10px; color: #4a4468; }

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-light);
  padding: 28px 0 18px;
  font-family: 'Poppins', sans-serif;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}
.footer h4 { font-family: 'Poppins', sans-serif; color: var(--purple); font-size: 0.95rem; margin-bottom: 6px; }
.footer a { display: block; margin-bottom: 5px; font-size: 0.88rem; color: #4a4468; }
.footer .socials { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.footer .socials img, .footer .socials svg { width: 22px; height: 22px; object-fit: contain; }
.footer__bottom {
  text-align: center;
  font-size: 0.78rem;
  color: #6a6488;
  margin-top: 16px;
}
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.eyebrow {
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 600;
}
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.badge-row img { height: 42px; width: auto; opacity: 0.85; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--purple); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
