/* =========================================================================
   Julia & Jérémy — 23.10.2027 — Château de Pontarmé
   Feuille de style unique : chic, élégant, dentelle & cachet de cire.
   ========================================================================= */

:root {
    /* Couleurs */
    --ivoire:        #FFFCF6;
    --blanc-casse:   #F7F3EC;
    --champagne:     #EADFCB;
    --champagne-pale:#F2EADC;
    --nude:          #D8C4B2;
    --or:            #B08D57;
    --or-clair:      #C9AE7C;
    --or-pale:       #E3D4B6;
    --anthracite:    #2F2E2B;
    --anthracite-doux:#5F5A51;

    /* Typographie */
    --serif:  'Cormorant Garamond', 'EB Garamond', Garamond, 'Times New Roman', serif;
    --script: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive;

    /* Mesures */
    --header-h: 74px;
    --maxw: 1140px;
    --radius: 2px;
    --shadow-soft: 0 18px 50px -30px rgba(67, 55, 37, .55);
    --shadow-card: 0 24px 60px -34px rgba(67, 55, 37, .6);

    /* Dentelle (motif SVG répété horizontalement) */
    --lace: url("/assets/medias/dentelle-bande.svg");
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--ivoire);
    background-image:
        radial-gradient(1100px 620px at 12% -8%, #FFFFFF 0%, rgba(255,255,255,0) 60%),
        radial-gradient(900px 560px at 108% 12%, var(--champagne-pale) 0%, rgba(255,255,255,0) 62%),
        radial-gradient(1000px 700px at 50% 110%, var(--blanc-casse) 0%, rgba(255,255,255,0) 60%);
    color: var(--anthracite);
    font-family: var(--serif);
    font-size: clamp(17px, .55vw + 15.4px, 19px);
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: .008em;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.18; }

.script { font-family: var(--script); font-weight: 400; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--anthracite); color: var(--ivoire); padding: .6rem 1rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

:focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 3px;
}

/* -------------------------------------------------------------------------
   Éléments décoratifs
   ------------------------------------------------------------------------- */
.kicker {
    margin: 0 0 .9rem;
    font-size: clamp(.68rem, .35vw + .58rem, .78rem);
    text-transform: uppercase;
    letter-spacing: .38em;
    color: var(--or);
    font-weight: 500;
}

.rule {
    display: flex; align-items: center; justify-content: center; gap: .8rem;
    color: var(--or); font-size: .85rem; margin: 1.5rem auto;
    max-width: 320px;
}
.rule span {
    height: 1px; flex: 1;
    background: linear-gradient(90deg, transparent, var(--or-clair), transparent);
}

.lace-band {
    height: 26px;
    background-image: var(--lace);
    background-repeat: repeat-x;
    background-size: auto 26px;
    opacity: .75;
}

/* -------------------------------------------------------------------------
   En-tête
   ------------------------------------------------------------------------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: rgba(255, 252, 246, .72);
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    transition: background .4s ease, box-shadow .4s ease;
}
.site-header.is-scrolled {
    background: rgba(255, 252, 246, .95);
    box-shadow: 0 10px 40px -28px rgba(67, 55, 37, .8);
}
.site-header__inner {
    max-width: var(--maxw); margin: 0 auto; height: var(--header-h);
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-header__lace {
    height: 14px;
    background-image: var(--lace);
    background-repeat: repeat-x;
    background-size: auto 14px;
    opacity: .5;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__monogram {
    font-family: var(--script);
    font-size: 1.55rem; line-height: 1; color: var(--or);
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--or-pale); border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #FFFDF7, var(--champagne-pale));
    letter-spacing: -.04em; padding-left: .08em;
}
.brand__names {
    font-size: .95rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--anthracite-doux);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__link {
    text-decoration: none; font-size: .95rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--anthracite-doux);
    padding: .35rem 0; position: relative; transition: color .3s ease;
}
.nav__link::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
    background: var(--or); transition: right .35s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--anthracite); }
.nav__link:hover::after, .nav__link.is-active::after { right: 0; }

.nav__link--cta {
    border: 1px solid var(--or-pale); padding: .5rem 1.1rem; color: var(--or);
    background: rgba(234, 223, 203, .28);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--champagne); color: var(--anthracite); }

.lang { display: flex; align-items: center; gap: .1rem; margin-left: .4rem; }
.lang__btn {
    background: none; border: 0; cursor: pointer; font: inherit;
    font-size: .8rem; letter-spacing: .18em; color: var(--anthracite-doux);
    padding: .3rem .45rem; transition: color .3s ease;
}
.lang__btn + .lang__btn { border-left: 1px solid var(--nude); }
.lang__btn:hover { color: var(--or); }
.lang__btn.is-active { color: var(--or); font-weight: 500; }

.burger {
    display: none; background: none; border: 0; cursor: pointer;
    width: 42px; height: 42px; padding: 10px; position: relative; z-index: 60;
}
.burger__bar {
    display: block; height: 1px; background: var(--anthracite); margin: 5px 0;
    transition: transform .35s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */
.section {
    max-width: var(--maxw); margin: 0 auto;
    padding: clamp(4.5rem, 9vw, 8rem) clamp(1.1rem, 4vw, 2.5rem);
}
.section--day, .section--stay, .section--rsvp { position: relative; }

.section__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(2.6rem, 6vw, 4.4rem); color: var(--anthracite); }
.section__outro, .section__note {
    text-align: center; color: var(--anthracite-doux); font-style: italic;
    max-width: 640px; margin: clamp(2rem, 4vw, 3rem) auto 0;
}
.section__note { font-style: normal; font-size: .95rem; }

/* -------------------------------------------------------------------------
   Héro
   ------------------------------------------------------------------------- */
.hero {
    min-height: 100svh; display: grid; align-items: center;
    padding-top: calc(var(--header-h) + 3rem); position: relative; text-align: center;
}
.hero__inner { position: relative; z-index: 2; }

.hero__lace {
    position: absolute; width: clamp(150px, 26vw, 330px); aspect-ratio: 1;
    background: url("/assets/medias/dentelle-coin.svg") no-repeat center / contain;
    opacity: .55; pointer-events: none; z-index: 1;
}
.hero__lace--tl { top: calc(var(--header-h) - 10px); left: -2%; }
.hero__lace--br { bottom: -2%; right: -2%; transform: rotate(180deg); }

.seal { width: clamp(96px, 12vw, 130px); margin: 0 auto 1.6rem; }
.seal svg { width: 100%; height: auto; overflow: visible; }
.seal__initials {
    font-family: var(--script); font-size: 46px; fill: #8E7448;
    letter-spacing: .02em;
}

.hero__names {
    font-family: var(--script);
    font-size: clamp(3.4rem, 12vw, 8rem);
    line-height: .95; color: var(--anthracite);
    display: flex; flex-direction: column; align-items: center; gap: .1em;
    margin: .2em 0 .25em;
}
.hero__amp {
    font-family: var(--serif); font-style: italic; font-size: .34em;
    color: var(--or); line-height: 1; margin: .12em 0;
}

.hero__union {
    margin: 0; text-transform: uppercase; letter-spacing: .42em;
    font-size: clamp(.8rem, .5vw + .68rem, 1rem); color: var(--anthracite-doux);
    padding-left: .42em;
}
.hero__date {
    margin: 0; font-size: clamp(1.15rem, 1.4vw + .8rem, 1.7rem);
    letter-spacing: .12em; text-transform: uppercase;
}
.hero__place { margin: .4rem 0 0; color: var(--anthracite-doux); font-style: italic; }
.hero__invite {
    max-width: 30rem; margin: 2rem auto 1.6rem; color: var(--anthracite-doux);
    font-style: italic;
}

.hero__scroll {
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    width: fit-content; margin-left: auto; margin-right: auto;
    margin-top: clamp(2rem, 5vw, 3.5rem); text-decoration: none;
    font-size: .7rem; letter-spacing: .34em; text-transform: uppercase;
    color: var(--anthracite-doux);
}
.hero__scroll-line {
    width: 1px; height: 46px;
    background: linear-gradient(180deg, var(--or), transparent);
    animation: scrollCue 2.6s ease-in-out infinite;
}
@keyframes scrollCue { 0%,100% { transform: scaleY(.45); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* Décompte */
.countdown { margin: clamp(2.2rem, 5vw, 3.4rem) auto 0; max-width: 620px; }
.countdown__title {
    margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .34em;
    font-size: .72rem; color: var(--or);
}
.countdown__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--or-pale); border-bottom: 1px solid var(--or-pale);
    padding: 1.2rem 0; background: rgba(255, 253, 248, .5);
}
.countdown__cell { display: grid; gap: .3rem; position: relative; }
.countdown__cell + .countdown__cell::before {
    content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
    background: linear-gradient(180deg, transparent, var(--or-pale), transparent);
}
.countdown__value {
    font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1;
    font-variant-numeric: tabular-nums; color: var(--anthracite);
}
.countdown__label {
    font-size: .64rem; text-transform: uppercase; letter-spacing: .2em;
    color: var(--anthracite-doux);
}
.countdown__done {
    margin: 1.2rem 0 0; font-family: var(--script);
    font-size: 2rem; color: var(--or);
}

/* -------------------------------------------------------------------------
   Boutons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font: inherit; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase;
    padding: .95rem 2.1rem; border-radius: var(--radius); text-decoration: none;
    cursor: pointer; transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
    border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; stroke-width: 1.2; fill: none; }
.btn--primary {
    background: var(--anthracite); color: var(--ivoire); border-color: var(--anthracite);
}
.btn--primary:hover { background: var(--or); border-color: var(--or); transform: translateY(-2px); }
.btn--ghost {
    background: transparent; color: var(--anthracite); border-color: var(--nude);
}
.btn--ghost:hover { border-color: var(--or); color: var(--or); background: rgba(234, 223, 203, .25); }
.btn--link {
    background: none; border: 0; color: var(--or); padding: .95rem .4rem; letter-spacing: .2em;
}
.btn--link:hover { color: var(--anthracite); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link {
    display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem;
    color: var(--or); text-decoration: none; font-size: .78rem;
    letter-spacing: .2em; text-transform: uppercase;
}
.link svg { width: 18px; height: 18px; transition: transform .35s ease; }
.link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------------------
   Déroulement de la journée (timeline)
   ------------------------------------------------------------------------- */
.timeline { position: relative; }
.timeline__spine {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    transform: translateX(-50%); background: var(--champagne);
}
.timeline__spine-fill {
    position: absolute; inset: 0 0 auto 0; width: 100%; height: 0;
    background: linear-gradient(180deg, var(--or-clair), var(--or));
    transition: height .25s linear;
}

.timeline__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); }
.timeline__item {
    display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center;
}
.timeline__item:nth-child(odd) .timeline__card  { grid-column: 1; text-align: right; }
.timeline__item:nth-child(even) .timeline__card { grid-column: 3; text-align: left; }

.timeline__dot {
    grid-column: 2; justify-self: center; width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center; color: var(--or);
    background: radial-gradient(circle at 35% 30%, #FFFDF7, var(--champagne-pale));
    border: 1px solid var(--or-pale);
    box-shadow: 0 0 0 7px var(--ivoire), var(--shadow-soft);
    transition: transform .5s cubic-bezier(.22,.8,.3,1), border-color .5s ease;
}
.timeline__dot svg { width: 24px; height: 24px; }
.timeline__item.is-visible .timeline__dot { transform: scale(1.06); border-color: var(--or); }

.timeline__card {
    background: rgba(255, 253, 248, .74);
    border: 1px solid var(--champagne);
    padding: clamp(1.4rem, 2.4vw, 2rem);
    box-shadow: var(--shadow-soft);
    position: relative;
}
.timeline__card::after {
    content: ''; position: absolute; inset: 6px; border: 1px solid rgba(201, 174, 124, .28);
    pointer-events: none;
}
.timeline__time {
    margin: 0 0 .5rem; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--or);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.timeline__title {
    font-size: clamp(1.3rem, 2vw, 1.75rem); text-transform: uppercase;
    letter-spacing: .14em; margin-bottom: .45rem;
}
.timeline__place { margin: 0; font-size: 1.1rem; }
.timeline__address { margin: .1rem 0 .7rem; color: var(--anthracite-doux); font-size: .9rem; letter-spacing: .06em; }
.timeline__text { margin: 0; color: var(--anthracite-doux); font-style: italic; }

/* -------------------------------------------------------------------------
   Hébergements
   ------------------------------------------------------------------------- */
.cards {
    display: grid; gap: clamp(1.4rem, 3vw, 2.2rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
}
.card {
    display: flex; flex-direction: column; overflow: hidden;
    background: rgba(255, 253, 248, .9); border: 1px solid var(--champagne);
    box-shadow: var(--shadow-soft);
    transition: transform .45s cubic-bezier(.22,.8,.3,1), box-shadow .45s ease, border-color .45s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--or-pale); }

.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--champagne-pale); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,.8,.3,1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
    position: absolute; left: 0; bottom: 0;
    background: rgba(255, 252, 246, .92); color: var(--or);
    font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
    padding: .5rem .9rem; border-top: 1px solid var(--or-pale); border-right: 1px solid var(--or-pale);
}

.card__body { padding: clamp(1.1rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__title { font-size: 1.4rem; letter-spacing: .02em; }
.card__address, .card__phone {
    display: flex; align-items: flex-start; gap: .55rem; margin: 0;
    font-size: .93rem; color: var(--anthracite-doux);
}
.card__address svg, .card__phone svg { width: 17px; height: 17px; flex: none; margin-top: .28em; color: var(--or); fill: none; }
.card__phone a { text-decoration: none; }
.card__phone a:hover { color: var(--or); }
.card__actions {
    margin-top: auto; padding-top: 1rem; display: flex; align-items: center;
    gap: .4rem; flex-wrap: wrap; border-top: 1px solid var(--champagne);
}
.card__actions .btn { padding: .7rem 1.3rem; font-size: .72rem; }

/* -------------------------------------------------------------------------
   Formulaire RSVP
   ------------------------------------------------------------------------- */
.paper {
    max-width: 760px; margin: 0 auto; position: relative;
    background: rgba(255, 253, 248, .92);
    border: 1px solid var(--champagne);
    padding: clamp(1.6rem, 4vw, 3.2rem);
    box-shadow: var(--shadow-card);
}
.paper::before, .paper::after {
    content: ''; position: absolute; left: 0; right: 0; height: 13px;
    background-image: var(--lace); background-repeat: repeat-x; background-size: auto 13px;
    opacity: .6;
}
.paper::before { top: 0; }
.paper::after { bottom: 0; transform: scaleY(-1); }

.form { display: grid; gap: 1.6rem; }
.form__intro { margin: .6rem 0 0; text-align: center; color: var(--anthracite-doux); font-style: italic; }

.guest {
    border: 1px solid var(--champagne); border-radius: var(--radius);
    padding: 1.2rem clamp(1rem, 2.5vw, 1.6rem) 1.4rem; margin: 0;
    background: rgba(255, 255, 255, .5);
    animation: guestIn .45s cubic-bezier(.22,.8,.3,1) both;
}
.guest + .guest { margin-top: 1.1rem; }
@keyframes guestIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.guest__legend {
    display: flex; align-items: center; gap: 1rem; width: 100%;
    padding: 0 .5rem; margin-left: -.5rem;
}
.guest__number {
    font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--or);
}
.guest__remove {
    margin-left: auto; background: none; border: 0; cursor: pointer; font: inherit;
    display: inline-flex; align-items: center; gap: .3rem; color: var(--anthracite-doux);
    font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
    opacity: .7; transition: color .3s ease, opacity .3s ease;
}
.guest__remove svg { width: 14px; height: 14px; fill: none; }
.guest__remove:hover { color: #9c5b4f; opacity: 1; }
#guests .guest:first-child .guest__remove { display: none; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field--full { grid-column: 1 / -1; }

.field label, .field__label {
    font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
    color: var(--anthracite-doux);
}
.field input {
    font: inherit; font-size: 1.02rem; color: var(--anthracite);
    background: transparent; border: 0; border-bottom: 1px solid var(--nude);
    padding: .5rem .2rem; border-radius: 0;
    transition: border-color .3s ease, background .3s ease;
}
.field input::placeholder { color: #B7AE9F; font-style: italic; font-size: .92rem; }
.field input:focus {
    outline: none; border-bottom-color: var(--or);
    background: linear-gradient(180deg, transparent 70%, rgba(234, 223, 203, .35));
}
.field input[aria-invalid="true"] { border-bottom-color: #B4695B; }

.field--switch { flex-direction: row; align-items: center; gap: .9rem; display: flex; }
.field--age { grid-column: 1 / -1; }  /* la précision tient alors sur une ligne */
.field--age input { max-width: 8rem; }
.field__hint { margin: .35rem 0 0; font-size: .82rem; font-style: italic; color: var(--anthracite-doux); }

/* Coiffure & maquillage */
.beauty {
    border: 1px solid var(--champagne); background: rgba(234, 223, 203, .2);
    padding: 1rem 1.1rem; display: grid; gap: .8rem;
}
.beauty__title {
    margin: 0; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--or);
}
.beauty__options { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.beauty__hint {
    margin: 0; font-size: .92rem; color: var(--anthracite-doux);
    display: flex; align-items: flex-start; gap: .5rem;
    padding-top: .7rem; border-top: 1px solid var(--champagne);
}
.beauty__hint::before {
    content: '\23F1'; /* chronomètre */
    color: var(--or); font-size: .95rem; line-height: 1.5; flex: none;
}
.switch--line { gap: .7rem; }
.switch__text { font-size: 1rem; color: var(--anthracite); }

/* Champs numériques : on masque les flèches natives des navigateurs. */
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* Identité imposée par l'invitation */
.guest--you { background: rgba(234, 223, 203, .22); }
.guest__identity {
    margin: .2rem 0 1rem; font-style: italic; color: var(--anthracite-doux); font-size: .95rem;
}
.field input[readonly] {
    color: var(--anthracite-doux); border-bottom-style: dotted; cursor: default;
}
.field input[readonly]:focus { background: none; border-bottom-color: var(--nude); }

/* Liste déroulante « qui vous accompagne ? » — sans JavaScript, on garde le
   contrôle natif ; le JS le remplace par le menu dessiné ci-dessous. */
.field select {
    font: inherit; font-size: 1.02rem; color: var(--anthracite);
    background: transparent; border: 0; border-bottom: 1px solid var(--nude);
    padding: .5rem .2rem; border-radius: 0;
}
.field select:focus { outline: none; border-bottom-color: var(--or); }

/* Menu déroulant dessiné */
.picker { position: relative; }
.picker__button {
    width: 100%; font: inherit; font-size: 1.02rem; text-align: left; color: var(--anthracite);
    background: transparent; border: 0; border-bottom: 1px solid var(--nude);
    padding: .55rem .2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    transition: border-color .3s ease, background .3s ease;
}
.picker__button[data-empty="true"] { color: #B7AE9F; font-style: italic; font-size: .95rem; }
.picker__button:hover { border-bottom-color: var(--or-clair); }
.picker__button:focus-visible { outline: none; border-bottom-color: var(--or); }
.picker.is-open .picker__button {
    border-bottom-color: var(--or);
    background: linear-gradient(180deg, transparent 70%, rgba(234, 223, 203, .35));
}

.picker__chevron {
    width: 8px; height: 8px; flex: none; margin-bottom: 3px;
    border-right: 1px solid var(--or); border-bottom: 1px solid var(--or);
    transform: rotate(45deg); transition: transform .35s cubic-bezier(.22,.8,.3,1);
}
.picker.is-open .picker__chevron { transform: rotate(-135deg) translate(-3px, -3px); }

.picker__list {
    position: absolute; z-index: 30; left: -.5rem; right: -.5rem; top: calc(100% + .55rem);
    margin: 0; padding: .35rem; list-style: none;
    background: var(--ivoire); border: 1px solid var(--champagne);
    box-shadow: var(--shadow-card);
    max-height: 15rem; overflow-y: auto;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .28s ease, transform .28s cubic-bezier(.22,.8,.3,1);
}
.picker__list::before {
    content: ''; position: absolute; inset: 4px; border: 1px solid rgba(201, 174, 124, .25);
    pointer-events: none;
}
.picker.is-open .picker__list { opacity: 1; transform: none; pointer-events: auto; }

.picker__option {
    position: relative; padding: .62rem .85rem; cursor: pointer; font-size: 1rem;
    color: var(--anthracite-doux); display: flex; align-items: center; gap: .6rem;
    transition: background .2s ease, color .2s ease;
}
.picker__option:hover, .picker__option.is-active { background: var(--champagne-pale); color: var(--anthracite); }
.picker__option[aria-selected="true"] { color: var(--or); }
.picker__option[aria-selected="true"]::after {
    content: '\2713'; margin-left: auto; font-size: .85rem; color: var(--or);
}
.picker__option--empty { font-style: italic; color: #B7AE9F; font-size: .95rem; }
.picker__option--empty[aria-selected="true"]::after { content: none; } /* pas de coche sur l'invite de choix */

/* Accès réservé aux invités (pas de jeton valide) */
.gate { text-align: center; display: grid; gap: .7rem; justify-items: center; }
.gate__seal { width: 64px; }
.gate__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.gate__text { margin: 0; max-width: 34rem; color: var(--anthracite-doux); }
.gate__help { margin: 0; max-width: 34rem; color: var(--anthracite-doux); font-style: italic; font-size: .94rem; }
.gate .btn { margin-top: .6rem; }

/* Interrupteur « Enfant ? » */
.switch { display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
    width: 52px; height: 27px; border-radius: 999px; padding: 3px;
    background: var(--champagne); border: 1px solid var(--nude);
    display: inline-flex; align-items: center;
    transition: background .35s ease, border-color .35s ease;
}
.switch__thumb {
    width: 19px; height: 19px; border-radius: 50%;
    background: var(--ivoire); box-shadow: 0 2px 6px rgba(67, 55, 37, .3);
    transition: transform .35s cubic-bezier(.22,.8,.3,1);
}
.switch input:checked + .switch__track { background: var(--or); border-color: var(--or); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(25px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--or); outline-offset: 3px; }

.btn--add { justify-self: center; font-size: .72rem; padding: .8rem 1.6rem; }
.btn--submit { justify-self: center; min-width: 16rem; }

.form__error {
    margin: 0; text-align: center; color: #9C4A3C; font-size: .95rem;
    background: rgba(180, 105, 91, .09); border: 1px solid rgba(180, 105, 91, .28);
    padding: .7rem 1rem;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Récapitulatif */
.summary { text-align: center; display: grid; gap: .8rem; }
.summary__seal { width: 64px; margin: 0 auto .4rem; }
.summary__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.summary__thanks { margin: 0 auto; max-width: 34rem; color: var(--anthracite-doux); font-style: italic; }
.summary__meta, .summary__count {
    margin: 0; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--or);
}
.summary__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .8rem; text-align: left; }
.summary__guest {
    border: 1px solid var(--champagne); background: rgba(255, 255, 255, .6);
    padding: 1rem 1.2rem; display: grid; gap: .3rem;
}
.summary__name { margin: 0; font-size: 1.25rem; }
.summary__tags { margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.tag {
    font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
    border: 1px solid var(--or-pale); color: var(--or); padding: .25rem .6rem;
    background: rgba(234, 223, 203, .3);
}
.tag--child { background: var(--champagne); color: var(--anthracite); }
.tag--beauty { background: rgba(176, 141, 87, .12); border-color: var(--or); }
.summary__allergens { margin: 0; color: var(--anthracite-doux); font-size: .95rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.summary__label { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--anthracite-doux); align-self: center; }
.summary__contact { margin: 1rem 0 .4rem; font-size: .92rem; color: var(--anthracite-doux); font-style: italic; }
.summary .btn { justify-self: center; }

/* -------------------------------------------------------------------------
   Pied de page
   ------------------------------------------------------------------------- */
.footer { margin-top: clamp(3rem, 7vw, 6rem); background: var(--blanc-casse); }
.footer__lace {
    height: 18px; background-image: var(--lace); background-repeat: repeat-x;
    background-size: auto 18px; opacity: .6; transform: scaleY(-1);
}
.footer__inner { text-align: center; padding: clamp(2.5rem, 5vw, 4rem) 1.2rem; display: grid; gap: .35rem; }
.footer__names { margin: 0; font-family: var(--script); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--anthracite); }
.footer__date { margin: 0; letter-spacing: .34em; font-size: .84rem; color: var(--or); }
.footer__place { margin: 0; color: var(--anthracite-doux); font-size: .92rem; }
.footer__made { margin: 1rem 0 0; font-style: italic; color: var(--anthracite-doux); font-size: .88rem; }

/* -------------------------------------------------------------------------
   Apparition au défilement
   ------------------------------------------------------------------------- */
.reveal {
    opacity: 0; transform: translateY(26px);
    transition: opacity .9s cubic-bezier(.22,.8,.3,1), transform .9s cubic-bezier(.22,.8,.3,1);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.timeline__item:nth-child(odd).reveal:not(.is-visible)  { transform: translate(-28px, 26px); }
.timeline__item:nth-child(even).reveal:not(.is-visible) { transform: translate(28px, 26px); }
body.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .timeline__spine { left: 27px; }
    .timeline__item { grid-template-columns: 54px 1fr; gap: 1.2rem; align-items: start; }
    .timeline__item:nth-child(odd) .timeline__card,
    .timeline__item:nth-child(even) .timeline__card { grid-column: 2; text-align: left; }
    .timeline__dot { grid-column: 1; grid-row: 1; box-shadow: 0 0 0 6px var(--ivoire), var(--shadow-soft); }
    .timeline__item:nth-child(odd).reveal:not(.is-visible),
    .timeline__item:nth-child(even).reveal:not(.is-visible) { transform: translateY(26px); }
}

@media (max-width: 780px) {
    .burger { display: block; }
    .brand__names { display: none; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
        background: var(--ivoire); border-left: 1px solid var(--champagne);
        flex-direction: column; align-items: flex-start; justify-content: center;
        gap: 1.6rem; padding: 2rem clamp(1.5rem, 6vw, 2.5rem);
        transform: translateX(100%); transition: transform .45s cubic-bezier(.22,.8,.3,1);
        box-shadow: -30px 0 60px -40px rgba(67, 55, 37, .9);
    }
    .nav.is-open { transform: none; }
    .nav__link { font-size: 1.05rem; }
    .nav__link--cta { width: 100%; }
    .lang { margin: 1rem 0 0; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 620px) {
    .countdown__grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 0; }
    .countdown__cell:nth-child(3)::before { display: none; }
    .grid { grid-template-columns: 1fr; }
    .hero__lace { opacity: .35; }
    .card__actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* -------------------------------------------------------------------------
   Impression (récapitulatif)
   ------------------------------------------------------------------------- */
@media print {
    .site-header, .footer, .hero, .section--day, .section--stay, .hero__lace, .btn { display: none !important; }
    body { background: #fff; }
    .paper, .summary__guest { box-shadow: none; border-color: #ddd; }
    .section { padding: 0; }
}
