/* ==========================================================================
   Design « Bleu pastel » — bleu poudré, blanc, encre marine
   ========================================================================== */

:root {
    --sky: #dde8f3;
    --sky-2: #eef4fa;
    --blue: #a9c4de;
    --navy: #2c4a6b;
    --navy-soft: #5b7896;
    --white: #ffffff;
    --line: rgba(44, 74, 107, .16);
    --ease: cubic-bezier(.16, 1, .3, 1);
}

body { background: var(--white); color: var(--navy); font-family: var(--text); font-size: 1.1rem; line-height: 1.65; }
::selection { background: var(--blue); color: var(--navy); }
a { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }

/* --- Ouverture : photo et texte côte à côte ------------------------------ */
.p-hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: min(100vh, 860px); background: var(--sky); }
.p-hero-photo { position: relative; overflow: hidden; }
.p-hero-photo .carousel, .p-hero-photo .carousel-inner, .p-hero-photo .carousel-item { height: 100%; }
.p-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-hero-photo .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #fff; opacity: .6; }
.p-hero-photo .carousel-indicators .active { opacity: 1; }
.p-hero-text { display: flex; flex-direction: column; justify-content: center; padding: 3rem clamp(1.5rem, 5vw, 4.5rem); position: relative; }
.p-nav { position: absolute; top: 1.5rem; left: clamp(1.5rem, 5vw, 4.5rem); right: 1.5rem; display: flex; gap: 1.5rem; font-size: .9rem; }
.p-nav a { text-decoration: none; color: var(--navy-soft); }
.p-nav a:hover { color: var(--navy); }
.p-to { font-style: italic; color: var(--navy-soft); margin: 0 0 1.5rem; font-size: 1.1rem; }
.p-save { font-size: .85rem; letter-spacing: .32em; text-transform: uppercase; margin: 0 0 .4rem; color: var(--navy-soft); }
.p-names { font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: 1.02; margin: 0 0 1.25rem; color: var(--navy); }
.p-names span { display: block; font-size: .55em; color: var(--blue); margin: .1em 0; }
.p-date { font-size: 1.25rem; margin: 0 0 2rem; }
.p-btn {
    align-self: flex-start; padding: .9rem 2.2rem; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 500;
    transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.p-btn:hover { background: #1d3550; color: #fff; transform: translateY(-2px); }
@media (max-width: 899.98px) {
    .p-hero { grid-template-columns: 1fr; min-height: 0; }
    .p-hero-photo { height: 56vh; min-height: 320px; }
    .p-hero-text { padding: 2.5rem 1.4rem 3rem; text-align: center; align-items: center; }
    .p-nav { position: static; justify-content: center; margin-bottom: 2rem; }
    .p-btn { align-self: center; }
}

/* --- Sections ------------------------------------------------------------ */
.p-section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.p-section--tint { background: var(--sky-2); }
.p-wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.4rem; }
.p-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 899.98px) { .p-grid { grid-template-columns: 1fr; } }
.p-h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5.5vw, 3.6rem); line-height: 1.05; margin: 0 0 1rem; }
.p-lead { font-size: 1.2rem; }
.p-where { margin: 1.5rem 0 0; color: var(--navy-soft); }
.p-where strong { color: var(--navy); font-weight: 600; }
.p-sub { font-size: 1.15rem; font-weight: 600; margin: 0 0 .3rem; }
.p-intro { color: var(--navy-soft); max-width: 36em; margin: 0 auto 2.5rem; }

/* Programme en pastilles */
.programme-list { margin: 2rem 0 0; display: grid; gap: .8rem; }
.programme-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--sky-2); border-radius: 14px; padding: 1rem 1.2rem; }
.programme-list dt { font-weight: 600; background: var(--white); border-radius: 999px; padding: .2rem .8rem; font-variant-numeric: tabular-nums; }
.programme-list dd { margin: 0; }
.programme-list strong { font-weight: 600; }
.programme-list small { display: block; color: var(--navy-soft); font-size: .98rem; }

/* Calendrier, le jour entouré à la main */
.p-cal { background: var(--white); border-radius: 22px; padding: 1.8rem; margin: 0; box-shadow: 0 30px 60px -40px rgba(44, 74, 107, .55); border: 1px solid var(--line); }
.p-cal figcaption { font-family: var(--display); font-size: 2rem; text-align: center; margin-bottom: 1rem; }
.p-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; text-align: center; font-variant-numeric: tabular-nums; }
.p-cal-grid span { position: relative; padding: .45rem 0; font-size: 1rem; }
.p-cal-head { font-size: .78rem !important; font-weight: 600; color: var(--navy-soft); letter-spacing: .08em; }
.p-cal-grid .is-day { font-weight: 700; color: var(--navy); }
.p-cal-grid svg { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); fill: none; stroke: #e07a8a; stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
.p-cal-time { text-align: center; margin: 1rem 0 0; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
    .js .p-cal-grid svg path { stroke-dasharray: 170; stroke-dashoffset: 170; animation: p-draw 1.4s var(--ease) .6s forwards; }
}
@keyframes p-draw { to { stroke-dashoffset: 0; } }
.countdown { display: flex; justify-content: center; gap: 1.2rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.countdown .cell { text-align: center; min-width: 3.6rem; }
.countdown b { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.countdown span { font-size: .75rem; color: var(--navy-soft); }

/* Tenue */
.p-dress { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.p-dress-item { background: var(--white); border-radius: 18px; padding: 1.4rem 1.5rem; border: 1px solid var(--line); }
.p-dress-item h3 { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--navy-soft); margin: 0 0 .4rem; font-weight: 600; }
.p-dress-item p { margin: 0; }

/* Réponse */
.p-rsvp { max-width: 640px; margin: 0 auto; background: var(--sky-2); border-radius: 26px; padding: clamp(2rem, 6vw, 3.2rem); }
.rsvp-deadline { text-align: center; color: var(--navy-soft); margin: 0 0 2rem; }
.rsvp-note { text-align: center; }
.rsvp-done { background: var(--white); border-radius: 16px; padding: 1.4rem; margin-bottom: 1.5rem; text-align: center; }
.done-head { font-family: var(--display); font-size: 2rem; margin: 0 0 .2rem; }
.done-text { margin: 0 0 .8rem; }
.btn-link-gold { background: none; border: 0; color: var(--navy); text-decoration: underline; text-underline-offset: .3em; padding: 0; }
.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; font-size: .9rem; font-weight: 600; margin: 0 0 .4rem; padding: 0; }
.rsvp-form small { font-weight: 400; color: var(--navy-soft); }
.form-control.engraved { border-radius: 12px; border: 1px solid var(--line); background: var(--white); padding: .7rem .9rem; color: var(--navy); font-family: var(--text); font-size: 1.05rem; }
.form-control.engraved:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(169, 196, 222, .6); }
.form-control.engraved[readonly] { background: transparent; border-color: transparent; padding-left: 0; font-family: var(--display); font-size: 1.8rem; }
.guests-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.guest-pill { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.btn-check:checked + .guest-pill { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-check:focus-visible + .guest-pill { outline: 2px solid var(--navy); outline-offset: 3px; }
.hint { font-size: .92rem; color: var(--navy-soft); 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: .15rem; min-height: 6.5rem; padding: 1rem;
    border-radius: 18px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font: inherit; cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.choice-tile:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }
.choice-head { font-family: var(--display); font-size: 1.8rem; line-height: 1.05; }
.choice-text { font-size: .95rem; opacity: .85; }
.choice-current { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.choice-tile:hover, .choice-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(44, 74, 107, .7); }
.rsvp-form.is-sending .choice-tile { opacity: .6; pointer-events: none; }
.rsvp-errors { background: #fdecef; color: #9b2c3c; 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; } }

.p-foot { text-align: center; padding: 3rem 1rem; background: var(--sky); }
.p-foot-names { font-family: var(--display); font-size: 2.4rem; margin: 0; }
.p-foot .small { color: var(--navy-soft); margin: .4rem 0 0; }
