/* ==========================================================================
   Design « Bohème » — désert bohème : terracotta, sable, pampas, palmes, arches et soleil
   ========================================================================== */

:root {
    --sand: #f3e6d3;
    --sand-2: #ead5b9;
    --dune: #dcb98f;
    --cream: #fbf4ea;
    --terra: #b5562f;
    --terra-ink: #9a4423;
    --clay: #cf8a63;
    --brown: #3b2418;
    --ink: #3b2418;
    --muted: #6b4a38;
    --line: rgba(59, 36, 24, .16);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 1.12rem; line-height: 1.7; overflow-x: hidden; }
::selection { background: var(--clay); color: var(--brown); }
a { color: var(--terra-ink); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--brown); color: var(--cream); padding: .5rem 1rem; z-index: 100; border-radius: 999px; }
.skip-link:focus { top: 1rem; color: var(--cream); }

.bo-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; position: relative; }
.bo-narrow { max-width: 720px; }
.bo-label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-ink); margin: 0 0 .35rem; }

/* Ornements */
.bo-palm { fill: none; stroke: var(--terra); stroke-width: 1.6; stroke-linecap: round; }
.bo-palm .bo-rib { stroke-width: 2.4; }
.bo-pampas { fill: none; stroke-linecap: round; }
.bo-pampas .bo-stem { stroke: #8a6a4c; stroke-width: 1.4; }
.bo-pampas .bo-fluff { stroke: #c9a57c; stroke-width: 1.1; opacity: .9; }
.bo-sunmark { width: 1.6rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; vertical-align: -.05em; margin-right: .5rem; }

/* --- Ouverture ----------------------------------------------------------- */
.bo-hero {
    position: relative; overflow: hidden; padding: 1rem 0 0;
    background:
        radial-gradient(120% 70% at 80% 10%, rgba(207, 138, 99, .22), transparent 60%),
        linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%);
}
.bo-nav { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.bo-mono { font-family: var(--display); font-size: 1.5rem; font-style: italic; color: var(--brown); text-decoration: none; line-height: 1; }
.bo-mono span { color: var(--terra); margin: 0 .1em; font-size: .8em; }
.bo-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem 1.1rem; }
.bo-nav-links a { color: var(--brown); text-decoration: none; font-size: .86rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .3rem 0; border-bottom: 1px solid transparent; }
.bo-nav-links a:hover { border-bottom-color: var(--terra); }

.bo-hero-grid { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 2.5rem 1.25rem 0; display: grid; gap: 2.5rem; align-items: center; }
.bo-hero-text { text-align: center; }
.bo-to { display: inline-block; margin: 0 0 1.6rem; padding: .35rem 1.1rem; border: 1px solid var(--terra); border-radius: 999px; color: var(--terra-ink); font-size: 1rem; }
.bo-to strong { font-weight: 700; }
.bo-names { font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 100, "opsz" 144; line-height: .95; margin: 0; color: var(--brown); font-size: clamp(3.4rem, 15vw, 7.2rem); letter-spacing: -.01em; }
.bo-names span { display: block; }
.bo-names .bo-n2 { font-style: italic; }
.bo-amp { font-style: italic; font-weight: 300; color: var(--terra); font-size: .75em; line-height: 1.2; }
.bo-date { font-family: var(--display); font-size: clamp(1.35rem, 3.6vw, 1.75rem); margin: 1.6rem 0 0; color: var(--brown); }
.bo-where { margin: .4rem 0 0; color: var(--muted); font-size: 1.1rem; }
.bo-where .bo-sunmark { color: var(--terra); }

.bo-hero-visual { position: relative; width: min(380px, 78vw); margin: 0 auto; padding: 2.5rem 0 4.5rem; }
.bo-sun { position: absolute; width: 82%; aspect-ratio: 1; right: -18%; top: 0; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #e19a6f, var(--terra) 70%); opacity: .9; }
.bo-arch {
    position: relative; z-index: 1; aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; overflow: hidden;
    background: linear-gradient(180deg, var(--clay), var(--terra)); box-shadow: 0 34px 60px -38px rgba(59, 36, 24, .75);
}
.bo-arch::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(251, 244, 234, .7); border-radius: 999px 999px 2px 2px; pointer-events: none; z-index: 3; }
.bo-arch--empty { background: repeating-linear-gradient(180deg, var(--terra) 0 22%, var(--clay) 22% 40%, var(--dune) 40% 62%, var(--sand-2) 62% 100%); }
.bo-arch .carousel, .bo-arch .carousel-inner, .bo-arch .carousel-item { height: 100%; }
.bo-arch .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bo-arch .carousel-indicators { margin-bottom: 1.4rem; z-index: 4; }
.bo-arch .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; border: 0; margin: 0 5px; background: var(--cream); opacity: .55; }
.bo-arch .carousel-indicators .active { opacity: 1; }
.bo-pampas--l { position: absolute; z-index: 2; width: 42%; left: -22%; bottom: 2rem; transform: rotate(-8deg); }
.bo-palm--r { position: absolute; z-index: 0; width: 70%; right: -38%; bottom: 5.5rem; transform: rotate(-12deg); opacity: .85; }

.bo-dunes { position: relative; z-index: 2; display: block; width: 100%; height: clamp(60px, 9vw, 130px); margin-top: -3.5rem; }
.bo-dunes .d1 { fill: var(--dune); opacity: .55; }
.bo-dunes .d2 { fill: var(--cream); }

/* --- Le grand jour ------------------------------------------------------- */
.bo-day { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.bo-day-grid { display: grid; gap: 2.5rem; }
.bo-stamp {
    justify-self: center; width: 210px; padding: 3.2rem 1rem 1.6rem; text-align: center; color: var(--cream);
    background: var(--terra-ink); border-radius: 999px 999px 10px 10px; box-shadow: inset 0 0 0 8px var(--terra-ink), inset 0 0 0 9px rgba(251, 244, 234, .55);
}
.bo-stamp span { display: block; }
.bo-stamp-week, .bo-stamp-year { font-size: .82rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.bo-stamp-day { font-family: var(--display); font-size: 6rem; line-height: 1; margin: .2rem 0 0; font-variation-settings: "SOFT" 100, "opsz" 144; }
.bo-stamp-month { font-family: var(--display); font-style: italic; font-size: 1.7rem; line-height: 1.2; margin-bottom: .6rem; }

.bo-h2 { font-family: var(--display); font-weight: 400; font-variation-settings: "SOFT" 100, "opsz" 144; font-size: clamp(2.5rem, 7vw, 3.8rem); line-height: 1.05; margin: 0 0 1rem; color: var(--brown); }
.bo-day-body { text-align: center; }
.bo-lead { font-size: 1.2rem; margin: 0 auto 2rem; max-width: 34em; }
.bo-ceremony { margin: 0 0 1.4rem; font-size: 1.12rem; }

.programme-list { margin: 0 0 2.5rem; padding: 0; border-top: 1px dashed var(--dune); }
.programme-row { display: grid; grid-template-columns: 5.2rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px dashed var(--dune); text-align: left; align-items: baseline; }
.programme-row dt { font-family: var(--display); font-weight: 500; font-size: 1.6rem; color: var(--terra-ink); line-height: 1.1; font-variant-numeric: lining-nums; }
.programme-row dd { margin: 0; }
.programme-row strong { font-family: var(--display); font-weight: 500; font-size: 1.4rem; }
.programme-row small { display: block; font-size: 1rem; color: var(--muted); margin-top: .2rem; }

.bo-count { text-align: center; }
.countdown { display: flex; justify-content: center; gap: .8rem; font-variant-numeric: tabular-nums; }
.countdown .cell { width: 6rem; padding: 1.3rem .3rem .8rem; background: var(--sand); border-radius: 999px 999px 8px 8px; }
.countdown b { display: block; font-family: var(--display); font-weight: 500; font-size: 2.3rem; line-height: 1; color: var(--terra-ink); }
.countdown span { display: block; margin-top: .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* --- La tenue ------------------------------------------------------------ */
.bo-dress { position: relative; overflow: hidden; background: var(--terra-ink); color: var(--cream); text-align: center; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.bo-dress .bo-h2 { color: var(--cream); }
.bo-palm--bg { position: absolute; width: 520px; max-width: none; right: -180px; top: -60px; stroke: rgba(251, 244, 234, .14); transform: rotate(20deg); }
.bo-sub { font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 4vw, 2rem); color: #f6dcc0; margin: 0; }
.bo-intro { max-width: 34em; margin: .8rem auto 2.6rem; color: var(--sand); }
.bo-dress-list { display: grid; gap: 1.2rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bo-dress-item { padding: 2.2rem 1.4rem 1.6rem; border: 1px solid rgba(251, 244, 234, .45); border-radius: 999px 999px 12px 12px; }
.bo-dress-item .bo-sunmark { display: block; margin: 0 auto .7rem; width: 2.2rem; height: 1.4rem; color: #f6dcc0; }
.bo-dress-item dt { font-size: .85rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #f6dcc0; margin-bottom: .4rem; }
.bo-dress-item dd { margin: 0; }

/* --- Réponse ------------------------------------------------------------- */
.bo-reply { padding: clamp(4rem, 9vw, 6.5rem) 0; background: linear-gradient(180deg, var(--sand) 0%, var(--sand-2) 100%); }
.bo-card {
    position: relative; background: var(--cream); border-radius: 999px 999px 18px 18px; text-align: center;
    padding: clamp(4.5rem, 12vw, 6rem) clamp(1.2rem, 6vw, 3.2rem) clamp(2rem, 5vw, 3rem);
    box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(59, 36, 24, .7);
}
.bo-pampas--card { display: block; width: 64px; margin: -2.6rem auto .6rem; }
.rsvp-deadline { color: var(--terra-ink); font-style: italic; margin: 0 0 2rem; }
.rsvp-note { max-width: 30em; margin: 0 auto; }
.rsvp-done { background: var(--sand); border-radius: 999px 999px 14px 14px; padding: 2.2rem 1.2rem 1.4rem; margin-bottom: 1.6rem; }
.done-head { font-family: var(--display); font-size: 1.9rem; line-height: 1.15; margin: 0 0 .3rem; color: var(--brown); }
.done-text { margin: 0 0 .9rem; }
.btn-link-gold { background: none; border: 0; padding: .2rem 0; color: var(--terra-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }

.rsvp-form { text-align: left; }
.rsvp-form .field { border: 0; padding: 0; margin: 0 0 1.6rem; min-width: 0; }
.rsvp-form label:not(.guest-pill), .rsvp-form legend { float: none; display: block; width: auto; margin: 0 0 .45rem; padding: 0; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.rsvp-form small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.form-control.engraved { border: 1px solid var(--dune); border-radius: 14px; background: #fff; padding: .7rem .95rem; color: var(--ink); font-family: var(--text); font-size: 1.1rem; }
.form-control.engraved:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(181, 86, 47, .18); }
.form-control.engraved[readonly] { background: var(--sand); border-color: transparent; font-family: var(--display); font-size: 1.6rem; color: var(--brown); }
textarea.form-control.engraved { min-height: 7rem; resize: vertical; }
.guests-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.guest-pill { min-width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 999px 999px 8px 8px; border: 1px solid var(--terra); color: var(--terra-ink); background: #fff; cursor: pointer; font-weight: 700; font-size: 1.1rem; transition: background-color .25s, color .25s; }
.btn-check:checked + .guest-pill { background: var(--terra-ink); border-color: var(--terra-ink); color: var(--cream); }
.btn-check:focus-visible + .guest-pill { outline: 2px solid var(--terra); outline-offset: 3px; }
.hint { font-size: .95rem; color: var(--muted); margin: .55rem 0 0; }
.choice { display: grid; gap: .9rem; }
.choice-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 7.5rem; padding: 1.8rem 1rem 1.1rem;
    border-radius: 999px 999px 14px 14px; border: 1.5px solid var(--terra-ink); background: transparent; color: var(--terra-ink); font: inherit; cursor: pointer;
    transition: transform .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.choice-tile:first-child { background: var(--terra-ink); color: var(--cream); }
.choice-tile:hover, .choice-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(59, 36, 24, .8); }
.choice-tile.is-current { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--terra); }
.choice-head { font-family: var(--display); font-weight: 500; font-size: 1.8rem; line-height: 1.1; }
.choice-text { font-size: 1rem; }
.choice-current { margin-top: .3rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rsvp-form.is-sending .choice-tile { opacity: .6; pointer-events: none; }
.rsvp-errors { border: 1px solid #9b3b2c; background: #fbe9e4; color: #7c2a1d; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.4rem; }
.rsvp-errors p { margin: 0; }

/* --- Pied de page -------------------------------------------------------- */
.bo-foot { background: var(--brown); color: var(--sand); text-align: center; padding: 0 1.25rem 3rem; overflow: hidden; }
.bo-foot-sun { position: relative; width: 220px; height: 110px; margin: 0 auto 1.8rem; }
.bo-foot { padding-top: 3.5rem; }
.bo-foot-sun i { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 999px 999px 0 0; }
.bo-foot-sun i:nth-child(1) { width: 220px; height: 110px; background: var(--terra); }
.bo-foot-sun i:nth-child(2) { width: 164px; height: 82px; background: var(--clay); }
.bo-foot-sun i:nth-child(3) { width: 108px; height: 54px; background: var(--dune); }
.bo-foot-sun i:nth-child(4) { width: 52px; height: 26px; background: var(--sand); }
.bo-foot-names { font-family: var(--display); font-style: italic; font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1.1; margin: 0; color: var(--cream); }
.bo-foot-names span { color: var(--clay); }
.bo-foot-date { margin: .3rem 0 0; letter-spacing: .16em; text-transform: uppercase; font-size: .9rem; }
.bo-credits { margin: 1.2rem 0 0; font-size: .95rem; color: #dcc6ad; }

/* --- Écrans plus larges -------------------------------------------------- */
@media (min-width: 560px) {
    .choice { grid-template-columns: 1fr 1fr; }
    .bo-names span { display: inline; }
    .bo-names .bo-n1::after { content: "\A"; white-space: pre; }
    .bo-amp { margin-right: .15em; }
}
@media (min-width: 900px) {
    .bo-hero-grid { grid-template-columns: 1.1fr 1fr; padding-top: 3.5rem; }
    .bo-hero-text { text-align: left; padding-left: 2rem; }
    .bo-names .bo-n2 { padding-left: 1.2em; }
    .bo-hero-visual { width: min(420px, 100%); }
    .bo-day-grid { grid-template-columns: 240px 1fr; gap: 4.5rem; align-items: start; }
    .bo-stamp { position: sticky; top: 2rem; }
    .bo-day-body { text-align: left; }
    .bo-lead { margin-left: 0; }
    .countdown { justify-content: flex-start; }
    .bo-count { text-align: left; }
}

/* --- Mouvement (une seule entrée) --------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .js .bo-hero-visual { animation: bo-rise 1.4s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .choice-tile, .guest-pill { transition: none; }
    .carousel-item { transition: none !important; }
}
@keyframes bo-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
