@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&display=swap');
/* === 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%;
    background-color: #FFFFFF;
    font-family: "Lato", "Poppins", sans-serif;
}

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;
}

.coeur {
    top: 14rem;
    width: 80%;
}

.fleurs_gold {
    bottom: 10rem;
    left: 4rem;
    width: 80%;
}

.points {
    top: 12rem;
    right: 2rem;
    width: 40%;
}

.tache_bas {
    bottom: 3rem;
    left: -4rem;
    width: 40%;
}

.tache_bas_droit {
    bottom: -7rem;
    right: 2rem;
    width: 35%;
}

.tache_cote_droit {
    bottom: 7rem;
    right: -6rem;
    width: 35%;
}

.tache_haut {
    top: -3rem;
    right: -3rem;
    width: 25%;
}

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

.trait_bas {
    bottom: 0rem;
    right: 0rem;
    width: 40%;
}

.trait_haut {
    top: -2rem;
    left: 0rem;
    width: 30%;
}

@media (min-width: 768px) {
    .trait_haut {
        top: -2rem;
        left: 0rem;
        width: 11%;
    }

    .trait_bas {
        bottom: 0rem;
        right: 0rem;
        width: 20%;
    }

    .tache_haut_gauche {
        top: -4rem;
        left: -8rem;
        width: 17%;
    }

    .tache_haut {
        top: -3rem;
        right: -3rem;
        width: 8%;
    }

    .tache_cote_droit {
        bottom: 7rem;
        right: -15rem;
        width: 20%;
    }

    .tache_bas_droit {
        bottom: -14rem;
        right: 35rem;
        width: 15%;
    }

    .tache_bas {
        bottom: 2rem;
        left: -8rem;
        width: 15%;
    }

    .coeur {
        top: 14rem;
        width: 30%;
    }

    .fleurs_gold {
        bottom: 9rem;
        left: 43rem;
        width: 30%;
    }

    .points {
        top: 11rem;
        right: 40rem;
        width: 13%;
    }
}

@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) */
.text-intro {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000;
    font-weight: 400;
    font-family: "Montserrat", serif;
    margin-bottom: 4rem;
    max-width: 18rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: -3rem;
}

@media (min-width: 768px) {
    .text-intro {
        max-width: 18rem;
        margin-bottom: 13rem;
        margin-top: -12rem;
    }
}

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

.text-noms {
    font-size: 2.25rem;
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.05em;
}

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

.text-et {
    font-size: 1rem;
    font-family: 'Montserrat', serif;
    font-weight: 300;
    color: #000;
}

/* Section titles (h2) */
.text-section-title {
    font-size: 1.25rem;
    font-family: 'Montserrat', serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
    margin-bottom: 1rem;
}

/* Photo section title */
.photo-section-title {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4B5563;
    font-family: "Dancing Script", cursive;
}

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

.ceremonie-detail {
    color: #000;
    font-size: 0.875rem;
    font-family: 'Montserrat', serif;
}

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

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

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

/* === General Button Styles === */
/* Main pink filled button (for forms, primary actions) */
.btn-primary {
    display: inline-block;
    width: 100%;
    background: #E07A9E;
    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: #C25B7C;
    color: #fff;
}

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

/* Outlined button (for map selectors, secondary actions) */
.btn-outline {
    display: inline-block;
    background: #fff;
    color: #E07A9E;
    border: 1.5px solid #E07A9E;
    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: #C25B7C;
    color: #fff;
    border-color: #C25B7C;
}

/* Icon-only button (for info, phone, mail, maps, etc.) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #E07A9E;
    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(224, 122, 158, 0.15);
    color: #C25B7C;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1.5px solid #E07A9E;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    font-family: 'Montserrat', 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: #C25B7C;
    box-shadow: 0 0 0 1.5px #E07A9E33;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23E07A9E' 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: #E07A9E;
    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(10px);
    }
    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;
}