:root {
    --rose-clair: #ecd3d8;
    --rose-clair-hover: #e3bfc6;
    --bourgogne: #7a2436;
    --blanc-casse: #faf6f0;
    --texte: #3a332e;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--blanc-casse);
    color: var(--texte);
    margin: 0;
}

.conteneur {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.disposition-rsvp {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.colonne-photo img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    display: block;
}

.colonne-contenu {
    min-width: 0;
}

.espace-photo {
    display: none;
}

@media (max-width: 699px) {
    .disposition-rsvp {
        position: relative;
        border-radius: 14px;
        overflow: hidden;
        background-image: url('/static/images/fleurs.png');
        background-size: cover;
        background-position: top center;
        padding: 0.75rem;
    }

    .colonne-photo {
        display: none;
    }

    .colonne-contenu {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .carte {
        position: relative;
        background: rgba(250, 246, 240, 0.85);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        padding: 1.25rem;
    }

    .espace-photo {
        display: block;
        position: relative;
        height: 280px;
        background: rgba(250, 246, 240, 0.85);
        overflow: hidden;
    }

    .espace-photo::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('/static/images/couple-mariage.png');
        background-size: cover;
        background-position: center center;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    }
}

@media (min-width: 700px) {
    .disposition-rsvp {
        flex-direction: row;
        align-items: stretch;
        gap: 2rem;
    }

    .colonne-photo {
        flex: 0 0 280px;
    }

    .colonne-photo img {
        height: 100%;
        max-height: none;
    }

    .colonne-contenu {
        flex: 1;
    }
}

h1 {
    font-size: 2rem;
    color: var(--bourgogne);
    text-align: center;
    margin-bottom: 0.3rem;
}

.sous-titre {
    text-align: center;
    color: var(--bourgogne);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.texte-invitation {
    font-style: italic;
    text-align: center;
    color: var(--texte);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.date-limite {
    text-align: center;
}

.details-evenement {
    background: white;
    border: 1px solid var(--rose-clair);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
}

.details-evenement h2 {
    font-size: 1rem;
    color: var(--bourgogne);
    margin: 0 0 0.3rem;
}

.details-evenement p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.details-evenement-texte p:last-child {
    margin-bottom: 0;
}

.separateur-ondule {
    height: 14px;
    margin: 1rem 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0,5 Q12.5,0 25,5 T50,5 T75,5 T100,5' fill='none' stroke='%237a2436' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.details-evenement-deco {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: cover;
    object-position: 30% 30%;
    border-radius: 50%;
    margin: 1rem auto 0;
}

@media (min-width: 700px) {
    .details-evenement {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .details-evenement-texte {
        flex: 1;
        min-width: 0;
    }

    .details-evenement-deco {
        display: block;
        width: 100px;
        height: 100px;
        object-fit: cover;
        object-position: 30% 30%;
        border-radius: 50%;
        flex-shrink: 0;
        margin: 0;
    }
}


form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    padding: 0.6rem;
    border: 1px solid var(--rose-clair);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

fieldset {
    border: 1px solid var(--rose-clair);
    border-radius: 6px;
    padding: 1rem;
}

fieldset legend {
    color: var(--bourgogne);
    font-weight: 600;
    padding: 0 0.4rem;
}

fieldset label {
    display: block;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

#montant-total {
    font-weight: 600;
    color: var(--bourgogne);
    margin: 0.3rem 0 0;
}

button {
    background: var(--rose-clair);
    color: var(--bourgogne);
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: var(--rose-clair-hover);
}

.page-centree {
    text-align: center;
}

.fleur-decoration {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: 30% 30%;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.entete-admin {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fleur-admin {
    width: 56px;
    height: 56px;
    object-fit: cover;
    object-position: 30% 30%;
    border-radius: 50%;
    flex-shrink: 0;
}

.entete-admin h1 {
    text-align: left;
    margin-bottom: 0.2rem;
}

.alerte {
    background: #fde8e8;
    border: 1px solid #e0a0a0;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
}

th {
    background: var(--rose-clair);
    color: var(--bourgogne);
}

th, td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}
