/*
| Maison Belle — formation importation.
| The page opens on a textured plate (the title and intro sit on the texture
| itself), then a white sheet rises over it with the programme. To change a
| texture, swap the two file names in --texture-* below: silk, plaster, marble
| or floral, each in a -portrait (phones) and a -wide (larger screens) version.
*/
:root {
    --texture-page: url("/assets/floral-portrait.webp");
    --texture-page-wide: url("/assets/floral-wide.webp");
    --texture-band: url("/assets/marble-portrait.webp");
    --texture-band-wide: url("/assets/marble-wide.webp");

    --ink: #2A171D;
    --ink-soft: #4B3238;
    --muted: #725B62;
    --rose: #A32F57;
    --rose-soft: #F6E6EA;
    --line: #F0E3E6;
    --sheet: #FFFFFF;
    --plate: #E6C7BD;

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --gutter: 20px;
    --column: 760px;
    --radius-sheet: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--plate);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }

/* The texture holds still while the page scrolls over it. */
.texture {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--plate) var(--texture-page) center top / cover no-repeat;
}

.texture::after {
    /* A pale veil at the top keeps the title crisp on the brightest folds. */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 250, 249, 0.55) 0%, rgba(255, 250, 249, 0.18) 45%, rgba(255, 250, 249, 0) 70%);
}

.page {
    width: 100%;
    max-width: var(--column);
    margin: 0 auto;
}

/* Top bar, on the texture. */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 6px;
}

.brand {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    color: var(--ink);
}

.brand em { font-style: italic; font-weight: 600; color: var(--rose); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 1px 2px rgba(42, 23, 29, 0.08), 0 6px 18px rgba(42, 23, 29, 0.06);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.chip:hover { background: #FFFFFF; }
.chip:active { transform: scale(0.98); }
.chip .icon { width: 18px; height: 18px; color: #1A9E54; }

/* Hero, on the texture. */
.hero { padding: 40px var(--gutter) 64px; }

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rose);
}

.hero h1 {
    margin-top: 14px;
    font-family: var(--serif);
    font-size: clamp(42px, 11vw, 72px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}

.hero h1 em, .band h2 em { font-style: italic; font-weight: 600; color: var(--rose); }

.lead {
    max-width: 34em;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--ink);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(42, 23, 29, 0.18);
    transition: background-color 150ms ease-out, transform 150ms ease-out, box-shadow 150ms ease-out;
}

.button:hover { background: #42252E; box-shadow: 0 12px 28px rgba(42, 23, 29, 0.24); }
.button:active { transform: scale(0.98); }
.button .icon { width: 20px; height: 20px; color: #4ADE80; }

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: rgba(163, 47, 87, 0.5);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 6px;
}

.text-link:hover { text-decoration-color: var(--rose); }

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 32px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
}

.facts li { display: inline-flex; align-items: center; gap: 8px; }

.facts svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--rose);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* The white sheet that rises over the texture. */
.sheet {
    position: relative;
    padding: 22px var(--gutter) 32px;
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    background: var(--sheet);
    box-shadow: 0 -8px 30px rgba(42, 23, 29, 0.06);
}

.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--rose); }
.crumbs span:last-child { font-weight: 600; color: var(--ink); }

.block { padding: 30px 0; border-bottom: 1px solid var(--line); }
.block:first-of-type { padding-top: 22px; }

.block h2, .band h2 {
    font-family: var(--serif);
    font-size: clamp(30px, 7vw, 40px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--ink);
    text-wrap: balance;
}

.block > p { margin-top: 12px; color: var(--ink-soft); }
.block > .intro { color: var(--muted); }

.steps {
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.steps li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 4px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.step-number {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    color: var(--rose);
}

.steps h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.steps p { margin-top: 6px; color: var(--muted); }

.ticks {
    margin-top: 16px;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    padding: 10px 0 10px 32px;
    color: var(--ink-soft);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A32F57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Closing band: the second texture, text on it again. */
.band {
    position: relative;
    margin: 32px calc(-1 * var(--gutter)) 0;
    padding: 44px var(--gutter) 48px;
    overflow: hidden;
    background: #F1CBCA var(--texture-band) center / cover no-repeat;
    text-align: center;
}

.band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 75% at 50% 45%, rgba(255, 249, 248, 0.72), rgba(255, 249, 248, 0.28) 70%, rgba(255, 249, 248, 0.12));
}

.band > * { position: relative; }
.band h2 { max-width: 15em; margin: 12px auto 26px; }

/* Footer, on the sheet. */
.footer {
    padding: 30px 0 calc(8px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.brand-small { margin-bottom: 8px; font-size: 22px; }
.footer .fine { margin-top: 8px; font-size: 11.5px; line-height: 1.6; }

/* Phones: the WhatsApp button stays within thumb reach once the hero is gone. */
.sticky-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 -6px 24px rgba(42, 23, 29, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 220ms ease-out, opacity 220ms ease-out;
}

.sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta .button { width: 100%; }

a:focus-visible, .button:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
}

/* Larger screens: the column floats on the texture, with the sheet rounded all round. */
@media (min-width: 720px) {
    :root { --gutter: 48px; }

    body { font-size: 16px; }
    .texture { background-image: var(--texture-page-wide); }
    .topbar { padding-top: 28px; }
    .brand { font-size: 30px; }
    .hero { padding: 72px var(--gutter) 88px; }
    .lead { font-size: 18px; }
    .sheet { margin-bottom: 64px; padding-top: 30px; border-radius: var(--radius-sheet); box-shadow: 0 20px 60px rgba(42, 23, 29, 0.12); }
    .steps li { grid-template-columns: 72px 1fr; padding: 22px 0; }
    .step-number { font-size: 36px; }
    .steps h3 { font-size: 17px; }
    .band { margin: 40px 0 0; border-radius: 22px; background-image: var(--texture-band-wide); padding: 56px 40px 60px; }
    .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
