/* ═══════════════════════════════════════════════
   The Flight Desk — style.css
   Partagé par index.html, blog.html, articles/*.html
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ───────────────────────────────── */
:root {
    --p:        #3B6FE8;
    --p-dk:     #2D5BC4;
    --p-lt:     #EEF2FD;
    --bg:       #FAFAF8;
    --white:    #FFFFFF;
    --t:        #111827;
    --t2:       #374151;
    --muted:    #6B7280;
    --dim:      #9CA3AF;
    --bdr:      #E5E7EB;
    --ok:       #059669;
    --r:        12px;
    --r-sm:     9px;
    --shadow:   0 4px 24px rgba(0,0,0,0.08);
    --shadow-s: 0 2px 8px rgba(0,0,0,0.05);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--t);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── LAYOUT ──────────────────────────────────── */
.wrap       { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 700px; margin: 0 auto; padding: 0 24px; }

/* ── TYPO ────────────────────────────────────── */
h1 {
    font-size: clamp(2.75rem, 6.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--t);
}
h2 {
    font-size: clamp(1.375rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--t);
}
h3 {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--t);
}
h4 { font-size: 1rem; font-weight: 600; color: var(--t); }
p  { color: var(--muted); line-height: 1.75; }

.lbl {
    display: block;
    font-size: 0.6875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--dim); margin-bottom: 14px;
}
.lbl.blue { color: var(--p); }

/* ── NAV ─────────────────────────────────────── */
nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bdr);
    padding: 14px 0;
}
nav .wrap {
    display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
}

.brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.brand img { height: 52px; width: auto; border-radius: 0; display: block; }
.brand-name { display: none; }

.nav-links {
    display: flex; align-items: center; gap: 28px;
    list-style: none;
}
.nav-links a {
    font-size: 0.875rem; font-weight: 500;
    color: var(--muted); text-decoration: none;
    transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--t); }

.nav-cta {
    background: var(--p); color: white;
    border: none; border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.8125rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    text-decoration: none; white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.nav-cta:hover { background: var(--p-dk); }

.nav-hamburger {
    display: none;
    background: none; border: none;
    cursor: pointer; padding: 4px;
    flex-direction: column; gap: 5px;
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--t); border-radius: 2px;
    transition: all .2s;
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: white; padding: 16px 24px 20px;
        border-bottom: 1px solid var(--bdr);
        gap: 16px;
    }
}

/* ── BOUTONS ─────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 11px; font-family: inherit;
    font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background .15s, transform .1s, border-color .15s;
    white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
    background: var(--p); color: white; border: none;
    padding: 15px 28px; font-size: 0.9375rem;
}
.btn-primary:hover { background: var(--p-dk); }

.btn-secondary {
    background: transparent; color: var(--t);
    border: 1.5px solid var(--bdr);
    padding: 14px 26px; font-size: 0.9375rem;
}
.btn-secondary:hover { border-color: var(--t); background: var(--white); }

.btn-ghost {
    background: none; color: var(--p); border: none;
    padding: 0; font-size: 0.9375rem; font-weight: 600;
}
.btn-ghost:hover { transform: none; text-decoration: underline; }

/* ── CARDS ───────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 28px;
    box-shadow: var(--shadow-s);
}

/* ── BADGE ───────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--p-lt); color: var(--p);
    font-size: 0.75rem; font-weight: 600;
    padding: 5px 13px; border-radius: 99px;
    margin-bottom: 22px;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--p); border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
@media (prefers-reduced-motion:reduce) { .badge-dot { animation:none; } }

/* ── FOOTER ──────────────────────────────────── */
footer {
    background: var(--white);
    border-top: 1px solid var(--bdr);
    padding: 48px 0 32px;
    margin-top: 80px;
}
.footer-inner {
    display: flex; flex-direction: column; gap: 24px;
}
.footer-top {
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: flex-start; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand img { height: 32px; width: auto; border-radius: 0; }
.footer-brand-name { display: none; }
.footer-links {
    display: flex; flex-wrap: wrap; gap: 20px;
    list-style: none;
}
.footer-links a {
    font-size: 0.875rem; color: var(--muted);
    text-decoration: none;
}
.footer-links a:hover { color: var(--t); }
.footer-bottom {
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: 12px;
    padding-top: 20px; border-top: 1px solid var(--bdr);
}
.footer-copy { font-size: 0.8125rem; color: var(--dim); }

/* ── UTILITAIRES ─────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── ARTICLE BODY (prose) ────────────────────── */
.prose h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.375rem; }
.prose h3 { margin-top: 28px; margin-bottom: 10px; }
.prose p  { margin-bottom: 18px; color: var(--t2); font-size: 1.0625rem; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--t2); font-size: 1.0625rem; line-height: 1.8; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--t); font-weight: 600; }
.prose blockquote {
    border-left: 3px solid var(--p);
    padding: 12px 20px;
    background: var(--p-lt);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    margin: 24px 0;
    font-style: italic; color: var(--t2);
}
