/* ==========================================================================
   Design « Pivoines » — corail, fuchsia, rose sur blanc chaud
   ========================================================================== */

:root {
    --warm: #fff8f2;
    --blush: #ffe3dc;
    --pink: #fde3ea;
    --pink-2: #f7a8bc;
    --coral: #f9805f;
    --fuchsia: #b0175a;      /* 6.7:1 sur blanc chaud */
    --fuchsia-deep: #8a1046;
    --plum: #3d1426;         /* texte courant */
    --plum-muted: #6e3b52;
    --leaf: #4f7a52;
    --line: rgba(176, 23, 90, .18);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--warm); color: var(--plum); font-family: var(--text); font-size: 1.1rem; line-height: 1.65; overflow-x: hidden; }
::selection { background: var(--pink-2); color: var(--plum); }
a { color: var(--fuchsia); }
:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--fuchsia); color: #fff; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* --- Pivoines (SVG) : couleurs par variables ------------------------------ */
.pv-bloom { display: block; pointer-events: none; overflow: visible; }
.pv-leaves path { fill: var(--leaf); }
.pv-leaves .pv-vein { fill: none; stroke: #36583a; stroke-width: 1.6; }
.pv-petals g { stroke: var(--pv-line); stroke-width: 1.4; stroke-linejoin: round; }
.pv-bloom--pink { --pv-a: #fdd5de; --pv-b: #f8adc0; --pv-c: #f07a9b; --pv-d: #d93a6e; --pv-line: #e6809c; }
.pv-bloom--coral { --pv-a: #ffdccc; --pv-b: #ffb398; --pv-c: #fa8563; --pv-d: #e0583f; --pv-line: #f2946f; }
.pv-bloom--fuchsia { --pv-a: #fbcbe3; --pv-b: #f08cc2; --pv-c: #db4c9b; --pv-d: #a8206f; --pv-line: #d667a6; }

/* --- Ouverture ------------------------------------------------------------ */
.pv-hero { position: relative; overflow: hidden; padding: 1rem 1.25rem clamp(3.5rem, 8vw, 6rem); }
.pv-hero-giant { position: absolute; width: clamp(340px, 52vw, 760px); top: clamp(-220px, -14vw, -90px); right: clamp(-260px, -16vw, -120px); opacity: .9; z-index: 0; }

.pv-nav {
    position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    max-width: 1180px; margin: 0 auto; padding: .5rem .5rem .5rem 1rem; background: rgba(255, 248, 242, .9); border-radius: 999px;
    box-shadow: 0 10px 30px -20px rgba(176, 23, 90, .6);
}
.pv-mono { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--fuchsia); text-decoration: none; line-height: 1; }
.pv-mono span { font-style: italic; font-weight: 500; color: var(--coral); margin: 0 .08em; }
.pv-nav .menu-links { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.pv-nav .menu-links a {
    display: block; padding: .45rem .85rem; border-radius: 999px; text-decoration: none; color: var(--plum); font-weight: 600; font-size: .95rem;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.pv-nav .menu-links a:hover, .pv-nav .menu-links a.is-active { background: var(--pink); color: var(--fuchsia); }
@media (max-width: 420px) { .pv-nav .menu-links a { padding: .4rem .55rem; font-size: .9rem; } .pv-mono { font-size: 1.2rem; } }

.pv-hero-grid { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; gap: 2.5rem; padding-top: clamp(2.5rem, 7vw, 5rem); align-items: center; }
@media (min-width: 900px) { .pv-hero-grid { grid-template-columns: 1.05fr 1fr; } }
.pv-to { font-size: 1.15rem; margin: 0 0 1rem; color: var(--plum-muted); }
.pv-to strong { color: var(--plum); }
.pv-kicker { display: inline-block; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: .9rem; color: #fff; background: var(--fuchsia); padding: .35rem .9rem; border-radius: 999px; margin: 0 0 1.2rem; }
.pv-names { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 144; color: var(--fuchsia); font-size: clamp(3.6rem, 13vw, 8.4rem); line-height: .88; letter-spacing: -.02em; margin: 0 0 1.6rem; }
.pv-name { display: block; }
.pv-amp { display: block; font-style: italic; font-weight: 400; color: var(--coral); font-size: .62em; line-height: 1; margin: .02em 0 .04em .6em; font-size: .72em; }
.pv-chip { display: inline-block; font-size: 1.15rem; font-weight: 600; padding: .55rem 1.1rem; border: 2px solid var(--fuchsia); border-radius: 999px; margin: 0 0 1.6rem; }
.pv-btn {
    display: table; padding: 1rem 2.4rem; border-radius: 999px; background: var(--fuchsia); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 16px 30px -16px rgba(176, 23, 90, .9); transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.pv-btn:hover { background: var(--fuchsia-deep); color: #fff; transform: translateY(-2px); }

.pv-hero-photo { position: relative; width: min(100%, 520px); margin: 0 auto; padding: 8% 6%; }
.pv-blob { position: relative; z-index: 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; background: var(--pink); box-shadow: 0 40px 70px -40px rgba(61, 20, 38, .7); }
.pv-blob .carousel, .pv-blob .carousel-inner, .pv-blob .carousel-item { height: 100%; }
.pv-blob .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-blob .carousel-indicators { margin-bottom: 1.6rem; }
.pv-blob .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; opacity: 1; margin: 0 4px; }
.pv-blob .carousel-indicators .active { background: #fff; }
.pv-photo-bloom { position: absolute; z-index: 2; }
.pv-photo-bloom--a { width: 60%; top: -12%; left: -16%; }
.pv-photo-bloom--b { width: 52%; bottom: -10%; right: -14%; transform: rotate(40deg); }

@media (prefers-reduced-motion: no-preference) {
    .js .pv-photo-bloom, .js .pv-hero-giant { animation: pv-bloom 1.6s var(--ease) both; }
    .js .pv-photo-bloom--b { animation-delay: .25s; }
    .js .pv-hero-giant { animation-delay: .1s; }
}
@keyframes pv-bloom { from { opacity: 0; scale: .6; rotate: -25deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }

/* --- Le jour : grande date --------------------------------------------- */
.pv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.pv-day { background: var(--blush); padding: clamp(4rem, 9vw, 7rem) 0; border-radius: clamp(36px, 7vw, 90px) clamp(36px, 7vw, 90px) 0 0; }
.pv-day-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .pv-day-grid { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } }
.pv-bigdate { display: flex; flex-direction: column; align-items: flex-start; color: var(--fuchsia); }
.pv-bigdate-wd, .pv-bigdate-my { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1; }
.pv-bigdate-wd { text-transform: capitalize; }
.pv-bigdate-d { font-family: var(--display); font-weight: 900; font-variation-settings: "opsz" 144; font-size: clamp(8rem, 30vw, 15rem); line-height: .82; letter-spacing: -.05em; color: var(--coral); -webkit-text-stroke: 3px var(--fuchsia); paint-order: stroke fill; }
.pv-h2 { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 120; color: var(--fuchsia); font-size: clamp(2.5rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -.01em; margin: 0 0 1.2rem; }
.pv-lead { font-size: 1.2rem; }
.pv-where { display: flex; gap: 1rem; align-items: center; margin: 1.6rem 0 0; padding: 1rem 1.2rem; background: var(--warm); border-radius: 20px; }
.pv-where-time { flex: none; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #fff; background: var(--fuchsia); border-radius: 14px; padding: .35rem .7rem; }
.pv-where strong { font-weight: 700; }

.programme-list { margin: 2rem 0 0; display: grid; gap: 1rem; }
.programme-row { display: grid; grid-template-columns: 1fr; gap: .2rem; padding: 1.2rem 1.3rem; background: var(--warm); border-radius: 24px 24px 24px 6px; border-left: 6px solid var(--coral); }
@media (min-width: 560px) { .programme-row { grid-template-columns: 6.4rem 1fr; gap: 1rem; align-items: baseline; } }
.programme-list dt { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--fuchsia); font-variant-numeric: lining-nums; }
.programme-list dd { margin: 0; }
.programme-list strong { font-weight: 700; font-size: 1.15rem; }
.programme-list small { display: block; color: var(--plum-muted); font-size: 1.02rem; margin-top: .2rem; }

/* --- Compte à rebours ---------------------------------------------------- */
.pv-count { position: relative; overflow: hidden; background: var(--fuchsia); color: #fff; text-align: center; padding: clamp(3.5rem, 8vw, 5rem) 1.25rem; }
.pv-count-bloom { position: absolute; width: clamp(170px, 26vw, 320px); top: 50%; translate: 0 -50%; opacity: .95; }
.pv-count-bloom--l { left: clamp(-120px, -7vw, -50px); }
.pv-count-bloom--r { right: clamp(-120px, -7vw, -50px); rotate: 120deg; }
@media (max-width: 620px) { .pv-count { padding-bottom: 6.5rem; } .pv-count-bloom { top: auto; bottom: -46px; translate: 0; width: 150px; } }
.pv-count-title { position: relative; font-family: var(--display); font-style: italic; font-size: 1.6rem; margin: 0 0 .8rem; }
.countdown { position: relative; display: flex; justify-content: center; gap: clamp(.6rem, 4vw, 2.4rem); font-variant-numeric: tabular-nums lining-nums; }
.countdown .cell { display: flex; flex-direction: column; align-items: center; min-width: 4.8rem; }
.countdown b { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 12vw, 5.4rem); line-height: 1; }
.countdown span { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; margin-top: .3rem; }

/* --- Tenue ---------------------------------------------------------------- */
.pv-section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.pv-dress-head { max-width: 720px; margin: 0 0 2.4rem; }
.pv-sub { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--plum); margin: 0 0 .4rem; }
.pv-intro { color: var(--plum-muted); margin: 0; max-width: 36em; }
.pv-dress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.pv-dress-item { padding: 1.6rem 1.5rem; border-radius: 40px 40px 40px 8px; background: var(--pink); }
.pv-dress-item:nth-child(4n + 2) { background: var(--blush); border-radius: 40px 40px 8px 40px; }
.pv-dress-item:nth-child(4n + 3) { background: #fbe0ef; border-radius: 8px 40px 40px 40px; }
.pv-dress-item:nth-child(4n + 4) { background: #fff0e6; border-radius: 40px 8px 40px 40px; }
.pv-dress-item h3 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--fuchsia); margin: 0 0 .3rem; }
.pv-dress-item p { margin: 0; }

/* --- Réponse -------------------------------------------------------------- */
.pv-section--rsvp { background: var(--pink); overflow: hidden; }
.pv-rsvp-bloom { position: absolute; width: clamp(200px, 30vw, 420px); }
.pv-rsvp-bloom--a { top: -60px; left: clamp(-160px, -8vw, -60px); }
.pv-rsvp-bloom--b { bottom: -80px; right: clamp(-160px, -8vw, -60px); rotate: 160deg; }
.pv-rsvp { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; background: var(--warm); border-radius: 36px; padding: clamp(2.2rem, 6vw, 3.4rem) clamp(1.3rem, 6vw, 3.2rem); box-shadow: 0 40px 80px -50px rgba(61, 20, 38, .8); }
.rsvp-deadline { text-align: center; font-weight: 600; color: var(--plum-muted); margin: 0 0 2rem; }
.rsvp-note { text-align: center; background: var(--blush); border-radius: 20px; padding: 1.2rem 1.4rem; margin: 0; }
.rsvp-done { text-align: center; background: var(--pink); border-radius: 24px; padding: 1.5rem; margin-bottom: 1.6rem; }
.done-head { font-family: var(--display); font-weight: 800; color: var(--fuchsia); font-size: 2rem; margin: 0 0 .3rem; line-height: 1.1; }
.done-text { margin: 0 0 .8rem; }
.btn-link-gold { background: none; border: 0; padding: 0; color: var(--fuchsia); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; cursor: pointer; }

.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; padding: 0; margin: 0 0 .45rem; font-size: 1rem; font-weight: 700; color: var(--plum); }
.rsvp-form small { font-weight: 400; color: var(--plum-muted); }
.form-control.engraved { border: 2px solid var(--pink-2); border-radius: 16px; background: #fff; padding: .75rem 1rem; color: var(--plum); font-family: var(--text); font-size: 1.08rem; }
.form-control.engraved:focus { border-color: var(--fuchsia); box-shadow: 0 0 0 4px rgba(247, 168, 188, .5); color: var(--plum); }
.form-control.engraved[readonly] { border-color: transparent; background: transparent; padding-left: 0; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--fuchsia); }
.guests-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.guest-pill {
    width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
    background: #fff; border: 2px solid var(--pink-2); font-weight: 700; font-size: 1.15rem; color: var(--plum);
    transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.guest-pill:hover { transform: scale(1.06); }
.btn-check:checked + .guest-pill { background: var(--fuchsia); border-color: var(--fuchsia); color: #fff; }
.btn-check:focus-visible + .guest-pill { outline: 3px solid var(--fuchsia); outline-offset: 3px; }
.hint { font-size: .98rem; color: var(--plum-muted); margin: .5rem 0 0; }
.choice { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 520px) { .choice { grid-template-columns: 1fr 1fr; } }
.choice-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 7rem; padding: 1.1rem;
    border-radius: 28px; border: 2px solid var(--fuchsia); background: #fff; color: var(--fuchsia); font: inherit; cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.choice-tile:first-child { background: var(--fuchsia); color: #fff; }
.choice-tile:hover, .choice-tile:focus-visible { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 18px 30px -18px rgba(176, 23, 90, .9); }
.choice-head { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.05; }
.choice-text { font-size: 1rem; font-weight: 500; }
.choice-current { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-top: .25rem; }
.rsvp-form.is-sending .choice-tile { opacity: .6; pointer-events: none; }
.rsvp-errors { background: #fde2e2; color: #8f1630; border-radius: 16px; padding: .9rem 1.1rem; margin-bottom: 1.4rem; font-weight: 600; }
.rsvp-errors p { margin: 0; }

/* --- Pied de page --------------------------------------------------------- */
.pv-foot { background: var(--fuchsia); color: #fff; text-align: center; padding: 0 1.25rem 4.5rem; overflow: hidden; }
.pv-foot-blooms { display: flex; justify-content: center; margin: -10px auto 0; max-width: 520px; }
.pv-foot-blooms .pv-bloom { width: 34%; margin: 0 -4%; }
.pv-foot-blooms .pv-bloom:nth-child(2) { margin-top: -6%; width: 40%; }
.pv-foot-names { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 1rem 0 0; line-height: 1; }
.pv-foot-names span { font-style: italic; font-weight: 400; color: #ffd0c0; }
.pv-credits { font-size: .95rem; margin: 1.2rem 0 0; color: #ffe9ef; }
