/* ===== Thème (modifie ici) ===== */
@font-face {
    font-family: "Brolimo";
    src: url("./fonts/brolimo/Brolimo-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Brolimo";
    src: url("./fonts/brolimo/Brolimo-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Brolimo";
    src: url("./fonts/brolimo/Brolimo-Bold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Wellyon";
    src: url("./fonts/Wellyon/Wellyon-Regular.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}


:root {
    --rose: #e9a7b1;
    /* bandeau héros */
    --rose-soft: #f7d9df;
    /* gouttières latérales */
    --crème: #fffaf6;
    /* fond feuille */
    --encre: #2b2929;
    /* texte principal */
    --gris: #2b2929;
    /* texte secondaire */
    --ligne: #e9e3dc;
    /* bordures douces */
    --olive: #d9dcc3;
    /* bandeau RSVP */
    --accent: #e19aa7;
    /* bouton & accents */
    --olive-dark: #a7a155;
    /* tag */

    --container: 900px;
    --radius: 16px;

    --font-display: "Brolimo", Georgia, serif;
    --font-text: "Belleza", sans-serif;
    --font-tag: "Wellyon", cursive;
    --font-sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ===== Base ===== */
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: #fff;
    color: var(--encre);
    font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font: 16px/1.6 Belleza, sans-serif
}

.title,
.display,
.names,
h1,
h2 {
    font-family: var(--font-display);
    font-variant-ligatures: common-ligatures contextual;
    /* liga + calt */
    font-variant-numeric: lining-nums proportional-nums;
    /* lnum + pnum */
}

ul {
    margin: 0;
    padding: 0;
}


li {
    list-style: none;
    margin: 0;
    padding: 0;
}


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

.smallcaps {
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .78rem;
    opacity: .9
}

.tag {
    align-self: center;
    font-family: "Wellyon", cursive;
    font-weight: 100;
    font-style: normal;
    color: var(--olive-dark);
    font-size: 2rem;
    text-align: right;
    margin-top: .4rem;
}

.center {
    text-align: center
}

.container-narrow {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    max-width: 720px;
    height: 100%;
    margin: 0 auto;
    padding: 40px 20px
}

link {
    cursor: pointer;
}

button {
    background-color: var(--rose-soft);
    border: 1px solid white;
    border-radius: 5px;
    padding: 5px;
    color: #d66274;
    font-family: var(--font-text);
}

/* utilitaire pour toucher les bords internes de .sheet */
.bleed-x {
    /* on annule le padding horizontal du parent en tirant la section vers l'extérieur */
    margin-inline: calc(-1 * var(--pad-x));
    /* on rétablit du padding intérieur identique */
    padding-inline: var(--pad-x);
    border-radius: 0;
    /* option: angles carrés jusqu'au bord */
    border-left: 0;
    /* option: pas de trait aux bords      */
    border-right: 0;
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity .6s ease,
        transform .6s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
    transition-delay: var(--delay, 0ms);
}
.reveal-slow{
    transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.22, .61, .36, 1);
    transition-delay: 3ms;
}
.reveal.is-in {
    opacity: 1;
    transform: none;
}

.reveal-up {
    transform: translateY(22px);
}

.reveal-left {
    transform: translateX(24px);
}

.reveal-right {
    transform: translateX(-24px);
}

.reveal-zoom {
    transform: scale(.96);
}

.reveal-zoom.is-in {
    transform: scale(1);
}

.reveal-wipe {
    clip-path: inset(0 50% 0 50%);
    transition: clip-path .7s ease, opacity .6s ease;
}

.reveal-wipe.is-in {
    clip-path: inset(0 0 0 0);
}

/* ===== Keyframes ===== */

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translate(-50%, 0)
    }

    80% {
        opacity: 0;
        transform: translate(-50%, 22px)
    }

    100% {
        opacity: 0
    }
}


/* ===== Hero ===== */
.hero-rose {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--rose);
    color: #fff;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    z-index: 1001;
}

.hero-rose .sticker {
    color: #fff;
    opacity: .9
}

.names {
    font-weight: 300;
    letter-spacing: .06em;
    font-size: clamp(32px, 7vw, 64px);
    line-height: 1.07;
    margin: .6rem 0;
    font-feature-settings: "dlig" 1;
}

.date {
    letter-spacing: .12em;
    text-transform: uppercase
}

.hero-rose .flower {
    position: absolute;
    left: 0;
    bottom: 60px;
    width: min(220px, 60vw);
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .15));
    opacity: .95
}

.chevrons span {
    width: 14px;
    height: 14px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg)
}

.scroll-indicator {
    margin-top: 28px;
    width: 38px;
    height: 58px;
    border: 2px solid #fff;
    border-radius: 30px;
    background: transparent;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    margin: 28px 0 10px;
}

.scroll-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: scroll 1.6s infinite;
}

/* ===== Mise en page feuille + gouttières ===== */
.page {
    display: grid;
    grid-template-columns: 1fr minmax(0, var(--container)) 1fr;
    gap: 0;
    background: var(--rose-soft);
    border-top: 14px solid var(--rose-soft)
}

.gutter {
    background: var(--rose-soft)
}

.sheet {
    background: var(--crème);
    --pad-x: min(5vw, 44px);
    /* padding horizontal */
    --pad-y: min(8vw, 56px);
    /* padding vertical   */
    padding: var(--pad-y) var(--pad-x);
}

/* ===== Monogramme rond ===== */
.monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    --size: 66px;
    width: var(--size);
    height: var(--size);
    border: 1px solid #c9c9c9;
    border-radius: 999px;
    margin: 8px auto 24px;
    font-family: var(--font-display);
    font-feature-settings: "salt" 1;
}

.monogram span {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.1;
}

.monogram.small {
    --size: 54px
}

/* ===== Titres & textes ===== */
.intro {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.title {
    align-self: center;
    font-weight: 400;
    letter-spacing: .06em;
    font-size: 2.625rem;
    line-height: 1.1;
    margin: 0 0 .6rem;
    margin-top: 40px;
    margin-bottom: 40px;
}

.lead {
    color: var(--gris);
    max-width: 60ch;
    margin: .4rem auto 1.2rem;
    text-align: center;
    margin-bottom: 0;
}

.intro {
    .tag {
        margin-bottom: 40px;
    }

    .tag-amour {
        margin-bottom: 80px;
    }

    .tag-pq {
        margin-bottom: 80px;
    }
}

.big {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-top: 80px;
    line-height: 1.4;
}

.mini {
    color: var(--gris);
    text-align: center;
    margin-bottom: 0;
}

.script {
    font-family: "Great Vibes", cursive;
    color: #b48f4e;
    font-size: 1.4rem;
    text-align: right;
    margin-top: .4rem
}

.quote {
    color: #333;
    max-width: 60ch;
    margin: 16px auto;
    text-align: start;
}

/* ===== Media encadrés ===== */
.frame {
    display: flex;
    flex-direction: column;
    position: relative;
    left: 12px;
    border: 1px solid var(--crème);
    overflow: hidden;
    box-shadow: 0px -5px 14px -1px rgba(0, 0, 0, .32);
    margin: 16px 0
}

.frame.small {
    max-width: 640px;
    margin: 16px auto
}

.frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Countdown ===== */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 12px;
    background-color: var(--rose-soft);
}

.cd-item {
    display: grid;
    place-items: center
}

.cd-item span {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: clamp(26px, 4.5vw, 40px)
}

.cd-item small {
    color: var(--gris)
}

/* ===== Programme / Wedding day ===== */
.day {
    display: flex;
    flex-direction: column;
}

.day {
    h2 {
        align-self: center;
        margin-top: 80px;
        margin-bottom: 0;
        text-transform: uppercase;
        font-weight: 300;
    }

    .tag-day {
        margin-top: 0;
    }

}

.day .program {
    display: grid;
    gap: 10px;
    margin: 10px 0 18px
}

.prog-item {
    padding: 10px 6px;
    border-bottom: 1px solid var(--ligne);
    text-align: center
}

.prog-item h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: .14em;
    margin: 0 0 4px
}

.map-card {
    border: 1px solid var(--ligne);
    border-radius: 12px;
    overflow: hidden;
    background: #fff
}

.map-placeholder {
    width: 100%;
    display: grid;
    place-items: center;
    color: #98a2b3;
    background: repeating-linear-gradient(45deg, #fbfbfb, #fbfbfb 10px, #f3f3f3 10px, #f3f3f3 20px)
}

/* ===== FAQ style lignes + + ===== */
.faq {
    margin: 24px 0
}

.faq h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(22px, 4.6vw, 34px);
    margin: 10px 0 12px;
    margin-top: 80px;
}

.faq ul {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.faq li {
    --size: 56px;
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    margin: 0 12px 24px 4px;
}

.faq .cc-rose {
    background-color: var(--rose);
}

.faq .cc-rose-clair {
    background-color: var(--rose-soft);
}

.faq .cc-vert {
    background-color: #adb680;
}

.faq .cc-olive {
    background-color: var(--olive);
}

.faq details {
    border-top: 1px solid var(--ligne)
}

.faq details:last-child {
    border-bottom: 1px solid var(--ligne)
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 6px;
    position: relative
}

.faq summary::marker {
    content: ""
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 14px;
    font-size: 20px;
    color: #333
}

.faq details[open] summary::after {
    content: "–"
}

.faq p {
    margin: 0 0 16px 6px;
    color: var(--gris)
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .faq-content {
        height: auto !important;
        opacity: 1 !important;
        transition: none !important;
    }
}

/* Panneau animé : mêmes durées/timings à l'ouverture ET fermeture */
.faq-content {
    overflow: hidden;
    height: 0;
    opacity: 0;
    padding: 0 6px;
    transition:
        height .36s cubic-bezier(.22, .61, .36, 1),
        opacity .30s ease;
}

.faq-content-inner {
    padding: 8px 6px 16px;
}

/* pendant la transition, on laisse le navigateur optimiser */
.faq-item.is-animating .faq-content {
    will-change: height, opacity;
}

/* quand ouvert (après animation), on fige en auto + opacité 1 */
.faq-item[open] .faq-content.is-open {
    opacity: 1;
}



/* ===== RSVP bandeau ===== */
.rsvp-band {
    background: var(--olive);
    margin: 18px 0
}

.rsvp-inner {
    padding: 24px 18px;
    text-align: center
}

.rsvp-inner h3 {
    font-family: var(--font-tag);
    font-weight: 100;
    text-transform: capitalize;
    font-size: 1.5rem;
    margin: 6px 0 10px
}

.rsvp-inner p {
    max-width: 60ch;
    margin: 0 auto 16px
}

a.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    border: none;
    box-shadow: 8px 10px 15px -1px var(--olive-dark);
    transition: all 0.3s ease-in-out;
    opacity: 1
}

.btn.btn--accent.btn-cta:hover,
.btn.btn--accent.btn-cta:focus-visible,
.btn.btn--accent.btn-cta:active {
    transform: scale(1.1);
    /* 1.1 était fort, essaye 1.04 */
    filter: brightness(1.06);
    box-shadow: 12px 14px 22px -6px var(--olive-dark);
}

/* Sur écrans avec curseur (souris) */
@media (hover: hover) and (pointer: fine) {
    .btn-cta:hover {
        transform: scale(1.04);
        filter: brightness(1.06);
    }
}

/* Sur écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .btn-cta:active {
        transform: scale(.98);
        filter: brightness(1.02);
    }

    .btn-cta:focus-visible {
        outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
        outline-offset: 2px;
    }
}

/* ===== Citations ===== */
.citations {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-style: italic;
    background-color: transparent;
    padding: 20px;
    border: 1px solid white;
    box-shadow: 8px 10px 15px -1px var(--olive);
    margin-top: 60px;
}

/* ===== Outro & Footer ===== */
.outro {
    margin-top: 100px;
    padding-top: inherit;
    background: url('asset/images/fleurs-outro.jpg') center/cover no-repeat;
}

.illus {
    box-shadow: none;
    border: none;
    align-items:flex-end;
    left: inherit;
    bottom: 48px;

    img{
        max-width: 175px;
    }
}

.site-footer {
    background-color: var(--rose-soft);
    padding: 4px;
    text-align: center;
    color: #8b8e98
}

/* ===== Modale ===== */
.modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s step-end;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .25s ease, visibility .25s step-start;
    /* visible dès le début */
}

/* pendant la fermeture, on garde visible le temps de l’anim */
.modal.is-closing {
    visibility: visible;
    pointer-events: none;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .25s ease;
}

.modal.is-open .modal__overlay {
    opacity: 1;
}

.modal__dialog {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 520px;
    width: calc(100% - 2*var(--gutter));
    margin: 8vh auto;
    padding: clamp(16px, 3vw, 24px);
    background: var(--rose);
    border: 2px solid var(--rose);
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .28s cubic-bezier(.22, .61, .36, 1), opacity .28s ease;
    margin-left: 5px;
    margin-right: 5px;
    color: var(--crème);

    h2 {
        align-self: center;
    }

    .flower {
        width: 80px;
        position: relative;
        bottom: 80px;
    }

    .monogram {
        border-color: var(--crème);
    }
}

.modal.is-open .modal__dialog {
    transform: none;
    opacity: 1;
}

.modal[aria-hidden="false"] .modal__dialog {
    transform: none;
    opacity: 1;
}

.modal__title {
    margin: 0 0 8px;
    font-family: var(--font-display);
}

.modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

#rsvp-form {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

#rsvp-form label {
    display: grid;
    gap: 6px;
}

#rsvp-form input,
#rsvp-form select {
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 12px 14px;
    font: inherit;
    background: var(--crème);
}

#rsvp-form input:focus,
#rsvp-form select:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
    border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {

    .modal,
    .modal__overlay,
    .modal__dialog {
        transition: none !important;
    }

    .modal {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .modal__dialog {
        transform: none !important;
        opacity: 1 !important;
    }
}


/* ===== Responsive ===== */
@media (max-width: 820px) {
    .page {
        grid-template-columns: 12px 1fr 12px
    }
}

@media (max-width:640px) {
    .countdown {
        grid-template-columns: repeat(2, 1fr)
    }
}