/* =============================================
   EXCEL MASTER – GREEN GLASSMORPHISM THEME
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --bg-primary: #0a0f0d;
    --bg-secondary: #0d1a14;
    --bg-card: rgba(16, 40, 28, 0.45);
    --bg-card-hover: rgba(20, 55, 35, 0.6);
    --glass-border: rgba(74, 222, 128, 0.15);
    --glass-border-hover: rgba(74, 222, 128, 0.35);
    --text-primary: #f0fdf4;
    --text-secondary: #a7c4b8;
    --text-muted: #6b8f7e;
    --accent: #4ade80;
    --accent-dark: #217346;
    --accent-glow: rgba(74, 222, 128, 0.25);
    --gradient-main: linear-gradient(135deg, #217346 0%, #4ade80 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(33, 115, 70, 0.3) 0%, rgba(74, 222, 128, 0.1) 100%);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(74, 222, 128, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Light Theme Variables ---------- */
:root[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --glass-border: rgba(33, 115, 70, 0.15);
    --glass-border-hover: rgba(33, 115, 70, 0.3);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent: #16a34a;
    --accent-dark: #15803d;
    --accent-glow: rgba(22, 163, 74, 0.15);
    --gradient-main: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(22, 163, 74, 0.15) 0%, rgba(22, 163, 74, 0.05) 100%);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(22, 163, 74, 0.15);
}

/* ---------- Reset & Base ---------- */
:root[data-theme="light"] body,
:root[data-theme="light"] .hero {
    background: var(--bg-primary);
}

:root[data-theme="light"] .hero {
    overflow: hidden;
}

:root[data-theme="light"] .hero-container {
    z-index: 100;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] a,
[data-theme="light"] li,
[data-theme="light"] div,
[data-theme="light"] strong,
[data-theme="light"] b {
    color: var(--text-primary) !important;
}

[data-theme="light"] .text-secondary,
[data-theme="light"] .hero-subtitle,
[data-theme="light"] .module-list li {
    color: var(--text-secondary) !important;
}

:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .hero p {
    position: relative;
    z-index: 101;
}

:root[data-theme="light"] .text-secondary,
:root[data-theme="light"] .hero-subtitle,
:root[data-theme="light"] .module-list li {
    color: var(--text-secondary);
}

:root[data-theme="light"] .text-gradient {
    color: var(--accent-dark);
    -webkit-text-fill-color: var(--accent-dark);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Glass Utility ---------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transform: translateY(-4px);
}

.glass-mini {
    background: rgba(16, 40, 28, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* ---------- Text Gradient ---------- */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ---------- Section Utilities ---------- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 24px rgba(33, 115, 70, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(74, 222, 128, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.08);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.15rem;
    border-radius: var(--radius-lg);
    width: 100%;
    justify-content: center;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 15, 13, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 400;
}

.nav-logo strong {
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(74, 222, 128, 0.08);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient-main);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.nav-cta:hover {
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(33, 115, 70, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-plus {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Hero Visual - Excel Mockup */
.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.3s both;
}

.excel-mockup {
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.excel-mockup:hover {
    transform: translateY(-4px) rotate(-1deg);
}

.mockup-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.toolbar-dots {
    display: flex;
    gap: 6px;
}

.toolbar-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.toolbar-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-ribbon {
    display: flex;
    gap: 0;
    padding: 8px 16px;
    background: rgba(33, 115, 70, 0.15);
    border-bottom: 1px solid var(--glass-border);
}

.ribbon-tab {
    padding: 4px 14px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-radius: 4px;
    cursor: default;
}

.ribbon-tab.active {
    background: rgba(74, 222, 128, 0.15);
    color: var(--accent);
    font-weight: 600;
}

.mockup-formula-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.7rem;
}

.cell-ref {
    padding: 2px 10px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    color: var(--accent);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.formula {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.mockup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
}

.mockup-table th,
.mockup-table td {
    padding: 6px 12px;
    border: 1px solid rgba(74, 222, 128, 0.08);
    text-align: left;
}

[data-theme="light"] .mockup-table th,
[data-theme="light"] .mockup-table td {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mockup-table th {
    background: rgba(33, 115, 70, 0.12);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.65rem;
}

[data-theme="light"] .mockup-table th {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-secondary);
}

.mockup-table td:first-child {
    background: rgba(33, 115, 70, 0.08);
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
    width: 30px;
}

[data-theme="light"] .mockup-table td:first-child {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-secondary);
}

.highlight-cell {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    padding: 20px 16px 12px;
    height: 100px;
}

.chart-bar {
    width: 40px;
    height: var(--h);
    background: var(--gradient-main);
    border-radius: 6px 6px 0 0;
    position: relative;
    animation: growBar 1.2s ease forwards;
    transform-origin: bottom center;
}

@keyframes growBar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Floating cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    z-index: 3;
}

.card-1 {
    top: -10px;
    right: -20px;
    animation: floatCard 4s ease-in-out infinite;
}

.card-2 {
    bottom: 20px;
    left: -30px;
    animation: floatCard 5s ease-in-out infinite 1s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.mini-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent);
}

/* =============================================
   ANALYSE PRO
   ============================================= */
.analyse-pro {
    padding: 120px 0 0;
    position: relative;
    z-index: 5;
}

.analyse-pro .section-header .header-tag {
    color: var(--text-muted);
    background: transparent;
    border: none;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.analyse-pro .section-header h2 {
    max-width: 800px;
    margin: 0 auto;
}

.analyse-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.analyse-pro-left .excel-mockup {
    padding: 32px 24px;
    background: rgba(16, 40, 28, 0.65);
}

.mockup-table-clean {
    font-size: 0.85rem;
}

.mockup-table-clean th,
.mockup-table-clean td {
    padding: 14px 20px;
    text-align: center;
}

.mockup-table-clean th {
    background: rgba(33, 115, 70, 0.2);
    font-weight: 700;
}

.mockup-table-clean td.row-num {
    background: rgba(33, 115, 70, 0.1);
    font-weight: 600;
}

.expert-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.expert-bg-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 60%);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 50%;
    z-index: 0;
}

.expert-image {
    width: 340px;
    height: auto;
    position: relative;
    z-index: 1;
    mask-image: linear-gradient(to top, transparent 0%, black 15%);
    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%);
}

.expert-card {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(16, 40, 28, 0.9);
    white-space: nowrap;
    z-index: 4;
}

.expert-card-icon {
    color: var(--accent);
    background: rgba(74, 222, 128, 0.1);
    padding: 8px;
    border-radius: 8px;
    display: flex;
}

.expert-card-content {
    display: flex;
    flex-direction: column;
}

.expert-card-content strong {
    font-size: 0.95rem;
}

.expert-card-content span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.card-tl {
    top: 10%;
    left: -30px;
    animation: floatCard 4s ease-in-out infinite;
}

.card-tr {
    top: 30%;
    right: -40px;
    animation: floatCard 5s ease-in-out infinite 0.5s;
}

.card-bl {
    bottom: 35%;
    left: -20px;
    animation: floatCard 4.5s ease-in-out infinite 1s;
}

.card-br {
    bottom: 15%;
    right: -10px;
    animation: floatCard 5.5s ease-in-out infinite 1.5s;
}

@media (max-width: 992px) {
    .analyse-pro-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .expert-card {
        transform: scale(0.9);
    }
}

/* =============================================
   APERÇU / CE QUE VOUS APPRENDREZ
   ============================================= */
.apercu {
    padding: 120px 0 0;
    /* No bottom padding, merge smoothly into modules */
    position: relative;
    z-index: 5;
}

.apercu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.apercu-content h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.apercu-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.apercu-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.apercu-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
}

.apercu-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.08);
    color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(74, 222, 128, 0.2);
    transition: var(--transition);
}

.apercu-card:hover .apercu-icon {
    transform: scale(1.05);
    background: rgba(74, 222, 128, 0.15);
}

.apercu-card p {
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}

@media (max-width: 992px) {
    .apercu-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* =============================================
   AVANTAGES / CARRIERE
   ============================================= */
.avantages-carriere {
    padding: 120px 0 0;
    position: relative;
    z-index: 5;
}

.avantage-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.avantage-row:last-child {
    margin-bottom: 0;
}

.avantage-row.reverse {
    flex-direction: row-reverse;
}

.avantage-content {
    flex: 1;
}

.avantage-content h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.25;
}

.avantage-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.avantage-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glow effect behind the image based on its side */
.avantage-image::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.avantage-row .avantage-image::before {
    top: -50px;
    right: -50px;
}

.avantage-row.reverse .avantage-image::before {
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
}

.glass-card-image {
    background: rgba(16, 40, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* very soft subtle border */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 12px;
    width: 100%;
}

.glass-card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    max-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {

    .avantage-row,
    .avantage-row.reverse {
        flex-direction: column;
        gap: 50px;
        margin-bottom: 80px;
    }

    .avantage-image {
        width: 100%;
    }
}

/* =============================================
   MODULES
   ============================================= */
.modules {
    padding: 120px 0;
    position: relative;
}

.modules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 115, 70, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.module-part {
    margin-bottom: 64px;
}

.module-part.part-two {
    margin-bottom: 0;
}

.part-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.modules-scroll-container {
    overflow-x: auto;
    padding-bottom: 32px;
    /* Hide scrollbar visually but allow scrolling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(74, 222, 128, 0.08);
    /* For smoother horizontal scrolling */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.modules-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.modules-scroll-container::-webkit-scrollbar-track {
    background: rgba(74, 222, 128, 0.08);
    border-radius: 4px;
}

.modules-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
}

.modules-flex {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 4px;
    /* Space for hover shadow/transform */
}

.tall-card {
    width: 300px;
    /* Fixed width for horizontal scrolling cards */
    min-height: 400px;
    /* Taller height */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.tall-card:hover {
    transform: translateY(-8px);
}

.module-list {
    list-style: none;
    margin-top: 16px;
    padding: 0;
    flex-grow: 1;
}

.module-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.module-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}


.module-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}

.module-card:hover::before {
    opacity: 1;
}

.module-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(74, 222, 128, 0.08);
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.module-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: var(--radius-md);
    color: var(--accent);
    margin-bottom: 20px;
    transition: var(--transition);
}

.module-card:hover .module-icon {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    transform: scale(1.05);
}

.module-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.module-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.module-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.module-card.featured {
    border-color: rgba(74, 222, 128, 0.3);
    background: rgba(33, 115, 70, 0.15);
}

.module-card.featured::before {
    opacity: 1;
}

/* =============================================
   CIBLE / À QUI S'ADRESSE
   ============================================= */
.cible {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.cible::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.cible-card {
    padding: 40px 32px;
    text-align: center;
}

.cible-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.12);
    border-radius: 50%;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.cible-card:hover .cible-icon {
    background: rgba(74, 222, 128, 0.12);
    border-color: var(--accent);
    transform: scale(1.1);
}

.cible-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cible-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =============================================
   ANIMATIONS EXCEL
   ============================================= */
.excel-animations {
    padding: 80px 0 40px;
    position: relative;
    z-index: 5;
}

.animations-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.anim-card {
    background: rgba(16, 40, 28, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0 0 20px 0;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

[data-theme="light"] .anim-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mac-titlebar {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .mac-titlebar {
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mac-buttons {
    display: flex;
    gap: 8px;
}

.mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.mac-btn.close {
    background: #ff5f56;
}

.mac-btn.minimize {
    background: #ffbd2e;
}

.mac-btn.maximize {
    background: #27c93f;
}

.formula-bar {
    display: flex;
    align-items: center;
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 16px 20px;
}

[data-theme="light"] .formula-bar {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.formula-bar .fx {
    font-style: italic;
    font-family: serif;
    color: var(--text-secondary);
    margin-right: 8px;
    font-size: 1.1rem;
}

.formula-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    width: 100%;
    outline: none;
}

.result-cell {
    transition: all 0.3s ease;
}

.text-danger {
    color: #ef4444 !important;
}

/* =============================================
   TÉMOIGNAGES
   ============================================= */
.temoignages {
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
    /* Prevent horizontal scroll bar on body */
}

.temoignages::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(33, 115, 70, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.nav-btn {
    background: var(--accent);
    color: var(--bg-main);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
    transition: var(--transition);
    z-index: 10;
    flex-shrink: 0;
}

.nav-btn:hover {
    transform: scale(1.1);
    background: #fff;
    color: var(--accent);
}

.prev-btn {
    margin-right: -24px;
}

.next-btn {
    margin-left: -24px;
}

.testimonials-scroll {
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-behavior: smooth;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-scroll::-webkit-scrollbar {
    display: none;
}

.testimonials-scroll.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.testimonials-flex {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 0 40px;
    /* Space for buttons */
}

.testimonial-card {
    width: 350px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: center;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(74, 222, 128, 0.3);
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--text-main);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
        /* Hide buttons on mobile, rely on swipe */
    }

    .testimonials-scroll {
        mask-image: none;
        -webkit-mask-image: none;
        padding: 20px;
    }

    .testimonials-flex {
        padding: 0;
    }

    .testimonial-card {
        width: 300px;
        /* Slightly smaller on mobile */
    }
}

/* =============================================
   APP SCREENSHOTS
   ============================================= */
.app-screenshots {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.screenshots-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

@media (max-width: 992px) {
    .screenshots-layout {
        grid-template-columns: 1fr;
        flex-direction: column-reverse;
        /* Usually stack with nav below or above image */
        gap: 40px;
    }
}

/* Left side navigation */
.screenshots-nav {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 24px;
}

/* The vertical background line */
.screenshots-nav::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--glass-border);
    border-radius: 4px;
}

.screenshot-tab {
    padding: 24px 0 24px 24px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    opacity: 0.5;
}

.screenshot-tab:hover {
    opacity: 0.8;
}

.screenshot-tab.active {
    opacity: 1;
}

/* Active indicator moving line */
.screenshot-tab::before {
    content: '';
    position: absolute;
    left: -24px;
    /* Align perfectly over the background line */
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.screenshot-tab.active::before {
    /* Using the accent color for the active line */
    background: var(--accent);
}

.screenshot-tab.active h4 {
    color: var(--text-primary);
}

.screenshot-tab h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-secondary);
    transition: var(--transition);
}

.screenshot-tab p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.screenshot-tab.active p {
    max-height: 150px;
    opacity: 1;
    margin-top: 12px;
}

/* Right side display */
.screenshots-display {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Changed from cover so full transparent PNG shows cleanly */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
}

.screenshot-img.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* =============================================
   PRICING
   ============================================= */
.pricing {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 115, 70, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.pricing-info-card {
    padding: 48px 40px;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

[data-theme="light"] .pricing-info-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card {
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-color: rgba(74, 222, 128, 0.25);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 12px 48px rgba(33, 115, 70, 0.3), var(--shadow-glow);
}

.pricing-popular {
    display: inline-block;
    padding: 6px 20px;
    background: var(--gradient-main);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.pricing-amount {
    margin-bottom: 36px;
}

.price-old {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
}

.price-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.price-currency {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 8px;
}

.price-value {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 36px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(74, 222, 128, 0.06);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    flex-shrink: 0;
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    padding: 80px 0 0;
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.08);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 4px 0;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.1);
    color: var(--text-muted);
}

.footer-social a:hover {
    background: rgba(74, 222, 128, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal */
.module-card,
.cible-card,
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.module-card.visible,
.cible-card.visible,
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .card-1 {
        right: -10px;
        top: -5px;
    }

    .card-2 {
        left: -10px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .modules,
    .cible,
    .temoignages,
    .pricing {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .modules-grid,
    .cible-grid,
    .testimonials-grid,
    .pricing-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .price-value {
        font-size: 4rem;
    }

    .floating-card {
        display: none;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .mockup-formula-bar .formula {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 16px 32px;
    }
}
