/* ===================================
   DIGICO - STYLES RESPONSIVE
   =================================== */

/* Tablets et petits écrans (max-width: 1024px) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    /* Hero */
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

/* Mobile et tablettes (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
        --spacing-3xl: 4rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Navigation */
    .nav-wrapper {
        padding: var(--spacing-sm) 0;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md) 0;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: calc(70px + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .stat-item {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-sm);
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .hero-wave svg {
        height: 40px;
    }

    /* Services */
    .services {
        padding: var(--spacing-2xl) 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    .service-title {
        font-size: 1.25rem;
    }

    .service-description {
        font-size: 0.9375rem;
    }

    /* Process */
    .process {
        padding: var(--spacing-2xl) 0;
    }

    .process-timeline::before {
        left: 20px;
    }

    .process-step {
        grid-template-columns: 40px 1fr;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-title {
        font-size: 1.25rem;
    }

    .step-description {
        font-size: 0.9375rem;
    }

    /* Testimonials */
    .testimonials {
        padding: var(--spacing-2xl) 0;
    }

    .testimonial-card {
        padding: var(--spacing-lg);
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-company {
        font-size: 0.875rem;
    }

    /* CTA */
    .cta {
        padding: var(--spacing-2xl) 0;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-col:first-child {
        grid-column: auto;
    }

    .footer-social {
        margin-bottom: var(--spacing-md);
    }
}

/* Petits mobiles (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .btn {
        font-size: 0.9375rem;
        padding: 0.75rem 1.25rem;
    }

    .btn-lg {
        font-size: 0.9375rem;
        padding: 0.875rem 1.25rem;
    }
}

/* Très grands écrans (min-width: 1440px) */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .cta-title {
        font-size: 3.5rem;
    }
}

/* Animation de scroll pour les éléments */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-on-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .fade-in-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .slide-in-left-on-scroll {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .slide-in-left-on-scroll.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .slide-in-right-on-scroll {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .slide-in-right-on-scroll.visible {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mode sombre - respect des préférences utilisateur */
@media (prefers-color-scheme: dark) {
    /* Optionnel: À activer si nécessaire */
    /* body {
        background-color: #1a1a1a;
        color: #e5e7eb;
    } */
}

/* Impression */
@media print {
    .navbar,
    .hero-wave,
    .cta,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .service-card,
    .testimonial-card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}
