/* ==========================================================================
   Design « Aquarelle » — lavis de pêche, vieux rose et bleu sur papier grenu
   ========================================================================== */

:root {
    --paper: #fdfaf6;
    --paper-2: #f8f0ea;
    --ink: #3d3a4f;
    --muted: #625d73;
    --plum: #5b3c55;
    --rose-ink: #9b4a5e;
    --blue-ink: #3f5f86;
    --peach-c: 242, 168, 130;
    --rose-c: 217, 140, 160;
    --blue-c: 140, 176, 222;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --line: rgba(61, 58, 79, .14);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.1rem; line-height: 1.75; overflow-x: hidden; }
::selection { background: rgba(var(--rose-c), .4); color: var(--ink); }
a { color: var(--rose-ink); }
:focus-visible { outline: 2px solid var(--rose-ink); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--plum); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: 999px; }
.skip-link:focus { top: 1rem; color: #fff; }
.aq-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.aq-grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; mix-blend-mode: multiply; }

.aq-wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 1.25rem; }
.aq-narrow { max-width: 700px; }

/* Taches d'aquarelle : pigment plus dense sur les bords, contours irréguliers */
.aq-bloom {
    --c: var(--rose-c);
    position: absolute; pointer-events: none; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
    background: radial-gradient(closest-side, rgba(var(--c), .26) 0%, rgba(var(--c), .34) 55%, rgba(var(--c), .58) 84%, rgba(var(--c), 0) 100%);
    filter: url(#aq-bleed); mix-blend-mode: multiply;
}
.aq-bloom--peach { --c: var(--peach-c); }
.aq-bloom--rose { --c: var(--rose-c); }
.aq-bloom--blue { --c: var(--blue-c); }

/* --- Navigation ---------------------------------------------------------- */
.aq-nav { position: relative; z-index: 5; display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 1.4rem; padding: 1.2rem 1rem 0; }
.aq-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; letter-spacing: .04em; padding: .3rem .1rem; background-image: linear-gradient(rgba(var(--rose-c), .5), rgba(var(--rose-c), .5)); background-size: 0 40%; background-position: 0 85%; background-repeat: no-repeat; transition: background-size .4s var(--ease); }
.aq-nav a:hover { background-size: 100% 40%; }

/* --- Ouverture ----------------------------------------------------------- */
.aq-hero { position: relative; overflow: hidden; text-align: center; padding: 1.5rem 0 4.5rem; margin-top: -3.2rem; padding-top: 4.7rem; }
.aq-hb1 { --s: min(720px, 120vw); width: var(--s); height: calc(var(--s) * .8); left: -24%; top: -12%; }
.aq-hb2 { --s: min(560px, 95vw); width: var(--s); height: var(--s); right: -22%; top: 26%; border-radius: 58% 42% 40% 60% / 45% 58% 42% 55%; }
.aq-hb3 { --s: min(520px, 90vw); width: var(--s); height: calc(var(--s) * .7); left: -10%; bottom: -14%; }
.aq-hero-inner { position: relative; z-index: 1; padding: 0 1.25rem; }
.aq-to { display: inline-block; margin: 0 0 1.8rem; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.45rem; color: var(--plum); }

.aq-portrait { position: relative; isolation: isolate; width: min(330px, 74vw); aspect-ratio: 4 / 5; margin: 0 auto; }
.aq-portrait-wash { position: absolute; inset: -9% -14% -6% -10%; border-radius: 52% 48% 44% 56% / 50% 46% 54% 50%; background: radial-gradient(closest-side, rgba(var(--peach-c), .5), rgba(var(--rose-c), .55) 70%, rgba(var(--rose-c), 0)); filter: url(#aq-bleed); mix-blend-mode: multiply; transform: rotate(-8deg); }
.aq-portrait-shape { position: absolute; inset: 0; overflow: hidden; border-radius: 48% 52% 46% 54% / 56% 50% 50% 44%; background: rgba(var(--blue-c), .35); }
.aq-portrait-shape .carousel { position: absolute; inset: 0; }
.aq-portrait-shape .carousel-inner, .aq-portrait-shape .carousel-item { height: 100%; }
.aq-portrait-shape .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aq-portrait-shape .carousel-indicators { margin-bottom: 1.2rem; }
.aq-portrait-shape .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #fff; opacity: .6; }
.aq-portrait-shape .carousel-indicators .active { opacity: 1; }

.aq-names { position: relative; z-index: 2; margin: -2.6rem 0 0; font-family: var(--display); font-weight: 400; color: var(--plum); line-height: 1; font-size: clamp(3.6rem, 16vw, 7.5rem); text-shadow: 0 0 2px var(--paper), 0 0 14px var(--paper), 0 0 28px var(--paper); }
.aq-names > span:not(.visually-hidden) { display: block; }
.aq-amp { font-size: .55em; color: var(--rose-ink); line-height: .9; }
.aq-date { margin: 1.4rem 0 .2rem; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.5rem, 4.5vw, 1.9rem); color: var(--ink); }
.aq-where { margin: 0; font-size: .92rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* --- Le jour ------------------------------------------------------------- */
.aq-day { position: relative; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6rem); }
.aq-day-intro { display: grid; gap: 2rem; justify-items: center; text-align: center; margin-bottom: 3rem; }
.aq-dateblot { position: relative; width: 210px; height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.aq-dateblot .aq-bloom { inset: 0; border-radius: 50% 46% 54% 50% / 48% 54% 46% 52%; }
.aq-dateblot-day { position: relative; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 5.2rem; line-height: .9; color: var(--plum); }
.aq-dateblot-month { position: relative; font-size: .9rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.aq-h2 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2.6rem, 7vw, 3.8rem); line-height: 1.05; margin: 0 0 .9rem; color: var(--plum); }
.aq-lead { font-size: 1.15rem; margin: 0 auto; max-width: 32em; }
.aq-ceremony { margin: 1rem 0 0; font-weight: 700; color: var(--rose-ink); }

.programme-list { margin: 0; display: grid; gap: 1.2rem; }
.programme-row { position: relative; display: grid; grid-template-columns: 1fr; text-align: center; padding: 2rem 1.4rem; isolation: isolate; }
.programme-row::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 52% 48% 46% 54% / 60% 52% 48% 40%; background: radial-gradient(closest-side, rgba(var(--peach-c), .22), rgba(var(--peach-c), .34) 70%, rgba(var(--peach-c), 0)); filter: url(#aq-bleed); mix-blend-mode: multiply; }
.programme-row:nth-child(2)::before { background: radial-gradient(closest-side, rgba(var(--blue-c), .22), rgba(var(--blue-c), .36) 70%, rgba(var(--blue-c), 0)); border-radius: 44% 56% 58% 42% / 52% 44% 56% 48%; }
.programme-row dt { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--plum); font-variant-numeric: lining-nums; }
.programme-row dd { margin: .4rem 0 0; }
.programme-row strong { font-weight: 700; font-size: 1.15rem; }
.programme-row small { display: block; font-size: 1rem; color: var(--muted); margin-top: .1rem; }

.aq-count { text-align: center; margin-top: 3.5rem; }
.aq-count-title { margin: 0 0 1.2rem; font-size: .85rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.countdown { display: flex; justify-content: center; gap: .6rem; font-variant-numeric: tabular-nums lining-nums; }
.countdown .cell { position: relative; width: 6.6rem; height: 6.6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; isolation: isolate; }
.countdown .cell::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50% 46% 54% 48% / 46% 54% 48% 52%; background: radial-gradient(closest-side, rgba(var(--rose-c), .25), rgba(var(--rose-c), .45) 78%, rgba(var(--rose-c), 0)); filter: url(#aq-bleed); mix-blend-mode: multiply; }
.countdown .cell:nth-child(2)::before { background: radial-gradient(closest-side, rgba(var(--peach-c), .25), rgba(var(--peach-c), .45) 78%, rgba(var(--peach-c), 0)); }
.countdown .cell:nth-child(3)::before { background: radial-gradient(closest-side, rgba(var(--blue-c), .25), rgba(var(--blue-c), .45) 78%, rgba(var(--blue-c), 0)); }
.countdown b { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2.4rem; line-height: 1; color: var(--plum); }
.countdown span { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

/* --- La tenue : nuancier ------------------------------------------------- */
.aq-dress { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 6rem) 0; text-align: center; background: var(--paper-2); }
.aq-d1 { --s: min(640px, 110vw); width: var(--s); height: calc(var(--s) * .75); right: -20%; top: -18%; opacity: .7; }
.aq-sub { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--blue-ink); margin: 0; }
.aq-intro { margin: .7rem auto 2.6rem; max-width: 32em; }
.aq-swatches { display: grid; gap: 2rem 1.4rem; margin: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.aq-swatch { display: flex; flex-direction: column; align-items: center; }
.aq-swatch-dot { width: 74px; height: 74px; margin-bottom: .8rem; border-radius: 50% 44% 56% 48% / 52% 56% 44% 48%; background: radial-gradient(closest-side, rgba(var(--c), .4), rgba(var(--c), .7) 80%, rgba(var(--c), 0)); filter: url(#aq-bleed); mix-blend-mode: multiply; }
.aq-swatch--peach { --c: var(--peach-c); }
.aq-swatch--rose { --c: var(--rose-c); }
.aq-swatch--blue { --c: var(--blue-c); }
.aq-swatch dt { font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-ink); }
.aq-swatch--blue dt { color: var(--blue-ink); }
.aq-swatch dd { margin: .2rem 0 0; max-width: 18em; }

/* --- Réponse : feuille de papier frangée -------------------------------- */
.aq-reply { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.aq-r1 { --s: min(520px, 100vw); width: var(--s); height: var(--s); left: -18%; top: 4%; }
.aq-r2 { --s: min(460px, 90vw); width: var(--s); height: var(--s); right: -16%; bottom: 2%; }
.aq-sheet { position: relative; isolation: isolate; text-align: center; padding: clamp(2.6rem, 7vw, 3.6rem) clamp(1.3rem, 6vw, 3rem) clamp(2.2rem, 5vw, 3rem); }
.aq-sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fffdfb; filter: url(#aq-deckle) drop-shadow(0 18px 30px rgba(91, 60, 85, .14)); }
.rsvp-deadline { margin: 0 0 2rem; font-style: italic; color: var(--muted); }
.rsvp-note { max-width: 30em; margin: 0 auto; }
.rsvp-done { position: relative; isolation: isolate; padding: 1.6rem 1.2rem; margin-bottom: 1.6rem; }
.rsvp-done::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%; background: radial-gradient(closest-side, rgba(var(--peach-c), .3), rgba(var(--peach-c), .45) 75%, rgba(var(--peach-c), 0)); filter: url(#aq-bleed); }
.done-head { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2rem; line-height: 1.1; margin: 0 0 .3rem; color: var(--plum); }
.done-text { margin: 0 0 .8rem; }
.btn-link-gold { background: none; border: 0; padding: .2rem 0; color: var(--rose-ink); font: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(var(--rose-c), .9); text-decoration-thickness: 2px; 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: .95rem; font-weight: 700; color: var(--plum); }
.rsvp-form small { font-weight: 400; color: var(--muted); }
.form-control.engraved { border: 1.5px solid rgba(var(--rose-c), .6); border-radius: 18px 22px 16px 20px; background: #fff; padding: .7rem 1rem; color: var(--ink); font-family: var(--text); font-size: 1.08rem; }
.form-control.engraved:focus { border-color: var(--rose-ink); box-shadow: 0 0 0 4px rgba(var(--rose-c), .25); }
.form-control.engraved[readonly] { background: rgba(var(--peach-c), .16); border-color: transparent; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--plum); }
.form-control.engraved[readonly]:focus { box-shadow: none; }
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: 50% 46% 54% 48% / 48% 54% 46% 52%; border: 1.5px solid var(--rose-ink); color: var(--rose-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(--rose-ink); color: #fff; }
.btn-check:focus-visible + .guest-pill { outline: 2px solid var(--blue-ink); outline-offset: 3px; }
.hint { font-size: .95rem; color: var(--muted); margin: .5rem 0 0; }
.choice { display: grid; gap: .9rem; }
.choice-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 7rem; padding: 1.1rem 1rem;
    border: 1.5px solid var(--rose-ink); border-radius: 46% 54% 48% 52% / 56% 48% 52% 44%; background: #fff; color: var(--rose-ink); font: inherit; cursor: pointer;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.choice-tile:first-child { background: var(--rose-ink); color: #fff; }
.choice-tile:hover, .choice-tile:focus-visible { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 16px 30px -18px rgba(155, 74, 94, .6); }
.choice-tile.is-current { box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(var(--blue-c), .9); }
.choice-head { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 2rem; line-height: 1.05; }
.choice-text { font-size: 1rem; }
.choice-current { margin-top: .25rem; 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: 1.5px solid #9b3b2c; background: #fbefec; color: #7c2a1d; border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1.4rem; }
.rsvp-errors p { margin: 0; }

/* --- Pied de page -------------------------------------------------------- */
.aq-foot { position: relative; overflow: hidden; text-align: center; padding: 3.5rem 1.25rem 3.5rem; background: var(--paper-2); }
.aq-f1 { width: 420px; height: 300px; left: -140px; top: -60px; }
.aq-f2 { width: 380px; height: 280px; right: -120px; bottom: -110px; }
.aq-foot-names { position: relative; margin: 0; font-family: var(--display); font-size: clamp(2.8rem, 10vw, 4.4rem); line-height: 1.1; color: var(--plum); }
.aq-foot-names span { color: var(--rose-ink); }
.aq-foot-date { position: relative; margin: .4rem 0 0; font-size: .9rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.aq-credits { position: relative; margin: 1.2rem 0 0; font-size: .95rem; color: var(--muted); }

/* --- Écrans plus larges -------------------------------------------------- */
@media (min-width: 560px) {
    .choice { grid-template-columns: 1fr 1fr; }
    .aq-names .aq-n1 { transform: translateX(-.45em); }
    .aq-names .aq-n2 { transform: translateX(.45em); }
}
@media (min-width: 860px) {
    .aq-portrait { width: 360px; }
    .aq-day-intro { grid-template-columns: 240px 1fr; text-align: left; justify-items: start; align-items: center; gap: 3.5rem; max-width: 900px; }
    .aq-dateblot { width: 240px; height: 240px; }
    .aq-lead { margin-left: 0; }
    .programme-list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .programme-row:nth-child(2) { margin-top: 2.5rem; }
}

/* --- Mouvement : le lavis du portrait s'étale ---------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .js .aq-portrait-wash { animation: aq-spread 1.8s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .choice-tile, .guest-pill, .aq-nav a { transition: none; }
    .carousel-item { transition: none !important; }
}
@keyframes aq-spread { from { opacity: 0; transform: rotate(-8deg) scale(.82); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
