:root {
    --cream: #f8f0e6;
    --cream-light: #fcf8f3;
    --beige: #ead8c4;
    --beige-dark: #c9a77d;

    --brown: #5a3d2b;
    --brown-light: #85664e;

    --gold: #b88a54;

    --serif: "Cormorant Garamond", serif;
    --display: "Italiana", serif;
    --script: "Parisienne", cursive;
}


/* ========================================
   RESET
======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--brown);
    font-family: var(--serif);
    overflow-x: hidden;
}


/* ========================================
   COMMON
======================================== */

section {
    position: relative;
    overflow: hidden;
}

.eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.45rem;
    text-transform: uppercase;
}

.separator {
    width: 45px;
    height: 1px;
    background: var(--gold);
    margin: 30px auto;
}


/* ========================================
   HERO
======================================== */

.hero {
    min-height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 60px 20px;

    /*
     * On superpose un voile beige à fabric.png
     * afin de conserver une bonne lisibilité.
     */
    background-image:
        linear-gradient(
            rgba(248, 240, 230, 0.45),
            rgba(248, 240, 230, 0.55)
        ),
        url("../assets/images/fabric.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
}


/*
 * Léger halo central derrière les noms.
 */
.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.42) 0%,
            rgba(255, 255, 255, 0.12) 40%,
            transparent 70%
        );

    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 2;
}


.hero h1 {
    display: flex;
    flex-direction: column;
    margin-top: 35px;

    font-family: var(--display);
    font-size: clamp(3.3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.04em;

    text-shadow:
        0 2px 20px rgba(255, 255, 255, 0.35);
}


.hero .ampersand {
    font-family: var(--script);

    color: var(--gold);

    font-size: 0.8em;

    line-height: 1.1;

    margin: 5px 0;
}


.date {
    font-family: var(--display);

    font-size: clamp(1.4rem, 4vw, 2rem);

    letter-spacing: 0.25em;
}


.location {
    margin-top: 12px;

    font-size: 0.9rem;

    letter-spacing: 0.45em;
}


.scroll-indicator {
    display: inline-block;

    margin-top: 55px;

    color: var(--gold);

    text-decoration: none;

    font-size: 1.4rem;

    animation: float 2s ease-in-out infinite;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}


/* ========================================
   INVITATION
======================================== */

.invitation {
    min-height: 90vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 110px 25px;

    background: var(--cream-light);

    text-align: center;

    position: relative;
}


/*
 * Gypsophile à gauche.
 */
.invitation::before {
    content: "";

    position: absolute;

    left: -100px;
    bottom: -30px;

    width: 480px;
    height: 600px;

    background-image: url("../assets/images/flowers.png");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;

    opacity: 0.45;

    pointer-events: none;
}


/*
 * Même décoration inversée à droite.
 */
.invitation::after {
    content: "";

    position: absolute;

    right: -130px;
    top: -40px;

    width: 430px;
    height: 560px;

    background-image: url("../assets/images/flowers.png");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;

    transform: scaleX(-1);

    opacity: 0.25;

    pointer-events: none;
}


.invitation-content {
    max-width: 680px;

    position: relative;

    z-index: 2;
}


.invitation h2 {
    display: flex;
    flex-direction: column;

    margin: 35px 0 20px;

    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.05;
}

.names-and {
    font-family: var(--script);

    font-size: 1.3em;

    color: var(--gold);

    margin: 5px;
}


.announcement {
    font-size: 1.4rem;

    line-height: 1.4;
}


.invitation-text {
    max-width: 560px;

    margin: auto;

    font-size: 1.25rem;

    line-height: 1.7;
}


.wedding-details {
    margin-top: 50px;
}


.big-date {
    font-family: var(--display);

    font-size: clamp(1.3rem, 4vw, 2rem);

    letter-spacing: 0.2em;
}


.city {
    margin-top: 12px;

    font-size: 0.85rem;

    letter-spacing: 0.4em;
}


/* ========================================
   COUNTDOWN
======================================== */

.countdown-section {
    padding: 100px 20px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #efe0cf,
            #f9f2e9,
            #e9d5be
        );
}


.countdown {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: clamp(15px, 4vw, 55px);

    margin-top: 35px;
}


.countdown-item {
    min-width: 75px;
}


.countdown-item span {
    display: block;

    font-family: var(--display);

    font-size: clamp(2.4rem, 6vw, 4rem);
}


.countdown-item small {
    display: block;

    margin-top: 10px;

    font-size: 0.65rem;

    letter-spacing: 0.3em;
}


.countdown-line {
    width: 1px;

    height: 60px;

    background: rgba(184, 138, 84, 0.4);
}


/* ========================================
   CLOSING
======================================== */

.closing {
    min-height: 75vh;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    /* Le texte reste dans la partie haute */
    padding: 80px 20px 220px;

    text-align: center;

    background-color: var(--cream-light);

    background-image: url("../assets/images/flowers-line.png");
    background-repeat: no-repeat;

    /* Les fleurs restent en bas */
    background-position: center bottom -40px;
    background-size: min(920px, 75%);
    position: relative;
}


/*
 * Petit voile pour que le texte reste
 * parfaitement lisible sur les fleurs.
 */
/* .closing::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            rgba(252, 248, 243, 0.92) 0%,
            rgba(252, 248, 243, 0.72) 35%,
            rgba(252, 248, 243, 0.15) 70%
        );

    pointer-events: none;
} */


.closing-content {
    position: relative;
    z-index: 2;

    /* largeur maîtrisée */
    max-width: 650px;

    /* texte dans la zone supérieure */
    margin: 0 auto;
}

.closing-text {
    font-size: 0.65rem;

    letter-spacing: 0.2em;

    line-height: 2;
}


.monogram {
    font-family: var(--script);

    font-size: clamp(4rem, 10vw, 7rem);

    color: var(--gold);
}


.monogram span {
    font-size: 0.7em;
}


.heart {
    color: var(--gold);

    margin: 5px 0 25px;

    font-size: 0.8rem;
}


.closing-date {
    font-family: var(--display);

    font-size: 0.8rem;

    letter-spacing: 0.2em;
}


.closing-location {
    margin-top: 15px;

    font-size: 0.55rem;

    letter-spacing: 0.4em;
}

.arabic {
    direction: rtl;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.8;
}




/* ========================================
   ANIMATIONS
======================================== */

.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}


.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .invitation::before {
        width: 380px;
        height: 500px;

        left: -150px;

        opacity: 0.28;
    }


    .invitation::after {
        width: 350px;
        height: 450px;

        right: -160px;

        opacity: 0.18;
    }


    .closing {
        background-size: 1100px auto;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .eyebrow {
        font-size: 0.58rem;

        letter-spacing: 0.3rem;
    }


    /*
     * HERO
     */

    .hero {
        min-height: 100svh;

        padding: 50px 18px;

        background-position: center;
    }


    .hero h1 {
        font-size: clamp(3rem, 16vw, 4.5rem);

        line-height: 0.95;
    }


    .hero .ampersand {
        margin: 8px 0;
    }


    .date {
        font-size: 1.25rem;

        letter-spacing: 0.18em;
    }


    .location {
        font-size: 0.72rem;

        letter-spacing: 0.35em;
    }


    /*
     * INVITATION
     */

    .invitation {
        min-height: auto;

        padding: 100px 25px;
    }


    .invitation::before {
        width: 280px;
        height: 400px;

        left: -150px;
        bottom: -40px;

        opacity: 0.2;
    }


    .invitation::after {
        width: 260px;
        height: 360px;

        right: -150px;
        top: -20px;

        opacity: 0.12;
    }


    .invitation h2 {
        font-size: 2.5rem;
    }


    .announcement {
        font-size: 1.2rem;
    }


    .invitation-text {
        font-size: 1.1rem;

        line-height: 1.6;
    }


    .big-date {
        font-size: 1.25rem;

        letter-spacing: 0.12em;
    }


    /*
     * COUNTDOWN
     */

    .countdown-section {
        padding: 80px 10px;
    }


    .countdown {
        gap: 7px;
    }


    .countdown-line {
        height: 45px;
    }


    .countdown-item {
        min-width: 55px;
    }


    .countdown-item span {
        font-size: 2rem;
    }


    .countdown-item small {
        font-size: 0.46rem;

        letter-spacing: 0.12em;
    }


    /*
     * CLOSING
     */

    .closing {
        min-height: 75vh;

        padding: 90px 20px;

        background-size: 450px auto;
        background-position: center;
    }


    .closing-text {
        font-size: 0.60rem;

        letter-spacing: 0.2em;
    }


    .monogram {
        font-size: 3rem;
    }


    .closing-date {
        font-size: 0.8rem;

        letter-spacing: 0.2em;
    }

}