/* Solutions Deck Styling
   Inherits from landing.css but adds specific pitch-deck structure
*/

html {
    scroll-behavior: smooth;
}

.solutions-page {
    background-color: var(--bg-surface);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.deck-container {
    max-width: 100vw;
    overflow-x: hidden;
}

.deck-slide {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}




/* Sections Backgrounds */
.section-alt {
    background: var(--bg-surface-alt);
}

.section-dark {
    background: #0f172a;
    color: white;
}

.section-dark h2 {
    color: white;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section-dark .label-sm {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.2);
}

.section-dark .label-accent {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid #3b82f6;
}

/* Typo tweaks for Deck */
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: center;
}

.solutions-page .label-sm {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 20px auto 20px;
    text-align: center;
}

/* Hero Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    transform: scale(1.1);
}

.scroll-indicator i {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    margin: -8px 0;
    opacity: 0;
    animation: chevron-flow 2s infinite ease-in-out;
}

.scroll-indicator i:nth-child(2) { animation-delay: 0.2s; }
.scroll-indicator i:nth-child(3) { animation-delay: 0.4s; }

@keyframes chevron-flow {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}



/* Layouts */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.copy-side {
    flex: 1;
}

.media-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: transform 0.3s;
}

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

.card.glass h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.mini-stat {
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: inline-block;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.bento-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.bento-lg {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.bento-item:hover .bento-icon {
    transform: scale(1.1) rotate(5deg);
}


.bento-icon.accent-green { color: #10b981; }
.bento-icon.accent-purple { color: #8b5cf6; }
.bento-icon.accent-red { color: #ef4444; }
.bento-icon.accent-orange { color: #f59e0b; }
.bento-icon.accent-blue { color: #3b82f6; }
.bento-icon.accent-gold { color: #fbbf24; }
.bento-icon.accent-pink { color: #ec4899; }


.bento-metric {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
}

.section-dark .bento-metric {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}


/* Specific elements mockups */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card.danger {
    background: rgba(239, 68, 68, 0.1);
}

.metric-card.success {
    background: rgba(16, 185, 129, 0.1);
}

.metric-val {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.danger .metric-val {
    color: #f87171;
}

.success .metric-val {
    color: #34d399;
}

.metric-lbl {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Animations & Mocks */
.simulation-box {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pulse-ring {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 40px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.sub-multiplier-mock {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--accent);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.sub-synergy-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.synergy-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    width: 260px;
    position: absolute;
    transition: all 0.4s ease;
}

.card-viewer {
    transform: translateX(-50px) scale(0.9);
    z-index: 1;
    opacity: 0.7;
}

.card-subscriber {
    transform: translateX(50px);
    z-index: 2;
    border: 2px solid #10b981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.bento-item:hover .card-viewer { transform: translateX(-70px) scale(0.85); }
.bento-item:hover .card-subscriber { transform: translateX(70px) scale(1.05); }

.synergy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.card-viewer .synergy-header { color: var(--text-muted); }
.card-subscriber .synergy-header { color: #10b981; }

.synergy-xp-bar {
    height: 6px;
    background: var(--bg-surface-alt);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.xp-progress {
    height: 100%;
    background: var(--accent);
}

.card-subscriber .xp-progress {
    background: linear-gradient(90deg, #10b981, #059669);
    width: 100% !important;
    animation: pulse-xp 2s infinite;
}

@keyframes pulse-xp {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.synergy-multiplier {
    font-size: 1.4rem;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: 0.02em;
    font-family: var(--font-heading, inherit);
}

.card-viewer .synergy-multiplier { color: var(--text-muted); }
.card-subscriber .synergy-multiplier { 
    color: #10b981;
}


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

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

.reward-box h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

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

.r-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-surface-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--accent);
    transition: transform 0.3s;
}

.reward-box:hover .r-icon {
    transform: scale(1.1);
    background: var(--accent);
    color: white;
}

.deck-slide h2+p,
.deck-slide h2+.section-desc {
    margin-top: 24px;
    margin-bottom: 32px;
}

.section-desc {
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}


/* Final CTA Section */
.section-cta {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    padding: 100px 0;
    overflow: hidden;
    color: white;
}

.section-cta h2 {
    color: white;
}


.cta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 48px;
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: btn-pulse 2s infinite;
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.6);
    color: white;
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
    }

    .grid-3,
    .rewards-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-auto-rows: auto;
    }

    .bento-lg {
        grid-column: span 1;
    }

    .deck-slide {
        padding: 60px 0;
        min-height: auto;
    }
}

/* ===================== Page Solutions (refonte) ===================== */
.sol-page { overflow-x: clip; }
.sol-hero { padding: 150px 0 72px; border-bottom: 1px solid var(--border-light); }
.sol-hero-title { font-size: clamp(34px, 4vw, 54px); line-height: 1.1; max-width: 900px; margin: 12px 0 20px; }
.sol-hero-desc { font-size: 18px; line-height: 1.6; color: var(--text-secondary); max-width: 680px; margin: 0 0 32px; }
.sol-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sol-actions--center { justify-content: center; }
.sol-actions .btn { white-space: nowrap; }

.sol-section { padding: 96px 0; border-bottom: 1px solid var(--border-light); }
.sol-section--alt { background: var(--bg-surface-alt); }
.sol-head { max-width: 760px; margin-bottom: 40px; }
.sol-section h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin: 10px 0 16px; }
.sol-lead { font-size: 17px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 20px; }

.sol-games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sol-game { background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.sol-game-media { position: relative; background: #0f172a; aspect-ratio: 16 / 9; }
.sol-game-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sol-game-src { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(15, 23, 42, 0.75); color: #e2e8f0; font-size: 11px; font-weight: 600; }
.sol-game-body { padding: 18px 20px 20px; }
.sol-game-body h3 { font-size: 20px; margin: 0 0 10px; }
.sol-game-body p { font-size: 14px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 6px; }
.sol-game-body strong { color: var(--text-primary); font-weight: 600; margin-right: 4px; }
.sol-game-body strong::after { content: " :"; }
html[lang="en"] .sol-game-body strong::after { content: ":"; }
.sol-game--more { padding: 24px; justify-content: center; gap: 12px; background: var(--bg-surface-alt); border-style: dashed; }
.sol-game--more h3 { font-size: 20px; margin: 0; }
.sol-more { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }

.sol-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.sol-split--text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.sol-figure { margin: 0; }
.sol-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.sol-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.sol-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-primary); text-decoration: none; }
.sol-link:hover { color: var(--accent); }

.sol-points { list-style: none; counter-reset: pt; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sol-points li { counter-increment: pt; display: flex; gap: 14px; align-items: baseline; padding: 16px 18px; border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--bg-surface); font-size: 15px; color: var(--text-primary); }
.sol-points li::before { content: counter(pt); font-family: var(--font-heading); font-weight: 700; color: var(--accent); }

.sol-steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sol-steps li { counter-increment: st; border-top: 2px solid var(--text-primary); padding-top: 16px; }
.sol-steps li::before { content: "0" counter(st); display: block; font-family: var(--font-heading); font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.sol-steps h3 { font-size: 18px; margin: 0 0 8px; }
.sol-steps p { font-size: 15px; line-height: 1.55; color: var(--text-secondary); margin: 0; }

.sol-cta { text-align: center; border-bottom: 0; }
.sol-cta h2 { margin-top: 0; }
.sol-cta p { font-size: 17px; color: var(--text-secondary); margin: 0 0 28px; }

/* Tarifs */
.sol-hero-pricing { align-self: center; margin-left: 8px; }
.sol-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sol-price { display: flex; flex-direction: column; padding: 24px; background: var(--bg-surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
.sol-price h3 { font-size: 18px; margin: 0 0 14px; }
.sol-price-for { align-self: flex-start; margin: 0 0 10px; padding: 3px 8px; border-radius: 6px; background: var(--bg-surface-alt); font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.sol-price-amount { margin: 0; font-family: var(--font-heading); font-size: 34px; font-weight: 700; line-height: 1.1; color: var(--text-primary); white-space: nowrap; }
.sol-price-from { font-family: var(--font-body, inherit); font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-right: 2px; }
.sol-price-unit { margin: 6px 0 18px; font-size: 14px; color: var(--text-secondary); min-height: 2.8em; }
.sol-price-list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-primary); }
.sol-price-list li { display: flex; gap: 10px; }
.sol-price-list li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 0.55em; border-radius: 50%; background: var(--accent); }
/* Activation de marque : bloc sombre pour marquer le sur-mesure */
.sol-price--custom { background: #0f172a; border-color: #0f172a; }
.sol-price--custom h3, .sol-price--custom .sol-price-amount, .sol-price--custom .sol-price-list { color: #f8fafc; }
.sol-price--custom .sol-price-unit { color: #94a3b8; }
.sol-price--custom .sol-price-for { background: rgba(248, 250, 252, 0.1); color: #cbd5e1; }
.sol-price--custom .sol-price-list { border-top-color: rgba(248, 250, 252, 0.15); }
.sol-addons { margin-top: 40px; max-width: 760px; }
.sol-addons h3 { font-size: 18px; margin: 0 0 4px; }
.sol-addons-unit { margin: 0 0 8px; font-size: 14px; color: var(--text-secondary); }
.sol-addon-list { list-style: none; margin: 0; padding: 0; }
.sol-addon-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border-light); font-size: 15px; color: var(--text-secondary); }
.sol-addon-list strong { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.sol-agency-line { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 16px; font-weight: 500; color: var(--text-primary); }

@media (max-width: 1024px) {
    .sol-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sol-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sol-split, .sol-split--text { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .sol-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .sol-hero { padding: 112px 0 56px; }
    .sol-section { padding: 64px 0; }
    .sol-games, .sol-steps, .sol-prices { grid-template-columns: minmax(0, 1fr); }
    .sol-price-unit { min-height: 0; }
    .sol-hero-pricing { margin-left: 0; }
}
