/* ============================================
   whazora.com — Editorial Luxury-Tech Design
   ============================================ */

:root {
    --emerald: #4a9d78;
    --emerald-deep: #3a8566;
    --emerald-glow: rgba(74, 157, 120, 0.09);
    --emerald-subtle: rgba(74, 157, 120, 0.04);

    --obsidian: #080c10;
    --surface: #0d1117;
    --surface-raised: #151b23;
    --surface-hover: #1c2430;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #f0f4f8;
    --text-secondary: #8b95a5;
    --muted: #5a6577;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Page Transition ---- */
@keyframes pageEnter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

body.page-exit {
    animation: pageExit 0.25s cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes pageExit {
    from { opacity: 1; }
    to   { opacity: 0; }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.65;
    background: var(--obsidian);
    overflow-x: hidden;
    animation: pageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

ul { list-style: none; }

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

/* ---- Grain Overlay ---- */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

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

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

.text-gradient {
    background: linear-gradient(135deg, var(--emerald-deep), var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8232rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(74, 157, 120, 0.2);
    border-radius: 100px;
    background: rgba(74, 157, 120, 0.05);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.6754rem, 5vw, 4.116rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(2.058rem, 3.5vw, 2.8812rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.3891rem;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    color: var(--text-secondary);
    font-size: 1.0804rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9776rem;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--emerald);
    color: var(--obsidian);
    box-shadow: 0 0 0 0 rgba(74, 157, 120, 0), 0 4px 20px rgba(74, 157, 120, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(74, 157, 120, 0.15), 0 8px 30px rgba(74, 157, 120, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-ghost:hover {
    border-color: var(--emerald);
    color: var(--emerald);
    background: rgba(74, 157, 120, 0.04);
    transform: translateY(-2px);
}

.btn-step {
    margin-top: 20px;
}

/* Nav-specific buttons — blanc, sans contour vert */
.btn-nav-login,
.btn-nav-signup {
    padding: 9px 18px;
    font-size: 0.8746rem;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease, color .25s ease;
}
.btn-nav-login i,
.btn-nav-signup i {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9467em;
    transition: transform .25s ease, color .25s ease;
}
.btn-nav-login:hover,
.btn-nav-signup:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}
.btn-nav-login:hover i {
    color: #ffffff;
    transform: translateX(2px);
}
.btn-nav-signup:hover i {
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-nav-login:active,
.btn-nav-signup:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-nav-outline {
    padding: 9px 18px;
    font-size: 0.8746rem;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border-hover);
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-nav-outline:hover {
    border-color: var(--emerald);
    color: var(--emerald);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 16px 0;
    background: rgba(8, 12, 16, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    z-index: 10050;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(10px, 2vw, 28px);
}

.logo {
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 2;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: cover;
    border: 1.5px solid rgba(74, 157, 120, 0.3);
    transition: transform 0.3s var(--ease-spring);
}

.logo:hover .logo-img {
    transform: rotate(6deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5435rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--emerald);
}

.nav-links {
    grid-column: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(14px, 2vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.nav-links li {
    flex-shrink: 0;
}

.nav-links a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(0.8rem, 1.1vw, 0.9261rem);
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
    line-height: 1.25;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--emerald);
    transition: width 0.35s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    grid-column: 3;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    flex-shrink: 0;
}

/* Language Selector */
.lang-selector { position: relative; }

.btn-lang {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.8438rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-lang:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.lang-modal {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface-raised);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.25s var(--ease-out-expo);
    z-index: 100;
    padding: 6px;
}

.lang-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.8746rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--surface-hover);
}

.lang-option.active {
    background: var(--emerald-subtle);
    color: var(--emerald);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 1.2348rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Navbar compacte : menu hamburger avant chevauchement */
@media (max-width: 1060px) {
    .nav-links:not(.active),
    .nav-actions .btn-nav-outline {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
    background: var(--obsidian);
}

/* Grid background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 157, 120, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 157, 120, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

/* Glowing orbs */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(74, 157, 120, 0.05);
    top: -200px;
    right: -150px;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(74, 157, 120, 0.04);
    bottom: -100px;
    left: -100px;
    animation: glowPulse 10s ease-in-out infinite alternate-reverse;
}

@keyframes glowPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 12px;
    border-radius: 100px;
    border: 1px solid rgba(74, 157, 120, 0.15);
    background: rgba(74, 157, 120, 0.04);
    font-family: var(--font-display);
    font-size: 0.8438rem;
    font-weight: 500;
    color: var(--emerald);
    margin-bottom: 28px;
}

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

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 157, 120, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74, 157, 120, 0); }
}

.hero-content h1 {
    color: var(--text-primary);
    font-size: clamp(2.0066rem, 3.8vw, 3.2414rem);
    letter-spacing: -1.1px;
    line-height: 1.12;
    margin-bottom: 22px;
}

.hero-accent {
    position: relative;
    color: var(--emerald);
    text-shadow: 0 0 40px rgba(74, 157, 120, 0.2);
}

/* Inline WhatsApp signature at the tail of the H1 — small, em-scaled to track the heading */
.hero-wa-tail { white-space: nowrap; }
.hero-wa-mark-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.92em;
    height: 0.92em;
    margin-left: 0.32em;
    border-radius: 22%;
    background: linear-gradient(135deg, #5a9a7a 0%, #3d7a6a 100%);
    color: #ffffff;
    font-size: 0.9467em;
    line-height: 1;
    vertical-align: -0.12em;
    box-shadow:
        0 6px 14px -4px rgba(37, 211, 102, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    animation: heroWaInlineFloat 4.5s ease-in-out infinite;
}
.hero-wa-mark-inline i {
    font-size: 0.638em;
    line-height: 1;
}
@keyframes heroWaInlineFloat {
    0%, 100% { transform: translateY(0); }
    50%     { transform: translateY(-2px); }
}

/* "WhatsApp" word inside the H1 — uses WhatsApp brand green to contrast with whazora emerald */
.hero-wa-word {
    position: relative;
    color: #5a9a7a;
    white-space: nowrap;
    text-shadow: 0 0 40px rgba(37, 211, 102, 0.22);
}
.hero-wa-word::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.55), transparent);
    border-radius: 999px;
    opacity: 0.7;
}

.hero-sub {
    font-size: 1.1319rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.5435rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.8026rem;
    color: var(--muted);
    font-weight: 500;
}

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

/* Hero Phone */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0;
}

/* Phone mockup */
.phone-mockup {
    position: relative;
    width: 300px;
    height: 610px;
    border-radius: 44px;
    background: linear-gradient(145deg, #1a1a1f, #0e0e12);
    padding: 10px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 0 0 3px rgba(0,0,0,0.4),
        0 30px 80px rgba(0,0,0,0.55),
        0 0 60px rgba(74, 157, 120,0.06),
        inset 0 1px 0 rgba(255,255,255,0.06);
    z-index: 1;
}

.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #0a0a0e;
    border-radius: 0 0 16px 16px;
    z-index: 3;
}
.phone-notch::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(74, 157, 120,0.4), #1a1a22);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(74, 157, 120,0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #000;
    position: relative;
    z-index: 2;
}

.phone-screen canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Ambient glow behind phone */
.phone-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(74, 157, 120,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: phoneGlow 5s ease-in-out infinite;
}

@keyframes phoneGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.08); }
}

/* Floating cards */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    font-family: var(--font-display);
    font-size: 0.8438rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: floatY 6s ease-in-out infinite;
}

.float-card i {
    color: #2a8f62;
    font-size: 0.9776rem;
}

.float-card-1 {
    top: -10px;
    right: -30px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 12%;
    left: -20px;
    animation-delay: -3s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   FEATURES SHOWCASE — editorial-dimensional
   ============================================ */
.features-showcase {
    padding: 120px 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.features-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 40% at 25% 15%, rgba(74, 157, 120, 0.04), transparent 65%),
        radial-gradient(ellipse 45% 50% at 85% 85%, rgba(74, 157, 120, 0.025), transparent 70%);
    pointer-events: none;
}

.features-header {
    max-width: 640px;
    margin-bottom: 64px;
    position: relative;
}

.features-header h2 {
    font-size: clamp(1.8522rem, 3vw, 2.4696rem);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    counter-reset: feature-num;
    position: relative;
}

.feature-card {
    --fc-emerald: 19, 180, 112;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 38%),
        var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 42px 36px 36px;
    transition:
        transform 0.55s var(--ease-out-expo),
        border-color 0.4s ease,
        box-shadow 0.45s ease,
        background 0.45s ease;
    position: relative;
    overflow: hidden;
    counter-increment: feature-num;
    isolation: isolate;
}

/* Numbered editorial prefix — top-right */
.feature-card::before {
    content: counter(feature-num, decimal-leading-zero);
    position: absolute;
    top: 22px;
    right: 26px;
    font-family: var(--font-display);
    font-size: 0.7409rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.16);
    font-feature-settings: 'tnum';
    transition: color 0.45s ease, letter-spacing 0.45s ease;
    z-index: 2;
}

/* Bottom-right diagonal mark (depth + intent) */
.feature-card::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, transparent 50%, rgba(var(--fc-emerald), 0.06) 50%);
    transition:
        width 0.55s var(--ease-out-expo),
        height 0.55s var(--ease-out-expo),
        background 0.45s ease;
    pointer-events: none;
    z-index: 1;
}

/* Left vertical spine — revealed on hover */
.feature-card-inner {
    position: relative;
    z-index: 1;
}

.feature-card-inner::before {
    content: '';
    position: absolute;
    left: -36px;
    top: -42px;
    bottom: -36px;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(var(--fc-emerald), 0.35) 30%,
        rgba(var(--fc-emerald), 0.6) 50%,
        rgba(var(--fc-emerald), 0.35) 70%,
        transparent 100%);
    opacity: 0;
    transform: scaleY(0.35);
    transform-origin: center;
    transition:
        opacity 0.5s ease,
        transform 0.55s var(--ease-out-expo);
}

/* Hover state */
.feature-card:hover {
    border-color: rgba(var(--fc-emerald), 0.22);
    transform: translateY(-6px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(var(--fc-emerald), 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 40%),
        radial-gradient(ellipse 90% 100% at 100% 100%, rgba(var(--fc-emerald), 0.05), transparent 70%),
        var(--surface-raised);
}

.feature-card:hover::before {
    color: rgba(var(--fc-emerald), 0.85);
    letter-spacing: 0.22em;
}

.feature-card:hover::after {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, transparent 50%, rgba(var(--fc-emerald), 0.12) 50%);
}

.feature-card:hover .feature-card-inner::before {
    opacity: 1;
    transform: scaleY(1);
}

/* Icon: the <i> itself becomes a refined frame with corner notch */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(var(--fc-emerald), 0.14), rgba(var(--fc-emerald), 0.04));
    border: 1px solid rgba(var(--fc-emerald), 0.16);
    border-radius: 13px;
    color: var(--emerald);
    font-size: 1.0804rem;
    margin: 0 0 28px;
    position: relative;
    transition:
        transform 0.5s var(--ease-out-expo),
        background 0.4s ease,
        border-color 0.4s ease;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(var(--fc-emerald), 0.55);
    border-right: 1px solid rgba(var(--fc-emerald), 0.55);
    border-top-right-radius: 13px;
    transition:
        width 0.45s ease,
        height 0.45s ease,
        border-color 0.45s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(var(--fc-emerald), 0.22), rgba(var(--fc-emerald), 0.06));
    border-color: rgba(var(--fc-emerald), 0.32);
    transform: translateY(-2px) rotate(-1.5deg);
}

.feature-card:hover .feature-icon::after {
    width: 14px;
    height: 14px;
    border-top-color: var(--emerald);
    border-right-color: var(--emerald);
}

/* Typography */
.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.2554rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    margin: 0 0 14px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.957rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    max-width: 42ch;
    position: relative;
    z-index: 1;
}

/* Large card with chat */
.feature-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}

/* ============================================
   CHAT PREVIEW — polished
   ============================================ */
.feature-chat-preview {
    padding: 0;
    position: relative;
    z-index: 1;
}

.chat-mockup-mini {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 50%),
        var(--surface);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
}

.chat-mockup-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 157, 120, 0.22), transparent);
    z-index: 1;
}

.mini-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.012);
    border-bottom: 1px solid var(--border);
}

.mini-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(74, 157, 120, 0.28);
    object-fit: cover;
}

.mini-header strong {
    font-family: var(--font-display);
    font-size: 0.9467rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.mini-header span {
    font-size: 0.6791rem;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.mini-header span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px rgba(74, 157, 120, 0.55);
    animation: chatPulseDot 2.4s ease-in-out infinite;
}

@keyframes chatPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.45; transform: scale(0.85); }
}

.mini-body {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-msg {
    padding: 9px 14px;
    border-radius: 14px;
    font-size: 0.8541rem;
    max-width: 78%;
    line-height: 1.45;
    animation: msgFloatIn 0.55s var(--ease-out-expo) backwards;
}

.mini-body .mini-msg:nth-child(1) { animation-delay: 0.10s; }
.mini-body .mini-msg:nth-child(2) { animation-delay: 0.30s; }
.mini-body .mini-msg:nth-child(3) { animation-delay: 0.50s; }
.mini-body .mini-msg:nth-child(4) { animation-delay: 0.75s; }

@keyframes msgFloatIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mini-msg.sent {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(74, 157, 120, 0.18), rgba(74, 157, 120, 0.11));
    color: rgba(74, 157, 120, 0.95);
    border: 1px solid rgba(74, 157, 120, 0.15);
    border-bottom-right-radius: 4px;
}

.mini-msg.received {
    align-self: flex-start;
    background: var(--surface-hover);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom-left-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .feature-card *,
    .chat-mockup-mini,
    .mini-msg,
    .mini-header span::before {
        animation: none !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 120px 0;
    background: var(--obsidian);
}

.section-header {
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header p {
    color: var(--text-secondary);
}

.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step-row {
    display: flex;
    gap: 60px;
    align-items: center;
}

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

.step-content {
    flex: 1;
    display: flex;
    gap: 20px;
}

.step-num-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.step-num {
    font-family: var(--font-display);
    font-size: 2.2638rem;
    font-weight: 900;
    color: var(--emerald);
    line-height: 1;
    opacity: 0.6;
}

.step-line {
    width: 2px;
    flex: 1;
    min-height: 60px;
    background: linear-gradient(to bottom, rgba(74, 157, 120, 0.3), transparent);
    margin-top: 12px;
}

.step-text {
    padding-top: 4px;
}

.step-text h3 {
    font-size: 1.6464rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.step-text p {
    font-size: 1.029rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-visual {
    flex: 1;
    width: 100%;
}

.step-img {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* UI Mockups */
.ui-mockup {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--text-primary);
}

/* Dashboard Mockup */
.dashboard-mockup {
    display: flex;
    height: 350px;
}

.mockup-sidebar {
    width: 200px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.029rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.mockup-logo i { color: var(--emerald); }

.mockup-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mockup-menu-item {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.8746rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mockup-menu-item.active {
    background: var(--emerald-subtle);
    color: var(--emerald);
    font-weight: 600;
}

.mockup-main {
    flex: 1;
    padding: 28px;
    background: var(--surface-raised);
}

.mockup-main h5 {
    color: var(--muted);
    font-size: 0.8438rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.mockup-main h4 {
    font-family: var(--font-display);
    font-size: 1.3891rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.mockup-main > p {
    color: var(--text-secondary);
    font-size: 0.9055rem;
    margin-bottom: 24px;
}

.mockup-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    background: var(--surface);
    position: relative;
}

.mockup-card.recommended {
    border-color: rgba(74, 157, 120, 0.3);
}

.mockup-card .badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--emerald);
    color: var(--obsidian);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.7203rem;
    font-weight: 700;
}

.mockup-card i {
    font-size: 1.4406rem;
    color: var(--emerald);
    margin-bottom: 12px;
}

.mockup-card h6 {
    font-family: var(--font-display);
    font-size: 1.029rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.mockup-card p {
    margin: 0;
    font-size: 0.8438rem;
    color: var(--text-secondary);
}

/* Templates Mockup */
.templates-mockup { padding: 28px; }

.mockup-header {
    font-family: var(--font-display);
    font-size: 0.8026rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.templates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.template-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    background: var(--surface-raised);
    transition: border-color 0.3s;
}

.template-card.active {
    border-color: var(--emerald);
    background: rgba(74, 157, 120, 0.03);
}

.template-card i {
    font-size: 1.2348rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.template-card.active i { color: var(--emerald); }

.template-card h6 {
    font-family: var(--font-display);
    font-size: 0.9261rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.template-card p {
    font-size: 0.8026rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Playground Mockup */
.playground-mockup {
    background: #1a2332;
    padding: 28px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

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

.pbubble {
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 0.9055rem;
    max-width: 75%;
}

.pbubble.preceived {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.pbubble.psent {
    align-self: flex-end;
    background: rgba(74, 157, 120, 0.12);
    color: var(--emerald);
    border-bottom-right-radius: 4px;
}

/* Integration Mockup */
.integration-mockup {
    display: flex;
    flex-direction: column;
    height: 350px;
}

.mockup-header-nav {
    display: flex;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.mockup-header-nav span {
    font-size: 0.8746rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.mockup-header-nav span.active {
    color: var(--emerald);
    font-weight: 600;
}

.integration-body {
    padding: 24px;
    flex: 1;
}

.integration-body h4 {
    font-family: var(--font-display);
    margin-bottom: 18px;
    font-size: 1.1833rem;
}

.integration-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    background: var(--surface-raised);
}

.icard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.icard-header h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.029rem;
    font-weight: 600;
}

.icard-header .count {
    background: var(--surface);
    color: var(--muted);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7717rem;
}

.icard-header > i {
    font-size: 1.6464rem;
    color: var(--emerald);
}

.integration-card p {
    font-size: 0.9055rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.btn-mockup {
    width: 100%;
    padding: 11px;
    background: var(--emerald);
    color: var(--obsidian);
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9055rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    padding: 120px 0;
    background: var(--surface);
}

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

/* Plan unifié : une seule carte centrée. */
.pricing-grid--single {
    grid-template-columns: minmax(0, min(480px, 100%));
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}

.pricing-grid--single .pricing-card.popular {
    transform: none;
}

.pricing-grid--single .pricing-card.popular:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(74, 157, 120, 0.18);
}

.pricing-card {
    background: var(--surface-raised);
    border-radius: 20px;
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
    border: 2px solid var(--emerald);
    box-shadow: 0 0 40px rgba(74, 157, 120, 0.08);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 20px 60px rgba(74, 157, 120, 0.12);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emerald);
    color: var(--obsidian);
    padding: 6px 18px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.8026rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.plan-name {
    font-family: var(--font-display);
    font-size: 1.1833rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 12px;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.old-price {
    font-family: var(--font-display);
    font-size: 1.3377rem;
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 600;
}

.new-price {
    font-family: var(--font-display);
    font-size: 2.8812rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.period {
    font-size: 0.8746rem;
    color: var(--muted);
}

.billing-sub {
    font-size: 0.8026rem;
    color: var(--muted);
    margin: 4px 0 0;
}

.pricing-features {
    list-style: none;
}

.pricing-features li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9261rem;
    font-weight: 500;
}

.pricing-features li i {
    color: var(--emerald);
    font-size: 0.8746rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.pricing-features li.highlight {
    color: var(--emerald);
    font-weight: 700;
}

.pricing-api-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    max-width: 920px;
    margin: 28px auto 32px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 129, 251, 0.28);
    background: linear-gradient(135deg, rgba(0, 129, 251, 0.1) 0%, rgba(74, 157, 120, 0.06) 100%);
}
.pricing-meta-api-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a4a8a;
    background: rgba(0, 129, 251, 0.12);
    border: 1px solid rgba(0, 129, 251, 0.35);
}
.pricing-meta-api-badge i {
    font-size: 1rem;
    color: #0081fb;
}
.pricing-api-strip-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
    text-align: center;
    flex: 1 1 220px;
}
.pricing-card-api-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1a4a8a;
    background: rgba(0, 129, 251, 0.08);
    border: 1px solid rgba(0, 129, 251, 0.28);
}
.pricing-card-api-pill i {
    font-size: 0.85rem;
    color: #0081fb;
}
.pricing-features li.is-api {
    color: #1a4a8a;
    font-weight: 700;
}
.pricing-features li.is-api i {
    color: #0081fb;
}

/* Billing Toggle */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 32px auto 0;
    position: relative;
    width: fit-content;
}

.save-badge {
    position: absolute;
    left: -130px;
    top: 4px;
    font-family: var(--font-display);
    font-size: 0.8438rem;
    font-weight: 700;
    color: var(--emerald);
}

.billing-label {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9776rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    transition: 0.3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    transition: 0.3s var(--ease-spring);
}
input:checked + .slider {
    background: var(--emerald);
    border-color: var(--emerald);
}
input:checked + .slider:before {
    transform: translateX(22px);
    background: var(--obsidian);
}
.slider.round { border-radius: 26px; }
.slider.round:before { border-radius: 50%; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    padding: 120px 0;
    background: var(--obsidian);
}

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

/* ============================================
   Marquee infinite carousel — JS-driven, draggable
   ============================================ */
.testimonials-marquee {
    margin-top: 48px;
    position: relative;
    overflow: hidden;
    padding: 12px 0;
    /* Smooth edge fade — content emerges / vanishes into the background */
    mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none; /* horizontal drag + auto-scroll */
}

.testimonials-marquee.is-dragging {
    cursor: grabbing;
}

.testimonials-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.testimonials-marquee .testimonial-card {
    flex: 0 0 380px;
    width: 380px;
    margin: 0;
}

/* While dragging, prevent click on links/buttons inside cards
   (avoid accidental nav on swipe). The JS toggles this. */
.testimonials-marquee.is-dragging .testimonial-card * {
    pointer-events: none;
}

@media (max-width: 768px) {
    .testimonials-marquee .testimonial-card {
        flex: 0 0 300px;
        width: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-marquee {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        mask-image: none;
        -webkit-mask-image: none;
        cursor: default;
    }
    .testimonials-marquee .testimonial-card {
        scroll-snap-align: start;
    }
}

.testimonial-card {
    background: var(--surface);
    padding: 36px;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.testimonial-stars-icons {
    display: inline-flex;
    gap: 3px;
}

.testimonial-stars-icons i {
    color: #fbbf24;
    font-size: 0.8746rem;
}

.testimonial-stars-icons .far.fa-star {
    color: rgba(251, 191, 36, 0.28);
}

.testimonial-rating-value {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.8232rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.22);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.9776rem;
    line-height: 1.7;
}

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

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.testimonial-author h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.9776rem;
    color: var(--text-primary);
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.8438rem;
    color: var(--muted);
}

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

.footer p {
    color: var(--text-secondary);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
    gap: 36px;
    padding-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9261rem;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-family: var(--font-display);
    font-size: 1.029rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.9261rem;
    transition: all 0.25s ease;
}

.footer-links ul li a:hover {
    color: var(--emerald);
    padding-left: 4px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9261rem;
}

.footer-contact ul li i {
    color: var(--emerald);
    width: 16px;
    font-size: 0.8746rem;
    flex-shrink: 0;
}

.footer-contact ul li a {
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.footer-contact ul li a:hover {
    color: var(--emerald);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9776rem;
    transition: all 0.3s var(--ease-out-expo);
}

.social-icons a:hover {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--obsidian);
    transform: translateY(-2px);
}

/* Trust / partnership badge */
.footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 28px 0 26px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.footer-trust-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.7203rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}

.footer-trust-label i {
    color: var(--emerald);
    font-size: 0.8746rem;
}

.footer-trust-divider {
    width: 1px;
    height: 22px;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.16), transparent);
    flex-shrink: 0;
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 70%),
        rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.06);
    transition:
        border-color 0.4s ease,
        background 0.4s ease,
        transform 0.4s var(--ease-out-expo);
}

.footer-trust-badge img {
    height: 24px;
    width: auto;
    display: block;
    opacity: 0.78;
    filter: brightness(1.05);
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.footer-trust-badge:hover {
    border-color: rgba(74, 157, 120, 0.24);
    background:
        linear-gradient(180deg, rgba(74, 157, 120,0.04), transparent 70%),
        rgba(255,255,255,0.012);
    transform: translateY(-1px);
}

.footer-trust-badge:hover img {
    opacity: 1;
    filter: brightness(1.15);
}

.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8438rem;
    color: var(--muted);
}

.footer-legal-links {
    display: none !important;
}

.footer-legal-links a {
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.footer-legal-links a:hover {
    color: var(--emerald);
}

.footer-legal-sep {
    color: var(--text-secondary);
    opacity: 0.4;
}

@media (max-width: 560px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive — stack badge on small screens */
@media (max-width: 560px) {
    .footer-trust {
        flex-direction: column;
        gap: 14px;
        padding: 22px 0 20px;
        margin-top: 28px;
    }
    .footer-trust-divider {
        width: 36px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
    }
    .footer-trust-label {
        font-size: 0.6586rem;
    }
    .footer-trust-badge img {
        height: 22px;
    }
}

/* ============================================
   AUTH (LOGIN / REGISTER)
   ============================================ */
.auth-page {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 80px;
}

.auth-page-inner {
    width: 100%;
    max-width: 520px;
}

.auth-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.auth-card-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(74, 157, 120, 0.12);
    color: var(--emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4406rem;
    margin-bottom: 12px;
}

.auth-card-header h1 {
    font-size: 1.8522rem;
    margin-bottom: 8px;
}

.auth-card-header p {
    font-size: 0.9776rem;
    margin-bottom: 0;
}

.auth-msg {
    display: none;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9261rem;
}

.auth-msg.show { display: block; }
.auth-msg.hint { background: rgba(74, 157, 120, 0.08); color: var(--emerald); }
.auth-msg.error { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.auth-msg.success { background: rgba(74, 157, 120, 0.12); color: var(--emerald); }

.auth-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 18px;
}

.auth-tab {
    flex: 1 1 auto;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
}

.auth-tab.active {
    color: var(--text-primary);
    border-color: rgba(74, 157, 120, 0.4);
    background: rgba(74, 157, 120, 0.1);
}

.btn-google {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.8746rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--border);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-form .field {
    margin-bottom: 14px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.8746rem;
}

.auth-form input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.9776rem;
}

.btn-auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: var(--emerald);
    color: #0b0f14;
    font-weight: 700;
    cursor: pointer;
}

.auth-footer-links {
    margin-top: 12px;
    text-align: center;
    font-size: 0.8746rem;
    color: var(--text-secondary);
}

.auth-back-home {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 0.9261rem;
    color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

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

    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-badge { justify-content: center; }

    .float-card { display: none; }

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

    .feature-card-large {
        grid-column: 1;
        grid-template-columns: 1fr;
    }

    .step-row,
    .step-row.reverse {
        flex-direction: column;
        gap: 32px;
    }

    .mockup-sidebar { display: none; }
    .templates-grid { grid-template-columns: 1fr; }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 32px;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    .footer-brand {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .nav-container {
        column-gap: 6px;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
        gap: 6px;
    }

    .logo-text {
        font-size: 1.15rem;
        white-space: nowrap;
    }

    .nav-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
        min-width: 0;
    }

    .nav-actions .btn-lang {
        padding: 6px 8px;
        font-size: 0.72rem;
        gap: 4px;
        flex-shrink: 0;
    }

    .nav-actions .btn-nav-login,
    .nav-actions .btn-nav-signup {
        padding: 7px 9px;
        font-size: 0.72rem;
        gap: 5px;
        white-space: nowrap;
        line-height: 1.15;
        flex-shrink: 0;
    }

    .nav-actions .btn-nav-login span,
    .nav-actions .btn-nav-signup span {
        white-space: nowrap;
    }

    .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
        padding: 7px 9px;
        font-size: 1.1rem;
        margin-left: 2px;
    }

    .hero { padding: 130px 0 80px; }

    h1 { font-size: 2.2638rem; }

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

    .stat-divider { display: none; }

    .save-badge {
        position: static;
        display: block;
        margin-bottom: 8px;
        text-align: center;
    }

    .save-badge svg { display: none; }

    .billing-toggle-container {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .step-content { flex-direction: column; }
}

/* Mobile Nav Menu (toggled by JS) */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    gap: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.nav-links.active a::after { display: none; }

/* ============================================
   HERO SCROLL-DRIVEN CANVAS
   ============================================ */
#hero-scroll-canvas {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.hero-canvas-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    background: rgba(6,7,9,0.85);
    border-radius: inherit;
    transition: opacity 0.5s ease;
    z-index: 2;
}
.hero-canvas-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.hero-canvas-loader-bar {
    width: 60%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    overflow: hidden;
}
.hero-canvas-loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4a9d78, #3a8566);
    border-radius: 999px;
    transition: width 0.1s ease;
}

/* ============================================================
   HERO MASCOT STAGE — Whazora character spotlight
   ============================================================ */
.hero-mascot-stage {
    position: relative;
    width: 380px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* Soft emerald halo bloom */
.hero-mascot-halo {
    position: absolute;
    inset: -8%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 48%,
            rgba(74, 157, 120, 0.22) 0%,
            rgba(74, 157, 120, 0.12) 28%,
            rgba(74, 157, 120, 0.04) 58%,
            transparent 78%);
    filter: blur(12px);
    z-index: 0;
    animation: mascotHalo 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mascotHalo {
    0%, 100% { opacity: 0.72; transform: scale(1); }
    50%      { opacity: 0.88; transform: scale(1.05); }
}

/* Rotating dashed AI orbit ring */
.hero-mascot-ring {
    position: absolute;
    width: 92%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px dashed rgba(74, 157, 120, 0.26);
    box-shadow:
        inset 0 0 50px rgba(74, 157, 120, 0.04),
        0 0 50px rgba(74, 157, 120, 0.03);
    z-index: 1;
    animation: mascotRing 28s linear infinite;
    pointer-events: none;
}

.hero-mascot-ring::before,
.hero-mascot-ring::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1f9a66;
    box-shadow:
        0 0 10px rgba(74, 157, 120, 0.45),
        0 0 18px rgba(74, 157, 120, 0.18);
}
.hero-mascot-ring::before { top: -5px;    left: 50%; transform: translateX(-50%); }
.hero-mascot-ring::after  { bottom: -5px; left: 50%; transform: translateX(-50%); }

@keyframes mascotRing {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Spotlight disc — lets the white image background dissolve in */
.hero-mascot-platform {
    position: absolute;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%,
        #ffffff 0%,
        #f6fcf9 55%,
        #e4f3eb 85%,
        rgba(228, 243, 235, 0) 100%);
    box-shadow:
        0 30px 90px -10px rgba(74, 157, 120, 0.18),
        inset 0 -20px 60px rgba(74, 157, 120, 0.06);
    z-index: 2;
}

/* Mascot — transparent PNG, sits over the spotlight stage */
.hero-mascot-img {
    position: relative;
    width: 88%;
    height: auto;
    max-height: 94%;
    object-fit: contain;
    z-index: 3;
    filter:
        saturate(0.9)
        brightness(0.96)
        drop-shadow(0 22px 32px rgba(0, 0, 0, 0.35));
    animation: mascotFloat 6s ease-in-out infinite;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mascot-img,
    .hero-mascot-halo,
    .hero-mascot-ring { animation: none; }
}

@media (max-width: 991.98px) {
    .hero-mascot-stage { width: 320px; height: 400px; }
}

@media (max-width: 575.98px) {
    .hero-mascot-stage { width: 270px; height: 330px; }
}

/* ============================================================
   MOBILE PWA LAYER — landing
   ============================================================ */
@media (max-width: 767.98px) {
    /* Safe area sur le top de la navbar (status bar iOS) */
    .navbar {
        padding-top: env(safe-area-inset-top);
    }

    /* Inputs anti-zoom iOS */
    input, textarea, select { font-size: 16.464px !important; }

    /* Hero plus respirable */
    .hero { padding: calc(100px + env(safe-area-inset-top)) 16px 60px; }
    .hero-content { text-align: center; }
    .hero-text h1 { font-size: 2.058rem; line-height: 1.15; letter-spacing: -0.02em; }
    .hero-text p { font-size: 1.029rem; }

    /* Stats hero : grille 3 colonnes compactes */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        text-align: center;
    }
    .hero-stats .stat-item { padding: 8px 4px; }

    /* CTA pleine largeur */
    .hero-cta,
    .hero-cta-row {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-cta .btn,
    .hero-cta a.btn,
    .hero-cta-row .btn { width: 100%; min-height: 50px; }

    /* Sections de contenu — padding latéral cohérent */
    section { padding-left: 16px; padding-right: 16px; }

    /* Features : 1 colonne */
    .features-grid,
    .feature-row { grid-template-columns: 1fr; gap: 16px; }
    .feature-card { padding: 20px; }
    .feature-card h3 { font-size: 1.1833rem; }

    /* Comment ça marche : timeline compacte */
    .step-content {
        flex-direction: column;
        gap: 14px;
        text-align: left;
    }
    .step-content img { max-width: 100%; height: auto; }
    .step-text h3 { font-size: 1.2348rem; }

    /* Pricing : cards empilées full-width */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .pricing-card { padding: 24px 20px; }
    .pricing-card .price { font-size: 2.2638rem; }

    .billing-toggle-container {
        width: 100%;
        justify-content: center;
    }

    /* Témoignages : 1 colonne */
    .testimonials-grid,
    .testimonials-row { grid-template-columns: 1fr; gap: 14px; }

    /* Footer compact */
    .footer { padding: 32px 16px 24px; }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .social-icons { justify-content: center; }
    .footer-bottom { font-size: 0.8232rem; }
}

/* ============================================
   FAQ — editorial asymmetric accordion
   ============================================ */
.faq-section {
    padding: 120px 0;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 38% at 12% 28%, rgba(74, 157, 120, 0.035), transparent 65%),
        radial-gradient(ellipse 38% 50% at 88% 82%, rgba(74, 157, 120, 0.02), transparent 70%);
    pointer-events: none;
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.65fr);
    gap: 80px;
    align-items: flex-start;
    position: relative;
}

.faq-header {
    position: sticky;
    top: 100px;
}

.faq-title {
    font-size: clamp(1.9551rem, 3.4vw, 2.6754rem);
    line-height: 1.15;
    margin: 16px 0 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.faq-title-sub {
    display: block;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.638em;
    margin-top: 10px;
    letter-spacing: -0.005em;
}

.faq-lead {
    font-size: 0.9878rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 38ch;
}

.faq-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(74, 157, 120, 0.14), rgba(74, 157, 120, 0.05));
    border: 1px solid rgba(74, 157, 120, 0.22);
    border-radius: 12px;
    color: var(--emerald);
    font-size: 0.9055rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
}

.faq-cta:hover {
    transform: translateX(3px);
    border-color: rgba(74, 157, 120, 0.42);
    background: linear-gradient(135deg, rgba(74, 157, 120, 0.22), rgba(74, 157, 120, 0.08));
}

.faq-cta i {
    transition: transform 0.4s var(--ease-out-expo);
}

.faq-cta:hover i {
    transform: translateX(4px);
}

/* Accordion list */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 60%),
        var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition:
        border-color 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;
}

.faq-item:hover {
    border-color: rgba(74, 157, 120, 0.18);
}

.faq-item[open] {
    border-color: rgba(74, 157, 120, 0.32);
    background:
        linear-gradient(180deg, rgba(74, 157, 120, 0.025), transparent 80%),
        var(--surface-raised);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.25s ease;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }
.faq-question:focus-visible {
    outline: 2px solid rgba(74, 157, 120, 0.4);
    outline-offset: -2px;
    border-radius: 16px;
}

.faq-q-num {
    font-family: var(--font-display);
    font-size: 0.7409rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.22);
    width: 30px;
    flex-shrink: 0;
    font-feature-settings: 'tnum';
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}

.faq-q-text {
    flex: 1;
    font-size: 1.0496rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    line-height: 1.4;
}

.faq-q-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 0.8026rem;
    transition: all 0.45s var(--ease-out-expo);
}

.faq-item:hover .faq-q-icon {
    border-color: rgba(74, 157, 120, 0.28);
    color: var(--emerald);
}

.faq-item[open] .faq-q-num {
    color: var(--emerald);
    letter-spacing: 0.22em;
}

.faq-item[open] .faq-q-icon {
    background: rgba(74, 157, 120, 0.14);
    border-color: rgba(74, 157, 120, 0.38);
    color: var(--emerald);
    transform: rotate(45deg);
}

/* Answer body */
.faq-answer {
    padding: 0 24px 26px 72px;
    color: var(--text-secondary);
    font-size: 0.957rem;
    line-height: 1.75;
    animation: faqAnswerIn 0.5s var(--ease-out-expo);
}

.faq-answer p {
    margin: 0 0 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 700;
}

.faq-answer em {
    color: var(--text-primary);
    font-style: italic;
}

.faq-steps {
    margin: 0 0 14px;
    padding: 0 0 0 22px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-steps li {
    padding-left: 4px;
    line-height: 1.6;
}

.faq-steps li::marker {
    color: var(--emerald);
    font-weight: 700;
    font-family: var(--font-display);
}

.faq-inline-link {
    color: var(--emerald);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(74, 157, 120, 0.35);
    transition: border-color 0.25s ease;
}

.faq-inline-link:hover {
    border-bottom-color: var(--emerald);
}

@keyframes faqAnswerIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive — tablet */
@media (max-width: 960px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .faq-header {
        position: static;
    }
}

/* Responsive — mobile */
@media (max-width: 560px) {
    .faq-section { padding: 72px 0; }
    .faq-question {
        padding: 18px 18px;
        gap: 12px;
    }
    .faq-q-num {
        width: 26px;
        font-size: 0.6997rem;
    }
    .faq-q-text {
        font-size: 0.9673rem;
    }
    .faq-q-icon {
        width: 32px;
        height: 32px;
        font-size: 0.7409rem;
    }
    .faq-answer {
        padding: 0 18px 20px 56px;
        font-size: 0.9261rem;
    }
    .faq-steps {
        padding-left: 18px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-q-icon,
    .faq-q-num,
    .faq-cta,
    .faq-cta i,
    .faq-answer {
        transition-duration: 0.001ms !important;
        animation: none !important;
    }
}

/* ---- Téléphones étroits (< 480px) ---- */
@media (max-width: 479.98px) {
    html { font-size: 14.406px; }
    .hero-text h1 { font-size: 1.6978rem; }
    .pricing-card .price { font-size: 1.9551rem; }
    .navbar .logo-text { display: none; }
    .navbar .lang-selector #current-lang { display: none; }

    .nav-actions .btn-nav-login,
    .nav-actions .btn-nav-signup {
        position: relative;
        padding: 8px 10px;
        min-width: 38px;
        justify-content: center;
    }

    .nav-actions .btn-nav-login span,
    .nav-actions .btn-nav-signup span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

