* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-jti-green: #00bb31;
}

body {
    font-family: "seitu-variable", sans-serif;
    background-color: #E8EEED;
    overflow: hidden;
}

.view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.view.active {
    display: block;
}

.background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* --- POINTS SUR LA CARTE (DOTS) --- */
.dot {
    position: absolute;
    width: 30px; /* Taille pour un point normal sans numéro */
    height: 30px;
    background-color: var(--color-jti-green);
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    color: transparent; /* On cache le texte par défaut */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 5;
}

/* Les "Concentrateurs" (provinces/villes) sont plus gros et affichent le total en blanc */
.dot-concentrator {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important; /* Le texte devient visible (blanc) */
}

/* Les Saisies individuelles restent petites et SANS TEXTE */
.dot-operation {
    /* Rien de plus, le color: transparent s'applique */
}

.dot:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse-attention {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(0, 187, 49, 0.7); }
    50% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 20px 10px rgba(0, 187, 49, 0); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(0, 187, 49, 0); }
}

.dot-animating {
    animation: pulse-attention 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
    z-index: 100 !important;
}

.invisible-back-btn {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    top: 43%; 
    left: 4%; 
    width: 12%; 
    height: 10%;
}

/* --- OVERLAY VERT (NOUVEAU DESIGN IRLANDE) --- */
.detail-overlay {
    position: absolute;
    bottom: 0; 
    top: 40%; /* Laisse de l'espace au dessus comme sur la maquette */
    left: -100%; 
    width: 42vw; 
    background-color: var(--color-jti-green);
    border-radius: 0 35px 0 0; 
    box-shadow: 5px 0 15px rgba(0,0,0,0.15);
    z-index: 20;
    transition: left 0.5s ease-in-out; 
    display: flex;
    flex-direction: column;
}

.detail-overlay.overlay-active {
    left: 0;
}

.overlay-content {
    padding: 50px 40px 0 40px; /* Réduit le padding du bas ici */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    color: #FFFFFF;
}

.overlay-content::-webkit-scrollbar {
    display: none;
}

.overlay-header {
    flex-shrink: 0; /* Empêche le header de rétrécir */
}

.category-title {
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.divider {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.detail-text-block {
    flex-grow: 1; /* Aligne le bloc de texte pour occuper l'espace */
    margin-bottom: auto; /* Pousse le footer vers le bas */
}

.detail-text-block h2 {
    font-weight: 700;
    font-size: 2.0rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.detail-text-block p {
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.5;
}

/* --- FOOTER OVERLAY AVEC QR CODE FIXE --- */
.overlay-footer {
    flex-shrink: 0;
    margin-top: auto; /* Pousse tout en bas */
    display: flex;
    align-items: flex-end; /* Aligne les éléments sur le bord inférieur */
    gap: 20px;
    padding: 0 0 0 40px; /* 0 de padding en bas pour que le bloc touche le bord */
}

.qr-static-box {
    background: #FFFFFF;
    padding: 12px;
    /* Arrondi uniquement en haut pour fusionner avec le bas de l'overlay */
    border-radius: 15px 15px 0 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.qr-label-text {
    font-weight: 600;
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 25px; /* On remonte un peu le texte pour qu'il soit centré face au QR */
}

/* Taille du QR à l'intérieur */
#qr-container img, 
#qr-container canvas {
    max-width: 95px !important;
    height: auto !important;
    display: block;
}

/* --- BOUTON BACK FLOTTANT --- */
.overlay-back-btn {
    position: absolute;
    right: 0;
    bottom: 50px; 
    transform: translateX(100%);
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 25;
}

.back-circle {
    width: 55px;
    height: 55px;
    background-color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-jti-green); 
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: translateX(-27px);
}

.back-text {
    font-weight: 600;
    color: #000000;
    letter-spacing: 1px;
    transform: translateX(-15px);
}