/* ============================================================
   parallax-home.css
   Styles for the home single-page parallax SPA (5 slides + modals).
   All colors are defined as CSS variables in :root below — change
   them in one place and the whole site updates.
   ============================================================ */

/* ============================================================
   :root — DESIGN TOKENS
   Simplified palette: only a few base colors. Everything else is
   built from these via opacity tiers (low / mid / high / bright).
   ============================================================ */
:root {
    /* ---------- Core neutrals ---------- */
    --color-text:        #1a1a1a;
    --color-text-muted:  #333;
    --color-text-soft:   #888;
    --color-bg-page:     #fafaf7;
    --color-bg-slide-fallback: #2a2a2a;
    --color-white:       #fff;
    --color-black:       #000;

    /* ---------- Semantic accents ---------- */
    --color-success:      #6ee7a7;
    --color-success-soft: #b8f5c8;
    --color-error:        #ff7a7a;
    --color-error-soft:   #ffb8b8;
    --color-danger:       #d33;

    /* ---------- White-on-dark SURFACES (4 tiers) ---------- */
    --surface-low:    rgba(255, 255, 255, 0.06);
    --surface-mid:    rgba(255, 255, 255, 0.10);
    --surface-high:   rgba(255, 255, 255, 0.18);
    --surface-bright: rgba(255, 255, 255, 0.95);

    /* ---------- White-on-dark BORDERS (4 tiers) ---------- */
    --border-soft:   rgba(255, 255, 255, 0.15);
    --border-mid:    rgba(255, 255, 255, 0.30);
    --border-strong: rgba(255, 255, 255, 0.50);
    --border-bright: rgba(255, 255, 255, 0.70);

    /* ---------- White-on-dark TEXT (3 tiers) ---------- */
    --on-dark-faint:  rgba(255, 255, 255, 0.60);
    --on-dark-mid:    rgba(255, 255, 255, 0.78);
    --on-dark-strong: rgba(255, 255, 255, 0.90);

    /* ---------- Dark overlays (3 tiers) ---------- */
    --overlay-soft:   rgba(0, 0, 0, 0.30);
    --overlay:        rgba(0, 0, 0, 0.45);
    --overlay-strong: rgba(0, 0, 0, 0.55);

    /* ---------- Dark CARDS (2 tiers) ---------- */
    --card-dark:        rgba(20, 20, 20, 0.88);
    --card-dark-strong: rgba(20, 20, 20, 0.95);

    /* ---------- Tinted feedback ---------- */
    --tint-success: rgba(110, 231, 167, 0.20);
    --tint-error:   rgba(255, 122, 122, 0.20);

    /* ---------- Shadows (3 tiers) ---------- */
    --shadow-soft:   0 4px 12px rgba(0, 0, 0, 0.18);
    --shadow-medium: 0 12px 32px rgba(0, 0, 0, 0.30);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.45);

    /* ---------- Admin (light theme) ---------- */
    --admin-border:       #eee;
    --admin-border-soft:  #d4d4cd;
    --admin-bg-skip-link: #fff;
}

/* ============================================================
   BASE RESET / GLOBAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, figure {
    margin: 0; padding: 0;
}
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--color-text);
    background: var(--color-bg-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--admin-bg-skip-link);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.admin-page { padding: 2rem 0; }
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.admin-main { min-width: 0; }
.admin-sidebar {
    border-radius: 12px; padding: 1.5rem;
    align-self: start; position: sticky; top: 1rem;
}
.admin-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--color-text-soft); margin-bottom: 1rem; font-weight: 600;
}
.admin-nav li { margin-bottom: 0.4rem; }
.admin-nav a {
    display: block; padding: 0.5rem 0.75rem; border-radius: 8px;
    text-decoration: none; color: var(--color-text-muted); font-size: 0.9rem;
}
.stats-grid, .card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
}
.badge {
    display: inline-block; background: var(--color-danger); color: var(--color-white);
    border-radius: 999px; padding: 1px 8px; font-size: 0.7rem; margin-left: 0.4rem;
}
.inline-form { display: inline; }
.btn-link {
    background: none; border: none; color: var(--color-text);
    cursor: pointer; text-decoration: underline; font-size: 0.85rem; padding: 0;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
body.is-home {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
}
body.is-home, html:has(body.is-home) { overflow: hidden; }

@media (max-width: 768px) {
    body.is-home, html:has(body.is-home) { overflow: auto; }
}

/* ============================================================
   GLASSY PILL NAV
   ============================================================ */
.pill-nav {
    position: fixed; top: 1.5rem; left: 50%;
    transform: translateX(-50%); z-index: 100;
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--surface-mid);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: var(--shadow-medium);
    color: var(--color-white);
    font-family: 'Montserrat', sans-serif;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pill-nav { background: var(--card-dark); }
}
.pill-nav-brand {
    display: inline-flex; align-items: center; gap: 0.55rem;
    color: var(--color-white); text-decoration: none;
    font-weight: 600; letter-spacing: 0.02em;
    font-size: 0.85rem; text-transform: uppercase;
}
.pill-nav-brand-mark { display: none; }
.pill-nav-brand-name {
    display: inline-block; font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.78rem; font-weight: 500; opacity: 0.9;
}
.pill-nav-links {
    display: flex; align-items: center; gap: 0.25rem;
    background: var(--surface-low); border-radius: 999px; padding: 0.25rem;
}
.pill-nav-link {
    position: relative; color: var(--on-dark-mid);
    text-decoration: none; padding: 0.45rem 1rem; border-radius: 999px;
    font-size: 0.78rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em;
    transition: color 0.25s ease, background-color 0.25s ease;
}
.pill-nav-link:hover { color: var(--color-white); }
.pill-nav-link.is-active {
    color: var(--color-text); background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.pill-auth {
    position: fixed; top: 1.5rem; right: 1.5rem; z-index: 100;
    display: flex; gap: 0.5rem; align-items: center;
}
.pill-auth-link, .pill-auth-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface-mid);
    border: 1px solid var(--border-soft);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    box-shadow: var(--shadow-medium);
    color: var(--color-white);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
    padding: 0;
}
.pill-auth-link:hover, .pill-auth-btn:hover {
    background: var(--surface-high); transform: scale(1.05);
}
.pill-auth-link svg, .pill-auth-btn svg { width: 20px; height: 20px; }
.pill-auth-form { margin: 0; padding: 0; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pill-auth-link, .pill-auth-btn { background: var(--card-dark); }
}

/* ============================================================
   PARALLAX SLIDES
   ============================================================ */
.parallax-container { position: relative; width: 100%; }
.background {
    background-size: cover; background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden; will-change: transform;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    height: 130vh; position: fixed; width: 100%;
    transform: translateY(30vh);
    transition: transform 1.2s cubic-bezier(0.22, 0.44, 0, 1);
    color: var(--color-white);
}
.background:before {
    content: ""; position: absolute; inset: 0;
    background-color: var(--overlay); z-index: 0;
}
.background:first-child { transform: translateY(-15vh); }
.background:first-child .content-wrapper { transform: translateY(15vh); }

.bg-1 { background-image: url('/static/img/victoire.webp'); }
.bg-2 {
    background-image: url('/static/img/cabinet.webp');
    background-color: var(--color-bg-slide-fallback);
}
.bg-3 { background-image: url('/static/img/massage.webp'); }
.bg-4 {
    background-image: url('/static/img/sainte.webp');
    background-color: var(--color-bg-slide-fallback);
}
.bg-5 {
    background-image:
        linear-gradient(180deg, var(--card-dark), var(--card-dark-strong)),
        url('/static/img/local.webp');
}
.bg-2:before { background-color: var(--overlay-strong); }
.bg-4:before { background-color: var(--overlay-strong); }
.bg-5.bg--footer:before { background-color: transparent; }

.background:nth-child(1) { z-index: 5; }
.background:nth-child(2) { z-index: 4; }
.background:nth-child(3) { z-index: 3; }
.background:nth-child(4) { z-index: 2; }
.background:nth-child(5) { z-index: 1; }

.content-wrapper {
    position: relative; z-index: 1; height: 100vh;
    display: flex; justify-content: center; text-align: center;
    flex-flow: column nowrap;
    color: var(--color-white);
    font-family: 'Montserrat', sans-serif;
    transform: translateY(40vh);
    will-change: transform; backface-visibility: hidden;
    transition: transform 1.7s cubic-bezier(0.22, 0.44, 0, 1);
    padding: 6rem 1.5rem 3rem;
    box-sizing: border-box;
}
.content-wrapper--split {
    flex-flow: row nowrap; align-items: center; text-align: left;
    gap: 4rem; max-width: 1200px; margin: 0 auto;
}
.content-wrapper--split .content-col { flex: 1 1 50%; min-width: 0; }

.content-eyebrow {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.25em;
    font-weight: 500; opacity: 0.85; margin-bottom: 1rem;
}
.content-title {
    font-size: clamp(2.4rem, 8vh, 6.5rem);
    line-height: 1.1; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}
.content-title--small  { font-size: clamp(1.6rem, 4vh, 2.5rem); }
.content-title--medium { font-size: clamp(1.8rem, 5vh, 3rem); margin-bottom: 1rem; }

/* Hero variant: brand badge ("Soie") + the rest of the title.
   Stacks on mobile, sits inline on wider screens. */
.content-title--hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.content-title--hero .content-title-badge {
    /* Disable the title's caps (the badge is italic serif, not block caps),
       but inherit the title's font-size so the "Soie" pill and the rest of
       the title ("d'Équilibre by Tatania") sit at the same visual weight. */
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: inherit;
    line-height: 1;
    /* `flex` containers don't auto-shrink an inline-flex child to content;
       this keeps the pill hugging the word. */
    align-self: center;
}
.content-title--hero .content-title-rest {
    display: inline-block;
    line-height: 1.1;
}
@media (min-width: 769px) {
    .content-title--hero {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: baseline;
        gap: 0.6em;
    }
    .content-title--hero .content-title-badge {
        align-self: center;
    }
}

.content-subtitle {
    font-size: clamp(1rem, 2.4vh, 1.35rem);
    font-weight: 300; line-height: 1.6;
    max-width: 640px; margin: 0 auto 2rem; opacity: 0.92;
}
.content-wrapper--split .content-subtitle { margin-left: 0; margin-right: 0; }
.content-subtitle--lead { font-size: clamp(1.1rem, 2.6vh, 1.5rem); }

.content-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.content-wrapper--split .content-cta { justify-content: flex-start; }

/* Contact map = a static WebP wrapped in an external link.
   No iframe, no third-party cookies, no consent banner needed. */
.contact-map {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-medium);
    margin: 0 0 1.25rem;
    background: var(--overlay-soft);
    text-decoration: none;
    color: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-map img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15) contrast(0.95);
    transition: transform 0.4s ease, filter 0.3s ease;
}
.contact-map:hover img,
.contact-map:focus-visible img {
    transform: scale(1.04);
    filter: grayscale(0) contrast(1);
}
.contact-map-cta {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--card-dark);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.contact-map:hover .contact-map-cta,
.contact-map:focus-visible .contact-map-cta {
    background: var(--card-dark-strong);
    transform: translateY(-2px);
}

.btn-glass {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.9rem 2rem;
    border-radius: 999px;
    background: var(--surface-mid);
    border: 1px solid var(--border-strong);
    color: var(--color-white); text-decoration: none;
    font-family: inherit; font-size: 0.85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.12em;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover {
    background: var(--surface-high);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}
.btn-glass--primary {
    background: var(--surface-bright);
    color: var(--color-text);
    border-color: transparent;
}
.btn-glass--primary:hover { background: var(--color-white); color: var(--color-black); }

/* ============================================================
   SLIDE-SPECIFIC ELEMENTS
   ============================================================ */
.scroll-cue {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%); z-index: 2;
    color: var(--on-dark-strong);
    text-decoration: none; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.3em;
    display: inline-flex; flex-direction: column; align-items: center;
    gap: 0.5rem;
}
.scroll-cue-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--on-dark-strong), rgba(255,255,255,0));
    animation: scroll-cue-pulse 2s ease-in-out infinite;
}
@keyframes scroll-cue-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
    50%      { opacity: 1;   transform: scaleY(1);   }
}

.contact-info {
    list-style: none; padding: 0; margin: 0 0 2rem;
    display: flex; flex-direction: column; gap: 1rem;
}
.contact-info li {
    display: flex; align-items: center; gap: 0.85rem;
    font-size: 1rem; font-weight: 300; line-height: 1.5;
}
.contact-info svg { width: 22px; height: 22px; flex-shrink: 0; opacity: 0.85; }
.contact-info a {
    color: var(--color-white); text-decoration: none;
    border-bottom: 1px solid var(--border-mid);
    transition: border-color 0.2s ease;
}
.contact-info a:hover { border-bottom-color: var(--color-white); }

.contact-form {
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: 18px; padding: 2rem;
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .contact-form { background: var(--card-dark); }
}
.contact-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin: 0 0 1.5rem; color: var(--color-white);
}
.contact-form .form-row { margin-bottom: 1rem; }
.contact-form input,
.contact-form textarea {
    width: 100%; box-sizing: border-box;
    background: var(--surface-mid);
    border: 1px solid var(--border-soft);
    border-radius: 10px; padding: 0.85rem 1rem;
    color: var(--color-white);
    font-family: inherit; font-size: 0.95rem; font-weight: 300;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--on-dark-faint); }
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: var(--surface-high);
    border-color: var(--border-strong);
}
.contact-form textarea { resize: vertical; min-height: 90px; }

.contact-form-submit { width: 100%; margin-top: 0.5rem; position: relative; }
.contact-form-submit .btn-spinner {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(0,0,0,0.20);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}
.contact-form-submit.is-loading .btn-spinner { display: inline-block; }
.contact-form-submit.is-loading .btn-label   { opacity: 0.5; }
@keyframes spinner { to { transform: rotate(360deg); } }

.contact-form-feedback {
    margin-top: 1rem; font-size: 0.85rem;
    line-height: 1.4; min-height: 1.2em;
}
.contact-form-feedback.is-success { color: var(--color-success-soft); }
.contact-form-feedback.is-error   { color: var(--color-error-soft); }

.feature-list {
    list-style: none; padding: 0;
    margin: 1rem auto 0; max-width: 720px; text-align: left;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.feature-list li {
    display: flex; align-items: flex-start; gap: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.feature-num {
    font-family: serif; font-style: italic;
    font-size: 1.6rem; font-weight: 600;
    opacity: 0.6; line-height: 1;
    flex-shrink: 0; min-width: 2.5rem;
}
.feature-text { font-size: 1rem; font-weight: 300; line-height: 1.55; }
.feature-text strong {
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    font-size: 0.85rem; display: block; margin-bottom: 0.25rem;
}
.feature-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.85rem; max-width: 1000px; margin: 1rem auto 0;
}
.feature-list--grid li { padding: 0.95rem 1.1rem; }
.feature-list--grid .feature-text strong { margin-bottom: 0.3rem; }
.feature-list--cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 800px; }
@media (max-width: 600px) {
    .feature-list--grid, .feature-list--cols-2 { grid-template-columns: 1fr; }
}
.feature-list--icons li { padding: 1.15rem 1.25rem; align-items: center; gap: 1rem; }
.feature-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface-mid);
    border: 1px solid var(--border-soft);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}
.feature-icon svg { width: 22px; height: 22px; display: block; }
.feature-list--icons .feature-text strong { font-size: 0.9rem; }

.content-disclaimer {
    max-width: 720px; margin: 1.5rem auto 0;
    font-size: 0.78rem; line-height: 1.55;
    color: var(--on-dark-faint);
    font-style: italic; text-align: center;
    padding: 0.75rem 1rem;
    background: var(--overlay-soft);
    border-left: 2px solid var(--border-soft);
    border-radius: 4px;
}

/* ------ Footer slide ------ */
.bg--footer .content-wrapper { justify-content: center; }
.footer-slide {
    max-width: 900px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 2rem; text-align: center;
}
.footer-slide-brand {
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.brand-mark-lg {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--surface-mid);
    border: 1px solid var(--border-mid);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: serif; font-style: italic;
    font-size: 2rem; font-weight: 600;
}
.footer-slide-nav {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem;
}
.footer-slide-nav a {
    color: var(--on-dark-mid); text-decoration: none;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
    font-weight: 500; transition: color 0.2s ease;
}
.footer-slide-nav a:hover { color: var(--color-white); }
.footer-slide-meta {
    color: var(--on-dark-faint); font-size: 0.78rem;
    letter-spacing: 0.05em; margin-top: 1rem;
}
.footer-slide-meta a {
    color: var(--on-dark-mid); text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
}
.footer-slide-meta a:hover { color: var(--color-white); }
.footer-slide-nav-btn {
    background: none; border: none;
    color: var(--on-dark-mid); text-decoration: none;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
    font-weight: 500; cursor: pointer; padding: 0;
    font-family: inherit; transition: color 0.2s ease;
}
.footer-slide-nav-btn:hover { color: var(--color-white); }

/* ============================================================
   PARALLAX MOTION CLASSES
   ============================================================ */
.background.up-scroll { transform: translate3d(0, -15vh, 0); }
.background.up-scroll .content-wrapper { transform: translateY(15vh); }
.background.up-scroll + .background { transform: translate3d(0, 30vh, 0); }
.background.up-scroll + .background .content-wrapper { transform: translateY(30vh); }
.background.down-scroll { transform: translate3d(0, -130vh, 0); }
.background.down-scroll .content-wrapper { transform: translateY(40vh); }
.background.down-scroll + .background:not(.down-scroll) { transform: translate3d(0, -15vh, 0); }
.background.down-scroll + .background:not(.down-scroll) .content-wrapper { transform: translateY(15vh); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-stack {
    position: fixed; top: 5.5rem; right: 1.5rem; z-index: 200;
    display: flex; flex-direction: column; gap: 0.6rem;
    pointer-events: none; max-width: 360px;
}
.toast {
    pointer-events: auto;
    background: var(--card-dark);
    color: var(--color-white);
    border: 1px solid var(--border-soft);
    border-radius: 12px; padding: 0.85rem 1.1rem;
    font-size: 0.88rem; line-height: 1.4;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: toast-in 0.35s cubic-bezier(0.22, 0.44, 0, 1);
    font-family: 'Montserrat', sans-serif;
}
.toast.is-success { border-left: 3px solid var(--color-success); }
.toast.is-error   { border-left: 3px solid var(--color-error); }
.toast.is-leaving { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toast-out {
    to { transform: translateX(100%); opacity: 0; }
}

/* ============================================================
   MOBILE FALLBACK
   ============================================================ */
@media (max-width: 768px) {
    .pill-nav-links { display: none; }
    .pill-nav { gap: 0; padding: 0.4rem 1rem; }
    .pill-nav-brand-name { font-size: 0.8rem; }

    /* Cap the giant slide titles on small screens — `8vh` was too big
       on tall narrow phones (and broke long words like "Soie d'Équilibre"). */
    .content-title {
        font-size: clamp(1.4rem, 7vw, 2.1rem);
        letter-spacing: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
    .content-title--small   { font-size: clamp(1.2rem, 5.5vw, 1.7rem); }
    .content-title--medium  { font-size: clamp(1.3rem, 6vw, 1.9rem); }
    .content-subtitle       { font-size: clamp(0.9rem, 3.5vw, 1.05rem); }
    .content-subtitle--lead { font-size: clamp(0.95rem, 3.8vw, 1.15rem); }

    .background {
        position: relative; height: auto; min-height: 100vh;
        transform: none !important; transition: none;
    }
    .background:first-child,
    .background.up-scroll,
    .background.down-scroll { transform: none !important; }

    .content-wrapper {
        height: auto; min-height: 100vh;
        transform: none !important; transition: none;
        padding-top: 7rem;
    }
    .background:first-child .content-wrapper,
    .background.up-scroll .content-wrapper,
    .background.up-scroll + .background .content-wrapper,
    .background.down-scroll .content-wrapper,
    .background.down-scroll + .background:not(.down-scroll) .content-wrapper {
        transform: none !important;
    }

    .content-wrapper--split {
        flex-flow: column nowrap;
        gap: 2.5rem; text-align: center;
    }
    /* Let each column take the full mobile width (was capped at flex 50%). */
    .content-wrapper--split .content-col {
        flex: 1 1 100%;
        width: 100%;
    }
    .content-wrapper--split .content-cta,
    .content-wrapper--split .content-subtitle {
        justify-content: center; margin-left: auto; margin-right: auto;
        text-align: center;
    }

    /* Tighten the side gutters and let the form fill the remaining width. */
    .content-wrapper { padding-left: 1rem; padding-right: 1rem; }
    .contact-form {
        padding: 1.25rem;
        border-radius: 14px;
        width: 100%;
    }

    .contact-info { align-items: flex-start; max-width: 360px; margin: 0 auto 2rem; }
    .contact-info li { text-align: left; }

    .scroll-cue { bottom: 1.5rem; }
    .toast-stack { right: 1rem; left: 1rem; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .background, .content-wrapper { transition: none !important; }
    .scroll-cue-line { animation: none; }
}

/* ============================================================
   MODALS
   ============================================================ */
.modal {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal-backdrop {
    position: fixed; inset: 0;
    background: var(--overlay-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modal-fade-in 0.25s ease;
}

.modal-card {
    position: relative; z-index: 1;
    width: 100%; max-width: 440px;
    max-height: calc(100vh - 3rem); overflow-y: auto;
    background: var(--card-dark-strong);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 2.5rem 2rem 2rem;
    color: var(--color-white);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    animation: modal-slide-up 0.32s cubic-bezier(0.22, 0.44, 0, 1);
}
.modal-card--wide   { max-width: 640px; }
.modal-card--scroll { max-height: calc(100vh - 3rem); }

.modal-close {
    position: absolute; top: 0.75rem; right: 0.75rem;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    color: var(--color-white);
    font-size: 1.4rem; line-height: 1;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
    transition: background-color 0.2s ease;
}
.modal-close:hover { background: var(--surface-high); }

.modal-title {
    font-size: 1.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.modal-subtitle {
    color: var(--on-dark-mid);
    font-size: 0.9rem; margin-bottom: 1.5rem;
    font-weight: 300; line-height: 1.5;
}
.modal-section-title {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--on-dark-faint);
    font-weight: 500;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-soft);
}

.modal-form { margin-top: 1rem; }
.modal-form .form-row { margin-bottom: 0.85rem; }

.modal-form input[type="text"],
.modal-form input[type="email"],
.modal-form input[type="tel"],
.modal-form input[type="password"],
.modal-form textarea {
    width: 100%; box-sizing: border-box;
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: 10px; padding: 0.85rem 1rem;
    color: var(--color-white);
    font-family: inherit; font-size: 0.95rem; font-weight: 300;
}
.modal-form input::placeholder,
.modal-form textarea::placeholder { color: var(--on-dark-faint); }
.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    background: var(--surface-mid);
    border-color: var(--border-strong);
}

.form-row--check {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--on-dark-mid);
    line-height: 1.4;
}
.form-row--check label {
    display: inline-flex; align-items: flex-start; gap: 0.5rem; cursor: pointer;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--on-dark-faint);
    margin-top: 0.4rem; line-height: 1.4;
}

.modal-submit { width: 100%; margin-top: 0.5rem; position: relative; }
.modal-submit .btn-spinner {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(0,0,0,0.20);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}
.modal-submit.is-loading .btn-spinner { display: inline-block; }
.modal-submit.is-loading .btn-label   { opacity: 0.5; }

.modal-feedback {
    margin-top: 1rem; font-size: 0.85rem;
    line-height: 1.4; min-height: 1.2em;
}
.modal-feedback.is-success { color: var(--color-success-soft); }
.modal-feedback.is-error   { color: var(--color-error-soft); }

.modal-switch {
    margin-top: 1.5rem; font-size: 0.85rem;
    color: var(--on-dark-faint); text-align: center;
}

.link-btn {
    background: none; border: none;
    color: var(--color-white);
    text-decoration: underline; cursor: pointer;
    padding: 0; font-family: inherit; font-size: inherit;
}

.modal-actions {
    margin-top: 2rem; display: flex; gap: 1rem; justify-content: flex-end;
}

.account-info {
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}
.account-email { font-size: 0.95rem; font-weight: 500; word-break: break-all; }

.quiz-history {
    margin: 0; padding: 0; list-style: none;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.quiz-history li {
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.quiz-history li.muted {
    color: var(--on-dark-faint); font-style: italic; justify-content: center;
}
.quiz-history-score { font-weight: 600; color: var(--color-success-soft); }

/* ============================================================
   QUIZ STAGE
   ============================================================ */
.quiz-stage .muted {
    color: var(--on-dark-faint); text-align: center; padding: 2rem 0;
}
.quiz-intro { text-align: center; padding: 1rem 0; }
.quiz-intro p {
    color: var(--on-dark-mid);
    margin-bottom: 1.5rem; font-weight: 300; line-height: 1.5;
}

.quiz-question { margin-bottom: 1.5rem; }
.quiz-question h3 {
    font-size: 1rem; font-weight: 500;
    margin-bottom: 1rem; line-height: 1.5;
}
.quiz-progress {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--on-dark-faint);
    margin-bottom: 0.75rem;
}

.quiz-answers { display: flex; flex-direction: column; gap: 0.6rem; }
.quiz-answer {
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: 12px; padding: 0.85rem 1rem;
    color: var(--color-white);
    text-align: left; cursor: pointer;
    font-family: inherit; font-size: 0.95rem; font-weight: 300; line-height: 1.4;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.quiz-answer:hover {
    background: var(--surface-mid);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.quiz-answer.is-selected {
    background: var(--surface-bright);
    color: var(--color-text);
    border-color: transparent;
}
.quiz-answer.is-correct {
    background: var(--tint-success);
    border-color: var(--color-success);
}
.quiz-answer.is-wrong {
    background: var(--tint-error);
    border-color: var(--color-error);
}

.quiz-controls {
    margin-top: 1.5rem;
    display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}

.quiz-result { text-align: center; padding: 1rem 0; }
.quiz-result-score {
    font-size: 3rem; font-weight: 600; line-height: 1; margin: 1rem 0;
}
.quiz-result-score em {
    font-style: normal;
    color: var(--on-dark-faint);
    font-size: 1.6rem; font-weight: 400;
    margin-left: 0.4rem;
}
.quiz-result-message {
    color: var(--on-dark-mid);
    font-weight: 300; margin-bottom: 1.5rem;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modal-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem; align-items: flex-start; padding-top: 5rem;
    }
    .modal-card { padding: 2rem 1.25rem 1.5rem; }
    .modal-title { font-size: 1.3rem; }
}

body.modal-open { overflow: hidden !important; }

/* ============================================================
   LEGAL MODAL CONTENT
   ============================================================ */
.legal-content {
    color: var(--on-dark-strong);
    font-size: 0.92rem; font-weight: 300; line-height: 1.65;
}
.legal-content h3 {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--color-white);
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-soft);
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 0.85rem; }
.legal-content p + p { margin-top: 0; }

.legal-list {
    list-style: none; padding: 0; margin: 0 0 1rem;
    display: flex; flex-direction: column; gap: 0.4rem;
}
.legal-list li {
    background: var(--surface-low);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem; line-height: 1.5;
}
.legal-list li strong {
    color: var(--color-white); font-weight: 600; margin-right: 0.4em;
}

/* ============================================================
   BRAND BADGE
   ============================================================ */
.brand-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--surface-high);
    border: 1px solid var(--border-mid);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-weight: 600;
    font-size: 0.95rem; letter-spacing: 0.02em;
    color: var(--color-white);
    line-height: 1.1; white-space: nowrap;
}
.brand-badge--lg {
    padding: 0.5rem 1.4rem;
    font-size: 2rem;
    border-radius: 999px;
    background: var(--surface-high);
    border: 1px solid var(--border-mid);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   MANTRA DU JOUR
   A small daily quote rendered as an italic-serif pill, sitting
   between the hero title and the subtitle on slide 1. Reuses the
   `.brand-badge` look (italic Cormorant Garamond, glassy frosted
   background) but wraps long text on multiple lines and is sized
   for readability.
   ============================================================ */
.content-mantra {
    /* Match the rhythm: same vertical gap as `.content-subtitle` margin-bottom
       (2rem) so the mantra doesn't sit border-to-border with the CTA buttons
       above it. Bottom margin kept smaller — it's the last block of the slide. */
    margin: 2rem auto 0;
    max-width: 720px;
    /* The wrapper itself stays transparent — only the badge paints. */
}
.content-mantra-badge {
    /* Re-assert the brand badge typography — some browsers reset
       inherited font-style/family when a span is inside a <p>. */
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 600;
    color: var(--color-white);
    /* Override .brand-badge defaults that don't fit a long sentence. */
    white-space: normal;
    text-align: center;
    line-height: 1.45;
    padding: 0.7rem 1.3rem;
    /* Slightly bigger than the nav badge but smaller than the hero badge. */
    font-size: clamp(0.95rem, 1.6vh, 1.15rem);
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .content-mantra { max-width: 100%; padding: 0 0.5rem; }
    .content-mantra-badge {
        font-size: clamp(0.85rem, 3.4vw, 1rem);
        padding: 0.6rem 1.1rem;
        line-height: 1.4;
    }
}

/* ============================================================
   MOBILE NAV — burger + dropdown panel
   Two pieces:
     1. .pill-nav-burger — animated hamburger button inside the
        existing pill header. Visible only ≤768px.
     2. .mobile-nav     — the drawer (a backdrop overlay + a
        glass-pill panel that slides down from below the header).
        Hidden by default via the `hidden` HTML attribute, which
        the JS removes when opening.
   ============================================================ */

.pill-nav-burger {
    display: none;            /* desktop: hidden, mobile media query enables it */
    width: 36px; height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 0.25rem;
    cursor: pointer;
    color: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
}
.pill-nav-burger-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Drawer container — hidden by default (the EJS template puts a
   `hidden` attribute on it). When the JS opens the menu, it removes
   `hidden` and adds `.is-open` to fade & slide things into place. */
.mobile-nav[hidden] { display: none; }

.mobile-nav {
    /* Stays inert on desktop (we only ever .removeAttribute('hidden')
       it from JS, and the burger only appears on mobile). */
    position: fixed;
    inset: 0;
    z-index: 250;
}

.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: pointer;
}

.mobile-nav-panel {
    /* The card sits just under the floating header pill (top:1.5rem
       + ~52px pill height + a bit of breathing room). Slides down
       from -10px on open. */
    position: absolute;
    top: calc(1.5rem + 52px + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem;
    border-radius: 22px;
    background: var(--card-dark-strong);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Open state — JS toggles `.is-open` on `.mobile-nav` */
.mobile-nav.is-open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav.is-open .mobile-nav-panel    { opacity: 1; transform: translateY(0); }

.mobile-nav-link {
    display: block;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    color: var(--on-dark-strong);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible,
.mobile-nav-link:active {
    background: var(--surface-mid);
    color: var(--color-white);
}
.mobile-nav-link.is-active {
    background: var(--color-white);
    color: var(--color-text);
}

/* ---- Mobile media query: enable the burger, animate it on open ---- */
@media (max-width: 768px) {
    .pill-nav-burger { display: inline-flex; }

    /* Burger morphs into an X when the drawer is open. */
    .pill-nav.is-open .pill-nav-burger-bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .pill-nav.is-open .pill-nav-burger-bar:nth-child(2) {
        opacity: 0;
    }
    .pill-nav.is-open .pill-nav-burger-bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Lock body scroll while the drawer is open. */
    body.has-mobile-nav-open { overflow: hidden !important; }
}
