/* ==================== STANDALONE PAGES - PREMIUM DESIGN ==================== */

/* ===== KEYFRAMES ===== */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
    0%,100% { transform: scale(1); opacity: 0.5; }
    50%     { transform: scale(1.2); opacity: 0.8; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-80px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== HEADER SOLID ===== */
.header-solid {
    background: rgba(13, 10, 26, 0.97) !important;
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
}
.nav-link.active { color: var(--primary-light) !important; }
.nav-link.active::after { width: 100% !important; }

/* ===================================================================== */
/*  PAGE HERO                                                             */
/* ===================================================================== */
.sp-hero {
    position: relative;
    padding: 8rem 0 2.5rem;
    overflow: hidden;
    text-align: center;
}
.sp-hero-bg {
    position: absolute; inset: 0; z-index: 0;
}

/* ─── Animated mesh gradient for subpage heroes (Stripe-style) ── */
/* ─── Aurora canvas background ───────────────────────────── */
.sp-aurora-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.sp-hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 55% at 40% 45%, rgba(99,102,241,0.08) 0%, transparent 60%),
                radial-gradient(ellipse 50% 45% at 70% 30%, rgba(139,92,246,0.06) 0%, transparent 50%),
                linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
    pointer-events: none;
}

/* Subtle grid overlay */
.sp-hero-bg::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}

/* Vignette to keep edges dark */
.sp-hero-bg::before {
    content: '';
    position: absolute; inset: 0; z-index: 2;
    background: radial-gradient(ellipse 70% 65% at 50% 45%, transparent 30%, var(--bg-primary) 80%);
    pointer-events: none;
}

.sp-hero .container { position: relative; z-index: 5; }

.sp-hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    color: var(--primary-light);
    padding: 0.55rem 1.4rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.8rem;
    animation: heroFadeUp 0.6s ease both;
    backdrop-filter: blur(10px);
}
.sp-hero-badge i {
    font-size: 1rem;
    animation: spBadgeIconPulse 3s ease-in-out infinite;
}
@keyframes spBadgeIconPulse {
    0%,100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    25% { transform: scale(1.15) rotate(-5deg); opacity: 1; }
    50% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    75% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

.sp-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.15;
    color: var(--text-primary);
    max-width: 820px; margin: 0 auto 1.5rem;
    animation: heroFadeUp 0.7s ease 0.1s both;
}
.sp-hero-subtitle {
    font-size: 1.15rem; line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px; margin: 0 auto 2.5rem;
    animation: heroFadeUp 0.7s ease 0.2s both;
}
.sp-hero-actions {
    display: flex; gap: 1rem;
    justify-content: center; flex-wrap: wrap;
    animation: heroFadeUp 0.7s ease 0.3s both;
}

/* ===================================================================== */
/*  COMMENT ÇA MARCHE — Vertical Timeline                                */
/* ===================================================================== */
.ccm-timeline {
    padding: 6rem 0 4rem;
    position: relative;
}
.ccm-timeline-line {
    position: absolute; left: 50%; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
    transform: translateX(-50%);
    z-index: 0; opacity: 0.3;
}
.ccm-step {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: start;
    margin-bottom: 4rem;
    position: relative; z-index: 1;
}
.ccm-step:last-child { margin-bottom: 0; }

.ccm-dot {
    display: flex; align-items: center; justify-content: center;
    justify-self: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem; font-weight: 800;
    box-shadow: 0 4px 25px rgba(99,102,241,0.5);
    position: relative; z-index: 2;
    transition: transform 0.4s ease;
}
.ccm-step:hover .ccm-dot { transform: scale(1.15); }
.ccm-dot::after {
    content: '';
    position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.3);
    animation: breathe 3s ease-in-out infinite;
}

.ccm-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.ccm-content::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s ease;
}
.ccm-content:hover {
    border-color: rgba(99,102,241,0.35);
    box-shadow: 0 20px 60px rgba(99,102,241,0.08);
    transform: translateY(-4px);
}
.ccm-content:hover::before { transform: scaleX(1); }

.ccm-content h3 {
    font-size: 1.35rem; font-weight: 800;
    color: var(--text-primary); margin-bottom: 0.8rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.ccm-content h3 i { color: var(--primary); font-size: 1.1rem; }
.ccm-content > p {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 1.5rem;
}

.ccm-checklist {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.ccm-checklist li {
    display: flex; align-items: center; gap: 0.7rem;
    font-size: 0.93rem; color: var(--text-secondary);
}
.ccm-checklist li i {
    color: var(--success);
    font-size: 0.75rem;
    flex-shrink: 0;
    animation: ccmCheckPulse 2.5s ease-in-out infinite;
}
.ccm-checklist li:nth-child(2) i { animation-delay: 0.4s; }
.ccm-checklist li:nth-child(3) i { animation-delay: 0.8s; }
.ccm-checklist li:nth-child(4) i { animation-delay: 1.2s; }

@keyframes ccmCheckPulse {
    0%,100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.35); opacity: 1; filter: drop-shadow(0 0 4px rgba(16,185,129,0.5)); }
}

.ccm-stats-row {
    display: flex; gap: 1.5rem;
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}
.ccm-stat { text-align: center; flex: 1; }
.ccm-stat-value {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ccm-stat-label {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.ccm-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}
/* Particle canvas behind illustrations */
.ccm-particle-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}

/* ─── Timeline illustrations ─────────────────────────────────── */
.ccm-illus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 280px;
    transform: scale(1.35);
}

/* Step 1: Onboarding — 3 user icons appearing */
.ccm-illus-onboard {
    flex-direction: row;
    align-items: center;
    gap: 0;
}
.ccm-illus-onboard .ccm-illus-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(99,102,241,0.08);
    border: 1.5px solid rgba(99,102,241,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-left: -14px;
    opacity: 0;
    transform: translateY(15px) scale(0.8);
}
.ccm-illus-onboard .ccm-illus-icon:first-child { margin-left: 0; }
.ccm-step.active .ccm-illus-onboard .ccm-illus-icon {
    animation: ccmIconAppear 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
}
.ccm-step.active .ccm-illus-onboard .ccm-illus-icon:first-child { animation-delay: 0.3s; z-index: 3; }
.ccm-step.active .ccm-illus-onboard .ccm-illus-delay1 { animation-delay: 0.6s; z-index: 2; }
.ccm-step.active .ccm-illus-onboard .ccm-illus-delay2 { animation-delay: 0.9s; z-index: 1; }
.ccm-illus-onboard .ccm-illus-line {
    position: absolute;
    bottom: 50%; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.2), transparent);
    z-index: 0;
}

@keyframes ccmIconAppear {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Step 2: Gamification — Trophy + bars, all centered */
.ccm-illus-gamify {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}
.ccm-illus-trophy {
    font-size: 2.8rem;
    color: #f59e0b;
    filter: drop-shadow(0 0 15px rgba(245,158,11,0.35));
    animation: ccmTrophyFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
.ccm-illus-bars-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.ccm-illus-gamify .ccm-illus-bar {
    display: inline-block;
    width: 30px;
    border-radius: 4px 4px 0 0;
    background: var(--gradient-primary);
    opacity: 0.6;
    height: 0;
}
.ccm-step.active .ccm-illus-gamify .ccm-illus-bar {
    animation: ccmBarGrow 1.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.ccm-step.active .ccm-bar-1 { animation-delay: 0.4s; --target-h: 40px; }
.ccm-step.active .ccm-bar-2 { animation-delay: 0.6s; --target-h: 60px; }
.ccm-step.active .ccm-bar-3 { animation-delay: 0.8s; --target-h: 80px; }
.ccm-illus-sparkle {
    position: absolute;
    color: #fbbf24;
    font-size: 0.75rem;
    opacity: 0;
    animation: ccmSparkle 2s ease-in-out infinite;
}
.ccm-sp-1 { top: 15%; left: 20%; animation-delay: 0.5s; }
.ccm-sp-2 { top: 20%; right: 20%; animation-delay: 1.2s; }

@keyframes ccmTrophyFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes ccmBarGrow {
    to { height: var(--target-h); opacity: 1; }
}
@keyframes ccmSparkle {
    0%,100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Step 3: Chart — rising bars + trend arrow */
.ccm-illus-chart {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}
.ccm-illus-graph {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.ccm-graph-bar {
    width: 24px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(99,102,241,0.3) 100%);
    height: 0;
}
.ccm-step.active .ccm-graph-bar {
    animation: ccmChartGrow 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.ccm-step.active .ccm-gb-1 { animation-delay: 0.3s; --target-h: 30px; }
.ccm-step.active .ccm-gb-2 { animation-delay: 0.45s; --target-h: 48px; }
.ccm-step.active .ccm-gb-3 { animation-delay: 0.6s; --target-h: 40px; }
.ccm-step.active .ccm-gb-4 { animation-delay: 0.75s; --target-h: 62px; }
.ccm-step.active .ccm-gb-5 { animation-delay: 0.9s; --target-h: 80px; background: linear-gradient(180deg, var(--success) 0%, rgba(16,185,129,0.3) 100%); }

.ccm-illus-trend {
    color: var(--success);
    font-size: 1.8rem;
    opacity: 0;
    transform: translateX(-10px);
}
.ccm-step.active .ccm-illus-trend {
    animation: ccmTrendIn 0.6s cubic-bezier(0.16,1,0.3,1) 1.3s forwards;
}

@keyframes ccmChartGrow {
    to { height: var(--target-h); }
}
@keyframes ccmTrendIn {
    to { opacity: 1; transform: translateX(0); }
}

/* ─── Sectors shuffle animation ──────────────────────────────── */
.ccm-shuffle .ccm-sector-card {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}
.ccm-shuffle.active .ccm-sector-card {
    animation: ccmShuffleIn 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
/* Random-feeling delays via nth-child */
.ccm-shuffle .ccm-sector-card:nth-child(1)  { animation-delay: 0.05s; }
.ccm-shuffle .ccm-sector-card:nth-child(2)  { animation-delay: 0.35s; }
.ccm-shuffle .ccm-sector-card:nth-child(3)  { animation-delay: 0.15s; }
.ccm-shuffle .ccm-sector-card:nth-child(4)  { animation-delay: 0.50s; }
.ccm-shuffle .ccm-sector-card:nth-child(5)  { animation-delay: 0.10s; }
.ccm-shuffle .ccm-sector-card:nth-child(6)  { animation-delay: 0.40s; }
.ccm-shuffle .ccm-sector-card:nth-child(7)  { animation-delay: 0.25s; }
.ccm-shuffle .ccm-sector-card:nth-child(8)  { animation-delay: 0.55s; }
.ccm-shuffle .ccm-sector-card:nth-child(9)  { animation-delay: 0.20s; }
.ccm-shuffle .ccm-sector-card:nth-child(10) { animation-delay: 0.45s; }
.ccm-shuffle .ccm-sector-card:nth-child(11) { animation-delay: 0.30s; }
.ccm-shuffle .ccm-sector-card:nth-child(12) { animation-delay: 0.60s; }

@keyframes ccmShuffleIn {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ccm-step:nth-child(odd) .ccm-content { grid-column: 1; }
.ccm-step:nth-child(odd) .ccm-dot    { grid-column: 2; }
.ccm-step:nth-child(odd) .ccm-empty  { grid-column: 3; }
.ccm-step:nth-child(even) .ccm-empty  { grid-column: 1; }
.ccm-step:nth-child(even) .ccm-dot    { grid-column: 2; }
.ccm-step:nth-child(even) .ccm-content { grid-column: 3; }

/* ===================================================================== */
/*  FONCTIONNALITÉS — Alternating bento showcase                          */
/* ===================================================================== */
.feat-section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}
.feat-section:nth-child(even) { background: rgba(99,102,241,0.015); }
.feat-section::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}
.feat-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.feat-row.reverse { direction: rtl; }
.feat-row.reverse > * { direction: ltr; }

.feat-text { max-width: 520px; }
.feat-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary-soft); color: var(--primary-light);
    padding: 0.35rem 1rem; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}
.feat-tag i {
    font-size: 0.85rem;
    animation: spBadgeIconPulse 3s ease-in-out infinite;
}
.feat-text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800; color: var(--text-primary);
    margin-bottom: 1rem; line-height: 1.25;
}
.feat-text > p {
    font-size: 1.02rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 1.5rem;
}
.feat-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.7rem;
}
.feat-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6;
}
.feat-list li .feat-check-icon {
    width: 22px; height: 22px; flex-shrink: 0;
    border-radius: 50%; background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.feat-list li .feat-check-icon i { font-size: 0.6rem; color: var(--primary); }

/* ─── Check icon pulse animation ─────────────────────────── */
.feat-check-icon {
    animation: featCheckPulse 2.5s ease-in-out infinite;
}
.feat-list li:nth-child(2) .feat-check-icon { animation-delay: 0.4s; }
.feat-list li:nth-child(3) .feat-check-icon { animation-delay: 0.8s; }
@keyframes featCheckPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99,102,241,0.3); }
    50%      { transform: scale(1.2); box-shadow: 0 0 12px 3px rgba(99,102,241,0.15); }
}

/* ─── Animated gradient feature titles ───────────────────── */
.feat-gradient-title {
    background: linear-gradient(90deg, var(--primary), #a78bfa, #c084fc, var(--primary));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: featTitleGradient 6s linear infinite;
}
@keyframes featTitleGradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ─── Mouse-following background (fonctionnalites) ───────── */
.feat-mouse-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    transition: background 0.3s ease;
}

.feat-bento {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.feat-bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative; overflow: hidden;
}
.feat-bento-card::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0); transition: transform 0.4s ease;
}
.feat-bento-card:hover {
    border-color: rgba(99,102,241,0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.feat-bento-card:hover::before { transform: scaleX(1); }
.feat-bento-card.span-2 { grid-column: span 2; }

.feat-bento-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--primary);
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
}
.feat-bento-card:hover .feat-bento-icon {
    background: var(--gradient-primary); color: white; transform: scale(1.05);
}
.feat-bento-card h4 {
    font-size: 0.92rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 0.3rem;
}
.feat-bento-card p {
    font-size: 0.8rem; color: var(--text-muted); line-height: 1.5;
}

/* ===================================================================== */
/*  PRODUITS HUB                                                          */
/* ===================================================================== */
.prod-grid-section { padding: 2rem 0 4rem; }
.prod-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.prod-card {
    display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-decoration: none; color: inherit;
    overflow: hidden;
    transition: all 0.55s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}
.prod-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0); transition: transform 0.5s ease;
}
.prod-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99,102,241,0.45);
    box-shadow: 0 30px 80px rgba(99,102,241,0.12);
}
.prod-card:hover::before { transform: scaleX(1); }

.prod-card-top { padding: 2.5rem 2rem 0; }
.prod-card-icon-wrap {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary);
    margin-bottom: 1.5rem; transition: all 0.4s ease;
}
.prod-card:hover .prod-card-icon-wrap {
    background: var(--gradient-primary); color: white;
    transform: scale(1.06) rotate(-4deg);
    box-shadow: 0 8px 30px rgba(99,102,241,0.35);
}
.prod-card-top h3 {
    font-size: 1.35rem; font-weight: 800; color: var(--text-primary);
    margin-bottom: 0.3rem;
}
.prod-card-tag {
    font-size: 0.78rem; color: var(--primary-light);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.prod-card-body {
    padding: 1.5rem 2rem 2.5rem; flex: 1;
    display: flex; flex-direction: column;
}
.prod-card-body > p {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.75; margin-bottom: 1.5rem;
}
.prod-card-features {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.5rem;
    margin-bottom: 2rem; flex: 1;
}
.prod-card-features li {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.88rem; color: var(--text-secondary);
}
.prod-card-features li i { color: var(--success); font-size: 0.7rem; }
.prod-card-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--primary-light); font-weight: 700; font-size: 0.95rem;
    transition: all 0.3s ease;
}
.prod-card:hover .prod-card-link { gap: 0.9rem; }

/* Why us */
.why-grid {
    text-align: center;
    padding: 4rem 0;
    background: rgba(99,102,241,0.02);
    position: relative;
}
.why-grid::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0.3;
}
.why-cards {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
    max-width: 860px; margin: 0 auto;
}
.why-card {
    text-align: left;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: 2rem;
    transition: all 0.4s ease;
    position: relative; overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0); transition: transform 0.4s ease;
}
.why-card:hover {
    border-color: rgba(99,102,241,0.3); transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.12);
}
.why-card:hover::before { transform: scaleX(1); }
.why-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--primary-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: var(--primary);
    margin-bottom: 1.25rem; transition: all 0.4s ease;
}
.why-card:hover .why-card-icon { background: var(--gradient-primary); color: white; }
.why-card h3 {
    font-size: 1.1rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 0.5rem;
}
.why-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* Shared section header */
.sp-section-header { text-align: center; margin-bottom: 4rem; }
.sp-section-header .section-badge {
    display: inline-block;
    background: var(--primary-soft); border: 1px solid var(--border-color);
    color: var(--primary-light);
    padding: 0.4rem 1.2rem; border-radius: 50px;
    font-size: 0.82rem; font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase; letter-spacing: 1px;
}

/* CTA */
.sp-cta { padding: 5rem 0 6rem; }
.sp-cta-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); padding: 4rem 3rem;
    text-align: center; position: relative; overflow: hidden;
    transition: all 0.5s ease;
}
.sp-cta-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
}
.sp-cta-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: 0 20px 60px rgba(99,102,241,0.08);
}
.sp-cta-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: white;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}
.sp-cta-card h2 {
    font-size: 1.6rem; font-weight: 800;
    color: var(--text-primary); margin-bottom: 0.75rem;
    max-width: 550px; margin-left: auto; margin-right: auto;
}
.sp-cta-card > p {
    font-size: 1rem; color: var(--text-secondary);
    max-width: 500px; margin: 0 auto 2rem; line-height: 1.7;
}
.sp-cta-actions {
    display: flex; gap: 1rem;
    justify-content: center; flex-wrap: wrap;
}

/* ===================================================================== */
/*  RESPONSIVE                                                            */
/* ===================================================================== */
@media (max-width: 1024px) {
    .ccm-step {
        grid-template-columns: 60px 1fr; gap: 0 1.5rem;
    }
    .ccm-step:nth-child(odd) .ccm-content,
    .ccm-step:nth-child(even) .ccm-content { grid-column: 2; }
    .ccm-step:nth-child(odd) .ccm-dot,
    .ccm-step:nth-child(even) .ccm-dot { grid-column: 1; }
    .ccm-empty { display: none; }
    .ccm-timeline-line { left: 30px; }

    .feat-row, .feat-row.reverse {
        grid-template-columns: 1fr; gap: 2.5rem; direction: ltr;
    }
    .prod-cards { grid-template-columns: 1fr; }
    .why-cards {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto; grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sp-hero { padding: 8.5rem 0 4rem; }
    .sp-hero h1 { font-size: 2rem; }
    .sp-hero-subtitle { font-size: 1rem; }
    .sp-hero-actions { flex-direction: column; align-items: stretch; }

    .ccm-step { grid-template-columns: 48px 1fr; gap: 0 1rem; margin-bottom: 2.5rem; }
    .ccm-dot { width: 44px; height: 44px; font-size: 1rem; }
    .ccm-content { padding: 1.75rem; }
    .ccm-content h3 { font-size: 1.15rem; }
    .ccm-timeline-line { left: 24px; }

    .feat-bento { grid-template-columns: 1fr; }
    .feat-bento-card.span-2 { grid-column: span 1; }
    .feat-text h2 { font-size: 1.4rem; }

    .sp-cta-card { padding: 3rem 1.5rem; }
    .sp-cta-card h2 { font-size: 1.3rem; }
    .sp-cta-actions { flex-direction: column; align-items: stretch; }
}

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

/* ===================================================================== */
/*  SECTEURS — integrated into Comment ça marche                          */
/* ===================================================================== */
.ccm-sectors {
    padding: 6rem 0;
    position: relative;
    background: rgba(99,102,241,0.015);
}
.ccm-sectors::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.ccm-sectors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.ccm-sector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.ccm-sector-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--sc, var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.ccm-sector-card:hover {
    border-color: var(--sc, var(--primary));
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.ccm-sector-card:hover::before { transform: scaleX(1); }

.ccm-sector-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(99,102,241,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--sc, var(--primary));
    font-size: 1.1rem;
    transition: all 0.4s ease;
}
.ccm-sector-card:hover .ccm-sector-icon {
    background: var(--sc, var(--primary));
    color: white;
    transform: scale(1.08);
}

.ccm-sector-card h4 {
    font-size: 0.9rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}
.ccm-sector-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .ccm-sectors-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .ccm-sectors-grid { grid-template-columns: repeat(3, 1fr); }
    .ccm-sector-card { padding: 1.25rem 0.75rem; }
}
@media (max-width: 480px) {
    .ccm-sectors-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Fix footer grid for pages without newsletter (3 children instead of 4) */
.footer .footer-grid-simple {
    grid-template-columns: 2fr 1fr 1fr !important;
}

/* ═══════════════════════════════════════════════════════════
   HOVER CARDS — replaces inline onmouseover/onmouseout
   ═══════════════════════════════════════════════════════════ */
.hover-card {
    transition: all 0.4s ease;
}
.hover-card:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15) !important;
}
