/* Importation des polices Google directement dans le CSS */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Rubik:wght@300;400;500&display=swap');

/* style pour toute la page */
body {
    margin: 0;
    font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    direction: rtl; /* écriture de droite à gauche */
}

/* conteneur de la carte */
tunisian-map {
    display: block;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    --title-display: none;
}

/* encart des informations */
#info-panel {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.96);
    padding: 25px 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 360px;
    width: 90%;
    display: none; /* caché par défaut */
    z-index: 1000;
    border-right: 6px solid #e91e63;
    text-align: right;
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease;
}

/* nom du gouvernorat - avec logo avant le texte */
#info-panel h3 {
    margin: 0 0 12px 0;
    color: #bf1d1d;
    font-family: 'Cairo', sans-serif;
    font-weight: 700; /* gras */
    font-size: 14pt; /* taille 14 */
    border-bottom: 2px solid #e91e63;
    padding-bottom: 10px;
    
    /* Alignement du logo et du texte */
    display: flex;
    align-items: center;
    gap: 10px; /* espace entre le logo et le nom */
}

/* Insertion du logo via CSS */
#info-panel h3::before {
    content: "";
    display: inline-block;
    background-image: url('logo.png');
    background-size: contain; /* l'image s'adapte sans être déformée */
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;  /* Ajustez la largeur selon la taille de votre logo */
    height: 30px; /* Ajustez la hauteur selon la taille de votre logo */
    flex-shrink: 0; /* Empêche le logo de se rétrécir si le texte est long */
}

/* texte des informations - Rubik normal 12 */
#info-panel p {
    margin: 10px 0;
    font-family: 'Rubik', sans-serif;
    font-weight: 400; /* normal */
    font-size: 11pt; /* taille 12 */
    line-height: 1.0;
    color: #2c3e50;
}

#info-panel p strong {
    color: #960909;
    display: inline-block;
    min-width: 100px;
    font-weight: 500;
}

/* bouton de fermeture */
.close-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #aaa;
    font-weight: bold;
    background: none;
    border: none;
    padding: 0 8px;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #e91e63;
}

/* adaptation pour les petits écrans */
@media (max-width: 600px) {
    #info-panel {
        padding: 18px 20px;
        bottom: 10px;
        width: 95%;
        max-width: 95%;
    }
    #info-panel p strong {
        display: block;
        min-width: auto;
    }
    tunisian-map {
        height: 75vh;
    }
}