/* Le Maestro Academy - Propulse build. Hand-written static CSS. */

:root {
  --navy: #14366B;
  --navy-deep: #0E2750;
  --azur: #2E83C9;
  --azur-soft: #5AA3DC;
  --beige: #F3ECE0;
  --beige-card: #FBF7F0;
  --beige-deep: #E9DFCD;
  --ink: #1B2433;
  --ink-soft: #4A5568;
  --line: #DED2BC;
  --line-navy: rgba(255, 255, 255, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 54, 107, 0.06), 0 4px 14px rgba(20, 54, 107, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 54, 107, 0.10), 0 2px 6px rgba(20, 54, 107, 0.06);
  --shadow-lg: 0 24px 60px rgba(14, 39, 80, 0.16);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--beige);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }

.hero, .section, .cta-band, .site-header, .site-footer, .wave-section, main { max-width: 100%; }
iframe, img, svg, video { max-width: 100%; }

.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--azur);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  flex-wrap: wrap;
}
.eyebrow::before { flex-shrink: 0; }
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--azur);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(20, 54, 107, 0.22);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 54, 107, 0.28); }
.btn-accent {
  background: var(--azur);
  color: #fff;
  box-shadow: 0 8px 22px rgba(46, 131, 201, 0.28);
}
.btn-accent:hover { background: #2675b6; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(46, 131, 201, 0.34); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(20, 54, 107, 0.04); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 236, 224, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(222, 210, 188, 0.7);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 50px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links > li > a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 10px 15px;
  border-radius: 999px;
  position: relative;
  transition: color .2s, background .2s;
  display: inline-block;
}
.nav-links > li > a:hover { color: var(--navy); background: rgba(20, 54, 107, 0.05); }
.nav-links > li > a.active { color: var(--navy); }
.nav-links > li > a.active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--azur);
}
.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-cta .btn { padding: 12px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  border: none; background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s;
}

/* Mega menu (Nos matières) */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(760px, 90vw);
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s var(--ease), transform .32s var(--ease), visibility .28s;
  z-index: 70;
}
.mega::before {
  content: "";
  position: absolute;
  top: -8px; left: 50%;
  width: 16px; height: 16px;
  background: var(--beige-card);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 6px 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mega-head h4 { font-size: 1.05rem; }
.mega-head a { font-weight: 700; font-size: 0.82rem; color: var(--azur); }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
.mega-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border-radius: 12px;
  transition: background .2s, transform .2s var(--ease);
}
.mega-item:hover { background: #fff; transform: translateX(4px); box-shadow: var(--shadow-sm); }
.mega-item strong { font-size: 0.95rem; color: var(--navy); font-weight: 700; }
.mega-item span { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 84px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -180px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(46, 131, 201, 0.16), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  margin: 22px 0 22px;
}
.hero h1 .accent { color: var(--azur); font-style: italic; }
.hero-lead {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 38px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta-item strong { font-family: "Fraunces", serif; font-size: 1.7rem; color: var(--navy); line-height: 1; }
.hero-meta-item span { font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }

/* Hero visual card */
.hero-visual {
  position: relative;
}
.hero-card {
  position: relative;
  background: var(--navy);
  border-radius: 26px;
  padding: 46px 40px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #fff;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(46, 131, 201, 0.55), transparent 70%);
}
.hero-card-logo { position: relative; z-index: 1; }
.hero-card-logo img { width: min(280px, 70%); height: auto; margin-bottom: 26px; }
.hero-card h3 {
  color: #fff; position: relative; z-index: 1;
  font-size: 1.3rem; margin-bottom: 6px;
}
.hero-card p { position: relative; z-index: 1; color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.hero-card-list { position: relative; z-index: 1; list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.hero-card-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.92); }
.hero-card-list li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--azur-soft); }
.hero-float {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
}
.hero-float .pill { width: 42px; height: 42px; border-radius: 12px; background: var(--azur); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.hero-float .pill svg { width: 22px; height: 22px; }
.hero-float strong { display: block; font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--navy); line-height: 1.1; }
.hero-float span { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 86px 0; }
.section-tight { padding: 64px 0; }
.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin: 18px 0 16px;
}
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }

.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .section-head p { color: rgba(255,255,255,0.74); }
.bg-cream { background: var(--beige-card); }

/* ---------- Feature / approach cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--azur-soft); }
.feature-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(46, 131, 201, 0.12);
  color: var(--azur);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative;
  padding: 30px 24px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-navy);
}
.step-num {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  color: var(--azur-soft);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  opacity: 0.95;
}
.step h4 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,0.72); font-size: 0.92rem; }

/* ---------- Matières grid ---------- */
.subj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.subj-card {
  position: relative;
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.subj-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azur), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.subj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--azur-soft); }
.subj-card:hover::after { transform: scaleX(1); }
.subj-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--azur); margin-bottom: 12px;
}
.subj-card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.subj-card p { color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; margin-bottom: 18px; }
.subj-card .level {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 18px;
}
.subj-card .level svg { width: 16px; height: 16px; color: var(--azur); }
.subj-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9rem; color: var(--navy);
  transition: gap .25s var(--ease);
}
.subj-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.subj-card:hover .subj-link { gap: 12px; }
.subj-card:hover .subj-link svg { transform: translateX(3px); }

/* ---------- Detailed subject rows (nos-matieres page) ---------- */
.subj-detail {
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  scroll-margin-top: 110px;
}
.subj-detail .sd-head h3 { font-size: 1.7rem; margin-bottom: 12px; }
.subj-detail .sd-meta { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.subj-detail .sd-meta-item { display: flex; gap: 12px; align-items: flex-start; }
.subj-detail .sd-meta-item svg { width: 20px; height: 20px; color: var(--azur); flex-shrink: 0; margin-top: 2px; }
.subj-detail .sd-meta-item strong { display: block; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); font-family: "Manrope", sans-serif; margin-bottom: 1px; }
.subj-detail .sd-meta-item span { font-size: 0.95rem; color: var(--ink-soft); }
.subj-detail .sd-body p { color: var(--ink-soft); margin-bottom: 16px; }
.subj-detail .sd-obj { list-style: none; display: grid; gap: 10px; margin: 16px 0 26px; }
.subj-detail .sd-obj li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; }
.subj-detail .sd-obj li svg { width: 20px; height: 20px; color: var(--azur); flex-shrink: 0; margin-top: 2px; }
.subj-detail .sd-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--azur); margin-bottom: 8px; display: block;
}

/* ---------- Concours ---------- */
.concours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.concours-card {
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.concours-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.cc-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--azur); background: rgba(46, 131, 201, 0.1);
  padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
}
.concours-card h3 { font-size: 1.42rem; margin-bottom: 8px; }
.concours-card > p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 22px; }
.cc-infos {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 22px;
  display: grid;
  gap: 11px;
}
.cc-infos li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; align-items: baseline; }
.cc-infos li span:first-child { color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.cc-infos li span:first-child svg { width: 16px; height: 16px; color: var(--azur); }
.cc-infos li span:last-child { font-weight: 700; color: var(--navy); text-align: right; }
.cc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cc-price { display: flex; flex-direction: column; }
.cc-price strong { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--navy); line-height: 1; }
.cc-price span { font-size: 0.78rem; color: var(--ink-soft); }
.cc-foot .btn { padding: 12px 22px; font-size: 0.9rem; }

.note-bar {
  display: flex; align-items: center; gap: 14px;
  background: rgba(46, 131, 201, 0.08);
  border: 1px solid rgba(46, 131, 201, 0.22);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-top: 32px;
  font-size: 0.96rem;
  color: var(--navy);
  font-weight: 600;
}
.note-bar svg { width: 24px; height: 24px; color: var(--azur); flex-shrink: 0; }

/* ---------- Split (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split-media.navy { background: var(--navy); }
.split-badge {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  background: rgba(14, 39, 80, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
}
.split-badge strong { display: block; font-family: "Fraunces", serif; font-size: 1.05rem; }
.split-badge span { font-size: 0.85rem; color: rgba(255,255,255,0.78); }
.split-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.split-copy p { color: var(--ink-soft); margin-bottom: 18px; }
.split-copy p strong { color: var(--navy); }
.sig { margin-top: 26px; }
.sig strong { font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--navy); display: block; }
.sig span { font-size: 0.88rem; color: var(--ink-soft); }

.about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.about-value { display: flex; gap: 14px; align-items: flex-start; }
.about-value svg { width: 24px; height: 24px; color: var(--azur); flex-shrink: 0; margin-top: 2px; }
.about-value h4 { font-family: "Manrope", sans-serif; font-size: 1rem; color: var(--navy); margin-bottom: 3px; }
.about-value p { font-size: 0.9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 18px; }
.ci-card {
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.ci-card .ci-ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(46,131,201,0.12); color: var(--azur); display: grid; place-items: center; flex-shrink: 0; }
.ci-card .ci-ico svg { width: 22px; height: 22px; }
.ci-card strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); margin-bottom: 3px; }
.ci-card p, .ci-card a { color: var(--ink-soft); font-size: 0.98rem; }
.ci-card a:hover { color: var(--azur); }
.hours-list { list-style: none; }
.hours-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.hours-list li:last-child { border-bottom: none; }
.hours-list li span:first-child { color: var(--ink-soft); }
.hours-list li span:last-child { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-frame iframe { display: block; }

/* WhatsApp CTA */
.whatsapp-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: #25D366; color: #073d20;
  font-weight: 700; font-size: 1rem;
  padding: 16px 30px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.28);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
}
.whatsapp-cta svg { width: 22px; height: 22px; }
.whatsapp-cta:hover { transform: translateY(-2px); background: #1fbe5a; box-shadow: 0 16px 34px rgba(37, 211, 102, 0.34); }

/* ---------- Forms (booking + contact) ---------- */
.form-card {
  background: var(--beige-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--azur);
  box-shadow: 0 0 0 4px rgba(46, 131, 201, 0.14);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314366B' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 42px;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem; font-weight: 600;
  padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; transition: all .2s var(--ease); color: var(--ink-soft);
}
.chip:hover { border-color: var(--azur-soft); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.form-submit { width: 100%; margin-top: 8px; }
.form-banner {
  display: none;
  align-items: center; gap: 12px;
  background: rgba(46, 131, 201, 0.1);
  border: 1px solid rgba(46, 131, 201, 0.28);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.94rem; color: var(--navy); font-weight: 600;
}
.form-banner.show { display: flex; }
.form-banner svg { width: 20px; height: 20px; color: var(--azur); flex-shrink: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; text-align: center; padding: 70px 28px; }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 540px; margin: 0 auto 30px; font-size: 1.06rem; }
.cta-band .hero-actions { justify-content: center; }
.cta-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-glow::before, .cta-glow::after {
  content: ""; position: absolute; border-radius: 50%;
}
.cta-glow::before { width: 420px; height: 420px; top: -200px; left: -120px; background: radial-gradient(circle, rgba(46,131,201,0.4), transparent 70%); }
.cta-glow::after { width: 380px; height: 380px; bottom: -200px; right: -100px; background: radial-gradient(circle, rgba(46,131,201,0.3), transparent 70%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.94rem; max-width: 300px; line-height: 1.7; }
.footer-col h5 { color: #fff; font-family: "Manrope", sans-serif; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { font-size: 0.94rem; transition: color .2s; }
.footer-col a:hover { color: var(--azur-soft); }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.94rem; margin-bottom: 12px; }
.footer-contact li svg { width: 18px; height: 18px; color: var(--azur-soft); flex-shrink: 0; margin-top: 3px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  font-size: 0.86rem;
}
.footer-bottom a.credit { color: rgba(255,255,255,0.6); }
.footer-bottom a.credit:hover { color: var(--azur-soft); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* Hero load animation */
.hero-anim > * { opacity: 0; transform: translateY(22px); animation: heroUp .9s var(--ease) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .05s; }
.hero-anim > *:nth-child(2) { animation-delay: .15s; }
.hero-anim > *:nth-child(3) { animation-delay: .25s; }
.hero-anim > *:nth-child(4) { animation-delay: .35s; }
.hero-anim > *:nth-child(5) { animation-delay: .45s; }
.hero-visual { opacity: 0; transform: translateY(30px) scale(.98); animation: heroUp 1s var(--ease) .3s forwards; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* Bottom decorative wave (scours-style) */
.foot-wave { display: block; width: 100%; height: 90px; }
.foot-wave path { fill: var(--navy-deep); }
.wave-section { position: relative; background: var(--beige); line-height: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .subj-grid { grid-template-columns: 1fr 1fr; }
  .concours-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-media img { aspect-ratio: 16/10; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .subj-detail { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-accent { padding: 10px 18px; font-size: 0.85rem; }

  /* Mobile menu panel */
  .nav-links {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--beige-card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  body.nav-open .nav-links { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links > li > a { padding: 13px 14px; font-size: 1rem; border-radius: 12px; }
  .nav-links > li > a.active::after { display: none; }
  .nav-links > li > a.active { background: rgba(20,54,107,0.06); }
  /* On mobile, show matières as plain links */
  .mega {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; box-shadow: none; border: none; background: transparent;
    width: auto; padding: 4px 0 8px 14px; box-shadow: none;
  }
  .mega::before { display: none; }
  .mega-head { display: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 0; }
  .mega-item { padding: 9px 12px; }
  .mega-item span { display: none; }

  .feature-grid, .steps, .subj-grid, .about-values, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 50px 0 58px; }
  .section { padding: 60px 0; }
  .form-card { padding: 26px 20px; }
  .subj-detail { padding: 26px 22px; }
  .concours-card { padding: 26px 24px; }
  .hero-float { position: static; margin-top: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Concours info rows stack so long values don't force overflow */
  .cc-infos li { flex-direction: column; gap: 2px; }
  .cc-infos li span:last-child { text-align: left; }
  .cc-top { flex-wrap: wrap; }
  .cc-foot { gap: 14px; }
  .cc-foot .btn { width: 100%; }
  .wrap { padding: 0 20px; }
  h1, h2, h3 { overflow-wrap: break-word; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); hyphens: auto; -webkit-hyphens: auto; }
  .hero-lead, .section-head p { hyphens: auto; -webkit-hyphens: auto; }
  .hero-meta { gap: 22px; }
  .eyebrow { letter-spacing: 0.12em; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-anim > *, .hero-visual { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
