/* ===== RESPONSIVE DESIGN AVANCÉ ===== */

/* Extra Large Devices (1400px et plus) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
}

/* Large Devices (1200px à 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium Devices (992px à 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-visual {
        height: 500px;
    }
}

/* Small Devices (768px à 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .navbar-nav {
        gap: 1.5rem;
    }
    
    .header-spacer {
        height: 70px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        border-top: 1px solid rgba(255, 149, 0, 0.3);
        padding: 2rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-actions {
        margin-top: 2rem;
        text-align: center;
    }
    
    /* Dropdown sur mobile */
    .dropdown .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .dropdown .nav-link i {
        font-size: 10px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Services Page */
    .services-hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
        text-align: center;
    }
    
    .services-hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .services-hero-left {
        text-align: center;
    }
    
    .services-hero-right {
        justify-content: center;
    }
    
    /* Gallery Video Section */
    .gallery-video-content {
        flex-direction: column;
        height: auto;
        margin-left: 0;
        width: 100%;
    }
    
    .gallery-left,
    .gallery-right,
    .gallery-center {
        flex: none;
        width: 100%;
        height: 250px;
    }
    
    /* Video Surveillance Content */
    .video-surveillance-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .video-surveillance-image {
        order: 1;
    }
    
    .video-surveillance-text {
        order: 2;
        text-align: center;
    }
    
    .surveillance-cta,
    .access-cta,
    .sonorisation-cta,
    .alarme-cta {
        justify-content: center;
    }
    
    /* Access Control */
    .access-control-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .access-control-text {
        text-align: center;
    }
    
    .access-features {
        grid-template-columns: 1fr;
    }
    
    .access-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Sonorisation */
    .sonorisation-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .sonorisation-text {
        text-align: center;
    }
    
    .sonorisation-features {
        grid-template-columns: 1fr;
    }
    
    .sonorisation-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Alarme */
    .alarme-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .alarme-text {
        text-align: center;
    }
    
    .alarme-features {
        grid-template-columns: 1fr;
    }
    
    .alarme-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1.5rem;
        display: flex !important;
    }
    
    .footer-logo-img {
        height: 100px;
        width: auto;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text {
        padding-left: 0;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    /* Flip Cards */
    .flip-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Zones Hero */
    .zones-hero {
        min-height: 50vh;
    }
    
    .zones-hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .zones-hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Process Section */
    .process-overlay {
        padding: 60px 20px;
    }
    
    .process-content {
        padding: 2rem;
    }
    
    .process-title {
        font-size: 1.5rem;
    }
}

/* Extra Small Devices (576px à 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .header-spacer {
        height: 70px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        border-top: 1px solid rgba(255, 149, 0, 0.3);
        padding: 2rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-actions {
        margin-top: 2rem;
        text-align: center;
        display: block;
    }
    
    .navbar-actions .btn-contact {
        display: inline-flex;
        width: auto;
    }
    
    /* Dropdown sur mobile */
    .dropdown .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .dropdown .nav-link i {
        font-size: 10px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .stats-cards {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
        min-width: 120px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Services Hero */
    .services-hero-title {
        font-size: 2.2rem;
    }
    
    .services-hero-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Gallery Videos */
    .gallery-video-content {
        flex-direction: column;
        height: auto;
        margin-left: 0;
        width: 100%;
    }
    
    .gallery-left,
    .gallery-right,
    .gallery-center {
        height: 220px;
    }
    
    /* Sections Content */
    .video-surveillance-content,
    .access-control-content,
    .sonorisation-content,
    .alarme-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .video-surveillance-image,
    .access-control-image,
    .sonorisation-image,
    .alarme-image {
        order: 1;
    }
    
    .video-surveillance-text,
    .access-control-text,
    .sonorisation-text,
    .alarme-text {
        order: 2;
        text-align: center;
    }
    
    .surveillance-img,
    .access-img,
    .sonorisation-img,
    .alarme-img {
        height: 250px;
    }
    
    .surveillance-title,
    .access-title,
    .sonorisation-title,
    .alarme-title {
        font-size: 2rem;
    }
    
    .surveillance-cta,
    .access-cta,
    .sonorisation-cta,
    .alarme-cta {
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .access-features,
    .sonorisation-features,
    .alarme-features,
    .surveillance-features {
        grid-template-columns: 1fr;
    }
    
    .surveillance-title::after,
    .access-title::after,
    .sonorisation-title::after,
    .alarme-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1.5rem;
        display: flex !important;
    }
    
    .footer-logo-img {
        height: 90px;
        width: auto;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Services Cards */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Services Grid 4 */
    .services-grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .about-text {
        padding-left: 0;
    }
    
    /* Flip Cards */
    .flip-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .flip-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Process Section */
    .process-section {
        min-height: 400px;
    }
    
    .process-overlay {
        padding: 40px 15px;
    }
    
    .process-content {
        padding: 1.5rem;
    }
    
    .process-title {
        font-size: 1.2rem;
    }
    
    /* Cards Spacer */
    .cards-spacer {
        height: 30px;
    }
}

/* Very Small Devices (moins de 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .header-spacer {
        height: 70px;
    }
    
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        border-top: 1px solid rgba(255, 149, 0, 0.3);
        padding: 1.5rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        justify-content: center;
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-actions {
        margin-top: 1.5rem;
        text-align: center;
        display: block;
    }
    
    .navbar-actions .btn-contact {
        display: inline-flex;
        width: auto;
        padding: 12px 24px;
    }
    
    /* Dropdown sur mobile */
    .dropdown .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .dropdown .nav-link i {
        font-size: 10px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .logo-main {
        font-size: 18px;
    }
    
    .logo-sub {
        font-size: 10px;
    }
    
    .hero-content {
        padding: 3rem 0 2rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .feature-item {
        font-size: 0.8rem;
    }
    
    .stats-cards {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .stat-card {
        padding: 0.75rem;
        min-width: 100px;
        width: 100%;
        max-width: 200px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .video-preview-card {
        height: 100px;
        max-width: 250px;
    }
    
    .play-button {
        width: 30px;
        height: 30px;
    }
    
    .play-button i {
        font-size: 12px;
    }
    
    /* Services Page Responsive */
    .services-hero {
        min-height: 40vh;
    }
    
    .services-hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
        text-align: center;
    }
    
    .services-hero-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .services-hero-left {
        text-align: center;
    }
    
    .services-hero-right {
        justify-content: center;
    }
    
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    /* Gallery Video Section */
    .gallery-video-content {
        flex-direction: column;
        height: auto;
        margin-left: 0;
        width: 100%;
        gap: 0;
    }
    
    .gallery-left,
    .gallery-right,
    .gallery-center {
        flex: none;
        width: 100%;
        height: 200px;
    }
    
    .gallery-video-section .section-title {
        font-size: 1.8rem;
    }
    
    /* Video Surveillance Section */
    .video-surveillance-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .video-surveillance-image,
    .video-surveillance-text {
        flex: none;
        width: 100%;
    }
    
    .surveillance-img {
        height: 250px;
    }
    
    .surveillance-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .surveillance-description {
        text-align: center;
    }
    
    .surveillance-cta,
    .access-cta,
    .sonorisation-cta,
    .alarme-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Access Control Section */
    .access-control-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .access-control-image,
    .access-control-text {
        flex: none;
        width: 100%;
    }
    
    .access-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    /* Sonorisation Section */
    .sonorisation-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sonorisation-image,
    .sonorisation-text {
        flex: none;
        width: 100%;
    }
    
    .sonorisation-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    /* Alarme Section */
    .alarme-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .alarme-image,
    .alarme-text {
        flex: none;
        width: 100%;
    }
    
    .alarme-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    /* Zones Page */
    .zones-hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .zones-hero-subtitle {
        font-size: 1rem;
    }
    
    .zones-hero {
        min-height: 40vh;
    }
    
    .zones-presentation-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .zones-text,
    .zones-image {
        flex: none;
        width: 100%;
    }
    
    .zones-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .zones-description {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .video-preview-card {
        height: 100px;
        max-width: 250px;
    }
    
    .play-button {
        width: 30px;
        height: 30px;
    }
    
    .play-button i {
        font-size: 12px;
    }
    
    /* Footer */
    .footer-logo {
        justify-content: center;
        margin-bottom: 1rem;
        display: flex !important;
    }
    
    .footer-logo-img {
        height: 80px;
        width: auto;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
}

/* Landscape Orientation pour Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 2rem 0;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .hero-visual {
        height: 300px;
        order: 0;
    }
    
    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background {
        background-image: url('../assets/camera-de-securite-de-rendu-3d-ou-camera-de-videosurveillance-dans-la-maison.jpg');
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --text-light: #b0b0b0;
        --bg-light: #1a1a1a;
        --border-color: #333333;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-text > *,
    .hero-visual {
        animation: none;
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .header,
    .navbar-toggle,
    .hero-actions,
    .video-preview-card {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        background: white !important;
        color: black !important;
    }
    
    .hero-title,
    .hero-description {
        color: black !important;
    }
}