/* Mon Petit Carnet — Landing Page V2 "Soleil Doré" */

/* ==========================================================================
   1. FONT FACE DECLARATIONS
   ========================================================================== */

@font-face {
    font-family: "Clash Display";
    src: url("assets/fonts/ClashDisplay-Variable.woff2")
        format("woff2-variations");
    font-weight: 200 900;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: "Satoshi";
    src: url("assets/fonts/Satoshi-Variable.woff2") format("woff2-variations");
    font-weight: 300 900;
    font-display: swap;
    font-style: normal;
}

/* ==========================================================================
   2. DESIGN TOKENS — Soleil Doré
   ========================================================================== */

:root {
    /* ── Primary (Or/Jaune — accent actions) ── */
    --primary-100: #FFF6CC;
    --primary-200: #FFECAA;
    --primary-500: #FFD100;
    --primary-600: #EEC300;
    --primary-700: #D4AD00;
    --primary-800: #A68800;

    /* ── Secondary (Bleu-gris — fonds de sections) ── */
    --secondary-100: #F5FAFA;
    --secondary-300: #EBF2F2;
    --secondary-500: #DFE8E8;

    /* ── Neutral (Gris — texte, bordures) ── */
    --neutral-0:   #FFFFFF;
    --neutral-50:  #FAFAFA;
    --neutral-100: #F2F2F2;
    --neutral-200: #EAEAEA;
    --neutral-300: #D9D9D9;
    --neutral-400: #BBBBBB;
    --neutral-500: #757575;
    --neutral-600: #383838;
    --neutral-800: #1F1F1F;
    --neutral-900: #0D0D0D;

    /* ── Semantic aliases (backward compat) ── */
    --accent:         var(--primary-500);
    --accent-hover:   var(--primary-600);
    --accent-glow:    rgba(255, 209, 0, 0.12);
    --accent-soft:    var(--primary-100);

    --bg-deep:        var(--neutral-0);
    --bg-dark:        var(--secondary-100);
    --bg-surface:     var(--neutral-0);
    --bg-elevated:    var(--secondary-300);

    --text-primary:   var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-muted:     var(--neutral-500);
    --text-highlight: var(--neutral-800);

    /* Overlays */
    --overlay-dark:    rgba(255, 255, 255, 0.70);
    --overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.50) 50%,
        rgba(255, 255, 255, 0.80) 100%
    );

    /* Status */
    --status-success: #34D399;
    --status-warning: #F59E0B;
    --status-error:   #EF4444;

    /* Borders */
    --border-subtle:  var(--neutral-200);
    --border-accent:  rgba(255, 209, 0, 0.20);

    /* Navbar — LIGHT GLASS */
    --navbar-bg:      rgba(255, 255, 255, 0.90);
    --navbar-blur:    blur(16px);
    --navbar-border:  rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-display: "Clash Display", system-ui, sans-serif;
    --font-body: "Satoshi", system-ui, sans-serif;

    --text-xs:   13px;
    --text-sm:   clamp(14px, 1vw + 10px, 16px);
    --text-base: clamp(16px, 0.5vw + 14px, 19px);
    --text-lg:   clamp(18px, 0.8vw + 14px, 23px);
    --text-xl:   clamp(22px, 1.2vw + 16px, 28px);
    --text-2xl:  clamp(26px, 1.8vw + 16px, 33px);
    --text-3xl:  clamp(32px, 2.5vw + 18px, 40px);
    --text-4xl:  clamp(38px, 3.5vw + 18px, 48px);
    --text-6xl:  clamp(52px, 6vw + 18px, 68px);
    --text-stat: clamp(64px, 10vw + 20px, 120px);

    /* Radii */
    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-xl:   32px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:   0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg:   0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 60px rgba(255, 209, 0, 0.12);

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1200px;
    --container-padding: clamp(20px, 5vw, 40px);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   3. CSS RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    background-color: var(--neutral-50);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
    padding: 12px 24px;
    background-color: var(--primary-500);
    color: var(--neutral-900);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    border-radius: 0 0 8px 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    overflow: hidden;
}

.skip-link:focus {
    top: 0;
    clip: auto;
    white-space: normal;
    overflow: visible;
}

/* ==========================================================================
   5. TYPOGRAPHY CLASSES
   ========================================================================== */

.heading-hero {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-6xl);
    line-height: 1;
    color: #ffffff;
}

.heading-section {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-3xl);
    line-height: 1.1;
    color: var(--text-highlight);
}

.heading-stat {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-stat);
    line-height: 1;
    color: var(--text-highlight);
}

.text-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--text-primary);
}

.text-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Title line decoration */
.title-line {
    position: relative;
    display: inline-block;
}

.title-line::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    margin-top: 20px;
    transition: width 1s var(--ease-out-expo);
}

.title-line.visible::after {
    width: 80px;
}

.title-line {
    margin-bottom: clamp(32px, 5vw, 56px);
}

/* ==========================================================================
   6. CTA BUTTON
   ========================================================================== */

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    height: 56px;
    padding: 0 36px;
    background-color: var(--primary-500);
    color: var(--neutral-900);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-lg);
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 209, 0, 0.25);
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.cta-primary:hover {
    background-color: var(--primary-600);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.cta-primary:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
}

.cta-primary--sm {
    height: 40px;
    min-width: auto;
    padding: 0 20px;
    font-size: var(--text-sm);
    box-shadow: none;
}

.cta-sub {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 16px;
}

.cta-trust {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ==========================================================================
   7. SCROLL ANIMATIONS
   ========================================================================== */

/* Base reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Reveal from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale reveal */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.8s var(--ease-out-expo);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Parallax */
.parallax {
    will-change: transform;
}

/* ==========================================================================
   8. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    .title-line::after {
        width: 80px;
    }
}

/* ==========================================================================
   9. NAVBAR — Glassmorphism noir
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: var(--navbar-bg);
    backdrop-filter: var(--navbar-blur);
    -webkit-backdrop-filter: var(--navbar-blur);
    border-bottom: 1px solid var(--navbar-border);
    height: 64px;
    transition: box-shadow var(--transition-fast), border-bottom-color var(--transition-fast);
}

.navbar--scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: none;
}

.navbar__logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-highlight);
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar__link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.navbar__link:hover {
    color: var(--text-primary);
}

.navbar__link:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    border-radius: 4px;
}

.navbar__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
}

.navbar__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
}

.navbar__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    padding-top: 64px;
}

/* ==========================================================================
   10. PHOTO SECTION — Full-bleed backgrounds
   ========================================================================== */

.section-photo {
    position: relative;
    overflow: hidden;
    padding-block: var(--section-padding);
}

.section-photo__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-photo__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-photo__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.section-photo .container {
    position: relative;
    z-index: 2;
}

/* Dark section (no photo) — legacy, kept for compat */
.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    padding-block: var(--section-padding);
}

/* ==========================================================================
   10b. SECTION SYSTEM — Roole-style rounded containers
   ========================================================================== */

.section {
    padding-block: var(--section-padding);
    margin-inline: clamp(12px, 2vw, 40px);
    margin-block: clamp(16px, 3vw, 32px);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
}

.section--white {
    background-color: var(--neutral-0);
}

.section--gray {
    background-color: var(--secondary-500);
}

.section--cream {
    background-color: var(--primary-100);
}

.section--photo {
    position: relative;
    overflow: hidden;
}

.section--photo .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   11. HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 64px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgb(0 50 80 / 55%) 0%,
        rgb(0 0 0 / 60%) 40%,
        rgb(180 150 0 / 30%) 100%
    );
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(40px, 5vw, 80px);
    padding-block: clamp(60px, 10vw, 120px);
    max-width: none;
}

.hero__content {
    flex: 1 1 55%;
    text-align: left;
}

.hero__form-card {
    flex: 0 1 45%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.hero__form-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-highlight);
    margin-bottom: 24px;
}

.hero__form-group {
    margin-bottom: 16px;
}

.hero__form-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.hero__form-select,
.hero__form-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}

.hero__form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a9a92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.hero__form-select:focus,
.hero__form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.15);
}

.hero__form-submit {
    width: 100%;
    margin-top: 8px;
}

.hero__form-card .cta-sub {
    text-align: center;
}

.hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(255, 209, 0, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-800);
    margin-bottom: 32px;
}

.hero__title {
    margin-bottom: clamp(20px, 3vw, 32px);
}

/* Typing animation */
.typing-text {
    color: #ffffff;
}

.typing-cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__body {
    max-width: 600px;
    margin-bottom: clamp(24px, 4vw, 40px);
    font-size: clamp(18px, 2.5vw, 22px);
    color: #ffffff;
    font-weight: 600;
    line-height: 1.6;
}

.hero__cta {
    margin-bottom: 0;
}

.hero .cta-sub {
    color: var(--text-muted);
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: pulse-down 2s ease-in-out infinite;
}

.hero__scroll svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
}

@keyframes pulse-down {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ==========================================================================
   12. TRUST BAR
   ========================================================================== */

.trust-bar {
    background-color: var(--bg-deep);
    padding-block: clamp(32px, 5vw, 48px);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-bar__item {
    position: relative;
}

.trust-bar__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background-color: var(--border-subtle);
}

.trust-bar__number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 36px);
    color: var(--text-highlight);
    display: block;
}

.trust-bar__label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

/* ==========================================================================
   13. PAIN POINTS — Photo background with stat cards
   ========================================================================== */

.pain {
    position: relative;
}

.pain .heading-section {
    text-align: left;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.pain__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pain__card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pain__stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(56px, 10vw, 120px);
    color: var(--text-highlight);
    line-height: 1;
    display: block;
    margin-bottom: 16px;
}

.pain__card-title {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   14. SOLUTION — Product reveal
   ========================================================================== */

.solution {
    position: relative;
}

.solution .heading-section {
    text-align: left;
    margin-bottom: 16px;
}

.solution__sub {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: clamp(48px, 6vw, 80px);
    line-height: 1.7;
}

.solution__mockup-wrapper {
    max-width: 900px;
    margin-inline: auto;
    position: relative;
}

.solution__mockup {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow:
        var(--shadow-glow),
        0 20px 60px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
    transition: transform 0.6s var(--ease-out-expo);
}

.solution__mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.solution__mockup svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   15. FEATURE SECTIONS — Alternating layouts
   ========================================================================== */

.feature-section {
    position: relative;
    overflow: hidden;
}

.feature-section .container {
    position: relative;
    z-index: 2;
}

.feature__layout {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.feature__text {
    max-width: 520px;
}

.feature__text .heading-section {
    margin-bottom: 16px;
}

.feature__text .text-body {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.feature__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature__list li {
    padding-left: 24px;
    position: relative;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature__list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.feature__mockup {
    width: 100%;
    max-width: 480px;
}

.feature__mockup-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.feature__mockup-frame svg {
    width: 100%;
    height: 100%;
}

/* IA mini-cards */
.feature__mini-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.feature__mini-card {
    padding: 16px 12px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    text-align: center;
    background-color: var(--bg-surface);
}

.feature__mini-card svg {
    width: 24px;
    height: 24px;
    margin-inline: auto;
    margin-bottom: 8px;
    stroke: var(--primary-800);
}

.feature__mini-card span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: block;
}

/* ==========================================================================
   16. EXPENSES — Giant stat + graph
   ========================================================================== */

.expenses__stat-container {
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.expenses__stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(72px, 14vw, 160px);
    color: var(--text-highlight);
    line-height: 1;
}

.expenses__stat-label {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ==========================================================================
   17. REMINDERS — Timeline
   ========================================================================== */

.reminders__layout {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.reminders__timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 32px;
}

.reminders__timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-accent);
}

.timeline__item {
    position: relative;
    padding-bottom: 32px;
    padding-left: 20px;
}

.timeline__dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background-color: var(--bg-dark);
}

.timeline__dot--overdue { color: var(--status-error); background-color: rgba(239, 68, 68, 0.2); }
.timeline__dot--urgent { color: var(--status-warning); background-color: rgba(245, 158, 11, 0.2); }
.timeline__dot--upcoming { color: var(--primary-500); background-color: rgba(255, 209, 0, 0.2); }
.timeline__dot--ok { color: var(--text-muted); }

.timeline__label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.timeline__label--overdue { color: var(--status-error); }
.timeline__label--urgent { color: var(--status-warning); }
.timeline__label--upcoming { color: var(--primary-800); }
.timeline__label--ok { color: var(--text-muted); }

.timeline__desc {
    font-size: 16px;
    color: var(--text-secondary);
}

.reminders__note {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ==========================================================================
   17b. BASE DOCUMENTAIRE — Document vault
   ========================================================================== */

.docbase {
    position: relative;
}

.docbase__layout {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}

.docbase__content {
    max-width: 520px;
}

.docbase__content .heading-section {
    margin-bottom: 16px;
}

.docbase__content .text-body {
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.docbase__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.docbase__feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.docbase__feat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-100);
    border-radius: 10px;
    color: var(--primary-800);
}

.docbase__feat-icon svg {
    width: 20px;
    height: 20px;
}

.docbase__feat-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    color: var(--text-highlight);
    margin-bottom: 4px;
}

.docbase__feat-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.docbase__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.docbase__tag {
    display: inline-block;
    padding: 6px 16px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-xs);
    color: var(--primary-800);
    background-color: var(--primary-100);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-pill);
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.docbase__tag:hover {
    background-color: var(--primary-200);
    transform: translateY(-1px);
}

.docbase__visual {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.docbase__photo {
    border-radius: 16px;
    overflow: hidden;
    height: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.docbase__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.docbase__mockup {
    position: relative;
    margin-top: -60px;
    margin-inline: 16px;
    z-index: 1;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.10),
        var(--shadow-glow) !important;
}

/* ==========================================================================
   18. GARAGISTE — 3-step workflow
   ========================================================================== */

.garage__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: clamp(40px, 6vw, 64px);
}

.garage__step {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
}

.garage__step-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 48px;
    color: var(--primary-500);
    display: block;
    margin-bottom: 16px;
}

.garage__step-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-highlight);
    margin-bottom: 8px;
}

.garage__step-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Arrow connector between steps */
.garage__step:not(:last-child)::after {
    content: '\2192';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-500);
    z-index: 1;
}

.garage__note {
    text-align: center;
    margin-top: 32px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==========================================================================
   19. SECURITY — 4 pillars grid
   ========================================================================== */

.security {
    position: relative;
}

.security .heading-section {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.security__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.security__pillar {
    text-align: center;
    padding: 32px 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
}

.security__icon {
    color: var(--primary-800);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.security__icon svg {
    width: 40px;
    height: 40px;
}

.security__pillar-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--text-highlight);
    margin-bottom: 8px;
}

.security__pillar-body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.security__note {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* ==========================================================================
   20. AUDIENCE — Dual cards
   ========================================================================== */

.audience {
    position: relative;
}

.audience .heading-section {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.audience__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin-inline: auto;
}

.audience__card {
    padding: 48px 32px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    transition:
        border-color var(--transition-base),
        transform var(--transition-base);
}

.audience__card:hover {
    border-color: var(--primary-500);
    transform: scale(1.02);
}

.audience__card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 28px;
    color: var(--text-highlight);
    margin-bottom: 8px;
}

.audience__card-count {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.audience__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.audience__list li {
    padding-left: 24px;
    position: relative;
    font-size: 16px;
    color: var(--text-secondary);
}

.audience__list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.audience__cta {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-800);
    transition: color var(--transition-fast);
}

.audience__cta:hover {
    color: var(--primary-700);
}

.audience__cta:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================================================
   21. TESTIMONIALS — Photo background with carousel
   ========================================================================== */

.testimonials {
    position: relative;
}

.testimonials .heading-section {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.testimonials__carousel {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.testimonials__quotes {
    position: relative;
    min-height: 200px;
}

.testimonials__quote {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonials__quote.active {
    position: relative;
    opacity: 1;
}

.testimonials__quote p {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(20px, 3vw, 28px);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimonials__author {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-800);
    font-style: normal;
    display: block;
}

.testimonials__detail {
    font-size: 14px;
    color: var(--text-secondary);
}

.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-muted);
    border: none;
    cursor: pointer;
    padding: 0;
    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast);
}

.testimonials__dot.active {
    background-color: var(--primary-500);
    transform: scale(1.3);
}

.testimonials__dot:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
}

/* Testimonial stats row */
.testimonials__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: clamp(48px, 8vw, 80px);
    text-align: center;
}

.testimonials__stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    color: var(--text-highlight);
    display: block;
}

.testimonials__stat-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

/* ==========================================================================
   22. FAQ — Accordion
   ========================================================================== */

.faq {
    position: relative;
}

.faq .heading-section {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.faq__list {
    max-width: 800px;
    margin-inline: auto;
}

.faq__item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 17px;
    color: var(--text-primary);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq__question:hover {
    color: var(--primary-800);
}

.faq__question:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: 4px;
}

.faq__chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--text-muted);
    transition: transform 0.3s var(--ease-out-expo);
}

.faq__item.open .faq__chevron {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-expo);
}

.faq__answer-inner {
    padding-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ==========================================================================
   23. CTA FINAL — Photo background
   ========================================================================== */

.cta-final {
    position: relative;
    overflow: hidden;
    padding-block: clamp(100px, 14vw, 200px);
}

.cta-final__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-final__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-final__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.80) 0%,
        rgba(255, 255, 255, 0.60) 50%,
        rgba(255, 255, 255, 0.85) 100%
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cta-final .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-final .heading-section {
    margin-bottom: 16px;
}

.cta-final__sub {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: clamp(32px, 5vw, 48px);
}

.cta-final .cta-sub {
    color: var(--text-muted);
}

.cta-final .cta-trust {
    color: var(--text-muted);
}

/* ==========================================================================
   24. FOOTER
   ========================================================================== */

.footer {
    background-color: var(--bg-deep);
    color: var(--text-secondary);
    padding-top: 64px;
    padding-bottom: 32px;
    border-top: 1px solid var(--border-subtle);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--text-highlight);
    display: block;
    margin-bottom: 8px;
}

.footer__tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer__heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer__list a:hover {
    color: var(--primary-800);
}

.footer__list a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer__divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.footer__copy {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   25. SHOWCASE TABS (reused in Solution section)
   ========================================================================== */

.showcase__tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.showcase__tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 16px;
    color: var(--text-secondary);
    background: none;
    border: 1px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast),
        border-color var(--transition-fast);
}

.showcase__tab:hover {
    color: var(--text-primary);
    background-color: rgba(255, 209, 0, 0.08);
}

.showcase__tab.active {
    color: var(--neutral-900);
    font-weight: 700;
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.showcase__tab:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.showcase__panel {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.showcase__panel.active {
    display: block;
    opacity: 1;
}

.showcase__screen {
    position: relative;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

/* ==========================================================================
   26. RESPONSIVE — Mobile first
   ========================================================================== */

@media (max-width: 1024px) {
    .security__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature__mini-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .garage__steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }

    .garage__step:not(:last-child)::after {
        content: '\2193';
        right: 50%;
        top: auto;
        bottom: -18px;
        transform: translateX(50%);
    }
}

@media (max-width: 768px) {
    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__content {
        text-align: center;
    }

    .hero__form-card {
        max-width: 100%;
        width: 100%;
    }

    .hero__body {
        margin-inline: auto;
    }

    .trust-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .trust-bar__item:nth-child(2)::after {
        display: none;
    }

    .pain__grid {
        grid-template-columns: 1fr;
    }

    .audience__grid {
        grid-template-columns: 1fr;
    }

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

    .feature__layout {
        text-align: center;
    }

    .feature__list li {
        text-align: left;
    }

    .docbase__layout {
        text-align: center;
    }

    .docbase__feat {
        text-align: left;
    }

    .docbase__tags {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .security__grid {
        grid-template-columns: 1fr;
    }

    .trust-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-bar__item::after {
        display: none !important;
    }

    .feature__mini-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__scroll {
        display: none;
    }

    /* Navbar mobile */
    .navbar__nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background-color: var(--navbar-bg);
        backdrop-filter: var(--navbar-blur);
        -webkit-backdrop-filter: var(--navbar-blur);
        border-bottom: 1px solid var(--navbar-border);
        padding: 16px 0;
    }

    .navbar__nav.open {
        display: flex;
    }

    .navbar__link {
        width: 100%;
        padding: 12px var(--container-padding);
    }

    .navbar__nav .cta-primary--sm {
        margin: 8px var(--container-padding) 0;
        width: calc(100% - var(--container-padding) * 2);
    }

    .navbar__burger {
        display: flex;
    }

    .showcase__tabs {
        gap: 4px;
    }

    .showcase__tab {
        padding: 8px 16px;
        font-size: 14px;
    }

    .solution__mockup {
        transform: none;
    }
}

/* ==========================================================================
   27. DESKTOP OVERRIDES (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
    :root {
        --container-max: 1200px;
    }

    /* Feature sections — side by side */
    .feature__layout {
        flex-direction: row;
        align-items: center;
    }

    .feature__text {
        flex: 1 1 55%;
    }

    .feature__mockup {
        flex: 0 1 45%;
    }

    /* Reversed layout */
    .feature__layout--reverse {
        flex-direction: row-reverse;
    }

    /* Base documentaire side by side */
    .docbase__layout {
        flex-direction: row;
        align-items: center;
    }

    .docbase__content {
        flex: 1 1 50%;
    }

    .docbase__visual {
        flex: 0 1 50%;
    }

    .docbase__photo {
        height: 260px;
    }

    /* Reminders side by side */
    .reminders__layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .reminders__timeline-col {
        flex: 0 1 40%;
    }

    .reminders__mockup-col {
        flex: 0 1 55%;
    }

    /* Testimonials — show all side by side */
    .testimonials__carousel {
        max-width: none;
    }

    .testimonials__quotes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        min-height: auto;
    }

    .testimonials__quote {
        position: relative;
        opacity: 1;
        text-align: left;
    }

    .testimonials__quote[aria-hidden="true"] {
        position: relative;
        opacity: 1;
    }

    .testimonials__dots {
        display: none;
    }
}

/* ==========================================================================
   28. REDUCED MOTION — Additional overrides
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .solution__mockup,
    .solution__mockup:hover {
        transform: none;
    }

    .testimonials__quote {
        transition: none;
    }

    .hero__scroll {
        animation: none;
        opacity: 0.5;
    }

    .faq__answer {
        transition: none;
    }
}
