﻿/* ============================================
   RESPONSIVE GLOBAL STYLES - GounsProject
   ============================================ */

/* Base responsive utilities */
@media (max-width: 640px) {
    /* Small mobile devices */
    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    /* Reduce padding on mobile */
    .section-padding-mobile {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    /* Tablets */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }
}

/* Grid responsive fixes */
@media (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Button responsive */
@media (max-width: 640px) {
    .btn-responsive {
        width: 100%;
        text-align: center;
        padding: 1rem !important;
    }
}

/* Cards responsive */
.card-responsive {
    transition: all 0.3s ease;
}

@media (max-width: 640px) {
    .card-responsive {
        padding: 1.5rem !important;
    }
}

/* Hero sections */
@media (max-width: 640px) {
    .hero-responsive {
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
    }

    .hero-responsive h1 {
        font-size: 2.25rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-responsive p {
        font-size: 1rem !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .hero-responsive {
        padding-top: 7rem !important;
        padding-bottom: 5rem !important;
    }

    .hero-responsive h1 {
        font-size: 3rem !important;
    }
}

/* Table responsive */
@media (max-width: 1024px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 600px;
    }
}

/* Pricing cards */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 2rem;
    }
}

/* Feature sections */
@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Stats sections */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Image responsive */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Container padding responsive */
@media (max-width: 640px) {
    .container-mobile {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .container-tablet {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Text alignment responsive */
@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center !important;
    }
}

/* Spacing utilities */
@media (max-width: 640px) {
    .space-y-mobile > * + * {
        margin-top: 1.5rem !important;
    }

    .space-x-mobile > * + * {
        margin-left: 0 !important;
        margin-top: 1rem !important;
    }
}

/* Flex responsive */
@media (max-width: 768px) {
    .flex-col-mobile {
        flex-direction: column !important;
    }

    .flex-col-mobile > * + * {
        margin-top: 1rem !important;
        margin-left: 0 !important;
    }
}

/* Hide/Show utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Scroll indicators for horizontal scroll */
.scroll-indicator::after {
    content: '→ Faites défiler';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent, white 20%);
    padding: 0.5rem 1rem 0.5rem 2rem;
    font-size: 0.875rem;
    color: #6B7280;
    pointer-events: none;
}

@media (min-width: 1025px) {
    .scroll-indicator::after {
        display: none;
    }
}

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .touch-friendly {
        min-height: 44px;
        min-width: 44px;
    }

    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Improved tap targets on mobile */
@media (max-width: 768px) {
    button, a, input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Modal/Dialog responsive */
@media (max-width: 640px) {
    .modal-responsive {
        width: 95% !important;
        max-width: none !important;
        margin: 1rem !important;
    }
}

/* Video embeds responsive */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor !important;
    }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    /* Reserved for future dark mode implementation */
}
