/* Responsive Design */

/* Variables globales */
:root {
    --header-height: 80px;
    --header-height-mobile: 60px;
}

/* Large Desktops (1400px et plus) */
@media (min-width: 1400px) {
     .hero-content > div > img{
        /* height: 31vh !important; */
         height: 50vh;
    }
    .container {
        max-width: 1320px;
    }
}

/* Desktops (1200px à 1399px) */
@media (max-width: 1399px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 3.2em;
    }

    .section-title {
        font-size: 2.8em;
    }
}

/* Laptops et petits desktops (992px à 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .section-title {
        font-size: 2.4em;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-text h3 {
        font-size: 1.1em;
    }

    .navigation .nav-link {
        margin: 0 15px;
    }
}

/* Gestion des images responsives */
.hide-on-mobile {
    display: none !important;
}

/* Tablettes (768px à 991px) */
@media (max-width: 991px) {
    .hide-on-tablet {
        display: none !important;
    }

    .client-image {
        width: 60px !important;
        height: 60px !important;
    }

    .hero-illustration,
    .section-illustration {
        display: none;
    }

    .container {
        max-width: 720px;
    }

    .header {
        height: var(--header-height-mobile);
    }

    .navigation {
        display: none;
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .navigation.mobile-active {
        display: flex;
    }

    .navigation .nav-link {
        margin: 10px 0;
        padding: 10px;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

    .hero-content {
        width: 100%;
        margin-bottom: 40px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Tablettes et grands mobiles (576px à 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    .hero-title {
        font-size: 2.4em;
    }

    .section-title {
        font-size: 2em;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    .btn-commencer-nav {
        width: 100%;
        margin-top: 10px;
    }
}

/* Mobiles (moins de 576px) */
@media (max-width: 575px) {
.creatifs-section, .offre-section{
    padding: 0;
}

    .hero-content > div > img{
        height: 31vh !important;
         /* height: 50vh; */
    }
    /* Masquer les images décoratives sur mobile */
    .decorative-image,
    .background-image,
    .hero-image,
    .client-image {
        display: none !important;
    }

    /* Réduire la taille des logos et icônes essentiels */
    .logo-img {
        width: 40px;
        height: auto;
    }

    .feature-icon {
        width: 24px;
        height: 24px;
    }

    /* Optimiser l'espace en supprimant les images non essentielles */
    .carousel-card .client-image,
    .testimonial-image,
    .partner-logo {
        display: none !important;
    }

    /* Ajuster le contenu pour compenser l'absence d'images */
    .carousel-card {
        padding: 15px !important;
        min-height: auto !important;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 1em;
    }

    .feature-item {
        padding: 15px;
    }

    .btn-commencer-main {
        width: 100%;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2em;
    }

    .module-item {
        margin-bottom: 30px;
    }

    .pricing-card.premium {
    margin-right: 0;
}

.bottom-section {
    top: -279px;
    height: 39%;
    width: 100%;
}
}



/* Ajustements pour la navigation mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 10px;
}

/* Ajustements pour le mode sombre */
@media (prefers-color-scheme: dark) {
    .navigation.mobile-active {
        background: #edeaea;
    }

    .mobile-menu-toggle {
        color: #000000;
    }
}

/* Optimisations pour les appareils avec notch */
@supports (padding-top: env(safe-area-inset-top)) {
    .header {
        padding-top: env(safe-area-inset-top);
    }

    .navigation.mobile-active {
        padding-top: calc(env(safe-area-inset-top) + 20px);
    }
}

/* Optimisations pour les écrans à fort DPI */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Ajustements pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Support des grands écrans */
@media (min-width: 1600px) {
    .container {
        max-width: 1520px;
    }

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

    .section-title {
        font-size: 3.2em;
    }
}

/* Ajustements pour l'impression */
@media print {
    .header {
        position: static;
    }

    .navigation,
    .btn-commencer-nav,
    .btn-commencer-main,
    .social-links {
        display: none;
    }

    .container {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    body {
        color: black;
    }

    a {
        text-decoration: none;
        color: black;
    }

    .section {
        page-break-inside: avoid;
    }
}