/* ================================================================
   ContratosLab — Landing Page CSS
   Matches contratoslab_v3_1_.html exactly
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (body)
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

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

:root {
    --white: #FFFFFF;
    --bg: #F8F5F5;
    --bg2: #EEE9E9;
    --ink: #1A1F2E;
    --ink2: #2C3A52;
    --muted: #64748B;
    --light: #94A3B8;
    --bx: #871621;
    --bx2: #9E1B25;
    --bx3: #FBF0F1;
    --bx4: #FBF0F1;
    --bx-mid: #D4979A;
    --border: #E5DFE0;
    --border2: #D6CCCC;
    --r: 14px;
    --nav-h: 114px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

    .logo img {
        height: 181px;
        width: auto;
        display: block;
    }

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

    .nav-links a {
        font-size: .875rem;
        font-weight: 500;
        color: var(--muted);
        text-decoration: none;
        transition: color .15s;
    }

        .nav-links a:hover {
            color: var(--ink);
        }

.nav-actions {
    display: flex;
    gap: .7rem;
    align-items: center;
}

.btn-outline {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink2);
    padding: .5rem 1.1rem;
    border: 1px solid var(--border2);
    border-radius: 8px;
    text-decoration: none;
    background: var(--white);
    transition: all .15s;
    cursor: pointer;
}

    .btn-outline:hover {
        border-color: #C0B0B0;
        background: var(--bg);
    }

.btn-solid {
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    padding: .5rem 1.3rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    background: var(--bx);
    transition: all .18s;
    cursor: pointer;
}

    .btn-solid:hover {
        background: var(--bx2);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(139,26,26,.28);
    }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

/* Photo plein écran */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% 82%;
    display: block;
    z-index: 0;
}

/* Dégradé blanc → transparent, texte lisible à gauche */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.97) 22%, rgba(255,255,255,.75) 38%, rgba(255,255,255,.1) 52%, rgba(255,255,255,0) 62% );
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 6rem 2rem 6rem 7vw;
    text-align: left;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--bx4);
    border: 1px solid rgba(139,26,26,.2);
    color: var(--bx);
    font-size: .78rem;
    font-weight: 600;
    padding: .3rem .9rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
    letter-spacing: .02em;
}

    .hero-pill::before {
        content: '';
        width: 7px;
        height: 7px;
        background: var(--bx);
        border-radius: 50%;
        animation: blink 2.4s infinite;
    }

@keyframes blink {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .35
    }
}

h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 3.9rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

    h1 em {
        font-style: normal;
        color: var(--bx);
    }

.hero-sub {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 510px;
    margin: 0 0 2.6rem;
    line-height: 1.72;
}

.hero-ctas {
    display: flex;
    gap: .9rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    padding: .9rem 2.1rem;
    border-radius: 10px;
    background: var(--bx);
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 4px 18px rgba(139,26,26,.26);
}

    .btn-hero:hover {
        background: var(--bx2);
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(139,26,26,.34);
        color: #fff;
    }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink2);
    padding: .9rem 1.8rem;
    border-radius: 10px;
    border: 1px solid var(--border2);
    text-decoration: none;
    background: var(--white);
    transition: all .2s;
}

    .btn-ghost:hover {
        border-color: #B8A8A8;
        background: var(--bg);
    }

.trust-bar {
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .1rem 1.8rem;
    font-size: .82rem;
    color: var(--muted);
    font-weight: 500;
    border-right: 1px solid var(--border);
}

    .trust-item:last-child {
        border-right: none;
    }

.t-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bx3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── STATS ── */
.stats-band {
    background: var(--ink);
    padding: 3.5rem 2rem;
}

.stats-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 2rem;
    text-align: center;
}

.stat-n {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    margin-bottom: .3rem;
}

    .stat-n em {
        font-style: normal;
        color: #D47070;
    }

.stat-l {
    font-size: .83rem;
    color: #7A8FA8;
}

/* ── SECTIONS ── */
.section-wrap {
    padding: 5rem 2rem;
}

    .section-wrap.gray {
        background: var(--bg);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

.section-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bx);
    margin-bottom: .9rem;
}

    .eyebrow::before {
        content: '';
        display: block;
        width: 16px;
        height: 2px;
        background: var(--bx);
        border-radius: 1px;
    }

.section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--ink);
    margin-bottom: .65rem;
    line-height: 1.2;
}

.section-sub {
    font-size: .95rem;
    color: var(--muted);
    max-width: 460px;
    line-height: 1.65;
    margin-bottom: 3rem;
}

/* ── DOCUMENT CARDS ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px,1fr));
    gap: 1.1rem;
}

.doc-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: box-shadow .22s, border-color .22s, transform .22s;
    animation: up .45s ease both;
}

    .doc-card:nth-child(1) {
        animation-delay: .04s;
    }

    .doc-card:nth-child(2) {
        animation-delay: .09s;
    }

    .doc-card:nth-child(3) {
        animation-delay: .14s;
    }

    .doc-card:nth-child(4) {
        animation-delay: .19s;
    }

    .doc-card:nth-child(5) {
        animation-delay: .24s;
    }

    .doc-card:nth-child(6) {
        animation-delay: .29s;
    }

    .doc-card:nth-child(7) {
        animation-delay: .33s;
    }

    .doc-card:nth-child(8) {
        animation-delay: .37s;
    }

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ac, var(--bx));
    border-radius: var(--r) var(--r) 0 0;
    opacity: 0;
    transition: opacity .22s;
}

.doc-card:hover {
    box-shadow: 0 2px 8px rgba(26,31,46,.07), 0 10px 36px rgba(26,31,46,.1);
    border-color: var(--ac-mid, var(--bx-mid));
    transform: translateY(-3px);
}

    .doc-card:hover::before {
        opacity: 1;
    }

.doc-card.featured {
    border: 2px solid var(--bx);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.1rem;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--ac-bg, var(--bx4));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 6px;
    background: var(--bx3);
    color: var(--bx);
    white-space: nowrap;
}

.card-cat {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ac, var(--bx));
    margin-bottom: .45rem;
}

.card-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.015em;
    line-height: 1.25;
    margin-bottom: .6rem;
}

.card-desc {
    font-size: .865rem;
    color: var(--muted);
    line-height: 1.63;
    flex: 1;
    margin-bottom: 1.35rem;
}

.card-feats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .38rem;
    margin-bottom: 1.5rem;
}

    .card-feats li {
        font-size: .815rem;
        color: var(--ink2);
        display: flex;
        align-items: center;
        gap: .5rem;
    }

        .card-feats li::before {
            content: '';
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            border-radius: 50%;
            background: var(--ac-bg, var(--bx3));
            display: flex;
            align-items: center;
            justify-content: center;
            /* checkmark via border trick — no base64 */
            border: 1.5px solid var(--ac, var(--bx));
            box-shadow: inset 0 0 0 2px var(--ac-bg, var(--bx3));
        }

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.card-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

    .card-price small {
        font-size: .78rem;
        font-weight: 500;
        color: var(--muted);
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .83rem;
    font-weight: 600;
    color: var(--ac, var(--bx));
    text-decoration: none;
    transition: gap .18s;
}

.doc-card:hover .card-link {
    gap: .6rem;
}

/* ── HOW IT WORKS ── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 2.5rem;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.step-n {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bx);
    color: #fff;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.step:last-child .step-line {
    display: none;
}

.step-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .45rem;
    letter-spacing: -.01em;
}

.step-desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── CTA ── */
.cta-wrap {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
    border-top: 1px solid var(--border);
}

    .cta-wrap h2 {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-size: clamp(1.8rem, 3.5vw, 2.6rem);
        font-weight: 800;
        letter-spacing: -.025em;
        color: var(--ink);
        margin-bottom: .7rem;
    }

    .cta-wrap p {
        font-size: .95rem;
        color: var(--muted);
        margin-bottom: 2rem;
    }

/* ── FOOTER ── */
footer {
    background: var(--ink);
    padding: 2.2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.f-logo img {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .85;
}

footer small {
    font-size: .78rem;
    color: #7A8FA8;
}

.f-links {
    display: flex;
    gap: 1.5rem;
}

    .f-links a {
        font-size: .78rem;
        color: #7A8FA8;
        text-decoration: none;
    }

        .f-links a:hover {
            color: #fff;
        }

/* ── BURGER MENU ── */
.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #D6CCCC;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: all .15s;
}
.nav-burger:hover {
    border-color: #B0A09A;
    background: #F8F5F5;
}
.nav-burger span {
    display: block;
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2px;
    background: #1A1F2E;
    border-radius: 2px;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s, top .28s;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 28px; }
.nav-burger.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.is-active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(28,25,23,.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    background: #fff;
    z-index: 9991;
    transform: translateX(105%);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 36px rgba(28,25,23,.22);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }

/* Reset interno: el global nav{} y .logo{} no deben tocar al drawer */
.nav-drawer,
.nav-drawer * {
    box-sizing: border-box;
}
.nav-drawer .nav-drawer-logo {
    position: static !important;
    height: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
.nav-drawer .nav-drawer-logo img {
    height: 84px !important;
    width: auto !important;
    display: block !important;
}

.nav-drawer-head {
    padding: 18px 20px 16px;
    border-bottom: 1px solid #E8E0D8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.nav-drawer-logo img { height: 96px; width: auto; display: block; }
.nav-close {
    width: 40px;
    height: 40px;
    border: 1px solid #E8E0D8;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1F2E;
    transition: all .15s;
    flex-shrink: 0;
}
.nav-close:hover { background: #F8F5F5; border-color: #B0A09A; }

.nav-drawer-links {
    padding: 8px 0;
    flex: 1 1 auto;
    display: block !important;       /* override any global flex */
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    height: auto !important;
}
.nav-drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: #1A1F2E;
    text-decoration: none;
    border-bottom: 1px solid #F4EDE5;
    transition: background .15s, color .15s, padding-left .2s;
}
.nav-drawer-links a::after {
    content: '→';
    color: #C0B0B0;
    font-size: 1.05rem;
    transition: transform .2s, color .15s;
}
.nav-drawer-links a:hover {
    background: #FBF6EE;
    color: #871621;
    padding-left: 30px;
}
.nav-drawer-links a:hover::after { color: #871621; transform: translateX(3px); }

.nav-drawer-foot {
    padding: 20px 22px 24px;
    border-top: 1px solid #E8E0D8;
    background: #FBF8F4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.nav-drawer-outline,
.nav-drawer-solid {
    display: block;
    text-align: center;
    font-size: .95rem;
    font-weight: 600;
    padding: .85rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}
.nav-drawer-outline {
    border: 1px solid #D6CCCC;
    color: #2C3A52;
    background: #fff;
}
.nav-drawer-outline:hover { background: #F8F5F5; border-color: #B0A09A; }
.nav-drawer-solid {
    border: none;
    background: #871621;
    color: #fff;
    box-shadow: 0 4px 14px rgba(135,22,33,.2);
}
.nav-drawer-solid:hover {
    background: #9E1B25;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(135,22,33,.32);
}

body.nav-locked { overflow: hidden; }

@media (min-width: 769px) {
    .nav-drawer,
    .nav-overlay {
        display: none !important;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    nav {
        padding: 0 1.25rem;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-burger {
        display: block;
    }

    .hero {
        padding: calc(var(--nav-h) + 3rem) 1.25rem 3rem;
    }

    .trust-bar {
        flex-direction: column;
        align-items: center;
        gap: .75rem;
    }

    .trust-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: .6rem 1rem;
        width: 100%;
        justify-content: center;
    }

        .trust-item:last-child {
            border-bottom: none;
        }

    .section-wrap {
        padding: 3rem 1.25rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }

    .f-links {
        justify-content: center;
    }
}
