/* Shared base for template-based sites. Every colour and font comes from the project's theme
   (src/css/theme.css). The values below are only fallbacks so a fresh template still renders. */

:root {
  --color-bg: #F4F2EE;
  --color-surface: #FFFFFF;
  --color-ink: #1B1D22;
  --color-muted: #5C6270;
  --color-dominant: #1F4E5F;
  --color-accent: #C2410C;
  --color-on-accent: #FFFFFF;
  --color-line: rgba(27, 29, 34, .14);

  --font-display: serif;
  --font-body: sans-serif;
  --weight-strong: 900;
  --weight-light: 200;
  --display-case: none;
  --display-tracking: 0;

  --wrap: 1200px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --header-h: 68px;
  --section: clamp(64px, 9vw, 128px);
  --radius: 4px;
  --bookbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--color-ink); color: var(--color-bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* type */
.h1, .h2, .h3 { font-family: var(--font-display); text-transform: var(--display-case); letter-spacing: var(--display-tracking); text-wrap: balance; }
.h2 { max-width: 18ch; font-weight: var(--weight-strong); font-size: clamp(40px, 5.6vw, 80px); line-height: .95; }
.h3 { font-weight: var(--weight-strong); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; }
.intro { margin-top: 18px; max-width: 58ch; }
.muted { color: var(--color-muted); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }

/* buttons: the accent colour is for booking actions only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: none; color: inherit;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn--book { background: var(--color-accent); color: var(--color-on-accent); }
.btn--book:hover { box-shadow: 0 6px 22px -6px var(--color-accent); }
.btn--book-ghost { border-color: var(--color-accent); color: var(--color-accent); }
.btn--book-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn--quiet { border-color: var(--color-line); color: var(--color-ink); }
.btn--quiet:hover { border-color: var(--color-ink); }
.book { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--color-bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-line); }
.top__inner { position: relative; display: flex; align-items: center; gap: 26px; min-height: var(--header-h); }
.top__inner > .mark { margin-right: auto; }
.mark { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.mark__name { font: var(--weight-strong) 26px/1 var(--font-display); text-transform: var(--display-case); letter-spacing: var(--display-tracking); }
.mark__logo { width: auto; height: 40px; }
.nav ul { display: flex; gap: 24px; }
.nav a { display: inline-block; padding: 8px 0; font-size: 15px; text-decoration: none; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: currentColor; }
.langs ul { display: flex; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; font-size: 13px; color: var(--color-muted); text-decoration: none; }
.langs a[aria-current] { color: var(--color-ink); box-shadow: inset 0 -2px 0 currentColor; }
.top__cta { min-height: 42px; padding: 8px 16px; }
.top__menu { display: none; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--color-line); border-radius: var(--radius); background: none; color: inherit; font: 600 14px/1 var(--font-body); cursor: pointer; }
.top__menu-bars, .top__menu-bars::before { display: block; width: 16px; height: 2px; background: currentColor; }
.top__menu-bars { position: relative; box-shadow: 0 -5px 0 currentColor; }
.top__menu-bars::before { content: ""; position: absolute; top: 5px; }
.top__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--color-muted); text-decoration: none; }

/* key facts: never animated */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin-block: clamp(28px, 4vw, 48px); border-top: 2px solid var(--color-dominant); }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 6px 0; }
.facts strong { font: var(--weight-strong) clamp(20px, 2vw, 26px)/1.1 var(--font-display); text-transform: var(--display-case); }
.facts span { font-size: 15px; color: var(--color-muted); }

/* photo links (open the gallery): hover is a light lift, none with reduced motion */
.photo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--color-surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .photo:hover img { transform: scale(1.03); }
}

/* around map (signature) */
.around__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 36px; }
.around__list { display: grid; gap: 0; counter-reset: poi; }
.around__list li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
.around__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-dominant); color: var(--color-bg); font: 600 13px/1 var(--font-body); }
.around__kind { display: block; font-size: 14px; color: var(--color-muted); }
.around__d { font-size: 14px; color: var(--color-muted); white-space: nowrap; }
.around__map { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--color-line); background: var(--color-surface); }
.lazy-map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--color-muted); font-size: 14px; }
.around__note { margin-top: 12px; font-size: 13px; color: var(--color-muted); }

/* footer */
.foot { padding-block: 56px calc(56px + var(--bookbar-h)); background: var(--color-surface); border-top: 1px solid var(--color-line); font-size: 15px; }
.foot__inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot__brand p { margin-top: 12px; color: var(--color-muted); }
.foot__h { margin-bottom: 12px; font: 600 14px/1.4 var(--font-body); color: var(--color-muted); }
.foot ul { display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* mobile booking bar */
.bookbar { display: none; }

/* gallery */
.gallery { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 12, .96); color: #F4F4F4; }
.gallery::backdrop { background: rgba(10, 10, 12, .8); }
.gallery[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.gallery__top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); }
.gallery__count { font-size: 14px; opacity: .75; }
.gallery__close, .gallery__nav { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(30, 30, 34, .85); color: inherit; cursor: pointer; }
.gallery__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; padding: 0 80px 24px; }
.gallery__img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; }
.gallery__cap { max-width: 60ch; font-size: 14px; opacity: .75; text-align: center; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery__nav--prev { left: 16px; }
.gallery__nav--next { right: 16px; }

/* legal + root pages */
.legal { max-width: calc(72ch + 2 * var(--gutter)); padding-block: clamp(48px, 7vw, 96px); }
.legal__title { font: var(--weight-strong) clamp(44px, 6vw, 80px)/.95 var(--font-display); text-transform: var(--display-case); }
.legal .h3 { margin: 40px 0 10px; }
.legal p + p { margin-top: 8px; }
.root { display: grid; place-content: center; gap: 28px; min-height: 100svh; text-align: center; }
.root__langs { display: flex; gap: 24px; justify-content: center; }

@media (max-width: 900px) {
  .top__cta { display: none; }
  .top__inner { gap: 10px; }
  .js .top__menu { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 4px var(--gutter) 20px; background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
  .js .nav.is-open { display: block; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--color-line); }
  .no-js .top__inner { flex-wrap: wrap; }
  .no-js .nav { order: 5; width: 100%; overflow-x: auto; padding-bottom: 6px; }
}

@media (max-width: 768px) {
  body:not(.page-legal):not(.page-root) { --bookbar-h: 76px; }
  .around__inner { grid-template-columns: 1fr; }
  .around__inner > :last-child { order: -1; } /* the map before the list */
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .bookbar {
    position: fixed; inset: auto 0 0; z-index: 55;
    display: flex; gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--color-surface) 96%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-line);
  }
  .bookbar .btn { flex: 1; padding-inline: 10px; }
  .bookbar .btn:first-of-type { flex: 1.4; }
  .bookbar .btn:nth-of-type(n + 3) { display: none; }
  .gallery__stage { padding: 0 8px 88px; }
  .gallery__img { max-height: calc(100dvh - 210px); }
  .gallery__nav { top: auto; bottom: 20px; transform: none; }
}

/* School segment: parts shared by every variant (hero text, facts, pratique block, simulator, contact). */

/* hero text */
.hero { position: relative; isolation: isolate; }
.hero__overline { font-size: 15px; color: var(--color-muted); margin-bottom: 20px; }
.hero__title { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-display); text-transform: var(--display-case); letter-spacing: var(--display-tracking); }
.hero__strong { font-weight: var(--weight-strong); font-size: clamp(56px, 9vw, 136px); line-height: .9; color: var(--color-dominant); text-wrap: balance; }
.hero__light { font-weight: var(--weight-light); font-size: clamp(28px, 4vw, 56px); line-height: 1.05; text-wrap: balance; }
.hero__lead { margin-top: 24px; max-width: 46ch; font-size: 18px; }
.hero__book { margin-top: 30px; }

/* the one orchestrated load moment: hero text in a short stagger. Booking buttons never wait. */
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .load { animation: hero-rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.15s + var(--i, 0) * .1s); }
}

/* section heads */
.services__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 36px; }

/* contact (shared bits) */
.contact__phone {
  display: inline-block;
  font: var(--weight-strong) clamp(40px, 7vw, 96px)/1 var(--font-display);
  letter-spacing: -.01em;
  white-space: nowrap;
  color: var(--color-dominant);
  text-decoration: none;
}
.contact__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }

@media (max-width: 768px) {
  .hero__book .btn { flex: 1 1 100%; }
  .hero__book .btn:nth-of-type(n + 2) { display: none; } /* the others live in the booking bar */
}

/* S3b pratique: one photo beside a short text */
.pratique__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pratique__photo { aspect-ratio: 4 / 3; }
.pratique__cap { margin-top: 18px; font-size: 14px; color: var(--color-muted); }

/* S4 simulator (signature): never animated */
.sim__head { display: grid; gap: 0; margin-bottom: 36px; }
.sim__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 4vw, 56px); padding: clamp(20px, 3vw, 36px); background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); }
.sim__form[hidden] { display: none; }
.sim__q { margin: 0; padding: 0; border: 0; min-width: 0; }
.sim__q legend { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 600; }
.sim__qn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-dominant); color: var(--color-bg); font-size: 14px; }
.sim__choices { display: grid; gap: 8px; }
.sim__choice { position: relative; display: block; cursor: pointer; }
.sim__choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sim__choice span { display: flex; flex-direction: column; gap: 2px; min-height: 48px; justify-content: center; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-bg); }
.sim__choice small { font-size: 13px; color: var(--color-muted); }
.sim__choice input:checked + span { border-color: var(--color-dominant); box-shadow: inset 0 0 0 1px var(--color-dominant); background: color-mix(in srgb, var(--color-dominant) 8%, var(--color-bg)); }
.sim__choice input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.sim__result { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--color-line); }
.sim__empty { color: var(--color-muted); }
.sim__label { font-size: 14px; color: var(--color-muted); }
.sim__title { margin-top: 4px; font: var(--weight-strong) clamp(26px, 3vw, 40px)/1.05 var(--font-display); text-transform: var(--display-case); letter-spacing: var(--display-tracking); }
.sim__steps { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.sim__steps li { position: relative; display: flex; align-items: center; gap: 8px; padding-right: 30px; counter-increment: step; }
.sim__steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--color-dominant); border-radius: 50%; font-size: 13px; }
.sim__steps li:not(:last-child)::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; border-top: 1px solid var(--color-muted); }
.sim__duration { margin-top: 16px; }
.sim__duration span { color: var(--color-muted); }
.sim__book { margin-top: 20px; }
.sim__table-wrap { margin-top: 28px; overflow-x: auto; }
.sim__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sim__table th, .sim__table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; }
.sim__table thead th { font-weight: 600; font-size: 13px; color: var(--color-muted); }
.sim__table small { display: block; font-weight: 400; color: var(--color-muted); }
.sim__tracks { margin-top: 14px; font-size: 15px; }
.sim__note { margin-top: 18px; max-width: 70ch; font-size: 14px; color: var(--color-muted); }

/* contact: facts list + map */
.contact__facts { display: grid; gap: 12px; margin: 28px 0 0; }
.contact__facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact__facts dt { font-size: 14px; opacity: .8; }
.contact__facts dd { margin: 0; overflow-wrap: anywhere; }
.contact__book { margin-top: 28px; }
.contact__map .lazy-map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--color-surface); }
.contact__map .lazy-map__canvas { position: absolute; inset: 0; }
.contact__note { margin-top: 12px; font-size: 13px; }

@media (max-width: 768px) {
  .pratique__inner, .sim__form { grid-template-columns: 1fr; }
  .contact__facts div { grid-template-columns: 1fr; gap: 0; }
}
.sim__table-wrap.is-data { display: none; } /* with JS the form replaces the table (it stays the data source) */
@media (max-width: 560px) {
  .sim__steps { flex-direction: column; gap: 10px; }
  .sim__steps li { padding-right: 0; }
  .sim__steps li:not(:last-child)::after { right: auto; left: 12px; top: 100%; width: 0; height: 10px; border-top: 0; border-left: 1px solid var(--color-muted); }
}

/* contact: panneau (school): a full-width band in the dominant colour, text and enrolment actions + map */
.contact--panneau { padding-block: clamp(56px, 8vw, 112px); background: var(--color-dominant); color: var(--color-bg); }
.contact--panneau .contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); align-items: center; }
.contact--panneau a { color: inherit; }
.contact--panneau .btn--book { box-shadow: 0 0 0 2px var(--color-bg); }
.contact--panneau .btn--book-ghost { border-color: var(--color-bg); color: var(--color-bg); }
@media (max-width: 768px) {
  .contact--panneau .contact__inner { grid-template-columns: 1fr; }
  .contact--panneau .book { flex-direction: column; }
}

/* galerie: aucune: no gallery section (nothing to style) */

/* hero: fenetre (school): text beside the photo held in a gear (the gear of the school's logo) */
.hero--fenetre { padding-block: clamp(40px, 7vw, 104px); }
.hero--fenetre .hero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__gear { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; }
.hero__teeth { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--color-dominant); }
.hero__frame { position: absolute; inset: 15%; border-radius: 50%; }
.hero__more { display: inline-block; margin-top: 18px; font-size: 15px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__teeth { animation: gear-turn 1.6s cubic-bezier(.2, .7, .2, 1) .2s both; }
  @keyframes gear-turn { from { transform: rotate(-40deg); } to { transform: none; } }
}
@media (max-width: 768px) {
  .hero--fenetre .hero__inner { grid-template-columns: 1fr; }
  .hero__gear { width: min(78%, 320px); order: -1; }
}

/* services: rangs (school): one numbered row per filière, text only (photos optional in this segment) */
.services--rangs .services__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.rows { display: grid; margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--color-dominant); }
.rows__item { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 8px clamp(16px, 3vw, 40px); align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--color-line); }
.rows__n { font: var(--weight-light) clamp(32px, 4vw, 52px)/1 var(--font-display); color: var(--color-dominant); }
.rows__text { max-width: 52ch; }
.rows__tag { font-size: 13px; white-space: nowrap; }
@media (max-width: 900px) {
  .services--rangs .services__head { grid-template-columns: 1fr; }
  .rows__item { grid-template-columns: 56px minmax(0, 1fr); }
  .rows__text, .rows__tag { grid-column: 2; }
}

/* LTP Antsohihy: project layer over the school template (art direction in design/aesthetics-prompt.md).
   One bold element: the deep-green hero, heavy / light condensed caps and the gear holding the facade. */

body { font-size: 16px; line-height: 1.65; }

/* header: round logo + short name in condensed caps */
.mark { gap: 12px; }
.mark__logo { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.mark__name { font-size: 28px; letter-spacing: .02em; }

/* technical-drawing grid on the green panels (hero, contact): depth without a picture */
.hero--fenetre,
.contact--panneau {
  background-color: var(--color-dominant);
  background-image:
    linear-gradient(rgba(207, 227, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 227, 184, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}

/* hero */
.hero--fenetre { color: var(--color-bg); }
.hero__overline { color: var(--color-mint); font-size: 14px; letter-spacing: .02em; }
.hero__title { gap: 6px; }
.hero__strong { color: var(--color-bg); font-size: clamp(64px, 10.5vw, 160px); line-height: .86; }
.hero__light { color: var(--color-mint); font-size: clamp(30px, 4.2vw, 60px); line-height: 1; }
.hero__lead { max-width: 52ch; font-size: 16px; color: var(--color-bg); }
.hero--fenetre .btn--book { box-shadow: 0 0 0 2px var(--color-bg); }
.hero--fenetre .btn--book-ghost { border-color: var(--color-bg); color: var(--color-bg); }
.hero__more { color: var(--color-mint); }
@media (min-width: 769px) {
  .hero--fenetre .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}
.hero__strong { font-size: clamp(64px, 9.6vw, 148px); }
.hero__gear { width: min(100%, 560px); }
.hero__frame { inset: 13%; }
.hero__teeth { fill: var(--color-leaf); }
.hero__frame { box-shadow: 0 0 0 6px var(--color-dominant), 0 0 0 8px var(--color-mint); }
.hero__frame img { object-position: 50% 40%; }

/* facts */
.facts { border-top-color: var(--color-leaf); }
.facts strong { font-size: clamp(24px, 2.4vw, 32px); }
.facts span { font-size: 14px; }

/* filières */
.rows__n { color: var(--color-leaf); }
.rows__title { font-size: clamp(26px, 2.8vw, 38px); }
.rows__text { font-size: 15px; }
.rows__tag { justify-self: start; padding: 3px 10px; border: 1px dashed var(--color-muted); border-radius: 99px; color: var(--color-muted); }

/* pratique */
.pratique__photo { border-radius: 2px; box-shadow: 10px 10px 0 var(--color-leaf); }

/* simulator */
.sim__qn { background: var(--color-leaf); }
.sim__tracks span + span::before { content: " · "; color: var(--color-muted); }

/* contact band */
.contact--panneau .h2 { color: var(--color-bg); }
.contact--panneau .intro, .contact__facts dt, .contact__note { color: var(--color-mint); }
.contact__facts dd { font-weight: 600; }

@media (max-width: 768px) {
  .hero__gear { width: min(84%, 330px); }
  .mark__name { font-size: 24px; }
  .rows__tag { grid-column: 2; }
}

/* LTP Antsohihy: palette from the school's logo (green gear, red « LTP ») and the facade.
   AA: ink/bg 15.27 · muted/bg 6.66 · white/accent 5.37 · bg/dominant 9.33 · leaf/bg 5.24 · mint/dominant 7.47 */
:root {
  --color-bg: #F4F5EF;
  --color-surface: #FFFFFF;
  --color-ink: #14210F;
  --color-muted: #4E5A47;
  --color-dominant: #1F4A1A;  /* deep green: hero panel, contact band */
  --color-leaf: #3F722E;      /* the logo's green: numbers, rules */
  --color-mint: #CFE3B8;      /* light text on the dominant green */
  --color-accent: #C03C1F;    /* the red of « LTP »: enrolment actions only */
  --color-on-accent: #FFFFFF;
  --color-line: rgba(20, 33, 15, .14);

  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Mono", monospace;
  --weight-strong: 900;
  --weight-light: 200;
  --display-case: uppercase;
  --display-tracking: .01em;
}

/* Web Studio runtime styles (appended to every site's css/site.css by the engine).
   Uses the site's tokens when they exist, with neutral fallbacks. */

/* demo banner: in the page flow (never covers the header or the booking buttons) */
.demo-banner {
  margin: 0;
  padding: 7px 16px;
  background: var(--color-surface, #1d1d1d);
  color: var(--color-ink, #f2f2f2);
  border-bottom: 1px solid var(--color-line, rgba(255, 255, 255, .15));
  font: 400 13px/1.4 var(--font-body, var(--font-mono, sans-serif));
  text-align: center;
}

/* scroll reveal: the class is only ever added by JS, and never with reduced motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* lazy map */
.lazy-map { position: relative; overflow: hidden; isolation: isolate; z-index: 0; } /* keeps Leaflet's layers under the sticky header */
.lazy-map__canvas { position: absolute; inset: 0; }
.lazy-map.is-loaded .lazy-map__placeholder { display: none; }
.lazy-map--dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.5); }
.lazy-map .leaflet-container { font: inherit; background: var(--color-surface, #ddd); }
.lazy-map__pin span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-dominant, #222);
  color: var(--color-bg, #fff);
  font: 600 13px/1 var(--font-body, var(--font-mono, sans-serif));
  box-shadow: 0 0 0 3px var(--color-bg, #fff), 0 2px 10px rgba(0, 0, 0, .35);
}
.lazy-map__area { fill: var(--color-dominant, #222); fill-opacity: .14; stroke: var(--color-dominant, #222); stroke-width: 1.5; }
.lazy-map__label.leaflet-tooltip {
  background: var(--color-bg, #fff);
  color: var(--color-dominant, #222);
  border: 1px solid var(--color-dominant, #222);
  font: 600 13px/1.2 var(--font-body, var(--font-mono, sans-serif));
  box-shadow: none;
}
