body{
    margin: 0;
    padding: 0;
    background-color: var(--body);
}
/*background-color: rgba(247, 209, 255, 0.25);*/

.espace_header{
    height: 6em;
}

section{
    border-bottom: 1px solid var(--primary-color);
    border-top: 1px solid var(--primary-color);
    background-image: url("/image/fond.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
}

.container{
    width: 70%;
    height: auto;
    padding: 3.5em 0;
    background-color: rgba(255, 255, 255, 0.80);
    margin: 4em 0;
    border-radius: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.titre{
    display: flex;
    justify-content: center;
}
.titre>h1{
    color: var(--primary-color);
    font-family: "elza-round-variable", sans-serif;
    font-variation-settings: "wght" 700;
    font-size: 1.8em;
}


/* FORMULAIRE */
h1{
    text-align: center;
    font-family: "elza-round-variable", sans-serif;
    font-variation-settings: "wght" 700;
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 0;
}

.formulaire{
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 700px; /* limite la largeur pour grand écran */
    box-sizing: border-box;
}

form{
    width: 100%;
    box-sizing: border-box;
}

label{
    font-family: "elza-round-variable", sans-serif;
    font-variation-settings: "wght" 700;
    color: var(--primary-color);
    margin-bottom: 0.3em;
}

input[type=text], input[type=email], textarea{
    border: 1px solid var(--primary-color);
    padding: 0.6em;
    border-radius: 1.5em;
    width: 100%;
}

input::placeholder{
    font-size: 0.9em;
}

textarea{
    height: 10em;
    border-radius: 1em;
    resize: none;
}

form>p{
    display: flex;
    flex-direction: column;
}

input[type=submit]{
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 1.5em;
    padding: 0.6em 8em;
    width: 100%;
    transition: all 0.3s ease;
}

input[type=submit]:hover{
    background-color:  #aad1d1;
    color: white;
}

.bouton_envoyer {
    display: flex;
    justify-content: center;
    width: 100%;
}

/*------------------------------ BOUTON DE FILTRE ---------------------------*/
.filtre-controls{
    display: flex;
    gap: 1.5em;
}

.filtre-controls button{
    background-color: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5em 0.9em;
    border-radius: 3em;
    font-size: 1em;
    font-family: "Sofia pro soft", sans-serif;
    width: 8em;
}

button.active {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5em 0.9em;
    border-radius: 3em;
    font-size: 1em;
    font-family: "Sofia pro soft", sans-serif;
    border: 1px solid var(--primary-color);
}

.hidden {
    display: none !important;
}

/*------------------------ ADRESSE MAIL ----------------------------*/
.container_mail, #container_mail{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img_mail{
    width: 20%;
}

.email p{
    font-family: "Sofia pro soft", sans-serif;
    padding-top: 2em;
    padding-bottom: 0.5em;
    margin: 0;
}



@media (max-width: 768px){
    .espace_header{
        height: 5em;
    }

    .container {
        width: 90%;
        padding: 1.5em;
        margin: 2em 1.5em;
    }

    .formulaire {
        width: 100%;
        padding: 0;
        display: flex;
        justify-content: center;
    }

    form {
        width: 100%;
        padding: 0;
    }

    form > p {
        width: 100%;
    }

    input[type="text"], input[type="email"], textarea {
        width: 100%;
        box-sizing: border-box;
    }

    input[type="submit"] {
        width: 100%;
        padding: 0.6em 1em;
    }

    .bouton_envoyer {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1em;
    }

    .titre h1{
        font-size: 1.4em;
    }

    .filtre-controls button{
        padding: 0.5em 0.9em;
        font-size: 0.8em;
        width: 7em;
        max-width: 250px;
        cursor: pointer;
    }

    #container_mail{
        text-align: center;
    }

    .img_mail{
        width: 70%;
    }

    #responseMessage {
        padding: 0.5em;
        border-radius: 0.7em;
        text-align: center;
        white-space: nowrap;
    }
}


/*--------------------------- MESSAGE -------------------------------*/
#responseMessage {
    font-family: "elza", sans-serif;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 1em 1.5em;
    border-radius: 1em;
    will-change: transform, opacity;
    display: none; /* caché par défaut */
    text-align: center;
}

/* Couleur si succès */
.success-message {
    background-color: var(--primary-color);
    color: white;
}

/* Couleur si erreur */
.error-message {
    background-color: var(--primary-color);
    color: white;
}

/* Animation apparition */
.show {
    animation: slideUp 0.3s ease-out forwards;
}

/* Animation disparition */
.hide {
    animation: slideDown 0.4s ease-out forwards;
}

/* Keyframes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
}





