/* ============================================
   SCOOPS/CODBA - Styles Responsive
   Mobile-First Approach
   ============================================ */

/* === TABLETTES (max-width: 1024px) === */
@media (max-width: 1024px) {

    /* Typographie */
    html {
        font-size: 15px;
    }

    .hero-title-main {
        font-size: var(--font-size-5xl);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    /* Navigation */
    .nav-menu {
        gap: var(--spacing-md);
    }

    /* Grilles */
    .activities-grid,
    .infra-grid,
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .infra-features {
        grid-template-columns: 1fr;
    }

    .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

/* === TABLETTES PORTRAIT (max-width: 768px) === */
@media (max-width: 768px) {

    /* Typographie */
    html {
        font-size: 14px;
    }

    .hero-title-main {
        font-size: var(--font-size-4xl);
    }

    .hero-title-sub {
        font-size: var(--font-size-lg);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    /* Navigation Mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        padding: var(--spacing-xl);
        box-shadow: var(--shadow-2xl);
        transition: left var(--transition-base);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-md);
        text-align: center;
        font-size: var(--font-size-lg);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding-top: 100px;
        /* Plus d'espace sous la navbar */
        padding-bottom: 60px;
        /* Plus d'espace sous les boutons */
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        margin: var(--spacing-lg) 0;
    }

    .hero-stats .stat-item:last-child {
        grid-column: span 2;
        justify-self: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* À Propos */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-image {
        order: -1;
    }

    .image-stack {
        height: 400px;
    }

    .stack-image-main {
        height: 350px;
    }

    .stack-image-overlay {
        width: 70%;
        height: 200px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Activités */
    .activities-grid {
        grid-template-columns: 1fr;
    }

    /* Infrastructure */
    .infra-main {
        margin-bottom: var(--spacing-lg);
    }

    .infra-image-large {
        height: 300px;
    }

    .infra-grid {
        grid-template-columns: 1fr;
    }

    .partner-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .partner-logo-area {
        height: 150px;
    }

    .partner-benefits {
        grid-template-columns: 1fr;
    }

    /* Productions */
    .production-summary {
        grid-template-columns: 1fr;
    }

    .production-details {
        grid-template-columns: 1fr;
    }

    .detail-right {
        order: -1;
    }

    .sales-grid {
        grid-template-columns: 1fr;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    /* Équipe */
    .team-image-large {
        height: 300px;
    }

    .team-images-grid {
        grid-template-columns: 1fr;
    }

    .team-image-item {
        height: 200px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    /* Partenaires */
    .partners-grid {
        grid-template-columns: 1fr;
    }

    /* Galerie */
    .gallery-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    /* Lightbox */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }

    .lightbox-prev {
        left: var(--spacing-sm);
    }

    .lightbox-next {
        right: var(--spacing-sm);
    }
}

/* === MOBILES (max-width: 480px) === */
@media (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Sections */
    .section {
        padding: var(--spacing-2xl) 0;
    }

    /* Typographie */
    .hero-title-main {
        font-size: var(--font-size-3xl);
    }

    .hero-title-sub {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    /* Navigation */
    .logo {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: var(--font-size-lg);
    }

    /* Hero */
    .hero-logo {
        width: 100px;
        height: 100px;
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .stat-number {
        font-size: var(--font-size-2xl);
    }

    .stat-label {
        font-size: var(--font-size-xs);
    }

    /* Cartes et items */
    .activity-icon,
    .role-icon,
    .partner-icon,
    .sale-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }

    .feature-icon,
    .info-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }

    /* Badge */
    .about-badge {
        width: 100px;
        height: 100px;
        padding: var(--spacing-sm);
    }

    .about-badge i {
        font-size: var(--font-size-xl);
    }

    /* Images */
    .image-stack {
        height: 300px;
    }

    .stack-image-main {
        height: 250px;
    }

    .stack-image-overlay {
        width: 80%;
        height: 150px;
    }

    .infra-image-large {
        height: 200px;
    }

    .infra-image {
        height: 150px;
    }

    .activity-image {
        height: 200px;
    }

    .production-image {
        height: 200px;
    }

    .team-image-large {
        height: 200px;
    }

    .team-image-item {
        height: 150px;
    }

    .gallery-item {
        height: 200px;
    }

    /* Galerie */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Productions */
    .summary-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-2xl);
    }

    .summary-number {
        font-size: var(--font-size-2xl);
    }

    .summary-label {
        font-size: var(--font-size-base);
    }

    .harvest-date {
        width: 60px;
    }

    .date-day {
        font-size: var(--font-size-xl);
    }

    /* Partenaires */
    .partner-logo-area i {
        font-size: 60px;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }

    .footer-logo {
        width: 60px;
        height: 60px;
    }

    /* Boutons */
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    /* Scroll to top */
    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: var(--font-size-lg);
        bottom: var(--spacing-md);
        right: var(--spacing-md);
    }

    /* Lightbox */
    .lightbox-close {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-base);
    }
}

/* === PETITS MOBILES (max-width: 360px) === */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .hero-title-main {
        font-size: var(--font-size-2xl);
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }

    .logo {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: var(--font-size-base);
    }
}

/* === LANDSCAPE MODE === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--spacing-2xl) 0;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
        margin-bottom: var(--spacing-sm);
    }

    .hero-title-main {
        font-size: var(--font-size-2xl);
    }

    .hero-stats {
        margin: var(--spacing-md) 0;
    }

    .stat-item i {
        font-size: var(--font-size-xl);
    }

    .stat-number {
        font-size: var(--font-size-xl);
    }

    .hero-scroll {
        display: none;
    }
}

/* === DARK MODE (si supporté) === */
@media (prefers-color-scheme: dark) {
    /* Optionnel: Ajustements pour mode sombre système */
    /* À activer si souhaité */
}

/* === RÉDUCTION DES ANIMATIONS (accessibilité) === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* === HAUTE RÉSOLUTION (Retina) === */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Optimisations pour écrans haute résolution */
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* === GRANDS ÉCRANS (min-width: 1440px) === */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    html {
        font-size: 18px;
    }
}

/* === TRÈS GRANDS ÉCRANS (min-width: 1920px) === */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .hero-title-main {
        font-size: 5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* === ULTRA LARGES (4K+) === */
@media (min-width: 2560px) {
    .container {
        max-width: 2000px;
    }

    html {
        font-size: 20px;
    }
}