/* ===============================
   Améliorations Responsive Mobile
   =============================== */

/* Responsive général pour mobile */
@media (max-width: 767.98px) {
    /* Navigation */
    .navbar-brand img {
        height: 40px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 16px;
        padding: 8px 0;
    }
    
    /* Topbar - masquer sur mobile */
    .topbar {
        display: none !important;
    }
    
    /* Sections padding */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Titres */
    h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 20px !important;
    }
    
    /* Cartes et items */
    .services-item, .project-item, .blog-item {
        margin-bottom: 1.5rem;
    }
    
    .services-item, .project-item {
        min-height: auto;
    }
    
    /* Footer */
    .footer .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .footer h3 {
        font-size: 18px;
        margin-bottom: 1rem;
    }
    
    .footer .contact-link span,
    .footer .contact-link a {
        font-size: 14px;
        padding: 10px 0;
    }
    
    /* WhatsApp button */
    .whatsapp-float {
        width: 45px !important;
        height: 45px !important;
        right: 15px !important;
        bottom: 80px !important;
        font-size: 20px !important;
    }
    
    /* Back to top button */
    .back-to-top {
        width: 40px !important;
        height: 40px !important;
        right: 15px !important;
        bottom: 15px !important;
    }
    
    /* Contact form */
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .contact-detail {
        padding: 2rem 1rem !important;
    }
    
    /* Team carousel */
    .team-item {
        margin-bottom: 1rem;
    }
    
    .team-img {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Blog */
    .blog-item {
        margin-bottom: 2rem;
    }
    
    .blog-btn {
        margin-top: -60px !important;
    }
    
    /* About page */
    .about-img img {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    .position-absolute.w-75 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        margin-top: 1rem;
    }
}

/* Tablettes */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar-brand img {
        height: 44px !important;
    }
    
    h1 {
        font-size: 32px !important;
    }
    
    .services-item, .project-item {
        min-height: 280px;
    }
    
    .contact-form {
        padding: 2rem !important;
    }
}

/* Petits écrans */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .btn-lg {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .services-content-icon i {
        font-size: 3rem !important;
    }
    
    .footer .text-light {
        font-size: 14px;
    }
    
    .contact-detail .row > div {
        margin-bottom: 1.5rem;
    }
}

/* Amélioration du responsive pour les images */
@media (max-width: 767.98px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .rounded {
        border-radius: 8px !important;
    }
    
    .carousel-item img {
        min-height: 300px !important;
        object-fit: cover;
    }
}

/* Responsive pour le formulaire de contact */
@media (max-width: 767.98px) {
    .contact-map iframe {
        min-height: 250px;
    }
    
    .contact-form {
        margin-top: 2rem;
    }
    
    .contact-detail .h4 {
        font-size: 16px;
    }
    
    .contact-detail .h5 {
        font-size: 14px;
    }
}

/* Responsive pour les services */
@media (max-width: 767.98px) {
    .services-content {
        padding: 1.5rem !important;
    }
    
    .services-content h4 {
        font-size: 18px;
    }
    
    .services-content p {
        font-size: 14px;
    }
}

/* Responsive pour les projets */
@media (max-width: 767.98px) {
    .project-content {
        padding: 1rem !important;
    }
    
    .project-content h4 {
        font-size: 16px;
    }
    
    .project-content p {
        font-size: 13px;
    }
}

/* Amélioration de l'affichage du footer sur mobile */
@media (max-width: 767.98px) {
    .footer {
        text-align: center;
    }
    
    .footer .hightech-link {
        justify-content: center;
    }
    
    .footer .short-link,
    .footer .help-link {
        align-items: center;
    }
    
    .footer .contact-link {
        align-items: center;
    }
    
    .footer .border-end {
        border-end: none !important;
    }
}

/* Animation et transitions optimisées pour mobile */
@media (max-width: 767.98px) {
    .wow {
        animation-duration: 0.8s !important;
    }
    
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}
