/* ===== RESPONSIVE STYLES ===== */

/* Large screens (up to 1200px) */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Medium screens (up to 992px) */
@media screen and (max-width: 992px) {
    section {
        padding: 60px 0;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .guarantee {
        justify-content: center;
    }

    .enterprise-content,
    .coaches-content {
        flex-direction: column;
    }

    .enterprise-content .enterprise-image {
        order: -1;
        margin-bottom: 30px;
    }

    .value-points {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calculator-wrapper {
        flex-direction: column;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-wrap: wrap;
    }

    .footer-col {
        min-width: 45%;
    }
}

/* Navigation Responsive - Advanced Mobile Menu */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    
    .nav-links a {
        padding: 15px 25px;
        display: block;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-buttons a:first-child {
        margin-right: 0;
    }
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin-top: 0;
        display: none;
    }
    
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu a {
        padding: 8px 0;
        padding-left: 20px;
        font-size: 14px;
    }
    
    .dropdown-menu a:hover {
        background: none;
        padding-left: 24px;
    }
}

/* Small screens (up to 768px) */
@media screen and (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    /* Layout */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }

    /* Navigation */
    .nav-links,
    .nav-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 20px;
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 15px;
    }
    
    .hero-image {
        justify-content: center;
        padding: 1rem;
    }

    .hero-video {
        max-width: 100%;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }

    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn:first-child {
        margin-right: 0;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Trust Section */
    .client-logos {
        flex-direction: column;
        gap: 20px;
    }
    
    .client-logos img {
        margin: 10px 15px;
        height: 35px;
    }
    
    .metrics {
        flex-direction: column;
        gap: 30px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .tab-button {
        max-width: none;
        width: 100%;
        padding: 12px 16px;
    }
    
    .feature-panel {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .feature-info {
        max-width: 100%;
    }
    
    .feature-info h3 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Results Section */
    .results-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Coaches */
    .coaches-content {
        flex-direction: column;
        gap: 30px;
    }

    .coach-spotlight {
        flex-direction: column;
    }

    .coach-image {
        flex: 0 0 200px;
        width: 100%;
    }

    .coach-story {
        padding: 20px;
    }

    /* ROI Calculator */
    .calculator-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .calculator-form,
    .calculator-results {
        padding: 25px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-title {
        font-size: 2.25rem;
    }

    .testimonials-subtitle {
        font-size: 1.125rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-quote {
        font-size: 1rem;
    }

    .testimonial {
        padding: 25px;
        margin: 0 15px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .testimonial-author img {
        margin-right: 0;
        width: 80px;
        height: 80px;
    }

    /* Enterprise */
    .enterprise-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .value-points {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cta-box {
        padding: 15px;
    }
    
    .cta-box h3 {
        font-size: 1rem;
    }
    
    .cta-box p {
        font-size: 0.85rem;
    }

    /* FAQ */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 15px;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .demo-form {
        padding: 25px;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .calculator-cta form {
        flex-direction: column;
        gap: 15px;
    }

    /* Footer */
    footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col {
        min-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }

    /* Popup */
    .popup-content {
        width: 95%;
        padding: 25px;
        margin: 0 15px;
    }
    
    .exit-popup form {
        flex-direction: column;
        gap: 15px;
    }
}

/* Landscape Phone Optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 70vh;
    }
    
    .hero .container {
        min-height: 70vh;
        flex-direction: row;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Extra small screens (up to 576px) */
@media screen and (max-width: 576px) {
    section {
        padding: 40px 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .metrics {
        gap: 20px;
    }

    .metric {
        padding: 10px;
    }

    .metric h3 {
        font-size: 2rem;
    }

    .calculator-cta form {
        flex-direction: column;
    }

    .testimonial {
        padding: 20px;
    }

    .testimonial-author img {
        width: 50px;
        height: 50px;
    }

    .demo-form {
        padding: 20px;
    }
}

/* Mobile Sticky CTA */
@media (max-width: 480px) {
    .sticky-cta {
        bottom: 15px;
        right: 15px;
        left: 15px;
        width: calc(100% - 30px);
        padding: 14px 16px;
    }

    .container {
        padding: 0 10px;
    }
    
    section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero .container {
        padding: 20px 10px;
    }
    
    .feature-panel {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }

    .testimonials-title {
        font-size: 1.875rem;
    }

    .testimonials-header {
        margin-bottom: 40px;
    }

    .testimonial-card {
        padding: 20px;
    }
}

/* Large Mobile / Small Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .value-points {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .hero .container {
        gap: 60px;
    }
    
    .feature-panel {
        padding: 40px;
    }
}

/* Animation Keyframes */
@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* Mobile Header Styles */
@media (max-width: 768px) {
    .nav-wrapper {
        justify-content: space-between;
        padding: 10px 0;
    }
    
    .logo img {
        height: 60px; /* Slightly smaller logo on mobile */
    }
    
    /* Hide navigation and buttons on mobile */
    nav,
    .nav-buttons {
        display: none;
    }
    
    /* Show hamburger menu */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* Hamburger animation on hover */
    .mobile-menu-btn:hover span {
        background-color: var(--primary);
    }
    
    /* Active hamburger (X) animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Mobile menu overlay (when opened) */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .mobile-menu.active {
        display: flex;
        opacity: 1;
    }
    
    .mobile-menu .nav-links {
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
    }
    
    .mobile-menu .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu .nav-links a {
        color: white;
        font-size: 24px;
        font-weight: 500;
        padding: 15px 30px;
        border-radius: 8px;
    }
    
    .mobile-menu .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--primary-light);
    }
    
    .mobile-menu .nav-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu .nav-buttons .btn {
        padding: 15px 40px;
        font-size: 18px;
        min-width: 200px;
        text-align: center;
    }
    
    .mobile-menu .btn-text {
        color: white;
        border: 2px solid white;
        background: transparent;
    }
    
    .mobile-menu .btn-text:hover {
        background-color: white;
        color: var(--dark);
    }
    
    /* Dropdown in mobile menu */
    .mobile-menu .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        border: none;
        margin-top: 10px;
        padding: 0;
    }
    
    .mobile-menu .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .mobile-menu .dropdown-arrow {
        display: none;
    }
}

/* CSS Responsive pour les vidéos des feature panels */
@media (max-width: 1024px) {
    .feature-video {
        max-width: 55%;
        min-width: 350px;
    }
    
    .feature-info {
        max-width: 40%;
    }
    
    .feature-info h3 {
        font-size: 1.3rem;
    }
    
    .feature-info p {
        font-size: 0.85rem;
    }
    
    .enterprise-analytics-video,
    .end-to-end-workflow-video,
    .coach-dashboard-video {
        max-width: 450px;
    }
}

/* Tablette portrait */
@media (max-width: 768px) {
    .feature-panel {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .feature-info,
    .feature-video {
        max-width: 100%;
        flex: none;
    }
    
    .feature-info h3 {
        font-size: 1.5rem; /* Plus grand en mobile car centré */
    }
    
    .feature-info p {
        font-size: 0.9rem;
    }
    
    .feature-video {
        margin-top: 20px;
        min-width: auto;
    }
    
    .enterprise-analytics-video,
    .end-to-end-workflow-video,
    .coach-dashboard-video {
        max-width: 400px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .feature-panel {
        padding: 15px;
        gap: 15px;
    }
    
    .feature-info h3 {
        font-size: 1.3rem;
    }
    
    .feature-info p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-video {
        margin-top: 15px;
    }
    
    .enterprise-analytics-video,
    .end-to-end-workflow-video,
    .coach-dashboard-video {
        max-width: 100%;
        min-width: 280px;
    }
}

/* Optimisation pour les appareils à faible performance */
@media (max-width: 768px) {
    .enterprise-analytics-video,
    .end-to-end-workflow-video,
    .coach-dashboard-video {
        max-width: 400px;
        /* Désactive l'accélération GPU sur mobile si nécessaire */
        transform: none;
        will-change: auto;
    }
}