/* ============================================
   COMITARI - CORRECTIONS FINALES
   Fixes pour mobile et badges
   ============================================ */

/* ===== BADGE VERT LISIBLE ===== */
.badge-green {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #378E56;
    color: #FFFFFF !important;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(55, 142, 86, 0.3);
}

/* ===== MENU MOBILE HAMBURGER ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 5rem 2rem 2rem;
    }

    .nav-list li {
        width: 100%;
        margin: 0.5rem 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.125rem;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .dropdown-trigger.active .dropdown-menu {
        display: block;
    }
}

/* Overlay pour fermer le menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ===== BOUTONS CTA FONCTIONNELS ===== */
.btn-primary,
.btn-secondary {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.98);
}

/* ===== SECTION BESOINS - VISIBILITÉ ===== */
.cta-section {
    min-height: 400px;
    padding: 4rem 2rem;
}

.cta-section .container {
    max-width: 800px;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
}

/* ===== DIAGNOSTIC BUTTON FIX ===== */
#start-diagnostic {
    pointer-events: auto;
    cursor: pointer;
}

/* ===== CONTACT BUTTON FIX ===== */
.btn[href*="contact"],
.btn[onclick*="contact"] {
    pointer-events: auto;
    cursor: pointer;
}

/* ===== MOBILE TOUCH IMPROVEMENTS ===== */
@media (max-width: 768px) {

    /* Augmenter les zones de touch */
    .btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }

    .nav-link {
        min-height: 48px;
    }

    /* Améliorer la lisibilité */
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}