/* === Semantic Text Classes === */
.text-default {
    color: #000;
    font-family: serif;
}

.text-small {
    font-size: 0.875rem;
    color: #000;
}

.text-gray {
    color: #4B5563;
}

.font-serif-custom {
    font-family: serif !important;
}

.font-semibold-custom {
    font-weight: 600 !important;
}

@keyframes fade-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-slide {
    animation: fade-slide-in 0.8s ease forwards;
}

:root {
    --app-height: 100%;
}

@supports (height: 100dvh) {
    :root {
        --app-height: 100dvh;
    }
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: var(--app-height);
    width: 100%;
}

body {
    padding-bottom: env(safe-area-inset-bottom);
}

.font-cinzel {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.2em;
}

/* Decorative background images should never overflow */
.decor-bg-img {
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: cover !important;
    display: block;
    pointer-events: none;
    user-select: none;
}


.nuage-haut {
    top: -10rem;
    left: 6rem;
    width: 60%;
    transform: rotate(-60deg);
}

.nuage-bas {
    bottom: -10rem;
    right: 4rem;
    width: 60%;
}

.feuille_11 {
    top: 0rem;
    left: 2rem;
    width: 25%;
}

.feuille_12 {
    bottom: 3rem;
    left: -2rem;
    width: 40%;
    transform: rotate(-60deg);
}

.feuille_13 {
    top: 8rem;
    right: -3rem;
    width: 30%;
    transform: rotate(200deg);
}

.feuille_21 {
    top: 0rem;
    left: 1rem;
    width: 20%;
}

.feuille_22 {
    bottom: -6rem;
    left: -3rem;
    width: 40%;
    transform: rotate(-90deg);
}

.feuille_31 {
    top: -2rem;
    right: -2rem;
    width: 40%;
    transform: rotate(160deg);
}

.feuille_32 {
    bottom: -1rem;
    left: 2rem;
    width: 43%;
    transform: rotate(-20deg);
}

.feuille_41 {
    bottom: 2rem;
    right: -2rem;
    width: 25%;
    transform: rotate(-90deg);
}

.feuille_42 {
    top: 5rem;
    left: -1rem;
    width: 20%;
    transform: rotate(80deg);
}

.feuille_51 {
    bottom: 10rem;
    right: 0.2rem;
    width: 20%;
    transform: rotate(180deg);
}

.feuille_52 {
    top: 5rem;
    left: 8rem;
    width: 15%;
    transform: rotate(20deg);
}

.fleur_11 {
    top: 2rem;
    right: -1rem;
    width: 30%;
    transform: rotate(95deg);
}

.fleur_12 {
    bottom: 0rem;
    right: 1rem;
    width: 25%;
    transform: rotate(-160deg);
}

.fleur_21 {
    top: 1rem;
    left: -1rem;
    width: 40%;
}

.fleur_22 {
    bottom: 4rem;
    right: -1rem;
    width: 30%;
    transform: rotate(90deg) scaleX(-1);
}

.fleur_31 {
    top: 3rem;
    left: -2rem;
    width: 28%;
    transform: rotate(10deg);
}

.fleur_32 {
    bottom: -2rem;
    right: 0rem;
    width: 30%;
    transform: rotate(-190deg);
}

.fleur_41 {
    bottom: 9rem;
    left: 0rem;
    width: 16%;
}

.fleur_42 {
    top: 5rem;
    right: 6rem;
    width: 10%;
    transform: rotate(-120deg) scaleX(-1);

}

.plume_11 {
    bottom: 14rem;
    right: 0rem;
    width: 10%;
    transform: rotate(-10deg) scaleX(-1);

}

.plume_12 {
    bottom: 14rem;
    left: 0rem;
    width: 16%;
    transform: rotate(-10deg);

}

.plume_13 {
    top: 1rem;
    right: 5rem;
    width: 11%;
    transform: rotate(-90deg) scaleX(-1);

}


@media (min-width: 768px) {
    .nuage-haut {
        top: -25rem;
        left: 40rem;
        width: 30%;
    }

    .nuage-bas {
        bottom: -26rem;
        right: 40rem;
        width: 30%;
    }

    .feuille_11 { top: 0rem; left: 25rem; width: 7%; }
    .feuille_12 { bottom: -3rem; left: 18rem; width: 17%; transform: rotate(-120deg); }
    .feuille_13 { top: 21rem; right: -1rem; width: 8%; transform: rotate(200deg); }
    .feuille_21 { top: 0rem; left: 20rem; width: 8%; }
    .feuille_22 { bottom: -6rem; left: 28rem; width: 16%; transform: rotate(-110deg); }
    .feuille_31 { top: 2rem; right: 2rem; width: 20%; transform: rotate(160deg); }
    .feuille_32 { bottom: 2rem; left: 7rem; width: 20%; transform: rotate(-20deg); }
    .feuille_41 { bottom: 0rem; right: 24rem; width: 7%; transform: rotate(-90deg); }
    .feuille_42 { top: 3rem; left: -1rem; width: 10%; transform: rotate(80deg); }
    .feuille_51 { bottom: 2rem; right: 14rem; width: 16%; transform: rotate(200deg); }
    .feuille_52 { top: 2rem; left: 35rem; width: 6%; transform: rotate(20deg); }

    .fleur_11 { top: 5rem; right: -1rem; width: 10%; transform: rotate(95deg); }
    .fleur_12 { bottom: 0rem; right: 31rem; width: 11%; transform: rotate(-160deg); }
    .fleur_21 { top:-0.5rem; left: 3rem; width: 18%; }
    .fleur_22 { bottom: 10rem; right: -1rem; width: 14%; transform: rotate(90deg) scaleX(-1); }
    .fleur_31 { top: 8rem; left: -4rem; width: 16%; transform: rotate(-20deg); }
    .fleur_32 { bottom: -8rem; right: 0rem; width: 18%; transform: rotate(-190deg); }
    .fleur_41 { bottom: 6rem; left: 0rem; width: 15%; }
    .fleur_42 { top: 3rem; right: 24rem; width: 5%; transform: rotate(-120deg) scaleX(-1); }

    .plume_11 { bottom: 22rem; right: 0rem; width: 7%; transform: rotate(-10deg) scaleX(-1); }
    .plume_12 { bottom: 18rem; left: 0rem; width: 6%; transform: rotate(-10deg); }
    .plume_13 { top: 1rem; right: 15rem; width: 6%; transform: rotate(-90deg) scaleX(-1); }

}

@media (min-width: 768px) {
    #content {
        max-width: 600px;
        margin: 0 auto;
        z-index: 10;
    }
}

.fade-enter {
    opacity: 0;
    transform: translateY(20px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-exit {
    opacity: 1;
    transform: translateY(0);
}

.fade-exit-active {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes scale-in {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale {
    animation: scale-in 0.4s ease forwards;
}

/* Text intro (haut du faire-part) */
/* "SAVE THE DATE" style */
.text-intro {
    font-size: 0.85rem;
    font-family: serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #CFA5A5;
    margin-bottom: 0.5rem;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .text-intro {
        max-width: 18rem;
    }
}

/* Noms des mariés */
.noms-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Names: Edith & Thomas style */
.text-noms {
    font-size: 2.25rem;
    font-family: 'Cinzel Decorative', 'Great Vibes', cursive, serif;
    color: #5C3A32;
    letter-spacing: 0.03em;
    font-weight: normal;
}

/* For the ampersand or "et" between names, lighter color */
.text-et {
    font-size: 2rem;
    font-family: 'Cinzel Decorative', 'Great Vibes', cursive, serif;
    color: #E8D7C5;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .text-noms {
        font-size: 3rem;
    }
}


/* Section titles (h2) */
/* "THE WEDDING OF" style */
.text-section-title {
    font-size: 1.25rem;
    font-family: serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5C3A32;
    margin-bottom: 1rem;
    font-weight: normal;
}

/* Photo section title */
.photo-section-title {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4B5563;
}

/* Ceremonie/reception detail blocks */
.ceremonie-titre {
    font-weight: 600;
    color: #000;
}

.ceremonie-detail {
    color: #000;
    font-size: 0.875rem;
}

.ceremonie-hr {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-top: 2px solid #CFA5A5;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

/* Continue/next step button */
.btn-continue {
    margin-top: 2rem;
    color: #CFA5A5;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-continue:hover {
    color: #333;
}

/* === General Button Styles === */
/* Main gold filled button (for forms, primary actions) */
/* Main filled button: harmonize with palette */
.btn-primary {
    display: inline-block;
    width: 100%;
    background: #5C3A32;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #7A4C42;
    color: #fff;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Outlined button (for map selectors, secondary actions) */
/* Outlined button: harmonize with palette */
.btn-outline {
    display: inline-block;
    background: #fff;
    color: #5C3A32;
    border: 1.5px solid #5C3A32;
    border-radius: 9999px;
    padding: 0rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: inherit;
}

.btn-outline:hover,
.btn-outline:focus {
    background: #5C3A32;
    color: #fff;
    border-color: #5C3A32;
}

/* Icon-only button (for info, phone, mail, maps, etc.) */
/* Icon-only button: harmonize with palette */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #5C3A32;
    padding: 0.25rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-size: 1.5rem;
}

.btn-icon:hover,
.btn-icon:focus {
    background: rgba(92, 58, 50, 0.15);
    color: #7A4C42;
}

/* === Form Elements === */
.form-label {
    display: block;
    font-size: 0.95rem;
    font-family: serif;
    font-weight: 500;
    margin-bottom: 0.35em;
    color: #000;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1.5px solid #CFA5A5;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    font-family: serif;
    color: #000;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #CFA5A5;
    box-shadow: 0 0 0 1.5px #C0A06033;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23C0A060' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75em center;
    background-size: 1em;
    padding-right: 2em;
}

.form-textarea {
    min-height: 2.5em;
    resize: vertical;
}

/* === Form Messages === */
.form-message {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-family: serif;
    color: #333;
    text-align: left;
    padding-left: 0.2em;
}

.form-message--success {
    color: #3B7A57;
}

.form-message--error {
    color: #7A2E2E;
}

/* === Success Button State === */
.btn-success {
    background: #3B7A57 !important;
    color: #fff !important;
    border: none;
    box-shadow: none;
    display: grid !important;
    place-items: center;
    width: 100%;
    height: 2.5em;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.btn-success svg {
    color: #fff !important;
}

.btn-success:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

/* === Icon Check === */
.icon-check {
    width: 1.5em;
    height: 1.5em;
    color: #CFA5A5;
    display: inline-block;
    vertical-align: middle;
}

/* === Séquence d'apparition des éléments === */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0; /* caché au départ */
    animation: fade-up 1.2s ease forwards;
}

@keyframes fade-up-center {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    15% {
        opacity: 1;
        transform: translateY(100px);
    }
    30% {
        opacity: 1;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up-center {
    opacity: 0; /* caché au départ */
    animation: fade-up-center 3s ease-out forwards;
}

/* Délais progressifs */
.fade-delay-1 {
    animation-delay: 0.2s;
}

.fade-delay-2 {
    animation-delay: 0.6s;
}

.fade-delay-3 {
    animation-delay: 1.0s;
}

.fade-delay-4 {
    animation-delay: 1.4s;
}

.fade-delay-5 {
    animation-delay: 1.8s;
}

.fade-delay-6 {
    animation-delay: 2.2s;
}

.fade-delay-7 {
    animation-delay: 2.6s;
}

.fade-delay-8 {
    animation-delay: 3.0s;
}

.fade-delay-9 {
    animation-delay: 3.4s;
}

.fade-delay-10 {
    animation-delay: 3.8s;
}

.fade-delay-11 {
    animation-delay: 4.2s;
}

.fade-delay-12 {
    animation-delay: 4.6s;
}

.fade-delay-13 {
    animation-delay: 5.0s;
}

.fade-delay-14 {
    animation-delay: 5.4s;
}

.fade-delay-15 {
    animation-delay: 5.8s;
}

.fade-delay-16 {
    animation-delay: 6.2s;
}

.fade-delay-17 {
    animation-delay: 6.6s;
}

.fade-delay-18 {
    animation-delay: 7.0s;
}

.fade-delay-19 {
    animation-delay: 7.4s;
}

.fade-delay-20 {
    animation-delay: 8.2s;
}