/* ============================================
   ASL Construction - Optimisations Mobile
   Version simplifiée pour Samsung Z Flip 4 et tous smartphones
   ============================================ */

/* ============================================
   BASE MOBILE STYLES
   ============================================ */

/* Touch-friendly buttons */
.btn,
.btn-primary,
.btn-outline-primary,
.btn-secondary,
.btn-outline-secondary {
    min-height: 44px;
    min-width: 44px;
}

/* ============================================
   NAVBAR MOBILE
   ============================================ */

@media (max-width: 991.98px) {
    .navbar-collapse {
        width: 100%;
        padding: 1rem;
        background: white;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #333 !important;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
    }
    
    .nav-link.active {
        background: #1a3a5f;
        color: white !important;
    }
}

/* ============================================
   HERO SECTION - VERSION MOBILE SIMPLE
   ============================================ */

@media (max-width: 991.98px) {
    .hero-section {
        background: linear-gradient(135deg, #1a3a5f 0%, #0d2a4f 100%) !important;
        padding: 3rem 0 !important;
        min-height: auto;
    }
    
    .hero-section .row {
        text-align: center;
    }
    
    .hero-section .col-lg-5 {
        display: none !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 1rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        margin-bottom: 1.5rem;
    }
    
    .hero-section .btn-hero {
        margin: 0 auto;
        display: block;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
    }
}

/* ============================================
   SERVICE CARDS - VERSION MOBILE COMPACTE
   ============================================ */

.service-card,
.service-card-compact {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: white !important;
    color: #333 !important;
}

.service-card:hover,
.service-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon-small {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    background: linear-gradient(135deg, #1a3a5f, #0d2a4f);
}

.service-icon-small i {
    font-size: 1.5rem;
}

.service-card .card-body,
.service-card-compact .card-body {
    padding: 1.5rem;
    text-align: center;
    color: #333 !important;
}

.service-card h3,
.service-card-compact h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a3a5f !important;
    font-weight: 600;
}

.service-card p,
.service-card-compact p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #6c757d !important;
}

/* Version mobile des services */
@media (max-width: 991.98px) {
    #services .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    #services .col-md-6,
    #services .col-lg-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .service-card,
    .service-card-compact {
        padding: 1rem;
    }
    
    .service-icon-small {
        width: 45px;
        height: 45px;
        margin-bottom: 0.75rem;
    }
    
    .service-icon-small i {
        font-size: 1.25rem;
    }
    
    .service-card h3,
    .service-card-compact h3 {
        font-size: 1rem;
    }
    
    .service-card p,
    .service-card-compact p {
        font-size: 0.85rem;
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dee2e6;
    padding: 1rem;
    z-index: 1050;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.cookie-banner h5 {
    font-size: 1rem;
    color: #1a3a5f;
    margin-bottom: 0.5rem;
}

.cookie-banner p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: #1a3a5f;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-banner h5 {
        font-size: 0.9rem;
    }
    
    .cookie-banner .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .cookie-banner .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-banner .text-end {
        text-align: center !important;
    }
}

/* ============================================
   FOOTER MOBILE
   ============================================ */

@media (max-width: 767.98px) {
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    .footer .text-center {
        text-align: center !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
}

/* ============================================
   GALLERY MOBILE
   ============================================ */

@media (max-width: 575.98px) {
    .photo-card {
        margin-bottom: 1rem;
    }
    
    .photo-card img {
        height: 200px !important;
    }
}

/* ============================================
   FORMS MOBILE
   ============================================ */

@media (max-width: 767.98px) {
    .form-control {
        padding: 0.75rem 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
}

/* ============================================
   BUTTONS & CARDS
   ============================================ */

.btn-hero {
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

html {
    scroll-behavior: smooth;
}

@supports (padding: max(0px)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   FORCE LIGHT MODE
   ============================================ */

body {
    background-color: #fff !important;
    color: #333 !important;
}

.card {
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    color: #333 !important;
}

.form-control,
.form-select {
    background-color: #fff !important;
    border-color: #ced4da !important;
    color: #333 !important;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #fff !important;
        color: #333 !important;
    }
    
    .card {
        background-color: #fff !important;
        border-color: #dee2e6 !important;
        color: #333 !important;
    }
    
    .form-control,
    .form-select {
        background-color: #fff !important;
        border-color: #ced4da !important;
        color: #333 !important;
    }
    
    .bg-dark {
        background-color: #f8f9fa !important;
    }
    
    .text-white {
        color: #333 !important;
    }
}
