/* ================================================================
   École fondamentale Sainte-Marie Heusy – stylesheet v2
   Redesigned for warmth, character, and Belgian heritage elegance
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,400;1,600&display=swap');

/* ── Variables ────────────────────────────────────────────────── */
:root {
  /* Core teal palette */
  --teal:        #3e797b;
  --teal-dark:   #2d5a5c;
  --teal-deeper: #1a3a3c;
  --teal-light:  #a8d8dc;
  --teal-pale:   #e8f4f5;

  /* Gold – primary accent */
  --gold:        #88865b;
  --gold-dark:   #6b6944;
  --gold-light:  #c4c09a;
  --gold-pale:   #f7f6ef;

  /* Rose */
  --rose:        #b05070;
  --rose-pale:   #faedf2;

  /* Green */
  --green:       #3e8d7d;
  --green-pale:  #e6f4f1;

  /* Neutrals – warm, not cold */
  --cream:       #faf8f3;
  --cream-dark:  #ede9df;
  --white:       #ffffff;
  --text:        #1c2020;
  --text-mid:    #4a5252;
  --text-light:  #7a8888;

  /* Shadows */
  --shadow-xs:   0 1px 4px rgba(28,32,32,.05);
  --shadow-sm:   0 3px 18px rgba(28,32,32,.08);
  --shadow-md:   0 8px 36px rgba(28,32,32,.11);
  --shadow-lg:   0 20px 64px rgba(28,32,32,.16);

  /* Layout */
  --radius:      16px;
  --radius-sm:   8px;
  --header-h:    76px;

  /* Motion */
  --ease-out:    cubic-bezier(.2,.8,.2,1);
  --ease-io:     cubic-bezier(.4,0,.2,1);
  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --transition-slow: .5s cubic-bezier(.2,.8,.2,1);
}

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

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  line-height: 1.15;
  font-weight: 600;
}

/* ── Container ────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ================================================================
   HEADER
================================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  z-index: 900;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform .35s var(--ease-io);
}

#header.scrolled {
  border-bottom-color: var(--cream-dark);
  box-shadow: 0 2px 28px rgba(28,32,32,.09);
}

#header.hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.logo { height: 48px; width: auto; object-fit: contain; }

/* Nav */
#main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}

#main-nav a {
  font-family: 'Oswald', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 8px 16px;
  border-radius: 40px;
  color: var(--text-mid);
  transition: color var(--transition), background var(--transition);
}

#main-nav a:hover {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

#main-nav a.active {
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-weight: 600;
}

/* Contact nav item gets a filled pill */
#main-nav ul li:last-child a {
  background: var(--teal);
  color: var(--white);
  border-radius: 40px;
}

#main-nav ul li:last-child a:hover {
  background: var(--teal-dark);
  color: var(--white);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.burger span {
  display: block;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform .3s var(--ease-io), opacity .3s var(--ease-io);
}

/* JS adds .active to burger, .open to nav */
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  animation: heroPan 14s var(--ease-out) forwards;
}

@keyframes heroPan {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

.hero-bg.loaded { /* retained for compatibility */ }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(26,58,60,.42) 0%,
    rgba(26,58,60,.74) 45%,
    rgba(20,44,46,.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 28px;
  max-width: 800px;
  animation: heroFadeUp 1.1s var(--ease-out) both;
}

/* Gold hairline ornament above eyebrow */
.hero-content::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 0 auto 22px;
}

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

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  opacity: .9;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
  text-shadow: 0 3px 28px rgba(0,0,0,.28);
  margin-bottom: 0;
}

/* Gold separator line between h1 and tagline */
.hero-content h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
  margin: 22px auto;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 44px;
  line-height: 1.6;
}

.btn-hero {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 42px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 50px;
  background: transparent;
  color: var(--white);
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-hero:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--teal-deeper);
  box-shadow: 0 8px 36px rgba(255,255,255,.18);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.45);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  animation: scrollBounce 2.6s ease-in-out infinite;
  transition: color var(--transition), border-color var(--transition);
}

.scroll-hint:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.45); }
.scroll-hint svg { width: 20px; height: 20px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .5; }
  55%       { transform: translateX(-50%) translateY(7px); opacity: 1; }
}

/* ================================================================
   SECTIONS – common
================================================================ */
.section { padding: 100px 0; position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 68px;
  position: relative;
}

/* Large watermark number — purely decorative */
.section-ecole .section-header::before,
.section-equipes .section-header::before,
.section-pratique .section-header::before,
.section-contact .section-header::before {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Oswald', sans-serif;
  font-size: clamp(7rem, 18vw, 14rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.section-ecole .section-header::before    { content: "01"; color: var(--teal); opacity: .045; }
.section-equipes .section-header::before  { content: "02"; color: var(--white); opacity: .05; }
.section-pratique .section-header::before { content: "03"; color: var(--teal); opacity: .045; }
.section-contact .section-header::before  { content: "04"; color: var(--white); opacity: .055; }

/* Ensure text sits above watermark */
.section-header > * { position: relative; z-index: 1; }

/* Section number chip — now styled as a flanked label */
.section-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-number::before,
.section-number::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  opacity: .7;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  color: var(--teal-deeper);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

.section-lead {
  font-size: 1.06rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.78;
}

/* Dark-section overrides */
.section-header--light .section-number,
.section-header--white .section-number    { color: var(--gold-light); }
.section-header--light .section-number::before,
.section-header--light .section-number::after,
.section-header--white .section-number::before,
.section-header--white .section-number::after { background: var(--gold-light); }
.section-header--light h2,
.section-header--white h2                 { color: var(--white); }
.section-header--light .section-lead,
.section-header--white .section-lead      { color: rgba(255,255,255,.62); }

/* ================================================================
   SECTION 01 – NOTRE ÉCOLE
================================================================ */
.section-ecole { background: var(--cream); }

.schools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 80px;
}

.school-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  border: 1px solid rgba(28,32,32,.05);
  position: relative;
}

/* Gold-to-teal accent stripe on top, revealed on hover */
.school-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.school-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.school-card:hover::before { opacity: 1; }

.school-card-img {
  position: relative;
  height: 264px;
  overflow: hidden;
}

.school-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease-out);
}

.school-card:hover .school-card-img img { transform: scale(1.06); }

.school-card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(26,58,60,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,.14);
}

.school-card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.school-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }

.chip {
  display: inline-block;
  font-size: .73rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 40px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.chip--teal  { background: var(--teal-pale); color: var(--teal-dark); border: 1px solid #b8dfe2; }
.chip--green { background: var(--green-pale); color: #2d6357; border: 1px solid #b0d8cf; }
.chip--rose  { background: var(--rose-pale); color: var(--rose); border: 1px solid #f0c0cf; }

.school-card-body p { color: var(--text-mid); font-size: .95rem; line-height: 1.74; }

.card-quote {
  margin-top: auto;
  padding: 16px 20px 16px 22px;
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--gold-dark);
  line-height: 1.6;
}

/* NOS VALEURS */
.values-block {
  background: linear-gradient(135deg, var(--teal-deeper) 0%, #254c4e 55%, #1c4238 100%);
  border-radius: var(--radius);
  padding: 68px 56px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.values-block::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 70px solid rgba(255,255,255,.03);
  pointer-events: none;
}

.values-block::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 50px solid rgba(255,255,255,.03);
  pointer-events: none;
}

.values-title {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 0;
}

.values-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  margin: 14px auto 40px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.value-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid rgba(196,192,154,.22);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  transition: background var(--transition), border-top-color var(--transition), transform var(--transition);
}

.value-card:hover {
  background: rgba(255,255,255,.11);
  border-top-color: var(--gold-light);
  transform: translateY(-4px);
}

.quote-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5rem;
  line-height: .75;
  color: var(--gold-light);
  opacity: .55;
  margin-bottom: 16px;
  font-style: italic;
}

.value-card p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
}

/* ================================================================
   SECTION 02 – NOS ÉQUIPES
================================================================ */
.section-equipes {
  background: linear-gradient(160deg, var(--teal-deeper) 0%, #233e40 100%);
  color: var(--white);
}

.section-equipes .section-header h2   { color: var(--white); }
.section-equipes .section-lead        { color: rgba(255,255,255,.62); }
.section-equipes .section-number      { color: var(--gold-light); }
.section-equipes .section-number::before,
.section-equipes .section-number::after { background: var(--gold-light); opacity: .7; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 52px rgba(0,0,0,.32);
  border-color: rgba(196,192,154,.25);
}

.team-card img {
  width: 100%;
  height: 288px;
  object-fit: cover;
  object-position: top;
  transition: transform .65s var(--ease-out);
  filter: brightness(.88) saturate(.85);
}

.team-card:hover img {
  transform: scale(1.05);
  filter: brightness(.98) saturate(1);
}

.team-card figcaption {
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  transition: color var(--transition);
}

.team-card:hover figcaption { color: var(--gold-light); }

/* ================================================================
   SECTION 03 – EN PRATIQUE
================================================================ */
.section-pratique { background: var(--cream); }

.pratique-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.pratique-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid rgba(28,32,32,.05);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

/* Teal-to-gold bottom stripe on hover */
.pratique-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}

.pratique-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(62,121,123,.12);
}

.pratique-card:hover::after { transform: scaleX(1); }

.pratique-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--gold-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition);
}

.pratique-card:hover .pratique-icon { transform: scale(1.1) rotate(-6deg); }

.pratique-icon svg { width: 26px; height: 26px; stroke: var(--teal); }

.pratique-card h3 {
  font-size: 1.05rem;
  color: var(--teal-deeper);
  margin-bottom: 10px;
  letter-spacing: .02em;
}

.pratique-card p {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.68;
}

.pratique-cta { text-align: center; }

.btn-doc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 15px 36px;
  background: var(--teal-deeper);
  color: var(--white);
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-doc svg { width: 18px; height: 18px; }

.btn-doc:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ================================================================
   SECTION 04 – CONTACT
================================================================ */
.section-contact {
  background: linear-gradient(160deg, var(--teal-deeper) 0%, #18302e 100%);
  color: var(--white);
}

.section-contact .section-number      { color: var(--gold-light); }
.section-contact .section-number::before,
.section-contact .section-number::after { background: var(--gold-light); opacity: .7; }
.section-contact .section-header h2   { color: var(--white); }
.section-contact .section-lead        { color: rgba(255,255,255,.6); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 44px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(196,192,154,.22);
  transform: translateY(-3px);
}

.contact-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Gold dot accent before title */
.contact-card h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-light);
  flex-shrink: 0;
}

.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: .95rem;
  color: rgba(255,255,255,.78);
}

.contact-list svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--gold-light);
  opacity: .75;
}

.contact-list a {
  color: var(--teal-light);
  transition: color var(--transition);
}

.contact-list a:hover { color: var(--white); }

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 26px;
  border: 1.5px solid rgba(196,192,154,.4);
  border-radius: 40px;
  color: var(--gold-light);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-map svg { width: 16px; height: 16px; }

.btn-map:hover {
  background: var(--gold-light);
  color: var(--teal-deeper);
  border-color: var(--gold-light);
}

/* ================================================================
   FOOTER
================================================================ */
footer {
  background: var(--teal-deeper);
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 52px;
  padding-top: 64px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
  opacity: .75;
}

.footer-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.footer-motto {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: .97rem;
  color: var(--gold-light);
  opacity: .7;
  line-height: 1.55;
}

.footer-links h4,
.footer-social-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .75;
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--teal-light); }

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

.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.5);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.footer-social a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: rgba(196,192,154,.08);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  text-align: center;
  padding: 22px 24px;
  font-size: .79rem;
  color: rgba(255,255,255,.28);
  letter-spacing: .05em;
}

/* ================================================================
   RESPONSIVE
================================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .team-grid        { grid-template-columns: repeat(2, 1fr); }
  .pratique-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-inner     { grid-template-columns: 1fr 1fr; }
  .footer-social-col { grid-column: span 2; }
  .values-block     { padding: 52px 36px; }
  .values-grid      { gap: 16px; }
  .contact-card     { padding: 36px; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .burger { display: flex; }

  #main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 12px 48px rgba(28,32,32,.13);
    padding: 14px 20px 22px;
  }

  #main-nav.open { display: block; }

  #main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  #main-nav a  { display: block; padding: 12px 16px; font-size: .95rem; border-radius: var(--radius-sm); }
  #main-nav ul li:last-child a { border-radius: var(--radius-sm); }

  .section { padding: 68px 0; }
  .section-header { margin-bottom: 44px; }

  /* Hide watermarks – too intrusive on mobile */
  .section-ecole .section-header::before,
  .section-equipes .section-header::before,
  .section-pratique .section-header::before,
  .section-contact .section-header::before { display: none; }

  .schools-grid   { grid-template-columns: 1fr; gap: 24px; }
  .school-card-img { height: 220px; }
  .school-card-body { padding: 26px; }

  .values-grid    { grid-template-columns: 1fr; gap: 14px; }
  .values-block   { padding: 40px 22px; }

  .team-grid      { grid-template-columns: 1fr 1fr; gap: 14px; }
  .team-card img  { height: 210px; }

  .pratique-grid  { grid-template-columns: 1fr 1fr; }
  .pratique-card  { padding: 26px 18px; }

  .contact-grid   { grid-template-columns: 1fr; }
  .contact-card   { padding: 30px 24px; }

  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
  .footer-social-col { grid-column: auto; }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .team-grid      { grid-template-columns: 1fr; }
  .pratique-grid  { grid-template-columns: 1fr; }
  .schools-grid   { gap: 18px; }
  .btn-hero       { padding: 14px 32px; }
  .contact-card   { padding: 24px 18px; }
}

/* ── Scroll-reveal animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.school-card.reveal:nth-child(2)             { transition-delay: .12s; }
.value-card.reveal:nth-child(2)              { transition-delay: .1s;  }
.value-card.reveal:nth-child(3)              { transition-delay: .2s;  }
.team-card.reveal:nth-child(2)               { transition-delay: .07s; }
.team-card.reveal:nth-child(3)               { transition-delay: .14s; }
.team-card.reveal:nth-child(4)               { transition-delay: .21s; }
.pratique-card.reveal:nth-child(2)           { transition-delay: .07s; }
.pratique-card.reveal:nth-child(3)           { transition-delay: .14s; }
.pratique-card.reveal:nth-child(4)           { transition-delay: .21s; }
.contact-card.reveal:nth-child(2)            { transition-delay: .1s;  }
