/* ════════════════════════════════
   COFFRE-FORT — Feature page
════════════════════════════════ */

/* ─── Shared buttons ─── */
.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-primary--large { padding: 12px 28px; font-size: 15px; }
.btn-primary--large:hover { box-shadow: 0 12px 40px rgba(28, 42, 58, 0.3); }

.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-outline--light { border-color: rgba(28, 42, 58, 0.2); }

/* ─── Section label ─── */
.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 ─── */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

/* ─── Decorative elements ─── */
.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%; }
.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); } }


/* ════════════════════════════════
   SECTION 1 — HERO
════════════════════════════════ */
.vault-hero {
    position: relative;
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}
.vault-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: heroMeshMove 16s ease infinite;
}
@keyframes heroMeshMove {
    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%; }
}

.vault-hero-glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(100px); }
.vault-hero-glow--1 { width: 500px; height: 500px; background: radial-gradient(circle,rgba(216,225,234,0.5),transparent 70%); top: -120px; left: -150px; }
.vault-hero-glow--2 { width: 400px; height: 400px; background: radial-gradient(circle,rgba(28,42,58,0.08),transparent 70%); bottom: -80px; right: -80px; }
.vault-hero-glow--3 { width: 300px; height: 300px; background: radial-gradient(circle,rgba(201,183,156,0.1),transparent 70%); top: 30%; right: 15%; }

.vault-hero-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.vault-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.vault-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;
}
.vault-hero-headline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
}
.vault-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);
}
.vault-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
}
.vault-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);
}
.vault-hero-stars { display: flex; gap: 1px; }
.vault-hero-stars svg { width: 14px; height: 14px; fill: #C9A84C; }
.vault-hero-proof-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.01em;
}
.vault-hero-proof-text strong { color: var(--text); font-weight: 500; }


/* ════════════════════════════════
   SECTION 2 — FONCTIONNALITÉS
════════════════════════════════ */
.vault-features {
    position: relative;
    padding: clamp(48px, 6vw, 96px) 0;
    background: var(--bg-light);
    overflow: hidden;
}
.vault-features-glow {
    position: absolute;
    width: 900px; height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216,225,234,0.4), transparent 60%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(120px);
}
.vault-features-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.vault-features-header {
    text-align: center;
    margin-bottom: 64px;
}
.vault-features-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.vault-features-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Annotated layout ─── */
.vault-annotated {
    display: grid;
    grid-template-columns: minmax(200px, 320px) minmax(0, 1fr) minmax(200px, 320px);
    grid-template-rows: 1fr auto 1fr;
    row-gap: 32px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* ─── Mockup central ─── */
.vault-mockup {
    grid-column: 2;
    grid-row: 1 / 4;
    z-index: 1;
    position: relative;
    opacity: 0;
    transform: translateY(30px) perspective(800px) rotateX(5deg);
}
.vault-mockup-glow {
    position: absolute;
    inset: -40px;
    border-radius: 32px;
    background: radial-gradient(ellipse at center, rgba(216,225,234,0.5), rgba(28,42,58,0.06) 60%, transparent 80%);
    filter: blur(40px);
    z-index: -1;
}
.vault-mockup-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow:
        0 8px 40px rgba(28,42,58,0.08),
        0 0 0 1px rgba(28,42,58,0.03),
        0 0 100px rgba(216,225,234,0.4);
}
.vault-ui {
    display: block;
    width: 100%;
    height: auto;
}

/* ─── Annotations ─── */
.vault-ann {
    display: flex;
    align-items: center;
    z-index: 2;
    opacity: 0;
}

.vault-ann--1 {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    padding-right: 16px;
    transform: translateX(-40px);
}
.vault-ann--2 {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
    padding-left: 16px;
    transform: translateX(40px);
}
.vault-ann--3 {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
    align-self: start;
    padding-right: 16px;
    transform: translateX(-40px);
}
.vault-ann--4 {
    grid-column: 3;
    grid-row: 3;
    align-self: start;
    padding-left: 16px;
    transform: translateX(40px);
}

.vault-ann-pill {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(28,42,58,0.06);
    max-width: 320px;
}

.vault-ann-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(28,42,58,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vault-ann-icon svg {
    width: 16px; height: 16px;
    stroke: var(--ncp-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vault-ann-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.vault-ann-content strong {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.vault-ann-content span {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── SVG connector lines ─── */
.vault-ann-line {
    flex-shrink: 0;
    width: 70px;
    height: 50px;
}
.vault-ann-line--right {
    order: 1;
}

.vault-ann-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}


/* ════════════════════════════════
   SECTION 3 — 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-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) {
    .vault-annotated {
        grid-template-columns: 1fr minmax(0, 600px) 1fr;
    }
    .vault-ann-pill { max-width: 220px; padding: 12px 14px; }
    .vault-ann-content strong { font-size: 13px; }
    .vault-ann-content span { font-size: 12px; }
    .vault-ann-line { width: 50px; height: 40px; }
}

@media (max-width: 768px) {
    /* Hero */
    .vault-hero {
        min-height: auto;
        padding: 80px 0 64px;
    }
    .vault-hero-glow--1 { width: 300px; height: 300px; top: -80px; left: -100px; }
    .vault-hero-glow--2 { width: 250px; height: 250px; }
    .vault-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; }
    .vault-hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .vault-hero-ctas .btn-primary,
    .vault-hero-ctas .btn-outline {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Annotated — stack vertically */
    .vault-annotated {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
    }
    .vault-mockup {
        grid-column: 1;
        grid-row: 1;
    }
    .vault-ann--1 { grid-column: 1; grid-row: 2; padding: 0; transform: translateX(-20px); justify-self: start; }
    .vault-ann--2 { grid-column: 1; grid-row: 3; padding: 0; transform: translateX(-20px); justify-self: start; }
    .vault-ann--3 { grid-column: 1; grid-row: 4; padding: 0; transform: translateX(-20px); justify-self: start; }
    .vault-ann--4 { grid-column: 1; grid-row: 5; padding: 0; transform: translateX(-20px); justify-self: start; }
    .vault-ann-line { display: none; }
    .vault-ann-pill { max-width: 100%; }

    /* Final CTA */
    .final-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .final-cta-actions .btn-primary,
    .final-cta-actions .btn-outline {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .vault-hero-headline {
        font-size: clamp(28px, calc(24px + 2vw), 40px);
    }
}
