/* ================================
   2. POPUPS & OVERLAYS
   ================================ */

/* Ancien Popup */
.popup-ancien-bon-24mars {
    background-color: #ffffff;
    background: url(https://nkomonapp.com/frontend/images/fond-blanc01.jpg) 50% 50%;
    background-size: cover;
    color: #fff;
    width: 550px;
    padding: 10px 10px;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    border-radius: 15px;
    font-family: "Poppins", sans-serif;
    display: none;
    text-align: center;
    z-index: 999;
    border-width: 12px 12px 12px 12px;
    border-style: solid;
    border-color: #228b22 !important;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Nkomon Popup */
.nkomonpopup {
    background-color: #ffffff;
    background: url(https://nkomonapp.com/frontend/images/fond-blanc01.jpg) 50% 50%;
    background-size: cover;
    color: #fff;
    padding: 20px 10px;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    border-radius: 35px;
    font-family: "Poppins", sans-serif;
    display: none;
    text-align: center;
    z-index: 999;
    border-width: 12px 12px 12px 12px;
    border-style: solid;
    border-color: #228b22 !important;
    background: #ffffff;
    top: 300px;
    position: relative;
    z-index: 41;
    padding: 10px;
    width: 50%;
    height: 58vh;
    justify-content: center;
    align-item: center;
    position: absolute;
    overflow: auto;
    animation-name: animatetop;
    animation-duration: 0.4s;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.nkomonpopup button {
    display: block;
    margin: 0 0 20px auto;
    background-color: transparent;
    font-size: 30px;
    color: #ffffff;
    background: #f44336;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    cursor: pointer;
}

.nkomonpopup h2 {
    margin-top: -20px;
}

.nkomonpopup p {
    font-size: 14px;
    text-align: center;
    margin: 20px 0;
    line-height: 15px;
}

.nkomonpopup p2 {
    font-size: 14px;
    text-align: center;
    color: #ffffff;
    margin: 20px 0;
    line-height: 55px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
    padding-left: 10px;
    background-color: #228b22 !important;
    flood-opacity: .5;
}

/* Popup générique */
.popup {
    background-color: #ffffff;
    background: url(https://nkomonapp.com/frontend/images/fond-blanc01.jpg) 50% 50%;
    background-size: cover;
    color: #fff;
    padding: 10px 10px;
    transform: translate(-50%, -50%);
    left: 20%;
    top: 20%;
    border-radius: 15px;
    font-family: "Poppins", sans-serif;
    display: none;
    text-align: center;
    z-index: 999;
    border-width: 12px 12px 12px 12px;
    border-style: solid;
    border-color: #228b22 !important;
    background: #ffffff;
    top: 300px;
    position: relative;
    z-index: 41;
    padding: 10px;
    width: 50%;
    height: 60vh;
    justify-content: center;
    align-item: center;
    position: absolute;
    overflow: auto;
    animation-name: animatetop;
    animation-duration: 0.60s;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Popup Notification */
#popupNotification {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 22px;
    right: 20px;
    font-weight: bold;
    font-weight: 700;
    font-size: 15px;
    background: #f8f8fa;
    color: rgb(0, 0, 0);
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
    padding: 15px;
    margin: 15px;
    border-block-color: black;
    border-top-color: #000000;
    border-radius: 5px;
    border-block-color: black;
    z-index: 1000;
}

#popupNotification button {
    background: #d79839;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-top: 10px;
    cursor: pointer;
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup-container {
    top: 0;
}

.popup-header {
    background: #228b22;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.popup-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #efa32f;
    border: none;
    color: white;
    font-size: 2.5em;
    cursor: pointer;
    padding: 7px 10px 7px 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Destinations List in Popup */
.destinations-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
}

.destination-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    opacity: 30;
    font-size: 14px;
    transform: translateY(20px);
    animation: slideInUp 0.3s ease forwards;
}

.destination-item:hover {
    background: #f8f9ff;
    transform: translateX(5px);
}

.destination-item:last-child {
    border-bottom: none;
}

.location-icon {
    color: #666;
    margin-right: 15px;
    font-size: 1.2em;
}

.destination-text {
    flex: 1;
    font-size: 1em;
    color: black;
    font-weight: 500;
}

.country-tag {
    color: #999;
    font-size: 0.9em;
}

.popup-footer {
    background: #f8f9fa;
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #eee;
}

.footer-question {
    color: #666;
    font-size: 0.9em;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.destination-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #d8a108ff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.destination-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.destination-btn.secondary {
    background: #6c757d;
}

.destination-btn.secondary:hover {
    background: #545b62;
}

/* Open Popup Button */
.open-popup-btn {
    background: #228b22 !important;
    color: white;
    border: none;
    width: 300px;
    text-align: center;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(133, 234, 102, 0.4);
    margin: 10px auto;
    font-weight: 600;
    display: block;
}

.open-popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 234, 102, 0.58);
}

/* Popupp (avec double p) */
.popupp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.popupp-overlay.show {
    display: flex;
    opacity: 1;
}

.popupp-overlay.hide {
    opacity: 0;
}

.popupp {
    background: linear-gradient(135deg, #1a5f3f, #2d8f5c);
    border-radius: 20px;
    max-width: 600px;
    width: 80%;
    color: white;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: 35px;
    font-family: "Poppins", sans-serif;
    text-align: center;
    z-index: 999;
    border-width: 12px 12px 12px 12px;
    border-style: solid;
    border-color: #f7f7f7 !important;
    top: 15%;
    position: relative;
    max-width: 700px;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: block;
    margin: auto;
    vertical-align: center;
}

.popupp-overlay.show .popupp {
    transform: scale(1);
}

.popupp-content {
    padding: 20px 10px 20px;
    text-align: center;
}

.popupp-header {
    display: flex;
    padding-top: 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fire-emoji {
    font-size: 30px;
    animation: flicker 1.5s infinite alternate;
}

.popupp-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.popupp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
}

.logo-text {
    font-size: 48px;
    font-weight: bold;
    color: white;
}

.africa-text {
    background: white;
    color: #1a5f3f;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 24px;
    font-weight: bold;
}

.popupp-subtitle {
    font-size: 24px;
    margin: 20px 0;
    color: #ffd700;
}

.popupp-description {
    font-size: 18px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.chat-icon {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popupp-cta {
    font-size: 20px;
    margin: 20px 0;
    color: #ffd700;
}

.gratuit-badge {
    background: white;
    color: #1a5f3f;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
    display: inline-block;
    transform: rotate(-5deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.avatar {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="90" fill="%23c4a484"/><circle cx="100" cy="70" r="25" fill="%23a67c52"/><path d="M75 120 Q100 140 125 120 Q125 160 100 170 Q75 160 75 120" fill="%23a67c52"/></svg>') center/cover;
    border-radius: 50%;
    opacity: 0.3;
}

.container-popupp {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 35px;
    font-family: "Poppins", sans-serif;
    text-align: center;
    z-index: 999;
    border-width: 12px 12px 12px 12px;
    border-style: solid;
    border-color: #228b22 !important;
}

/* Animations des éléments de la liste */
.popup-overlay.active .destination-item:nth-child(1) { animation-delay: 0.1s; }
.popup-overlay.active .destination-item:nth-child(2) { animation-delay: 0.15s; }
.popup-overlay.active .destination-item:nth-child(3) { animation-delay: 0.2s; }
.popup-overlay.active .destination-item:nth-child(4) { animation-delay: 0.25s; }
.popup-overlay.active .destination-item:nth-child(5) { animation-delay: 0.3s; }
.popup-overlay.active .destination-item:nth-child(6) { animation-delay: 0.35s; }
.popup-overlay.active .destination-item:nth-child(7) { animation-delay: 0.4s; }
.popup-overlay.active .destination-item:nth-child(8) { animation-delay: 0.45s; }
.popup-overlay.active .destination-item:nth-child(9) { animation-delay: 0.5s; }
.popup-overlay.active .destination-item:nth-child(10) { animation-delay: 0.55s; }
.popup-overlay.active .destination-item:nth-child(11) { animation-delay: 0.6s; }

/* Overlay générique */
.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
}

.overlay-content {
    position: relative;
    top: 25%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 12px;
    color: rgb(240, 231, 231);
    display: block;
    transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
    color: #f1f1f1;
}

.overlay .closebtn {
    position: absolute;
    padding-top: 100px;
    right: 45px;
    font-size: 60px;
}
