/* Responsive Design */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    /* Navigation */
    .nav-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-menu {
        gap: var(--space-6);
    }
    
    /* Hero section */
    .slide-title {
        font-size: var(--text-4xl);
    }
    
    .slide-description {
        font-size: var(--text-base);
    }
    
    .carousel-navigation {
        padding: 0 var(--space-4);
    }
    
    .carousel-btn {
        width: 50px;
        height: 50px;
    }
    
    /* Sections */
    .portfolio-section,
    .about-section,
    .contact-section {
        padding: var(--space-24) 0;
    }
    
    .section-title {
        font-size: var(--text-4xl);
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    /* Project layout */
    .project-layout {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .project-sidebar {
        position: static;
        order: -1;
    }
    
    .project-info,
    .project-techniques {
        margin-bottom: var(--space-4);
    }
    
    .project-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Smartphones et très petits écrans */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 var(--space-4);
    }
    
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        transform: translateY(0);
        transition: transform var(--transition-normal);
        z-index: var(--z-dropdown);
    }
    
    .nav-menu.hidden {
        transform: translateY(-100%);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero section */
    .hero-section {
        height: 100svh; /* Support pour les navigateurs mobiles */
    }
    
    .slide-content {
        padding: var(--space-6) var(--space-4);
    }
    
    .slide-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-4);
    }
    
    .slide-description {
        font-size: var(--text-sm);
        margin-bottom: var(--space-6);
    }
    
    .slide-cta {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
    
    .carousel-navigation {
        padding: 0 var(--space-3);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-indicators {
        bottom: var(--space-6);
    }
    
    /* Sections */
    .portfolio-section,
    .about-section,
    .contact-section {
        padding: var(--space-16) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-12);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
    }
    
    /* Portfolio */
    .portfolio-filters {
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-bottom: var(--space-8);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* Project cards */
    .card-overlay {
        padding: var(--space-4);
    }
    
    .card-title {
        font-size: var(--text-lg);
    }
    
    .card-description {
        font-size: var(--text-xs);
    }
    
    /* About section */
    .about-description p {
        font-size: var(--text-base);
    }
    
    .about-description p:first-child {
        font-size: var(--text-lg);
    }
    
    .timeline {
        padding-left: var(--space-6);
    }
    
    .timeline::before {
        left: var(--space-3);
    }
    
    .timeline-item::before {
        left: -var(--space-4);
        width: 8px;
        height: 8px;
    }
    
    .timeline-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-6);
    }
    
    /* Contact section */
    .contact-intro {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }
    
    .contact-info {
        gap: var(--space-4);
    }
    
    .contact-item {
        font-size: var(--text-base);
        gap: var(--space-3);
    }
    
    /* Project detail page */
    .project-hero {
        padding: var(--space-16) 0 var(--space-12);
    }
    
    .project-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--space-4);
    }
    
    .project-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }
    
    .project-meta {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .project-video {
        padding: var(--space-12) 0;
    }
    
    .project-content {
        padding: var(--space-12) 0;
    }
    
    .project-layout {
        padding: 0 var(--space-4);
    }
    
    .project-description h2 {
        font-size: var(--text-xl);
    }
    
    .project-description p {
        font-size: var(--text-base);
    }
    
    .project-gallery h2 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-6);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    /* Error page */
    .error-section {
        padding: var(--space-16) 0;
        min-height: 60vh;
    }
    
    .error-number {
        font-size: 6rem;
    }
    
    .error-text h1 {
        font-size: var(--text-2xl);
    }
    
    .error-text p {
        font-size: var(--text-base);
        margin-bottom: var(--space-6);
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer */
    .main-footer {
        padding: var(--space-8) 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* Très petits écrans */
@media (max-width: 480px) {
    /* Typography */
    .slide-title {
        font-size: var(--text-2xl);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .project-title {
        font-size: var(--text-2xl);
    }
    
    /* Spacing */
    .portfolio-section,
    .about-section,
    .contact-section {
        padding: var(--space-12) 0;
    }
    
    .project-hero {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .project-content {
        padding: var(--space-8) 0;
    }
    
    /* Cards */
    .card-overlay {
        padding: var(--space-3);
    }
    
    .card-title {
        font-size: var(--text-base);
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
    
    .slide-cta {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
    
    /* Project info */
    .project-info,
    .project-techniques {
        padding: var(--space-4);
    }
}

/* Écrans larges */
@media (min-width: 1280px) {
    /* Container */
    .container {
        max-width: var(--container-2xl);
    }
    
    /* Hero section */
    .slide-title {
        font-size: var(--text-7xl);
    }
    
    .slide-description {
        font-size: var(--text-xl);
    }
    
    /* Sections */
    .section-title {
        font-size: var(--text-6xl);
    }
    
    .section-subtitle {
        font-size: var(--text-xl);
    }
    
    /* Portfolio grid */
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: var(--space-10);
    }
    
    /* Project layout */
    .project-layout {
        grid-template-columns: 1fr 350px;
        gap: var(--space-20);
    }
}

/* Écrans très larges */
@media (min-width: 1536px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
    }
    
    .slide-content {
        padding: var(--space-4);
    }
    
    .slide-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-3);
    }
    
    .slide-description {
        font-size: var(--text-sm);
        margin-bottom: var(--space-4);
    }
    
    .carousel-indicators {
        bottom: var(--space-4);
    }
}

/* Préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        transition: none;
    }
    
    .slide-image {
        transition: none;
    }
    
    .carousel-slide.active .slide-image {
        transform: none;
    }
    
    .slide-category,
    .slide-title,
    .slide-description,
    .slide-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Mode sombre forcé */
@media (prefers-color-scheme: dark) {
    .nav-menu {
        background: rgba(10, 10, 10, 0.98);
    }
}

/* Impression */
@media print {
    .background-animation,
    .carousel-navigation,
    .carousel-indicators,
    .nav-toggle,
    .main-footer {
        display: none;
    }
    
    .main-nav {
        position: static;
        background: transparent;
        border: none;
    }
    
    .hero-section {
        height: auto;
        padding: var(--space-8) 0;
    }
    
    .slide-content {
        position: static;
        text-align: left;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .project-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card-overlay {
        position: static;
        opacity: 1;
        background: transparent;
        padding: var(--space-4) 0;
    }
}

