/* ════════════════════════════════
   DASHBOARD PATRIMOINE — Page styles
   Cohérence totale avec la home & about
════════════════════════════════ */

/* ─── Shared (repris de la home / about) ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--ncp-primary);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(28, 42, 58, 0.2);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: 1px solid rgba(28, 42, 58, 0.25);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-outline:hover {
    background: rgba(28, 42, 58, 0.04);
    border-color: rgba(28, 42, 58, 0.4);
}

.btn-primary--large {
    padding: 12px 28px;
    font-size: 15px;
}
.btn-primary--large:hover {
    box-shadow: 0 6px 20px rgba(28, 42, 58, 0.25);
}

.btn-outline--light {
    border-color: rgba(28, 42, 58, 0.2);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--ncp-primary);
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    position: relative;
    background: #fff;
    z-index: 0;
}
.section-label::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 100px;
    background: conic-gradient(
        from var(--label-angle, 0deg),
        var(--ncp-secondary),
        var(--ncp-primary),
        var(--ncp-secondary),
        var(--ncp-primary),
        var(--ncp-secondary)
    );
    z-index: -2;
    animation: labelGlow 4s linear infinite;
}
.section-label::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 100px;
    background: #fff;
    z-index: -1;
}
@property --label-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes labelGlow {
    to { --label-angle: 360deg; }
}

.section-label svg {
    width: 14px;
    height: 14px;
    stroke: var(--ncp-primary);
    fill: none;
    stroke-width: 2;
}

/* Scroll reveal initial state */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

/* ════════════════════════════════
   SECTION 1 — HERO
════════════════════════════════ */
.dash-hero {
    position: relative;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

/* ─── Mesh gradient animé ─── */
.dash-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(216, 225, 234, 0.7), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(28, 42, 58, 0.12), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(216, 225, 234, 0.4), transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(201, 183, 156, 0.08), transparent 40%),
        #F7F8FA;
    animation: dashMeshMove 16s ease infinite;
}

@keyframes dashMeshMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%, 70% 20%; }
    25% { background-position: 10% 20%, 90% 80%, 40% 60%, 60% 30%; }
    50% { background-position: 5% 10%, 95% 90%, 55% 45%, 75% 15%; }
    75% { background-position: 15% 5%, 85% 85%, 45% 55%, 65% 25%; }
}

/* ─── Glows décoratifs ─── */
.dash-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}
.dash-hero-glow--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(216, 225, 234, 0.5), transparent 70%);
    top: -120px;
    left: -150px;
}
.dash-hero-glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(28, 42, 58, 0.08), transparent 70%);
    bottom: -80px;
    right: -80px;
}
.dash-hero-glow--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 183, 156, 0.1), transparent 70%);
    top: 30%;
    right: 15%;
}

/* ─── Éléments décoratifs flottants ─── */
.dash-hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decor-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(28, 42, 58, 0.06);
}
.decor-circle--1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -60px;
    animation: decorFloat 20s ease-in-out infinite;
}
.decor-circle--2 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 5%;
    border-color: rgba(216, 225, 234, 0.4);
    animation: decorFloat 16s ease-in-out infinite reverse;
}
.decor-circle--3 {
    width: 80px;
    height: 80px;
    top: 25%;
    left: 12%;
    border-color: rgba(28, 42, 58, 0.04);
    animation: decorFloat 12s ease-in-out infinite 2s;
}

.decor-line {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(28, 42, 58, 0.06), transparent);
}
.decor-line--1 {
    height: 200px;
    top: 8%;
    left: 20%;
    animation: decorFloat 14s ease-in-out infinite;
}
.decor-line--2 {
    height: 140px;
    bottom: 12%;
    right: 22%;
    animation: decorFloat 18s ease-in-out infinite reverse;
}

.decor-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(28, 42, 58, 0.08);
    animation: decorPulse 6s ease-in-out infinite;
}
.decor-dot--1 { width: 5px; height: 5px; top: 18%; left: 30%; animation-delay: 0s; }
.decor-dot--2 { width: 4px; height: 4px; top: 65%; right: 28%; animation-delay: -1.5s; }
.decor-dot--3 { width: 6px; height: 6px; bottom: 25%; left: 18%; animation-delay: -3s; }
.decor-dot--4 { width: 3px; height: 3px; top: 35%; right: 12%; animation-delay: -4.5s; }

@keyframes decorFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes decorPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.5); }
}

/* ─── Contenu ─── */
.dash-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.dash-hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(36px, calc(28px + 2.5vw), 60px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.dash-hero-headline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
}

.dash-hero-sub {
    font-family: var(--font-body);
    font-size: clamp(17px, calc(15px + 0.3vw), 20px);
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 32px;
    opacity: 0;
    transform: translateY(20px);
}

/* ─── CTAs ─── */
.dash-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}

/* ─── Preuve sociale ─── */
.dash-hero-proof {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(28, 42, 58, 0.03);
    border: 1px solid rgba(28, 42, 58, 0.06);
    border-radius: 100px;
    opacity: 0;
    transform: translateY(16px);
}

.dash-hero-stars {
    display: flex;
    gap: 1px;
}
.dash-hero-stars svg {
    width: 14px;
    height: 14px;
    fill: #C9A84C;
}

.dash-hero-proof-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.01em;
}
.dash-hero-proof-text strong {
    color: var(--text);
    font-weight: 500;
}

/* ════════════════════════════════
   SECTION 2 — VUE D'ENSEMBLE
════════════════════════════════ */
.overview {
    position: relative;
    padding: clamp(48px, 6vw, 96px) 0;
    background: #fff;
    overflow: hidden;
}

.overview-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(140px);
}
.overview-glow--tl {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(216, 225, 234, 0.4), transparent 65%);
    top: -200px;
    left: -200px;
}
.overview-glow--br {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(28, 42, 58, 0.06), transparent 65%);
    bottom: -150px;
    right: -150px;
}

.overview-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.overview-header {
    text-align: center;
    margin-bottom: 56px;
}

.overview-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, calc(24px + 1.1vw), 40px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.overview-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, calc(14px + 0.3vw), 18px);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Mockup central ─── */
.overview-mockup {
    margin-bottom: 32px;
}

.overview-mockup-frame {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border-light),
        0 8px 40px rgba(28, 42, 58, 0.1),
        0 0 80px rgba(216, 225, 234, 0.5);
}

.overview-dashboard {
    display: block;
    width: 100%;
    height: auto;
}

/* ─── Lignes SVG connectrices ─── */
.overview-lines {
    display: block;
    width: 100%;
    height: 80px;
    margin-bottom: 8px;
    overflow: visible;
}

.overview-line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

/* ─── Cards indicateurs ─── */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.overview-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(28, 42, 58, 0.08);
}

.overview-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.overview-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--ncp-primary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overview-card-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.overview-card-value {
    font-family: var(--font-heading);
    font-size: clamp(28px, calc(24px + 1vw), 36px);
    font-weight: 700;
    color: var(--ncp-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.overview-card-desc {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ════════════════════════════════
   SECTION 3 — BÉNÉFICES CONCRETS
════════════════════════════════ */
.benefits {
    position: relative;
    padding: clamp(48px, 6vw, 96px) 0;
    background: var(--bg-light);
    overflow: hidden;
}

.benefits-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(140px);
}
.benefits-glow--tl {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(216, 225, 234, 0.35), transparent 65%);
    top: -200px;
    left: -200px;
}
.benefits-glow--br {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(28, 42, 58, 0.06), transparent 65%);
    bottom: -150px;
    right: -150px;
}

.benefits-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.benefits-header {
    text-align: center;
    margin-bottom: 56px;
}

.benefits-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, calc(24px + 1.1vw), 40px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.benefits-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, calc(14px + 0.3vw), 18px);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Liste premium ─── */
.benefits-list {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border-light);
}
.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--ncp-primary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-item-body {
    flex: 1;
    min-width: 0;
}

.benefit-item-title {
    font-family: var(--font-heading);
    font-size: clamp(18px, calc(16px + 0.3vw), 22px);
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 8px;
}

.benefit-item-text {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

.benefit-item-stat {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: clamp(32px, calc(28px + 1vw), 44px);
    font-weight: 700;
    color: var(--ncp-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    opacity: 0.18;
    align-self: center;
    user-select: none;
}

/* ════════════════════════════════
   SECTION 4 — CTA FINAL
════════════════════════════════ */
.final-cta {
    position: relative;
    padding: clamp(48px, 6vw, 96px) 0;
    overflow: hidden;
    text-align: center;
}

.final-cta-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(216, 225, 234, 0.6), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(28, 42, 58, 0.1), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(216, 225, 234, 0.3), transparent 60%),
        #F7F8FA;
    animation: meshMove 12s ease infinite;
}

@keyframes meshMove {
    0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
    33% { background-position: 10% 20%, 90% 80%, 40% 60%; }
    66% { background-position: 5% 10%, 95% 90%, 55% 45%; }
}

.final-cta-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(28, 42, 58, 0.12);
    animation: particleFloat 8s ease-in-out infinite;
}
.particle:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; animation-duration: 9s; }
.particle:nth-child(2) { top: 60%; left: 75%; animation-delay: -2s; animation-duration: 7s; width: 3px; height: 3px; }
.particle:nth-child(3) { top: 35%; left: 85%; animation-delay: -4s; animation-duration: 11s; width: 5px; height: 5px; }
.particle:nth-child(4) { top: 75%; left: 25%; animation-delay: -1s; animation-duration: 8s; }
.particle:nth-child(5) { top: 15%; left: 55%; animation-delay: -3s; animation-duration: 10s; width: 3px; height: 3px; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    25% { transform: translate(15px, -20px); opacity: 0.6; }
    50% { transform: translate(-10px, -35px); opacity: 0.4; }
    75% { transform: translate(20px, -15px); opacity: 0.5; }
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.final-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, calc(28px + 2.5vw), 56px);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, calc(14px + 0.3vw), 20px);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.final-cta-reassurance {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1024px) {
    .overview-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .overview-line:nth-child(2),
    .overview-line:nth-child(3) {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .dash-hero {
        min-height: auto;
        padding: 80px 0 64px;
    }
    .dash-hero-glow--1 { width: 300px; height: 300px; top: -80px; left: -100px; }
    .dash-hero-glow--2 { width: 250px; height: 250px; }
    .dash-hero-glow--3 { display: none; }
    .decor-circle--1 { width: 180px; height: 180px; }
    .decor-circle--2 { width: 100px; height: 100px; }
    .decor-circle--3 { display: none; }
    .decor-line--1, .decor-line--2 { display: none; }
    .dash-hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .dash-hero-ctas .btn-primary,
    .dash-hero-ctas .btn-outline {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Vue d'ensemble */
    .overview-cards {
        grid-template-columns: 1fr;
    }
    .overview-lines {
        display: none;
    }

    /* Bénéfices */
    .benefit-item {
        flex-wrap: wrap;
        gap: 16px;
        padding: 28px 0;
    }
    .benefit-item-stat {
        width: 100%;
        text-align: right;
        font-size: 28px;
    }

    /* CTA Final */
    .final-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .final-cta-actions .btn-primary--large,
    .final-cta-actions .btn-outline--light {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .overview-mockup-frame {
        border-radius: 12px;
    }
}
