/**
 * STYLES RESPONSIFS - ENOXK FREELANCE
 * Gestion de l'affichage sur tous les appareils
 */

/* =============================================
   TABLETTE (max-width: 991px)
   ============================================= */
@media (max-width: 991px) {
    /* Header & Navigation */
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 10px 0;
        text-align: center;
    }
    
    .nav-link:after {
        display: none;
    }
    
    /* Bouton CTA corrigé */
    .btn-outline-light {
        margin: 10px 0;
        display: inline-block;
        width: auto;
    }
    
    /* Sections générales */
    section {
        padding: 50px 0 !important;
    }
    
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    /* Typographie */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h2:after {
        width: 50px;
    }
    
    /* Hero sections */
    .hero-section {
        min-height: auto !important;
        padding: 60px 0 !important;
    }
    
    /* Cartes */
    .card {
        margin-bottom: 20px;
    }
    
    /* Grilles */
    .row {
        row-gap: 30px;
    }
    
    /* Tableaux */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 10px;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .social-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer .list-unstyled {
        text-align: center;
    }
    
    .footer .d-flex.align-items-center {
        justify-content: center;
    }
}

/* =============================================
   MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
    /* Espacements */
    section {
        padding: 40px 0 !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Typographie */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .display-6 {
        font-size: 1.3rem;
    }
    
    /* Hero - boutons en colonne */
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
    }
    
    /* Statistiques */
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* Formulaires */
    .form-control-lg,
    .form-select-lg {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* Newsletter */
    .newsletter-section form {
        flex-direction: column;
    }
    
    .newsletter-section .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Blog cards */
    .blog-card .card-img-top {
        height: 180px;
    }
    
    /* Accordéon */
    .accordion-button {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    /* Pagination */
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* Comparaison des packs */
    .table-comparison th,
    .table-comparison td {
        font-size: 0.75rem;
        padding: 8px;
    }
    
    /* Contact page */
    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Footer */
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 30px;
    }
}

/* =============================================
   TRÈS PETIT MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
    /* Typographie */
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    /* Boutons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* Cartes */
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Badges */
    .badge {
        font-size: 0.7rem;
    }
    
    /* Services icons */
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.5rem !important;
    }
    
    /* Tableaux */
    .table-responsive th,
    .table-responsive td {
        font-size: 0.7rem;
        padding: 6px;
    }
    
    /* Scroll to top */
    #scrollToTop {
        width: 35px;
        height: 35px;
        bottom: 20px;
        right: 20px;
    }
    
    #scrollToTop i {
        font-size: 0.8rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* =============================================
   ORIENTATION PAYSAGE SUR MOBILE
   ============================================= */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 40px 0 !important;
    }
    
    section {
        padding: 30px 0 !important;
    }
}

/* =============================================
   IMPRESSION
   ============================================= */
@media print {
    .navbar,
    .footer,
    .newsletter-section,
    .cta-section,
    #scrollToTop,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* =============================================
   ACCESSIBILITÉ
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =============================================
   HAUTE RÉSOLUTION (écrans larges)
   ============================================= */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3rem;
    }
}

/* =============================================
   SERVICES FILTRES
   ============================================= */
@media (max-width: 768px) {
    .services-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .services-filters .btn {
        margin: 5px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* =============================================
   PAGE BLOG
   ============================================= */
@media (max-width: 768px) {
    .blog-sidebar {
        margin-top: 40px;
    }
    
    .blog-search {
        margin-bottom: 20px;
    }
    
    .single-post .article-body {
        font-size: 0.95rem;
    }
    
    .single-post .article-body img {
        width: 100%;
        height: auto;
    }
}

/* =============================================
   TABLEAUX DES PACKS
   ============================================= */
@media (max-width: 768px) {
    .table-packages {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table-packages th,
    .table-packages td {
        min-width: 120px;
    }
}

/* =============================================
   MODALES
   ============================================= */
@media (max-width: 576px) {
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* =============================================
   DASHBOARD ADMIN
   ============================================= */
@media (max-width: 991px) {
    .admin-sidebar {
        position: fixed;
        left: -250px;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-content {
        margin-left: 0;
        width: 100%;
    }
    
    .admin-toggle-btn {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1060;
        background-color: #05348A;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 10px;
    }
    
    .admin-stats .card-body {
        padding: 15px;
    }
    
    .admin-stats h2 {
        font-size: 1.5rem;
    }
    
    .admin-table th,
    .admin-table td {
        font-size: 0.7rem;
        padding: 8px;
    }
    
    .admin-table .btn-sm {
        padding: 2px 5px;
        font-size: 0.7rem;
    }
}

/* =============================================
   FORMULAIRES DE CONTACT
   ============================================= */
@media (max-width: 768px) {
    .contact-form .row {
        row-gap: 15px;
    }
}