/**
 * Mobile Pro - Design Responsive Crypto.com Style
 * Optimisé pour téléphones et tablettes
 */

/* ===== PERFORMANCE MOBILE ===== */
@media (max-width: 768px) {
    /* Réduire les animations pour la performance */
    *, *::before, *::after {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }

    /* Touch feedback amélioré */
    a, button, .btn-primary, .btn-outline, .mobile-nav-item {
        -webkit-tap-highlight-color: rgba(17, 153, 250, 0.15);
    }

    /* Désactiver backdrop-filter sur mobile (très coûteux) */
    .hero-card, #liveNotification > div {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Contenir le layout pour éviter les reflows */
    section {
        contain: layout style;
    }

    /* Désactiver les floating cards sur mobile */
    .floating-card {
        display: none !important;
    }

    /* Désactiver les ombres lourdes */
    .image-glow {
        box-shadow: none !important;
    }
}

/* ===== MOBILE FIRST BASE - ULTRA COMPACT ===== */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 10px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0 20px;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: 1.3rem !important;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.78rem !important;
        margin-bottom: 10px !important;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 6px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }

    .floating-card {
        display: none;
    }

    .hero-stats {
        margin-top: 14px !important;
        gap: 6px;
    }

    .hero-stats .stat-item {
        padding: 6px;
    }

    .hero-card {
        padding: 10px !important;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 1.1rem !important;
    }

    .section-description {
        font-size: 0.75rem;
    }

    .section-tag {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    /* All Sections reduced padding */
    .section,
    .partners-section,
    .formations-section,
    .market-section,
    .courses-section,
    .consulting-section {
        padding: 25px 0 !important;
    }

    section {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

    /* Partners Grid */
    .partners-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }

    .partner-item {
        padding: 6px;
    }

    .partner-logo-img {
        height: 24px !important;
    }

    .partner-item span {
        display: none;
    }

    /* Countries Grid */
    .countries-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .country-card {
        padding: 6px !important;
    }

    .country-card img {
        width: 28px !important;
    }

    .country-card div {
        font-size: 0.65rem !important;
    }

    /* Crypto Grid & Top 5 */
    .crypto-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .crypto-item {
        padding: 8px;
    }

    .crypto-icon-box {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }

    .crypto-icon-box img {
        width: 16px;
        height: 16px;
    }

    .crypto-symbol {
        font-size: 0.72rem;
    }

    .price-value {
        font-size: 0.78rem;
    }

    /* Top 5 Crypto cards on mobile */
    .crypto-card-animated {
        padding: 12px !important;
    }

    .crypto-card-animated img {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 8px !important;
    }

    .crypto-card-animated h3 {
        font-size: 0.9rem !important;
    }

    .crypto-price-live {
        font-size: 1rem !important;
    }

    .btn-crypto-details {
        font-size: 0.7rem !important;
        padding: 5px 10px !important;
    }

    /* Plans Recap Grid - scroll horizontal sur mobile */
    .plans-recap-grid {
        gap: 6px !important;
        margin: 14px auto 20px !important;
        padding: 0 4px 8px !important;
    }
    .plans-recap-grid::-webkit-scrollbar {
        height: 3px;
    }
    .plans-recap-grid::-webkit-scrollbar-thumb {
        background: rgba(17, 153, 250, 0.4);
        border-radius: 3px;
    }
    .plans-recap-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    .plan-recap-card {
        min-width: 140px !important;
        padding: 10px 8px !important;
    }
    .plan-recap-card div[style*="font-size: 1.8rem"] {
        font-size: 1.2rem !important;
    }
    .plan-recap-card div[style*="font-size: 0.82rem"] {
        font-size: 0.65rem !important;
    }

    /* Formation Academy Grid */
    .formation-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    #formation-videos {
        padding: 25px 0 !important;
    }

    #formation-videos h2 {
        font-size: 1.3rem !important;
    }

    #formationFilters {
        gap: 6px !important;
    }

    #formationFilters button {
        padding: 7px 14px !important;
        font-size: 0.75rem !important;
    }

    /* Parcours progression mobile */
    #formation-videos > .container > div:nth-child(4) {
        gap: 0 !important;
    }

    #formation-videos > .container > div:nth-child(4) > div[style*="width: 40px"] {
        width: 20px !important;
    }

    /* Investment Plans */
    .formations-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .investment-card {
        padding: 0;
    }

    .card-image {
        height: 100px !important;
    }

    .card-content {
        padding: 12px !important;
    }

    .roi-value {
        font-size: 1.5rem !important;
    }

    .card-title {
        font-size: 0.95rem !important;
    }

    .invest-btn {
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
    }

    /* Courses Grid */
    .courses-grid,
    #coursesGrid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Consulting cards */
    .consulting-card {
        padding: 20px !important;
    }

    /* Videos Grid */
    .videos-grid,
    .youtube-videos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .youtube-videos-grid iframe {
        height: 120px !important;
    }

    .youtube-videos-grid .video-title,
    .youtube-videos-grid h4 {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
    }

    .youtube-videos-grid .video-description,
    .youtube-videos-grid p {
        font-size: 0.65rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .stat-number {
        font-size: 1.1rem !important;
    }

    .stat-label {
        font-size: 0.7rem !important;
    }

    /* Photo Showcase */
    .photo-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .photo-showcase-grid img {
        height: 180px !important;
    }

    /* Market Grid */
    .market-grid,
    #marketGrid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 12px 20px !important;
    }

    /* Trust badges row in hero */
    .hero-left > div[style*="display: flex"][style*="gap: 20px"] {
        gap: 8px !important;
        font-size: 0.75rem;
    }

    /* Navigation */
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Bottom Navigation for Mobile */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(13, 17, 28, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 6px 0;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
        z-index: 9998;
        justify-content: space-around;
        backdrop-filter: blur(10px);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        color: #8A94A6;
        text-decoration: none;
        font-size: 9px;
        font-weight: 500;
        padding: 6px 8px;
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        transition: color 0.2s ease;
    }

    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        fill: none;
    }

    .mobile-nav-item i {
        font-size: 18px;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: #1199FA;
    }

    /* Add padding bottom for fixed nav */
    body {
        padding-bottom: 60px;
    }

    /* Testimonials on mobile */
    .testimonials-grid,
    #testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    #testimonials-grid .testimonial-card {
        padding: 18px !important;
    }
    #testimonials-grid .testimonial-card p {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
    }

    /* Payment grid on mobile */
    .payment-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    /* Social grid on mobile */
    .social-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    /* ===== QUICK ACTION BAR ===== */
    .quick-action-bar {
        padding: 8px 0 !important;
        top: calc(130px + env(safe-area-inset-top, 0px)) !important;
    }

    .quick-action-bar > .container > div {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }

    .quick-action-bar > .container > div > div:first-child {
        justify-content: center !important;
        gap: 8px !important;
        font-size: 0.75rem !important;
    }

    .quick-action-bar > .container > div > div:last-child {
        justify-content: center !important;
    }

    .quick-action-bar > .container > div > div:last-child a {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        flex: 1 !important;
        justify-content: center !important;
    }

    /* ===== CONVERTER + MARKET STATS (2-col → 1-col) ===== */
    section[id="converter"] > .container > div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 40px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Market Stats nested grid (2x2 → 1 col) */
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 15px"][style*="margin-bottom: 25px"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Converter inputs & buttons */
    .converter-tab {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }

    /* ===== CERTIFICATIONS GRID (minmax 180px → 2 cols) ===== */
    div[style*="minmax(180px, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    div[style*="minmax(180px, 1fr)"] > .card-premium {
        height: auto !important;
        min-height: 140px !important;
        padding: 14px !important;
    }

    div[style*="minmax(180px, 1fr)"] > .card-premium div[style*="width: 60px"] {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 8px !important;
    }

    div[style*="minmax(180px, 1fr)"] > .card-premium div[style*="width: 60px"] i {
        font-size: 1.1rem !important;
    }

    /* ===== GAINS MOYENS (minmax 200px → 1 col) ===== */
    .card-premium > div[style*="minmax(200px, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .card-premium > div[style*="minmax(200px, 1fr)"] > div {
        padding: 16px !important;
    }

    .card-premium > div[style*="minmax(200px, 1fr)"] > div div[style*="font-size: 2rem"] {
        font-size: 1.6rem !important;
    }

    /* ===== GARANTIES SECTION (minmax 200px → 2 cols) ===== */
    div[style*="minmax(200px, 1fr)"][style*="margin-top: 50px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 20px !important;
        margin-top: 30px !important;
    }

    div[style*="minmax(200px, 1fr)"][style*="margin-top: 50px"] > div {
        padding: 8px !important;
    }

    div[style*="minmax(200px, 1fr)"][style*="margin-top: 50px"] > div div[style*="font-size: 2.2rem"] {
        font-size: 1.6rem !important;
        margin-bottom: 6px !important;
    }

    /* ===== CONSULTING CARDS (minmax 300px → 1 col) ===== */
    .consulting-section div[style*="minmax(300px, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* ===== DOWNLOAD/STORE CARDS (minmax 200px → 1 col) ===== */
    .download-section div[style*="minmax(200px, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .store-card {
        padding: 18px !important;
    }

    .store-card div[style*="width: 60px"] {
        width: 48px !important;
        height: 48px !important;
    }

    .store-card div[style*="width: 60px"] img {
        width: 30px !important;
        height: 30px !important;
    }

    .store-card h4 {
        font-size: 1rem !important;
    }

    /* Social follow links - center and wrap */
    .download-section div[style*="display: flex"][style*="justify-content: center"][style*="gap: 16px"] {
        gap: 10px !important;
    }

    .download-section div[style*="display: flex"][style*="justify-content: center"] a {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
    }

    /* ===== CONTACT PAGE ===== */
    /* Main 2-col grid → 1 col */
    .hero-crypto-com > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Contact form padding */
    .hero-crypto-com > .container > div[style*="grid-template-columns: 1fr 1fr"] > div[style*="padding: 35px"] {
        padding: 22px !important;
    }

    /* Contact card icons */
    .hero-crypto-com > .container div[style*="width: 56px"] {
        width: 46px !important;
        height: 46px !important;
    }

    /* Contact title */
    .hero-crypto-com h1[style*="font-size: 2.4rem"] {
        font-size: 1.6rem !important;
    }

    /* Availability hours grid (3 cols → 1 col) */
    div[style*="grid-template-columns: repeat(3, 1fr)"][style*="margin: 50px auto"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 30px !important;
    }

    /* ===== SECURITY BADGES FOOTER ===== */
    .security-badges div[style*="display: flex"][style*="justify-content: center"] {
        gap: 8px !important;
    }

    .security-badges div[style*="display: flex"][style*="justify-content: center"] > div {
        padding: 8px 10px !important;
        flex: 1 1 calc(50% - 8px) !important;
        min-width: 140px !important;
    }

    .security-badges div[style*="display: flex"][style*="justify-content: center"] > div img,
    .security-badges div[style*="display: flex"][style*="justify-content: center"] > div i {
        width: 24px !important;
        height: 24px !important;
        font-size: 1.1rem !important;
    }

    .security-badges div[style*="display: flex"][style*="justify-content: center"] > div div[style*="font-weight: 700"] {
        font-size: 0.7rem !important;
    }

    .security-badges div[style*="display: flex"][style*="justify-content: center"] > div div[style*="font-size: 0.65rem"] {
        display: none !important;
    }

    /* ===== FOOTER PARTNER/PAYMENT LOGOS ===== */
    .footer div[style*="display: flex"][style*="gap: 30px"] {
        gap: 16px !important;
    }

    .footer div[style*="display: flex"][style*="gap: 30px"] img {
        height: 22px !important;
    }

    .footer div[style*="display: flex"][style*="gap: 20px"] {
        gap: 12px !important;
    }

    .footer div[style*="display: flex"][style*="gap: 20px"] img {
        height: 24px !important;
    }

    /* Footer newsletter */
    .footer .footer-col form {
        flex-direction: column !important;
    }

    .footer .footer-col form input,
    .footer .footer-col form button {
        border-radius: 8px !important;
    }

    .footer .footer-col form input {
        border-right: 1px solid rgba(255,255,255,0.12) !important;
    }

    /* Footer social icons */
    .footer .footer-col div[style*="display: flex"][style*="gap: 10px"] a {
        width: 32px !important;
        height: 32px !important;
    }

    /* ===== HERO STATS PREMIUM ===== */
    .hero-stats-premium {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .hero-stats-premium .stat-card-premium {
        padding: 12px !important;
    }

    .hero-stats-premium .stat-card-premium .stat-number {
        font-size: 1.2rem !important;
    }

    /* ===== SECTION TITLES INLINE ===== */
    h2[style*="font-size: 2.8rem"],
    h2[style*="font-size: 2.4rem"] {
        font-size: 1.2rem !important;
    }

    h2[style*="font-size: 2.2rem"] {
        font-size: 1.1rem !important;
    }

    h2[style*="font-size: 2rem"],
    h2[style*="font-size: 1.8rem"] {
        font-size: 1.05rem !important;
    }

    p[style*="font-size: 1.1rem"],
    p[style*="font-size: 1.05rem"] {
        font-size: 0.78rem !important;
    }

    p[style*="font-size: 1rem"],
    p[style*="font-size: 0.95rem"] {
        font-size: 0.75rem !important;
    }

    /* ===== PROOF GALLERY TITLE ===== */
    h3[style*="font-size: 1.4rem"] {
        font-size: 0.95rem !important;
    }

    /* ===== ALL INLINE GRIDS COMPACT ===== */
    div[style*="gap: 30px"] { gap: 12px !important; }
    div[style*="gap: 25px"] { gap: 10px !important; }
    div[style*="gap: 40px"] { gap: 14px !important; }
    div[style*="margin-top: 50px"] { margin-top: 20px !important; }
    div[style*="margin-top: 40px"] { margin-top: 16px !important; }
    div[style*="margin-bottom: 60px"] { margin-bottom: 24px !important; }
    div[style*="padding: 30px"] { padding: 16px !important; }
    div[style*="padding: 40px"] { padding: 18px !important; }

    /* Reduce all inline font-sizes for mobile */
    h3[style*="font-size: 1.3rem"] { font-size: 0.95rem !important; }
    h3[style*="font-size: 1.2rem"] { font-size: 0.9rem !important; }
    h4[style*="font-size: 1rem"] { font-size: 0.82rem !important; }
    span[style*="font-size: 0.8rem"] { font-size: 0.68rem !important; }

    /* Payment grid compact */
    .payment-logos-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .payment-logos-grid .payment-card {
        padding: 14px 10px !important;
    }

    .payment-logos-grid img {
        width: 55px !important;
        height: 55px !important;
    }

    /* ===== DEPOSIT PAGE MOBILE ===== */
    .deposit-page {
        padding: 80px 10px 40px !important;
    }
    .deposit-header h1 {
        font-size: 1.4rem !important;
    }
    .deposit-header p {
        font-size: 0.82rem !important;
    }
    .deposit-header span[style*="inline-flex"] {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }
    .dep-card {
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }
    .dep-card-title {
        font-size: 1rem !important;
    }
    .prog-step-num {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.82rem !important;
    }
    .prog-step-label {
        font-size: 0.65rem !important;
        max-width: 65px !important;
    }
    .plan-card {
        padding: 14px !important;
    }
    .plan-card div[style*="font-size: 1.3rem"] {
        font-size: 1rem !important;
    }
    .dep-btn {
        padding: 12px 16px !important;
        font-size: 0.88rem !important;
    }
    .success-box h2 {
        font-size: 1.3rem !important;
    }
    .investment-code-box .code-value {
        font-size: 1.1rem !important;
    }

    /* ===== LOGIN PAGE MOBILE ===== */
    .auth-header {
        padding: 12px 16px !important;
    }
    .auth-card {
        padding: 22px 16px !important;
        border-radius: 14px !important;
    }
    .auth-tabs {
        margin-bottom: 22px !important;
    }
    .auth-tab {
        padding: 12px 14px !important;
        font-size: 0.85rem !important;
    }
    .form-input {
        padding: 14px 14px !important;
        font-size: 0.92rem !important;
    }
    .btn-primary-auth {
        padding: 14px !important;
        font-size: 0.92rem !important;
    }
    .account-types {
        gap: 8px !important;
    }
    .account-type {
        padding: 12px !important;
    }
    .qr-code {
        width: 150px !important;
        height: 150px !important;
    }

    /* ===== DASHBOARD MOBILE ===== */
    .dashboard-main {
        padding: 16px 12px !important;
    }
    .dashboard-title {
        font-size: 1.2rem !important;
    }
    .balance-hero {
        padding: 22px 16px !important;
        border-radius: 16px !important;
    }
    .balance-hero-value {
        font-size: 1.8rem !important;
    }
    .balance-hero-sub {
        flex-wrap: wrap !important;
        gap: 14px !important;
    }
    .stat-card {
        padding: 16px !important;
    }
    .stat-card-value {
        font-size: 1.2rem !important;
    }
    .quick-action-btn {
        padding: 16px 10px !important;
    }
    .quick-action-btn i {
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
    }
    .quick-action-btn span {
        font-size: 0.78rem !important;
    }
    .invest-row {
        gap: 10px !important;
    }
    .invest-name {
        font-size: 0.85rem !important;
    }
    .invest-code {
        font-size: 0.68rem !important;
    }

    /* ===== FAQ SECTION MOBILE ===== */
    .faq-list button {
        font-size: 0.88rem !important;
        padding: 16px 18px !important;
    }

    .faq-list .faq-answer div {
        font-size: 0.82rem !important;
        padding: 0 18px 16px !important;
    }

    /* ===== POURQUOI NOUS CHOISIR - 2 cols mobile ===== */
    section div[style*="minmax(280px, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    section div[style*="minmax(280px, 1fr)"] .card-premium {
        padding: 20px 16px !important;
    }

    section div[style*="minmax(280px, 1fr)"] .card-premium div[style*="width: 70px"] {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 14px !important;
    }

    section div[style*="minmax(280px, 1fr)"] .card-premium div[style*="width: 70px"] i {
        font-size: 1.3rem !important;
    }

    section div[style*="minmax(280px, 1fr)"] .card-premium h3 {
        font-size: 0.92rem !important;
    }

    section div[style*="minmax(280px, 1fr)"] .card-premium p {
        font-size: 0.78rem !important;
    }

    /* Chiffres clés (4 cols → 2 cols) */
    div[style*="grid-template-columns: repeat(4, 1fr)"][style*="max-width: 900px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    div[style*="grid-template-columns: repeat(4, 1fr)"][style*="max-width: 900px"] div[style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
    }

    /* CTA Section */
    .cta-section h2 {
        font-size: 1.6rem !important;
    }

    .cta-section .btn-primary-glow {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 24px !important;
        font-size: 0.92rem !important;
    }

    /* ===== COMMENT CA MARCHE - 4 cols → 2 cols ===== */
    .hiw-timeline {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .hiw-timeline > div[style*="position: absolute"] {
        display: none !important;
    }

    .hiw-step div[style*="width: 110px"] {
        width: 80px !important;
        height: 80px !important;
    }

    .hiw-step div[style*="width: 110px"] i {
        font-size: 1.6rem !important;
    }

    .hiw-step div[style*="width: 110px"] div[style*="width: 32px"] {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.72rem !important;
    }

    .hiw-step h3 {
        font-size: 0.92rem !important;
    }

    .hiw-step p {
        font-size: 0.75rem !important;
    }

    /* Blog grid géré par JS */

    .blog-section h2 {
        font-size: 1.4rem !important;
    }

    /* ===== COOKIE CONSENT MOBILE ===== */
    #cookieConsent {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 14px 16px !important;
    }
    #cookieConsent p {
        font-size: 0.75rem !important;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem !important;
    }

    .hero-description {
        font-size: 0.8rem !important;
    }

    .section-title {
        font-size: 1.1rem !important;
    }

    .section-description {
        font-size: 0.75rem !important;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .countries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .photo-showcase-grid img {
        height: 150px !important;
    }

    /* Even smaller crypto cards */
    .crypto-card-animated {
        padding: 12px !important;
    }

    .crypto-card-animated img {
        width: 36px !important;
        height: 36px !important;
    }

    .crypto-price-live {
        font-size: 1rem !important;
    }

    /* Payment & Social even smaller */
    .payment-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Certifications grid → 1 col on very small */
    div[style*="minmax(180px, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Garanties → 1 col */
    div[style*="minmax(200px, 1fr)"][style*="margin-top: 50px"] {
        grid-template-columns: 1fr !important;
    }

    /* Contact availability → stacked */
    div[style*="grid-template-columns: repeat(3, 1fr)"][style*="margin: 50px auto"] {
        grid-template-columns: 1fr !important;
    }

    /* Security badges → 1 col */
    .security-badges div[style*="display: flex"][style*="justify-content: center"] > div {
        flex: 1 1 100% !important;
    }

    /* Quick action bar - hide crypto prices on very small */
    section[style*="sticky"][style*="top: 60px"] > .container > div > div:first-child span[style*="font-size: 0.85rem"] {
        font-size: 0.7rem !important;
    }

    /* Hero stat premium → 1 col */
    .hero-stats-premium {
        grid-template-columns: 1fr !important;
    }

    /* Comment ca marche → 1 col on very small */
    .hiw-timeline {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Deposit trust badges - stack on very small */
    .deposit-header div[style*="display:flex"][style*="justify-content:center"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Dashboard even smaller */
    .balance-hero-value {
        font-size: 1.5rem !important;
    }
    .dashboard-header a[style*="padding: 12px 24px"] {
        padding: 10px 14px !important;
        font-size: 0.8rem !important;
    }

    /* Market stats nested → hide percentage on small */
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 15px"] div[style*="font-size: 1.6rem"] {
        font-size: 1.2rem !important;
    }
}

/* ===== TABLET ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .partners-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .crypto-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .investment-grid,
    .formations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* blog grid géré par JS */

    #testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* ===== TOUCH IMPROVEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-primary, .btn-secondary, .btn-outline {
        min-height: 44px;
    }

    .trader-tab {
        min-height: 40px;
    }

    /* Remove hover effects on touch */
    .crypto-item:hover,
    .country-card:hover,
    .partner-item:hover {
        transform: none;
    }

    /* Add active states instead */
    .crypto-item:active,
    .country-card:active,
    .btn-primary:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* ===== SAFE AREA FOR NOTCH DEVICES ===== */
@supports (padding: max(0px)) {
    .hero {
        padding-top: max(70px, env(safe-area-inset-top) + 50px);
    }

    .mobile-bottom-nav {
        padding-bottom: max(6px, env(safe-area-inset-bottom));
    }
}

/* ===== DARK MODE SYSTEM PREFERENCE ===== */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .crypto-item,
    .country-card,
    .investment-card {
        border-width: 2px;
    }

    .btn-primary {
        border: 2px solid #FFFFFF;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 50px 0 20px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.3rem !important;
    }

    .section-header {
        margin-bottom: 12px;
    }
}

/* ===== PRINT STYLES ===== */
/* New Sections - Mobile Compact */
@media (max-width: 768px) {
    .how-it-works-section .container > div:first-child h2,
    .team-section .container > div:first-child h2,
    .faq-section .container > div:first-child h2 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    .how-it-works-section .container > div:first-child p,
    .team-section .container > div:first-child p,
    .faq-section .container > div:first-child p {
        font-size: 0.85rem !important;
    }

    .how-it-works-section .container > div:first-child,
    .team-section .container > div:first-child,
    .faq-section .container > div:first-child {
        margin-bottom: 36px !important;
    }

    /* FAQ mobile compact */
    .faq-container {
        gap: 8px !important;
    }

    .faq-item {
        border-radius: 12px !important;
    }

    /* Team cards mobile */
    .team-card {
        border-radius: 14px !important;
    }

    /* ===== PHONE MOCKUP SECTION ===== */
    /* Cache la section App Mobile sur les petits mobiles */
    section[style*="padding:80px 0"][style*="overflow:hidden"] > .container > div {
        flex-direction: column !important;
        gap: 30px !important;
        align-items: center !important;
    }

    /* Scale down the phone mockup on mobile */
    section[style*="padding:80px 0"] div[style*="width:300px"] {
        width: 220px !important;
        transform: scale(0.85) !important;
        transform-origin: top center !important;
    }

    /* Right text side: center on mobile */
    section[style*="padding:80px 0"] > .container > div > div:last-child {
        text-align: center !important;
        max-width: 100% !important;
    }

    /* Blog filters - scrollable horizontally */
    #blogFilters {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 6px !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    #blogFilters::-webkit-scrollbar { display: none !important; }
    #blogFilters button { flex-shrink: 0 !important; }

    /* Notifs en haut - sous le header mobile */
    #notif-left, #notif-right {
        top: calc(130px + env(safe-area-inset-top, 0px)) !important;
        bottom: auto !important;
    }
}

@media print {
    .mobile-bottom-nav,
    .live-notif-container,
    .floating-card,
    .chatbot-container,
    #liveNotification {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}
