:root {
  --purple: #4D1F68;
  --purple-dark: #2E123F;
  --purple-deep: #24102F;
  --purple-mid: #76538D;
  --purple-soft: #F1ECF4;
  --pink: #D83E72;
  --blue: #175AA3;
  --gold: #E7B84B;
  --gold-soft: #F6E9BF;
  --yellow-hover: #FFE45C;
  --white: #FFFFFF;
  --off-white: #FAF8FB;
  --text: #28232D;
  --text-muted: #6D6872;
  --line: rgba(77, 31, 104, 0.12);
  --shadow-soft: 0 16px 35px rgba(46, 18, 63, 0.09);
  --shadow-deep: 0 24px 60px rgba(46, 18, 63, 0.14);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--off-white);
  color: var(--text);
  font-family: "Trirong", Georgia, serif;
  line-height: 1.72;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(calc(100% - 44px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 16px; transform: translateY(-180%); padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--purple-dark); box-shadow: var(--shadow-soft); transition: .2s; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 100; left: 0; right: 0; top: 0; padding: 8px 0; transition: padding .25s, background .25s, box-shadow .25s; }
.site-header.scrolled { padding: 0; background: rgba(255,255,255,.96); box-shadow: 0 12px 36px rgba(46,18,63,.10); backdrop-filter: blur(18px); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 8px 26px; border-radius: 0 0 28px 28px; background: rgba(255,255,255,.95); box-shadow: 0 15px 40px rgba(46,18,63,.10); backdrop-filter: blur(16px); }
.site-header.scrolled .header-inner { min-height: 76px; border-radius: 0 0 22px 22px; box-shadow: none; }
.brand { min-width: 0; display: flex; align-items: center; gap: 15px; }
.brand > img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { color: var(--purple); font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.brand-copy strong b { font-weight: 800; }
.brand-copy em { margin-top: 6px; color: var(--pink); font-size: 14px; font-weight: 600; }
.navigation { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px 18px; color: var(--text); font-size: 14px; font-weight: 600; }
.navigation > a { position: relative; text-decoration: none; }
.navigation > a:not(.nav-cta) { padding: 28px 0; }
.navigation > a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  box-shadow: 0 0 9px currentColor;
  transition: left .25s ease, right .25s ease, opacity .2s ease;
}
.navigation > a:hover::after,
.navigation > a:focus-visible::after,
.navigation > a.active::after { left: 0; right: 0; opacity: 1; }
.navigation > a:hover, .navigation > a.active { color: var(--purple); }
.nav-cta { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: linear-gradient(135deg, #5D2778, #3D1552); color: #fff; box-shadow: 0 12px 25px rgba(77,31,104,.22); transition: transform .2s, box-shadow .2s, color .2s; }
.nav-cta:hover { transform: translateY(-2px); color: #FFD400 !important; text-shadow: 0 0 10px rgba(255,228,92,.28); box-shadow: 0 17px 32px rgba(77,31,104,.32); }
.nav-parent { background: linear-gradient(135deg, #2167B1, #164E91); box-shadow: 0 12px 25px rgba(23,90,163,.25); }
.nav-parent:hover { color: #FFD400 !important; text-shadow: 0 0 10px rgba(255,228,92,.28); box-shadow: 0 17px 32px rgba(23,90,163,.34); }

.menu-toggle {
  position: relative;
  isolation: isolate;
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 17px;
  background: linear-gradient(145deg, #321144, #5D2778 58%, #153E77);
  box-shadow: 0 12px 28px rgba(46,18,63,.28), inset 0 1px 0 rgba(255,255,255,.22);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.menu-toggle::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -85%;
  background: conic-gradient(from 0deg, transparent 0 24%, #FFE45C 31%, #D83E72 44%, #61B9FF 58%, transparent 67% 100%);
  animation: hamburger-orbit 3.4s linear infinite;
}
.menu-toggle::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(46,18,63,.98), rgba(77,31,104,.96));
}
.menu-toggle span {
  position: absolute;
  z-index: 2;
  left: 50%;
  width: 25px;
  height: 2.5px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #FFE45C, #FFFFFF 48%, #68C5FF);
  box-shadow: 0 0 9px rgba(255,228,92,.5);
  transform: translateX(-50%);
  transition: top .28s ease, transform .32s cubic-bezier(.68,-.55,.27,1.55), opacity .2s ease, width .25s ease;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24.5px; width: 18px; }
.menu-toggle span:nth-child(3) { top: 33px; }
.menu-toggle:hover {
  transform: translateY(-2px) rotate(-2deg);
  border-color: rgba(255,228,92,.9);
  box-shadow: 0 16px 34px rgba(46,18,63,.34), 0 0 24px rgba(104,197,255,.24), inset 0 1px 0 rgba(255,255,255,.25);
}
.menu-toggle:hover span:nth-child(2) { width: 25px; }
.menu-toggle[aria-expanded="true"] { transform: rotate(2deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 24.5px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-50%) scaleX(.15); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 24.5px; transform: translateX(-50%) rotate(-45deg); }
.menu-toggle:focus-visible { outline: 3px solid rgba(255,228,92,.8); outline-offset: 4px; }
@keyframes hamburger-orbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .menu-toggle::before { animation: none; } }

.hero { position: relative; min-height: 770px; padding: 154px 0 80px; overflow: hidden; background: linear-gradient(135deg, #F7F2F9 0%, #FFFFFF 69%); }
.hero::after { content: ""; position: absolute; inset: auto -5% -140px 40%; height: 340px; border-radius: 50%; background: rgba(216,62,114,.07); filter: blur(2px); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.hero-glow-one { width: 420px; height: 420px; left: -180px; top: 120px; background: rgba(77,31,104,.08); }
.hero-glow-two { width: 330px; height: 330px; right: 30%; top: 180px; background: rgba(231,184,75,.10); }
.dot-pattern { position: absolute; right: 0; top: 30px; width: 170px; height: 230px; opacity: .18; background-image: radial-gradient(var(--purple) 2px, transparent 2px); background-size: 15px 15px; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .82fr 1.18fr; gap: 30px; align-items: center; }
.hero-copy { padding: 30px 0 38px 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 17px; color: var(--purple-mid); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.hero h1 { max-width: 650px; margin: 0; color: var(--purple-dark); font-size: clamp(52px, 5.4vw, 82px); line-height: 1.03; letter-spacing: -.045em; font-weight: 800; }
.hero h1 span { white-space: nowrap; }
.hero-slogan { margin: 12px 0 3px; color: var(--pink); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.25; font-style: italic; font-weight: 600; }
.gold-line { width: 445px; max-width: 82%; height: 2px; margin: 7px 0 20px; background: linear-gradient(90deg, var(--gold), rgba(231,184,75,0)); }
.hero-description { max-width: 610px; margin: 0; color: var(--text); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 27px; border: 0; border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary:hover, .button-parent:hover { color: #FFD400 !important; text-shadow: 0 0 10px rgba(255,228,92,.28); }
.button-primary { background: linear-gradient(135deg, #5D2778, #3D1552); color: #fff; box-shadow: 0 14px 28px rgba(77,31,104,.20); }
.button-secondary { border: 1px solid var(--gold); background: #fff; color: var(--purple); }
.button-parent { background: linear-gradient(135deg, #2167B1, #164E91); color: #fff; box-shadow: 0 14px 28px rgba(23,90,163,.20); }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 29px; color: var(--text-muted); font-size: 12px; }
.hero-benefits span { display: inline-flex; align-items: center; gap: 7px; }
.hero-benefits i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; font-style: normal; font-size: 11px; }
.hero-visual { position: relative; min-height: 570px; }
.hero-campus, .hero-classroom { position: absolute; overflow: hidden; margin: 0; box-shadow: var(--shadow-deep); }
.hero-campus { left: 0; top: 40px; width: 73%; height: 415px; border-radius: 32px 8px 32px 32px; }
.hero-classroom { right: 0; top: 15px; width: 43%; height: 490px; border-radius: 8px 32px 32px 32px; border: 8px solid rgba(255,255,255,.88); }
.hero-campus img, .hero-classroom img { height: 100%; object-fit: cover; filter: saturate(.96) contrast(1.03) brightness(1.04); }
.hero-campus::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.15), transparent 45%); }
.hero-classroom::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(46,18,63,.18), transparent 55%); }
.hero-logo-watermark { position: absolute; z-index: 3; left: 46%; bottom: 25px; width: 108px; height: 108px; display: grid; place-items: center; padding: 10px; border-radius: 50%; background: rgba(255,255,255,.96); box-shadow: var(--shadow-deep); transform: translateX(-50%); }
.hero-logo-watermark img { height: 100%; object-fit: contain; }
.hero-ribbon { position: absolute; z-index: 3; right: 3%; bottom: 7px; display: flex; align-items: center; gap: 11px; padding: 12px 18px; border-radius: 999px; background: rgba(46,18,63,.92); color: #fff; box-shadow: var(--shadow-soft); font-size: 11px; font-weight: 600; }
.hero-ribbon i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.cycles-section { position: relative; z-index: 5; margin-top: -22px; padding-bottom: 36px; }
.cycles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cycle-card { min-height: 190px; display: grid; grid-template-columns: 1fr 46%; gap: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.95); box-shadow: var(--shadow-soft); }
.cycle-copy { display: flex; gap: 13px; align-items: flex-start; padding: 25px 0 22px 24px; }
.cycle-copy h2 { margin: 2px 0 8px; color: var(--purple); font-size: 22px; line-height: 1.2; }
.cycle-copy p { margin: 0; color: var(--text-muted); font-size: 12px; }
.cycle-card:nth-child(2) h2 { color: var(--blue); }
.cycle-card:nth-child(3) h2 { color: var(--pink); }
.cycle-card > img { height: 100%; min-height: 190px; object-fit: cover; }
.cycle-icon, .formation-icon { flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; }
.cycle-icon { width: 39px; height: 39px; font-size: 17px; }
.purple { background: var(--purple); }
.blue { background: var(--blue); }
.pink { background: var(--pink); }

.section-heading.centered { display: flex; align-items: center; justify-content: center; gap: 22px; text-align: center; }
.section-kicker { display: block; margin-bottom: 6px; color: var(--pink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.section-kicker.light { color: var(--gold-soft); }
.section-heading h2, .about-copy h2, .admissions-copy h2 { margin: 0; color: var(--purple-dark); font-size: clamp(35px, 4vw, 52px); line-height: 1.12; letter-spacing: -.035em; }
.heading-line { width: 80px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.heading-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.formations { background: #fff; }
.formation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 45px; }
.formation-card { position: relative; min-height: 285px; display: grid; grid-template-columns: 54px 1fr; align-content: start; gap: 17px; overflow: hidden; padding: 28px 48% 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); transition: transform .25s, box-shadow .25s; }
.formation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.formation-card > img { position: absolute; right: 0; top: 0; width: 46%; height: 100%; object-fit: cover; }
.formation-icon { width: 50px; height: 50px; position: relative; z-index: 2; font-size: 23px; }
.formation-copy { position: relative; z-index: 2; }
.formation-copy h3 { margin: 2px 0 13px; color: var(--purple); font-size: 24px; }
.formation-card:nth-child(2) h3 { color: var(--blue); }
.formation-card:nth-child(3) h3 { color: var(--pink); }
.formation-copy ul { margin: 0; padding: 0; list-style: none; color: var(--text); font-size: 11px; }
.formation-copy li { position: relative; margin: 8px 0; padding-left: 16px; }
.formation-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 800; }

.gallery-section { background: linear-gradient(180deg, #FAF8FB 0%, #FFFFFF 100%); }
.gallery-intro { max-width: 760px; margin: 20px auto 42px; color: var(--text-muted); text-align: center; font-size: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 285px; gap: 20px; }
.gallery-item { position: relative; overflow: hidden; margin: 0; border-radius: 24px; background: var(--purple-soft); box-shadow: var(--shadow-soft); }
.gallery-item.gallery-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(35,8,47,.78) 0%, rgba(35,8,47,.18) 48%, transparent 72%); pointer-events: none; }
.gallery-item figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 24px; color: #fff; }
.gallery-item figcaption strong { font-size: 20px; line-height: 1.2; }
.gallery-item figcaption span { color: rgba(255,255,255,.78); font-size: 11px; }
.gallery-item:hover img { transform: scale(1.055); filter: saturate(1.06) contrast(1.03); }
.gallery-item:focus-within img { transform: scale(1.055); }

.values-band { padding: 24px 0; background: linear-gradient(120deg, #4D1F68, #713D85); color: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1.2fr) repeat(3, .65fr); align-items: center; gap: 0; }
.value-item { display: grid; grid-template-columns: 48px 1fr; gap: 13px; align-items: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,.22); }
.value-symbol { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold-soft); }
.value-item h3 { margin: 0; font-size: 15px; }
.value-item p { margin: 3px 0 0; color: rgba(255,255,255,.72); font-size: 10px; line-height: 1.45; }
.stat { min-height: 74px; display: grid; place-content: center; padding: 0 15px; border-right: 1px solid rgba(255,255,255,.22); text-align: center; }
.stat:last-child { border-right: 0; }
.stat strong { color: var(--gold); font-size: 34px; line-height: 1; font-weight: 800; }
.stat span { margin-top: 6px; font-size: 9px; line-height: 1.35; }

.about-section { background: var(--off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-collage { position: relative; min-height: 640px; }
.about-main, .about-small { position: absolute; margin: 0; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-deep); }
.about-main { left: 0; top: 0; width: 78%; height: 570px; border-radius: var(--radius-lg); transform: rotate(-2deg); }
.about-small { right: 0; bottom: 0; width: 45%; height: 260px; border-radius: 25px; transform: rotate(3deg); }
.about-main img, .about-small img { height: 100%; object-fit: cover; }
.about-badge { position: absolute; z-index: 3; right: 7%; top: 45px; display: grid; padding: 15px 20px; border-radius: 18px; background: var(--purple); color: #fff; box-shadow: var(--shadow-deep); }
.about-badge strong { color: var(--gold); font-size: 23px; }
.about-badge span { font-size: 10px; }
.about-logo-badge {
  width: 128px;
  height: 128px;
  place-items: center;
  padding: 10px;
  border: 5px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: #fff;
}
.about-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.about-copy > p { color: var(--text-muted); font-size: 15px; }
.approach-list { margin-top: 28px; }
.approach-list article { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.approach-list article > span { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: var(--purple-soft); color: var(--purple); font-weight: 700; }
.approach-list h3 { margin: 0 0 4px; color: var(--purple-dark); font-size: 18px; }
.approach-list p { margin: 0; color: var(--text-muted); font-size: 12px; }

.admissions-section { background: #fff; }
.admissions-panel { position: relative; display: grid; grid-template-columns: 1fr .9fr; gap: 70px; overflow: hidden; padding: 70px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #4D1F68 0%, #2E123F 100%); color: #fff; box-shadow: var(--shadow-deep); }
.admissions-panel::before { content: ""; position: absolute; width: 450px; height: 450px; left: -230px; bottom: -330px; border-radius: 50%; background: rgba(231,184,75,.13); }
.admissions-copy { position: relative; z-index: 2; align-self: center; }
.admissions-copy h2 { color: #fff; }
.admissions-copy > p { color: rgba(255,255,255,.68); }
.admission-points { display: grid; gap: 10px; margin-top: 25px; font-size: 12px; }
.admission-points span { display: flex; align-items: center; gap: 9px; }
.admission-points i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: rgba(231,184,75,.18); color: var(--gold); font-style: normal; }
.direct-phone { width: fit-content; display: grid; margin-top: 30px; padding-left: 15px; border-left: 3px solid var(--gold); }
.direct-phone small { color: rgba(255,255,255,.55); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.direct-phone strong { color: var(--gold-soft); font-size: 20px; }
.admission-form { position: relative; z-index: 2; padding: 30px; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 25px 60px rgba(20,5,27,.25); }
.form-title { display: grid; margin-bottom: 20px; line-height: 1.25; }
.form-title span { color: var(--pink); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.form-title strong { color: var(--purple-dark); font-size: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.admission-form label { display: grid; gap: 7px; margin-bottom: 13px; color: var(--purple-dark); font-size: 11px; font-weight: 600; }
.admission-form input, .admission-form select, .admission-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--off-white); color: var(--text); padding: 12px 13px; transition: border .2s, box-shadow .2s; }
.admission-form input:focus, .admission-form select:focus, .admission-form textarea:focus { border-color: var(--purple-mid); box-shadow: 0 0 0 4px rgba(77,31,104,.08); }
.admission-form textarea { resize: vertical; }
.form-button { width: 100%; background: linear-gradient(135deg, #D83E72 0%, #B92E60 100%); color: #fff; }
.form-note { margin: 10px 0 0; color: var(--text-muted); font-size: 9px; text-align: center; }

.contact-section { padding: 0 0 28px; background: #fff; }
.contact-strip { min-height: 104px; display: grid; grid-template-columns: 1fr 1fr 1.2fr .8fr; align-items: center; gap: 0; padding: 14px 26px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.contact-item { display: grid; grid-template-columns: 47px 1fr; gap: 13px; align-items: center; padding: 8px 22px; border-right: 1px solid var(--line); }
.contact-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; background: var(--purple-soft); color: var(--purple); font-weight: 800; }
.contact-item div { display: grid; line-height: 1.3; }
.contact-item strong { color: var(--purple-dark); font-size: 14px; }
.contact-item small { margin-top: 4px; color: var(--text-muted); font-size: 9px; }
.socials { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-left: 20px; }
.socials > span { margin-right: 5px; color: var(--text-muted); font-size: 10px; }
.socials a { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; }
.socials a:nth-of-type(2) { background: var(--pink); }
.socials a:nth-of-type(3) { background: #D32F2F; }

.site-footer { position: relative; overflow: hidden; padding: 40px 0 28px; background: var(--purple-dark); color: #fff; }
.site-footer::after { content: "❧"; position: absolute; right: -15px; bottom: -72px; color: rgba(255,255,255,.06); font-size: 190px; transform: rotate(-25deg); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr .65fr; align-items: center; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 75px; height: 75px; object-fit: contain; }
.footer-brand div { display: grid; line-height: 1.2; }
.footer-brand strong { font-size: 14px; }
.footer-brand em { margin-top: 5px; color: var(--pink); font-size: 10px; }
.footer-grid > p { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 5px 15px; font-size: 10px; }
.footer-nav a { color: rgba(255,255,255,.65); }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { color: rgba(255,255,255,.42); font-size: 9px; text-align: right; }
.scroll-top {
  position: fixed;
  z-index: 91;
  right: 22px;
  bottom: 92px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 16px 32px rgba(46,18,63,.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.92);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s ease, color .2s ease;
}
.scroll-top span { font-size: 24px; line-height: 1; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--gold); color: var(--purple-dark); transform: translateY(-4px); }
.scroll-top:focus-visible { outline: 3px solid rgba(231,184,75,.55); outline-offset: 4px; }

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: visible;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(6,60,31,.96), rgba(10,117,59,.94));
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(37,211,102,.18),
    0 16px 36px rgba(0,70,32,.38),
    0 0 30px rgba(37,211,102,.28);
  isolation: isolate;
  transition: width .38s cubic-bezier(.2,.8,.2,1), transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.whatsapp-float::before,
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -2;
  border: 1px solid rgba(72,255,143,.42);
  border-radius: inherit;
  opacity: .55;
  pointer-events: none;
  animation: whatsappPulse 2.4s ease-out infinite;
}
.whatsapp-float::after {
  animation-delay: 1.2s;
}
.whatsapp-orbit {
  position: absolute;
  inset: -4px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0 15%, #68ff9f 24%, transparent 34% 62%, rgba(255,255,255,.9) 70%, transparent 80% 100%);
  filter: blur(.2px);
  animation: whatsappOrbit 3.8s linear infinite;
}
.whatsapp-orbit::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: linear-gradient(135deg, #063c1f, #0a753b);
}
.whatsapp-core {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #70ff9f 0 9%, #25d366 42%, #109447 100%);
  box-shadow: inset 0 1px 7px rgba(255,255,255,.48), 0 0 20px rgba(37,211,102,.42);
  transition: transform .3s ease, box-shadow .3s ease;
}
.whatsapp-core::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
}
.whatsapp-core svg {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.whatsapp-core svg path:last-child {
  fill: currentColor;
  stroke: none;
}
.whatsapp-label {
  position: relative;
  z-index: 2;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(8px);
  white-space: nowrap;
  color: #effff5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-shadow: 0 1px 10px rgba(0,0,0,.28);
  transition: max-width .32s ease, opacity .24s ease .06s, transform .32s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  width: 164px;
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(5,48,25,.98), rgba(7,132,64,.98));
  box-shadow:
    0 0 0 1px rgba(92,255,151,.34),
    0 22px 46px rgba(0,70,32,.42),
    0 0 42px rgba(37,211,102,.48);
}
.whatsapp-float:hover .whatsapp-core,
.whatsapp-float:focus-visible .whatsapp-core {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: inset 0 1px 8px rgba(255,255,255,.55), 0 0 28px rgba(90,255,148,.68);
}
.whatsapp-float:hover .whatsapp-label,
.whatsapp-float:focus-visible .whatsapp-label {
  max-width: 92px;
  opacity: 1;
  transform: none;
}
.whatsapp-float:focus-visible {
  outline: 3px solid rgba(104,255,159,.55);
  outline-offset: 5px;
}
@keyframes whatsappOrbit {
  to { transform: rotate(360deg); }
}
@keyframes whatsappPulse {
  0% { opacity: .58; transform: scale(.92); }
  75%, 100% { opacity: 0; transform: scale(1.28); }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1240px) {
  .brand-copy strong { font-size: 16px; }
  .brand-copy em { font-size: 11px; }
  .navigation { gap: 18px; font-size: 12px; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; }
  .formation-card { padding-right: 43%; }
  .values-grid { grid-template-columns: repeat(3, 1fr); row-gap: 25px; }
  .value-item:nth-of-type(3) { border-right: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.18); }
  .contact-strip { grid-template-columns: 1fr 1fr; }
  .contact-item:nth-of-type(2) { border-right: 0; }
  .socials { justify-content: flex-start; padding: 16px 22px; border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .navigation { position: fixed; inset: 102px 18px auto; display: grid; gap: 0; padding: 14px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-deep); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .2s; }
  .navigation.open { opacity: 1; pointer-events: auto; transform: none; }
  .navigation > a:not(.nav-cta) { padding: 13px 12px; border-bottom: 1px solid var(--line); }
  .navigation > a::after { bottom: 5px; }
  .navigation > a:not(.nav-cta):hover::after,
  .navigation > a:not(.nav-cta):focus-visible::after,
  .navigation > a:not(.nav-cta).active::after { left: 12px; right: 12px; }
  .nav-cta, .nav-parent { justify-content: center; }
  .nav-cta { margin-top: 10px; }
  .hero-grid, .about-grid, .admissions-panel { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 760px; width: 100%; margin: 0 auto; }
  .cycles-grid, .formation-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 250px; }
  .gallery-item.gallery-wide { grid-column: span 2; }
  .cycle-card { min-height: 210px; }
  .formation-card { min-height: 270px; padding-right: 46%; }
  .about-copy { max-width: 760px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-copy { text-align: left; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 26px), var(--container)); }
  .section { padding: 78px 0; }
  .header-inner { min-height: 76px; padding: 6px 14px; border-radius: 0 0 20px 20px; }
  .brand > img { width: 54px; height: 54px; flex-basis: 54px; }
  .brand-copy strong { max-width: 220px; font-size: 12px; }
  .brand-copy em { font-size: 8px; }
  .navigation { inset: 86px 13px auto; }
  .hero { min-height: auto; padding: 120px 0 55px; }
  .hero-copy { padding-left: 0; }
  .hero h1 { font-size: clamp(43px, 13vw, 61px); }
  .hero-description { font-size: 14px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-benefits { display: grid; gap: 10px; }
  .hero-visual { min-height: 470px; }
  .hero-campus { width: 88%; height: 310px; }
  .hero-classroom { width: 46%; height: 295px; top: 140px; }
  .hero-logo-watermark { left: 30%; bottom: 15px; width: 86px; height: 86px; }
  .hero-ribbon { right: auto; left: 2%; bottom: -5px; padding: 10px 14px; font-size: 9px; }
  .cycles-section { margin-top: 0; }
  .cycle-card { grid-template-columns: 1fr; }
  .cycle-card > img { min-height: 210px; }
  .section-heading.centered { gap: 10px; }
  .heading-line { width: 35px; }
  .formation-card { min-height: 520px; grid-template-columns: 50px 1fr; padding: 24px; }
  .formation-card > img { top: auto; bottom: 0; width: 100%; height: 52%; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .gallery-item.gallery-wide { grid-column: span 1; }
  .gallery-item figcaption { padding: 20px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item, .stat { padding: 17px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .stat { border-top: 0; }
  .about-collage { min-height: 520px; }
  .about-main { width: 88%; height: 455px; }
  .about-small { width: 47%; height: 205px; }
  .about-badge { top: 30px; }
  .about-logo-badge {
    width: 104px;
    height: 104px;
    padding: 8px;
  }
  .admissions-panel { padding: 36px 20px; border-radius: 26px; }
  .form-row { grid-template-columns: 1fr; }
  .admission-form { padding: 24px 18px; }
  .contact-strip { grid-template-columns: 1fr; padding: 12px; }
  .contact-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .socials { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }
  .scroll-top { right: 14px; bottom: 82px; width: 44px; height: 44px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 58px; height: 58px; padding: 5px; }
  .whatsapp-core { width: 46px; height: 46px; flex-basis: 46px; }
  .whatsapp-float:hover, .whatsapp-float:focus-visible { width: 58px; }
  .whatsapp-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Positionnement optimisé des nouvelles images HD */
.hero-campus img { object-position: center 52%; }
.hero-classroom img { object-position: center 42%; }
.cycle-card:nth-child(1) > img { object-position: center 45%; }
.cycle-card:nth-child(2) > img { object-position: center 30%; }
.cycle-card:nth-child(3) > img { object-position: center 42%; }
.formation-card:nth-child(1) > img { object-position: 48% center; }
.formation-card:nth-child(2) > img { object-position: 55% center; }
.formation-card:nth-child(3) > img { object-position: center 38%; }
.about-main img { object-position: center 48%; }
.about-small img { object-position: center 36%; }

/* =========================================================
   CORRECTION V10 — SOULIGNEMENT DU MENU
   Les liens ordinaires restent soulignés au survol.
   Les boutons S’inscrire et Espace parent ne le sont jamais.
   ========================================================= */
.navigation > a.nav-cta,
.navigation > a.nav-cta:hover,
.navigation > a.nav-cta:focus,
.navigation > a.nav-cta:focus-visible,
.navigation > a.nav-cta:active {
  text-decoration: none !important;
}

.navigation > a.nav-cta::before,
.navigation > a.nav-cta::after,
.navigation > a.nav-cta:hover::before,
.navigation > a.nav-cta:hover::after,
.navigation > a.nav-cta:focus::before,
.navigation > a.nav-cta:focus::after,
.navigation > a.nav-cta:focus-visible::before,
.navigation > a.nav-cta:focus-visible::after,
.navigation > a.nav-cta:active::before,
.navigation > a.nav-cta:active::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* Le changement de couleur reste visible sans modifier le fond. */
.navigation > a.nav-cta:hover,
.navigation > a.nav-cta:focus-visible,
.navigation > a.nav-parent:hover,
.navigation > a.nav-parent:focus-visible {
  color: #FFD400 !important;
}

