/* Pop-up overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.popup-content {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: none;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.popup-close {
    position: absolute;
    top: 2.5rem;
    right: 2rem;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}

.popup-text {
    white-space: pre-line;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    margin-top: 1rem;
}

/* Tooltips pour desktop */
.info-icon {
    cursor: pointer;
    margin-left: 0.25em
}


/* Tooltip pour desktop uniquement */
@media (min-width: 769px) {
    .info-icon {
        position: relative;
        cursor: pointer;
    }
    
    .tooltip {
        position: absolute;
        bottom: 120%;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        border-radius: 6px;
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        white-space: pre-line;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        padding: 1rem 1.5rem;
        min-width: auto;
        width: max-content;
        max-width: 500px;
        text-align: left;
        line-height: 1.6;
        background-color: var(--primary-blue-hover);
        opacity: 0.9;
    }
    
    .tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #333;
    }
    
    .info-icon:hover .tooltip {
        opacity: 1;
        visibility: visible;
    }
}