/* --- Configuration Globale --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Image de fond fixe */
    background: url('img/Geneve.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #222; /* Texte légèrement plus noir pour contraster avec la transparence */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Conteneur Principal --- */
.glass-container {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 95%;
    max-width: 1200px;
    padding: 20px;
}

/* --- En-tête --- */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #FFFFFF;
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Ombre forte pour détacher le titre du ciel */
    text-shadow: 0 4px 10px rgba(0,0,0,0.9);
}

/* Bloc d'instructions */
.instructions {
    /* Transparence forte (0.55) */
    background-color: rgba(255, 255, 255, 0.55);
    padding: 20px 30px;
    border-radius: 15px;
    display: inline-block;
    max-width: 800px;
    /* Ombre subtile */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid rgba(183, 28, 28, 0.8); /* Rouge Genève semi-transparent */
    backdrop-filter: blur(3px);
}

.instructions p {
    font-size: 1.15rem; /* Texte un peu plus gros pour la lisibilité */
    line-height: 1.6;
    color: #000; /* Noir pur pour contraste max */
    margin: 0;
    font-weight: 600; /* Graisse augmentée cause transparence */
    text-shadow: 0 0 10px rgba(255,255,255,0.5); /* Halo blanc autour du texte */
}

/* --- Feedback (Messages) --- */
#feedback-box {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px 25px;
    border-radius: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.feedback-neutral { color: #333; border-color: rgba(255,255,255,0.5); }
.feedback-success { color: #1b5e20; border-color: #4CAF50; background-color: rgba(232, 245, 233, 0.85); }
.feedback-soft-error { color: #bf360c; border-color: #ff5722; background-color: rgba(251, 233, 231, 0.85); }

/* --- Zone de Jeu --- */
.game-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Zone de départ (Déchets) */
.trash-pile {
    min-height: 150px;
    /* Fond quasi invisible (0.35) */
    background-color: rgba(255, 255, 255, 0.35); 
    border: 3px dashed rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

/* Objets (Draggable) */
.trash-item {
    width: 100px;
    height: 125px;
    /* Les objets restent assez opaques pour être vus (0.85) */
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    padding: 8px;
    transition: transform 0.2s;
    z-index: 100;
}

.trash-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: #fff;
}

.trash-item:active { cursor: grabbing; }

.trash-item img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 10px;
    pointer-events: none;
}

.trash-item span {
    font-size: 0.85rem;
    text-align: center;
    color: #000;
    font-weight: 700;
    line-height: 1.2;
}

/* Zone des conteneurs (Droppable) */
#bins-target {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.bin-wrapper {
    width: 130px;
    text-align: center;
    padding: 15px 10px;
    border-radius: 15px;
    transition: transform 0.3s;
    /* Fond très transparent (0.5) */
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    backdrop-filter: blur(2px);
}

/* Interaction au survol */
.bin-wrapper.hovered {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95); /* Devient presque opaque */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.bin-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.2));
}

.bin-label {
    margin-top: 12px;
    font-weight: 800; /* Très gras pour lire sur la photo */
    font-size: 0.9rem;
    color: #000;
    text-transform: uppercase;
    /* Contour blanc autour du texte noir pour lisibilité max */
    text-shadow: 
        -1px -1px 0 #fff,  
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff;
}

/* --- Boutons et Footer --- */
.controls { text-align: center; margin-top: 50px; }

.btn-reset {
    background-color: #D32F2F;
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: background-color 0.3s, transform 0.2s;
}

.btn-reset:hover {
    background-color: #B71C1C;
    transform: scale(1.05);
}

/* Footer sans fond, texte avec contour */
footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    color: #fff;
    background: none; /* Pas de fond */
    
    /* Ombre portée très puissante (Outline) pour lisibilité sur les lumières */
    text-shadow: 
        0 0 3px #000,
        0 0 5px #000,
        0 0 10px #000;
}

.credits {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 1; /* Opacité max */
    margin-top: 5px;
    color: #fff;
    font-weight: 500;
}