/**
 * OptiBFR - Modern Landing Page Styles
 * Inspired by invokap.factor design
 * Vitrine LeanPay : vert #47cb9b, dégradé pastel hero
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #47cb9b;
    --primary-hover: #2da87c;
    --primary-light: #e8faf3;
    --secondary: #2da87c;
    --accent: #47cb9b;
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --info: #0ea5e9;
    --info-light: #e0f2fe;
    
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #64748b;
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    
    --gradient-start: #47cb9b;
    --gradient-end: #2da87c;
    --gradient-primary: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    /* Hero type LeanPay : petite touche pêche/rose à gauche, puis bleu ciel, puis menthe */
    --gradient-hero-pastel: linear-gradient(
        118deg,
        #fde8e4 0%,
        #fce4ec 5%,
        #f5e8f2 9%,
        #e3eef9 16%,
        #d8ecfc 26%,
        #cfe8f8 38%,
        #c5e8f4 48%,
        #c8f0e8 62%,
        #d1fae5 76%,
        #e8fdf3 90%,
        #f0fdf4 100%
    );
    
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    /* Typo premium (réf. LeanPay) : Plus Jakarta Sans */
    --vitrine-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --vitrine-size-base: 16px;
    --vitrine-size-nav: 15px;
    --vitrine-size-body: 1rem;
    --vitrine-size-lead: 1.0625rem;
    --vitrine-gutter-x: clamp(1.25rem, 5vw, 2rem);
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--vitrine-font-family);
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Ajustements typographiques globaux (sans toucher au layout) */
body.website-layout {
    text-rendering: geometricPrecision;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body.website-layout p,
body.website-layout .lead,
body.website-layout .text-secondary,
body.website-layout .text-muted {
    font-weight: 400;
    line-height: 1.7;
}

/* Gouttières pages vitrine (marges latérales type leanpay.io, plus généreuses que Bootstrap seul) */
body.website-layout .container {
    --bs-gutter-x: var(--vitrine-gutter-x);
}

body.website-layout .container-fluid {
    --bs-gutter-x: var(--vitrine-gutter-x);
}

/* ===== NAVBAR ===== */
.site-nav {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.site-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.site-nav .navbar-brand img {
    height: 42px;
    transition: height 0.3s ease;
}

.site-nav.scrolled .navbar-brand img {
    height: 36px;
}

.site-nav .nav-link {
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.site-nav .nav-link:hover {
    color: var(--primary-light) !important;
}

.site-nav.scrolled .nav-link {
    color: var(--text-primary) !important;
}

.site-nav.scrolled .nav-link:hover {
    color: var(--primary) !important;
}

.site-nav .nav-link.active {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* Navbar buttons */
.btn-nav-ghost {
    color: white !important;
    background: transparent;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.site-nav.scrolled .btn-nav-ghost {
    color: var(--text-primary) !important;
}

.btn-nav-primary {
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    color: white !important;
}

/* ===== HERO SECTION (vitrine LeanPay — fond pastel, bloc compact) ===== */
.hero-modern {
    min-height: 0;
    background: var(--gradient-hero-pastel);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 2rem;
    overflow: hidden;
}

/* Home : hero un peu plus haut pour s'aligner visuellement aux autres pages */
body.website-layout .vitrine-nav-root.is-home ~ .website-main .hero-modern {
    min-height: 52vh;
}

/* Home uniquement: décale le contenu du hero vers le bas */
body.website-layout .vitrine-nav-root.is-home ~ .website-main .hero-modern .hero-content,
body.website-layout .vitrine-nav-root.is-home ~ .website-main .hero-modern .hero-image {
    margin-top: 1.5rem;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a2e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
}

/* Halo doux côté mockup (centré plutôt à droite pour ne pas tuer le dégradé chaud à gauche) */
.hero-modern::after {
    content: '';
    position: absolute;
    top: 6%;
    right: -10%;
    width: min(56vw, 720px);
    height: 88%;
    background: radial-gradient(
        ellipse 58% 52% at 76% 46%,
        rgba(191, 219, 254, 0.28) 0%,
        rgba(224, 242, 254, 0.16) 48%,
        rgba(248, 250, 252, 0.06) 70%,
        transparent 82%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 32rem;
}

@media (min-width: 992px) {
    .hero-modern .row.hero-row-tight {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.25rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary-hover);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin-bottom: 0.65rem;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(1.6875rem, 4.68vw, 2.7rem); /* ~90 % du clamp d’origine */
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.028em;
    line-height: 1.14;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

/* Garde « … nouvelle génération, assisté par IA » sur une même ligne sur grands écrans */
.hero-title .hero-title-nowrap {
    white-space: nowrap;
}

/* Tablette / mobile : la phrase est trop longue — retour à la ligne pour ne pas couper « assisté par IA » */
@media (max-width: 991px) {
    .hero-title .hero-title-nowrap {
        white-space: normal;
    }

    body.website-layout .hero-title {
        line-height: 1.18;
    }
}

.hero-title .highlight {
    background: linear-gradient(90deg, #47cb9b, #2da87c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.hero-subtitle {
    font-size: var(--vitrine-size-lead);
    color: var(--text-secondary);
    max-width: 26rem;
    margin-bottom: 1.1rem;
    line-height: 1.72;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-cta .btn-light {
    background: var(--primary);
    color: #fff !important;
    font-weight: 500;
    padding: 0.6rem 1.35rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(75, 209, 160, 0.35);
    transition: all 0.3s ease;
}

.hero-cta .btn-light:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.hero-cta .btn-outline-light {
    border: 1.5px solid var(--border);
    color: var(--text-primary) !important;
    padding: 0.6rem 1.35rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.hero-cta .btn-outline-light:hover {
    background: var(--bg-body);
    border-color: var(--primary);
    color: var(--text-primary) !important;
}

/* Hero Image — visuel calé hauteur texte (réf. LeanPay) */
.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-image img {
    width: 100%;
    max-width: min(100%, 580px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 992px) {
    .hero-image img {
        max-width: min(100%, 540px);
    }
}

.hero-float-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-md);
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

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

.hero-float-card.card-2 {
    bottom: 15%;
    left: -20px;
    animation-delay: 1.5s;
}

/* Hero badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-badges .badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.hero-badges .badge-item i {
    color: var(--primary-hover);
}

/* Bande logos ERP sous le bloc titre + visuel (plus masquée par la carte stats) */
.hero-erp-below {
    position: relative;
    z-index: 2;
    padding-top: 0.5rem;
    margin-top: 0.35rem;
}

/* ERP logos strip */
.erp-strip-modern {
    margin-top: 0;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.erp-strip-modern .label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.erp-logos-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.erp-logos-modern img {
    height: 28px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.erp-logos-modern img:hover {
    opacity: 1;
}

/* ===== STATS BAR ===== */
/* Pas de chevauchement négatif : sinon les logos ERP du hero passent sous la carte */
.stats-bar {
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    margin-top: 0.75rem;
    position: relative;
    z-index: 10;
    padding: 1.5rem;
}

/* Home seulement: chevauchement leger sur le hero */
.home-stats-overlay {
    margin-top: -24px;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.info { background: var(--info-light); color: var(--info); }

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

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

/* ===== SECTION STYLES ===== */
.section-modern {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

/* Visual section with human-centered finance/collections images */
.human-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.human-insight-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.human-insight-figure {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--border-light);
}

.human-insight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.human-insight-body {
    padding: 0.95rem 1rem 1.1rem;
}

.human-insight-body h5 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.human-insight-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.feature-icon.gradient {
    background: var(--gradient-primary);
    color: #fff;
}

.feature-icon.primary { background: var(--primary-light); color: var(--primary); }
.feature-icon.success { background: var(--success-light); color: var(--success); }
.feature-icon.warning { background: var(--warning-light); color: var(--warning); }

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

/* Illustration en tête de carte (ex. section Collections & légal sur Features) */
.feature-card--with-figure {
    padding: 0 2rem 2rem;
    overflow: hidden;
}

.feature-card--with-figure .feature-card-figure {
    width: calc(100% + 4rem);
    margin: 0 -2rem 1.25rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--border-light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card--with-figure .feature-card-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== STEP CARDS ===== */
.step-card-modern {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

.step-card-modern::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step-card-modern:last-child::after {
    display: none;
}

.step-icon-modern {
    width: 80px;
    height: 80px;
    background: var(--bg-body);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.step-card-modern h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-card-modern p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3a4a 55%, #1a1a2e 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%2347cb9b' stroke-opacity='0.12' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: var(--font-size-lg);
    border: none;
    box-shadow: 0 8px 24px rgba(75, 209, 160, 0.35);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
}

.cta-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-hover);
    box-shadow: 0 20px 40px rgba(45, 168, 124, 0.35);
    color: #fff !important;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-info small {
    color: var(--text-muted);
}

/* ===== PRICING CARDS ===== */
.pricing-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-modern.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.pricing-badge-modern {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: var(--font-size-sm);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
}

.pricing-card-modern h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.pricing-features li i {
    color: var(--success);
    font-size: 1rem;
}

/* ===== FOOTER ===== */
.footer-modern {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem;
}

.footer-bottom {
    text-align: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Pages vitrine secondaires (about, contact, features, pricing, implementation) ===== */
.vitrine-page-hero {
    background: var(--gradient-hero-pastel);
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.vitrine-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a2e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.55;
    pointer-events: none;
}

.vitrine-page-hero .container {
    position: relative;
    z-index: 2;
}

.vitrine-page-hero h1 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: clamp(1.875rem, 5.2vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.vitrine-page-hero .lead {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.vitrine-page-hero .eyebrow {
    color: var(--primary-hover);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
}

.vitrine-page-hero .cta-btn {
    margin-top: 1.5rem;
}

.vitrine-page-hero .badge-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary-hover);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* About — barre stats sous le hero */
.stats-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-modern .stat {
    text-align: center;
    padding: 1.5rem;
}

.stats-modern .stat .num {
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary);
}

.stats-modern .stat small {
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

/* Contact — carte formulaire */
.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-form-card .form-head {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-form-card .form-body {
    padding: 1.5rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: var(--radius);
    border-color: var(--border);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(75, 209, 160, 0.2);
}

/* Contact — illustration sous le formulaire / cartes */
.contact-page-illustration {
    margin-bottom: 0;
}
.contact-opti-img {
    max-width: min(100%, 960px);
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Pricing page — accents par plan */
.plan-starter .pricing-price { color: var(--primary) !important; }
.plan-starter .pricing-card-modern { border-top: 4px solid var(--primary); }

.plan-pro .pricing-price { color: var(--secondary) !important; }
.plan-pro .pricing-card-modern { border-top: 4px solid var(--secondary); }

.plan-enterprise .pricing-price { color: var(--success) !important; }
.plan-enterprise .pricing-card-modern { border-top: 4px solid var(--success); }

.plan-btn-starter { background: var(--primary) !important; border-color: var(--primary) !important; color: white !important; }
.plan-btn-starter:hover { background: var(--primary-hover) !important; }
.plan-btn-starter-outline { border-color: var(--primary) !important; color: var(--primary) !important; }
.plan-btn-starter-outline:hover { background: var(--primary) !important; color: white !important; }

.plan-btn-pro { background: var(--secondary) !important; border-color: var(--secondary) !important; color: white !important; }
.plan-btn-pro:hover { background: #248f68 !important; }
.plan-btn-pro-outline { border-color: var(--secondary) !important; color: var(--secondary) !important; }
.plan-btn-pro-outline:hover { background: var(--secondary) !important; color: white !important; }

.plan-btn-enterprise { background: var(--success) !important; border-color: var(--success) !important; color: white !important; }
.plan-btn-enterprise:hover { background: #16a34a !important; }
.plan-btn-enterprise-outline { border-color: var(--success) !important; color: var(--success) !important; }
.plan-btn-enterprise-outline:hover { background: var(--success) !important; color: white !important; }

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    main.website-main {
        padding-top: 64px;
    }

    .vitrine-nav-root {
        min-height: 0;
    }

    .vitrine-nav__bar {
        top: var(--vitrine-banner-h);
    }

    .vitrine-nav__bar-inner {
        min-height: 64px;
    }

    .vitrine-announcement {
        top: 0;
    }

    body.has-vitrine-banner main.website-main {
        padding-top: calc(64px + var(--vitrine-banner-h));
    }

    body.website-layout .vitrine-nav-root.is-home ~ .website-main {
        padding-top: var(--vitrine-banner-h);
        margin-top: 0;
    }

    body.website-layout .vitrine-nav-root.is-home ~ .website-main .hero-modern {
        margin-top: 0;
        padding-top: calc(64px + 2.4rem);
        padding-bottom: 2.2rem;
        min-height: 50vh;
    }

    body.website-layout .vitrine-nav-root.is-home ~ .website-main .hero-modern .hero-content,
    body.website-layout .vitrine-nav-root.is-home ~ .website-main .hero-modern .hero-image {
        margin-top: 1rem;
    }

    .hero-modern {
        padding-top: 72px;
        text-align: center;
    }

    .hero-content {
        max-width: none;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-image {
        margin-top: 3rem;
    }

    .step-card-modern::after {
        display: none;
    }

    .site-nav .navbar-collapse {
        background: var(--bg-card);
        padding: 1rem;
        border-radius: var(--radius);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }

    .site-nav .navbar-collapse .nav-link {
        color: var(--text-primary) !important;
    }

    .erp-strip-modern {
        text-align: center;
    }

    .erp-logos-modern {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .section-modern {
        padding: 3.5rem 0;
    }

    .stats-bar {
        margin-top: 0.5rem;
        padding: 1.5rem;
    }

    .home-stats-overlay {
        margin-top: -14px;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .hero-float-card {
        display: none;
    }

    .pricing-card-modern {
        padding: 1.5rem;
    }

    .human-insights-grid {
        grid-template-columns: 1fr;
    }

    .human-insight-figure {
        aspect-ratio: 16 / 10;
    }
}

/* ===== UTILITIES ===== */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-modern {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-modern-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(75, 209, 160, 0.35);
    color: white;
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-modern-outline:hover {
    background: var(--primary);
    color: white;
}

.card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* =============================================================================
   VITRINE — styles autonomes (sans Tailwind / Vite)
   Garantit nav + footer + logo si les assets compilés ne sont pas déployés.
   ============================================================================= */

body.website-layout {
    background: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    --vitrine-banner-h: 0px;
}

/* Typographie vitrine unifiee (home + pages secondaires) */
body.website-layout,
body.website-layout button,
body.website-layout input,
body.website-layout select,
body.website-layout textarea {
    font-family: var(--vitrine-font-family) !important;
    font-size: var(--vitrine-size-base);
}

body.website-layout p,
body.website-layout li,
body.website-layout .hero-subtitle,
body.website-layout .section-subtitle,
body.website-layout .vitrine-page-hero .lead {
    font-size: var(--vitrine-size-body);
    line-height: 1.55;
}

body.website-layout .hero-title {
    font-size: clamp(1.6875rem, 4.68vw, 2.7rem);
    line-height: 1.14;
    letter-spacing: -0.028em;
    font-weight: 700;
}

body.website-layout .vitrine-page-hero h1 {
    font-size: clamp(1.875rem, 5.2vw, 3rem);
    line-height: 1.14;
    letter-spacing: -0.028em;
    font-weight: 700;
}

body.website-layout .section-title,
body.website-layout .cta-title {
    font-size: clamp(1.75rem, 3.8vw, 2.375rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 600;
}

/* Page Mise en œuvre : mêmes titres de section que .section-title */
body.website-layout .section-title-modern {
    font-size: clamp(1.75rem, 3.8vw, 2.375rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
    font-weight: 600;
    color: var(--text-primary);
}

body.website-layout .vitrine-nav__link,
body.website-layout .vitrine-nav__btn-ghost,
body.website-layout .vitrine-nav__btn-primary {
    font-size: var(--vitrine-size-nav);
}

body.website-layout.has-vitrine-banner {
    --vitrine-banner-h: 32px;
}

main.website-main {
    min-height: 50vh;
    padding-top: 68px;
}

body.has-vitrine-banner main.website-main {
    padding-top: calc(68px + var(--vitrine-banner-h));
}

/* Bannière sous la barre fixe (ne doit pas passer « derrière » la nav transparente sur la home) */
.vitrine-announcement {
    background: #47cb9b;
    color: #fff;
    text-align: center;
    min-height: var(--vitrine-banner-h);
    padding: 0.35rem var(--vitrine-gutter-x);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    box-sizing: border-box;
}

.vitrine-announcement__cta {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vitrine-announcement__cta:hover {
    color: #fff;
    opacity: 0.95;
}

/* ----- Navigation ----- */
.vitrine-nav-root {
    font-family: var(--vitrine-font-family);
    min-height: 0;
}

.vitrine-nav__bar {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: fixed;
    top: var(--vitrine-banner-h);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    transition: background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    padding: 0;
}

/* Aligné sur le hero : contenu dans .container (gouttières Bootstrap = même retrait que le contenu) */
.vitrine-nav__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.75rem;
    min-height: 68px;
}

.vitrine-nav__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.vitrine-nav__brand img {
    max-height: 36px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.vitrine-nav__links {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 1.75rem;
    font-size: var(--vitrine-size-nav);
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.vitrine-nav__link {
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.vitrine-nav__link:hover {
    color: #1a1a2e;
}

.vitrine-nav__link.is-active {
    color: #1a1a2e;
}

.vitrine-nav__cta {
    display: none;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mobile : langue + burger à droite (hors menu), desktop : masqué */
.vitrine-nav__trailing {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

@media (min-width: 992px) {
    .vitrine-nav__trailing {
        display: none;
    }
}

.vitrine-nav__lang--desktop {
    display: none;
}

@media (min-width: 992px) {
    .vitrine-nav__lang--desktop {
        display: block;
    }

    .vitrine-nav__lang--mobile {
        display: none !important;
    }
}

.vitrine-nav__lang .dropdown-toggle {
    font-size: 0.875rem;
}

.vitrine-nav__btn-ghost {
    display: inline-block;
    font-size: var(--vitrine-size-nav);
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.vitrine-nav__btn-ghost:hover {
    background: #f9fafb;
    color: #1a1a2e;
}

.vitrine-nav__btn-primary {
    display: inline-block;
    font-size: var(--vitrine-size-nav);
    font-weight: 500;
    color: #fff !important;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    background: #47cb9b;
    border: none;
    transition: background 0.15s ease;
}

.vitrine-nav__btn-primary:hover {
    background: #2da87c;
    color: #fff !important;
}

/* Home : nav superposée au hero (style LeanPay) — uniquement sans scroll */
.vitrine-nav-root.is-home:not(.is-scrolled) .vitrine-nav__bar {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none;
}

.vitrine-nav-root.is-home:not(.is-scrolled) .vitrine-nav__link,
.vitrine-nav-root.is-home:not(.is-scrolled) .vitrine-nav__btn-ghost,
.vitrine-nav-root.is-home:not(.is-scrolled) .vitrine-nav__burger {
    color: #1a1a2e;
}

.vitrine-nav-root.is-home:not(.is-scrolled) .vitrine-nav__lang--mobile .lang-btn--compact {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(17, 24, 39, 0.12);
    color: #1a1a2e;
}

.vitrine-nav-root.is-home:not(.is-scrolled) .vitrine-nav__link:hover,
.vitrine-nav-root.is-home:not(.is-scrolled) .vitrine-nav__link.is-active {
    color: #111827;
}

.vitrine-nav-root.is-scrolled .vitrine-nav__bar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

/* Home : hero remonté sous la nav fixe — dégradé visible derrière la barre transparente */
/* Spécificité > body.has-vitrine-banner main.website-main (sinon le padding « nav + bannière » reste appliqué) */
body.website-layout .vitrine-nav-root.is-home ~ .website-main {
    padding-top: var(--vitrine-banner-h);
    margin-top: 0;
}

body.website-layout .vitrine-nav-root.is-home ~ .website-main .hero-modern {
    margin-top: 0;
    padding-top: calc(68px + 2.9rem);
    padding-bottom: 2.5rem;
}

.vitrine-nav__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #1a1a2e;
    cursor: pointer;
}

.vitrine-nav__burger:hover {
    background: #f9fafb;
}

@media (min-width: 992px) {
    .vitrine-nav__links {
        display: flex;
    }

    .vitrine-nav__cta {
        display: flex;
    }

    .vitrine-nav__burger {
        display: none !important;
    }
}

/* Panneau mobile : visibilité gérée par Alpine (x-show) + [x-cloak] avant init */
.vitrine-nav__mobile {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 1rem var(--vitrine-gutter-x) 1.25rem;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
    display: none;
}

.vitrine-nav-root.is-mobile-open .vitrine-nav__mobile {
    display: block;
}

/* Mobile : la barre est fixed — sans ceci le menu débute sous y=0 et « Accueil » est masqué sous la nav */
@media (max-width: 991px) {
    .vitrine-nav__mobile {
        position: fixed;
        left: 0;
        right: 0;
        top: calc(var(--vitrine-banner-h, 0px) + 64px);
        max-height: calc(100vh - var(--vitrine-banner-h, 0px) - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1025;
        box-sizing: border-box;
    }
}

@media (min-width: 992px) {
    .vitrine-nav__mobile {
        display: none !important;
    }
}

.vitrine-nav__mobile-link {
    display: block;
    padding: 0.65rem 0;
    font-weight: 600;
    font-size: var(--vitrine-size-nav);
    color: #1a1a2e;
    text-decoration: none;
}

.vitrine-nav__mobile-link:hover {
    color: #2da87c;
}

.vitrine-nav__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.vitrine-nav__mobile-btn-outline {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
}

.vitrine-nav__mobile-btn-solid {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    background: #47cb9b;
    border: none;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
}

.vitrine-nav__mobile-btn-solid:hover {
    background: #2da87c;
    color: #fff !important;
}

/* ----- Vitrine floating quick actions (3 items only) ----- */
.vitrine-float-actions {
    position: fixed;
    right: 14px;
    top: 48%;
    transform: translateY(-50%);
    z-index: 1045;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vfa-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
}

.vfa-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.vfa-label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.11);
    transition: opacity .2s ease, transform .2s ease;
}

.vfa-item:hover .vfa-label,
.vfa-item:focus-visible .vfa-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.vfa-item:hover .vfa-icon,
.vfa-item:focus-visible .vfa-icon {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

/* Ordre volontairement different de LeanPay + couleurs differenciees */
.vfa-item.is-account .vfa-icon { background: #fef3c7; color: #d97706; }
.vfa-item.is-account .vfa-label { background: #fff7db; color: #c75c04; }

.vfa-item.is-demo .vfa-icon { background: #ccfbf1; color: #0f766e; }
.vfa-item.is-demo .vfa-label { background: #ccfbf1; color: #047857; }

.vfa-item.is-callback .vfa-icon { background: #dbeafe; color: #1d4ed8; }
.vfa-item.is-callback .vfa-label { background: #eef4ff; color: #1e40af; }

/* Mobile : masquer les 3 actions flottantes (gardées sur desktop) */
@media (max-width: 991px) {
    .vitrine-float-actions {
        display: none !important;
    }
}

/* ----- Footer ----- */
.vitrine-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 3.5rem var(--vitrine-gutter-x) 2rem;
    margin-top: auto;
    font-family: var(--vitrine-font-family);
}

.vitrine-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem; align-items: start;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .vitrine-footer__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .vitrine-footer__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.vitrine-footer__col--brand {
    grid-column: span 2;
}

@media (min-width: 1024px) {
    .vitrine-footer__col--brand {
        grid-column: span 1;
    }
}

.vitrine-footer__logo {
    max-height: 32px;
    width: auto;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    object-fit: contain;
}

.vitrine-footer__lead {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 22rem;
    margin-bottom: 0;
}

.vitrine-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.vitrine-footer__social-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    text-decoration: none;
}

.vitrine-footer__social-link:hover {
    color: #fff;
}

.vitrine-footer__heading {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.vitrine-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vitrine-footer__list li {
    margin-bottom: 0.5rem;
}

.vitrine-footer__list a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.vitrine-footer__list a:hover {
    color: #fff;
}

.vitrine-footer__hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0 1.5rem;
}

.vitrine-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

@media (min-width: 576px) {
    .vitrine-footer__bottom {
        flex-direction: row;
        text-align: left;
    }
}

.vitrine-footer__copy {
    margin: 0;
}

.vitrine-footer__legal-links {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.vitrine-footer__legal-links a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.vitrine-footer__legal-links a:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* =============================================================================
   AUTH — connexion, inscription, codes, email (même charte vitrine LeanPay)
   ============================================================================= */

.auth-section {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 4rem;
    background: var(--gradient-hero-pastel);
    position: relative;
}

.auth-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a2e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.55;
    pointer-events: none;
}

.auth-card-modern {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    font-family: var(--vitrine-font-family);
}

.auth-card-modern--wide {
    max-width: 560px;
}

.auth-card-modern h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-card-modern .subtitle {
    color: #6b7280;
    text-align: center;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-form .form-label,
.auth-card-modern .form-label {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.auth-form .form-control,
.auth-form .form-select,
.auth-card-modern .form-control,
.auth-card-modern .form-select {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus,
.auth-card-modern .form-control:focus,
.auth-card-modern .form-select:focus {
    border-color: #47cb9b;
    box-shadow: 0 0 0 3px rgba(75, 209, 160, 0.2);
}

.auth-form .input-group .form-control {
    border-radius: 12px 0 0 12px;
}

.auth-form .input-group .btn-outline-secondary {
    border-color: #e5e7eb;
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.auth-form .input-group .btn-outline-secondary:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #1a1a2e;
}

.btn-auth-primary,
.btn-primary-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #47cb9b, #2da87c) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-error {
    font-size: 0.8rem;
    color: #dc2626;
}

.btn-auth-primary:hover,
.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 168, 124, 0.35);
    color: #fff !important;
}

.btn-outline-modern {
    background: transparent !important;
    color: #2da87c !important;
    border: 2px solid #47cb9b !important;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    transition: background 0.15s ease;
}

.btn-outline-modern:hover {
    background: #e8faf3 !important;
    color: #1a1a2e !important;
}

.link-auth,
.link-modern {
    color: #2da87c;
    text-decoration: none;
    font-weight: 600;
}

.link-auth:hover,
.link-modern:hover {
    color: #248f68;
    text-decoration: underline;
}

.text-auth-muted {
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-card-modern .icon-header {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e8faf3, #d1fae5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-card-modern .icon-header i {
    font-size: 1.75rem;
    color: #2da87c;
}

.auth-icon-header {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e8faf3, #d1fae5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.auth-icon-header i {
    font-size: 1.75rem;
    color: #2da87c;
}

.alert-auth-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #166534;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.alert-auth-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.form-check-input:checked {
    background-color: #47cb9b;
    border-color: #47cb9b;
}

.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 1.25rem 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider-text::before {
    margin-right: 0.75rem;
}

.divider-text::after {
    margin-left: 0.75rem;
}

.auth-guest-intro {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (max-width: 576px) {
    .auth-section {
        padding: 2rem 0.75rem 3rem;
    }

    .auth-card-modern {
        padding: 1.5rem;
    }
}

/* Tailwind (app.css) définit .collapse { visibility: collapse } pour les tableaux ;
 cela casse l’accordéon Bootstrap (contenu invisible ou qui « disparaît »). */
.website-layout .accordion .collapse,
.website-layout .accordion .collapsing {
    visibility: visible !important;
}

/* --- Chatbot vitrine (type centre d’aide, couleurs OptiBFR) --- */
/* Typo réf. Zazu / Intercom : corps 14px, line-height 1.4, texte rgb(20,22,26) */
#vitrine-chat-mount {
    --vcb-navy: #1a1a2e;
    --vcb-navy-soft: #243b53;
    --vcb-mint: #47cb9b;
    --vcb-mint-dark: #2da87c;
    --vcb-teal: #34b484;
    --vcb-header-tint: #f0fdf9;
    --vcb-card-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
    --vcb-zazu-text: rgb(20, 22, 26);
    --vcb-zazu-body: 14px;
    --vcb-zazu-lh: 1.4;
    position: fixed;
    z-index: 10050;
    right: 24px;
    bottom: 24px;
    font-family: var(--vitrine-font-family, 'Inter', system-ui, -apple-system, sans-serif);
    font-size: var(--vcb-zazu-body);
    line-height: var(--vcb-zazu-lh);
    color: var(--vcb-zazu-text);
}
.vcb-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.vcb-launcher {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, var(--vcb-mint), var(--vcb-mint-dark));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(45, 168, 124, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vcb-launcher:hover {
    transform: scale(1.06);
}
.vcb-panel {
    width: min(400px, calc(100vw - 28px));
    /* Hauteur type Zazu : ~82 % de la zone utile, plafonnée (jamais « trop bas ») */
    max-height: calc(100vh - 32px);
    height: min(
        900px,
        calc(100vh - 32px),
        max(480px, calc((100vh - 32px) * 0.82))
    );
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 16px 48px rgba(26, 26, 46, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(26, 26, 46, 0.06);
}
.vcb-head {
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, #fefcfb 0%, var(--vcb-header-tint) 100%);
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    flex-shrink: 0;
}
.vcb-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.vcb-head-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.vcb-head-favicon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(26, 26, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(26, 26, 46, 0.06);
    overflow: hidden;
}
.vcb-head-favicon {
    width: 78%;
    height: 78%;
    object-fit: contain;
    object-position: center;
}
.vcb-head-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.vcb-head-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
    color: var(--vcb-zazu-text);
    letter-spacing: -0.01em;
}
.vcb-head-tagline {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
    line-height: 1.2;
}
.vcb-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.vcb-head-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow:
        0 0 0 2px rgba(52, 180, 132, 0.35),
        0 8px 22px rgba(45, 168, 124, 0.4);
    flex-shrink: 0;
}
.vcb-head-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.vcb-close {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 4px 9px;
    transition: background 0.15s ease, color 0.15s ease;
}
.vcb-close:hover {
    background: #f8fafc;
    color: var(--vcb-navy);
}

.vcb-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fafbfc;
    position: relative;
}
.vcb-view {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vcb-view--home {
    overflow-y: auto;
    padding: 18px 16px 14px;
}
.vcb-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.vcb-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(26, 26, 46, 0.06);
    box-shadow: var(--vcb-card-shadow);
    text-align: left;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    font: inherit;
    width: 100%;
    box-sizing: border-box;
}
.vcb-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(26, 26, 46, 0.1);
}
.vcb-card--block {
    flex-direction: column;
    align-items: stretch;
    cursor: default;
}
.vcb-card--block:hover {
    transform: none;
}
button.vcb-card--block {
    cursor: pointer;
    border: none;
    background: #fff;
}
button.vcb-card--block:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(26, 26, 46, 0.1);
}
.vcb-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vcb-card-title {
    font-weight: 600;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    color: var(--vcb-zazu-text);
    display: block;
}
.vcb-card-title--solo {
    display: block;
    margin-bottom: 10px;
}
.vcb-card-desc {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    line-height: var(--vcb-zazu-lh);
    display: block;
}
.vcb-card-stack {
    position: absolute;
    right: 10px;
    bottom: -8px;
    width: 56px;
    height: 48px;
    flex-shrink: 0;
    pointer-events: none;
}
.vcb-card-stack-logo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vcb-card-stack-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.vcb-card-stack-av {
    position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(45, 168, 124, 0.3);
}
.vcb-card-stack-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.vcb-card-cta {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vcb-teal), var(--vcb-mint-dark));
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(45, 168, 124, 0.35);
    transition: filter 0.15s ease;
}
.vcb-card-cta:hover {
    filter: brightness(1.05);
}
.vcb-card-cta--fake {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vcb-teal), var(--vcb-mint-dark));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    text-align: center;
    box-shadow: 0 4px 16px rgba(45, 168, 124, 0.35);
}
.vcb-card--searchrow {
    align-items: center;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 2px 12px rgba(26, 26, 46, 0.06);
}
.vcb-card--searchrow:hover {
    border-color: rgba(52, 180, 132, 0.45);
}
.vcb-card-search-label {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    color: var(--vcb-zazu-text);
}
.vcb-card-search-ico {
    color: var(--vcb-teal);
    flex-shrink: 0;
    display: flex;
    opacity: 0.95;
}
.vcb-card-search-ico svg {
    display: block;
}

.vcb-view--chat {
    background: #fff;
}
.vcb-chat-hint {
    margin: 0;
    padding: 16px 16px 4px;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    color: #6b7280;
    flex-shrink: 0;
}
.vcb-chat-hint[hidden] {
    display: none;
}
.vcb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}
.vcb-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 100%;
}
.vcb-row--bot {
    align-self: flex-start;
    flex-direction: row;
}
.vcb-row--user {
    align-self: flex-end;
    flex-direction: row;
}
.vcb-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
}
.vcb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.vcb-bubble-wrap {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 50px);
}
.vcb-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--vcb-zazu-text);
}
.vcb-bubble--user {
    background: #e8faf3;
    color: var(--vcb-zazu-text);
    border-bottom-right-radius: 6px;
}
.vcb-bubble--bot {
    background: #f4f4f6;
    border: 1px solid #e8e8ec;
    border-bottom-left-radius: 6px;
}
.vcb-typing {
    flex-shrink: 0;
    background: #fff;
}
.vcb-typing[hidden] {
    display: none !important;
}
.vcb-typing-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 4px 12px 10px;
}
.vcb-typing-av {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.vcb-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    border-bottom-left-radius: 6px;
    min-width: 64px;
}
.vcb-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
    opacity: 0.45;
    animation: vcb-typing-dot 1.05s ease-in-out infinite;
}
.vcb-typing-dot:nth-child(2) {
    animation-delay: 0.18s;
}
.vcb-typing-dot:nth-child(3) {
    animation-delay: 0.36s;
}
@keyframes vcb-typing-dot {
    0%,
    70%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    35% {
        transform: translateY(-6px);
        opacity: 1;
    }
}
.vcb-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #fff;
}
.vcb-input {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    color: var(--vcb-zazu-text);
    width: 100%;
}
.vcb-msg {
    flex: 1;
}
.vcb-send {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    background: linear-gradient(135deg, var(--vcb-teal), var(--vcb-mint-dark));
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}
.vcb-send:hover {
    filter: brightness(1.05);
}

.vcb-view--help {
    padding: 16px 14px;
    overflow-y: auto;
}
.vcb-help-heading {
    margin: 0 0 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    color: var(--vcb-zazu-text);
}
.vcb-help-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.vcb-help-link {
    padding: 12px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 46, 0.08);
    text-decoration: none;
    color: var(--vcb-navy-soft);
    font-weight: 500;
    font-size: 14px;
    line-height: var(--vcb-zazu-lh);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.vcb-help-link:hover {
    border-color: var(--vcb-mint);
    color: var(--vcb-mint-dark);
}

.vcb-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    padding: 4px 4px calc(6px + env(safe-area-inset-bottom, 0));
    background: #fff;
    border-top: 1px solid rgba(26, 26, 46, 0.08);
    flex-shrink: 0;
}
.vcb-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 3px 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.15;
    font-weight: 600;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
}
.vcb-nav-btn:hover {
    background: #f8fafc;
    color: var(--vcb-navy-soft);
}
.vcb-nav-btn--active {
    color: var(--vcb-mint-dark);
}
.vcb-nav-btn--active .vcb-nav-ico {
    color: var(--vcb-mint-dark);
}
.vcb-nav-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.vcb-nav-lbl {
    line-height: 1.1;
    text-align: center;
}
.vcb-nav-badge {
    position: absolute;
    top: 0;
    right: calc(50% - 16px);
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* --- Page dédiée /book-demo --- */
.section-modern.book-demo-page {
    padding: 0.35rem 0 1.25rem;
}

.book-demo-page--tight {
    padding-top: 0;
}

.book-demo-title {
    color: var(--text-primary);
    font-weight: 600;
    /* ~50 % de la taille précédente (clamp 0.94–1.5rem) */
    font-size: clamp(0.75rem, 1.35vw, 1rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.25rem;
    text-align: center;
}

.book-demo-lead {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 640px;
    margin: 0 auto 0.65rem;
    text-align: center;
}

.book-demo-shell {
    max-width: min(1320px, 98vw);
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(26, 26, 46, 0.12);
    border: 1px solid rgba(26, 26, 46, 0.08);
    overflow: hidden;
    min-height: min(880px, calc(100vh - 76px));
}

.book-demo-page .vcb-demo-grid {
    min-height: min(820px, calc(100vh - 88px));
}

.book-demo-page .vcb-demo-content {
    padding: 16px 18px 20px;
}

.book-demo-page .vcb-demo-side {
    padding: 14px 12px 16px;
}

.book-demo-page .vcb-demo-slots {
    max-height: min(520px, 62vh);
}

.book-demo-page .vcb-demo-day {
    max-width: 42px;
    font-size: 13px;
}

.book-demo-page .vcb-demo-form-err {
    margin-bottom: 8px;
}

.vcb-demo-back--link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcb-demo-thanks-close--link {
    text-decoration: none;
    text-align: center;
}

a.vcb-card.vcb-card--block {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.vcb-card.vcb-card--block:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(26, 26, 46, 0.1);
}

/* --- Réservation démo (style Calendly, page + ancien widget) --- */
.vcb-demo-layer {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.vcb-demo-grid {
    display: grid;
    grid-template-columns: minmax(100px, 30%) 1fr;
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.vcb-demo-side {
    background: #fafbfc;
    border-right: 1px solid #e8eaed;
    padding: 10px 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.vcb-demo-back {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #0069ff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 10px;
    padding: 0;
    transition: filter 0.15s ease;
}

.vcb-demo-back:hover {
    filter: brightness(1.08);
}

.vcb-demo-side-av {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.vcb-demo-side-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}

.vcb-demo-host {
    font-size: 11px;
    color: #6b7280;
    margin: 0 0 4px;
    line-height: 1.3;
}

.vcb-demo-event {
    font-size: 13px;
    font-weight: 700;
    color: rgb(20, 22, 26);
    margin: 0 0 8px;
    line-height: 1.25;
}

.vcb-demo-dur {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin: 0 0 8px;
}

.vcb-demo-dur-ico {
    display: flex;
    color: #94a3b8;
}

.vcb-demo-side-extra {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8eaed;
    font-size: 11px;
    color: #475569;
    line-height: 1.35;
}

.vcb-demo-sum-line {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin: 0 0 6px;
}

.vcb-demo-sum-ico {
    flex-shrink: 0;
    display: flex;
    color: #94a3b8;
}

.vcb-demo-side-foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
}

.vcb-demo-side-foot a {
    color: #0069ff;
    text-decoration: none;
}

.vcb-demo-side-foot a:hover {
    text-decoration: underline;
}

.vcb-demo-content {
    padding: 12px 10px 14px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vcb-demo-main-title {
    font-size: 14px;
    font-weight: 700;
    color: rgb(20, 22, 26);
    margin: 0 0 6px;
    line-height: 1.35;
}

.vcb-demo-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 10px;
    line-height: 1.35;
}

.vcb-demo-pick-split {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.vcb-demo-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vcb-demo-cal-nav-btn {
    border: none;
    background: transparent;
    color: #0069ff;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcb-demo-cal-nav-btn:hover {
    background: #e8f4ff;
}

.vcb-demo-cal-month {
    font-size: 13px;
    font-weight: 600;
    color: rgb(20, 22, 26);
    text-transform: capitalize;
}

.vcb-demo-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
    font-size: 9px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
}

.vcb-demo-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px 2px;
    margin-bottom: 10px;
}

.vcb-demo-day {
    aspect-ratio: 1;
    max-width: 36px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: none;
    background: transparent;
    cursor: default;
    position: relative;
    padding: 0;
    border-radius: 50%;
    color: #cbd5e1;
}

.vcb-demo-day--empty {
    visibility: hidden;
}

.vcb-demo-day--off {
    color: #cbd5e1;
}

.vcb-demo-day--avail {
    color: #0069ff;
    background: #e8f4ff;
    cursor: pointer;
    font-weight: 500;
}

.vcb-demo-day--avail:hover {
    filter: brightness(0.97);
}

.vcb-demo-day--today:not(.vcb-demo-day--selected)::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0069ff;
}

.vcb-demo-day--selected {
    background: #0069ff !important;
    color: #fff !important;
    font-weight: 600;
}

.vcb-demo-day--selected::after {
    display: none;
}

.vcb-demo-tz-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 11px;
    color: #475569;
}

.vcb-demo-tz-ico {
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 2px;
}

.vcb-demo-tz-lbl {
    font-weight: 600;
    color: rgb(20, 22, 26);
    font-size: 10px;
}

.vcb-demo-tz-val {
    line-height: 1.3;
}

.vcb-demo-trouble {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    color: rgb(20, 22, 26);
    cursor: pointer;
}

.vcb-demo-trouble:hover {
    border-color: #cbd5e1;
}

.vcb-demo-slots-date {
    font-size: 13px;
    font-weight: 700;
    color: rgb(20, 22, 26);
    margin: 0 0 8px;
    text-transform: capitalize;
}

.vcb-demo-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.vcb-demo-slots-placeholder {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.vcb-demo-slot {
    border: 1px solid #0069ff;
    background: #fff;
    color: #0069ff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition:
 background 0.12s ease,
        color 0.12s ease;
}

.vcb-demo-slot:hover {
    background: #f0f7ff;
}

.vcb-demo-slot--selected {
    background: #3d3d3d;
    color: #fff;
    border-color: #3d3d3d;
}

.vcb-demo-next-wrap {
    margin-top: 10px;
}

.vcb-demo-next {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #0069ff;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 14px;
    cursor: pointer;
}

.vcb-demo-next:hover {
    filter: brightness(1.06);
}

.vcb-demo-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vcb-demo-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vcb-demo-flabel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgb(20, 22, 26);
}

.vcb-demo-input,
.vcb-demo-textarea {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.4;
    color: rgb(20, 22, 26);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.vcb-demo-input:focus,
.vcb-demo-textarea:focus {
    outline: none;
    border-color: #0069ff;
    box-shadow: 0 0 0 2px rgba(0, 105, 255, 0.15);
}

.vcb-demo-guests-toggle {
    align-self: flex-start;
    border: 1px solid #0069ff;
    background: #fff;
    color: #0069ff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.vcb-demo-legal {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.vcb-demo-form-err {
    font-size: 12px;
    color: #dc2626;
    margin: 0;
}

.vcb-demo-submit {
    border: none;
    border-radius: 8px;
    background: #0069ff;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 16px;
    cursor: pointer;
}

.vcb-demo-submit:hover {
    filter: brightness(1.06);
}

.vcb-demo-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vcb-demo-step--thanks .vcb-demo-main-title {
    margin-bottom: 8px;
}

.vcb-demo-thanks-sub {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 16px;
}

.vcb-demo-thanks-close {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: rgb(20, 22, 26);
}

@media (min-width: 420px) {
    .vcb-demo-pick-split {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .vcb-demo-cal-col {
        flex: 1;
        min-width: 0;
    }

    .vcb-demo-slots-col {
        flex: 0 0 42%;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    #vitrine-chat-mount {
        right: 14px;
        bottom: 72px;
    }
    .vcb-panel {
        max-height: calc(100vh - 24px);
        height: min(
            900px,
            calc(100vh - 24px),
            max(440px, calc((100vh - 24px) * 0.82))
        );
    }
}
