/* ==========================================================================
   Design « Velours » — l'heure du cocktail : velours émeraude, laiton, ivoire
   ========================================================================== */

:root {
    --emerald: #0e3a2c;
    --emerald-2: #145040;
    --deep: #08261d;
    --brass: #c9a45c;
    --brass-light: #e2c88f;
    --brass-dim: rgba(201, 164, 92, .4);
    --ivory: #f1ead8;
    --muted: #c4cfc4;
    --ease: cubic-bezier(.19, 1, .22, 1);
    /* Reflet du velours : lumière diffuse + trame très fine */
    --velvet:
        radial-gradient(120% 80% at 15% 0%, rgba(80, 160, 125, .28), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(0, 0, 0, .3), transparent 60%),
        radial-gradient(60% 50% at 80% 20%, rgba(255, 255, 255, .05), transparent 70%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 5px);
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { background-color: var(--emerald); background-image: var(--velvet); background-attachment: fixed; color: var(--ivory); font-family: var(--text); font-size: 1.1rem; line-height: 1.75; overflow-x: hidden; }
::selection { background: var(--brass); color: var(--deep); }
a { color: var(--brass-light); }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--brass); color: var(--deep); padding: .5rem 1rem; z-index: 200; border-radius: 999px; }
.skip-link:focus { top: 1rem; }

/* --- Navigation ------------------------------------------------------------- */
.v-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; transition: background-color .4s, box-shadow .4s; }
.v-nav.is-scrolled { background: rgba(8, 38, 29, .94); box-shadow: 0 1px 0 var(--brass-dim); }
.v-brand { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ivory); text-decoration: none; white-space: nowrap; }
.v-brand span { color: var(--brass); }
.v-nav .menu-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.v-nav .menu-links a { color: var(--ivory); text-decoration: none; font-size: .95rem; font-weight: 500; letter-spacing: .04em; }
.v-nav .menu-links a:hover, .v-nav .menu-links a.is-active { color: var(--brass-light); }
.v-nav .menu-links a.v-nav-cta { border: 1px solid var(--brass); border-radius: 999px; padding: .4rem 1rem; color: var(--brass-light); }
.v-nav .menu-links a.v-nav-cta:hover { background: var(--brass); color: var(--deep); }
.v-nav .menu-links li:not(:last-child) { display: none; }

/* --- Ouverture ---------------------------------------------------------------- */
.v-hero { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; display: grid; gap: 3.5rem; align-items: center; }
.v-to { margin: 0 0 2rem; font-size: 1.05rem; color: var(--muted); }
.v-to strong { display: block; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.6rem; color: var(--ivory); }
.v-kicker { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.2rem; font-size: .9rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--brass-light); }
.v-kicker span { width: 48px; height: 1px; background: var(--brass); }
.v-names { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(3.4rem, 14vw, 7.5rem); line-height: .95; letter-spacing: -.01em; color: var(--ivory); }
.v-names > span { display: block; }
.v-amp { font-style: italic; font-weight: 400; color: var(--brass); font-size: .6em; margin: .1em 0 .1em 1.2em; }
.v-place { margin: 2.2rem 0 0; padding-left: 1.2rem; border-left: 1px solid var(--brass); font-size: 1.15rem; font-weight: 500; }
.v-place span { display: block; font-weight: 400; color: var(--muted); }

.v-hero-visual { position: relative; width: min(440px, 86vw); margin: 0 auto; padding: 0 1.4rem 1.4rem 0; }
.v-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; box-shadow: 18px 18px 0 -1px var(--deep), 18px 18px 0 0 var(--brass), 0 40px 70px -30px rgba(0, 0, 0, .7); }
.v-frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(226, 200, 143, .7); pointer-events: none; z-index: 3; }
.v-frame .carousel, .v-frame .carousel-inner, .v-frame .carousel-item { height: 100%; }
.v-frame .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-frame .carousel-indicators { margin-bottom: 1.6rem; z-index: 4; }
.v-frame .carousel-indicators [data-bs-target] { width: 22px; height: 2px; border: 0; background: var(--ivory); opacity: .55; }
.v-frame .carousel-indicators .active { background: var(--brass-light); opacity: 1; }
.v-coaster {
    position: absolute; left: -1rem; bottom: -1.2rem; z-index: 5; width: 8.4rem; height: 8.4rem; margin: 0; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1;
    background: radial-gradient(circle at 35% 30%, #e9d29b, var(--brass) 55%, #9c7a37); color: var(--deep);
    box-shadow: inset 0 0 0 5px rgba(8, 38, 29, .15), inset 0 0 0 6px rgba(255, 255, 255, .35), 0 16px 30px -10px rgba(0, 0, 0, .6);
}
.v-coaster-day { font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1; }
.v-coaster-month { font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.v-coaster-year { font-size: .9rem; font-weight: 600; }

/* --- Sections ------------------------------------------------------------------ */
.v-section { padding: clamp(5rem, 11vw, 8.5rem) 0; }
.v-section--deep { background-color: var(--deep); background-image: var(--velvet); border-block: 1px solid var(--brass-dim); }
.v-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.v-label { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; font-size: .85rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--brass-light); }
.v-label::before { content: ""; width: 32px; height: 1px; background: var(--brass); }
.v-h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, 7vw, 4.2rem); line-height: 1.05; margin: 0 0 1.6rem; color: var(--ivory); }
.v-h2 em { color: var(--brass-light); font-weight: 400; }

.v-day { display: grid; gap: 3.5rem; align-items: start; }
.v-quote { font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 3.4vw, 1.75rem); line-height: 1.5; margin: 0 0 2rem; max-width: 28em; }
.v-when { margin: 0; font-weight: 600; color: var(--brass-light); }

.v-carte { position: relative; padding: 2.6rem 1.6rem 2rem; border: 1px solid var(--brass); border-radius: 200px 200px 6px 6px; background: rgba(8, 38, 29, .55); text-align: center; }
.v-carte::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--brass-dim); border-radius: 192px 192px 3px 3px; pointer-events: none; }
.v-coupe { display: block; width: 52px; height: 52px; margin: 0 auto .6rem; fill: none; stroke: var(--brass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v-coupe .v-thin { stroke-width: 1; opacity: .7; }
.v-carte-title { font-family: var(--display); font-style: italic; font-size: 1.6rem; margin: 0 0 1.2rem; }
.programme-list { margin: 0; text-align: left; position: relative; }
.programme-row { display: grid; grid-template-columns: 4.4rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--brass-dim); }
.programme-row dt { font-weight: 700; color: var(--brass-light); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.programme-row dd { margin: 0; }
.programme-row strong { font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: var(--ivory); }
.programme-row small { display: block; font-size: 1rem; color: var(--muted); margin-top: .15rem; }

.v-count { margin-top: 5rem; text-align: center; }
.v-count .v-label { justify-content: center; }
.v-count .v-label::after { content: ""; width: 32px; height: 1px; background: var(--brass); }
.countdown { display: flex; justify-content: center; gap: clamp(.8rem, 4vw, 2.4rem); font-variant-numeric: tabular-nums; }
.countdown .cell { width: 6.4rem; height: 6.4rem; border-radius: 50%; border: 1px solid var(--brass); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px var(--brass-dim); }
.countdown b { font-family: var(--display); font-weight: 500; font-size: 2rem; line-height: 1; color: var(--ivory); }
.countdown span { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-light); margin-top: .2rem; }

/* Tenue : index éditorial */
.v-dress-head { max-width: 40em; margin-bottom: 3rem; }
.v-intro { font-size: 1.15rem; margin: 0; color: var(--ivory); }
.v-dress { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.v-dress li { display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--brass-dim); }
.v-dress li:last-child { border-bottom: 1px solid var(--brass-dim); }
.v-num { grid-row: span 2; font-family: var(--display); font-style: italic; font-size: 2rem; line-height: 1; color: var(--brass); }
.v-dress h3 { font-family: var(--display); font-weight: 500; font-size: 1.55rem; margin: 0; color: var(--ivory); }
.v-dress p { margin: .3rem 0 0; color: var(--muted); }

/* --- Réponse ------------------------------------------------------------------------- */
.v-rsvp-wrap { display: grid; gap: 2.5rem; align-items: start; }
.v-rsvp-side .v-coupe { margin: 0; width: 64px; height: 64px; }
.v-rsvp { background: rgba(8, 38, 29, .6); border: 1px solid var(--brass); border-radius: 6px; padding: clamp(1.6rem, 5vw, 3rem); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9); }
.rsvp-deadline { color: var(--brass-light); font-weight: 500; margin: 0 0 1.8rem; }
.rsvp-note { margin: 0; font-size: 1.12rem; }
.rsvp-done { border-left: 2px solid var(--brass); padding: .3rem 0 .3rem 1.2rem; margin-bottom: 1.8rem; }
.done-head { font-family: var(--display); font-style: italic; font-size: 1.8rem; margin: 0 0 .2rem; }
.done-text { margin: 0 0 .8rem; }
.done-text strong { color: var(--brass-light); }
.btn-link-gold { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--brass-light); text-decoration: underline; text-underline-offset: .3em; cursor: pointer; }
.rsvp-form .field { border: 0; padding: 0; margin: 0 0 1.8rem; min-width: 0; }
.rsvp-form label:not(.guest-pill), .rsvp-form legend { float: none; display: block; width: auto; margin: 0 0 .5rem; padding: 0; font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); }
.rsvp-form label small { font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.form-control.engraved { border: 0; border-bottom: 1px solid var(--brass); border-radius: 0; background: transparent; padding: .55rem 0; color: var(--ivory); font-family: var(--text); font-size: 1.12rem; }
.form-control.engraved:focus { background: transparent; color: var(--ivory); border-color: var(--brass-light); box-shadow: 0 1px 0 var(--brass-light); }
.form-control.engraved[readonly] { font-family: var(--display); font-style: italic; font-size: 1.7rem; color: var(--ivory); border-bottom-color: var(--brass-dim); }
textarea.form-control.engraved { border: 1px solid var(--brass-dim); border-radius: 6px; padding: .7rem .9rem; background: rgba(0, 0, 0, .18); }
.guests-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.guest-pill { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--brass); color: var(--ivory); font-weight: 600; font-size: 1.15rem; cursor: pointer; transition: background-color .25s, color .25s; }
.btn-check:checked + .guest-pill { background: var(--brass); color: var(--deep); }
.btn-check:focus-visible + .guest-pill { outline: 2px solid var(--ivory); outline-offset: 3px; }
.hint { font-size: 1rem; color: var(--muted); margin: .6rem 0 0; }
.choice { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.choice-tile {
    display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: 1.1rem 1rem; border-radius: 999px;
    border: 1px solid var(--brass); background: transparent; color: var(--ivory); font: inherit; cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.choice-tile:first-child { background: linear-gradient(135deg, #e3c98e, var(--brass) 60%, #a8853f); color: var(--deep); border-color: transparent; }
.choice-tile:hover, .choice-tile:focus-visible { transform: translateY(-2px); }
.choice-tile:not(:first-child):hover { background: rgba(201, 164, 92, .14); }
.choice-head { font-family: var(--display); font-style: italic; font-size: 1.55rem; line-height: 1.15; }
.choice-text { font-size: 1rem; font-weight: 500; }
.choice-current { margin-top: .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.rsvp-form.is-sending .choice-tile { opacity: .6; pointer-events: none; }
.rsvp-errors { border: 1px solid #f0a08f; background: rgba(240, 160, 143, .1); color: #ffd3c9; border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1.2rem; }
.rsvp-errors p { margin: 0; }

/* --- Pied de page ---------------------------------------------------------------------- */
.v-foot { text-align: center; padding: 4rem 1.25rem 3.5rem; background: var(--deep); border-top: 1px solid var(--brass-dim); }
.v-foot-names { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 7vw, 3.2rem); margin: 0; }
.v-foot-names span { font-style: italic; color: var(--brass); }
.v-foot-date { font-size: .9rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--brass-light); margin: .3rem 0 0; }
.v-credits { color: var(--muted); font-size: 1rem; margin: 1rem 0 0; }

/* --- Grands écrans ------------------------------------------------------------------------- */
@media (min-width: 560px) { .choice { grid-template-columns: 1fr 1fr; } .v-nav .menu-links li:not(:last-child) { display: block; } }
@media (min-width: 900px) {
    .v-hero { grid-template-columns: 1.15fr .85fr; gap: 5rem; padding-top: 4rem; min-height: calc(100vh - 5rem); }
    .v-day { grid-template-columns: 1.15fr .85fr; gap: 6rem; }
    .v-dress { grid-template-columns: 1fr 1fr; column-gap: 4rem; }
    .v-dress li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--brass-dim); }
    .v-rsvp-wrap { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
    .v-rsvp-side { position: sticky; top: 7rem; }
}
@media (max-width: 400px) { .v-brand { font-size: 1.1rem; } .countdown .cell { width: 5.4rem; height: 5.4rem; } .countdown b { font-size: 1.7rem; } }

@media (prefers-reduced-motion: no-preference) {
    .js .v-hero-text { animation: v-in 1.4s var(--ease) both; }
}
@keyframes v-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
