/* ================================================================
   global.css — LaFluent
   Styles partagés : reset, variables, nav, page-header, footer,
   scroll-reveal, menu mobile, responsive commun.
   Source de vérité : tarifs.html (2025-03)
   ================================================================ */

/* ── RESET & BASE ───────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #0E3E49;
    --secondary: #306A77;
    --accent-data: #3598C0;
    --accent-territory: #79A79B;
    --bg-main: #E4DABF;
    --bg-secondary: #ABD4C1;
    --accent-glow: rgba(53, 152, 192, 0.3);
    --hover-glow: rgba(53, 152, 192, 0.4);
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--bg-main);
    color: var(--primary);
    overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(14, 62, 73, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(53, 152, 192, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-container svg { width: 50px; height: 50px; filter: drop-shadow(0 0 8px var(--accent-glow)); }

.logo-container .brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-data) 0%, var(--accent-territory) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-la { font-size: 0.78em; font-weight: 700; letter-spacing: 0.04em; }
.brand-fluent { margin-left: 0.12em; font-weight: 900; }
.brand-reg-sizeup { font-size: 0.60em; font-weight: 100; vertical-align: super; margin-left: 0.1em; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent-data), var(--accent-territory));
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--accent-data); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent-data); }
.nav-links a.active::after { width: 100%; }

.nav-links .btn-connect {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent-territory));
    border-radius: 6px;
    transition: all 0.3s ease;
}
.nav-links .btn-connect:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--hover-glow); }
.nav-links .btn-connect::after { display: none; }

/* ── PAGE HEADER (bandeau haut commun aux pages vitrines) ────────── */
.page-header {
    padding: 9rem 2rem 9rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(53,152,192,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(228,218,191,0) 0%, var(--bg-main) 100%);
    pointer-events: none;
}

.page-header-inner {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-data);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    max-width: 560px;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
    background: var(--primary);
    padding: 4rem 0rem 0rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .brand-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--accent-data) 0%, var(--accent-territory) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-col h5 {
    color: rgba(255,255,255,0.55);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent-territory); }

.footer-bottom {
    max-width: 1200px;
    margin: 0.9rem auto 0;
    padding: 1rem 0 0;
    padding-bottom: 4rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

/* ── DATA-REVEAL (animation scroll) ─────────────────────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── MOBILE MENU ─────────────────────────────────────────────────── */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px; height: 3px;
    background: var(--accent-data);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ── RESPONSIVE — éléments globaux ───────────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 80px; left: 0; right: 0;
        background: rgba(14, 62, 73, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: all; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
