:root {
    --bg: #fdfcfa;
    --bg-alt: #f5f0eb;
    --text: #1a1a1a;
    --muted: #8a8480;
    --accent: #b5733f;
    --border: #e2dad0;
    --accent-dark: #8c5a2e;
    --fs-2xs: 0.72rem;
    --fs-xs: 0.8rem;
    --fs-md: 0.95rem;
    --fs-quote: 1.4rem;
    --h3-size: 1.45rem;
    /* Shared by every section's <h2> (e.g. "Deux enseignantes passionnées"),
       the teacher-name heading and the contact-modal title — one "sous titre"
       size for all three, adjustable via --title-scale (the Apparence tab's
       "Sous titre" control) rather than each having its own knob. */
    --heading-size: calc(clamp(2.2rem, 5vw, 3.6rem) * var(--title-scale, 1));
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: var(--body-font-size, 16px);
    line-height: 1.75;
    font-weight: 300;
}

/* ── NAV ─────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 0 2rem;
    height: 56px;
    background: rgba(var(--bg-rgb, 253, 252, 250), 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.2s;
}
nav a:hover {
    color: var(--text);
}
nav a.active {
    font-weight: 700;
}
nav a.nav-cta {
    color: var(--accent);
    border: 1px solid currentColor;
    padding: 0.3rem 1rem;
    transition:
        background 0.2s,
        color 0.2s;
}
nav a.nav-cta:hover {
    background: var(--accent);
    color: #fff;
}

/* ── HERO ────────────────────────────────────── */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--hero-mask-opacity, 0.6);
}
.hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.hero-inner h1 {
    font-family: "Square Peg", cursive;
    font-size: clamp(5rem, 12vw, 11rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
}
.hero-subs {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.hero-subs span {
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero-subs .sep {
    margin: 0 1rem;
    color: var(--border);
}
.hero-quote {
    max-width: 520px;
    margin: 0 auto;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    text-align: left;
}
.hero-quote p {
    font-family: "Cormorant Garamond", serif;
    font-size: var(--fs-quote, 1.4rem);
    font-style: italic;
    font-weight: 600;
    color: #4a4540;
    margin-bottom: 0.5rem;
}
.hero-quote cite {
    font-size: var(--fs-2xs, 0.72rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* ── HERO SCROLL CTA ─────────────────────────── */
.hero-scroll {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    text-decoration: none;
    font-size: var(--fs-xs, 0.8rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 0.2s;
    animation: hero-bounce 2.6s ease-in-out infinite;
}
.hero-scroll:hover {
    color: var(--accent);
}
@keyframes hero-bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }
    55% {
        transform: translateX(-50%) translateY(7px);
        opacity: 1;
    }
}

/* ── HERO ANNOUNCEMENT ───────────────────────── */
.hero-announcement {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.4rem 1.1rem;
    border: 1px solid rgb(var(--accent-rgb, 181, 115, 63));
    background: rgba(var(--accent-rgb, 181, 115, 63), 0.49);
    color: white;
    font-size: var(--fs-xs, 0.8rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ── SECTION BASE ────────────────────────────── */
section {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
}
.wrap {
    max-width: 960px;
    margin: 0 auto;
}
.wrap-wide {
    max-width: 1160px;
    margin: 0 auto;
}

.eyebrow {
    display: block;
    font-size: var(--eyebrow-size, 1.9rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: var(--heading-size);
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 1.75rem;
}
h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: var(--h3-size, 1.45rem);
    font-weight: 400;
    margin: 1.75rem 0 0.5rem;
}
p {
    margin-bottom: 1.1rem;
    color: var(--text);
}
p:last-child {
    margin-bottom: 0;
}

/* ── SECTION IMAGE ───────────────────────────── */
.full-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
    margin-bottom: 2rem;
}

/* ── SCROLL SECTIONS (parallax) ──────────────────────────── */
.scroll-section {
    height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.scroll-section.tall {
    height: 500px;
}
@media (hover: hover) {
    .scroll-section {
        background-attachment: fixed;
    }
}

/* ── PULL QUOTE ──────────────────────────────── */
.pull {
    margin: 2.25rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pull p {
    font-family: "Cormorant Garamond", serif;
    font-size: var(--fs-quote, 1.4rem);
    font-style: italic;
    font-weight: 300;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.pull cite {
    font-size: var(--fs-2xs, 0.72rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── DASH LIST ───────────────────────────────── */
.dash-list {
    list-style: none;
}
.dash-list li {
    padding: 0.6rem 0 0.6rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    font-size: var(--fs-md, 0.95rem);
}
.dash-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ── GRID SPLIT ──────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.75rem 0;
}
.split img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    display: block;
}

/* ── IMAGE ROW (gallery "horizontal" layout) ────────────── */
.img-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.img-row-item {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

/* ── IMAGE CAROUSEL (gallery "carousel" layout) ─────────── */
.img-carousel {
    position: relative;
    margin-bottom: 2rem;
}
.img-carousel-viewport {
    overflow: hidden;
    aspect-ratio: 12 / 5;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.img-carousel-track {
    display: flex;
    height: 100%;
    gap: 1rem;
    transition: transform 0.6s ease;
    will-change: transform;
}
.img-carousel-slide {
    flex: 0 0 78%;
    height: 100%;
    opacity: 0.35;
    transition: opacity 0.6s ease;
}
.img-carousel-slide.active {
    opacity: 1;
}
.img-carousel-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}
.img-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px; /* ‹/› sit low in their line box relative to the circle's optical center */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
}
.carousel-btn:hover {
    background: #fff;
}
.carousel-btn.prev {
    left: 0.75rem;
}
.carousel-btn.next {
    right: 0.75rem;
}

/* ── MAP ─────────────────────────────────────── */
.map-box {
    margin: 1.75rem 0;
}
.map-box iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}

/* ── SCHEDULE ────────────────────────────────── */
.schedule {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.75rem 0;
}
.day h3 {
    margin: 0 0 0.6rem;
}
.day ul {
    list-style: none;
}
.day li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}
.day li em {
    font-style: normal;
}
.day li .teacher-corinne {
    color: var(--accent);
}
.day li .teacher-carine {
    color: #5b7fa6;
}

/* ── PRICING ─────────────────────────────────── */
.price-rows {
    list-style: none;
    margin: 1.25rem 0;
}
.price-rows li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    color: #4a4540;
}
.conditions {
    margin-top: 1.25rem;
}
.conditions p {
    color: var(--muted);
    margin-bottom: 0.35rem;
}

/* ── STAGE BOX ───────────────────────────────── */
.stage-box {
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.stage-box .s-date {
    margin: 0 0 0.3rem;
    color: var(--text);
}
.stage-box .s-venue {
    font-size: var(--fs-2xs, 0.72rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}
.stage-box p {
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.stage-note {
    margin-top: 0.6rem;
}
.link-cta {
    color: var(--accent);
    font-size: var(--fs-xs, 0.8rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.85rem;
}
.link-cta:hover {
    text-decoration: underline;
}

/* ── TEACHER ─────────────────────────────────── */
.teacher {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: start;
}
.teacher img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.teacher h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: var(--heading-size);
    font-weight: 400;
    margin-bottom: 0.2rem;
}
.creds {
    list-style: none;
    margin-bottom: 1rem;
}
.creds li {
    font-size: var(--fs-xs, 0.8rem);
    color: var(--muted);
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--border);
}
.bio-extra {
    display: none;
}
.bio-extra.open {
    display: block;
}
.toggle-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font:
        300 var(--fs-xs, 0.8rem)/1 "Inter",
        sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.65rem 0;
    display: block;
}

/* ── CONTACT MODAL ───────────────────────────── */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}
.overlay.open {
    display: flex;
}
.modal {
    background: var(--bg);
    width: 90%;
    max-width: 540px;
    padding: 2.5rem;
    position: relative;
}
.modal h2 {
    margin-bottom: 0.4rem;
}
.modal > p {
    color: var(--muted);
    margin-bottom: 1.75rem;
}
.modal input,
.modal textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 0.65rem;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    font:
        300 var(--body-font-size, 16px)/1.5 "Inter",
        sans-serif;
    color: var(--text);
    outline: none;
}
.modal input:focus,
.modal textarea:focus {
    border-color: var(--accent);
}
.modal textarea {
    min-height: 110px;
    resize: vertical;
}
.modal-row {
    display: flex;
    gap: 1rem;
}
.btn-fill {
    flex: 1;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem;
    font:
        400 var(--fs-xs, 0.8rem)/1 "Inter",
        sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.btn-ghost {
    background: none;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 0.8rem 1.5rem;
    font:
        400 var(--fs-xs, 0.8rem)/1 "Inter",
        sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.btn-fill:hover {
    background: var(--accent-dark);
}
.btn-ghost:hover {
    border-color: var(--text);
    color: var(--text);
}
.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--muted);
    line-height: 1;
}
#form-msg {
    display: none;
    margin-top: 1rem;
}
#form-msg.success {
    color: var(--accent);
}
#form-msg.error {
    color: #c0392b;
}

/* ── CTA BUTTON ──────────────────────────────── */
.section-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.7rem 2rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: var(--fs-xs, 0.8rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-family: "Inter", sans-serif;
}
.section-cta:hover {
    background: var(--accent-dark);
}

/* ── FOOTER ──────────────────────────────────── */
footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: var(--fs-xs, 0.8rem);
    letter-spacing: 0.06em;
}
footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}
footer a:hover {
    color: #fff;
}
footer p + p {
    margin-top: 0.4rem;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 760px) {
    nav {
        gap: 1rem;
        flex-wrap: wrap;
        height: auto;
        padding: 0.75rem 1rem;
    }
    .split,
    .schedule,
    .teacher {
        grid-template-columns: 1fr;
    }
    .teacher img {
        aspect-ratio: 4/3;
        max-height: 260px;
    }
    .scroll-section {
        height: 220px;
    }
    .scroll-section.tall {
        height: 280px;
    }
}
