*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    overflow-x: hidden;
}

/* =============================================
   MODALE 18+ — au-dessus de tout
   banderole = 10000, header = 9999
   ============================================= */
#age-modal-overlay {
    z-index: 10002 !important;
}

/* =============================================
   HEADER
   top est géré dynamiquement par promo-banner.js
   La valeur CSS sert de fallback si le JS est lent
   ============================================= */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 56px; /* fallback desktop — écrasé par le JS */
    z-index: 9999;
    transition: top 0.3s ease;
    box-sizing: border-box;
    height: 70px;
}

.logo img {
    height: 70px;
    transition: height 0.3s ease;
    margin-top: 3px;
    margin-bottom: -2px;
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    justify-content: center;
    transition: opacity 0.3s ease;
    margin: 0 auto;
}

.nav-links li { display: inline; }

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    padding: 5px 10px;
    position: relative;
}

.nav-links a:hover { color: #D78EEC; }

.nav-links a.active::after {
    content: '';
    display: block;
    height: 3px;
    background-color: #C930CE;
    position: absolute;
    left: 0; right: 0; bottom: -2px;
}

.auth-buttons { display: flex; gap: 10px; }

.auth-btn {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.signup-btn { background-color: #C930CE; color: white; border: none; }
.signup-btn:hover { background-color: #B029B5; }
.login-btn { background-color: transparent; color: #C930CE; border: 1px solid #C930CE; }
.login-btn:hover { background-color: rgba(201, 48, 206, 0.1); }

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle div {
    width: 30px;
    height: 4px;
    background-color: #C930CE;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active div:nth-child(1) { transform: rotate(-45deg) translate(-8px, 6px); }
.menu-toggle.active div:nth-child(2) { opacity: 0; }
.menu-toggle.active div:nth-child(3) { transform: rotate(45deg) translate(-8px, -6px); }

/* =============================================
   MAIN
   margin-top géré dynamiquement par promo-banner.js
   Fallback CSS = 56px (banderole) + 70px (header)
   ============================================= */
main {
    margin-top: 126px; /* fallback — écrasé par le JS */
    font-family: 'Montserrat', Arial, sans-serif;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: rgba(176, 42, 172, 0.92);
    color: white;
    padding: 10px 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    gap: 15px;
    margin: auto;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    max-width: 100%;
}

.footer-image { width: 100px; height: 100px; border-radius: 50%; }

.footer-text h3 { font-size: 14px; margin-bottom: 4px; margin-left: 9px; }
.footer-text p { font-size: 14px; line-height: 1.3; padding: 0 10px; }
.footer-separator { display: none; }

.footer-right {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;
    width: 100%;
    margin-right: -5%;
}

.footer-column h4 { font-size: 14px; margin-bottom: 8px; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 4px; }
.footer-column ul li a { text-decoration: none; color: white; font-size: 12px; }
.footer-column ul li a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 768px) {

    header {
        padding: 0 15px;
        height: 60px;
        /* top est géré par promo-banner.js — pas de valeur fixe ici */
    }

    .logo img { height: 50px; }

    /* main : margin-top géré par promo-banner.js */

    .nav-container {
        position: relative;
        flex-grow: 0;
    }

    /* Menu déroulant — top géré par promo-banner.js */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        /* top géré par JS */
        left: 0;
        right: 0;
        background-color: white;
        width: 100%;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        text-align: center;
        padding: 0;
        margin: 0;
        z-index: 9998;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li { margin: 0; padding: 0; }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        margin: 0;
        line-height: 1.2;
    }

    .nav-links a:hover {
        background-color: rgba(201, 48, 206, 0.1);
        color: #C930CE;
    }

    .menu-toggle { display: flex; order: 3; }
    .auth-buttons { display: none; }

    .mobile-auth {
        margin-top: 0;
        padding-top: 0;
        border-top: 2px solid rgba(201, 48, 206, 0.2);
    }

    .mobile-auth ul { list-style: none; padding: 0; margin: 0; }
    .mobile-auth ul li { margin: 0; padding: 0; }

    .mobile-auth ul li a {
        color: #C930CE;
        font-weight: 600;
        padding: 12px 20px;
        border: 2px solid #C930CE;
        border-radius: 25px;
        margin: 8px 20px;
        display: block;
        transition: all 0.3s ease;
        font-size: 15px;
    }

    .mobile-auth ul li:first-child a { background-color: #C930CE; color: white; }
    .mobile-auth ul li:first-child a:hover { background-color: #B029B5; }
    .mobile-auth ul li:last-child a:hover { background-color: rgba(201, 48, 206, 0.1); }

    /* Divers responsive */
    .hero { flex-direction: column; }
    .hero-text, .hero-image { width: 100%; }
    .hero-image { min-height: 300px; order: -1; }
    .hero-buttons { justify-content: center; }
    .features { flex-direction: column; align-items: center; gap: 30px; }
    .why-us-content { flex-direction: column; }
    .why-us-image { width: 100%; order: -1; }
    .hostess-cards { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 15px; scroll-snap-type: x mandatory; }
    .hostess-card { flex-shrink: 0; scroll-snap-align: center; }
    .slider-btn { display: none; }
    .discover-btn { font-size: 14px; padding: 10px 25px; width: 80%; max-width: 250px; }
}

@media (min-width: 769px) {
    .menu-toggle { display: none; }
    .scrolled { padding: 0 40px; }
    .scrolled .logo img { height: 50px; }
    .welcome h2, .pricing h2, .hostesses h2 { font-size: 28px; }
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1100px;
        padding: 0 50px;
    }
    .footer-left { flex-direction: row; text-align: left; width: 40%; }
    .footer-separator { display: block; width: 2px; height: 120px; background-color: white; margin: 0 50px; }
    .footer-right { flex-direction: row; text-align: left; gap: 50px; width: 40%; }
}