/* ========================================
   AMÉLIORATION RESPONSIVE - TABLETTE & MOBILE
   ======================================== */

/* ========================================
   BOUTON LANGUE - COMPACT PARTOUT
   ======================================== */

/* Desktop - Taille réduite */
.language-switcher {
    position: relative;
    z-index: 9999;
}

.lang-btn-toggle {
    width: 38px !important;
    height: 38px !important;
    font-size: 12px !important;
}

.lang-current {
    font-size: 11px !important;
}

/* ========================================
   BREAKPOINTS
   - Desktop : > 968px
   - Tablette : 600px - 968px
   - Mobile : < 600px
   ======================================== */

/* ========================================
   TABLETTE (600px - 968px)
   ======================================== */
@media (max-width: 968px) {
    
    /* Bouton Langue - Tablette */
    .lang-btn-toggle {
        width: 36px !important;
        height: 36px !important;
        font-size: 11px !important;
    }
    
    .lang-current {
        font-size: 10px !important;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        right: -100% !important;
        width: 280px !important;
        height: calc(100vh - 70px) !important;
        background: white !important;
        flex-direction: column !important;
        padding: 30px 20px !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        transition: right 0.3s ease !important;
        overflow-y: auto !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
    }
    
    .nav-link {
        padding: 15px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
    }
    
    /* Hero Section */
    .hero {
        min-height: 70vh !important;
        padding: 100px 0 60px !important;
    }
    
    .hero-logo {
        width: 100px !important;
        height: 100px !important;
    }
    
    .hero h1 {
        font-size: 28px !important;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
    }
    
    /* À Propos */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Nos Valeurs */
    .valeurs-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .valeur-card {
        padding: 30px 20px !important;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    /* Projets */
    .projects-bar {
        width: 250px !important;
    }
    
    .project-card {
        width: 320px !important;
        height: 240px !important;
    }
    
    /* Clients */
    .clients-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Social (Suivez-Nous) */
    .social-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr !important;
    }
    
    .contact-form-wrapper {
        padding: 30px !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

/* ========================================
   MOBILE (< 600px)
   ======================================== */
@media (max-width: 600px) {
    
    /* Bouton Langue - Mobile (60% de la taille normale) */
    .lang-btn-toggle {
        width: 23px !important;
        height: 23px !important;
        font-size: 7px !important;
        border-width: 1px !important;
        padding: 2px !important;
    }
    
    .lang-current {
        font-size: 7px !important;
        letter-spacing: 0 !important;
    }
    
    .lang-arrow {
        display: none !important;
    }
    
    .lang-dropdown {
        min-width: 120px !important;
        padding: 5px !important;
        font-size: 11px !important;
    }
    
    .lang-option {
        padding: 6px 7px !important;
        font-size: 11px !important;
        gap: 8px !important;
    }
    
    .lang-flag {
        font-size: 14px !important;
    }
    
    .lang-name {
        font-size: 11px !important;
    }
    
    /* Container général */
    .container {
        padding: 0 15px !important;
    }
    
    /* Sections */
    .section {
        padding: 50px 0 !important;
    }
    
    .section-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    
    .section-subtitle {
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }
    
    /* Navigation */
    .navbar {
        padding: 15px 0 !important;
    }
    
    .nav-logo {
        width: 50px !important;
        height: 50px !important;
    }
    
    .nav-menu {
        width: 100% !important;
        right: -100% !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
    }
    
    /* Hero */
    .hero {
        min-height: 60vh !important;
        padding: 80px 0 50px !important;
    }
    
    .hero-logo {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 20px !important;
    }
    
    .hero h1 {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }
    
    .hero-description {
        font-size: 14px !important;
        margin-bottom: 30px !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .btn {
        width: 100% !important;
        padding: 15px 30px !important;
    }
    
    /* À Propos */
    .about-content {
        grid-template-columns: 1fr !important;
    }
    
    .about-stats {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .stat-card {
        padding: 20px !important;
    }
    
    .stat-number {
        font-size: 32px !important;
    }
    
    .about-features {
        grid-template-columns: 1fr !important;
    }
    
    /* Nos Valeurs */
    .valeurs-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .valeur-card {
        padding: 25px 20px !important;
    }
    
    .valeur-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 26px !important;
        margin-bottom: 15px !important;
    }
    
    .valeur-card h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .valeur-card p {
        font-size: 14px !important;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .service-card {
        padding: 25px 20px !important;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 26px !important;
    }
    
    .service-card h3 {
        font-size: 18px !important;
    }
    
    /* Projets */
    .projects-container {
        flex-direction: column !important;
    }
    
    .projects-bar {
        width: 100% !important;
        height: auto !important;
        padding: 20px !important;
        position: relative !important;
        overflow-x: auto !important;
    }
    
    .projects-bar-scroll {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        overflow-x: auto !important;
    }
    
    .projects-content {
        width: 100% !important;
        padding-left: 0 !important;
    }
    
    .projects-gallery {
        padding: 0 !important;
    }
    
    .project-card {
        width: 280px !important;
        height: 200px !important;
    }
    
    .watermark-logo {
        width: 50px !important;
        height: 50px !important;
    }
    
    .watermark-whatsapp {
        font-size: 10px !important;
        gap: 4px !important;
    }
    
    .watermark-whatsapp i {
        font-size: 13px !important;
    }
    
    /* Clients */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .client-logo {
        width: 100px !important;
        height: 100px !important;
        padding: 15px !important;
    }
    
    /* Social (Suivez-Nous) */
    .social-section {
        padding: 50px 0 !important;
    }
    
    .social-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .social-card {
        padding: 25px 20px !important;
    }
    
    .social-icon {
        width: 55px !important;
        height: 55px !important;
        font-size: 24px !important;
    }
    
    /* Contact */
    .contact {
        padding: 50px 0 !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .contact-card {
        padding: 15px 0 !important;
    }
    
    .contact-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px !important;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px !important;
        font-size: 14px !important;
    }
    
    .contact-form .btn-primary {
        padding: 15px 30px !important;
        font-size: 15px !important;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .footer-logo {
        width: 100px !important;
    }
    
    .footer-col h4 {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    .footer-links a,
    .footer-contact li {
        font-size: 13px !important;
    }
    
    .footer-bottom {
        padding-top: 20px !important;
    }
    
    .footer-bottom p {
        font-size: 12px !important;
    }
    
    /* Bouton langue (mobile) */
    .language-selector {
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .lang-btn-main {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
    }
}

/* ========================================
   TRÈS PETIT MOBILE (< 400px)
   ======================================== */
@media (max-width: 400px) {
    
    .hero h1 {
        font-size: 20px !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    .project-card {
        width: 250px !important;
        height: 180px !important;
    }
    
    .clients-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-form-wrapper {
        padding: 20px 15px !important;
    }
}

/* ========================================
   AMÉLIORATION TOUCH (Tablette & Mobile)
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    
    /* Agrandir les zones tactiles */
    .nav-link {
        padding: 18px 15px !important;
    }
    
    .btn {
        padding: 16px 35px !important;
        min-height: 48px !important;
    }
    
    .social-card,
    .service-card,
    .valeur-card {
        min-height: 200px !important;
    }
    
    /* Désactiver les effets hover */
    .social-card:hover,
    .service-card:hover,
    .valeur-card:hover,
    .project-card:hover {
        transform: none !important;
    }
    
    /* Activation au tap */
    .social-card:active,
    .service-card:active,
    .valeur-card:active {
        transform: scale(0.98) !important;
    }
}

/* ========================================
   ORIENTATION PAYSAGE (Tablette)
   ======================================== */
@media (max-width: 968px) and (orientation: landscape) {
    
    .hero {
        min-height: 90vh !important;
    }
    
    .valeurs-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ========================================
   OPTIMISATION PERFORMANCE MOBILE
   ======================================== */
@media (max-width: 600px) {
    
    /* Réduire les animations sur mobile */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Simplifier les ombres */
    .social-card,
    .service-card,
    .valeur-card,
    .contact-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    }
}
