/* Configuration générale */
@font-face {
    font-family: 'PoliceHistorique';
    src: url('polices/ec.woff2') format('woff2'); /* Remplacement par le format woff */
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}

/* 1. Forcer le conteneur principal à faire exactement la hauteur de l'écran */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* 100% de la hauteur de la fenêtre visible */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f8fafc; /* Couleur de fond de l'application */
    overflow: hidden; /* Empêche l'apparition de barres de défilement globales */
}

/* En mode plein écran natif, on applique les mêmes règles strictes */
.app-container:fullscreen {
    width: 100vw;
    height: 100vh;
    background-color: #f8fafc;
}


/* Styles des grandes zones */
.zone-nord {
    grid-area: nord;
    display: flex;
	flex-direction: column;
	width: 100%;
	height: auto;
	flex-shrink: 0;
	position: relative;
	z-index: 1000;
	user-select: none;

	/*background-color: #2c3e50;
    color: white;
	justify-content: space-between;  Pousse le titre à gauche et le bouton à droite 
    align-items: center;
    height: 28px;                Épaisseur fine et fixe type JFrame 
    min-height: 28px;
    padding: 0 10px;
    font-family: Arial, sans-serif;  Police système standard (réserve ec.woff2 aux fleuves) 
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    border-bottom: 1px solid #1a252f;*/
}

/* Reprend exactement l'ancien style de ta barre de titre d'hier soir */
.barre-titre-appli {
    width: 100%;
    height: 28px;
    min-height: 28px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between; /* Titre à gauche, bouton Plein Écran à l'extrême droite */
    align-items: center;
    padding: 0 10px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    box-sizing: border-box;
    border-bottom: 1px solid #1a252f;
}
.zone-est {
    grid-area: est;
    background-color: #f8f9fa;
    border-left: 1px solid #ccc;
    padding: 0px;
    overflow-y: auto;
}

/* ==========================================================================
   3. ZONE SUD : BARRE DE TEMPS ET FOOTER (CONVIVIALE ET ULTRA-COMPACTE)
   ========================================================================== */
.zone-sud {
    display: flex;
    flex-direction: column;
    padding: 4px 20px 4px 20px; /* Réduit le padding du bas de 6px à 2px */
    background-color: #1e293b;
    color: #ffffff;
    height: 58px; /* Hauteur totale abaissée de 68px à 44px (le strict minimum) */
    box-sizing: border-box;
	overflow: hidden;  
	flex-shrink: 0;
}

.axe-temporel-container 
{
    width: 100%;
    position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	height: 18px; /* Espace vertical dédié à la glissière et aux chiffres */
}

#barreTemps {
    width: 100%;
    cursor: pointer;
    accent-color: #38bdf8;
    margin: 0;
	padding: 0;
    height: 10px; /* Glissière encore plus fine */
}


/* Effet visuel au survol de la souris */
#txtAnnee:hover, txtLoupe:hover {
    background-color: #475569; /* Le gris devient un peu plus clair pour simuler un bouton */
}


/* Conteneur des labels textuels sous l'axe */
.labels-temporels 
{
    position: relative;
    width: 100%;
    height: 12px; /* Hauteur réduite de 12px à 10px */
    margin-top: 2px; /* Rapproche encore plus les textes du curseur */
	margin-bottom: 4px;
}

.labels-temporels span {
    position: absolute;
    font-size: 0.68rem; /* Légèrement plus petit pour ne pas chevaucher le footer */
    color: #94a3b8;
    transform: translateX(-50%);
    white-space: nowrap;
    line-height: 1;
	top:0;
}

/* Ajustement de la petite marque verticale */
.labels-temporels span::before {
    content: "";
    position: absolute;
    top: -4px; 
    left: 50%;
    width: 1px;
    height: 3px; /* Plus discret */
    background-color: #1e293b;
}

/* La ligne des contrôles du bas */
.footer-controles 
{
	position: relative;
    display: flex;
	flex-direction: column;
   	justify-content: space-between;
    /*align-items: center;*/
	padding: 6px, 15px;
	background-color: #e0e0e0; 
    /*width: 100%;*/
	height: 58px;
    /*margin-top: 2px;*/ /* Micro-espacement réduit au minimum */
	box-sizing: border-box;
	font-family: 'Courier New', Courier, monospace;
	font-size: 12px;
	border-top: 1px solid #999999;	
}

.controle-gauche {
    flex: 1;
    text-align: left;
    font-size: 0.8rem; /* Un poil plus compact */
	line-height: 18px;
	white-space: nowrap;
}

.controle-milieu {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 18px;
}

/*.controle-milieu input {
    width: 65px;
    height: 16px;        Hauteur verrouillée au pixel près 
    padding: 0 4px;     
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    text-align: center;
    font-size: 0.8rem;
    background-color: #334155; 
    color: #ffffff;
    box-sizing: border-box;
    line-height: 16px;
}*/

.controle-droite {
    flex: 1;
    text-align: right;
	font-size: 0.8rem;
	line-height: 18px;
}

/* ==========================================================================
   REFONTE ZONE CENTRALE ET SUPPRESSION DES MARGES GRISES
   ========================================================================== */

.zone-centre {
    display: flex;
    flex: 1; 
    width: 100%;
    overflow: hidden;
    min-height: 0; 
}

/* Le conteneur global de la carte (67% de la largeur) */
.carte-layout {
    flex: 0 0 67%; 
    display: grid;
    /* Colonne 2 (Latitude) = 16px | Ligne 2 (Longitude) = 16px pour une symétrie parfaite */
    grid-template-columns: 1fr 16px;
    grid-template-rows: calc(100% - 16px) 16px;
    height: 100%; 
    background-color: #f8fafc; 
    overflow: hidden;
    box-sizing: border-box;
}

/* ==========================================================================
   PLACEMENT GÉOMÉTRIQUE FORCE DES ÉLÉMENTS DANS LA GRILLE
   ========================================================================== */

   /* L'Espace Canvas : prend la case en haut à gauche */
   .carte-principale-container {
       grid-column: 1;
       grid-row: 1;
       display: flex;
       justify-content: center;
       align-items: center;
       width: 100%;
       height: 100%;
       overflow: hidden; /* Empêche le Canvas de déborder pendant le calcul */
       background-color: #cbd5e1; 
   }

   #carteCanvas {
       display: block;
	   max-width: 100%;
	   max-height: 100%;
       box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
   }
   
.axe-latitude-container {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
    padding: 2px 0;
    width: 100%;
    height: 100%;
    background-color: #e2e8f0;
    border-left: 1px solid #cbd5e1;
    box-sizing: border-box;
}

.btn-fleche-lat {
    width: 12px;
    height: 14px;
    padding: 0;
    font-size: 7px;
    line-height: 1;
    background-color: #d4d4d4;
    color: #1e293b;
    border: 1px solid #888888;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.btn-fleche-lat:hover {
    background-color: #38bdf8;
    border-color: #0284c7;
}

.btn-fleche-lat:active {
    background-color: #0284c7;
    color: #ffffff;
}

#curseurLatitude {
    writing-mode: vertical-lr; 
    direction: rtl;            
    appearance: slider-vertical; 
    flex: 1;
    width: 8px;                
    height: auto;               
    cursor: pointer;
    accent-color: #38bdf8;
    margin: 0;
    padding: 0;
}

/* 3. L'Axe des Longitudes : HORIZONTAL et en BAS (Ligne 2, Colonne 1) */
/* --- AXE DES LONGITUDES (BAS) --- */
.axe-longitude-container {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
    padding: 0 2px;
    width: 100%;
    height: 16px; 
    background-color: #e2e8f0;
    border-top: 1px solid #cbd5e1;
    box-sizing: border-box;
}

/* On retire l'effet "ligne fine unie" pour retrouver le 
bicolore natif */
#curseurLongitude {
    flex: 1;
    width: auto;
    height: 8px; 
    cursor: pointer;
    accent-color: #38bdf8;
    margin: 0;
    padding: 0;
}
/* Le coin mort transformé en bouton loupe interactif */
.axe-angle {
    grid-column: 2;
    grid-row: 2;
    background-color: #e2e8f0; 
    border-top: 1px solid #cbd5e1;
    border-left: 1px solid #cbd5e1;
    border-bottom: none;
    border-right: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0;
    margin: 0;
    transition: background-color 0.2s;
}

.axe-angle:hover {
    background-color: #cbd5e1; /* S'assombrit légèrement au survol */
}

/* Le conteneur du slider vertical de zoom secret (Flottant) */
.curseur-zoom-flottant {
    position: absolute;
    bottom: 88px; /* Calé juste au-dessus du coin mort (68px sud + 16px longitude + marge) */
    right: 33%;    /* Aligné sur la bordure de l'espace texte (33%) */
    transform: translateX(100%); /* Ajustement pile poil dans l'axe de 16px */
    width: 24px;
    height: 120px;
    background-color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgb(0 0 0 / 0.3);
    display: none; /* Masqué par défaut */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    z-index: 100;
}

#curseurZoomSecret {
    writing-mode: vertical-lr;
    direction: rtl;
    appearance: slider-vertical;
    height: 100px;
    width: 8px;
    cursor: pointer;
    accent-color: #38bdf8;
}

/* 5. Volet de texte à 33% */
.espace-texte {
    flex: 0 0 33%;
    overflow-y: auto;
    padding: 20px;
    border-left: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* ==========================================================================
   6. SUPPRESSION DES FLÈCHES GRAPHIOUES (SPINNERS) SUR LES INPUTS NUMÉRIQUES
   ========================================================================== */

/* Masquage pour Chrome, Safari, Edge et Opera */
#inputAnnee::-webkit-outer-spin-button,
#inputAnnee::-webkit-inner-spin-button,
#inputLoupe::-webkit-outer-spin-button,
#inputLoupe::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Masquage pour Firefox */
#inputAnnee,
#inputLoupe {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ==========================================================================
   EXTENSION INTERACTIVE : RECRÉATION DU JSPLITPANE SWING
   ========================================================================== */

.zone-centre {
    display: flex;
    flex-direction: row; /* Aligne les panneaux et la barre côte à côte */
    flex: 1; 
    width: 100%;
    overflow: hidden;
    min-height: 0; 
}

/* Forcer les proportions initiales de vos panneaux via l'identifiant */
#panneauGaucheMap {
    flex: 0 0 67%; /* 67% par défaut au démarrage (conforme à votre état) */
    width: 67%;
    min-width: 200px; /* Limite minimale pour ne pas étouffer la carte */
}

#conteneurTexte {
    flex: 1; /* Occupe les 33% restants */
    min-width: 150px; /* Limite minimale pour le texte */
	padding: 10px;     /* ⚡ Maîtrise l'espace intérieur pour un rendu serré et élégant */
	box-sizing: border-box; /* Indispensable : inclut le padding dans le calcul de la largeur */
	display: block; 
	overflow-y: auto;
}

/* La barre physique de séparation du Split Pane */
.split-divider {
    width: 6px; /* Épaisseur de la poignée Java Swing */
    background-color: #cbd5e1; /* Gris neutre raccord avec vos axes */
    border-left: 1px solid #94a3b8;
    border-right: 1px solid #94a3b8;
    cursor: col-resize; /* Curseur horizontal fléché de redimensionnement */
    flex-shrink: 0; /* Interdiction de comprimer la barre */
    transition: background-color 0.15s;
}

/* Effet de survol sur la barre de séparation */
.split-divider:hover {
    background-color: #38bdf8; /* Devient bleu ciel réactif pour inviter au glissement */
}

/* ==========================================================================
   AFFINAGE DES CURSEURS RONDS (THUMBS) DES SLIDERS
   ========================================================================== */

/* 🍏 1. Pour Chrome, Safari, Edge et Opera */
#barreTemps::-webkit-slider-thumb,
#curseurLatitude::-webkit-slider-thumb,
#curseurLongitude::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;          /* Largeur du rond réduite (au lieu de ~18px natif) */
    height: 12px;         /* Hauteur du rond réduite */
    border-radius: 50%;   /* Force la forme parfaitement ronde */
    background: #38bdf8;  /* Conserve votre couleur bleu ciel actuelle */
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
}

/* Effet au survol pour Chrome/Safari/Edge */
#barreTemps::-webkit-slider-thumb:hover,
#curseurLatitude::-webkit-slider-thumb:hover,
#curseurLongitude::-webkit-slider-thumb:hover {
    background: #0ea5e9;  /* Le bleu devient un poil plus soutenu au survol */
    transform: scale(1.1); /* Légère animation de grossissement très subtile */
}

/* 🦊 2. Pour Firefox */
#barreTemps::-moz-range-thumb,
#curseurLatitude::-moz-range-thumb,
#curseurLongitude::-moz-range-thumb {
    width: 12px;          /* Largeur du rond réduite */
    height: 12px;         /* Hauteur du rond réduite */
    border: none;         /* Supprime la bordure native de Firefox */
    border-radius: 50%;
    background: #38bdf8;  /* Conserve votre couleur bleu ciel actuelle */
    cursor: pointer;
    transition: background-color 0.15s;
}

/* Effet au survol pour Firefox */
#barreTemps::-moz-range-thumb:hover,
#curseurLatitude::-moz-range-thumb:hover,
#curseurLongitude::-moz-range-thumb:hover {
    background: #0ea5e9;
}

.cartouche-retro-sud 
{
	margin-left: auto; /* 🎯 Force magique : pousse le cartouche tout à droite du footer */
	background-color: #000000;
	color: #ffffff;
	border: 1px solid #ffffff;
	height: 24px; /* Hauteur compacte type bouton Swing */
	display: inline-flex;
	align-items: center;
	padding: 0 8px;
	box-shadow: 2px 2px 0px #ffffff;
	max-width: 350px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

#cartoucheNom {
    font-weight: bold;
    /*text-transform: uppercase;*/
    color: #ffffff;
}

/* Cadre de regroupement pour les indicateurs (Fidélité Java Swing Border) */
.cadre-indicateur-swing 
{
    /*position: relative;*/
    

    display: inline-flex;
    align-items: center;
    border-radius: 2px;
    background-color: #000000; 
	color: #ffffff;
	border: 1px solid #ffffff;
	height: 24px; 
	padding: 0 8px;
    margin-right: 15px;
	box-shadow: 2px 2px 0px #555555;
	box-sizing: border-box;
}

#cartoucheTexte 
{
    color: #cccccc;
	margin-left: 4px;
}

/* Style de base partagé pour les indicateurs (Centre, Date, Loupe) */
.indicateur-swing 
{
    margin-right: 20px; /* Espace régulier entre les blocs */
    display: inline-flex;
    align-items: center;
}

/* Style du petit texte d'en-tête du cadre */
.label-cadre 
{
    font-weight: bold;
    margin-right: 4px;
/*    font-size: 0.95em;
    color: #333333;
*/}

/* Optionnel : On s'assure que les valeurs numériques restent bien lisibles */
/*#txtLatitude, #txtLongitude {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}*/

/*#txtAnnee, #txtLoupe {
    display: inline-block; 
    width: 65px;
    height: 16px;           Hauteur verrouillée au pixel près, identique à votre ancien style 
    padding: 0 4px;     
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    text-align: center;
    font-size: 0.8rem;
    background-color: #334155; 
    color: #ffffff;
    box-sizing: border-box;
    line-height: 14px;      Ajusté à 14px pour que le texte soit parfaitement centré verticalement sans bordure 
    
     🔹 NOUVEAU : Indique à l'utilisateur que le bloc est cliquable 
    cursor: pointer;      
    transition: background-color 0.2s;  Transition douce pour l'effet au survol 
}
*/
#txtLatitude, #txtLongitude, #txtAnnee, #txtLoupe {
    color: #ffffff !important;
    font-weight: bold;
    display: inline;
}

/* 🎯 LA SOUS-LIGNE DES COMPOSANTS (Porte l'alignement Flexbox) */
.ligne-indicateurs {
    display: flex;
    align-items: center;
    width: 100%;
    height: 24px; /* Hauteur exacte de vos composants */
}

/* 🎯 LA SOUS-LIGNE DU TEMPS : Redonne le contrôle absolu pour vos left % */
.ligne-chronologie {
    position: relative;
    width: 100%;
    height: 20px; /* Espace dédié pour le slider et les textes volants */
    margin-top: 4px;
}

/* ==========================================================================
   3. ZONE SUD : BARRE DE TEMPS ET FOOTER (CONVIVIALE ET ULTRA-COMPACTE)
   ========================================================================== */
.zone-sud.footer-controles {
    position: relative;
    display: flex;
    flex-direction: row;       /* Aligne Centre, Date, Loupe côte à côte */
    align-items: flex-end;     /* Aligne tous les blocs vers le bas du footer */
    justify-content: flex-start;
    padding: 0 15px 6px 15px;  /* Marge de 6px en bas pour caler les cadres */
    background-color: #e0e0e0; /* Gris standard des fenêtres Java Swing */
    height: 58px;              /* Hauteur totale verrouillée */
    box-sizing: border-box;
    overflow: hidden;  
    flex-shrink: 0;
    border-top: 1px solid #999999; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
}

/* 🎯 L'AXE TEMPOREL : Placé de manière absolue tout en haut des 58px */
.axe-temporel-container {
    position: absolute;
    top: 4px;                  /* Calé tout en haut de la zone-sud */
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    height: 22px;              /* Espace vertical pour le slider et les repères */
}

#barreTemps {
    width: 100%;
    cursor: pointer;
    accent-color: #38bdf8;
    margin: 0;
    padding: 0;
    height: 8px;
}

.labels-temporels {
    position: relative;
    width: 100%;
    height: 12px;
    margin-top: 1px;
}

.labels-temporels span {
    position: absolute;
    font-size: 0.68rem;
	font-weigh: bold;
    color: #1e293b;            /* Gris sombre lisible sur fond e0e0e0 */
    transform: translateX(-50%);
    white-space: nowrap;
    line-height: 1;
    top: 0;
}

/* 🎯 UNIFORMISATION DES TROIS CADRES RETRO NOIR ET BLANC */
.cadre-indicateur-swing {
    display: inline-flex;
    align-items: center;
    border-radius: 2px;
    background-color: #000000; /* Fond noir */
    color: #ffffff;            /* Texte blanc */
    border: 1px solid #ffffff; /* Bordure blanche */
    height: 24px;              /* Hauteur compacte Swing */
    padding: 0 8px;
    margin-right: 15px;        /* Espacement horizontal entre les blocs */
    box-shadow: 2px 2px 0px #555555;
    box-sizing: border-box;
    z-index: 1;                /* Reste au-dessus du conteneur absolu */
}

.label-cadre {
    font-weight: bold;
    margin-right: 4px;
    color: #ffffff;
}

#txtLatitude, #txtLongitude, #txtAnnee, #txtLoupe {
    color: #ffffff !important; /* Force les valeurs textuelles en blanc */
    font-weight: bold;
    display: inline;
}

/* 🎯 LE CARTOUCHE DE SURVOL : Se pousse à droite sur la même ligne */
.cartouche-retro-sud {
    margin-left: auto;         /* Pousse le bloc tout à droite de la ligne flex */
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    box-shadow: 2px 2px 0px #ffffff;
    max-width: 350px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    z-index: 1;
}

#cartoucheNom {
    font-weight: bold;
/*    text-transform: uppercase;*/
    color: #ffffff;
}

#cartoucheTexte {
    color: #cccccc;
    margin-left: 4px;
}

/* --- LE PARAGRAPHE ACTIF DEPLOYÉ --- */
.paragraphe-actif {
    background-color: #ffffff;
    padding: 12px 15 px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 5px 0;
}

/* 🔴 LE TITRE EN ROUGE (Civilisation, dates et intitulé) */
.titre-historique-rouge {
    margin: 0 0 8px 0;
    color: #c0392b; /* Rouge historique élégant (style brique/cardinal) */
    font-size: 14px;
    font-family: Arial, sans-serif;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 4px;
}

/* LE TEXTE DE L'HISTOIRE JUSTIFIÉ */
.texte-corps-justifie {
    line-height: 1.4;
    text-align: justify; /* Justification du texte pour un rendu d'encyclopédie */
    color: #2c3e50;
    font-size: 14px;
    margin: 0 0 10px 0;
}

/* --- LES BARRES DE NAVIGATION (HAUT ET BAS) --- */
.barre-navigation {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
    font-family: sans-serif;
	background-color: #f8fafc; /* Léger fond gris pour matérialiser la barre */
	border-radius: 4px;
}
.barre-navigation.nav-haut {
    margin-bottom: 8px;
    border-bottom: 1px solid #f2f4f4;
    padding-bottom: 4px;
}
.barre-navigation.nav-bas {
    margin-top: 10px;
    border-top: 1px solid #f2f4f4;
    padding-top: 6px;
}

/* --- LE BLOC CONTEXTUEL (BIBLIOGRAPHIE) --- */
.bloc-contexte-bas {
    margin-top: 10px;
    border-top: 1px dashed #bdc3c7;
    padding-top: 8px;
    font-size: 12px;
}
.titre-section-annexe {
    margin: 0 0 6px 0;
    color: #95a5a6;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: sans-serif;
}
.table-biblio-mini {
    width: 100%;
    border-collapse: collapse;
}
.table-biblio-mini td {
    padding: 5px 0;
    border-bottom: 1px solid #f9fafb;
}
.table-biblio-mini td:first-child {
    color: #2c3e50;
    font-weight: 500;
}
.table-biblio-mini td:last-child {
    color: #7f8c8d;
    font-style: italic;
    text-align: right;
}

/* --- STYLE DES HYPERLIENS CHRONOLOGIQUES (PASSÉS ET FUTURS) --- */
.flux-chronologique {
    display: flex;
    flex-direction: column;
    gap: 0; /* Espace régulier entre chaque ligne de titre */
    padding: 5px 20px;
}

/* 🔵 COULEUR BLEUE POUR LES TITRES NON ACTIFS */
.lien-paragraphe {
    color: #2980b9; /* Bleu roi élégant et lisible */
    text-decoration: none; /* Supprime le soulignement par défaut */
    font-size: 13.5px;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
    padding: 3px 6px;
    display: block;
    width: 100%;
	box-sizing: border-box;
}

/* Effet au survol de la souris */
.lien-paragraphe:hover {
    color: #1a5276; /* Bleu plus foncé au survol */
    text-decoration: underline; /* Le lien se souligne au survol */
    background-color: #ebf5fb; /* Léger fond bleuté pour marquer la zone */
    border-radius: 4px;
}

/* OPTIONNEL : Atténuation subtile pour les paragraphes déjà passés (effet de progression) */
.flux-chronologique.passes .lien-paragraphe {
    color: #34495e; /* Un bleu-gris plus sobre pour matérialiser le passé */
}
.flux-chronologique.passes .lien-paragraphe:hover {
    color: #1b2631;
    background-color: #f2f4f4;
}

/* 🔵 STYLE UNIQUE POUR TOUS LES HYPERLIENS CHRONOLOGIQUES (PASSÉS ET FUTURS) */
.flux-chrono {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2px 15px;
}

.flux-chrono a, 
.flux-chrono a:link, 
.flux-chrono a:visited {
    color: #2980b9; /* Bleu roi uniforme */
    text-decoration: none;
    font-size: 13.5px;
    font-family: Arial, sans-serif;
    transition: all 0.2s ease;
    padding: 3px 6px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Effet au survol de la souris pour n'importe quel lien */
.flux-chrono a:hover {
    color: #1a5276; /* Bleu plus foncé au survol */
    text-decoration: underline;
    background-color: #ebf5fb; /* Léger fond bleuté */
    border-radius: 4px;
}

/* --- COMPOSANT ACCORDÉON DES CIVILISATIONS --- */
.bloc-civilisation {
    margin-bottom: 2px;
}

/* L'en-tête cliquable de la Civilisation */
.entete-civilisation {
    background-color: #f8fafc;
    color: #2c3e50;
    font-size: 13.5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    user-select: none; /* Évite de sélectionner le texte lors des clics rapides */
    border: 1px solid #e2e8f0;
}

.entete-civilisation:hover {
    background-color: #edf2f7;
    color: #2980b9;
}

/* Quand la civilisation est cliquée et ouverte */
.entete-civilisation.actif {
    background-color: #ebf5fb;
    color: #2980b9;
    border-color: #aed6f1;
}

/* Le conteneur des sous-paragraphes (Masqué par défaut) */
.sous-menu-paragraphes {
    display: none; /* 🔒 CACHE les paragraphes */
    padding-left: 15px; /* Décale les sous-liens vers la droite */
    border-left: 2px dashed #cbd5e1;
    margin: 2px 0 6px 5px;
}

/* Conteneur affiché lorsque la classe 'ouvert' est injectée en JS */
.sous-menu-paragraphes.ouvert {
    display: flex; /* 🔓 DÉPLOIE les paragraphes */
    flex-direction: column;
}

/* 🎯 Style de base des deux zones cliquables (Haut et Bas) */
.nav-bloc-gauche, 
.nav-bloc-droite {
    padding: 6px 12px;
    cursor: pointer;          /* ⚡ Transforme la flèche de la souris en MAIN cliquable */
    transition: all 0.2s ease; /* Rend le changement de couleur fluide */
    user-select: none;        /* Empêche le texte de bleuir si on clique très vite */
    font-weight: 500;
}

/* 🌟 Effet visuel immédiat lorsque la souris passe sur un bouton */
.nav-bloc-gauche:hover, 
.nav-bloc-droite:hover {
    color: #2980b9;            /* Le texte passe au bleu historique */
    background-color: #ebf5fb; /* Léger fond bleuté de survol */
    border-radius: 4px;
}

/* Sécurité : si la zone est vide (pas de civilisation précédente/suivante), pas d'effet */
.nav-bloc-gauche:empty,
.nav-bloc-droite:empty {
    cursor: default;
    background-color: transparent;
    padding: 0;
}
/* ==========================================================================
   COMPLÉMENTS BARRES DE NAVIGATION, LIENS DYNASTIES ET JFRAMES
   ========================================================================== */

/* Ajustement final des barres de navigation (remplace l'ancien styleBarre JS) */
.barre-navigation {
    font-size: 12.5px;
    font-family: Arial, sans-serif;
    margin: 8px 0;
    width: 100%;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.nav-bloc-gauche, 
.nav-bloc-droite {
    font-weight: bold;
    display: inline-block;
}

/* Mise en évidence des liens dynasties dans le texte */
#conteneurTexte .lien-dynastie {
    color: #0284c7;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

#conteneurTexte .lien-dynastie:hover {
    color: #0369a1;
}

/* Fenêtre mobile type JFrame Swing */
.jframe-dynastie {
    position: fixed;
    top: 150px;
    left: 35%;
    background-color: #e0f2fe;
    border-radius: 8px;
    width: 455px;
    max-height: 65vh;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    border: 2px solid #0284c7;
    font-family: Arial, sans-serif;
    display: none; /* Masquée par défaut */
    flex-direction: column;
}

/* Barre de titre supérieure (Poignée de déplacement) */
.jframe-header {
    background-color: #0284c7;
    color: #ffffff;
    padding: 10px 14px;
    cursor: move;
    font-weight: bold;
    font-size: 14px;
    user-select: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Bouton de fermeture X */
.bouton-fermer-jframe {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    padding: 2px 6px;
    user-select: none;
}

.bouton-fermer-jframe:hover {
    color: #f87171;
}

/* Zone de contenu interne avec ascenseur */
.jframe-corps {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Harmonisation des tableaux de rois injectés */
.jframe-corps table {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 8px;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

.jframe-corps th {
    background-color: #bae6fd;
    color: #0369a1;
    padding: 8px;
    border: 1px solid #7dd3fc;
    font-size: 13.5px;
    text-align: center;
}

.jframe-corps td {
    padding: 6px 10px;
    border: 1px solid #bae6fd;
    font-size: 13.5px;
    color: #334155;
}

.jframe-corps tr:nth-child(even) {
    background-color: #f8fafc;
}

.jframe-corps .pays {
    font-weight: bold;
    color: #0369a1;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.jframe-corps .centrer {
    text-align: center;
}

/* Style compact du bouton Plein Écran dans la barre de titre */
#btnPleinEcran {
    height: 20px;
    padding: 0 8px;
    font-size: 11px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    background-color: #34495e;
    color: #ffffff;
    border: 1px solid #5d6d7e;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
}

#btnPleinEcran:hover {
    background-color: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}
/* Style compact du bouton Plein Écran dans la barre de titre */
#btnPleinEcran {
    height: 20px;
    padding: 0 8px;
    font-size: 11px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    background-color: #34495e;
    color: #ffffff;
    border: 1px solid #5d6d7e;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
}

#btnPleinEcran:hover {
    background-color: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

/* ==========================================================================
   BOUTON ET TIROIR DÉPLIABLE DE LA BIBLIOGRAPHIE
   ========================================================================== */
.bouton-biblio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f8fafc;
    color: #2c3e50;
    font-size: 12.5px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    user-select: none;
    transition: all 0.2s ease;
}

.bouton-biblio-toggle:hover,
.bouton-biblio-toggle.actif {
    background-color: #ebf5fb;
    color: #2980b9;
    border-color: #aed6f1;
}

.contenu-biblio-pliable {
    display: none; /* Masqué par défaut */
    margin-top: 8px;
    padding-left: 8px;
    border-left: 2px solid #cbd5e1;
}

.contenu-biblio-pliable.ouvert {
    display: block; /* Affiché au clic */
}

/* ==========================================================================
   BOÎTE DE DIALOGUE MODALE (STYLE SWING)
   ========================================================================== */
.dialogue-swing {
    padding: 0;
    border: 2px solid #0284c7;
    border-radius: 8px;
    background-color: #f8fafc;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    font-family: Arial, sans-serif;
    width: 340px;
    color: #1e293b;
}

.dialogue-swing::backdrop {
    background-color: rgba(15, 23, 42, 0.45);
}

.dialogue-header {
    background-color: #0284c7;
    color: #ffffff;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 13.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-fermer-dialogue {
    background: none;
    border: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}

.btn-fermer-dialogue:hover {
    color: #f87171;
}

.dialogue-corps {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13px;
}

.ligne-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    cursor: pointer;
}

.ligne-saisie-loupe {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ligne-saisie-loupe input[type="number"] {
    width: 75px;
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-align: right;
    font-size: 13px;
}

.ligne-saisie-loupe input[type="number"]:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.dialogue-pied {
    padding: 10px 16px;
    background-color: #e2e8f0;
    border-top: 1px solid #cbd5e1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-swing-primaire, .btn-swing-secondaire {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid #94a3b8;
}

.btn-swing-primaire {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0369a1;
}

.btn-swing-primaire:hover {
    background-color: #0369a1;
}

.btn-swing-secondaire {
    background-color: #ffffff;
    color: #334155;
}

.btn-swing-secondaire:hover {
    background-color: #f1f5f9;
}

/* ==========================================================================
   RECTANGLE DE SÉLECTION MULTIPLE SUR LA CARTE
   ========================================================================== */
.rectangle-selection-carte {
    position: fixed;
    border: 1.5px dashed #0284c7;
    background-color: rgba(56, 189, 248, 0.2);
    pointer-events: none; /* Ne bloque jamais les mouvements de la souris */
    z-index: 9999;
    display: none;
}

/* Barre de menus style Java Swing (23px exacts) */
.jmenubar {
    width: 100%;
    height: 23px;
    background: linear-gradient(to bottom, #f4f4f4 0%, #e4e4e4 100%);
    border-bottom: 1px solid #999999;
    font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
    font-size: 12px;
    color: #000000;
    display: flex;
    align-items: center;
    padding: 0 2px;
    box-sizing: border-box;
}

/* Titres de premier niveau (JMenu) */
.jmenu {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.jmenu-titre {
    background: transparent;
    border: 1px solid transparent;
    height: 20px;
    padding: 0 7px;
    font-family: inherit;
    font-size: 12px;
    color: #000000;
    cursor: default;
    display: flex;
    align-items: center;
}

.jmenu-titre:hover {
    background-color: #d8e6f2;
    border-color: #a3c2e0;
}

.jmenu.ouvert > .jmenu-titre {
    background-color: #b8cfe5;
    border-color: #6382bf;
}

/* Menus déroulants (JPopupMenu) */
.jpopupmenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 185px;
    background-color: #f0f0f0;
    border: 1px solid #7a8a99;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
    list-style: none;
    margin: 0;
    padding: 2px;
    z-index: 2000;
}

.jmenu.ouvert > .jpopupmenu {
    display: block;
}

/* Entrées de menu (JMenuItem) */
.jmenuitem {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 21px;
    padding: 0 8px 0 22px;
    cursor: default;
    white-space: nowrap;
    color: #000000;
}

.jmenuitem:hover:not(.disabled) {
    background-color: #b8cfe5;
    outline: 1px solid #6382bf;
}

.jmenuitem.disabled {
    color: #888888;
}

.raccourci {
    color: #555555;
    font-size: 11px;
    margin-left: 20px;
}

.fleche-droite {
    font-size: 9px;
    margin-left: 12px;
    color: #333333;
}

/* Sous-menus imbriqués */
.jpopupmenu.submenu {
    top: -3px;
    left: 100%;
}

.jmenuitem.has-submenu:hover > .jpopupmenu.submenu {
    display: block;
}

/* Séparateur horizontal */
.jseparator {
    height: 0;
    border-top: 1px solid #b8cfe5;
    border-bottom: 1px solid #ffffff;
    margin: 3px 2px;
}

/* Cases à cocher et boutons radio */
.jmenuitem.checkbox::before,
.jmenuitem.radio::before {
    position: absolute;
    left: 6px;
    font-size: 11px;
    font-weight: bold;
}

.jmenuitem.checkbox.checked::before {
    content: "✓";
}

.jmenuitem.radio.checked::before {
    content: "●";
    font-size: 9px;
}

/* ==========================================================================
   FLÈCHES D'EXTRÉMITÉ DE LA BARRE DE TEMPS (STYLE JAVA SWING)
   ========================================================================== */
.barre-temps-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    height: 12px;
    gap: 3px;
}

.btn-fleche-temps {
    width: 14px;
    height: 12px;
    padding: 0;
    font-size: 8px;
    line-height: 1;
    background-color: #d4d4d4;
    color: #1e293b;
    border: 1px solid #888888;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.btn-fleche-temps:hover {
    background-color: #38bdf8;
    border-color: #0284c7;
}

.btn-fleche-temps:active {
    background-color: #0284c7;
    color: #ffffff;
}

.barre-temps-wrapper #barreTemps {
    flex: 1;
    width: auto;
}

/* Aligne les repères chronologiques sur la largeur utile 
de la piste (entre les deux flèches de 14px + 3px) */
.axe-temporel-container .labels-temporels 
{
    padding: 0 17px;
    box-sizing: border-box;
}

/* Positionnement relatif du parent pour ancrer le sous-menu à droite */
.jmenuitem.has-submenu {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Sous-menu masqué par défaut et décalé à droite du menu parent */
.jmenuitem.has-submenu > .jpopupmenu {
    display: none;
    position: absolute;
    top: -3px;
    left: 100%;
    min-width: 110px;
}

/* Affichage du sous-menu au survol OU s'il est marqué comme ouvert */
.jmenuitem.has-submenu:hover > .jpopupmenu,
.jmenuitem.has-submenu.ouvert > .jpopupmenu {
    display: block;
}
