/**
 * RESPONSIVE CSS - Les Îles du Saloum
 * Corrections mobile spécifiques
 */

/* ============================================
   MOBILE (jusqu'à 575px)
   ============================================ */
@media (max-width: 575.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .brand-title {
        font-size: 1.2rem !important;
    }
    
    .brand-subtitle {
        font-size: 0.65rem !important;
    }
    
    /* Menu mobile */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(19, 74, 97, 0.98) !important;
        backdrop-filter: blur(10px);
        padding: 1rem !important;
        margin-top: 0.5rem;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin-bottom: 0.25rem;
    }
    
    /* Footer vague */
    .wave-top {
        top: -59px !important;
    }
    
    .wave-top svg {
        height: 60px !important;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Hero */
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Boutons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============================================
   TABLETTE (576px - 991px)
   ============================================ */
@media (min-width: 576px) and (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(19, 74, 97, 0.98) !important;
        padding: 1rem;
        border-radius: 15px;
        margin-top: 0.5rem;
    }
}

/* ============================================
   DESKTOP (992px et +)
   ============================================ */
@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent !important;
    }
}

/* ============================================
   CORRECTIONS GÉNÉRALES MOBILE
   ============================================ */

/* Empêcher le débordement horizontal */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Images responsives par défaut */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix pour iOS */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        height: -webkit-fill-available;
    }
}

/* Menu hamburger toujours visible sur mobile */
.navbar-toggler {
    display: block !important;
    border: none !important;
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* ============================================
   TABLETTE (576px - 991px)
   ============================================ */
@media (min-width: 576px) and (max-width: 991.98px) {
    .navbar-spacer {
        height: 72px;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* ============================================
   NAVBAR COLLAPSE (jusqu'à 991px)
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(19, 74, 97, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 15px;
        margin-top: 0.5rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .dropdown-item:hover,
    .dropdown-item.active {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
}

/* ============================================
   GRANDS ÉCRANS (992px et +)
   ============================================ */
@media (min-width: 992px) {
    .custom-navbar {
        padding: 0.75rem 0;
    }
    
    .nav-link {
        position: relative;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--orange-coucher);
        transition: var(--transition);
        transform: translateX(-50%);
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 60%;
    }
}

/* ============================================
   TRÈS GRANDS ÉCRANS (1400px et +)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* ============================================
   ORIENTATION PAYSAGE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar-spacer {
        height: 60px;
    }
    
    .custom-navbar {
        padding: 0.3rem 0;
    }
}

/* ============================================
   ACCESSIBILITÉ - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   IMPRESSION
   ============================================ */
@media print {
    .whatsapp-float,
    .custom-navbar,
    .footer-custom {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}


/* ============================================
   RESPONSIVE PAGE ACCUEIL
   ============================================ */

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .experience-badge {
        right: 10px;
        bottom: -10px;
        padding: 1rem;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 500px;
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .highlight {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .section-title-left {
        font-size: 1.75rem;
    }
    
    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .why-card {
        padding: 1.5rem 0.5rem;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .avis-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}