/* Section bienvenue */
.bienvenue {
    display: flex;
    flex-direction: column;
    padding: 3%;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: #6D071A;
    font-size: 18px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7);

    p{
        font-size: 25px;
    }

}

/* Bouton "Connexion" 
.connexion {
    position: fixed; /* Fixe le bouton à un emplacement précis
    bottom: 20px; /* Distance du bas de la page 
    right: 20px; /* Distance de la droite de la page 
    background-color: #500614;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.connexion:hover {
    background-color: white;
    color: rgb(70, 5, 17);
}*/

/* Section vendus*/
.vendus {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: row; /* Disposition horizontale par défaut */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 850px;
    background-color: #500614;
    font-size: 18px;
    gap: 50px; /* Espacement entre les éléments */
}

.vendus .titre {
    align-self: flex-start; /* Place l'élément en haut à gauche */
    position: absolute;
    padding-top: 3%;
    text-align: center;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.7); /* Ajuste la transparence pour un meilleur contraste */
}

.vendus img{
    border-radius: 10px;
    box-shadow: 30px 30px 0px 0px rgba(0, 0, 0, 0.415) ;
}

.vendus ul {
    display: flex;
    flex-direction: wrap;
    list-style: none;
    justify-content: center; /* Centre les éléments */
    flex: 1 1 calc(33.33% - 30px); /* Taille normale sur desktop */
    max-width: 550px; /* Fixe une largeur maximale */
    gap: 90px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.vendus ul li {
    text-align: center;
    transition-duration: 0.3s;

    a{
        text-decoration: none;
    }
}

.vendus ul li:hover {
    transform: translateY(-10px);
}

/*Questions*/
.question{
    display: flex;
    flex-direction: column; /* Disposition horizontale par défaut */
    align-items: center;
    width: 100%;
    height: auto;
    padding-bottom: 3%;
    background-color: #6D071A;
    gap: 25px;
}

.question h1{
    padding: 3%; 
}

/* Conteneur des questions */
.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 50%; /* Ajuste la largeur des questions */
}

/* Style des éléments <details> */
.faq details {
    width: 100%;
    background-color: #500614;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq details a{
    font-style: italic;
}

/* Style des titres des questions */
.faq summary {
    font-size: 25px;
    padding: 30px 20px;
    background-color: #500614;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq summary:hover {
    background-color: #000000bd;
}

/* Style du contenu des réponses */
.faq p {
    padding: 10px 20px;
    margin: 0;
    background-color: #6D071A;
    font-size: 25px;
}

/* Animation des questions ouvertes */
.faq details[open] summary {
    background-color: #000000bd;
    border-radius: 10px;
    font-weight: bold;
}

.message{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3%;
    width: 100%;
    height: 805px;
    background-color: #500614;
    p{
        font-size: 25px;
        margin-bottom: 30px;
    }
}

/* Formulaire de contact */
.contact-form {
    background-color: #6D071A;
    padding: 40px;
    border-radius: 10px;
    width: 50%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-form label {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

.contact-form input,.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Inria', serif;
    color: #333;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.btn-envoyer{
    display: flex;
    justify-content: center;
    background-color: #500614;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    margin-left: auto ;
    margin-right: auto;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Inria', serif;
    transition: 0.3s ease-in-out;
}

.btn-envoyer:hover {
    background-color: #890c23;
}

@media (max-width: 1500px) {
    
    .bienvenue {
        text-align: center;
    }

    /* Section vendus */
    .vendus {
        height: auto;
        padding: 20px 10px;

        h2{
            padding-top: 5%;
        }
    }
    
    .vendus .titre {
        font-size: 30px;
    }
    
    .vendus ul {
        padding-top:10% ;
        gap: 70px;
    }
    
    .vendus ul li{
        font-size: 12px;
    }
    
    .vendus img {
        width: 250px;
        height: 250px;
        box-shadow: 15px 15px 0px 0px rgba(0, 0, 0, 0.415) ;
    }
}

@media (max-width: 1000px) {
    .bienvenue {
        text-align: center;
    }

    /* Section vendus */
    .vendus {
        height: auto;
        padding: 20px 10px;

        h2{
            padding-top: 5%;
        }
    }
    
    .vendus .titre {
        font-size: 30px;
    }
    
    .vendus ul {
        padding-top:10% ;
        gap: 70px;
    }
    
    .vendus ul li{
        font-size: 12px;
    }
    
    .vendus img {
        width: 190px;
        height: 190px;
        box-shadow: 15px 15px 0px 0px rgba(0, 0, 0, 0.415) ;
    }

}

@media (max-width: 800px) {
    .bienvenue {
        text-align: center;

        h1{
            font-size: 35px;
        }

        p{
            font-size: 23px;
        }
    }

    /* Section vendus */
    .vendus {
        height: auto;
        padding: 20px 10px;

        h2{
            padding-top: 3%;
        }
    }

    .vendus .titre {
        font-size: 35px;
    }

    .vendus ul {
        flex-direction: column;
        padding-top:100px ;
        gap: 50px;
    }

    .vendus ul li{
        font-size: 12px;
    }

    .vendus img {
        width: 150px;
        height: 150px;
        box-shadow: 15px 15px 0px 0px rgba(0, 0, 0, 0.415) ;
    }

    .question {
        flex-direction: column; /* Empile les éléments */
        padding: 20px 10px;
        height: auto;
    }

    .question h1 {
        font-size: 35px; /* Réduction de la taille pour mobile */
        padding: 0.5%;
        margin-bottom: 5px;
    }

    .faq {
        width: 90%; /* La largeur s'adapte à l'écran */
        max-width: 100%; /* Empêche un débordement */
        gap: 15px;
    }

    .faq summary {
        font-size: 18px; /* Réduction de la taille du texte */
        padding: 20px 15px;
    }

    .faq p {
        font-size: 16px;
        padding: 10px;
    }

    .contact-form {
        width: 80%;
    }

    .message{
        text-align: center;
    }
    
    .message h1 {
        font-size: 35px;
    }

    .message p {
        font-size: 18px;
    }
}