/* ================================================================
   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; }

/* ── DROPDOWN (sous-menu Trajectoires) ─────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
    color: var(--accent-territory) !important;
}
.nav-dropdown-trigger::after {
    background: linear-gradient(90deg, var(--accent-territory), var(--accent-data)) !important;
}
.nav-dropdown-trigger.active { color: var(--accent-territory) !important; }
.nav-dropdown-trigger.active::after { width: 100% !important; }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 280px;
    list-style: none;
    background: rgba(14, 62, 73, 0.97);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(53, 152, 192, 0.18);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 1001;
}

/* Bridge invisible pour éviter la fermeture au trajet souris trigger → menu */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    height: 1rem;
    width: 100%;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li { list-style: none; }

.nav-dropdown-menu a {
    display: block;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 0.9rem !important;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-dropdown-menu a::after { display: none; }

.nav-dropdown-menu a:hover {
    background: rgba(53, 152, 192, 0.12);
    color: var(--accent-data) !important;
}

.nav-dropdown-menu a.active {
    color: var(--accent-territory) !important;
    background: rgba(121, 167, 155, 0.10);
}

/* ── 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 FADE — transition bg-main → primary avant le footer ─── */
/*    Bloc vide inséré avant <!--# include footer.html --> sur les    */
/*    pages marketing (hors dashboards) pour un fondu cohérent.       */
.footer-fade {
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--primary) 100%);
    height: 80px;
    pointer-events: none;
}

.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; }

    /* Dropdown mobile : replié en flux, ouvert au tap via .open */
    .nav-dropdown { width: 100%; }
    .nav-dropdown::after { display: none; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1.25rem;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        pointer-events: none;
    }
    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 200px;
        padding: 0.5rem 0 0.5rem 1.25rem;
        pointer-events: all;
    }
    .nav-dropdown-menu a {
        padding: 0.6rem 0.75rem;
        font-size: 0.88rem !important;
    }

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

/* ================================================================
   GLOBAL ADDITIONS — Styles communs ajoutés après audit CSS
   ================================================================ */

/* --- SECTIONS COMMUNES --- */

/* Section kicker */
.section-kicker {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-data);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-kicker::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent-data);
}

/* Section title - standardisé */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
    line-height: 1.25;
}

/* Main content - container standard */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* --- CARTES GÉNÉRIQUES --- */

/* Carte blanche standard */
.card {
    background: white;
    border-radius: 14px;
    border: 1.5px solid rgba(53, 152, 192, 0.12);
    padding: 1.5rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
    border-color: rgba(53, 152, 192, 0.3);
    box-shadow: 0 4px 16px rgba(53, 152, 192, 0.08);
}

/* --- BOUTONS --- */

/* Bouton primaire */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: white;
    color: var(--primary);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Bouton secondaire */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- ANIMATIONS --- */

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

/* Classe utilitaire */
.card-hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* --- UTILITAIRES --- */
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: rgba(14, 62, 73, 0.45); }
