/* ==================== 
   BASE - Mobile First (320px+)
   ==================== */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 
   NAVIGATION - Mobile ONLY
   ==================== */
@media screen and (max-width: 767px) {
    .nav {
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 1000;
    }

    .nav-container {
        padding: 12px 20px;
    }

    /* Logo mobile - ULTRA SPÉCIFIQUE */
    body .nav .nav-container .nav-logo .logo-icon,
    body .footer .footer-container .footer-brand .footer-logo .logo-icon,
    body .nav-logo .logo-icon,
    body .footer-logo .logo-icon,
    .nav-logo .logo-icon,
    .footer-logo .logo-icon,
    img.logo-icon {
        width: 50px !important;
        height: auto !important;
        max-width: 50px !important;
        max-height: none !important;
        min-width: 50px !important;
        min-height: auto !important;
        object-fit: contain !important;
        padding: 8px !important;
    }

    .logo-text {
        font-size: 18px !important;
    }

    .logo-tagline {
        font-size: 9px !important;
    }

    /* Menu mobile - Scroll horizontal */
    .nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: calc(100vw - 180px);
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 14px !important;
        white-space: nowrap;
    }

    .btn-web-app {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }

    /* ==================== 
       HERO SECTION - Mobile
       ==================== */
    body .hero,
    .hero {
        padding: 120px 0 40px !important;
        min-height: auto !important;
        margin-top: 0 !important;
    }

    body .hero .hero-container,
    .hero-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        padding-top: 0 !important;
    }

    body .hero .hero-content,
    .hero-content {
        text-align: center !important;
        padding: 0 15px !important;
        margin-top: 0 !important;
    }

    body .hero .hero-tag,
    .hero-tag {
        font-size: 11px !important;
        padding: 6px 12px !important;
        margin: 0 auto 16px !important;
        display: inline-block !important;
        max-width: 90% !important;
        position: relative !important;
        z-index: 10 !important;
    }

    body .hero .hero-title,
    .hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body .hero .hero-subtitle,
    .hero-subtitle {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
        margin-top: 0 !important;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px !important;
        font-size: 15px !important;
    }

    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .stat-number {
        font-size: 22px !important;
    }

    .stat-label {
        font-size: 11px !important;
    }

    /* ==================== 
       PHONE MOCKUP - Mobile
       ==================== */
    .phone-mockup {
        width: 260px !important;
        height: 520px !important;
        transform: none !important;
    }

    /* ==================== 
       FEATURES - Mobile
       ==================== */
    .section {
        padding: 50px 0 !important;
    }

    .section-title {
        font-size: 26px !important;
    }

    .section-subtitle {
        font-size: 15px !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .feature-card {
        padding: 24px !important;
    }

    /* ==================== 
       STEPS - Mobile
       ==================== */
    .steps {
        flex-direction: column;
        gap: 30px;
    }

    .step-arrow {
        display: none !important;
    }

    /* ==================== 
       DOWNLOAD - Mobile
       ==================== */
    .download-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
    }

    /* ==================== 
       FOOTER - Mobile
       ==================== */
    .footer-container {
        grid-template-columns: 1fr !important;
    }

    .footer-brand {
        text-align: center;
    }

    /* ==================== 
       GUIDE PAGE - Mobile
       ==================== */
    .guide-hero {
        padding: 100px 0 50px !important;
    }

    .guide-hero h1 {
        font-size: 32px !important;
    }

    .guide-nav-list {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .guide-section {
        padding: 40px 0 !important;
    }
}

/* ==================== 
   TABLET - 768px and up
   ==================== */
@media screen and (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    /* Logo tablet */
    .nav-logo .logo-icon,
    .footer-logo .logo-icon {
        width: 70px !important;
        height: auto !important;
    }

    .logo-text {
        font-size: 22px !important;
    }

    .logo-tagline {
        font-size: 10px !important;
    }

    .hero-title {
        font-size: 48px !important;
    }

    .hero-subtitle {
        font-size: 20px !important;
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .phone-mockup {
        width: 300px !important;
        height: 600px !important;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .section-title {
        font-size: 36px !important;
    }

    .steps {
        flex-direction: row;
    }

    .step-arrow {
        display: block !important;
    }

    .download-buttons {
        flex-direction: row;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .guide-nav-list {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
}

/* ==================== 
   DESKTOP - 1024px and up
   ==================== */
@media screen and (min-width: 1024px) {
    /* Logo desktop - TAILLE NORMALE */
    .nav-logo .logo-icon,
    .footer-logo .logo-icon {
        width: 100px !important;
        height: auto !important;
        max-width: 100px !important;
        object-fit: contain !important;
    }

    .logo-text {
        font-size: 28px !important;
    }

    .logo-tagline {
        font-size: 11px !important;
    }

    .hero {
        padding: 80px 0 60px !important;
    }

    .hero-container {
        flex-direction: row;
    }

    .hero-content {
        text-align: left;
    }

    .hero-cta {
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 64px !important;
    }

    .hero-subtitle {
        font-size: 22px !important;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .section-title {
        font-size: 42px !important;
    }

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr !important;
    }

    .footer-brand {
        text-align: left;
    }
}

/* ==================== 
   LARGE DESKTOP - 1440px and up
   ==================== */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }

    .hero-title {
        font-size: 72px !important;
    }

    .section-title {
        font-size: 48px !important;
    }
}

/* ==================== 
   FIXES - Prevent Overflow
   ==================== */
img {
    max-width: 100%;
    height: auto;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Touch devices optimization */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-links a,
    .feature-card,
    .store-btn {
        -webkit-tap-highlight-color: transparent;
    }
}
