/* ==========================================================
   RESPONSIVE DESIGN CORRECTIONS - BNIC Immigration
   Breakpoints cohérents et complète mobile-first approach
   ========================================================== */

/* ===== MOBILE FIRST APPROACH - DEFAULT pour 320px ===== */

/* Headings responsive pour petit écrans */
h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.95rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.85rem; }

.display-1 { font-size: 1.6rem; }
.display-2 { font-size: 1.4rem; }
.display-3 { font-size: 1.2rem; }
.display-4 { font-size: 1rem; }
.display-5 { font-size: 1.8rem; }
.display-6 { font-size: 1.6rem; }

/* Lead et texte on mobile */
.lead { font-size: 1rem; }
.fs-3 { font-size: 1.1rem !important; }

/* Padding/margin responsive mobile */
.hero-section {
    min-height: 60vh !important;
    padding-bottom: 60px !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Buttons responsive mobile */
.btn {
    width: 100%;
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.6rem 1rem !important;
}

.btn[style*="min-width"] {
    min-width: 100% !important;
    margin-bottom: 0.75rem;
}

/* Alert flash positioning mobile */
.alert-flash {
    position: fixed;
    top: 20px;
    left: 8px !important;
    right: 8px !important;
    min-width: unset !important;
    width: calc(100% - 16px);
    z-index: 9999;
}

/* WhatsApp button positioning mobile */
.whatsapp-float {
    bottom: 20px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 24px;
}

/* Notification dropdown mobile */
.notif-dropdown {
    width: calc(100vw - 16px) !important;
    max-width: none !important;
    left: 8px !important;
    right: 8px !important;
}

/* Container padding mobile */
.container, .container-fluid {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Testimonial cards mobile */
.testimonial-card {
    min-height: auto;
}

.card {
    margin-bottom: 1rem;
}

/* Dropzone mobile */
.dropzone {
    min-height: 80px !important;
}

/* Progress bar mobile */
.progress {
    max-width: 100% !important;
}

/* Tables mobile - horizontal scroll */
.table {
    font-size: 0.85rem;
}

.table td, .table th {
    padding: 0.5rem !important;
    word-wrap: break-word;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}

.carousel-img {
    max-height: 280px;
    width: 100%;
}

/* Form inputs mobile */
.form-control, .form-select, .input-group {
    min-height: 44px;
    font-size: 1rem;
}

/* Badges responsive */
.badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

/* Icons mobile */
.fa-lg { font-size: 1.3em; }
.fa-2x { font-size: 1.5em; }
.fa-3x { font-size: 2em; }
.fa-4x { font-size: 2.5em; }

/* ===== SMALL DEVICES: 375px ===== */
@media (min-width: 375px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    
    .display-1 { font-size: 1.8rem; }
    .display-5 { font-size: 1.9rem; }
    .display-6 { font-size: 1.7rem; }
    
    .lead { font-size: 1.05rem; }
    
    .hero-section {
        padding-bottom: 80px !important;
    }
    
    .btn {
        display: inline-block;
        width: auto;
        margin-right: 0.5rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}

/* ===== TABLETS: 768px ===== */
@media (min-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.35rem; }
    h4 { font-size: 1.15rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.95rem; }
    
    .display-1 { font-size: 2.3rem; }
    .display-5 { font-size: 2.1rem; }
    .display-6 { font-size: 1.9rem; }
    
    .lead { font-size: 1.15rem; }
    .fs-3 { font-size: 1.3rem !important; }
    
    .hero-section {
        min-height: 75vh !important;
        padding-bottom: 100px !important;
        padding-left: auto;
        padding-right: auto;
    }
    
    .btn {
        width: auto;
    }
    
    .btn[style*="min-width"] {
        min-width: 250px !important;
    }
    
    .alert-flash {
        left: auto;
        right: 20px;
        width: 320px;
        min-width: 320px;
    }
    
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .notif-dropdown {
        width: 350px !important;
        max-width: 350px !important;
        left: auto !important;
        right: auto !important;
    }
    
    .carousel-img {
        max-height: 450px;
    }
    
    .testimonial-card {
        min-height: auto;
    }
    
    .dropzone {
        min-height: 120px !important;
    }
}

/* ===== LARGE TABLETS: 992px ===== */
@media (min-width: 992px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.5rem; }
    
    .display-1 { font-size: 2.5rem; }
    .display-5 { font-size: 2.5rem; }
    .display-6 { font-size: 2rem; }
    
    .hero-section {
        min-height: 80vh !important;
        padding-bottom: 120px !important;
    }
    
    .carousel-img {
        max-height: 550px;
    }
}

/* ===== DESKTOP: 1200px+ ===== */
@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .display-1 { font-size: 2.5rem; }
    .display-5 { font-size: 2.5rem; }
    .display-6 { font-size: 2rem; }
    
    .hero-section {
        min-height: 85vh !important;
    }
    
    .carousel-img {
        max-height: 600px;
    }
}

/* ===== PRINT ===== */
@media print {
    .navbar, .footer, .alert-flash, .whatsapp-float, .notif-dropdown {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
}

/* ===== ORIENTATION LANDSCAPE on mobiles ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 60vh !important;
        padding-bottom: 40px !important;
    }
    
    h1, .display-1 {
        font-size: 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    /* Dark mode support if needed */
}
