:root {
    --burgundy:      #6e1626;
    --burgundy-dark: #4a0d19;
    --burgundy-deep: #3a0a14;
    --cream:         #f6efe4;
    --gold:          #c9a24b;
    --gold-soft:     #e0c789;
    --ink:           #2b2024;
    --muted:         #7a6b6f;
    --line:          #e7ddd0;
    --white:         #ffffff;
    --shadow:        0 18px 45px rgba(58, 10, 20, 0.18);
    --radius:        16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Jost', system-ui, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-weight: 300;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

a { color: var(--burgundy); }

.container {
    width: min(1120px, 92vw);
    margin-inline: auto;
}
.container--narrow { width: min(720px, 92vw); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.8rem;
    border-radius: 999px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .02em;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--gold {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: var(--burgundy-deep);
    box-shadow: 0 10px 24px rgba(201, 162, 75, .35);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201, 162, 75, .45); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(246, 239, 228, .55); }
.btn--ghost:hover { background: rgba(246, 239, 228, .12); }
.btn--block { width: 100%; margin-top: .5rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--cream);
    background:
        radial-gradient(120% 80% at 80% -10%, rgba(201,162,75,.18), transparent 60%),
        linear-gradient(160deg, var(--burgundy) 0%, var(--burgundy-dark) 55%, var(--burgundy-deep) 100%);
    overflow: hidden;
}
.hero__overlay {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px);
    pointer-events: none;
}
.hero__inner { position: relative; padding: 2rem 0 4.5rem; }
.hero__brand {
    text-align: center;
    padding: 1rem 0 2.5rem;
}
.hero__logo {
    height: 150px;
    width: auto;
    display: inline-block;
    background: var(--cream);
    padding: 1rem 1.4rem;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    border: 1px solid rgba(201, 162, 75, .4);
}
.hero__brand-text {
    letter-spacing: .45em;
    font-size: .72rem;
    color: var(--gold-soft);
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
}
.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .75rem;
    color: var(--gold-soft);
    margin: 0 0 1rem;
}
.hero__title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    margin-bottom: 1rem;
    text-shadow: 0 4px 18px rgba(0,0,0,.3);
}
.hero__subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    color: rgba(246, 239, 228, .85);
    margin: 0 0 1.8rem;
    max-width: 32ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero__price { display: flex; align-items: baseline; gap: .6rem; }
.hero__price-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem; font-weight: 600; color: var(--gold-soft);
}
.hero__price-label { font-size: .9rem; color: rgba(246,239,228,.7); }

.hero__cover {
    position: relative;
    aspect-ratio: 3 / 4.2;
    border-radius: 10px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06);
    overflow: hidden;
    background: linear-gradient(160deg, var(--burgundy), var(--burgundy-deep));
    max-width: 360px;
    margin-inline: auto;
}
.hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__cover-fallback {
    display: none;
    position: absolute; inset: 0;
    align-items: center; justify-content: center;
    padding: 2rem; text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem; color: var(--cream);
}
.hero__cover--placeholder { display: grid; place-items: center; }
.hero__cover--placeholder .hero__cover-fallback { display: flex; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section--form { background: linear-gradient(180deg, #fbf6ee, #f1e7d7); }
.section__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--burgundy);
    text-align: center;
    margin-bottom: 1rem;
}
.section__title::after {
    content: ""; display: block; width: 64px; height: 3px;
    background: var(--gold); margin: .9rem auto 0; border-radius: 3px;
}
.section__lead {
    max-width: 70ch; margin: 0 auto 2.5rem;
    color: var(--muted); font-size: 1.05rem;
}
.section__lead--center { text-align: center; }
.section__lead strong { color: var(--burgundy); font-weight: 500; }

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
    margin-top: 1rem;
}
.feature {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: transform .18s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
    font-size: 1.8rem; color: var(--gold);
    width: 58px; height: 58px; margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff7e6, #f3e3c0);
    border: 1px solid var(--gold-soft);
}
.feature h3 { color: var(--burgundy); font-size: 1.35rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Contenu / chapitres ---------- */
.section--alt { background: linear-gradient(180deg, #fff, #f9f2e7); }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.stat {
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    box-shadow: 0 8px 22px rgba(58, 10, 20, .06);
}
.stat__num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}
.stat__label {
    display: block;
    margin-top: .35rem;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}
.chapter {
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.5rem 1.6rem;
    transition: transform .18s ease, box-shadow .2s ease;
}
.chapter:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chapter__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}
.chapter__head h3 { color: var(--burgundy); font-size: 1.45rem; }
.chapter__ar { font-style: italic; color: var(--muted); font-size: 1.05rem; font-weight: 500; }
.chapter__count {
    flex: none;
    background: #faf4ea;
    border: 1px solid var(--gold-soft);
    color: var(--burgundy);
    font-size: .8rem;
    font-weight: 500;
    padding: .25rem .7rem;
    border-radius: 999px;
    white-space: nowrap;
}
.chapter p { color: var(--muted); font-size: .95rem; margin: 0; }
.chapters__note {
    max-width: 70ch;
    margin: 2.5rem auto 0;
    text-align: center;
    color: var(--muted);
    font-size: 1rem;
}
.chapters__note strong { color: var(--burgundy); font-weight: 500; }

/* ---------- Formulaire ---------- */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.2rem;
    border: 1px solid var(--line);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 500; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    padding: .8rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fcfaf6;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, .18);
}
.field input.invalid, .field select.invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Géolocalisation */
.geo { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.btn--geo {
    padding: .65rem 1.2rem;
    font-size: .92rem;
    background: #fcfaf6;
    color: var(--burgundy);
    border: 1.5px solid var(--gold-soft);
}
.btn--geo:hover { background: #faf4ea; transform: translateY(-1px); }
.btn--geo:disabled { opacity: .6; cursor: default; transform: none; }
.geo__pin { font-size: 1.05rem; }
.geo__status { font-size: .88rem; color: var(--muted); }
.geo__status a { font-weight: 500; }
.geo__status--ok { color: #1e7a46; }
.geo__status--error { color: #c0392b; }
.geo__hint { font-size: .82rem; color: var(--muted); margin: .6rem 0 0; }
.geo__manual { margin-top: .9rem; }
.geo__manual label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }
.geo__manual input {
    width: 100%;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    padding: .8rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fcfaf6;
    color: var(--ink);
}
.geo__manual input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 75, .18);
}

/* ---------- Récapitulatif ---------- */
.summary {
    background: #faf4ea;
    border: 1px dashed var(--gold-soft);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin: .6rem 0 1.2rem;
}
.summary__line {
    display: flex; justify-content: space-between;
    font-size: .95rem; color: var(--muted);
    padding: .25rem 0;
}
.summary__line--total {
    border-top: 1px solid var(--gold-soft);
    margin-top: .4rem; padding-top: .6rem;
    font-size: 1.2rem; font-weight: 600; color: var(--burgundy);
}
.summary__line--total span:last-child { font-family: 'Cormorant Garamond', serif; }

.form__note { font-size: .82rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }

/* ---------- Confirmation ---------- */
.confirm { text-align: center; padding: 4rem 0; }
.confirm__badge {
    width: 84px; height: 84px; margin: 0 auto 1.5rem;
    border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, #fff7e6, var(--gold-soft));
    color: var(--burgundy); font-size: 2.4rem;
    box-shadow: var(--shadow);
}
.confirm__ref {
    display: inline-block; margin: 1rem 0;
    background: #faf4ea; border: 1px dashed var(--gold-soft);
    padding: .5rem 1.2rem; border-radius: 999px;
    font-weight: 500; color: var(--burgundy); letter-spacing: .05em;
}
.recap {
    text-align: left; max-width: 480px; margin: 1.5rem auto;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem 1.8rem; box-shadow: var(--shadow);
}
.recap dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.2rem; margin: 0; }
.recap dt { color: var(--muted); font-size: .9rem; }
.recap dd { margin: 0; font-weight: 500; text-align: right; }

.alert {
    background: #fdeceb; border: 1px solid #f5b7b1; color: #922b21;
    padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem;
}
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }

/* ---------- Footer ---------- */
.footer {
    background: var(--burgundy-deep);
    color: rgba(246, 239, 228, .8);
    text-align: center;
    padding: 2.2rem 0;
    font-size: .9rem;
}
.footer a { color: var(--gold-soft); }
.footer__logo {
    height: 96px;
    width: auto;
    margin-bottom: 1rem;
    background: rgba(246, 239, 228, .92);
    padding: .6rem;
    border-radius: 12px;
}
.socials {
    display: flex;
    justify-content: center;
    gap: .8rem;
    margin-top: 1.4rem;
}
.social {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(246, 239, 228, .1);
    border: 1px solid rgba(224, 199, 137, .35);
    color: var(--gold-soft);
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover {
    transform: translateY(-3px);
    background: var(--gold-soft);
    color: var(--burgundy-deep);
}
.footer__copyright {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(224, 199, 137, .2);
    font-size: .82rem;
    color: rgba(246, 239, 228, .6);
}
.footer__copyright strong { color: var(--gold-soft); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__cover { order: -1; max-width: 280px; }
    .hero__text { text-align: center; }
    .hero__subtitle { margin-inline: auto; }
    .hero__cta, .hero__price { justify-content: center; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
}
