/* Responsive Design - Ultra-moderne */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .main-logo {
        width: 500px;
        height: 500px;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    .main-logo {
        width: 400px;
        height: 400px;
    }
    
    .video-container-modern video {
        height: 400px;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --section-padding: 6rem 0;
        --container-max: 1000px;
    }
    
    .section-container {
        padding: 0 1.5rem;
    }
    
    .main-logo {
        width: 350px;
        height: 350px;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    /* Navigation mobile */
    .futuristic-nav {
        display: none;
    }
    
    .mobile-menu-trigger {
        display: flex;
    }
    
    .logo-container {
        padding-left: 0; /* Pas de décalage sur mobile */
    }
    
    .main-logo {
        width: 280px;
        height: 280px;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-text {
        font-size: 1.1rem;
    }
    
    .video-container-modern video {
        height: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
        margin-bottom: 3rem;
    }
    
    .filter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 4rem 0;
        --border-radius: 15px;
        --border-radius-lg: 20px;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .main-logo {
        width: 220px;
        height: 220px;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .section-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .section-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .video-container-modern {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .video-container-modern video {
        height: 250px;
    }
    
    .video-controls-overlay {
        bottom: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.8rem;
    }
    
    .video-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .video-indicator {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .portfolio-media img,
    .portfolio-media video {
        height: 250px;
    }
    
    .contact-card {
        padding: 1rem;
        gap: 1rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .input-container input,
    .input-container textarea {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .input-container label {
        top: 1rem;
        left: 1rem;
        font-size: 0.9rem;
    }
    
    .submit-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .image-card img {
        height: 300px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .mobile-menu-trigger {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .mobile-menu-trigger span {
        width: 18px;
    }
    
    .mobile-menu-item {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .main-logo {
        width: 180px;
        height: 180px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .video-showcase {
        margin: 0 -1rem;
    }
    
    .video-container-modern video {
        height: 200px;
    }
    
    .orb-1, .orb-2, .orb-3 {
        display: none; /* Masquer les orbes sur très petits écrans pour la performance */
    }
    
    .service-card {
        padding: 1.2rem;
        margin: 0;
    }
    
    .service-features {
        gap: 0.5rem;
    }
    
    .service-features span {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        width: 80%;
        text-align: center;
    }
    
    .portfolio-media img,
    .portfolio-media video {
        height: 200px;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 1rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.8rem;
    }
    
    .contact-cards {
        gap: 1rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    
    .social-link-modern {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .image-card img {
        height: 250px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Très petits écrans (up to 320px) */
@media (max-width: 320px) {
    .main-logo {
        width: 150px;
        height: 150px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .contact-form-container {
        padding: 1rem;
    }
    
    .video-container-modern video {
        height: 180px;
    }
}

/* Orientation landscape sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .main-logo {
        width: 120px;
        height: 120px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-content {
        margin-bottom: 1rem;
    }
    
    .video-container-modern video {
        height: 150px;
    }
}

/* États de focus pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .main-logo {
        animation: none;
    }
    
    .gradient-orb {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.03);
        --glass-border: rgba(255, 255, 255, 0.08);
        --glass-hover: rgba(255, 255, 255, 0.06);
    }
}

/* Amélioration du contraste */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-secondary: #e0e0e0;
        --text-muted: #c0c0c0;
    }
    
    .nav-dot {
        border-width: 3px;
    }
    
    .service-card,
    .portfolio-media,
    .contact-card {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .futuristic-nav,
    .mobile-menu-trigger,
    .mobile-menu,
    .video-showcase,
    .video-container-modern,
    .contact-form-container,
    .modern-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-logo {
        filter: none;
    }
    
    .section-title,
    .hero-subtitle {
        color: black;
        -webkit-text-fill-color: unset;
    }
    
    .service-card,
    .portfolio-media,
    .contact-card {
        background: white;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}