/* === Responsive — Media Queries === */
/* INVOO OFFICE — Dark SaaS Landing Page */
/* Breakpoints: 1280, 1024, 900, 768, 640, 480, 375, 320 */
/* Large screens: 1440+, 1920+ */

/* ============================================ */
/*              1280px — Small Desktop/Laptop   */
/* ============================================ */
@media (max-width: 1280px) {
    .nav-links {
        gap: 1.5rem;
    }
    .hero-grid {
        gap: 3rem;
    }
    .why-grid {
        gap: 3rem;
    }
}

/* ============================================ */
/*              1024px — Tablet Landscape       */
/* ============================================ */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.8125rem;
    }
    .nav-cta .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    .hero-grid {
        gap: 2rem;
    }
    .hero-title {
        font-size: clamp(2.25rem, 5vw, 3.5rem);
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .why-visual {
        max-width: 480px;
        margin: 0 auto;
    }
    .dashboard-body {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        display: none;
    }
    .dashboard-header {
        padding: 0.75rem 1rem;
    }
    .dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.25rem;
    }
    .dashboard-tabs::-webkit-scrollbar {
        display: none;
    }
    .dashboard-tab {
        white-space: nowrap;
        padding: 0.4rem 0.75rem;
        font-size: 0.6875rem;
    }
    section {
        padding: 5rem 2rem;
    }
}

/* ============================================ */
/*              900px — Tablet / Small Laptop   */
/* ============================================ */
@media (max-width: 900px) {
    .hero-grid {
        gap: 1.5rem;
    }
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }
    .features-grid {
        gap: 1rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
    section {
        padding: 4.5rem 1.5rem;
    }
    .footer-grid {
        gap: 2rem;
    }
    .hero-mockup {
        transform: none !important;
        perspective: none !important;
    }
    .mockup-frame {
        transform: none !important;
    }
    .mockup-frame:hover {
        transform: none !important;
    }
}

/* ============================================ */
/*              768px — Tablet Portrait         */
/* ============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    .section-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 4rem 1.25rem;
    }
    .container {
        padding: 0;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }
    .home-page .nav-cta,
    .article-page .nav-cta {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(24px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 999;
        list-style: none;
        padding: 2rem;
        overflow-y: auto;
    }
    .nav-links.active a {
        font-size: 1.25rem;
        color: var(--text-primary);
        font-weight: 600;
        padding: 0.5rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .nav-links.active a::after {
        bottom: -6px;
    }
    .navbar {
        padding: 0.75rem 1rem;
    }
    .nav-logo {
        font-size: 1.125rem;
    }
    .nav-cta .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    .mobile-menu-btn {
        position: relative;
        z-index: 1001;
        font-size: 1.5rem;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1.25rem;
    }
    .hero-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }
    .hero-subtitle {
        font-size: 1.0625rem;
        max-width: 100%;
    }
    .hero-content {
        text-align: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.6875rem;
    }
    .mockup-frame {
        transform: none !important;
    }
    .mockup-frame:hover {
        transform: none !important;
    }
    .mockup-cards {
        gap: 0.5rem;
    }
    .mockup-card {
        padding: 0.75rem;
    }
    .mockup-card-value {
        font-size: 1rem;
    }
    .mockup-glow {
        width: 250px;
        height: 250px;
    }

    /* Features */
    .features-grid {
        gap: 1rem !important;
    }
    .feature-card {
        padding: 1.5rem;
    }
    .features .container > div[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Dashboard */
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .dash-stat {
        padding: 0.875rem;
    }
    .dash-stat-value {
        font-size: 1.25rem;
    }
    .dash-stat-label {
        font-size: 0.625rem;
    }
    .dashboard-chart-area {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .dashboard-body {
        min-height: auto;
    }
    .dashboard-main {
        padding: 1rem;
    }
    .dashboard-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .dashboard-tabs {
        order: 2;
        width: 100%;
    }
    .dash-panel {
        padding: 1rem;
    }
    .chart-placeholder {
        height: 160px;
    }

    /* Blog */
    #blog-grid {
        gap: 1.25rem !important;
    }
    #blog-grid .feature-card img {
        height: 180px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .testimonial-card {
        padding: 1.5rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer {
        padding: 3rem 1.25rem 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Blog Page */
    .hero[aria-label="Blog et ressources"] {
        padding-bottom: 2rem !important;
    }
    #articles-grid {
        gap: 1.25rem !important;
    }
    #articles-grid .feature-card img {
        height: 180px;
    }

    /* CTA */
    section[style*="text-align: center"][style*="padding: 6rem"] {
        padding: 4rem 1.25rem !important;
    }
}

/* ============================================ */
/*              640px — Large Phone / Small Tab */
/* ============================================ */
@media (max-width: 640px) {
    .features-grid {
        gap: 0.75rem !important;
    }
    .feature-card {
        padding: 1.25rem;
    }
    .dashboard-stats-row {
        gap: 0.5rem;
    }
    .dash-stat {
        padding: 0.75rem;
    }
    .dash-stat-value {
        font-size: 1.125rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .footer-grid {
        gap: 1.5rem;
    }
}

/* ============================================ */
/*              480px — Mobile                  */
/* ============================================ */
@media (max-width: 480px) {
    /* Typography */
    .hero-title {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    .section-title {
        font-size: clamp(1.375rem, 7vw, 1.75rem);
    }
    .section-subtitle {
        font-size: 0.9375rem;
    }

    /* Section padding */
    section {
        padding: 2.5rem 1rem;
    }
    .hero {
        min-height: auto;
        padding-top: 56px;
        padding-bottom: 2rem;
    }
    .section-header {
        margin-bottom: 2rem;
    }

    /* Navigation */
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    .nav-logo {
        font-size: 1rem;
        gap: 0.5rem;
    }
    .nav-logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8125rem;
    }
    .nav-cta .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    .mobile-menu-btn {
        font-size: 1.25rem;
        width: 40px;
        height: 40px;
    }
    .nav-links.active a {
        font-size: 1.125rem;
    }
    .nav-links.active {
        gap: 1.5rem;
    }

    /* Hero */
    .hero-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .hero-badge {
        font-size: 0.6875rem;
        padding: 0.3125rem 0.75rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-cta .btn-lg {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .stat-item {
        align-items: center;
        min-width: auto;
    }
    .stat-number {
        font-size: 1.25rem;
        white-space: normal;
        word-break: normal;
    }
    .stat-label {
        white-space: normal;
    }

    /* Pricing flash */
    .hero-content > div[style*="inline-flex"][style*="background:linear-gradient(135deg,rgba(245,158,11,0.15)"] {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 0.75rem 1rem !important;
    }

    /* Security badges */
    .hero-content > div[style*="gap: 1rem"][style*="flex-wrap: wrap"] {
        justify-content: center;
        gap: 0.5rem !important;
        font-size: 0.6875rem !important;
    }

    /* Mockup */
    .mockup-frame {
        padding: 0.5rem;
        border-radius: var(--radius-lg);
    }
    .mockup-sidebar {
        flex-direction: column;
        height: auto;
    }
    .mockup-nav {
        width: 100%;
        flex-direction: row;
        padding: 0.5rem;
        border-right: none;
        border-bottom: 1px solid var(--dark-border);
        justify-content: center;
        gap: 0.5rem;
    }
    .mockup-nav-item {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .mockup-main {
        padding: 0.75rem;
    }
    .mockup-topbar {
        margin-bottom: 1rem;
    }
    .mockup-search {
        width: 100px;
        height: 28px;
    }
    .mockup-avatar {
        width: 28px;
        height: 28px;
    }
    .mockup-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.375rem;
    }
    .mockup-card {
        padding: 0.625rem;
    }
    .mockup-card-label {
        font-size: 0.5625rem;
    }
    .mockup-card-value {
        font-size: 0.875rem;
    }
    .mockup-chart {
        height: 100px;
    }
    .mockup-content {
        min-height: auto;
    }
    .mockup-glow {
        width: 180px;
        height: 180px;
    }

    /* Features */
    .features-grid {
        gap: 0.75rem !important;
    }
    .feature-card {
        padding: 1.25rem;
    }
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.875rem;
    }
    .feature-title {
        font-size: 0.9375rem;
    }
    .feature-desc {
        font-size: 0.8125rem;
    }

    /* Why Section */
    .features .container > div[style*="1fr 1fr"] {
        gap: 1.25rem !important;
    }

    /* Dashboard */
    .dashboard-stats-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .dash-stat-value {
        font-size: 1.125rem;
    }
    .dash-stat-label {
        font-size: 0.625rem;
    }
    .dashboard-main {
        padding: 0.75rem;
    }
    .dashboard-preview {
        border-radius: var(--radius-lg);
    }
    .dashboard-header {
        padding: 0.625rem 0.75rem;
    }
    .dash-panel {
        padding: 0.875rem;
    }
    .dash-panel-title {
        font-size: 0.8125rem;
    }
    .chart-placeholder {
        height: 140px;
    }
    .invoice-row {
        padding: 0.5rem 0.625rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    /* Blog Section */
    #blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    #blog-grid .feature-card img {
        height: 160px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.25rem !important;
    }

    /* FAQ */
    .faq-question {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-height: 44px;
    }
    .faq-item.active .faq-answer {
        padding: 0 1rem 0.875rem;
    }
    .faq-answer p {
        font-size: 0.875rem;
    }
    .faq-list {
        gap: 0.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer {
        padding: 2rem 1rem 1.25rem;
    }
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-column {
        text-align: center;
    }
    .footer-column h4 {
        margin-bottom: 0.875rem;
    }
    .footer-links {
        align-items: center;
    }
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .footer-bottom {
        padding-top: 1.25rem;
        gap: 0.75rem;
    }
    .footer-social {
        justify-content: center;
    }

    /* CTA */
    section[style*="text-align: center"][style*="padding: 6rem"] {
        padding: 2rem 1rem !important;
    }
    section[style*="text-align: center"][style*="padding: 6rem"] .container > div {
        padding: 2rem 1.25rem !important;
    }
    section[style*="text-align: center"][style*="padding: 6rem"] h2 {
        font-size: 1.375rem !important;
    }
    section[style*="text-align: center"][style*="padding: 6rem"] p {
        font-size: 0.9375rem !important;
    }

    /* Blog Page */
    #articles-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    #articles-grid .feature-card img {
        height: 160px;
    }
    section[style*="padding: 2rem 2rem 6rem"] {
        padding: 1.5rem 1rem 3rem !important;
    }
    /* Topical map cards on blog page */
    section[style*="padding: 2rem 2rem 6rem"] .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    /* Blog hero */
    .hero[aria-label="Blog et ressources"] .hero-title {
        font-size: clamp(1.375rem, 7vw, 1.75rem);
    }
}

/* ============================================ */
/*              375px — iPhone / Small Phone    */
/* ============================================ */
@media (max-width: 375px) {
    section {
        padding: 2rem 0.875rem;
    }
    .hero-grid {
        padding: 0 0.875rem;
    }
    .hero-title {
        font-size: clamp(1.25rem, 8vw, 1.5rem);
    }
    .hero-subtitle {
        font-size: 0.875rem;
    }
    .section-title {
        font-size: clamp(1.25rem, 6.5vw, 1.5rem);
    }
    .nav-logo {
        font-size: 0.9375rem;
    }
    .nav-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    .nav-cta .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.6875rem;
    }
    .hero-content > div[style*="inline-flex"][style*="background:linear-gradient(135deg,rgba(245,158,11,0.15)"] {
        padding: 0.625rem 0.75rem !important;
    }
    .hero-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.625rem;
    }
    .mockup-cards {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
    .mockup-search {
        width: 80px;
    }
    .features-grid {
        gap: 0.625rem !important;
    }
    .feature-card {
        padding: 1rem;
    }
    .testimonial-card {
        padding: 1rem !important;
    }
    .testimonial-card p {
        font-size: 0.8125rem !important;
    }
    .footer {
        padding: 1.5rem 0.875rem 1rem;
    }
    .footer-grid {
        gap: 1.25rem;
    }
    .footer-links a {
        font-size: 0.8125rem;
    }
    .footer-column h4 {
        font-size: 0.8125rem;
    }
}

/* ============================================ */
/*              320px — Very Small Mobile       */
/* ============================================ */
@media (max-width: 320px) {
    section {
        padding: 1.5rem 0.625rem;
    }
    .hero-grid {
        padding: 0 0.625rem;
        gap: 1rem;
    }
    .hero-title {
        font-size: clamp(1.125rem, 7vw, 1.35rem);
    }
    .hero-subtitle {
        font-size: 0.8125rem;
    }
    .section-title {
        font-size: clamp(1.125rem, 6vw, 1.375rem);
    }
    .section-subtitle {
        font-size: 0.8125rem;
    }
    .navbar {
        padding: 0.375rem 0.5rem;
    }
    .nav-logo {
        font-size: 0.875rem;
        gap: 0.375rem;
    }
    .nav-logo-icon {
        width: 26px;
        height: 26px;
        font-size: 0.6875rem;
    }
    .nav-cta .btn {
        padding: 0.3125rem 0.5rem;
        font-size: 0.625rem;
    }
    .mobile-menu-btn {
        font-size: 1.125rem;
        width: 36px;
        height: 36px;
    }
    .hero-cta .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
    .hero-badge {
        font-size: 0.5625rem;
        padding: 0.1875rem 0.5rem;
    }
    .hero-content > div[style*="inline-flex"][style*="background:linear-gradient(135deg,rgba(245,158,11,0.15)"] {
        padding: 0.5rem 0.625rem !important;
    }
    .hero-content > div[style*="inline-flex"][style*="background:linear-gradient(135deg,rgba(245,158,11,0.15)"] > span {
        font-size: 1.125rem !important;
    }
    .hero-content > div[style*="inline-flex"][style*="background:linear-gradient(135deg,rgba(245,158,11,0.15)"] div:last-child div:last-child {
        font-size: 1.125rem !important;
    }
    .feature-card {
        padding: 0.875rem;
    }
    .feature-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    .feature-title {
        font-size: 0.8125rem;
    }
    .feature-desc {
        font-size: 0.75rem;
    }
    .dash-panel {
        padding: 0.75rem;
    }
    .dash-stat {
        padding: 0.625rem;
    }
    .dash-stat-value {
        font-size: 1rem;
    }
    .faq-question {
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
        min-height: 44px;
    }
    .faq-answer p {
        font-size: 0.8125rem;
    }
    .footer {
        padding: 1.25rem 0.625rem 0.75rem;
    }
    .footer-links a {
        font-size: 0.75rem;
        min-height: 40px;
    }
    #blog-grid,
    #articles-grid {
        gap: 0.75rem !important;
    }
    .nav-links.active a {
        font-size: 1rem;
    }
    .nav-links.active {
        gap: 1rem;
        padding: 1rem;
    }
}

/* ============================================ */
/*          1440px+ — Large Desktop             */
/* ============================================ */
@media (min-width: 1440px) {
    .container {
        max-width: 1360px;
    }
    .nav-container {
        max-width: 1360px;
    }
    .footer-grid {
        max-width: 1360px;
    }
    .footer-bottom {
        max-width: 1360px;
    }
    .hero-grid {
        max-width: 1360px;
    }
    .hero-bg::before {
        background:
            radial-gradient(circle at 20% 30%, rgba(26, 107, 60, 0.15) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(26, 107, 60, 0.1) 0%, transparent 40%),
            radial-gradient(circle at 50% 50%, rgba(26, 107, 60, 0.08) 0%, transparent 50%);
    }
    .mockup-glow {
        width: 500px;
        height: 500px;
    }
    .hero-title {
        font-size: clamp(3rem, 5vw, 5rem);
    }
    .section-title {
        font-size: clamp(2.25rem, 4.5vw, 4rem);
    }
}

/* ============================================ */
/*          1920px+ — Ultra-Wide Screens        */
/* ============================================ */
@media (min-width: 1920px) {
    .container {
        max-width: 1440px;
    }
    .nav-container {
        max-width: 1440px;
    }
    .footer-grid {
        max-width: 1440px;
    }
    .footer-bottom {
        max-width: 1440px;
    }
    .hero-grid {
        max-width: 1440px;
        gap: 5rem;
    }
    .hero-bg::before {
        background:
            radial-gradient(circle at 20% 30%, rgba(26, 107, 60, 0.18) 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, rgba(26, 107, 60, 0.12) 0%, transparent 40%),
            radial-gradient(circle at 45% 50%, rgba(26, 107, 60, 0.08) 0%, transparent 50%);
    }
    .mockup-glow {
        width: 600px;
        height: 600px;
    }
    .hero-title {
        font-size: clamp(3.5rem, 4.5vw, 5.5rem);
    }
    .section-title {
        font-size: clamp(2.5rem, 4vw, 4.5rem);
    }
    .hero-subtitle {
        max-width: 600px;
    }
}
