/* ================================
   PANNEAU DÉCHÈTERIE - PLUS GRAND ET LISIBLE
   CORRECTION: Taille fixe et scrollbar à droite
================================ */

#info-panel {
    position: fixed;
    top: 0;
    right: -700px;  /* Augmenté pour être hors écran */
    width: 700px !important;   /* Largeur fixe pour tous les panneaux - FORCE */
    height: 100vh !important;  /* Hauteur fixe = 100% de la hauteur d'écran - FORCE */

    background: linear-gradient(180deg, #1f1f33 0%, #151525 100%);
    color: #ffffff;

    padding: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);

    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    
    display: flex;
    flex-direction: column;
    
    /* S'assurer que le panneau ne change JAMAIS de taille */
    min-width: 700px !important;
    max-width: 700px !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    
    /* EMPÊCHER TOUT RÉTRÉCISSEMENT OU AGRANDISSEMENT */
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    overflow: hidden; /* Empêcher tout débordement du panneau lui-même */
}

#info-panel.active {
    right: 0;
}

/* Contenu scrollable - SCROLLBAR À DROITE */
#panel-content {
    flex: 1;
    overflow-y: auto;      /* Active le scroll vertical */
    overflow-x: hidden;    /* Pas de scroll horizontal */
    padding: 40px;         /* Padding uniforme */
    padding-top: 80px;     /* Plus d'espace en haut pour le bouton fermer */
    padding-right: 30px;   /* Moins de padding à droite pour la scrollbar */
    font-size: 15px;
    line-height: 1.6;
    
    /* Hauteur fixe pour forcer le scroll si nécessaire */
    height: 100%;
    box-sizing: border-box;
    
    /* FORCER LA LARGEUR ET EMPÊCHER TOUT DÉBORDEMENT */
    width: 100%;
    max-width: 700px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Personnalisation de la scrollbar (WebKit: Chrome, Safari, Edge) */
#panel-content::-webkit-scrollbar {
    width: 10px;
    background: rgba(255, 255, 255, 0.05);
}

#panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.3);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

#panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 204, 0.5);
}

/* Scrollbar pour Firefox */
#panel-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 204, 0.3) rgba(255, 255, 255, 0.05);
}

#info-panel h2 {
    font-size: 28px;        /* AUGMENTÉ de 24px à 28px */
    margin-bottom: 12px;
    font-weight: 700;
    padding-right: 50px;
    
    /* EMPÊCHER LE DÉBORDEMENT ET RÉTRÉCISSEMENT */
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.address {
    font-size: 15px;        /* AUGMENTÉ de 14px à 15px */
    opacity: 0.8;
    margin-bottom: 18px;
    line-height: 1.5;
    
    /* EMPÊCHER LE DÉBORDEMENT */
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.site-type {
    font-size: 15px;        /* AUGMENTÉ */
    padding: 10px 15px;     /* AUGMENTÉ */
    background: rgba(0, 255, 204, 0.1);
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 30px;
}

#info-panel h3 {
    font-size: 20px;        /* AUGMENTÉ de 18px à 20px */
    margin-top: 35px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Avertissement données simulées */
.data-warning {
    background: rgba(255, 165, 0, 0.2);
    border-left: 4px solid #ffa500;
    padding: 12px;          /* AUGMENTÉ */
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;        /* AUGMENTÉ */
}

/* Bouton fermer - PLUS GRAND */
.close-btn {
    position: absolute;
    top: 25px;              /* AUGMENTÉ */
    right: 25px;

    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 32px;        /* AUGMENTÉ de 28px à 32px */
    width: 50px;            /* AUGMENTÉ de 40px à 50px */
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
