/* --- CONFIGURATION GÉNÉRALE --- */
body {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* --- NAVIGATION --- */
/* j'ai eu quelque probleme mon menu passer en dessous de mes cadrez-index ma bien aider */
nav {
    background-color: #1F928F;
    position: sticky; 
    top: 0;
    z-index: 1000; 
    box-shadow: 5px 5px 10px #ccc;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
    font-weight: bold;
    transition: background 0.3s;
}

nav ul li a:hover {
    background-color: #1abc9c;
}

/* --- CONTENEUR PRINCIPAL --- */
main {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 5px 5px 10px #ccc;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 10px;
}

/* --- EFFET D'AVANCEMENT GLOBAL --- */
.carte, .avis, .cadre_des_conseil, .nouveaute {
    transition-property: transform, box-shadow, border-color;
	transition-duration: 0.3s;
	transition-timing-function: ease;
}

.carte:hover, .avis:hover, .cadre_des_conseil:hover, .nouveaute:hover {
    transform: translateY(-10px); 
    box-shadow: 5px 5px 10px #ccc; 
    border-color: #1F928F;
}

/* --- AMÉLIORATION DES IMAGES DANS AVIS --- */
.avis img {
    border-radius: 10px; 
    transition: transform 0.3s ease;
}

.avis:hover img {
    transform: scale(1.05);
}

/* --- PAGE CLASSIFICATION --- */
.grille_des_styles {
    display: grid;
    display: grid;
	grid-template-columns: 1fr 1fr 1fr; 
    gap: 25px;
    margin-bottom: 40px;
}

.carte {
    border: 1px solid #ddd;
    border-radius: 15px;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.illustration_pour_les_genre {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Évite de déformer l'image */
}

/* --- PAGE AVIS --- */
.grille_des_avis {
    display: flex;          
    flex-wrap: wrap;        /* On autorise le passage à la ligne */
    gap: 20px;              /* L'espace entre les avis */
    justify-content: center; /* centre mes avis s'il y a du vide */
}

.grille_des_avis > .avis {  /* chaque carte d'avis */
    flex: 1 1 320px;       
    max-width: 450px;       
}
.avis {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.livre, .longue {
    width: 180px;
    height: 260px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 5px 5px 10px #ccc;
    margin-bottom: 15px;
}

/* --- PAGE CONSEILS --- */
#boite_a_conseils .cadre_des_conseil {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.astuce-speciale {
    background-color: #e8f4f8 ;
    border-left: 5px solid #1F928F ;
}

/* --- PAGE NOUVEAUTÉS --- */
.boite_a_nouveautes {
    display: flex;          
    flex-wrap: wrap;        
    gap: 25px;             
    margin-top: 30px;
}

.boite_a_nouveautes > div { 
    flex: 1 1 300px;        
}
.nouveaute {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.nouveaute h3 {
    margin-top: 0;
    color: #1F928F;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* ---- COMPTE-RENDU (CORRECTIONS ICI) ---- */
.flexible {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* Ajouté pour le responsive */
}

.texte {
    flex: 1;
    min-width: 300px; /* Assure une lisibilité minimale */
}

/* Correction du sélecteur "image" en "img" */
.image-compte-rendu img, .bug {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 5px 5px 10px #ccc;
}

.code img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 10px auto;
    border-left: 5px solid #2c3e50;
}

.item {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
/* Mise en forme de la grille des objets (Kit Pro) */
.grille_des_objets {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.objet {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.objet img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Garde l'image propre sans la déformer */
    border-radius: 10px;
    box-shadow: 3px 3px 8px #ccc;
    margin-bottom: 10px;
}
.cadre_des_conseil .contenu {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.icon {
    width: 60px; /* Taille fixe pour les petites icônes sentiment/repos */
    height: auto;
    flex-shrink: 0; /* Empêche l'icône de s'écraser */
}

/* --- BAS DE PAGE --- */
footer {
    text-align: center;
    padding: 20px;
    background: #1F928F;
    color: white;
    margin-top: 40px;
}

