﻿/* ═══════════════════════════════════════════════════════════════
   RénoValo / jfocus.pro — styles globaux (marketing)
   Charte : navy #213A53 · vert #60CF86 · fond clair
   ═══════════════════════════════════════════════════════════════ */

:root {
    --navy: #213A53;
    --navy-dark: #1a2f44;
    --navy-deep: #0f1c28;
    --brand: #60CF86;
    --brand-dark: #4db870;
    --surface: #ffffff;
    --surface-alt: #f4f7fa;
    --text: #213A53;
    --text-muted: #5f7f9c;
    --border: #dce4ec;
    --hero-premium-image: url('../assets/hero-premium-bg.webp');
    --hero-premium-position: 68% center;
    --hero-premium-overlay: linear-gradient(
        108deg,
        rgba(17, 42, 70, 0.92) 0%,
        rgba(17, 42, 70, 0.82) 42%,
        rgba(17, 42, 70, 0.68) 100%
    );
}

/* ── Base ── */
body {
    background-color: var(--surface);
    color: var(--text);
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: #b8c9d9; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ── Navigation ── */
.glass-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(33, 58, 83, 0.06);
}

.logo-wrap {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.logo-img {
    filter: none;
}

.brand-tagline,
.brand-baseline {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    text-transform: none;
    line-height: 1.25;
}

.brand-by-jfocus {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    white-space: nowrap;
}

.hero-by-jfocus {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.header-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

a.header-brand.items-center {
    align-items: center;
}

.header-brand-stack,
.nav-brand-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
    line-height: 1.2;
}

.header-brand-icon,
.nav-brand-icon {
    width: auto;
    height: 2.65rem;
    max-height: 3.5rem;
    aspect-ratio: 1;
    object-fit: contain;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .header-brand-icon,
    .nav-brand-icon {
        /* wordmark + gap + baseline + marge visuelle GIF */
        height: calc(1.75rem + 0.1rem + 0.72rem + 0.55rem);
    }
}

.header-brand-text {
    height: 1.65rem;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .header-brand-text { height: 1.75rem; }
}

/* Barre verticale signature — retirée (bande verte indésirable mobile/desktop) */
.brand-bar-vertical {
    display: none !important;
}

/* ── Hero navy ── */
.hero-navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-navy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(96, 207, 134, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.hero-navy .gradient-text {
    background: linear-gradient(135deg, #7dd9a0 0%, #60CF86 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Typographie & effets ── */
.gradient-text {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-glow {
    background: radial-gradient(circle at center, rgba(96, 207, 134, 0.1) 0%, transparent 70%);
}

.hero-gradient {
    background: radial-gradient(ellipse at center, rgba(96, 207, 134, 0.06) 0%, transparent 70%);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(96, 207, 134, 0.12);
    border: 1px solid rgba(96, 207, 134, 0.35);
    color: var(--brand-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Design system : cartes ── */
.glass-card,
.card,
.tactical-card,
.product-card,
.feature-card,
.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(33, 58, 83, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.glass-card:hover,
.card:hover,
.tactical-card:hover,
.product-card:hover,
.feature-card:hover,
.section-card:hover {
    border-color: rgba(96, 207, 134, 0.5);
    box-shadow: 0 8px 24px rgba(33, 58, 83, 0.1);
}

.card-green { border-color: rgba(96, 207, 134, 0.45); }

/* ── Design system : boutons CTA ── */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background-color: var(--brand);
    color: var(--navy-deep);
    font-weight: 700;
    border-radius: 9999px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(96, 207, 134, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.btn-cta:hover {
    background-color: var(--brand-dark);
    color: #fff;
}

.btn-cta-block {
    display: flex;
    width: 100%;
}

/* Feedback tactile mobile */
.btn-cta:active,
.btn-cta-block:active,
.btn-cta-outline:active,
.btn-cta-nav-pro:active,
.btn-hero-outline:active,
.btn-nav-secondary:active,
.plan-card-cta:active,
.site-sticky-cta .btn-cta:active,
.site-bottom-tab a:active {
    transform: scale(0.98);
}

.btn-nav-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #fff;
    color: #213A53;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-nav-secondary:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: transparent;
    color: var(--navy);
    font-weight: 600;
    border: 2px solid var(--navy);
    border-radius: 9999px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-cta-outline:hover {
    background: var(--navy);
    color: #fff;
}

.btn-cta-outline.hero-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-cta-outline.hero-outline:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

/* ── Listes à puces ── */
.check-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color 0.2s ease;
}

.check-item:hover {
    color: var(--text);
}

.check-icon {
    color: var(--brand-dark);
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Footer — compact, unifié avec le CTA final ── */
.site-footer {
    background: #162a3d;
    color: #94a3b8;
    border-top: none;
    padding: 1.25rem 1.25rem 0.85rem;
}

.site-footer-inner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.site-footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 1.5rem 1.5rem 1.25rem;
        background: linear-gradient(180deg, #162a3d 0%, var(--navy-deep) 100%);
    }

    .site-footer-inner {
        align-items: stretch;
        gap: 0.85rem;
    }

    .site-footer-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 1.25rem;
    }
}

.site-footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    max-width: none;
    margin: 0;
    text-align: center;
}

.site-footer-nav-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 1.25rem;
}

.site-footer-nav-legal {
    display: block;
}

@media (min-width: 768px) {
    .site-footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.35rem 1.5rem;
        text-align: left;
    }

    .site-footer-nav-row {
        justify-content: flex-end;
    }
}

.site-footer-nav a,
.site-footer a {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-footer-nav a:hover,
.site-footer a:hover {
    color: #e2e8f0;
}

.site-footer-nav a.text-brand-400,
.site-footer-nav a[aria-current="page"] {
    color: #cbd5e1;
    font-weight: 500;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

@media (min-width: 768px) {
    .site-footer-brand {
        align-items: flex-start;
    }
}

.site-footer-lockup {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.site-footer-lockup-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.site-footer-product {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    font-weight: 500;
    color: #cbd5e1;
}

.site-footer-editor-inline {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.site-footer-product .text-white,
.site-footer-product .text-brand-400 {
    color: inherit !important;
    font-weight: 500 !important;
}

.site-footer-domain,
.site-footer-editor-text {
    display: none !important;
}

.site-footer-jfocus-logo-link {
    display: block;
    flex-shrink: 0;
    line-height: 0;
    align-self: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.site-footer-jfocus-logo-link:hover {
    opacity: 0.9;
}

.site-footer-jfocus-logo {
    display: block;
    height: 22px;
    width: auto;
}

.site-footer-copy {
    width: 100%;
    max-width: 16rem;
    margin: 0 auto;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
    font-size: 0.6875rem;
    line-height: 1.35;
    font-weight: 400;
    color: #64748b;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer-copy {
        max-width: none;
        margin: 0;
        text-align: left;
        border-top-color: rgba(255, 255, 255, 0.08);
    }
}

.site-footer-copy a {
    color: #64748b;
    text-decoration: none;
}

.site-footer-copy a:hover {
    color: #94a3b8;
}

body.has-bottom-tab .site-footer {
    padding-bottom: 1rem; /* le padding du body suffit pour la bottom nav */
}

.ix-cta-final + .site-footer {
    border-top: none;
}

/* ── Animations ── */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-reveal.fade-in-up {
    transform: translateY(28px);
}

.section-reveal.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-up,
    .section-reveal.fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.delay-100 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pioneer-marquee {
    display: flex;
    width: max-content;
    animation: pioneer-marquee 16s linear infinite;
}

@keyframes pioneer-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (min-width: 768px) {
    .pioneer-marquee {
        animation: none;
    }
}

/* ── Utilitaires ── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(96, 207, 134, 0.12);
    border: 1px solid rgba(96, 207, 134, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-dark);
}

.brand-500 { color: var(--brand); }
.text-brand-500 { color: var(--brand-dark); }

/* ── Accessibilité ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   Mobile UX : menu burger (panel haut), bottom tab, sticky CTA
   ═══════════════════════════════════════════════════════════ */

body.nav-drawer-open {
    overflow: hidden;
}

body.nav-drawer-open .nav-premium {
    z-index: 72;
    transform: none !important; /* évite le containing block qui coupe le panel */
}

.nav-mobile-overlay {
    display: none;
}

@media (max-width: 767px) {
    .nav-premium {
        transition: background 0.25s ease, border-color 0.25s ease;
        will-change: auto;
        overflow: visible;
    }

    .nav-premium.nav-hidden {
        /* désactivé : le header reste toujours visible */
        transform: none;
        pointer-events: auto;
    }

    .nav-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 70;
        background: rgba(33, 58, 83, 0.6);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.28s ease, visibility 0.28s ease;
    }

    .nav-mobile-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Panel plein largeur sous le header (plus de tiroir latéral vide) */
    #mobile-menu.nav-premium-mobile {
        position: fixed;
        top: 84px;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        max-width: none;
        z-index: 71;
        margin: 0;
        padding: 0;
        background: #fff;
        border: none;
        border-radius: 0 0 1.25rem 1.25rem;
        box-shadow: 0 20px 40px rgba(15, 28, 40, 0.18);
        transform: translateY(-0.75rem);
        opacity: 0;
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0.28s ease;
        overflow: hidden;
        display: block !important;
        visibility: hidden;
        pointer-events: none;
    }

    #mobile-menu.nav-premium-mobile.hidden {
        display: block !important;
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-0.75rem);
    }

    #mobile-menu.nav-premium-mobile.is-open,
    #mobile-menu.nav-premium-mobile.hidden.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.25rem;
        border-bottom: 1px solid #e8edf3;
        background: #fff;
    }

    .nav-drawer-head-title {
        margin: 0;
        font-size: 0.8125rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #64748b;
    }

    .nav-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border: none;
        border-radius: 0.65rem;
        background: #f1f5f9;
        color: #213A53;
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .nav-drawer-close:active {
        transform: scale(0.96);
        background: #e2e8f0;
    }

    .nav-drawer-close svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .nav-mobile-panel {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .nav-mobile-link {
        display: block;
        color: #475569;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .nav-mobile-link:active {
        transform: scale(0.98);
        color: #213A53;
    }

    .nav-mobile-signup {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.7rem 1rem;
        border-radius: 0.65rem;
        background: #60CF86;
        color: #0f1c28 !important;
        font-size: 0.9375rem;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(96, 207, 134, 0.3);
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .nav-mobile-signup:active {
        transform: scale(0.98);
        background: #4db870;
    }

    .nav-mobile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
        padding-top: 0.35rem;
        border-top: 1px solid #e8edf3;
        margin-top: 0.25rem;
    }

    .nav-mobile-meta a {
        color: #94a3b8;
        font-size: 0.8125rem;
        font-weight: 500;
        text-decoration: none;
    }

    .nav-mobile-meta a:active {
        color: #64748b;
    }

    .site-bottom-tab {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 45;
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        gap: 0.15rem;
        padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(226, 232, 240, 0.7);
        box-shadow: 0 -8px 28px rgba(33, 58, 83, 0.08);
    }

    .site-bottom-tab a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        min-width: 0;
        padding: 0.35rem 0.25rem;
        border-radius: 0.75rem;
        color: #64748b;
        text-decoration: none;
        font-size: 0.625rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .site-bottom-tab a svg {
        width: 1.2rem;
        height: 1.2rem;
        stroke-width: 2.1;
    }

    .site-bottom-tab a.is-active {
        color: #213A53;
        background: rgba(96, 207, 134, 0.14);
    }

    .site-bottom-tab a.is-active svg {
        color: #3d9a5a;
    }

    body.has-bottom-tab {
        padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }

    .site-sticky-cta {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
        z-index: 44;
        padding-top: 2rem;
        background: linear-gradient(to top, rgba(255, 255, 255, 0.97) 42%, rgba(255, 255, 255, 0));
        pointer-events: none;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.28s ease, transform 0.28s ease;
    }

    .site-sticky-cta.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .site-sticky-cta .btn-cta {
        pointer-events: auto;
        width: 100%;
        box-shadow: 0 8px 24px rgba(96, 207, 134, 0.35);
    }

    body.has-sticky-cta .site-footer {
        padding-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .site-bottom-tab,
    .site-sticky-cta,
    .nav-mobile-overlay,
    .nav-drawer-head,
    .nav-mobile-panel {
        display: none !important;
    }
}
