/**
 * Ad Lunam - Styles Landing Page
 * =============================================================================
 */

/* -----------------------------------------------------------------------------
 * Variables
 * -------------------------------------------------------------------------- */
:root {
    --adlunam-deep-space: #050810;
    --adlunam-moon-gold: #fbbf24;
    --adlunam-moon-gold-light: #fcd34d;
    --adlunam-moon-white: #f8fafc;
    --adlunam-error-red: #ef4444;
    --adlunam-success-green: #22c55e;
    --adlunam-slate: #64748b;
    --adlunam-slate-dark: #334155;
}

/* -----------------------------------------------------------------------------
 * Calculator
 * -------------------------------------------------------------------------- */
.adlunam-calculator {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    font-family: var(--e-global-typography-primary-font-family), 'Space Grotesk', sans-serif;
}

/* Slider Container */
.calc-slider-container {
    margin-bottom: 2.5rem;
    text-align: center;
}

.calc-label {
    display: block;
    font-size: 0.875rem;
    color: var(--adlunam-slate);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Custom Slider */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(
        to right,
        var(--adlunam-moon-gold) 0%,
        var(--adlunam-moon-gold) var(--slider-percent, 50%),
        var(--adlunam-slate-dark) var(--slider-percent, 50%),
        var(--adlunam-slate-dark) 100%
    );
    outline: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--adlunam-moon-gold);
    cursor: pointer;
    border: 3px solid var(--adlunam-deep-space);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.7);
}

.calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--adlunam-moon-gold);
    cursor: pointer;
    border: 3px solid var(--adlunam-deep-space);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.7);
}

.calc-slider-value {
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--adlunam-moon-white);
}

.calc-slider-value span {
    color: var(--adlunam-moon-gold);
}

/* Boxes Container */
.calc-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

/* Box Base */
.calc-box {
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.calc-box:hover {
    transform: translateY(-2px);
}

.calc-box-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Box Today (erreur/perte) */
.calc-box-today {
    border-color: rgba(239, 68, 68, 0.3);
}

.calc-box-today .calc-box-title {
    color: var(--adlunam-error-red);
}

.calc-box-today:hover {
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.1);
}

/* Box Ad Lunam (succès) */
.calc-box-adlunam {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.1);
}

.calc-box-adlunam .calc-box-title {
    color: var(--adlunam-moon-gold);
}

.calc-box-adlunam:hover {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.2);
}

/* Stats */
.calc-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
}

.calc-stat:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-stat-label {
    font-size: 0.875rem;
    color: var(--adlunam-slate);
}

.calc-stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--adlunam-moon-white);
}

.calc-stat-value small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--adlunam-slate);
}

/* Stat Lost (rouge) */
.calc-stat-lost .calc-stat-value {
    color: var(--adlunam-error-red);
}

/* Stat Recovered (gold) */
.calc-stat-recovered .calc-stat-value {
    color: var(--adlunam-moon-gold);
}

/* Badge Amélioration */
.calc-improvement {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--adlunam-deep-space);
    background: linear-gradient(135deg, var(--adlunam-moon-gold), var(--adlunam-moon-gold-light));
    border-radius: 4px;
}

/* Punchline */
.calc-punchline {
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-style: italic;
    color: var(--adlunam-slate);
    border-left: 3px solid var(--adlunam-moon-gold);
    background: rgba(251, 191, 36, 0.05);
    border-radius: 0 8px 8px 0;
}

.calc-punchline strong {
    color: var(--adlunam-moon-gold);
    font-style: normal;
}

/* Note de transparence */
.calc-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--adlunam-slate);
    margin: 1rem 0 0 0;
    font-style: italic;
    opacity: 0.8;
}

/* -----------------------------------------------------------------------------
 * OLD Stack Schema (backup)
 * -------------------------------------------------------------------------- */
.stack-schema-old {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: var(--e-global-typography-primary-font-family), 'Space Grotesk', sans-serif;
}

/* -----------------------------------------------------------------------------
 * Process Timeline
 * -------------------------------------------------------------------------- */
.process-timeline {
    position: relative;
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
    font-family: var(--e-global-typography-primary-font-family), 'Space Grotesk', sans-serif;
}

.process-line {
    position: absolute;
    top: 64px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 2px;
}

.process-line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--adlunam-moon-gold) 0%, #f59e0b 100%);
    border-radius: 2px;
    transition: width 1.2s ease-out;
}

.process-line-fill.animated {
    width: 100%;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.process-step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.process-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--adlunam-moon-gold) 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--adlunam-deep-space);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.process-icon {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1;
}

.process-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--adlunam-moon-white);
    margin: 0 0 8px 0;
}

.process-desc {
    font-size: 14px;
    color: var(--adlunam-slate);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.process-time {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--adlunam-moon-gold);
    font-weight: 600;
}

@media (max-width: 767px) {
    .process-timeline {
        padding: 20px 0 20px 60px;
    }
    .process-line {
        left: 24px;
        right: auto;
        top: 20px;
        bottom: 20px;
        width: 3px;
        height: auto;
    }
    .process-line-fill {
        width: 100%;
        height: 0%;
        transition: height 1.2s ease-out;
    }
    .process-line-fill.animated {
        width: 100%;
        height: 100%;
    }
    .process-steps {
        flex-direction: column;
        gap: 32px;
    }
    .process-step {
        text-align: left;
        padding: 0;
        position: relative;
    }
    .process-number {
        position: absolute;
        left: -60px;
        top: 0;
        margin: 0;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* -----------------------------------------------------------------------------
 * FAQ Chat
 * -------------------------------------------------------------------------- */
.faq-chat {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--e-global-typography-primary-font-family), 'Space Grotesk', sans-serif;
}

.faq-item {
    margin-bottom: 16px;
    max-width: 85%;
}

.faq-question {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px 20px 20px 4px;
    padding: 20px 28px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(251, 191, 36, 0.1) 100%);
}

.faq-question.active {
    background: linear-gradient(135deg, var(--adlunam-moon-gold) 0%, #f59e0b 100%);
}

.faq-question.active .faq-q-text {
    color: var(--adlunam-deep-space);
}

.faq-q-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--adlunam-moon-gold);
}

.faq-q-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.faq-answer {
    display: none;
    margin-top: 12px;
    margin-left: 40px;
    padding: 20px 24px;
    background: linear-gradient(150deg, rgba(15, 23, 42, 0.9) 0%, rgba(20, 27, 45, 0.95) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 4px 20px 20px 20px;
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

.faq-answer.active {
    display: block;
}

.faq-item:nth-child(even) {
    text-align: right;
    margin-left: auto;
}

.faq-item:nth-child(even) .faq-question {
    border-radius: 20px 20px 4px 20px;
}

.faq-item:nth-child(even) .faq-answer {
    margin-left: 0;
    margin-right: 40px;
    border-radius: 20px 4px 20px 20px;
    text-align: left;
}

@media (max-width: 767px) {
    .faq-item {
        max-width: 100%;
    }
    .faq-item:nth-child(even) {
        text-align: left;
        margin-left: 0;
    }
    .faq-question {
        padding: 16px 20px;
    }
    .faq-q-text {
        font-size: 15px;
    }
    .faq-answer {
        margin-left: 20px;
        padding: 16px 20px;
        font-size: 14px;
    }
}

/* -----------------------------------------------------------------------------
 * GSAP Animations - États initiaux
 * -------------------------------------------------------------------------- */
.anim-fade-up,
.anim-fade-in,
.anim-scale-in {
    opacity: 0;
}

.anim-fade-up {
    transform: translateY(40px);
}

.anim-scale-in {
    transform: scale(0.9);
}

.calc-slider-container,
.calc-box,
.calc-punchline,
.faq-item {
    opacity: 0;
}

.no-js .anim-fade-up,
.no-js .anim-fade-in,
.no-js .anim-scale-in,
.no-js .calc-slider-container,
.no-js .calc-box,
.no-js .calc-punchline,
.no-js .faq-item,
.anim-fade-up.anim-done,
.anim-fade-in.anim-done,
.anim-scale-in.anim-done {
    opacity: 1;
    transform: none;
}

.elementor-editor-active .anim-fade-up,
.elementor-editor-active .anim-fade-in,
.elementor-editor-active .anim-scale-in,
.elementor-editor-active .calc-slider-container,
.elementor-editor-active .calc-box,
.elementor-editor-active .calc-punchline,
.elementor-editor-active .faq-item {
    opacity: 1 !important;
    transform: none !important;
}

/* =============================================================================
 * STACK SCHEMA V2 — Layout 3 colonnes + Sidebar/Focus au clic
 * 6 blocs : [GTM, GA4, GSC] | [Dashboard + RGPD] | [BigQuery, Ads, A/B]
 * ============================================================================= */

/* -----------------------------------------------------------------------------
 * Variables & Container — LARGE LAYOUT
 * -------------------------------------------------------------------------- */
.stack-v2 {
    --stack-gold: #fbbf24;
    --stack-gold-light: #fcd34d;
    --stack-gold-dark: #f59e0b;
    --stack-deep: #050810;
    --stack-surface: rgba(12, 17, 32, 0.95);
    --stack-surface-light: rgba(20, 28, 50, 0.98);
    --stack-border: rgba(148, 163, 184, 0.15);
    --stack-text: #e2e8f0;
    --stack-text-muted: #94a3b8;
    --stack-rgpd: #8b5cf6;
    --card-width: 180px;
    --card-height: 155px;

    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    font-family: var(--e-global-typography-primary-font-family), 'Space Grotesk', sans-serif;
}

/* Reset Elementor paragraph margins inside stack */
.stack-v2 p,
.stack-v2 .stack-v2__subtitle,
.stack-v2 .stack-v2__panel-text {
    margin: 0 !important;
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

/* -----------------------------------------------------------------------------
 * Grid Layout — 3 colonnes, Dashboard + RGPD = 100% hauteur centre
 * -------------------------------------------------------------------------- */
.stack-v2__grid {
    display: grid;
    grid-template-columns: var(--card-width) 1fr var(--card-width);
    gap: 24px;
    align-items: stretch;
    min-height: 500px;
}

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

.stack-v2__column--left,
.stack-v2__column--right {
    align-items: center;
    justify-content: center;
}

.stack-v2__column--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

/* -----------------------------------------------------------------------------
 * Nodes — Cards plus grandes
 * -------------------------------------------------------------------------- */
.stack-v2__node {
    position: relative;
    cursor: pointer;
    outline: none;
    width: var(--card-width);
    height: var(--card-height);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stack-v2__node-inner {
    background: var(--stack-surface);
    border: 1px solid var(--stack-border);
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    box-sizing: border-box;
}

.stack-v2__node:hover .stack-v2__node-inner {
    transform: translateY(-4px);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 191, 36, 0.12);
}

/* Dashboard — GRAND, pilier central */
.stack-v2__node--dashboard {
    width: 100%;
    max-width: 380px;
    height: auto;
    flex: 1;
    min-height: 280px;
}

.stack-v2__node--dashboard .stack-v2__node-inner {
    background: linear-gradient(150deg, rgba(52, 168, 83, 0.12), rgba(30, 120, 60, 0.22));
    border-color: rgba(52, 168, 83, 0.4);
    padding: 28px 24px;
    justify-content: flex-start;
    gap: 12px;
}

.stack-v2__node--dashboard:hover .stack-v2__node-inner {
    border-color: rgba(52, 168, 83, 0.7);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3), 0 0 30px rgba(52, 168, 83, 0.18);
}

/* Dashboard features badges */
.stack-v2__dashboard-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.stack-v2__dashboard-features span {
    background: rgba(52, 168, 83, 0.2);
    border: 1px solid rgba(52, 168, 83, 0.4);
    color: rgba(52, 168, 83, 1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* RGPD Text - sous le dashboard, sans box */
.stack-v2__rgpd-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    height: 130px;
    text-align: center;
}

.stack-v2__rgpd-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--stack-rgpd), #7c3aed);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stack-v2__rgpd-icon svg {
    color: white;
}

.stack-v2__rgpd-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.stack-v2__rgpd-content strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--stack-rgpd);
}

.stack-v2__rgpd-content span {
    font-size: 12px;
    color: var(--stack-text-muted);
    line-height: 1.4;
}

/* -----------------------------------------------------------------------------
 * EXPANDED STATE — Sidebar (7 éléments en 1 colonne) + Focus à droite
 * -------------------------------------------------------------------------- */

/* Container GARDE sa largeur complète quand expanded */
.stack-v2.has-expanded {
    position: relative;
    width: 100%;
    min-height: 420px;
}

/* Grid devient LA SIDEBAR - 170px de large, colonnes empilées verticalement */
.stack-v2.has-expanded .stack-v2__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 170px;
    min-height: 400px;
    position: static;
}

/* Colonnes deviennent transparentes - juste des conteneurs pour les nodes */
.stack-v2.has-expanded .stack-v2__column {
    display: contents;
}

/* Mini cards - Layout HORIZONTAL (icône à gauche, texte à droite) */
.stack-v2.has-expanded .stack-v2__node:not(.is-expanded) {
    position: static;
    width: 170px;
    height: 48px;
    flex-shrink: 0;
    order: var(--node-order, 0);
}

/* Ordre des nodes dans la sidebar */
.stack-v2.has-expanded .stack-v2__node[data-node="gtm"]:not(.is-expanded) { order: 1; }
.stack-v2.has-expanded .stack-v2__node[data-node="ga4"]:not(.is-expanded) { order: 2; }
.stack-v2.has-expanded .stack-v2__node[data-node="gsc"]:not(.is-expanded) { order: 3; }
.stack-v2.has-expanded .stack-v2__node[data-node="looker"]:not(.is-expanded) { order: 4; }
.stack-v2.has-expanded .stack-v2__node[data-node="bigquery"]:not(.is-expanded) { order: 5; }
.stack-v2.has-expanded .stack-v2__node[data-node="ads"]:not(.is-expanded) { order: 6; }
.stack-v2.has-expanded .stack-v2__node[data-node="ab"]:not(.is-expanded) { order: 7; }

.stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__node-inner {
    flex-direction: row;
    padding: 8px 12px;
    gap: 10px;
    text-align: left;
    justify-content: flex-start;
    align-items: center;
}

.stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__icon svg {
    width: 16px;
    height: 16px;
}

.stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__title {
    font-size: 11px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__subtitle,
.stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__dashboard-features {
    display: none;
}

.stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__badge {
    font-size: 7px;
    padding: 2px 6px;
    top: -4px;
    right: -4px;
}

/* Dashboard mini - même style que les autres dans la sidebar */
.stack-v2.has-expanded .stack-v2__node--dashboard:not(.is-expanded) {
    width: 170px;
    height: 48px;
    max-width: none;
    min-height: 0;
    flex: none;
}

.stack-v2.has-expanded .stack-v2__node--dashboard:not(.is-expanded) .stack-v2__node-inner {
    background: var(--stack-surface);
    border-color: rgba(52, 168, 83, 0.4);
    padding: 8px 12px;
    flex-direction: row;
    gap: 10px;
}

.stack-v2.has-expanded .stack-v2__node--dashboard:not(.is-expanded) .stack-v2__icon {
    width: 32px;
    height: 32px;
}

.stack-v2.has-expanded .stack-v2__node--dashboard:not(.is-expanded) .stack-v2__icon svg {
    width: 16px;
    height: 16px;
}

/* Hide RGPD when expanded */
.stack-v2.has-expanded .stack-v2__rgpd-text {
    display: none;
}

/* ==========================================================================
   FOCUS CARD — Design aéré, prend tout l'espace à droite de la sidebar
   ========================================================================== */
.stack-v2__node.is-expanded {
    position: absolute !important;
    left: 200px;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(100% - 200px) !important;
    height: 100% !important;
    min-height: 400px;
    z-index: 10;
    box-sizing: border-box;
}

/* Inner prend TOUTE la largeur disponible */
.stack-v2__node.is-expanded .stack-v2__node-inner {
    width: 100% !important;
    height: 100%;
    padding: 32px 40px;
    background: var(--stack-surface);
    border: 1px solid var(--stack-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    overflow: visible;
    box-sizing: border-box;
    gap: 16px;
}

/* Header de la focus card */
.stack-v2__node.is-expanded .stack-v2__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
}

.stack-v2__node.is-expanded .stack-v2__icon svg {
    width: 28px;
    height: 28px;
}

.stack-v2__node.is-expanded .stack-v2__title {
    font-size: 26px;
    color: var(--stack-gold);
    margin-bottom: 8px;
    line-height: 1.2;
}

.stack-v2__node.is-expanded .stack-v2__subtitle {
    font-size: 15px;
    display: block;
    -webkit-line-clamp: unset;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    color: var(--stack-text);
    line-height: 1.6;
    max-width: 100%;
    margin-block-end: 0 !important; /* Override Elementor */
}

/* Dashboard expanded - couleur verte */
.stack-v2__node--dashboard.is-expanded .stack-v2__title {
    color: rgba(52, 168, 83, 1);
}

/* -----------------------------------------------------------------------------
 * Close button
 * -------------------------------------------------------------------------- */
.stack-v2__close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.stack-v2__node.is-expanded .stack-v2__close {
    display: flex;
}

.stack-v2__close:hover {
    background: rgba(251, 191, 36, 0.3);
}

.stack-v2__close svg {
    width: 16px;
    height: 16px;
    color: var(--stack-text-muted);
}

.stack-v2__close:hover svg {
    color: var(--stack-gold);
}

/* -----------------------------------------------------------------------------
 * Badges (Server-Side)
 * -------------------------------------------------------------------------- */
.stack-v2__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--stack-gold), var(--stack-gold-dark));
    color: var(--stack-deep);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 3px 12px rgba(251, 191, 36, 0.5);
    z-index: 5;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Badge quand expanded */
.stack-v2__node.is-expanded .stack-v2__badge {
    top: 16px;
    right: 60px;
    font-size: 10px;
    padding: 5px 12px;
}

/* -----------------------------------------------------------------------------
 * Icons — Plus grands
 * -------------------------------------------------------------------------- */
.stack-v2__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stack-v2__icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* Dashboard icon encore plus grand */
.stack-v2__node--dashboard .stack-v2__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 16px;
}

.stack-v2__node--dashboard .stack-v2__icon svg {
    width: 34px;
    height: 34px;
}

/* Expanded mode */
.stack-v2__node.is-expanded .stack-v2__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    margin-right: 16px;
}

.stack-v2__node.is-expanded .stack-v2__icon svg {
    width: 26px;
    height: 26px;
}

/* Icon colors */
.stack-v2__icon--gtm { background: linear-gradient(135deg, #4285f4, #3367d6); }
.stack-v2__icon--ga4 { background: linear-gradient(135deg, #ea8600, #c77000); }
.stack-v2__icon--gsc { background: linear-gradient(135deg, #ea4335, #c5362a); }
.stack-v2__icon--bigquery { background: linear-gradient(135deg, #669df6, #4285f4); }
.stack-v2__icon--looker { background: linear-gradient(135deg, #34a853, #2d8f47); }
.stack-v2__icon--ads { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.stack-v2__icon--ads svg { color: var(--stack-deep); }
.stack-v2__icon--ab { background: linear-gradient(135deg, #ec4899, #db2777); }

/* -----------------------------------------------------------------------------
 * Titles — Plus grands
 * -------------------------------------------------------------------------- */
.stack-v2__title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--stack-text);
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.stack-v2__subtitle {
    margin: 0;
    margin-block-end: 0 !important; /* Override Elementor */
    font-size: 12px;
    color: var(--stack-text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Dashboard titles - encore plus grand */
.stack-v2__node--dashboard .stack-v2__title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.stack-v2__node--dashboard .stack-v2__subtitle {
    font-size: 14px;
    -webkit-line-clamp: unset;
}

/* -----------------------------------------------------------------------------
 * Panel — Content that shows when expanded
 * -------------------------------------------------------------------------- */
.stack-v2__panel {
    display: none;
    width: 100%;
    text-align: left;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stack-v2__node.is-expanded .stack-v2__panel {
    display: block;
}

.stack-v2__panel-headline {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--stack-text);
    line-height: 1.4;
}

.stack-v2__panel-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: var(--stack-text-muted);
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.stack-v2__panel-list {
    margin: 0 0 16px 0;
    padding: 0;
    list-style: none;
}

.stack-v2__panel-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--stack-text);
    line-height: 1.5;
}

.stack-v2__panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--stack-gold);
    border-radius: 50%;
}

.stack-v2__panel-result {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--stack-gold-light);
    line-height: 1.5;
}

.stack-v2__panel-result-icon {
    font-size: 16px;
    font-weight: 700;
    color: var(--stack-gold);
    flex-shrink: 0;
}


/* -----------------------------------------------------------------------------
 * Mobile hint
 * -------------------------------------------------------------------------- */
.stack-v2__hint {
    display: none;
    text-align: center;
    font-size: 11px;
    color: var(--stack-text-muted);
    margin-top: 12px;
    opacity: 0.5;
}

/* -----------------------------------------------------------------------------
 * Responsive — Tablet (900px)
 * -------------------------------------------------------------------------- */
@media (max-width: 950px) {
    .stack-v2 {
        --card-width: 140px;
        --card-height: 130px;
    }

    .stack-v2__grid {
        gap: 16px;
        min-height: 450px;
    }

    .stack-v2__node--dashboard {
        max-width: 300px;
        min-height: 240px;
    }

    .stack-v2__node--dashboard .stack-v2__title {
        font-size: 18px;
    }

    .stack-v2__node--dashboard .stack-v2__icon {
        width: 52px;
        height: 52px;
    }

    .stack-v2__title {
        font-size: 13px;
    }

    .stack-v2__subtitle {
        font-size: 11px;
    }

    .stack-v2__rgpd-text {
        height: 110px;
        padding: 12px 16px;
    }

    .stack-v2__rgpd-content strong {
        font-size: 13px;
    }

    .stack-v2__rgpd-content span {
        font-size: 11px;
    }
}

/* -----------------------------------------------------------------------------
 * Responsive — Small Tablet (700px)
 * -------------------------------------------------------------------------- */
@media (max-width: 750px) {
    .stack-v2 {
        --card-width: 120px;
        --card-height: 115px;
        padding: 1.5rem 1rem;
    }

    .stack-v2__grid {
        gap: 12px;
        min-height: 400px;
    }

    .stack-v2__node--dashboard {
        max-width: 250px;
        min-height: 200px;
    }

    .stack-v2__node--dashboard .stack-v2__title {
        font-size: 16px;
    }

    .stack-v2__dashboard-features span {
        font-size: 9px;
        padding: 3px 8px;
    }

    .stack-v2__icon {
        width: 36px;
        height: 36px;
    }

    .stack-v2__icon svg {
        width: 18px;
        height: 18px;
    }

    .stack-v2__title {
        font-size: 12px;
    }

    .stack-v2__subtitle {
        font-size: 10px;
    }

    .stack-v2__rgpd-text {
        height: 100px;
    }
}

/* -----------------------------------------------------------------------------
 * Responsive — Mobile
 * -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .stack-v2 {
        --card-width: 100%;
        --card-height: auto;
        padding: 1rem 0.75rem;
    }

    .stack-v2__grid {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: auto;
    }

    .stack-v2__column {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .stack-v2__column--center {
        order: -1;
        flex-direction: column;
    }

    .stack-v2__node {
        width: 105px;
        height: 105px;
    }

    .stack-v2__node--dashboard {
        width: 100%;
        max-width: none;
        min-height: 160px;
        flex: none;
    }

    .stack-v2__node.is-expanded {
        width: 100%;
        min-height: 280px;
    }

    .stack-v2__icon {
        width: 34px;
        height: 34px;
    }

    .stack-v2__icon svg {
        width: 17px;
        height: 17px;
    }

    .stack-v2__title {
        font-size: 12px;
    }

    .stack-v2__subtitle {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }

    .stack-v2__node--dashboard .stack-v2__title {
        font-size: 16px;
    }

    .stack-v2__node--dashboard .stack-v2__icon {
        width: 44px;
        height: 44px;
    }

    .stack-v2__dashboard-features {
        gap: 6px;
    }

    .stack-v2__dashboard-features span {
        font-size: 9px;
        padding: 3px 7px;
    }

    .stack-v2__rgpd-text {
        height: auto;
        padding: 14px 16px;
    }

    .stack-v2__node.is-expanded .stack-v2__title {
        font-size: 18px;
    }

    .stack-v2__panel-headline {
        font-size: 15px;
    }

    .stack-v2__panel-text,
    .stack-v2__panel-list li {
        font-size: 13px;
    }

    /* Expanded on mobile - grid devient row wrap, expanded card en haut */
    .stack-v2.has-expanded .stack-v2__grid {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        min-height: auto;
        gap: 8px;
        justify-content: center;
    }

    /* Colonnes restent en display:contents sur mobile aussi */
    .stack-v2.has-expanded .stack-v2__column {
        display: contents;
    }

    .stack-v2.has-expanded .stack-v2__node:not(.is-expanded) {
        width: 55px;
        height: 50px;
    }

    .stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__node-inner {
        flex-direction: column;
        padding: 6px;
        gap: 3px;
    }

    .stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__icon {
        width: 24px;
        height: 24px;
    }

    .stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__icon svg {
        width: 13px;
        height: 13px;
    }

    .stack-v2.has-expanded .stack-v2__node:not(.is-expanded) .stack-v2__title {
        font-size: 7px;
    }

    .stack-v2__node.is-expanded {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        min-height: 300px;
        order: -1;
        margin-bottom: 12px;
    }

    .stack-v2__hint {
        display: block;
    }
}

/* -----------------------------------------------------------------------------
 * GSAP States
 * -------------------------------------------------------------------------- */
.stack-v2__node {
    opacity: 1;
}

.stack-v2.js-ready .stack-v2__node {
    opacity: 0;
}

.elementor-editor-active .stack-v2__node {
    opacity: 1 !important;
    transform: none !important;
}

.elementor-editor-active .stack-v2__panel {
    display: none !important;
}
