@media screen and (max-width: 768px) {
    /* Général */
    * {
        box-sizing: border-box;
        max-width: 100%;
    }
    
    body, html {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        overflow: hidden;
    }

    section {
        padding: 60px 0;
        width: 100%;
        overflow: hidden;
    }

    /* Navigation */
    .navbar {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
    }
    
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 15px;
        gap: 5px;
    }

    .logo-container {
        max-width: 120px;
    }
    
    .logo-img {
        height: 32px;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        flex-direction: column;
        background-color: var(--bg-light);
        padding: 20px;
        transition: 0.3s;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    /* Correction pour l'affichage des boutons d'authentification */
    .nav-auth-buttons {
        position: static;
        transform: none;
        display: flex;
        flex-wrap: nowrap;
        width: auto;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .nav-auth-buttons a {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin: 0 4px;
        white-space: nowrap;
    }
    
    .btn-outline {
        padding: 7px 10px;
        font-size: 0.85rem;
    }
    
    .btn-primary {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
        margin-left: 5px;
        width: 22px;
        height: 18px;
    }

    .menu-toggle.active span:nth-child(1),
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2),
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3),
    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Correction pour les dropdown */
    .dropdown .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
        transform: none;
        width: 100%;
        margin-top: 10px;
        background-color: rgba(250, 80, 3, 0.05);
        border-radius: 5px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
        width: 100%;
        overflow: hidden;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-content {
        width: 100%;
        padding: 0;
        max-width: 100%;
    }

    .hero-image {
        margin-top: 30px;
        width: 100%;
        padding: 0;
    }
    
    .dashboard-image {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-form {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-form input[type="email"], 
    .hero-form button,
    .hero-form .btn-video {
        width: 100%;
        margin: 5px 0;
        box-sizing: border-box;
    }

    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 20px;
    }

    /* Dashboard Preview */
    .tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .tab-button {
        white-space: nowrap;
        margin: 0 5px;
        flex-shrink: 0;
    }
    
    .dashboard-placeholder {
        width: 100%;
        height: auto;
    }
    
    .dashboard-placeholder img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    /* How It Works */
    .step {
        flex-direction: column;
        margin-bottom: 40px;
        width: 100%;
    }

    .step-content {
        width: 100%;
    }

    .step-image {
        margin: 20px 0 0 0;
        width: 100%;
    }

    .step:nth-child(even) .step-image {
        margin: 20px 0 0 0;
    }

    /* Use Cases */
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 350px;
        margin-bottom: 20px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-content p {
        font-size: 0.9rem;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .product-button {
        min-width: auto;
        padding: 10px 15px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .products-showcase {
        padding: 15px;
        width: 100%;
    }
    
    .product-cards {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .product-card {
        flex-shrink: 0;
        width: 80%;
        min-width: 250px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    /* Form Popups */
    .form-popup {
        width: 90%;
        padding: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand, .footer-links {
        margin-bottom: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Styles pour les boutons dans le hero */
    .btn-video, .btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 380px) {
    .navbar .container {
        padding: 8px 10px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .nav-auth-buttons a {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    /* Cache le texte du bouton Se connecter et affiche seulement une icône */
    .btn-outline {
        width: auto;
        padding: 6px 10px;
    }
    

    
    .btn-outline span {
        display: none; /* Cache le texte */
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    .feature-card, .use-case-card {
        padding: 15px;
    }

    .testimonial-content p {
        font-size: 0.85rem;
    }
    
    /* Ajustements supplémentaires pour très petits écrans */
    .form-popup {
        width: 95%;
        padding: 10px;
    }
    
    .hero-form {
        padding: 0;
    }
    
    .btn-primary, .btn-outline {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}