/* ==========================================================================
   Design « Vert sapin » — fête au jardin : vert sapin, sauge, crème, laiton
   ========================================================================== */

:root {
    --forest: #1f3d2f;
    --forest-2: #2c5240;
    --sage: #b7c9b0;
    --sage-2: #dfe7da;
    --cream: #f6f4ea;
    --brass: #b08d57;
    --ink: #1f3d2f;
    --muted: #4f6a5b;
    --line: rgba(31, 61, 47, .18);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

body { background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 1.15rem; line-height: 1.65; }
::selection { background: var(--sage); color: var(--forest); }
a { color: var(--forest); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--forest); color: var(--cream); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }

.s-leaf { display: block; width: 120px; height: 40px; margin: 1rem auto; fill: none; stroke: var(--brass); stroke-width: 1.2; }
.s-leaf path:not(:first-child) { fill: rgba(176, 141, 87, .18); }

/* --- Ouverture : la photo sous une arche --------------------------------- */
.s-hero { background: var(--sage-2); padding: 1.25rem 1rem 4rem; text-align: center; position: relative; overflow: hidden; }
.s-hero::before { content: ""; position: absolute; left: 50%; top: -30%; width: 140%; height: 70%; transform: translateX(-50%); border-radius: 50%; background: var(--sage); opacity: .45; }
.s-nav { position: relative; display: flex; justify-content: center; gap: 1.6rem; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2.2rem; }
.s-nav a { text-decoration: none; color: var(--forest); }
.s-nav a:hover { color: var(--brass); }
.s-hero-inner { position: relative; }
.s-to { font-style: italic; color: var(--muted); margin: 0 0 1.5rem; }
.s-arch {
    width: min(440px, 82vw); aspect-ratio: 3 / 4; margin: 0 auto 2rem; border-radius: 999px 999px 0 0; overflow: hidden;
    border: 8px solid var(--cream); outline: 1px solid var(--brass); outline-offset: 6px; box-shadow: 0 30px 60px -36px rgba(31, 61, 47, .7);
}
.s-arch .carousel, .s-arch .carousel-inner, .s-arch .carousel-item { height: 100%; }
.s-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-arch .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--cream); opacity: .6; }
.s-arch .carousel-indicators .active { opacity: 1; }
.s-names { font-family: var(--display); font-weight: 400; font-size: clamp(3.4rem, 9vw, 6rem); line-height: 1; margin: 0; color: var(--forest); }
.s-names span { color: var(--brass); font-size: .7em; }
.s-date { font-size: 1.3rem; letter-spacing: .04em; margin: 0; }
.s-where { color: var(--muted); margin: .3rem 0 0; }

/* --- Sections ------------------------------------------------------------ */
.s-section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.s-section--forest { background: var(--forest); color: var(--cream); text-align: center; }
.s-section--forest .s-h2 { color: var(--cream); }
.s-wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.4rem; }
.s-narrow { max-width: 680px; }
.s-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 6.5vw, 4.2rem); line-height: 1.05; margin: 0 0 .5rem; text-align: center; color: var(--forest); }
.s-lead { text-align: center; font-size: 1.2rem; margin: 1rem 0 2.5rem; }

/* Frise du jour */
.s-timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 520px; position: relative; }
.s-timeline::before { content: ""; position: absolute; left: 5.4rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--brass); }
.s-timeline li { display: grid; grid-template-columns: 4.6rem 1fr; column-gap: 1.6rem; padding: .9rem 0; position: relative; }
.s-timeline li::before { content: ""; position: absolute; left: calc(5.4rem - 6px); top: 1.35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--cream); border: 1px solid var(--brass); box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 7px var(--sage); }
.s-time { grid-row: span 2; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.s-what { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; }
.s-more { color: var(--muted); font-size: 1rem; }

.countdown { display: flex; justify-content: center; gap: 2rem; margin: 3rem 0 0; font-variant-numeric: tabular-nums; }
.countdown .cell { text-align: center; }
.countdown b { display: block; font-size: 2.2rem; font-weight: 400; line-height: 1; color: var(--forest); }
.countdown span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Tenue */
.s-sub { font-family: var(--display); font-size: 2rem; color: var(--sage); margin: 0; }
.s-intro { max-width: 34em; margin: .6rem auto 2.5rem; color: rgba(246, 244, 234, .8); }
.s-dress { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 0; text-align: center; }
.s-dress div { padding: 1.4rem 1rem; border: 1px solid rgba(176, 141, 87, .45); border-radius: 999px 999px 18px 18px; }
.s-dress dt { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: .4rem; }
.s-dress dd { margin: 0; }

/* Réponse */
.s-rsvp { background: #fff; border: 1px solid var(--line); border-radius: 220px 220px 18px 18px; padding: clamp(3.5rem, 9vw, 5rem) clamp(1.4rem, 6vw, 3rem) clamp(2rem, 5vw, 3rem); box-shadow: 0 30px 60px -45px rgba(31, 61, 47, .6); }
.rsvp-deadline { text-align: center; color: var(--muted); font-style: italic; margin: .5rem 0 2rem; }
.rsvp-note { text-align: center; }
.rsvp-done { background: var(--sage-2); border-radius: 16px; padding: 1.3rem; text-align: center; margin-bottom: 1.5rem; }
.done-head { font-family: var(--display); font-size: 2rem; margin: 0; }
.done-text { margin: .2rem 0 .8rem; }
.btn-link-gold { background: none; border: 0; padding: 0; color: var(--forest); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .3em; }
.rsvp-form .field { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
.rsvp-form label:not(.guest-pill), .rsvp-form legend { float: none; display: block; width: auto; margin: 0 0 .4rem; padding: 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rsvp-form small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-control.engraved { border: 0; border-bottom: 1px solid var(--brass); border-radius: 0; background: transparent; padding: .5rem 0; color: var(--ink); font-family: var(--text); font-size: 1.1rem; }
.form-control.engraved:focus { box-shadow: 0 1px 0 var(--brass); background: transparent; }
.form-control.engraved[readonly] { font-family: var(--display); font-size: 1.9rem; }
textarea.form-control.engraved { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: var(--cream); }
.guests-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.guest-pill { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--forest); cursor: pointer; font-weight: 600; }
.btn-check:checked + .guest-pill { background: var(--forest); color: var(--cream); }
.btn-check:focus-visible + .guest-pill { outline: 2px solid var(--brass); outline-offset: 3px; }
.hint { font-size: .92rem; color: var(--muted); margin: .5rem 0 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.choice-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 7rem; padding: 1rem;
    border-radius: 999px 999px 14px 14px; border: 1px solid var(--forest); background: transparent; color: var(--forest); font: inherit; cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.choice-tile:first-child { background: var(--forest); color: var(--cream); }
.choice-head { font-family: var(--display); font-size: 2rem; line-height: 1.05; }
.choice-text { font-size: .95rem; opacity: .85; }
.choice-current { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.choice-tile:hover, .choice-tile:focus-visible { transform: translateY(-3px); }
.rsvp-form.is-sending .choice-tile { opacity: .6; pointer-events: none; }
.rsvp-errors { border: 1px solid #9b3b2c; color: #8a2f22; border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.2rem; }
.rsvp-errors p { margin: 0; }
@media (max-width: 479.98px) { .choice { grid-template-columns: 1fr; } .s-timeline::before { left: 4.4rem; } .s-timeline li { grid-template-columns: 3.6rem 1fr; } .s-timeline li::before { left: calc(4.4rem - 6px); } }

.s-foot { text-align: center; padding: 2.5rem 1rem 3rem; background: var(--sage-2); }
.s-foot-names { font-family: var(--display); font-size: 2.6rem; margin: 0; }
.s-foot .small { color: var(--muted); margin: .3rem 0 0; }

@media (prefers-reduced-motion: no-preference) {
    .js .s-arch { animation: s-rise 1.2s var(--ease) both; }
    .js .s-names { animation: s-rise 1.2s var(--ease) .2s both; }
}
@keyframes s-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
