/* ═══════════════════════════════════════════════════════════════
   Site mariage Arthur & Marion - feuille de style
   Palette tirée du faire-part : rose poudré, or, vert sauge, kraft
   ═══════════════════════════════════════════════════════════════ */

:root {
    --blush:      #fdf1ec;
    --blush-2:    #fbe7dd;
    --cream:      #fffaf6;
    --gold:       #e0ae25;
    --gold-deep:  #c3941a;
    --gold-soft:  #f3d78a;
    --sage:       #80a880;
    --sage-dark:  #5e8161;
    --sage-light: #b8d0b0;
    --ink:        #4a4238;
    --ink-soft:   #7a6f61;
    --red:        #e84038;
    --kraft:      #d8c0a0;
    --kraft-2:    #c0a880;
    --kraft-3:    #a98f68;

    --font-serif:  'Playfair Display', Georgia, serif;
    --font-script: 'Great Vibes', cursive;
    --font-body:   'Jost', 'Segoe UI', sans-serif;

    --shadow-1: 0 6px 24px rgba(74, 66, 56, .10);
    --shadow-2: 0 18px 50px rgba(74, 66, 56, .18);
    --ring: 0 0 0 4px rgba(224, 174, 37, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: var(--blush);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }

.script-font { font-family: var(--font-script); font-weight: 400; }
.heart { color: var(--red); }
.d-desktop { display: inline; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.15; }

section { scroll-margin-top: 84px; }

/* ── Boutons ─────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 13px 30px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, background .25s, color .25s;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(195, 148, 26, .38);
}
.btn-gold:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 30px rgba(195, 148, 26, .48); }
.btn-gold:active { transform: translateY(0) scale(.98); }
.btn-ghost {
    background: transparent;
    color: var(--sage-dark);
    border-color: var(--sage);
}
.btn-ghost:hover { background: var(--sage); color: #fff; transform: translateY(-2px); }
.btn-big { font-size: 1.1rem; padding: 16px 38px; }
.btn-small { font-size: .88rem; padding: 8px 18px; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 10px;
    vertical-align: -2px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════
   1. SCÈNE D'OUVERTURE - enveloppe
   ═══════════════════════════════════════════════════════════════ */
#ouverture {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(243, 214, 126, .25), transparent 60%),
        radial-gradient(900px 500px at 85% 110%, rgba(248, 224, 200, .55), transparent 60%),
        var(--blush);
    overflow: hidden;
    transition: opacity .9s ease, visibility .9s;
}
#ouverture.exit { opacity: 0; visibility: hidden; pointer-events: none; }

/* Voile sombre qui s'installe quand l'enveloppe s'ouvre (met le faire-part en valeur) */
#ouverture::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 700px at 50% 42%, rgba(224, 174, 37, .14), transparent 65%),
        linear-gradient(180deg, rgba(58, 49, 40, .92), rgba(34, 28, 23, .96));
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}
#ouverture.stage2::before { opacity: 1; }

/* animation:none obligatoire : fadeDown (forwards) garderait la priorité
   sur opacity:0 et le texte resterait visible derrière le faire-part */
#ouverture.stage2 .ouv-entete { animation: none; opacity: 0; visibility: hidden; }

#dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.ouv-entete {
    position: relative;
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    color: var(--sage-dark);
    text-align: center;
    padding: 0 20px;
    opacity: 0;
    animation: fadeDown 1.2s ease .3s forwards;
    transition: opacity .5s;
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }

.env-scene { position: relative; text-align: center; transition: opacity .5s; }
/* une fois l'enveloppe partie, elle reste hit-testable (opacity 0) :
   on coupe les clics pour ne jamais masquer les boutons du faire-part */
.env-scene.away { pointer-events: none; }
/* animation:none obligatoire : hintPulse (infinite) écraserait opacity:0 */
.env-scene.away .ouv-hint { animation: none; opacity: 0; visibility: hidden; }

.ouv-hint {
    margin-top: 34px;
    color: var(--ink-soft);
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    animation: hintPulse 2.2s ease-in-out infinite;
    transition: opacity .4s;
}
@keyframes hintPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* - l'enveloppe - */
.envelope {
    position: relative;
    width: min(78vw, 400px);
    aspect-ratio: 10 / 6.6;
    margin: 0 auto;
    cursor: pointer;
    outline: none;
    animation: floaty 3.6s ease-in-out infinite;
    transition: transform .8s cubic-bezier(.5,0,.7,.4), opacity .7s ease .1s;
    -webkit-tap-highlight-color: transparent;
}
.envelope:hover, .envelope:focus-visible { animation-play-state: paused; }
.envelope:hover .env-seal { transform: translateX(-50%) scale(1.07); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.envelope::after { /* ombre portée au sol */
    content: '';
    position: absolute;
    left: 12%;
    bottom: -34px;
    width: 76%;
    height: 22px;
    background: radial-gradient(ellipse at center, rgba(74,66,56,.28), transparent 68%);
    animation: shadowPulse 3.6s ease-in-out infinite;
}
@keyframes shadowPulse { 0%,100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.86); opacity: .6; } }

.envelope.opened { animation: none; }
.envelope.away { transform: translateY(75vh) rotate(7deg) !important; opacity: 0; }

.env-back, .env-pocket, .env-flap { position: absolute; inset: 0; border-radius: 10px; }

.env-back {
    background: linear-gradient(170deg, var(--kraft-2), var(--kraft-3));
    box-shadow: var(--shadow-2);
    z-index: 1;
}

.env-card {
    position: absolute;
    left: 6.5%;
    bottom: 3.5%;
    width: 87%;
    height: 91%;
    overflow: hidden;
    border-radius: 6px;
    background: var(--cream);
    box-shadow: 0 -6px 18px rgba(74,66,56,.25);
    z-index: 2;
    transform: translateY(0);
    transition: transform 1.1s cubic-bezier(.16,.8,.26,1) .45s, opacity .35s;
}
.env-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.envelope.opened .env-card { transform: translateY(-76%); }
.envelope.card-out .env-card { opacity: 0; }

.env-pocket {
    z-index: 3;
    background: linear-gradient(165deg, var(--kraft) 0%, var(--kraft-2) 58%, var(--kraft-3) 100%);
    clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%);
    border-radius: 0 0 10px 10px;
    filter: drop-shadow(0 -2px 3px rgba(74,66,56,.18));
}

.env-flap {
    z-index: 4;
    background: linear-gradient(180deg, var(--kraft) 0%, var(--kraft-2) 70%, var(--kraft-3) 100%);
    clip-path: polygon(0 0, 100% 0, 50% 60%);
    border-radius: 10px 10px 0 0;
    transform-origin: top center;
    transition: transform .75s cubic-bezier(.6,.05,.3,1), z-index 0s .35s;
    backface-visibility: visible;
}
.envelope.opened .env-flap { transform: rotateX(180deg); z-index: 1; }

.env-seal {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 44%;
    width: 27%;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 8px rgba(74,66,56,.35));
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .35s;
}
.envelope.opened .env-seal {
    transform: translateX(-50%) scale(0) rotate(120deg);
    opacity: 0;
}

/* - le faire-part sorti (recto/verso) - */
/* display:flex ci-dessous écraserait le display:none de l'attribut hidden :
   sans cette règle, le calque plein écran (z-index 6) avale les clics
   destinés à l'enveloppe dès le chargement. */
.fp-stage[hidden] { display: none; }
.fp-stage {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    padding: 24px;
    perspective: 1400px;
}
/* le dépliant : recto à gauche, verso qui se déplie à droite */
.fp-spread {
    position: relative;
    display: flex;
    perspective: 1600px;
    transition: transform .9s cubic-bezier(.35,.1,.25,1), opacity .7s ease;
    transform: scale(.4) translateY(26vh);
    opacity: 0;
}
.fp-stage.in .fp-spread { transform: scale(1) translateY(0); opacity: 1; }

.fp-page {
    position: relative;
    /* le plafond de hauteur (66vh) est intégré à la largeur pour que chaque
       page garde EXACTEMENT le ratio de l'image : pas de bandes crème */
    width: min(44vw, 330px, calc(66vh * 900 / 1268));
    aspect-ratio: 900 / 1268;
    overflow: hidden;
    background: var(--cream);
    box-shadow: var(--shadow-2);
}
.fp-page img { display: block; width: 100%; height: 100%; object-fit: contain; }

.fp-recto { border-radius: 12px 0 0 12px; z-index: 2; }
.fp-verso {
    border-radius: 0 12px 12px 0;
    transform-origin: left center;
    transform: rotateY(-88deg);
    transition: transform 1s cubic-bezier(.34,.06,.24,1) .55s;
    z-index: 1;
}
.fp-stage.in .fp-verso { transform: rotateY(0deg); }

/* ombre de pliure au centre du dépliant */
.fp-verso::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 8%;
    background: linear-gradient(90deg, rgba(74,66,56,.20), transparent);
    pointer-events: none;
}
.fp-recto::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 5%;
    background: linear-gradient(270deg, rgba(74,66,56,.12), transparent);
    pointer-events: none;
}

/* indication « touchez pour retourner » — mobile uniquement */
.fp-tap-hint {
    display: none;
    color: rgba(255, 244, 230, .85);
    font-size: .85rem;
    letter-spacing: .05em;
    text-align: center;
    opacity: 0;
    transition: opacity .6s ease .9s;
}
.fp-stage.in .fp-tap-hint { opacity: 1; }

.fp-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease .5s, transform .6s ease .5s;
}
.fp-stage.in .fp-actions { opacity: 1; transform: none; }

.ouv-skip {
    position: absolute;
    z-index: 30;
    right: 22px;
    bottom: 18px;
    background: none;
    border: none;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: .85rem;
    letter-spacing: .05em;
    cursor: pointer;
    opacity: .7;
    transition: opacity .3s;
}
.ouv-skip:hover { opacity: 1; text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   2. NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 14px 28px;
    background: rgba(253, 241, 236, .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 174, 37, .25);
    transform: translateY(-110%);
    transition: transform .7s cubic-bezier(.2,.7,.2,1), padding .3s, box-shadow .3s;
}
body.site-on #navbar { transform: none; }
#navbar.shrink { padding: 8px 28px; box-shadow: var(--shadow-1); }

.nav-logo {
    font-size: 1.7rem;
    color: var(--sage-dark);
    text-decoration: none;
    white-space: nowrap;
}
#navLinks { display: flex; gap: 22px; margin-left: auto; }
#navLinks a {
    position: relative;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: .98rem;
    letter-spacing: .02em;
    padding: 4px 2px;
}
#navLinks a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
#navLinks a:hover::after, #navLinks a.active::after { transform: scaleX(1); }
.nav-cta { font-size: .92rem; padding: 10px 22px; }
.nav-cta-mobile { display: none; }

#burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
}
#burger span {
    display: block;
    height: 2.5px;
    width: 26px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .35s, opacity .3s;
}
#burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════
   3. ACCUEIL / HERO
   ═══════════════════════════════════════════════════════════════ */
#accueil {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 26%;
    transform: scale(1.12);
}
.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(253,241,236,.82) 0%, rgba(253,241,236,.12) 34%, rgba(56,46,38,.34) 68%, rgba(45,37,30,.78) 100%);
}
.hero-inner {
    position: relative;
    text-align: center;
    padding: 0 20px 9svh;
    max-width: 860px;
}
.hero-date {
    display: inline-block;
    background: rgba(253, 241, 236, .92);
    color: var(--sage-dark);
    border: 1px solid rgba(224, 174, 37, .55);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: 9px 22px;
    border-radius: 999px;
    box-shadow: var(--shadow-1);
}
#accueil h1 {
    font-size: clamp(2.6rem, 11vw, 6rem);
    color: #fffaf6;
    text-shadow: 0 4px 26px rgba(45, 37, 30, .55);
    margin: 18px 0 4px;
    font-weight: 400;
}
.hero-titre {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    letter-spacing: .3em;
    text-indent: .3em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 14px rgba(45, 37, 30, .5);
    margin-bottom: 30px;
}

/* - compte à rebours - */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}
.cd-box {
    background: rgba(255, 250, 246, .9);
    border: 1px solid rgba(224, 174, 37, .4);
    border-radius: 16px;
    min-width: 78px;
    padding: 10px 8px 8px;
    box-shadow: var(--shadow-1);
    backdrop-filter: blur(6px);
}
.cd-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-deep);
    line-height: 1.1;
}
.cd-num.pop { animation: cdPop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes cdPop { 0% { transform: scale(1); } 40% { transform: scale(1.28); color: var(--red); } 100% { transform: scale(1); } }
.cd-lab {
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.cd-sep { color: rgba(255,250,246,.85); font-size: 1.6rem; }

.scroll-cue {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 2px solid rgba(255, 250, 246, .8);
    border-radius: 999px;
}
.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px; height: 8px;
    margin-left: -2px;
    background: var(--gold);
    border-radius: 4px;
    animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ═══════════════════════════════════════════════════════════════
   4. SECTIONS COMMUNES
   ═══════════════════════════════════════════════════════════════ */
.section { padding: 96px 20px; text-align: center; }
.section-tinted {
    background:
        radial-gradient(900px 340px at 12% 0%, rgba(248, 224, 200, .6), transparent 60%),
        var(--blush-2);
}
.sur-titre { font-size: clamp(1.5rem, 5vw, 2.2rem); color: var(--gold-deep); }
.section h2 { font-size: clamp(1.7rem, 6.5vw, 2.6rem); margin: 2px 0 14px; }

.lantern-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 48px;
    max-width: 320px;
}
.lantern-divider::before, .lantern-divider::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.lantern-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.lantern-divider span { color: var(--gold-deep); font-size: 1.25rem; }

/* - blocs infos - */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
}
.card {
    background: var(--cream);
    border: 1px solid rgba(224, 174, 37, .3);
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: var(--shadow-1);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-9px) rotate(-.6deg); box-shadow: var(--shadow-2); }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--gold); }
.card:hover .card-icon svg { stroke: #fff; }
.card-icon {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blush);
    border: 1.5px solid rgba(224, 174, 37, .5);
    margin-bottom: 18px;
    transition: transform .35s, background .35s;
}
.card-icon svg {
    width: 28px; height: 28px;
    fill: none;
    stroke: var(--sage-dark);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .35s;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .97rem; }

/* - programme / timeline - */
.timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: 10px 0 6px;
}
.tl-line {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    background: linear-gradient(180deg, var(--gold-deep), var(--gold), var(--sage));
    border-radius: 3px;
    transform-origin: top;
}
.tl-item {
    position: relative;
    width: 50%;
    padding: 16px 44px 16px 0;
    text-align: right;
}
.tl-item.tl-right { margin-left: 50%; padding: 16px 0 16px 44px; text-align: left; }
.tl-dot {
    position: absolute;
    top: 34px;
    right: -8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--cream);
    box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(224,174,37,.65);
    z-index: 2;
}
.tl-item.tl-right .tl-dot { right: auto; left: -8px; }
.tl-card {
    display: inline-block;
    background: var(--cream);
    border: 1px solid rgba(224, 174, 37, .3);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: var(--shadow-1);
    max-width: 320px;
    transition: transform .3s, box-shadow .3s;
}
.tl-card:hover { transform: scale(1.04); box-shadow: var(--shadow-2); }
.tl-heure {
    display: inline-block;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, var(--sage), var(--sage-dark));
    border-radius: 999px;
    padding: 3px 14px;
    margin-bottom: 8px;
}
.tl-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.tl-card p { color: var(--ink-soft); font-size: .94rem; }

/* - lieux / cartes - */
.maps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1020px;
    margin: 0 auto;
}
.map-card {
    background: var(--cream);
    border: 1px solid rgba(224, 174, 37, .3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform .35s, box-shadow .35s;
    text-align: left;
}
.map-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-2); }
.map-frame { aspect-ratio: 16 / 9; overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-info { padding: 22px 24px 26px; }
.map-info h3 { font-size: 1.25rem; margin-bottom: 6px; }
.map-info p { color: var(--ink-soft); margin-bottom: 14px; }

/* ═══════════════════════════════════════════════════════════════
   5. RSVP
   ═══════════════════════════════════════════════════════════════ */
.rsvp-box {
    position: relative;
    max-width: 720px;
    margin: 34px auto 0;
    background: var(--cream);
    border: 1px solid rgba(224, 174, 37, .35);
    border-radius: 24px;
    padding: 54px 34px 40px;
    box-shadow: var(--shadow-2);
}
.rsvp-box::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 60px; height: 60px;
    transform: translateX(-50%);
    background: url('../img/seal.png') center / contain no-repeat;
    filter: drop-shadow(0 4px 8px rgba(74,66,56,.3));
}
.rsvp-hello { font-size: 1.35rem; margin-bottom: 6px; }
.rsvp-note { color: var(--ink-soft); font-size: .95rem; margin-bottom: 28px; }

.rsvp-list { text-align: left; }
.rsvp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 4px;
    border-bottom: 1px dashed rgba(224, 174, 37, .5);
}
.rsvp-row:last-child { border-bottom: none; }
.rsvp-name { font-weight: 600; font-size: 1.08rem; }

.rsvp-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: #fff;
    border: 1.5px solid rgba(74, 66, 56, .22);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.2,.7,.2,1);
}
.choice i {
    font-style: normal;
    font-weight: 700;
    margin-right: 4px;
}
.choice:hover { transform: translateY(-2px); border-color: var(--gold); }
.choice.bump { animation: bump .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes bump { 0% { transform: scale(1); } 45% { transform: scale(1.16); } 100% { transform: scale(1.05); } }

.choice-present.sel { background: var(--sage); border-color: var(--sage-dark); color: #fff; transform: scale(1.05); box-shadow: 0 6px 16px rgba(94,129,97,.4); }
.choice-absent.sel { background: #d96a5c; border-color: #c05a4d; color: #fff; transform: scale(1.05); box-shadow: 0 6px 16px rgba(217,106,92,.4); }
.choice-indecis.sel { background: var(--gold); border-color: var(--gold-deep); color: #fff; transform: scale(1.05); box-shadow: 0 6px 16px rgba(224,174,37,.4); }

#btnSaveRsvp { margin-top: 30px; }
.rsvp-saved { margin-top: 14px; color: var(--sage-dark); font-weight: 600; }
.rsvp-empty p { font-size: 1.05rem; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════════
   6. FORMULAIRE MESSAGE
   ═══════════════════════════════════════════════════════════════ */
.msg-form { max-width: 680px; margin: 0 auto; text-align: left; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.msg-form label {
    display: block;
    font-weight: 500;
    font-size: .95rem;
    margin-bottom: 18px;
}
.msg-form small { color: var(--ink-soft); font-weight: 400; }
.msg-form input, .msg-form textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid rgba(224, 174, 37, .45);
    border-radius: 14px;
    padding: 13px 16px;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    resize: vertical;
}
.msg-form input:focus, .msg-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--ring);
    transform: translateY(-1px);
}
.trap { position: absolute !important; left: -6000px !important; opacity: 0; height: 0; }

/* ── Hébergement : encart mis en avant ──────────────────────── */
.hb-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, #fffdf8, var(--cream));
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 56px 34px 40px;
    box-shadow: 0 10px 34px rgba(195, 148, 26, .22);
    animation: hbGlow 2.8s ease-in-out infinite;
}
/* halo doré qui respire pour attirer l'œil */
@keyframes hbGlow {
    0%, 100% { box-shadow: 0 10px 34px rgba(195, 148, 26, .18), 0 0 0 0 rgba(224, 174, 37, .32); }
    50%      { box-shadow: 0 14px 44px rgba(195, 148, 26, .30), 0 0 0 12px rgba(224, 174, 37, 0); }
}
.hb-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    background: linear-gradient(135deg, var(--red), #c93028);
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 8px 22px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(232, 64, 56, .38);
    animation: hbBadge 1.9s ease-in-out infinite;
}
@keyframes hbBadge {
    0%, 100% { transform: translate(-50%, -50%) rotate(-2deg) scale(1); }
    50%      { transform: translate(-50%, -50%) rotate(-2deg) scale(1.08); }
}
.hb-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blush);
    border: 1.5px solid rgba(224, 174, 37, .5);
}
.hb-icon svg {
    width: 32px; height: 32px;
    fill: none;
    stroke: var(--gold-deep);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hb-box h3 { font-size: clamp(1.25rem, 4vw, 1.6rem); margin-bottom: 12px; }
.hb-box p { color: var(--ink-soft); max-width: 540px; margin: 0 auto; }
.hb-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(224, 174, 37, .5);
    font-size: .93rem;
}
.hb-camping {
    margin-top: 18px !important;
    padding: 14px 18px;
    background: rgba(184, 208, 176, .28);
    border: 1px dashed var(--sage);
    border-radius: 14px;
    color: var(--sage-dark) !important;
    font-size: .95rem;
}

/* ═══════════════════════════════════════════════════════════════
   7. FOOTER · TOAST · CONFETTIS
   ═══════════════════════════════════════════════════════════════ */
footer {
    background: linear-gradient(180deg, #56624b, #48533f);
    text-align: center;
    padding: 64px 20px 56px;
    margin-top: 20px;
}
.footer-names { font-size: clamp(2rem, 7vw, 2.7rem); color: var(--gold-soft); }
.footer-date {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 14px;
    color: rgba(253, 241, 236, .85);
    letter-spacing: .18em;
    margin-top: 8px;
    font-size: .92rem;
}
/* date et lieux insécables : sur petit écran, chacun passe à la ligne
   d'un seul bloc, centré, au lieu de se couper au milieu */
.footer-jour, .footer-lieux { white-space: nowrap; }

#toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translate(-50%, 90px);
    z-index: 950;
    background: var(--ink);
    color: var(--cream);
    padding: 13px 26px;
    border-radius: 999px;
    font-size: .96rem;
    box-shadow: var(--shadow-2);
    opacity: 0;
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .4s;
    max-width: min(92vw, 480px);
    text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#toast.err { background: #b3453a; }

#confetti {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900;
}

/* ═══════════════════════════════════════════════════════════════
   8. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
/* tablette / grand mobile paysage : 2 colonnes plutôt qu'une longue colonne */
@media (min-width: 640px) and (max-width: 1024px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .maps  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    #navLinks, .nav-cta { display: none; }
    #burger { display: flex; }
    #navbar.menu-open #navLinks {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(253, 241, 236, .98);
        border-bottom: 1px solid rgba(224, 174, 37, .3);
        padding: 18px 28px 22px;
        gap: 16px;
        box-shadow: var(--shadow-1);
        animation: menuDown .35s cubic-bezier(.2,.7,.2,1);
    }
    /* zone tactile ≥ 44px pour les liens du menu déroulant */
    #navbar.menu-open #navLinks a { padding: 10px 2px; }
    #navbar.menu-open .nav-cta-mobile {
        display: block;
        margin-top: 6px;
        color: #fff;
    }
    #navbar.menu-open .nav-cta-mobile::after { display: none; }
    @keyframes menuDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 720px) {
    .d-desktop { display: none; }
    .section { padding: 74px 16px; }

    /* voile renforcé : garantit le contraste du titre clair sur la photo */
    .hero-veil {
        background:
            linear-gradient(180deg, rgba(253,241,236,.86) 0%, rgba(253,241,236,.16) 30%, rgba(56,46,38,.46) 62%, rgba(45,37,30,.85) 100%);
    }

    /* timeline en colonne */
    .tl-line { left: 16px; }
    .tl-item, .tl-item.tl-right {
        width: 100%;
        margin-left: 0;
        padding: 14px 0 14px 46px;
        text-align: left;
    }
    .tl-item .tl-dot, .tl-item.tl-right .tl-dot { left: 8px; right: auto; }
    .tl-card { max-width: none; }

    .rsvp-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rsvp-box { padding: 48px 20px 34px; }
    /* zones tactiles ≥ 44px */
    .choice { font-size: .84rem; padding: 10px 14px; min-height: 44px; }
    .btn-small { padding: 11px 20px; min-height: 44px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .cd-box { min-width: 66px; }
    .cd-sep { display: none; }
    .fp-actions { gap: 10px; }
    .fp-actions .btn { font-size: .92rem; padding: 11px 20px; }

    .footer-date { letter-spacing: .12em; font-size: .88rem; }

    .hb-box { padding: 50px 20px 32px; }
    .hb-badge { font-size: .72rem; padding: 7px 16px; }

    /* faire-part mobile : une seule carte, un toucher la retourne (recto ↔ verso) */
    .fp-spread {
        display: block;
        width: min(78vw, calc(60vh * 900 / 1268));
        aspect-ratio: 900 / 1268;
        transform-style: preserve-3d;
        cursor: pointer;
    }
    .fp-page {
        position: absolute;
        inset: 0;
        width: 100%;
        border-radius: 12px;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    /* le pli central du dépliant desktop n'a pas de sens ici */
    .fp-verso::before, .fp-recto::after { display: none; }
    /* mêmes sélecteurs que les règles desktop (.fp-stage.in .fp-verso…)
       pour gagner la cascade : ce bloc arrive après dans le fichier */
    /* transform-origin recentré : le desktop pivote sur le bord gauche
       (charnière du dépliant), ici la carte doit tourner sur elle-même */
    .fp-verso,
    .fp-stage.in .fp-verso { transform-origin: center center; transform: rotateY(180deg); transition: none; }
    .fp-stage.in .fp-spread.flipped { transform: scale(1) translateY(0) rotateY(180deg); }
    .fp-tap-hint { display: block; }
}

/* très petits mobiles : compte à rebours en 2×2, marges resserrées */
@media (max-width: 360px) {
    .countdown { gap: 8px; }
    .cd-box { min-width: 0; flex: 1 1 calc(50% - 8px); }
    .section { padding: 64px 14px; }
    .btn-big { font-size: 1rem; padding: 14px 26px; }
}

/* ── accessibilité : réduction des animations ── */
@media (prefers-reduced-motion: reduce) {
    .envelope, .envelope::after, .ouv-hint, .scroll-cue span { animation: none !important; }
    .hb-box, .hb-badge { animation: none !important; }
    html { scroll-behavior: auto; }
    * { transition-duration: .01s !important; }
}
/* desktop uniquement : dépliant affiché directement ouvert (le transform:none
   casserait le mécanisme recto/verso de la carte retournable mobile) */
@media (prefers-reduced-motion: reduce) and (min-width: 721px) {
    .fp-verso { transform: none !important; transition: none !important; }
}
