/* Responsive Design */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-logo {
        width: 250px;
        height: 250px;
    }
    
    .hero-logo i {
        font-size: 4rem;
    }
    
    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-content {
        margin: 1rem 0;
        max-width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .contact-preview-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero mobile */
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        gap: 2rem;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-description h2 {
        font-size: var(--font-size-2xl);
    }
    
    .hero-description p {
        font-size: var(--font-size-base);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-logo {
        width: 200px;
        height: 200px;
    }
    
    .hero-logo i {
        font-size: 3rem;
    }
    
    /* Sections mobile */
    .roadmap,
    .statistics,
    .services,
    .contact-preview {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Timeline mobile */
    .timeline {
        padding: 0 1rem;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline-year {
        font-size: var(--font-size-base);
        padding: 0.5rem 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: var(--font-size-lg);
    }
    
    /* Stats mobile */
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: var(--font-size-3xl);
    }
    
    .stat-label {
        font-size: var(--font-size-base);
    }
    
    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        max-width: 100%;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-title {
        font-size: var(--font-size-lg);
    }
    
    .service-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer mobile */
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Cookie notice mobile */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-text p {
        font-size: var(--font-size-sm);
    }
    
    /* Back to top mobile */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    /* Boutons mobile */
    .btn {
        padding: 0.75rem 1.25rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: var(--font-size-base);
    }
    
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: var(--font-size-xs);
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-description h2 {
        font-size: var(--font-size-xl);
    }
    
    .hero-logo {
        width: 150px;
        height: 150px;
    }
    
    .hero-logo i {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .service-content {
        padding: 0.75rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

/* Écrans très larges */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
    
    .footer-container {
        max-width: 1400px;
    }
    
    .hero-container {
        max-width: 1400px;
    }
    
    .hero-content {
        gap: 6rem;
    }
    
    .hero-logo {
        width: 400px;
        height: 400px;
    }
    
    .hero-logo i {
        font-size: 8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-particles {
        display: none;
    }
    
    .logo-glow {
        animation: none;
    }
}

/* Mode sombre forcé */
@media (prefers-color-scheme: dark) {
    /* Les styles sont déjà optimisés pour le mode sombre */
}

/* Impression */
@media print {
    .navbar,
    .cookie-notice,
    .back-to-top,
    .hero-particles,
    .logo-glow {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .roadmap,
    .statistics,
    .services,
    .contact-preview,
    .footer {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
}

