/* ============================================
   GRDM AUTOS - Responsive Optimisé
   ============================================ */

/* ---------- TABLETTE (768px - 1024px) ---------- */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    /* Header */
    .header-contact {
        gap: 15px;
    }

    .header-link span {
        font-size: 13px;
    }

    .navbar .container {
        padding: 0 20px;
    }

    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .nav-cta .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Hero */
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 60px;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 40px;
    }

    /* Grids */
    .services-grid,
    .depollution-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .about-grid,
    .bmw-grid,
    .contact-grid {
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* Cards */
    .service-card,
    .depollution-card {
        padding: 30px 25px;
    }

    .section-title {
        font-size: 38px;
    }
}

/* ---------- MOBILE PAYSAGE / PETITE TABLETTE (576px - 768px) ---------- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header Top - Caché sur mobile */
    .header-top {
        display: none;
    }

    /* Navbar Mobile */
    .navbar {
        padding: 12px 0;
    }

    .logo img {
        height: 38px;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1001;
    }

    .nav-toggle span {
        width: 28px;
        height: 3px;
        background: var(--white);
        border-radius: 3px;
        transition: var(--transition);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        transform: translateX(100%);
        opacity: 0;
        transition: all 0.4s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu a {
        display: block;
        padding: 18px 20px;
        font-size: 18px;
    }

    .nav-menu a::after {
        display: none;
    }

    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.3);
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.open .dropdown {
        max-height: 300px;
    }

    .dropdown a {
        color: var(--gray-light);
        padding: 14px 30px;
        font-size: 16px;
    }

    .nav-cta {
        margin: 25px 0;
    }

    .nav-cta .btn {
        padding: 15px 40px;
        font-size: 16px;
    }

    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        padding-top: 80px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 30px 0;
    }

    .hero-badge {
        padding: 10px 18px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero-title {
        font-size: 42px;
        letter-spacing: 2px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 20px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
        margin-top: 40px;
    }

    .stat-item {
        min-width: 90px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 11px;
    }

    .hero-scroll {
        display: none;
    }

    /* Sections Mobile */
    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-tag {
        font-size: 12px;
        padding: 6px 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* About Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 300px;
    }

    .about-badge {
        right: 15px;
        bottom: -15px;
        padding: 18px;
    }

    .badge-number {
        font-size: 36px;
    }

    .badge-text {
        font-size: 12px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-text {
        font-size: 15px;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 20px;
    }

    .service-icon i {
        font-size: 26px;
    }

    .service-card h3 {
        font-size: 22px;
    }

    .service-card p {
        font-size: 14px;
    }

    /* Depollution Mobile */
    .depollution-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .depollution-card {
        padding: 30px 25px;
    }

    .depollution-icon {
        width: 60px;
        height: 60px;
    }

    .depollution-icon i {
        font-size: 26px;
    }

    .depollution-card h3 {
        font-size: 24px;
    }

    .depollution-cta p {
        font-size: 16px;
    }

    /* BMW Mobile */
    .bmw-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bmw-image img {
        height: 280px;
    }

    .bmw-list li {
        padding: 10px 0;
        font-size: 15px;
    }

    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 28px;
    }

    .testimonial-text {
        font-size: 14px;
    }

    .google-rating {
        flex-direction: column;
        gap: 10px;
    }

    /* Contact Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-map {
        min-height: 300px;
    }

    .info-item {
        margin-bottom: 25px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-icon i {
        font-size: 20px;
    }

    /* Footer Mobile */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* WhatsApp Float Mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 58px;
        height: 58px;
        font-size: 28px;
    }
}

/* ---------- SMARTPHONE PETIT (jusqu'à 480px) ---------- */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* Hero très petit écran */
    .hero-title {
        font-size: 34px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 8px 14px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-label {
        font-size: 10px;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    /* About */
    .about-image img {
        height: 250px;
    }

    .about-badge {
        padding: 15px;
    }

    .badge-number {
        font-size: 30px;
    }

    /* Cards */
    .service-card,
    .depollution-card,
    .testimonial-card {
        padding: 25px 20px;
    }

    /* Contact */
    .contact-map {
        min-height: 250px;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    /* Buttons */
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }

    /* WhatsApp */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
        font-size: 26px;
    }
}

/* ---------- Amélioration Touch ---------- */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .service-card:hover,
    .depollution-card:hover,
    .testimonial-card:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .nav-menu a:hover::after {
        width: 0;
    }
}

/* ---------- PARTNERS RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .partners {
        padding: 60px 0;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .partner-card {
        height: 80px;
        padding: 15px;
    }
    
    .partner-card img {
        max-width: 100px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partner-card {
        height: 70px;
    }
}

/* ---------- NEWS RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .news {
        padding: 60px 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-content h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 18px;
    }
}
