/* ============================================
   FALK-HOLM — styles partagés des pages internes
   index.html garde son CSS en ligne (animations au scroll) ; ce fichier
   sert aux pages secondaires et porte le socle commun : nav, footer,
   typographie, boutons, et le menu mobile.
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #020202;
    --color-surface: #0a0a0a;
    --color-surface-elevated: #111111;
    --color-border: rgba(255,255,255,0.08);
    --color-border-light: rgba(255,255,255,0.04);
    --color-text: #ffffff;
    --color-text-secondary: #a3a3a3;
    --color-text-tertiary: #525252;
    --gold: #e6c89a;
    --gold-dark: #9a8158;
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #0a0a0a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* ============================================
   BOUTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
}

.btn-dark { background: #0a0a0a; color: #ffffff; }
.btn-dark:hover { background: #000; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }

.btn-outline {
    background: transparent;
    color: #0a0a0a;
    border: 1px solid rgba(0,0,0,0.16);
}
.btn-outline:hover { background: #fafafa; border-color: rgba(0,0,0,0.32); }

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(2, 2, 2, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--color-border); padding: 12px 0; }

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 28px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
    border-radius: 8px;
}
.nav-link:hover { color: var(--color-text); background: rgba(255,255,255,0.05); }
.nav-link svg { width: 16px; height: 16px; stroke: currentColor; transition: transform 0.3s ease; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: 100%; left: 0;
    min-width: 200px;
    padding: 8px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(4px); }
.nav-dropdown-right { left: auto; right: 0; min-width: 150px; }

.nav-dropdown-link {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--color-text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-dropdown-link:hover { color: var(--color-text); background: rgba(255,255,255,0.05); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---- Bouton hamburger ---- */
.nav-mobile-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}
.nav-mobile-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
    transform-origin: center;
}
.nav-mobile-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-btn.open span:nth-child(2) { opacity: 0; }
.nav-mobile-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Panneau mobile ---- */
.nav-mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(2, 2, 2, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 96px 24px 40px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s;
}
.nav-mobile-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-mobile-group { border-bottom: 1px solid var(--color-border); padding: 4px 0; }

.nav-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    cursor: pointer;
}
.nav-mobile-link svg {
    width: 18px; height: 18px;
    stroke: var(--color-text-tertiary);
    fill: none; stroke-width: 2;
    transition: transform 0.35s var(--ease-out);
}
.nav-mobile-group.open .nav-mobile-link svg { transform: rotate(180deg); }

.nav-mobile-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease-out);
}
.nav-mobile-group.open .nav-mobile-sub { grid-template-rows: 1fr; }
.nav-mobile-sub > div { overflow: hidden; }

.nav-mobile-sub a {
    display: block;
    padding: 12px 4px 12px 18px;
    font-size: 16px;
    color: var(--color-text-secondary);
    border-left: 1px solid var(--color-border);
    margin-left: 4px;
}
.nav-mobile-sub a:last-child { padding-bottom: 20px; }

.nav-mobile-lang {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.nav-mobile-lang a {
    padding: 9px 16px;
    font-size: 14px;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: 100px;
}
.nav-mobile-lang a.active { color: #0a0a0a; background: var(--gold); border-color: var(--gold); }

body.nav-open { overflow: hidden; }

@media (max-width: 900px) {
    .nav-menu, .nav-actions { display: none; }
    .nav-mobile-btn { display: flex; }
}

/* ============================================
   EN-TÊTE DE PAGE
   ============================================ */

.page-hero {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 190px 0 96px;
}

.page-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.12;
    max-width: 800px;
}

.page-lede {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.65;
    color: var(--color-text-secondary);
    max-width: 620px;
    margin-top: 22px;
}

/* ============================================
   CORPS DE PAGE
   ============================================ */

.page-body { padding: 96px 0 120px; }

.prose h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(22px, 2.4vw, 29px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #0a0a0a;
    margin: 64px 0 18px;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    margin: 34px 0 10px;
}

.prose p {
    font-size: 16px;
    line-height: 1.75;
    color: #5c5c5c;
    margin-bottom: 18px;
}

.prose ul { list-style: none; margin: 0 0 22px; }
.prose ul li {
    position: relative;
    padding-left: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #5c5c5c;
    margin-bottom: 10px;
}
.prose ul li::before {
    content: '';
    position: absolute;
    left: 4px; top: 12px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold-dark);
}

.prose strong { color: #0a0a0a; font-weight: 600; }
.prose a:not(.btn) { color: #0a0a0a; text-decoration: underline; text-underline-offset: 3px; }

.prose hr {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin: 56px 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 26px;
    font-size: 15px;
}
.prose th, .prose td {
    text-align: left;
    padding: 14px 16px 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    color: #5c5c5c;
}
.prose th { color: #0a0a0a; font-weight: 600; }

/* Grille de cartes réutilisable */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.card {
    padding: 32px 30px;
    border: 1px solid rgba(0,0,0,0.09);
    border-radius: 18px;
    transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.card:hover { border-color: rgba(0,0,0,0.2); transform: translateY(-3px); }

.card-num {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--gold-dark);
    margin-bottom: 14px;
}
.card h3 { font-size: 19px; font-weight: 600; color: #0a0a0a; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.65; color: #6b6b6b; }

/* Bloc d'appel final */
.page-cta {
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,0.07);
    padding: 96px 0;
    text-align: center;
}
.page-cta h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    margin-bottom: 14px;
}
.page-cta p { color: #6b6b6b; margin-bottom: 32px; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 90px 0 44px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 80px;
    padding-bottom: 72px;
}

.footer-logo img { height: 26px; width: auto; filter: brightness(0); opacity: 0.88; }

.footer-about {
    margin-top: 22px;
    font-size: 14px;
    line-height: 1.7;
    color: #8a8a8a;
    max-width: 300px;
}

.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0a0a0a;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 14.5px;
    line-height: 1.5;
    color: #6b6b6b;
    padding: 7px 0;
    transition: color 0.3s var(--ease-out);
}
.footer-col a:hover { color: #0a0a0a; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 34px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-copy { font-size: 13.5px; color: #9a9a9a; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-legal a { font-size: 13.5px; color: #9a9a9a; transition: color 0.3s var(--ease-out); }
.footer-legal a:hover { color: #0a0a0a; }

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 900px) {
    .page-hero { padding: 130px 0 64px; }
    .page-body { padding: 64px 0 80px; }
    .prose h2 { margin-top: 48px; }
    .page-cta { padding: 64px 0; }
    .footer { padding: 64px 0 36px; }
    .footer-top { grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .btn { width: 100%; }
    .prose table { font-size: 14px; }
    .footer-legal { gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
