* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /*background-color: #f8f9fa;*/
     background-color: rgb(128, 0, 32);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    cursor: none;
}

.btn-back-home img {
    position: absolute;
    width: 35px;
    height: 35px;
}

.fairy {
    position: fixed; /* Indépendant des autres éléments */
    width: 32px; /* Taille exacte de votre image */
    height: 32px;
    background: url('../images/fee.png') no-repeat center center;
    background-size: contain;
    pointer-events: none; /* Empêche les interactions de la souris */
    z-index: 1000; /* Toujours au-dessus des autres éléments */
    margin: 0; /* Évite les marges éventuelles */
    padding: 0; /* Évite les marges internes */
    top: 0;
    left: 0;
    transform: translate(-50%, -50%); /* Centre la fée exactement sur le curseur */
}

.sparkle {
    position: fixed;
    width: 8px; /* Taille des paillettes */
    height: 8px;
    background: radial-gradient(ellipse, #fff, rgba(255, 255, 0, 1));
    border-radius: 50%;
    pointer-events: none;
    animation: fade 1s ease-out forwards;
}

img.cursor-fairy {
    pointer-events: none; /* Cette règle permet à l'image de la fée de ne pas bloquer les interactions sous-jacentes */
}

@keyframes fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(255, 255, 255, 1);
    cursor: none;
}

@font-face {
    font-family: 'Mercy Christole';
    src: url('../fonts/Mercy Christole.ttf') format('truetype'); /* Chemin vers le fichier */
    font-weight: normal;
    font-style: normal;
}

h1 {
    text-align: center;
    color: #444;
    margin-bottom: 20px;
    font-family: 'Mercy Christole', sans-serif;
    font-size: 32px;
    letter-spacing: 3px;
    color: #be1e2d;
    text-shadow: 
        /*-1px -1px 0 black,*/ /* Contour haut gauche */
        /*1px -1px 0 black,*/ /* Contour haut droit */
        /*-1px 1px 0 black,*/  /* Contour bas gauche */
        3px 1px 0 black,   /* Contour bas droit */
        2px 1px 0 black;  /* Contour bas droit */
}

p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    cursor: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    cursor: none;
}

input[type="text"], input[type="number"], input[type="email"], textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: none;
}

input[type="radio"] {
    cursor: none;
}

textarea {
    resize: vertical;
}

.radio-inline, .radio-inline-present {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    cursor: none;
}

/* Les deux blocs sont masqués par défaut */
#radio-inline, #liste {
    display: none;
}

button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(90deg, #7f0000, #a00000, #c10000, #e00000, #ff1a1a);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 105, 135, 0.5), 0 0 30px rgba(255, 105, 135, 0.2);
    /*cursor: pointer;*/
    cursor: none;
    transition: all 0.5s ease;
    animation: glow 3s infinite linear;
}

button:hover {
    background-position: 100% 0;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 105, 135, 0.8), 0 0 40px rgba(255, 105, 135, 0.4);
}

@keyframes glow {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#guest-names-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.separator {
    border: 0;
    height: 1px;
    /*background: linear-gradient(to right, #ccc, #007bff, #ccc);*/
    background: linear-gradient(to right, #7f0000, #a00000, #c10000, #e00000, #ff1a1a);
    margin: 20px 0; /* Espace au-dessus et en dessous */
    opacity: 0.8;
}

#rsvp-form input:disabled,
#rsvp-form textarea:disabled,
#rsvp-form select:disabled {
    background-color: #f0f0f0;
    color: #a0a0a0;
    border-color: #ccc;
    cursor: not-allowed;
    cursor: none;
    opacity: 0.7;
}

/* Griser les labels associés aux champs désactivés */
label:has(input:disabled),
label:has(textarea:disabled),
label:has(select:disabled) {
    color: #a0a0a0; /* Texte gris */
    opacity: 0.7; /* Effet estompé */
}

/* Styles pour les labels désactivés */
.disabled-label {
    color: #a0a0a0; /* Texte gris */
    opacity: 0.7; /* Effet estompé */
}

#fish-option-container {
    display: flex;                /* Flexbox pour aligner la question et ses options sur une ligne */
    justify-content: center;      /* Centrer horizontalement l'ensemble */
    align-items: center;          /* Centrer verticalement les éléments */
    gap: 15px;                    /* Espacement entre la question et les options */
    margin-top: 10px;             /* Espacement au-dessus */
    width: 100%;                  /* S'assurer que le conteneur prend toute la largeur disponible */
    text-align: center;           /* Centrer le texte des labels */
}

#fish-option-container .radio-inline {
    display: inline-flex;         /* Utilisation de inline-flex pour que les options soient sur la même ligne */
    gap: 15px;                    /* Espacement entre les boutons radio */
    align-items: center;          /* Centrer les options verticalement */
    cursor: none;
}

#fish-option-container label {
    margin: 0 10px;               /* Espacement autour des labels */
}

#fish-option-container input[type="radio"] {
    margin-right: 5px;            /* Espacement entre le bouton radio et le label */
}

#magic-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 15px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#magic-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    animation: sparkle 1s infinite;
}

@keyframes sparkle {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Style du lien sous forme de bouton */
#styled-button-link {
    display: flex;
    padding: 12px 24px;
    background-color: #d9534f; /* Couleur de fond rouge      */
    color: white; /* Texte en blanc */
    font-size: 16px; /* Taille du texte */
    text-align: center;
    text-decoration: none; /* Enlever le souligné */
    border-radius: 5px; /* Coins arrondis */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre légère */
    transition: all 0.3s ease; /* Transition fluide */
    justify-content: center;  
    align-items: center;  
}

/* Effet au survol */
#styled-button-link:hover {
    background-color: #c9302c; /* Couleur de fond rouge plus foncée au survol */
    transform: translateY(-2px); /* Légère remontée */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Ombre plus marquée */
}

/* Effet au focus (quand l'utilisateur clique ou sélectionne le lien) */
#styled-button-link:focus {
    outline: none; /* Enlever le contour par défaut */
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.5); /* Contour orange autour du bouton */
}


/* Affiche le bloc radio-inline pour les écrans >= 600px */
@media (min-width: 600px) {

    #radio-inline {
        display: flex;
    }

}

/* Styles pour téléphone */
@media screen and (max-width: 599px) {

    #liste {
        display: block;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    #guest-names-container {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 15px;
    }

}

/* Styles pour les petites écrans */
@media screen and (max-width: 400px) {

    .btn-back-home {
        display: flex;
        justify-content: center; /* Centre horizontalement */
        align-items: center;    /* Centre verticalement */
        margin-bottom: 10px;
    }

    .btn-back-home img {
        position: relative;
        width: 35px;
        height: 35px;
    }

    h1 {
        text-align: center;
        color: #444;
        margin-bottom: 20px;
        font-family: 'Mercy Christole', sans-serif;
        font-size: 25px;
        letter-spacing: 3px;
        color: #be1e2d;
        text-shadow: 
            /*-1px -1px 0 black,*/ /* Contour haut gauche */
            /*1px -1px 0 black,*/ /* Contour haut droit */
            /*-1px 1px 0 black,*/  /* Contour bas gauche */
            3px 1px 0 black,   /* Contour bas droit */
            2px 1px 0 black;  /* Contour bas droit */

    }

    p {
        text-align: center;
        margin-bottom: 20px;
        font-size: 12px;
        cursor: none;
    }

}

/* Styles pour les petites écrans */
@media screen and (max-width: 200px) {

    h1 {
        text-align: center;
        color: #444;
        margin-bottom: 20px;
        font-family: 'Mercy Christole', sans-serif;
        font-size: 25px;
        letter-spacing: 1px;
        color: #be1e2d;
        text-shadow: 
            /*-1px -1px 0 black,*/ /* Contour haut gauche */
            /*1px -1px 0 black,*/ /* Contour haut droit */
            /*-1px 1px 0 black,*/  /* Contour bas gauche */
            3px 1px 0 black,   /* Contour bas droit */
            2px 1px 0 black;  /* Contour bas droit */

    }

    p {
        text-align: center;
        margin-bottom: 20px;
        font-size: 10px;
        cursor: none;
    }

}

/* Style après envoie du mail */
.body {
    font-size: 11pt;
    text-align: left;
    font-family: 'Playfair Display', serif;
}

.sous-titre {
    font-size: 11pt;
    text-align: center;
    font-family: 'Playfair Display', serif;
}