
:root {
    --primary-color: #2c82c9;    /* Bleu professionnel */
   --secondary-color: #1a1a1a;
    --accent-color: #e74c3c;     /* Rouge pour les alertes/points importants */
    --dark-color: #2c3e50;       /* Couleur de texte principale */
    --light-color: #f9f9f9;      /* Fond */
    --border-color: #d6dbdf;     /* Couleur des bordures */
    --text-color: #444;          /* Couleur de texte secondaire */
    --heading-font: 'Roboto', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* Hiérarchie typographique modulaire (scale 1.25) */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin: 1.75rem 0 1rem;
    line-height: 1.3;
    position: relative;
}

h1 {
    font-size: 2.441rem;  /* ~39px */
    color: var(--primary-color);
    border-bottom: 3px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.953rem;  /* ~31px */
    color: var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.25rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.563rem;  /* ~25px */
    color: var(--dark-color);
    font-weight: 600;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

h4 {
    font-size: 1.25rem;   /* ~20px */
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 1.75rem;
}

h5 {
    font-size: 1rem;      /* ~16px */
    color: var(--text-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h6 {
    font-size: 0.875rem;  /* ~14px */
    color: #666;
    font-weight: 500;
    font-style: italic;
}

/* Système de paragraphes amélioré */
p {
    font-family: var(--body-font);
    font-size: 1.125rem;  /* 18px de base pour meilleure lisibilité */
    color: var(--text-color);
    margin-bottom: 1.75rem;
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    max-width: 80ch;      /* Largeur optimale de lecture */
}

/* Styles contextuels */
.lead {
    font-size: 1.25rem;
    color: var(--dark-color);
    line-height: 1.7;
}

.small-text {
    font-size: 0.875rem;
    color: #666;
}

/* Harmonisation des listes */
ul, ol {
    font-family: var(--body-font);
    margin: 1.75rem 0;
    padding-left: 2.5rem;
}

ul {
    list-style-type: '→ ';
}

ol {
    list-style-type: decimal;
}

ul li, ol li {
    margin-bottom: 0.875rem;
    padding-left: 0.5rem;
    line-height: 1.7;
}

ul ul, ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Effets interactifs */
h2:hover, h3:hover {
    transition: all 0.3s ease;
    opacity: 0.9;
}

h2:hover {
    border-left-width: 6px;
    padding-left: 1.5rem;
}

h3:hover {
    border-bottom-color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }
    p { font-size: 1rem; }
}



/* ðºï¸ EFFETS SPÉCIAUX THÉMATIQUES */
.map-marker {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.legend {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ðºï¸ RESPONSIVE DESIGN */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
        text-align: left;
    }
    
    ul, ol {
        padding-left: 1.5rem;
    }
}

/* ðºï¸ CLASSES UTILITAIRES */
.text-layer {
    background-color: rgba(255,255,255,0.9);
    padding: 1rem;
    border-radius: 4px;
}

.coordinate {
    font-family: 'Courier New', monospace;
    color: var(--secondary-color);
    background-color: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}


/* Centrer la page et appliquer un fond différent */
.global-container {
   
    margin: auto;

    /* Fond différent du body */
   
 
}


/* Supprimer margin sur mobile */
@media (max-width: 768px) {
    .global-container {
        margin: 0; /* Supprime le margin sur mobile */
        padding: 0px; /* Optionnel : réduire le padding pour s'adapter à l'écran */
    }
}




@media (max-width: 576px) {
    .small-title {
        font-size: 0.8rem !important; /* Forcer l'application */
        line-height: 1.1; /* Réduire l'espacement */
        white-space: normal; /* Permet le retour à la ligne */
        word-break: break-word; /* Coupe les mots trop longs */
    }
}


/* Titre de catégorie */
.category-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    background: #f1f1f1;
    padding: 8px;
    border-radius: 5px;
}

/* Texte d'intro et barre de recherche */
.intro-text {
    font-size: 14px;
    color: #555;
}

.search-bar {
    width: 80%;
    max-width: 400px;
    margin: auto;
    font-size: 14px;
}



/* Responsivité */
@media (max-width: 768px) {
    .table th, .table td {
        font-size: 12px; /* Texte encore plus petit sur mobile */
        padding: 6px;
    }
    
    .file-icon, .format-icon {
        width: 20px;
        height: 20px;
    }
    
    .btn-sm {
        font-size: 10px;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .table-responsive {
        overflow-x: auto;
    }

    .table th, .table td {
        font-size: 11px;
        padding: 5px;
    }

    .category-title {
        font-size: 16px;
    }
}
.long-text {
    display: none; /* Caché par défaut */
}





.download-links, .infos-supplementaires, .why-use, .instructions {
    background: #eef5ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}


        

	.projections-section {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}



p {
    font-size: 16px;
    line-height: 1.6;
}


/* ð Typographie du contenu principal */
.main-content h1 {
    font-size: 2rem; /* Plus grand et plus visible */
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 1px;
}

.main-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #34495e;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}



.projections-container {
    text-align: center;
    margin-bottom: 20px;
}

.projection-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
}



.download-links ul, .infos-supplementaires ul, .why-use ul {
    list-style-type: none;
    padding: 0;
}

.download-links li, .infos-supplementaires li, .why-use li {
    padding: 10px 0;
}

.download-links a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}

.download-links a:hover {
    color: #ff6600;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}



.header-banner {
    background: url('images/baniere.jpg') center/cover no-repeat; /* Remplace 'images/banner.jpg' par le bon chemin */
     /* Couleur du texte pour le contraste */
    padding: 20px; /* Ajuste l’espace autour du texte */
    text-align: center;
    
}




/* Conteneur principal */
.map-container {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
	border: 2px solid #007bff;
    
}

/* Sur les écrans de moins de 768px (smartphones) */
@media screen and (max-width: 768px) {
    .map-container {
        width: 100%;
        height: 80vh; /* Ajustable si besoin */
    }
}




/* Carte */
#map {
    width: 100%;
    height: calc(100%);
    position: absolute;
  
    
    
}
/* En-tête */
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
    background-color: #f4f4f4;
    border-bottom: 2px solid #ddd;
    
}

.header-container h1 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.header-container p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}



/* Responsive */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Barre de recherche */
/* Style de la barre de recherche */
.search-ville {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    width: 320px;
    max-width: 70%;
	
}

/* Input de recherche */
.search-ville input {
    border: 1px solid #ccc;
    outline: none;
    padding: 8px 12px;
    font-size: 15px;
    width: 100%;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.search-ville input:focus {
    border-color: #007bff;
    box-shadow: 0px 0px 6px rgba(0, 123, 255, 0.5);
}

/* Bouton de recherche */
.search-ville button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.search-ville button:hover {
    background: #0056b3;
    transform: scale(1.05);
}






.references { background-color: #f8f9fa; border-left: 5px solid #007bff; padding: 15px; margin-top: 20px; margin-bottom:30px;border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); } .references h3 { color: #007bff; font-size: 1.2em; margin-bottom: 10px; } .references ul { list-style-type: none; padding: 0; } .references li { margin: 8px 0; } .references a { text-decoration: none; color: #333; font-weight: bold; transition: color 0.3s; } .references a:hover { color: #007bff; }
.downloadModal {
  z-index: 3000;
}



.carousel-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
}

.carousel-content p {
    font-size: 1rem;
    margin-bottom: 5px;
    color: white;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.comment-info {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px; /* Espacement entre l'icône et le texte */
}

.comment-info i {
    color: white;
}

.video-container {
        position: relative;
        padding-bottom: 56.25%; /* Ratio 16:9 */
        height: 0;
        overflow: hidden;
        max-width: 100%;
        width: 100%;
        margin: 0 auto; /* Centrer la vidéo sur les écrans plus larges */
    }

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* Limite la taille sur les grands écrans */
    @media (min-width: 768px) {
        .video-container {
            max-width: 80%; /* Réduit la taille de la vidéo sur grand écran */
        }
    }