/* responsive.css */

/* ==================================== */
/* MEDIA QUERIES                        */
/* ==================================== */

/* --- TABLETTES --- (max-width: 992px) */
@media (max-width: 992px) {
    /* ==================================== */
    /* TYPOGRAPHY WITH CLAMP FOR MOBILE/TABLET */
    /* ==================================== */
    h1, .h1 {
        font-size: clamp(28px, 5vw, 36px) !important;
    }
    
    h2, .h2 {
        font-size: clamp(24px, 4.5vw, 30px) !important;
    }
    
    h3, .h3 {
        font-size: clamp(20px, 4vw, 24px) !important;
    }
    
    h4, .h4 {
        font-size: clamp(18px, 3.5vw, 20px) !important;
    }
    
    h5, .h5 {
        font-size: clamp(16px, 3vw, 18px) !important;
    }
    
    h6, .h6 {
        font-size: clamp(15px, 2.5vw, 16px) !important;
    }
    
    .site-title {
        font-size: clamp(30px, 6vw, 40px) !important;
    }
    
    body, p, .text, .body-text, .about-text-content, .service-text, .news-text, .footer-text {
        font-size: clamp(14px, 2.5vw, 15px) !important;
    }

    /* Spacing adjustments for tablets */
    .py-120 { padding: 80px 0 !important; }
    .py-100 { padding: 60px 0 !important; }
    .py-80  { padding: 50px 0 !important; }
    .pt-120 { padding-top: 80px !important; }
    .pt-100 { padding-top: 60px !important; }
    .pt-80  { padding-top: 50px !important; }
    .pb-120 { padding-bottom: 80px !important; }
    .pb-100 { padding-bottom: 60px !important; }
    .pb-80  { padding-bottom: 50px !important; }

    .site-heading {
        margin-bottom: 40px !important;
    }
}

/* --- GRANDS TÉLÉPHONES / PETITES TABLETTES --- (max-width: 768px) */
@media (max-width: 768px) {
    /* More aggressive spacing reductions */
    .py-120 { padding: 60px 0 !important; }
    .py-100 { padding: 50px 0 !important; }
    .py-80  { padding: 40px 0 !important; }
    .pt-120 { padding-top: 60px !important; }
    .pt-100 { padding-top: 50px !important; }
    .pt-80  { padding-top: 40px !important; }
    .pb-120 { padding-bottom: 60px !important; }
    .pb-100 { padding-bottom: 50px !important; }
    .pb-80  { padding-bottom: 40px !important; }
    .mt-120, .mt-100, .mt-80 { margin-top: 40px !important; }
    .mb-120, .mb-100, .mb-80 { margin-bottom: 40px !important; }

    .site-heading {
        margin-bottom: 30px !important;
    }

    /* Menus and navigation */
    .main-menu, .nav-menu {
        font-size: 15px !important;
    }

    /* Cards */
    .card, .service-item, .blog-item {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }

    /* Prevent overflow on forms and tables */
    form, table, .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        display: block;
    }

    /* Breadcrumbs */
    .breadcrumb-title {
        font-size: clamp(24px, 6vw, 35px) !important;
    }
    .breadcrumb-item, .breadcrumb-item a {
        font-size: 14px !important;
    }
    .site-breadcrumb {
        padding: 60px 0 !important;
    }
    
    .theme-btn, .theme-btn2, .btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
    
    /* Hide hero carousel navigation on mobile */
    .hero-slider .owl-nav {
        display: none !important;
    }
    
    /* Hide 01, 02, 03 numbers in mobile view (except steps) */
    .feature-item .count, .service-item .count, .service-area2 .count {
        display: none !important;
    }

    /* Hide header-top-left on mobile */
    .header-top-left {
        display: none !important;
    }
}

/* --- PETITS TÉLÉPHONES --- (max-width: 576px) */
@media (max-width: 576px) {
    /* Adjust general layout */
    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    .col, [class*="col-"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Reduce vertical padding even more */
    .py-120 { padding: 50px 0 !important; }
    .py-100 { padding: 40px 0 !important; }
    .py-80  { padding: 30px 0 !important; }
    .pt-120, .pt-100, .pt-80 { padding-top: 40px !important; }
    .pb-120, .pb-100, .pb-80 { padding-bottom: 40px !important; }

    /* Button specific on small screens */
    .theme-btn, .theme-btn2, .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .theme-btn:last-child, .theme-btn2:last-child, .btn:last-child {
        margin-bottom: 0 !important;
    }

    /* Services and News text fine-tuning */
    .service-content p, .blog-content p, .card-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .service-title, .blog-title, .card-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    /* Footer text */
    .footer-widget-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .footer-widget p, .footer-widget ul li a, .footer-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    .footer-bottom {
        text-align: center !important;
    }
    
    .copyright-text {
        font-size: 13px !important;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Remove excessive margins on titles */
    h1, h2, h3, .site-title {
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }
    
    .site-heading p {
        margin-top: 10px !important;
    }
    
    .hero-content {
        text-align: center !important;
    }
}
