/* =============================================================================
   YouVault — Thème YouOnline.fr (clair, pill, constellations)
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@200;300;400;500;600;700;800;900&family=Caveat:wght@500;600;700&display=swap');

:root {
    --yv-primary:        #407696;
    --yv-primary-dark:   #2f5b76;
    --yv-primary-shadow: rgba(64,118,150,0.20);
    --yv-accent:         #EB9222;
    --yv-accent-dark:    #d97c0a;
    --yv-accent-soft:    #fef1e0;
    --yv-text:           #1a1a1a;
    --yv-text-muted:     #6a6c72;
    --yv-text-light:     #98999b;
    --yv-bg:             #faf8f3;
    --yv-bg-white:       #ffffff;
    --yv-bg-card:        #ffffff;
    --yv-border:         #e9e5dc;
    --yv-success:        #03b103;

    --yv-radius-pill:    999px;
    --yv-radius-card:    16px;
    --yv-radius-icon:    14px;
    --yv-shadow-soft:    0 8px 30px rgba(60,40,15,0.05);
    --yv-shadow-card:    0 12px 40px rgba(60,40,15,0.08);
    --yv-shadow-btn:     0 8px 20px rgba(235,146,34,0.30);
    --yv-shadow-btn-blue: 0 8px 20px rgba(64,118,150,0.25);
    --yv-transition:     0.3s ease;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Catamaran', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--yv-text-muted);
    background: var(--yv-bg);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Motif "constellations" en fond — pseudo body pour rester subtil */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(64,118,150,.18) 1.5px, transparent 2px),
        radial-gradient(circle at 78% 14%, rgba(235,146,34,.25) 1.5px, transparent 2px),
        radial-gradient(circle at 12% 68%, rgba(235,146,34,.18) 1px, transparent 1.6px),
        radial-gradient(circle at 88% 78%, rgba(64,118,150,.22) 1.5px, transparent 2px),
        radial-gradient(circle at 45% 92%, rgba(235,146,34,.15) 1px, transparent 1.5px),
        radial-gradient(circle at 62% 35%, rgba(64,118,150,.14) 1px, transparent 1.5px),
        radial-gradient(circle at 28% 48%, rgba(235,146,34,.10) 1px, transparent 1.4px),
        radial-gradient(circle at 92% 50%, rgba(64,118,150,.10) 1px, transparent 1.4px),
        radial-gradient(circle at 5% 5%, rgba(64,118,150,.12) 1px, transparent 1.5px),
        radial-gradient(circle at 95% 95%, rgba(235,146,34,.12) 1px, transparent 1.5px);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}
body > * { position: relative; z-index: 1; }

p { margin: 0 0 1rem; }
a { color: var(--yv-primary); text-decoration: none; transition: color var(--yv-transition); }
a:hover { color: var(--yv-accent); }

/* ---------- Typo titres ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Catamaran', sans-serif;
    color: var(--yv-text);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 .8rem;
}
h1 { font-size: 72px; }
h2 { font-size: 52px; }
h3 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
h4 { font-size: 19px; font-weight: 700; }
.yv-accent-word { color: var(--yv-primary); }
.yv-accent-word-orange { color: var(--yv-accent); }
.yv-script {
    font-family: 'Caveat', cursive;
    color: var(--yv-accent);
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0;
}
@media (max-width: 768px) {
    h1 { font-size: 42px; }
    h2 { font-size: 34px; }
}

/* ---------- Eyebrow ---------- */
.yv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--yv-accent);
    margin-bottom: 18px;
}
.yv-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--yv-accent);
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-tight { padding: 60px 0; }
.section-white { background: var(--yv-bg-white); }
@media (max-width: 768px) { .section { padding: 60px 0; } }

/* ---------- Boutons pill (style YouOnline) ---------- */
.btn-yv,
.btn-yv-outline,
.btn-yv-blue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--yv-radius-pill);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: all var(--yv-transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}
.btn-yv {
    background: var(--yv-accent);
    color: #fff;
    box-shadow: var(--yv-shadow-btn);
}
.btn-yv:hover {
    background: var(--yv-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(235,146,34,0.35);
}
.btn-yv-outline {
    background: var(--yv-bg-white);
    color: var(--yv-text);
    border: 1px solid var(--yv-border);
    box-shadow: var(--yv-shadow-soft);
}
.btn-yv-outline:hover {
    background: var(--yv-bg-white);
    color: var(--yv-accent);
    transform: translateY(-2px);
    box-shadow: var(--yv-shadow-card);
}
.btn-yv-blue {
    background: var(--yv-primary);
    color: #fff;
    box-shadow: var(--yv-shadow-btn-blue);
}
.btn-yv-blue:hover {
    background: var(--yv-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}
.btn-yv-sm { padding: 10px 20px; font-size: 13px; }
.btn-yv .bi, .btn-yv-blue .bi, .btn-yv-outline .bi { font-size: 14px; }

/* ---------- Navbar pill (style YouOnline) ---------- */
.yv-navbar {
    padding: 18px 0;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.yv-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.yv-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
}
.yv-navbar .yv-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--yv-bg-white);
    border: 1px solid var(--yv-border);
    border-radius: var(--yv-radius-pill);
    box-shadow: var(--yv-shadow-soft);
}
.yv-navbar .yv-nav-pill a {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    color: var(--yv-text);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: var(--yv-radius-pill);
    transition: all var(--yv-transition);
    text-decoration: none;
}
.yv-navbar .yv-nav-pill a.active,
.yv-navbar .yv-nav-pill a:hover {
    background: var(--yv-text);
    color: #fff;
}
.yv-navbar .yv-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.yv-navbar-toggle {
    display: none;
    background: var(--yv-bg-white);
    border: 1px solid var(--yv-border);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
@media (max-width: 992px) {
    .yv-navbar-toggle { display: inline-flex; }
    .yv-navbar .yv-nav-pill,
    .yv-navbar .yv-nav-actions { display: none; }
    .yv-navbar.is-open .yv-nav-pill,
    .yv-navbar.is-open .yv-nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        padding: 16px;
    }
}

/* ---------- Hero (clair) ---------- */
.yv-hero {
    padding: 80px 0 60px;
    position: relative;
}
.yv-hero .yv-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--yv-accent-soft);
    color: var(--yv-accent-dark);
    border-radius: var(--yv-radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 30px;
}
.yv-hero .yv-badge-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yv-accent);
}
.yv-hero p.lead {
    font-size: 18px;
    color: var(--yv-text-muted);
    max-width: 580px;
    line-height: 1.7;
    margin: 20px 0 32px;
}
.yv-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- Stats inline ---------- */
.yv-stats {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    padding: 40px 0;
    border-top: 1px solid var(--yv-border);
    margin-top: 60px;
}
.yv-stat { display: flex; gap: 16px; align-items: baseline; }
.yv-stat .num {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}
.yv-stat .num-orange { color: var(--yv-accent); }
.yv-stat .num-blue { color: var(--yv-primary); }
.yv-stat .lbl {
    font-size: 13px;
    line-height: 1.4;
    color: var(--yv-text-muted);
    max-width: 140px;
}

/* ---------- Cards services ---------- */
.yv-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--yv-bg-white);
    border-radius: var(--yv-radius-card);
    box-shadow: var(--yv-shadow-soft);
    overflow: hidden;
    border: 1px solid var(--yv-border);
}
@media (max-width: 992px) { .yv-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .yv-services-grid { grid-template-columns: 1fr; } }
.yv-service {
    padding: 36px 32px;
    border-right: 1px solid var(--yv-border);
    border-bottom: 1px solid var(--yv-border);
    transition: background var(--yv-transition);
    position: relative;
}
.yv-service:hover { background: #fdfcf8; }
.yv-service.is-featured {
    box-shadow: inset 0 0 0 2px var(--yv-accent);
    border-radius: var(--yv-radius-card);
}
.yv-service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--yv-radius-icon);
    background: var(--yv-accent-soft);
    color: var(--yv-accent);
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.yv-service h3 { font-size: 22px; margin-bottom: 12px; }
.yv-service p { color: var(--yv-text-muted); margin-bottom: 18px; font-size: 14.5px; }
.yv-service .yv-link {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yv-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color var(--yv-transition), gap var(--yv-transition);
}
.yv-service .yv-link:hover { color: var(--yv-accent); gap: 12px; }
.yv-service .yv-badge {
    display: inline-block;
    background: var(--yv-accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--yv-radius-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

/* ---------- Steps (Comment ça marche) ---------- */
.yv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .yv-steps { grid-template-columns: 1fr; } }
.yv-step {
    background: var(--yv-bg-white);
    border: 1px solid var(--yv-border);
    border-radius: var(--yv-radius-card);
    padding: 40px 30px;
    box-shadow: var(--yv-shadow-soft);
    position: relative;
}
.yv-step-num {
    position: absolute;
    top: -22px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yv-text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    box-shadow: var(--yv-shadow-soft);
}
.yv-step h3 { margin-top: 20px; }

/* ---------- Pricing ---------- */
.yv-pricing {
    background: var(--yv-bg-white);
    border: 1px solid var(--yv-border);
    border-radius: var(--yv-radius-card);
    padding: 40px 32px;
    box-shadow: var(--yv-shadow-soft);
    height: 100%;
    position: relative;
    transition: transform var(--yv-transition), box-shadow var(--yv-transition);
}
.yv-pricing:hover { transform: translateY(-4px); box-shadow: var(--yv-shadow-card); }
.yv-pricing.is-featured {
    border: 2px solid var(--yv-accent);
}
.yv-pricing h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--yv-text-muted);
    font-weight: 700;
    margin-bottom: 16px;
}
.yv-price {
    font-size: 56px;
    font-weight: 900;
    color: var(--yv-text);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 6px;
}
.yv-price small {
    font-size: 16px;
    font-weight: 600;
    color: var(--yv-text-muted);
    letter-spacing: 0;
}
.yv-pricing ul {
    list-style: none;
    padding: 0;
    margin: 26px 0;
    border-top: 1px solid var(--yv-border);
    padding-top: 26px;
}
.yv-pricing ul li {
    padding: 8px 0;
    display: flex;
    align-items: start;
    gap: 10px;
    color: var(--yv-text-muted);
    font-size: 15px;
}
.yv-pricing ul li i {
    color: var(--yv-success);
    font-size: 18px;
    line-height: 1.5;
    flex-shrink: 0;
}
.yv-pricing-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--yv-accent);
    color: #fff;
    padding: 5px 14px;
    border-radius: var(--yv-radius-pill);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------- Forms ---------- */
.yv-form .form-control,
.yv-form .form-select {
    border: 1px solid var(--yv-border);
    border-radius: 12px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--yv-text);
    background: var(--yv-bg-white);
    transition: border-color var(--yv-transition), box-shadow var(--yv-transition);
    width: 100%;
}
.yv-form .form-control:focus,
.yv-form .form-select:focus {
    outline: none;
    border-color: var(--yv-accent);
    box-shadow: 0 0 0 4px rgba(235,146,34,0.10);
}
.yv-form .form-label { font-weight: 600; font-size: 14px; color: var(--yv-text); display: block; margin-bottom: 6px; }

/* Auth card */
.yv-auth-card {
    background: var(--yv-bg-white);
    border: 1px solid var(--yv-border);
    border-radius: var(--yv-radius-card);
    padding: 38px 36px;
    box-shadow: var(--yv-shadow-card);
}

/* ---------- Footer ---------- */
.yv-footer {
    background: var(--yv-bg-white);
    border-top: 1px solid var(--yv-border);
    padding: 70px 0 30px;
    margin-top: 60px;
}
.yv-footer h6 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--yv-text);
    margin-bottom: 18px;
    font-weight: 800;
}
.yv-footer ul { list-style: none; padding: 0; margin: 0; }
.yv-footer ul li { padding: 5px 0; }
.yv-footer a {
    color: var(--yv-text-muted);
    font-size: 14.5px;
    transition: color var(--yv-transition);
}
.yv-footer a:hover { color: var(--yv-accent); }
.yv-footer-bottom {
    border-top: 1px solid var(--yv-border);
    padding-top: 25px;
    margin-top: 50px;
    color: var(--yv-text-muted);
    font-size: 13px;
}

/* ---------- Utilités Bootstrap-like ---------- */
.text-yv-primary { color: var(--yv-primary) !important; }
.text-yv-accent  { color: var(--yv-accent)  !important; }
.bg-yv-white     { background: var(--yv-bg-white) !important; }
.shadow-yv       { box-shadow: var(--yv-shadow-card); }

/* ---------- Dashboard (espace app) ---------- */
.app-card {
    background: #fff;
    border: 1px solid var(--yv-border);
    border-radius: var(--yv-radius-card);
    box-shadow: var(--yv-shadow-soft);
}
