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

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

.text-gray {
    color: #6B4F4F;
}

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

.feuille-haut {
    top: -3rem;
    right: -5rem;
    width: 80%;
}

.feuille-bas {
    bottom: -4rem;
    left: -5rem;
    width: 90%;
}

.forme {
    width: 90%;
}

.tache_1 {
    top: 1rem;
    left: -8rem;
    width: 68%;
}

.tache_2 {
    top: -6rem;
    left: -6rem;
    width: 66%;
}

.tache_3 {
    bottom: -6rem;
    right: -6rem;
    width: 74%;
}

.taches11 {
    bottom: -10rem;
    right: 0rem;
    width: 100%;
    transform: rotate(90deg);

}

.taches12 {
    top: -10rem;
    left: 0rem;
    width: 80%;
}

@media (min-width: 768px) {
    .feuille-haut {
        top: -8rem;
        right: -10rem;
        width: 40%;
    }

    .feuille-bas {
        bottom: -8rem;
        left: -10rem;
        width: 40%;
    }

    .forme {
        width: 30%;
        transform: rotate(0deg);
    }

    .tache_1 {
        top: -5rem;
        left: -8rem;
        width: 25%;
    }

    .tache_2 {
        top: -15rem;
        left: -6rem;
        width: 28%;
    }

    .tache_3 {
        bottom: -6rem;
        right: -6rem;
        width: 24%;
    }

    .taches11 {
        bottom: -10rem;
        right: 0rem;
        width: 30%;
        transform: rotate(90deg);
    }

    .taches12 {
        top: -10rem;
        left: 0rem;
        width: 35%;
    }
}

@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: #A34A33;
    font-family: serif;
    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;
}

.text-noms {
    font-size: 2.25rem;
    color: #A34A33;
    font-family: 'Great Vibes', cursive, serif;
    letter-spacing: 0.05em;
    font-weight: normal;
}

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

.text-et {
    font-size: 1rem;
    font-family: serif;
    color: #E6CFCB;
}

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

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

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

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

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

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

.btn-continue:hover {
    color: #873C29;
}

/* === General Button Styles === */
/* Main gold filled button (for forms, primary actions) */
.btn-primary {
    display: inline-block;
    width: 100%;
    background: #A34A33;
    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: #873C29;
    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: #A34A33;
    border: 1.5px solid #A34A33;
    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: #A34A33;
    color: #fff;
    border-color: #A34A33;
}

/* 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: #A34A33;
    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(163, 74, 51, 0.15);
    color: #873C29;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1.5px solid #A34A33;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fff;
    font-family: serif;
    color: #4B2E2E;
    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: #A34A33;
    box-shadow: 0 0 0 1.5px #A34A3333;
}

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

/* === 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: #A34A33;
    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;
}