/* ============================================
   OPTIMISATION RESPONSIVE - GUY-JEAN GONZALEZ
   ============================================ */

/* ============================================
   GLOBAL : SUPPRIMER EFFETS NÉON (tous écrans)
   ============================================ */

.hero-container::before,
.corner,
.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
    display: none !important;
}

.main-title,
.subtitle,
.phone-btn,
.service-card,
.nav-btn {
    animation: none !important;
}

/* ============================================
   DESKTOP (>768px) - HARMONISER AVEC SECTIONS
   ============================================ */
@media (min-width: 769px) {
    .hero {
        padding: 40px 5% !important;
    }
    
    .hero-container {
        width: 100% !important;
        max-width: 1520px !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    
    .content-area {
        flex: 1 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

/* ============================================
   MOBILE (< 768px) - HARMONISER HERO ET SERVICES
   ============================================ */
@media (max-width: 768px) {
    
    /* HERO - même structure que sections */
    .hero {
        min-height: auto !important;
        padding: 10px 15px !important;
    }
    
    /* Hero container - PAS de padding supplémentaire */
    .hero-container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        min-height: auto !important;
        margin: 0 !important;
    }
    
    .content-area {
        padding: 20px 15px !important;
        margin: 0 0 10px 0 !important;
        border-radius: 15px !important;
        width: 100% !important;
    }
    
    .logo-theme {
        width: 55px !important;
        margin-bottom: 8px !important;
    }
    
    .main-title {
        font-size: 1.5rem !important;
        margin-bottom: 2px !important;
    }
    
    .subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 5px !important;
    }
    
    .tagline {
        font-size: 0.7rem !important;
        margin-bottom: 10px !important;
    }
    
    .phone-btn {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
        height: auto !important;
        width: auto !important;
    }
    
    /* Navigation - grille 2 colonnes */
    .nav-bottom {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        padding-top: 12px !important;
        width: 100% !important;
    }
    
    .nav-btn {
        padding: 12px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 10px !important;
        text-align: center !important;
    }
    
    .nav-btn:nth-child(5) {
        grid-column: span 2 !important;
    }
    
    /* SECTIONS - même padding que hero */
    section {
        padding: 20px 15px !important;
    }
    
    .section-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    /* SERVICES - même largeur que hero */
    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .service-card {
        padding: 15px 10px !important;
    }
    
    .service-card .service-icon {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 8px !important;
    }
    
    .service-card .service-icon svg {
        width: 22px !important;
        height: 22px !important;
    }
    
    .service-card h3 {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }
    
    .service-card p {
        display: none !important;
    }
    
    .service-card:nth-child(9) {
        grid-column: span 2 !important;
    }
    
    /* CONTACT */
    .contact-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .contact-card {
        padding: 12px 8px !important;
    }
    
    .contact-card h3 {
        font-size: 0.65rem !important;
    }
    
    .contact-card p,
    .contact-card a {
        font-size: 0.6rem !important;
    }
    
    .contact-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* ZONE */
    .zone-badge {
        padding: 12px 15px !important;
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .zone-list {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    
    .zone-item {
        font-size: 0.7rem !important;
        padding: 6px 8px !important;
    }
    
    /* GALERIE */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 5px !important;
    }
    
    /* FOOTER */
    footer {
        padding: 20px 15px !important;
    }
    
    /* BOUTONS FIXES */
    .theme-toggle,
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
    }
    
    .theme-toggle {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .back-to-top {
        bottom: 70px !important;
        right: 15px !important;
    }
}

/* ============================================
   TRÈS PETITS ÉCRANS (< 380px)
   ============================================ */
@media (max-width: 380px) {
    .main-title {
        font-size: 1.3rem !important;
    }
    
    .subtitle {
        font-size: 0.85rem !important;
    }
    
    .nav-btn {
        padding: 10px 8px !important;
        font-size: 0.7rem !important;
    }
    
    .zone-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: left !important;
    }
}
