/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --color-primary: #111827;
    --color-secondary: #4b5563;
    --color-text: #1b1b1b;
    --color-cta: #000000;
    --color-bg: #f7f7f7;
    --color-danger: #ef4444;
    --color-warning: #f97316;
    --color-success: #10b981;

    --font-base: system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius-pill: 9999px;
    --radius-sm: 6px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.1);
    --transition: 160ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}

/* Hide all templates by default — Edge Function unhides the active one */
.tpl {
    display: none;
}
.tpl.is-active {
    display: block;
}

/* ============================================================
   SHARED: BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    border: none;
    transition:
        opacity var(--transition),
        transform var(--transition);
    text-transform: uppercase;
}
.btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
.btn:active {
    opacity: 1;
    transform: translateY(0);
}

.btn--pill {
    border-radius: var(--radius-pill);
}
.btn--rect {
    border-radius: var(--radius-sm);
}

.btn--dark {
    background: var(--color-cta);
    color: #fff;
}
.btn--orange {
    background: var(--color-warning);
    color: #fff;
}
.btn--green {
    background: #1D9E75;
    color: #fff;
}
.btn--green:hover {
    background: #178a64;
}
.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================================
   SHARED: BRAND LOGO
   ============================================================ */
.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.fallback-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: var(--radius-sm);
}

.fallback-mockup {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-secondary) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ============================================================
   SHARED: PAGE FOOTER
   ============================================================ */
.page-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.page-footer nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.page-footer a:hover {
    text-decoration: underline;
}
.page-footer--dark {
    background: #0f172a;
    border-top-color: #1e293b;
    color: #475569;
}
.page-footer--dark a {
    color: #64748b;
}

/* ============================================================
   TEMPLATE: AMBITION
   ============================================================ */
#tpl-ambition {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.amb-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #f3f4f6;
}

.amb-logo-wrap {
    display: flex;
    align-items: center;
}

.amb-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.amb-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.amb-headline-mobile {
    display: none;
}

.amb-headline {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    white-space: normal;
}

.amb-sub {
    font-size: 1.25rem;
    font-weight: 500;
    color: #374151;
    max-width: 900px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    white-space: normal;
}

/* Partner logos row */
.partner-logos {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0.45;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #374151;
}

.partner-logo-item svg {
    flex-shrink: 0;
    color: #374151;
}

/* Social proof line */
.amb-social-proof {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: -1.5rem;
    margin-bottom: 0;
}

/* Mockup */
.amb-mockup-wrap {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* CTA desktop — espace sous le bouton */
.amb-cta-primary {
    margin-bottom: 2rem;
}

.amb-mockup {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
}

/* ============================================================
   MOCKUP DASHBOARD — AMBITION (amk-*)
   ============================================================ */
.amk {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem 1.5rem 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    width: 100%;
    font-family: var(--font-base);
}

/* Header */
.amk-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}
.amk-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.amk-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.01em;
}
.amk-period {
    font-size: 0.72rem;
    color: #9ca3af;
}
.amk-badge-growth {
    font-size: 0.78rem;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    letter-spacing: 0.02em;
}

/* KPIs */
.amk-kpis {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.amk-kpi {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.amk-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}
.amk-kpi-icon {
    color: #9ca3af;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.amk-kpi-icon svg {
    stroke-width: 2.5;
}
.amk-kpi-label {
    font-size: 0.65rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.amk-kpi-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
}
.amk-kpi-value--green {
    color: #16a34a;
}

/* Graphique SVG */
.amk-chart-wrap {
    width: 100%;
    overflow: hidden;
}
.amk-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible; /* tooltip peut déborder vers le haut */
}
.amk-axis-label {
    font-size: 9px;
    fill: #9ca3af;
    font-family: var(--font-base);
}
.amk-axis-label--goal {
    fill: #6b7280;
    font-size: 8px;
}
.amk-axis-label--future {
    fill: #d1d5db; /* mois sans données — plus discrets */
}

/* Tooltip dernier point */
.amk-chart-wrap {
    overflow: visible; /* laisse le tooltip déborder du SVG vers le haut */
}
.amk-tip-fo {
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}
.amk-tip-group:hover .amk-tip-fo {
    opacity: 1;
}
.amk-tip-group:hover .amk-tip-dot {
    r: 8;
    filter: drop-shadow(0 0 6px rgba(22,163,74,0.45));
}
.amk-tip-box {
    background: #111827;
    border-radius: 8px 8px 8px 8px;
    padding: 0.5rem 0.75rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    white-space: nowrap;
    overflow: hidden;
}
.amk-tip-month {
    font-size: 0.68rem;
    color: #9ca3af;
    font-weight: 500;
}
.amk-tip-amount {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}
.amk-tip-tag {
    font-size: 0.68rem;
    color: #4ade80;
    font-weight: 600;
}

/* Badge objectif atteint */
.amk-goal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 99px;
    padding: 0.3rem 0.75rem;
    margin-top: 0.65rem;
}

/* ============================================================
   TEMPLATE: PEUR (VA + VB)
   ============================================================ */
#tpl-peur-a,
#tpl-peur-b {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    color: #1f2937;
}

.peur-header {
    padding: 0.625rem 2rem; /* compact 48px max — remonter le contenu above fold */
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.peur-scan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.75rem;
}

.peur-scan-badge--alert {
    color: #fff;
    background: #EF4444;
    animation: blink 1.2s step-start infinite;
}

.peur-scan-badge--done {
    color: #085041;
    background: #E1F5EE;
    border: 1px solid #5DCAA5;
}

@keyframes blink {
    50% {
        opacity: 0.3;
    }
}

.peur-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    padding: 4rem 5rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.peur-domain-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.peur-headline {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 1rem;
}

.peur-sub {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 420px;
}

/* Bullets */
.peur-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.peur-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
}

.peur-bullet-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.peur-bullet-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-danger);
    display: block;
}

.peur-bullet-detail {
    font-size: 0.9375rem;
    color: #6b7280;
}

/* CTA positions VA */
.peur-cta-primary {
    margin-bottom: 0.5rem;
}
.peur-cta-secondary {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.peur-reassurance {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #9ca3af;
}
.peur-reassurance--top {
    margin-bottom: 2rem;
}

/* Bande stat CNIL */
.peur-cnil-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #9a3412;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.peur-cnil-stat svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Badge urgence 72h — pill isolé */
.peur-urgency-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FEF3E2;
    border: 1px solid #FAC775;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #633806;
    margin-bottom: 1.5rem;
}

/* Score card HTML — crédibilité mobile VA */
.peur-score-card {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    background: #0f172a;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}
.peur-score-card__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
}
.peur-score-card__value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #E85D24;
}
.peur-score-card__sub {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* RIGHT: mockup + floating alerts */
.peur-right {
    display: flex;
    align-items: center;
}

.peur-mockup-wrap {
    position: relative;
    width: 100%;
    /* Décale le mockup vers la droite pour laisser place aux alertes qui débordent à gauche */
    margin-left: 2.5rem;
}

.peur-mockup-img {
    width: 100%;
    display: block;
    object-fit: contain;
}

.peur-overlay-alerts {
    position: absolute;
    top: 8%;
    /* Déborde à gauche du mockup */
    left: -2.75rem;
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
    width: 70%;
}

.peur-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: fit-content;
}

.peur-alert--critical {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
}

.peur-alert--warning {
    background: rgba(249, 115, 22, 0.85);
    color: #fff;
}

.peur-chart-wrap {
    background: rgba(15, 23, 42, 0.88);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    margin-top: 0.5rem;
    /* La courbe sort en bas à gauche */
    position: absolute;
    bottom: 8%;
    left: -2.75rem;
    width: 55%;
}

.peur-chart-label {
    font-size: 0.625rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.375rem;
}

.peur-chart {
    width: 100%;
    height: 60px;
    display: block;
}

.peur-chart-score {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ef4444;
    margin-top: 0.25rem;
}

.peur-chart-score span {
    font-weight: 400;
    color: #94a3b8;
}

/* ============================================================
   PEUR — VARIANTE B (Curiosité / Zeigarnik)
   ============================================================ */

/* Header VB — fond blanc neutre, pas de rouge */
.peur-b-header {
    background: #ffffff;
}

/* Layout desktop VB — 55/45 */
.peur-b-main {
    grid-template-columns: 1.1fr 0.9fr;
}

/* Domaine label VB */
.peur-b-domain-label {
    color: #0f6e56;
}

/* Headline VB — ton neutre expert */
.peur-b-headline {
    font-size: clamp(1.875rem, 3.5vw, 3rem);
    color: #111827;
}

/* Sous-titre VB */
.peur-b-sub {
    color: #4b5563;
}

/* Score flouté — élément central Zeigarnik */
.peur-b-score-card {
    background: #e8f5ef;
    border: 1.5px solid #5DCAA5;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.peur-b-score-card__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f6e56;
}
.peur-b-score-card__value {
    font-size: 2rem;
    font-weight: 900;
    color: #1a2e1e;
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.05em;
}
.peur-b-score-card__lock {
    font-size: 0.8125rem;
    color: #0f6e56;
    font-weight: 600;
}

/* CTA positions VB */
.peur-b-cta-primary {
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}
.peur-b-cta-secondary {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

/* Réassurance VB */
.peur-b-reassurance--top,
.peur-b-reassurance {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.375rem;
    margin-bottom: 1.75rem;
}

/* Bullets neutres VB */
.peur-vb-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    list-style: none;
    padding: 0;
}
.peur-vb-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f0fdf8;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.peur-vb-bullet-icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.peur-vb-bullet-label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #065f46;
    display: block;
}
.peur-vb-bullet-detail {
    font-size: 0.875rem;
    color: #0f6e56;
}

/* Urgence douce VB */
.peur-b-urgency {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f6e56;
    margin-bottom: 1rem;
}

/* Mockup wrap VB — même layout que VA */
.peur-b-mockup-wrap {
    margin-left: 2.5rem;
}

/* Badges flottants VB sur le mockup */
.peur-b-overlay-badges {
    position: absolute;
    top: 8%;
    left: -2.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
    width: 75%;
}
.peur-b-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    width: fit-content;
}
.peur-b-badge--done {
    background: rgba(29, 158, 117, 0.92);
    color: #fff;
}
.peur-b-badge--lock {
    background: rgba(15, 110, 86, 0.88);
    color: #9FE1CB;
}

/* ============================================================
   TEMPLATE: DÉSIR
   ============================================================ */
#tpl-desir {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fafafa;
}

.desir-header {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.desir-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.8rem;
}

/* Bande défilante partenaires */
.desir-partners-bar {
    overflow: hidden;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0.75rem 0;
    background: transparent;
    display: flex;
}

.desir-partners-track {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    width: max-content;
    animation: partners-scroll 28s linear infinite;
}

.desir-partners-bar:hover .desir-partners-track {
    animation-play-state: paused;
}

.desir-partners-set {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-right: 64px; /* = gap */
    flex-shrink: 0;
}

@keyframes partners-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

.desir-partner-logo {
    height: 22px;
    width: 100px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    display: block;
    filter: grayscale(100%) opacity(40%);
    transition: filter 0.3s ease;
}

.desir-partner-logo:hover {
    filter: grayscale(0%) opacity(100%);
}

/* Logos naturellement plus contrastés — opacité réduite */
.desir-partner-logo--light {
    filter: grayscale(100%) opacity(22%);
}
.desir-partner-logo--light:hover {
    filter: grayscale(0%) opacity(100%);
}

/* Logos légèrement plus contrastés — opacité intermédiaire */
.desir-partner-logo--mid {
    filter: grayscale(100%) opacity(30%);
}
.desir-partner-logo--mid:hover {
    filter: grayscale(0%) opacity(100%);
}

/* Main layout */
.desir-main {
    flex: 1;
    display: grid;
    grid-template-columns: 55% 41%;
    gap: 4%;
    padding: 5rem 5rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
}

.desir-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.5;
}

.desir-headline {
    font-size: clamp(1.75rem, 3vw, 2.625rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.desir-sub {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-secondary);
    max-width: 560px;
    margin-bottom: 2.25rem;
}

.desir-sub--mobile-short {
    display: none; /* masqué sur desktop */
}

/* Bullets */
.desir-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.desir-bullet {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.desir-bullet-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
    color: #fff;
}

/* CTA extra word — masqué sur mobile */
.desir-cta-extra  { display: inline; }
/* Flèche mobile seule — masquée sur desktop */
.desir-cta-arrow  { display: none; }

/* Code promo */
.desir-promo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.875rem;
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: 99px;
    font-size: 0.75rem;
    color: #92400e;
}

.desir-promo-line1 {
    display: contents; /* inline sur desktop */
}

.desir-promo-line2 {
    display: contents; /* inline sur desktop */
}

.desir-promo-code {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: monospace;
    letter-spacing: 0.06em;
    font-size: 0.875rem;
    font-weight: 700;
    color: #78350f;
    background: #fde68a;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    user-select: all;
}

.desir-promo-copy {
    font-family: sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #92400e;
    letter-spacing: 0;
}

/* Social proof stars */
.desir-social-proof {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 1.75rem;
}

.desir-stars {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 1.125rem;
    color: #F59E0B;
}

.desir-rating {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-left: 0.375rem;
}

.desir-social-count {
    font-size: 0.875rem;
    color: var(--color-secondary);
}

/* ── Dashboard HTML mockup (Variante A) ──────────────────────── */
.dmk {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Topbar */
.dmk-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.125rem;
    background: #6366F1;
}
.dmk-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dmk-logo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.9;
}
.dmk-logo-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}
.dmk-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero stat */
.dmk-hero {
    padding: 1.125rem 1.125rem 0.75rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}
.dmk-hero-label {
    font-size: 0.6875rem;
    color: #6B7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.dmk-hero-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #4F46E5;
    line-height: 1;
    margin-bottom: 0.375rem;
    letter-spacing: -0.03em;
}
.dmk-hero-badge {
    display: inline-block;
    background: #D1FAE5;
    color: #065F46;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.625rem;
    border-radius: 99px;
}

/* Sparkline */
.dmk-chart {
    padding: 0.5rem 0.75rem 0.25rem;
    border-bottom: 1px solid #e0e7ff;
    background: #eef2ff;
}
.dmk-sparkline {
    display: block;
    width: 100%;
    height: auto;
}
.dmk-chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.5rem;
    color: #9CA3AF;
    margin-top: 0.125rem;
}

/* Rows */
.dmk-rows {
    padding: 0.5rem 0;
}
.dmk-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1.125rem;
    transition: background 0.15s;
}
.dmk-row:hover { background: #f9fafb; }

.dmk-row-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dmk-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.dmk-row-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dmk-row-title {
    font-size: 0.625rem;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dmk-row-avatar--photo {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.dmk-row-tag {
    font-size: 0.5625rem;
    font-weight: 600;
    padding: 0.175rem 0.5rem;
    border-radius: 99px;
    flex-shrink: 0;
}
.dmk-row-tag--new     { background: #EFF6FF; color: #1D4ED8; }
.dmk-row-tag--replied { background: #F0FDF4; color: #15803D; }

/* Badges flottants */
.dmk-badge-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.625rem 1.125rem 0.875rem;
    border-top: 1px solid #f3f4f6;
}
.dmk-float-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.6875rem;
    width: fit-content;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.dmk-float-badge--green  { background: #fff; border: 1px solid #D1FAE5; color: #065F46; }
.dmk-float-badge--indigo { background: #fff; border: 1px solid #E0E7FF; color: #3730A3; }

/* RIGHT: dashboard mockup + testimonial card */
.desir-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}


.desir-mockup-wrap {
    position: relative;
    width: 100%;
    margin-left: 2.5rem;
}

.desir-mockup-img {
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

.desir-overlay-stats {
    position: absolute;
    bottom: 8%;
    left: -2.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.desir-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    padding: 0.45rem 0.875rem;
    backdrop-filter: blur(6px);
}

.desir-stat-value {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--color-primary);
}

.desir-stat-label {
    font-size: 0.75rem;
    color: var(--color-secondary);
}

/* Testimonial carousel — Variante B */
.desir-testimonial-carousel {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin-top: -9rem;
    border: 1px solid rgba(175, 169, 236, 0.4);
    border-radius: 20px;
    padding: 32px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f4ff 60%, #eeedfe 100%);
    box-shadow: 0 8px 40px rgba(83, 74, 183, 0.1), 0 1px 3px rgba(83, 74, 183, 0.06);
    overflow: hidden;
}

.desir-tc-slide {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.desir-tc-slide.is-active {
    display: flex;
    animation: tcSmoothIn 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Dots */
.desir-tc-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.desir-tc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: rgba(83, 74, 183, 0.2);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.desir-tc-dot.is-active {
    background: #534AB7;
    transform: scale(1.25);
}

/* Testimonial card — Variante B */
.desir-testimonial-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    border: 1px solid rgba(175, 169, 236, 0.4);
    border-radius: 20px;
    padding: 32px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f4ff 60%, #eeedfe 100%);
    box-shadow: 0 8px 40px rgba(83, 74, 183, 0.1), 0 1px 3px rgba(83, 74, 183, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
}

/* Halo décoratif en arrière-plan */
.desir-tc-glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.desir-tc-header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    position: relative;
}

.desir-tc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(124, 58, 237, 0.2);
    flex-shrink: 0;
}

.desir-tc-avatar--fallback {
    background: #EEEDFE;
    color: #534AB7;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desir-tc-identity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.desir-tc-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
}

.desir-tc-status {
    font-size: 0.75rem;
    color: #534AB7;
    font-weight: 600;
}

.desir-tc-stars {
    font-size: 1rem;
    color: #F59E0B;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.desir-tc-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: #1F2937;
    font-style: italic;
    margin: 0;
    padding: 0 0 0 1rem;
    border-left: 3px solid rgba(124, 58, 237, 0.3);
    position: relative;
}

.desir-tc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(175, 169, 236, 0.25);
}

.desir-tc-metric {
    font-size: 0.75rem;
    font-weight: 600;
    color: #534AB7;
    opacity: 0.8;
}

.desir-tc-product {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #534AB7;
    opacity: 0.5;
}

/* Sticky CTA mobile */
.desir-sticky-cta {
    display: none; /* affiché uniquement sur mobile via media query */
}

.desir-sticky-btn {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .peur-main,
    .peur-b-main,
    .desir-main {
        grid-template-columns: 1fr;
        padding: 2.5rem 1.5rem;
        gap: 2rem;
    }

    /* Peur VA mobile : tout centré, mockup masqué */
    .peur-left {
        text-align: center;
    }
    .peur-domain-label,
    .peur-sub {
        text-align: center;
    }
    .peur-bullets {
        text-align: left;
    }
    .peur-urgency-pill {
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
    }
    .peur-cnil-stat {
        text-align: left;
    }
    .peur-right {
        display: none; /* mockup masqué sur mobile */
    }

    /* Peur VB mobile : tout centré, mockup masqué */
    .peur-b-left {
        text-align: center;
    }
    .peur-b-domain-label,
    .peur-b-sub {
        text-align: center;
    }
    .peur-vb-bullets {
        text-align: left;
    }
    .peur-b-urgency {
        justify-content: center;
    }
    .peur-b-right {
        display: none;
    }

    /* Désir mobile : CTA above fold — contenu d'abord, mockup/card après */
    .desir-right {
        order: 2; /* mockup/card APRÈS le contenu */
    }
    .desir-left {
        order: 1;
        text-align: center;
    }
    .desir-bullets {
        text-align: left;
    }
    .desir-social-proof {
        align-items: center;
    }
    .desir-mockup-wrap {
        margin-left: 0;
        width: 85%;
        margin: 0 auto;
    }
    .desir-overlay-stats {
        left: 0.5rem;
        bottom: 0.5rem;
    }
    .desir-testimonial-card {
        max-width: 100%;
    }
    .desir-testimonial-carousel {
        margin-top: 0;
    }
    /* Sous-titre : si le short est dans le DOM (Var B), masquer le long */
    .desir-sub--mobile-short ~ * { /* rien */ }
    .desir-sub--mobile-short     { display: block; }
    .desir-sub--mobile-short + .desir-sub { display: none; }
    /* En Var B, le long (.desir-sub sans classe short) précède le short — on l'inverse */
    .desir-left > .desir-sub:not(.desir-sub--mobile-short):has(~ .desir-sub--mobile-short) { display: none; }

    /* Partenaires masqués sur mobile — gain de place précieux */
    .desir-partners-bar {
        display: none;
    }

    /* "MAINTENANT →" masqué sur mobile, flèche seule visible */
    .desir-cta-extra { display: none; }
    .desir-cta-arrow { display: inline; }

    /* Code promo — colonne centrée sur mobile */
    .desir-promo {
        flex-direction: column;
        align-items: center;
        align-self: center;
        border-radius: 12px;
        gap: 0.3rem;
    }
    .desir-promo-line1 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
    }
    .desir-promo-line2 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
    }

}

@media (max-width: 600px) {
    .amb-main {
        padding: 2.5rem 1.25rem 2rem;
    }
    .amb-headline,
    .amb-sub {
        white-space: normal;
    }
    .amb-headline-desktop { display: none; }
    .amb-headline-mobile  { display: block; }
    .amb-header {
        padding: 0.625rem 1.25rem;
    }
    .peur-header,
    .peur-b-header,
    .desir-header {
        padding: 0.5rem 1.25rem;
    }
    .peur-cta-primary,
    .peur-cta-secondary,
    .peur-b-cta-primary,
    .peur-b-cta-secondary {
        width: 100%;
        text-align: center;
    }
    .peur-score-card {
        flex-direction: column;
        gap: 0.25rem;
    }
    .page-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    /* Désir mobile — sticky CTA */
    .desir-sticky-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .desir-sticky-cta.is-hidden {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    /* Ambition mobile — espacements */
    .amb-cta-primary {
        width: 100%;
        margin-bottom: 2rem;
    }
    .partner-logos {
        gap: 1.5rem;
        margin-bottom: 1.25rem;
    }
    .amb-social-proof {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }
    .amb-mockup-wrap {
        max-width: 100%;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    /* Dashboard mobile — on réduit les paddings et la font */
    .amk {
        padding: 1rem 1rem 0.75rem;
    }
    .amk-kpis {
        gap: 0.5rem;
    }
    .amk-kpi {
        padding: 0.45rem 0.55rem;
    }
    .amk-kpi-value {
        font-size: 0.78rem;
    }
    .amk-title {
        font-size: 0.85rem;
    }
}
