/* ========================
   POPUP
   ======================== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    padding: 20px;
}
.popup-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.popup-content {
    background: var(--blanc);
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--blanc);
    z-index: 2;
    transition: background 0.3s;
}
.popup-close:hover {
    background: var(--rouge);
}
.popup-image { width: 100%; overflow: hidden; }
.popup-image img { width: 100%; height: auto; display: block; object-fit: cover; }
.popup-titre {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rouge);
    margin: 28px 25px 10px;
    line-height: 1.3;
}
.popup-texte {
    font-size: 0.9rem;
    color: var(--grismedium);
    margin: 0 25px 28px;
    line-height: 1.65;
}
.popup-btn {
    display: inline-block;
    margin: 0 25px 25px;
    padding: 0.75rem 1.5rem;
    background-color: var(--rouge);
    color: var(--blanc);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s;
}
.popup-btn:hover {
    background-color: var(--grisfonce);
    color: var(--blanc);
}
@media screen and (max-width: 575px) {
    .popup-content { max-width: 100%; }
    .popup-titre { font-size: 1.1rem; margin: 20px 15px 8px; }
    .popup-texte { font-size: 0.85rem; margin: 0 15px 15px; }
    .popup-btn { margin: 0 15px 20px; }
    .popup-close { top: 6px; right: 8px; }
}
