/* mobile.css - Styles spécifiques pour mobile et tablettes */

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* ===== HERO SECTION RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 0;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero h1 span {
        font-size: inherit;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
        white-space: nowrap;
    }
    
    /* Ajustement du conteneur Hero */
    .hero {
        min-height: auto;
        padding: 0;
    }
    
    .hero-image img {
        border-radius: var(--radius-lg);
        max-height: 300px;
        object-fit: cover;
    }
    
    /* Cards flottantes - version mobile */
    .floating-card {
        display: none; /* Cacher sur mobile pour éviter l'encombrement */
    }
    
    /* Alternative : afficher les statistiques en ligne */
    .hero-stats-mobile {
        display: flex !important;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 1rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-lg);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .hero-stats-mobile .stat-item {
        text-align: center;
        color: white;
    }
    
    .hero-stats-mobile .stat-value {
        font-size: 1.25rem;
        font-weight: 700;
        display: block;
    }
    
    .hero-stats-mobile .stat-label {
        font-size: 0.7rem;
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .hero-actions {
        gap: 0.4rem;
    }
    
    .hero-image img {
        max-height: 200px;
    }
}

/* ===== CAROUSEL RESPONSIVE ===== */
@media (max-width: 992px) {
    #carousel-viewport {
        aspect-ratio: auto !important;
        min-height: 300px;
        border-radius: var(--radius-lg);
    }
    
    /* Disposition verticale sur mobile */
    #carousel-viewport > .absolute.inset-0 {
        flex-direction: column !important;
    }
    
    /* Partie texte 1/3 - passe en haut */
    #carousel-viewport .md\:w-1\/3 {
        width: 100% !important;
        padding: 1.5rem !important;
        min-height: 120px;
        flex-shrink: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    #carousel-viewport .md\:w-1\/3 .text-center.md\:text-left {
        text-align: center !important;
    }
    
    #carousel-viewport .md\:w-1\/3 .w-20.h-1 {
        margin: 0.5rem auto !important;
    }
    
    #slide-title {
        font-size: 1.5rem !important;
    }
    
    #slide-desc {
        font-size: 0.9rem !important;
        max-width: 100% !important;
    }
    
    /* Partie image 2/3 - passe en bas */
    #carousel-viewport .md\:w-2\/3 {
        width: 100% !important;
        min-height: 200px;
        flex: 1;
    }
    
    /* Boutons de navigation */
    #prev-btn, #next-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.8rem !important;
        opacity: 1 !important; /* Toujours visible sur mobile */
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    
    #prev-btn {
        left: 8px !important;
    }
    
    #next-btn {
        right: 8px !important;
    }
    
    /* Miniatures */
    #thumbnails-container {
        gap: 6px !important;
        padding: 8px 0 !important;
    }
    
    #thumbnails-container button {
        width: 64px !important;
        height: 48px !important;
        border-radius: 8px !important;
        flex-shrink: 0;
    }
    
    #thumbnails-container button img {
        object-fit: cover !important;
    }
    
    /* Gradient sur les bords des miniatures */
    #thumbnails-container .absolute {
        width: 24px !important;
    }
}

@media (max-width: 480px) {
    #carousel-viewport {
        min-height: 250px;
        border-radius: var(--radius-md);
    }
    
    #carousel-viewport .md\:w-1\/3 {
        padding: 1rem !important;
        min-height: 90px;
    }
    
    #slide-title {
        font-size: 1.2rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    #slide-desc {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    #carousel-viewport .md\:w-2\/3 {
        min-height: 150px;
    }
    
    #prev-btn, #next-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.7rem !important;
    }
    
    #thumbnails-container button {
        width: 48px !important;
        height: 36px !important;
        border-radius: 6px !important;
    }
}

/* ===== SERVICES SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
}

/* ===== PRODUCTS SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content h3 {
        font-size: 1.1rem;
    }
    
    .product-features li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
}

/* ===== CTA SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .cta p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ===== TRUSTED SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .trusted-logos {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 0.5rem;
    }
    
    .trust-item {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        background: white;
        box-shadow: var(--shadow-sm);
    }
    
    .sppb-media {
        flex-direction: row !important;
        align-items: center;
        gap: 12px;
    }
    
    .sppb-icon-container {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
        flex-shrink: 0;
    }
    
    .sppb-media-body {
        text-align: left !important;
    }
    
    .trust-title {
        font-size: 0.85rem !important;
    }
    
    .trust-subtitle {
        font-size: 0.75rem !important;
    }
    
    .trust-item img {
        height: 40px !important;
        width: auto;
    }
}

/* ===== NAVIGATION RESPONSIVE ===== */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 40px !important;
    }
    
    .logo span {
        font-size: 0.9rem;
        display: none; /* Cacher "Avancer assuré" sur mobile */
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        display: none;
        z-index: 1000;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem 0;
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a.active {
        color: var(--accent-green);
        font-weight: 600;
    }
    
    /* Dropdown en mode mobile */
    .dropdown {
        width: 100%;
    }
    
    .dropdown-content {
        position: static !important;
        box-shadow: none !important;
        display: none !important;
        background: var(--gray-50) !important;
        border-radius: var(--radius-sm) !important;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        width: 100% !important;
    }
    
    .dropdown.open .dropdown-content {
        display: block !important;
    }
    
    .dropdown-content a {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }
    
    .dropbtn .fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .dropdown.open .dropbtn .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    /* Bouton MySONAR */
    nav > div:last-child {
        display: none !important;
    }
    
    /* Menu mobile uniquement - afficher MySONAR dans le menu */
    .nav-links .btn-mysonar-mobile {
        display: block;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
        background: var(--accent-green);
        color: white !important;
        padding: 0.75rem !important;
        border-radius: var(--radius-md);
        border-bottom: none !important;
    }
    
    .nav-links .btn-mysonar-mobile i {
        margin-right: 0.5rem;
    }
    
    .nav-links .btn-mysonar-mobile:hover {
        background: var(--dark-green);
        color: white !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary-blue);
        cursor: pointer;
        padding: 0.5rem;
        border-radius: var(--radius-md);
        transition: background var(--transition-fast);
    }
    
    .mobile-menu-btn:hover {
        background: var(--gray-100);
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
        margin: 1rem auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
}

/* ===== ANIMATIONS RESPONSIVE ===== */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .floating-card {
        animation: none !important;
    }
    
    .hero-image:hover img {
        transform: none !important;
    }
}


