.avisclient img{/* retrecie l'image et la met en format cercle */
    width: 50px;
	height: 50px;
	font-size:20px;
	border-radius: 50%;

}

.avisclient:hover { /* met en évidence l'avis sélectionné */
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



avisclient1{
	grid-area: un;
}
avisclient2 {
    grid-area: deux;
}
avisclient3 {
    grid-area: trois;
}
avisclient4 {
    grid-area: quatre;
}
avisclient5 {
    grid-area: cinq;
}
avisclient6 {
    grid-area: six;
}
avisclient7 {
    grid-area: sept;
}
avisclient8 {
    grid-area: huit;
}
avisclient9 {
    grid-area: neuf;
}
avisclient10 {
    grid-area: dix;
}

avisclient1, avisclient2, avisclient3, avisclient4, avisclient5, avisclient6, avisclient7, avisclient8, avisclient9, avisclient10 {
    display: flex;
    flex-direction: column; 
    padding: 10px;
    background-color: white; 
	border-color: #DAB30A;
	border-style:solid;
    max-height: 200px; 
    overflow-y: auto; 
}

.contenu-avis {
    display: flex; 
    column-gap: 10px; 
    align-items: center;
    background-color: white; 
	border-color: #DAB30A;
	border-style:solid;
}


.nom-etoiles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 16px;
}

.nom-etoiles p {
    color:darkslategray;
}

.nom-etoiles strong {
    color:darkslategray;
}


.texte-dessous {
    font-size: 14px;
    text-align: left;
    color: darkslategray;
    max-height: 120px; /* Limitation de la hauteur du texte */
    overflow-y: auto; /* Ajout d'une barre de défilement si le texte est trop long */
}

.texte-dessous p {
    font-size: 14px;
    text-align: left;
    color: darkslategray; 
}

/* Style pour le message d'erreur modal */
.login-error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-error-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #f44336;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.login-error-content h2 {
    color: #f44336;
    margin-top: 0;
    font-size: 24px;
}

.login-error-content p {
    font-size: 18px;
    margin: 20px 0;
    color: #333;
}

.login-error-content button {
    background-color: #DAB30A;
    color: black;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.login-error-content button:hover {
    background-color: black;
    color: #DAB30A;
    transform: scale(1.05);
}

/* on place chaque zones dans la grille */
.conteneur{
    margin:20px;
    display: grid;
    grid-template-columns: 1fr 1fr ;
	grid-template-rows: auto auto auto auto auto;
	gap: 10px;
    grid-template-areas:"un six"
                        "deux sept"
                        "trois huit"
                        "quatre neuf"
                        "cinq dix";
    height: 100vh;
}






/* CSS permettant de rendre plus beau le formulaire */
.avis {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border: 2px solid #DAB30A; 
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.etoiles {
    display: flex; 
    gap: 10px; 
    align-items: center; 
}

fieldset {
    border: none;
    padding: 0;
}

legend {
    font-size: 1.5rem;
    font-weight: bold;
    color: darkslategray;
    border-bottom: 2px solid #DAB30A;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: darkslategray;
}

textarea,
select,
input[type="text"] {
    width: calc(100% - 20px);  
    padding: 10px;
    margin: 5px 0 15px; 
    border: 1px solid #DAB30A;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: black;
    font-size: 1rem;
    resize: none;
    box-sizing: border-box; 
}

select {
    padding: 8px;
    appearance: none;
    background: #f9f9f9;
    border: 1px solid #DAB30A;
    color: black;
    font-size: 1rem;
    border-radius: 5px;
}

input[type="submit"],
input[type="reset"] {
    background-color: #DAB30A;
    color: black; 
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: black; 
    color: #DAB30A; 
}

textarea,
select,
input[type="text"],
input[type="submit"],
input[type="reset"] {
    display: block;
    width: 100%;
}

textarea {
    height: 35px; 
}




/* Styles spécifiques aux petits écrans */
@media (max-width: 1024px) {
    body {
        font-size: 14px;
    }

    header {
        height: 70px;
        padding-left: 0px;
        display: flex;
    }

    header ul {
        font-size: 0.8em;
        display: flex;
        clear: both;
    }

    header ul li {
        width: 100%;
        margin-right: 0px;
        
    }
    header img{
        width: 70px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    main {
        margin-top: 80px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .conteneur {
        grid-template-columns: 1fr;
        grid-template-areas: "un"
                             "deux"
                             "trois"
                             "quatre"
                             "cinq"
                             "six"
                             "sept"
                             "huit"
                             "neuf"
                             "dix";
        height: auto;
    }

    .avisclient {
        padding: 10px;
    }
    
    avisclient1, avisclient2, avisclient3, avisclient4, avisclient5, avisclient6, avisclient7, avisclient8, avisclient9, avisclient10 {
        max-height: 180px;
    }
    
    .texte-dessous {
        max-height: 100px;
    }

    .texte-dessous p {
        font-size: 12px;
    }

    .etoiles {
        flex-direction: column;
    }

    .avis form {
        width: 90%;
    }

    textarea {
        height: 100px;
    }

    input[type="submit"],
    input[type="reset"] {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    /* Ajustement du modal pour les petits écrans */
    .login-error-content {
        padding: 20px;
        width: 90%;
    }
    
    .login-error-content h2 {
        font-size: 20px;
    }
    
    .login-error-content p {
        font-size: 16px;
    }
}