/**
 * Vehigest  surcharge UIkit
 * Palette & typo centralises ici.
 */

:root {
    /* Ardoise / technique */
    --vg-slate-950: #0f172a;
    --vg-slate-900: #1e293b;
    --vg-slate-700: #334155;
    --vg-slate-500: #64748b;
    --vg-slate-200: #e2e8f0;
    --vg-slate-100: #f1f5f9;
    --vg-white: #ffffff;

    /* Accent acier (CTA) */
    --vg-accent: #38bdf8;
    --vg-accent-hover: #0ea5e9;
    --vg-accent-ink: #0c4a6e;

    /* Surfaces */
    --vg-bg: #f8fafc;
    --vg-surface: #ffffff;
    --vg-border: #dbe3ee;

    /* Typo */
    --vg-font: "IBM Plex Sans", "Segoe UI", sans-serif;
    --vg-font-display: "IBM Plex Serif", Georgia, serif;

    /* Hauteur navbar sticky (compensation ancres) */
    --vg-header-offset: 6rem;

    /* UIkit overrides */
    --uk-primary: var(--vg-accent);
}

/*  Base  */
html {
    scroll-behavior: smooth;
    /* Dcale le scroll des ancres sous la navbar sticky */
    scroll-padding-top: var(--vg-header-offset);
}

/*
 * Ancres sur les <section id="">.
 * margin ngatif + padding positif = layout inchang,
 * mais le haut de section s'aligne sous le menu (fiable avec sticky).
 */
#histoire,
#fonctions,
#comment-ca-marche,
#tarif,
#contact {
    scroll-margin-top: var(--vg-header-offset);
    margin-top: calc(-1 * var(--vg-header-offset));
    padding-top: calc(2.25rem + var(--vg-header-offset));
}

body {
    font-family: var(--vg-font);
    color: var(--vg-slate-900);
    background: var(--vg-bg);
    -webkit-font-smoothing: antialiased;
}

/*  Densit / moins d'espace vide  */
.uk-section-small {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}

.uk-section:not(.uk-section-xsmall):not(.uk-section-small):not(.uk-section-large):not(.hero):not(.section-cta) {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.section-title {
    margin-bottom: 0.4rem;
}

.section-subtitle {
    margin-bottom: 0;
    font-size: 1.05rem;
}


h1, h2, h3, .uk-logo, .uk-h1, .uk-h2, .uk-h3 {
    font-family: var(--vg-font-display);
    color: var(--vg-slate-950);
    letter-spacing: -0.02em;
}

.uk-text-lead,
.section-subtitle {
    color: var(--vg-slate-500);
    font-size: 1.125rem;
    line-height: 1.6;
}

.section-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-title--on-dark {
    color: var(--vg-white);
}

/*  Boutons  */
.uk-button {
    font-family: var(--vg-font);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 4px;
}

.uk-button-primary {
    background-color: var(--vg-accent);
    color: var(--vg-slate-950);
    border: 1px solid transparent;
}

.uk-button-primary:hover,
.uk-button-primary:focus {
    background-color: var(--vg-accent-hover);
    color: var(--vg-slate-950);
}

.uk-button-default.btn-ghost {
    background: transparent;
    color: var(--vg-white);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.uk-button-default.btn-ghost:hover,
.uk-button-default.btn-ghost:focus {
    background: rgba(255, 255, 255, 0.08);
    color: var(--vg-white);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Bouton connecter (navbar claire) */
.btn-connect {
    padding: 0 1.1rem;
    line-height: 2.2rem;
}

/*  Navbar  */
/* Fond sombre ds le dpart : texte clair toujours lisible (hero + sticky) */
.site-header .uk-navbar-container {
    min-height: 5rem;
    background: rgba(15, 23, 42, 0.88);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header .uk-navbar-container.uk-navbar-sticky {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header.uk-sticky-placeholder + .uk-sticky,
.site-header.uk-sticky {
    z-index: 980;
}

.site-header .uk-navbar-nav > li > a,
.site-header .uk-navbar-nav > li > a:hover,
.site-header .uk-navbar-nav > li.uk-active > a,
.site-header .uk-navbar-toggle,
.site-header .uk-navbar-toggle-icon,
.site-header .uk-logo {
    color: #ffffff !important;
}

.site-header .uk-navbar-nav > li > a {
    font-weight: 500;
    text-transform: none;
    font-size: 0.95rem;
    opacity: 0.9;
}

.site-header .uk-navbar-nav > li > a:hover,
.site-header .uk-navbar-nav > li.uk-active > a {
    opacity: 1;
}

.site-header .uk-navbar-toggle svg,
.site-header [uk-navbar-toggle-icon] {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Logo */
.site-header .uk-navbar-left {
    margin-right: auto;
}

.site-logo.uk-navbar-item {
    gap: 0;
    padding: 0 !important;
    margin: 0;
    min-height: 0 !important;
    align-self: center;
}

.site-logo__img {
    display: block !important;
    height: 3.5rem !important;
    width: auto !important;
    max-height: none !important;
    max-width: 16rem !important;
    border-radius: 4px;
    background: #ffffff;
}

.site-header .uk-logo img,
.site-header .uk-logo > * {
    max-height: none !important;
}

.site-header .uk-logo.site-logo,
.site-header .site-logo {
    color: inherit !important;
}

.mobile-nav {
    background: var(--vg-slate-950);
}

.mobile-nav .uk-nav a {
    color: rgba(255, 255, 255, 0.88);
}

/*  Hero  */
.hero {
    position: relative;
    min-height: 0;
    padding-top: 5rem;
    padding-bottom: 2.75rem;
    background:
        linear-gradient(165deg, var(--vg-slate-950) 0%, var(--vg-slate-900) 48%, #1a3348 100%);
    color: var(--vg-white);
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    inset: auto -10% -30% 20%;
    height: 70%;
    background:
        radial-gradient(ellipse at center, rgba(56, 189, 248, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero__brand {
    font-family: var(--vg-font);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    letter-spacing: -0.04em;
    color: var(--vg-accent);
    margin: 0 0 0.65rem;
    line-height: 1.1;
}

.hero__title {
    font-size: clamp(1.65rem, 3.6vw, 2.4rem);
    font-weight: 600;
    color: var(--vg-white);
    line-height: 1.18;
    margin: 0 0 0.75rem;
    max-width: 20ch;
}

.hero__lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.88);
    max-width: 36rem;
    margin: 0 0 1.25rem;
}

.hero__actions .uk-button-primary {
    min-width: 11rem;
}

.section-genese {
    background: var(--vg-bg);
}

.section-eyebrow {
    font-family: var(--vg-font);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vg-slate-500);
    margin: 0 0 0.5rem;
}

.genese-text {
    color: var(--vg-slate-700);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.genese-text.uk-text-lead {
    color: var(--vg-slate-700);
    font-size: 1.08rem;
}

.genese-text:last-child {
    margin-bottom: 0;
}

.genese-visual {
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--vg-border);
    background: var(--vg-slate-100);
    aspect-ratio: 16 / 10;
}

.genese-visual__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/*  Valeurs  */
.section-valeurs {
    background: var(--vg-surface);
    border-top: 1px solid var(--vg-border);
    border-bottom: 1px solid var(--vg-border);
}

/*  Features  */
.section-features {
    background: var(--vg-bg);
}

.feature-card.uk-card-body {
    padding: 1.15rem 1.2rem;
}

.feature-card {
    border: 1px solid var(--vg-border);
    border-radius: 6px;
    box-shadow: none;
    background: var(--vg-surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.feature-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.55rem;
    color: var(--vg-accent-ink);
    background: #e0f2fe;
    border-radius: 4px;
}

.feature-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--vg-slate-500);
    font-size: 0.98rem;
    line-height: 1.55;
}

/*  How it works  */
.section-how {
    background: var(--vg-surface);
    border-top: 1px solid var(--vg-border);
}

.step-item {
    position: relative;
    padding-left: 0.25rem;
}

.step-item__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.65rem;
    font-family: var(--vg-font);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--vg-slate-950);
    background: var(--vg-accent);
    border-radius: 4px;
}

.step-item__title {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.step-item p {
    color: var(--vg-slate-500);
    line-height: 1.6;
}

/*  Pricing  */
.section-pricing {
    background: var(--vg-bg);
}

.pricing-card {
    background: var(--vg-surface);
    border: 1px solid var(--vg-border);
    border-radius: 8px;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.pricing-card__label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--vg-slate-500);
    margin: 0 0 0.5rem;
}

.pricing-card__price {
    font-family: var(--vg-font);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 700;
    color: var(--vg-slate-950);
    margin: 0.75rem 0 0.25rem;
}

.pricing-card__note {
    color: var(--vg-slate-500);
    margin: 0 0 1.5rem;
}

.pricing-card__list {
    display: inline-block;
    text-align: left;
    margin: 0 auto 1.15rem;
    color: var(--vg-slate-700);
}

/*  CTA  */
.section-cta.uk-section-small {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
}

.section-cta {
    background:
        linear-gradient(160deg, var(--vg-slate-900) 0%, #163044 100%);
    color: var(--vg-white);
}

.cta-lead {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.88);
    max-width: 34rem;
    margin: 0 auto 1.15rem;
}

.cta-email {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.95rem;
}

.cta-email a {
    color: var(--vg-accent);
    text-decoration: none;
    font-weight: 500;
}

.cta-email a:hover,
.cta-email a:focus {
    text-decoration: underline;
}

/*  Footer  */
.site-footer {
    background: var(--vg-slate-950);
    color: rgba(226, 232, 240, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__brand {
    font-weight: 700;
    color: var(--vg-white);
    letter-spacing: -0.02em;
}

.site-footer__meta {
    color: rgba(148, 163, 184, 0.9);
}

.site-footer a {
    color: var(--vg-accent);
}

.site-footer a:hover {
    color: var(--vg-accent-hover);
}

/*  Accessibilit focus  */
a:focus-visible,
.uk-button:focus-visible {
    outline: 2px solid var(--vg-accent);
    outline-offset: 3px;
}

/*  Mobile  */
@media (max-width: 639px) {
    .hero {
        min-height: auto;
        padding-top: 4.5rem;
        padding-bottom: 2.25rem;
    }

    .hero__title {
        max-width: none;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .uk-button {
        width: 100%;
        text-align: center;
    }

    .pricing-card {
        padding: 2rem 1.25rem;
    }
}
