/* ============================================
   PAGE INFOS - CONSIGNES DE TRI
   ============================================ */

/* Layout principal : poubelles + détails côte à côte */
.sorting-layout {
    display: flex;
    flex-direction: row;
    gap: 10rem;
    padding: 3rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

/* GAUCHE : Conteneur des poubelles */
.bin-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex-shrink: 0;
    margin-left: 5rem;
}

/* DROITE : Zone des détails */
.details-tri {
    flex: 1;
    min-width: 0; /* Important pour le responsive */
}

#bins-details {
    padding: 2rem;
    gap: 40px;
}

/* ============================================
   POUBELLES INTERACTIVES
   ============================================ */

/* Structure de base d'une poubelle */
.poubelle {
    position: relative;
    width: 80px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.poubelle:hover {
    transform: scale(1.05);
}

/* Couvercle de la poubelle */
.couvercle {
    width: 90px;
    height: 20px;
    border-radius: 5px;
    position: absolute;
    top: 0;
    left: -5px;
    transform-origin: left center;
    transition: transform 0.2s ease;
}

/* Corps de la poubelle */
.corps {
    width: 80px;
    height: 90px;
    border-radius: 0 0 8px 8px;
    position: absolute;
    top: 20px;
}

/* Animation du couvercle au survol */
.poubelle:hover .couvercle {
    transform: rotate(-10deg);
}

/* ============================================
   COULEURS DES POUBELLES
   ============================================ */

/* Poubelle Bleue */
.poubelle-bleue .couvercle,
.poubelle-bleue .corps {
    background-color: #2196F3;
}

/* Poubelle Jaune */
.poubelle-jaune .couvercle,
.poubelle-jaune .corps {
    background-color: #f7cb00;
}

/* Poubelle Verte */
.poubelle-verte .couvercle,
.poubelle-verte .corps {
    background-color: #4CAF50;
}

/* Poubelle Grise */
.poubelle-grise .couvercle,
.poubelle-grise .corps {
    background-color: #808080;
}

/* Poubelle Biodéchet */
.poubelle-biodechet .couvercle,
.poubelle-biodechet .corps {
    background-color: #8B4513;
}

/* Poubelle Déchéterie */
.poubelle-decheterie .couvercle,
.poubelle-decheterie .corps {
    background-color: #2E7D32;
}

/* Label sur la poubelle */
.poubelle-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.80rem;
    color: black;
    font-weight: 700;
    pointer-events: none;
    z-index: 10;
}

/* ============================================
   ZONE DE DÉTAILS DES DÉCHETS
   ============================================ */

#bins-details h2 {
    margin-bottom: 20px;
    color: #2c5f2d;
    font-size: 1.5rem;
    text-transform: capitalize;
}

/* Liste des déchets */
#bins-details ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Carte individuelle de déchet */
#bins-details li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f9f9f9;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
    padding: 15px;
    border-radius: 20px;
    transition: transform 0.2s ease;
}

#bins-details li:hover {
    transform: translateY(-2px);
    filter: drop-shadow(6px 6px 12px rgba(0, 0, 0, 0.25));
}

/* Icône du déchet */
.dechet-icon {
    width: 60px;
    height: 60px;
    align-self: flex-start;
    pointer-events: none;
}

/* Nom du déchet */
#bins-details strong {
    font-size: 1.1rem;
    color: #333;
}

/* Texte "Bon à savoir" */
.bon-a-savoir {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
}
