/* ==========================================================================
   OPPORTUNITY MAKERS — DESIGN SYSTEM V2
   Fond gris/noir, grain argentique, carte arrondie, Geist sans-serif
   ========================================================================== */

@font-face {
    font-family: 'Zeyada';
    src: url('/fonts/Zeyada.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0a0a0a;
    --bg-deep: #050505;
    --fg: #ffffff;
    --fg-mid: #a3a8c0;
    --fg-soft: #676c85;
    --fg-subtle: #2d3048;
    --accent: #e8f41c;
    --accent-bright: #f5ff3d;
    --accent-glow: rgba(255, 255, 255, 0.3);
    --peach: #fca668;
    --peach-soft: rgba(252, 166, 104, 0.15);
}

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

html, body {
    background: var(--bg-deep);
    color: var(--fg);
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }

/* ========== FOND FIXE — noir/gris/blanc pur ========== */
.sky {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 50% 0%, rgba(245, 255, 61, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse 70% 40% at 50% 20%, rgba(60, 60, 75, 0.35) 0%, transparent 70%),
        linear-gradient(180deg, #050505 0%, #0d0d15 35%, #15151f 70%, #1c1c28 100%);
}
.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 80% at 50% 42%, transparent 25%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.95) 100%);
}

/* ========== GRAIN NET style argentique ========== */
.grain {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='gn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' stitchTiles='stitch' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 3.5 -1.3'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23gn)'/%3E%3C/svg%3E");
    background-size: 620px 620px;
}
.grain-2 {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cfilter id='gn2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch' seed='19'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 3 -1.1'/%3E%3C/filter%3E%3Crect width='500' height='500' filter='url(%23gn2)'/%3E%3C/svg%3E");
    background-size: 400px 400px;
}

/* ========== CONTENT LAYER (par-dessus le fond fixe) ========== */
.content-layer {
    position: relative;
    z-index: 2;
}
.content-layer::before {
    content: '';
    position: absolute;
    top: 100vh;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-deep);
    z-index: -1;
}
.content-layer::after {
    content: '';
    position: absolute;
    top: calc(100vh - 120px);
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 50%, var(--bg-deep) 100%);
    z-index: -1;
    pointer-events: none;
}

/* ========== NAV ========== */
.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    background: rgba(8, 8, 8, 0.6);
}
.nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Zeyada', cursive;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: 0px;
    color: var(--fg);
    white-space: nowrap;
}
.nav-logo .mark {
    width: 40px;
    height: 40px;
    transform: translateY(-4px);
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: filter 0.4s;
}
.nav-logo:hover .mark {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.5));
}
.nav-center {
    display: flex;
    gap: 30px;
}
.nav-center a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-mid);
    transition: color 0.25s;
}
.nav-center a:hover, .nav-center a.active { color: var(--fg); }
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-right a {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-mid);
    transition: color 0.25s;
}
.nav-right a:hover { color: var(--fg); }
.nav-right a.nav-cta {
    padding: 10px 18px;
    background: var(--accent);
    color: #000 !important;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.1px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.nav-right a.nav-cta:hover {
    background: var(--accent-bright);
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px -10px var(--accent-glow);
}
.nav-right a.nav-cta::after { content: '→'; font-size: 14px; font-weight: 700; transition: transform 0.25s; color: #000; }
.nav-right a.nav-cta:hover::after { transform: translateX(2px); }

/* ========== PAGE HEADER (pour pages non-home) ========== */
.page-header {
    position: relative;
    z-index: 10;
    max-width: 1040px;
    margin: 0 auto;
    padding: 90px 40px 70px;
    text-align: center;
}
.page-header .eyebrow {
    font-family: 'Geist Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.page-header h1 {
    font-family: 'Geist', -apple-system, sans-serif;
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -3px;
    color: var(--fg);
    margin-bottom: 28px;
}
.page-header h1 .accent {
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 50%, var(--peach) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 48px var(--accent-glow));
}
.page-header .lead {
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.55;
    color: var(--fg-mid);
    max-width: 680px;
    margin: 0 auto;
}
.page-header .lead strong { color: var(--fg); font-weight: 500; }

/* ========== CARD PANEL (bloc solide arrondi) ========== */
.card-panel {
    position: relative;
    z-index: 5;
    max-width: 1280px;
    margin: 0 auto 80px;
    background: #0a0a0a;
    border-radius: 28px;
    box-shadow:
        0 40px 120px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    overflow: hidden;
    padding: 56px 48px;
}
.card-panel.no-padding { padding: 0; }

/* ========== PROSE (contenu long : qui-suis-je, blog, légales) ========== */
.prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.7;
    color: var(--fg-mid);
}
.prose h2 {
    font-family: 'Geist', sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--fg);
    margin: 56px 0 20px;
    line-height: 1.15;
}
.prose h3 {
    font-family: 'Geist', sans-serif;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--fg);
    margin: 40px 0 14px;
    line-height: 1.25;
}
.prose p {
    margin-bottom: 18px;
}
.prose a {
    color: var(--accent);
    border-bottom: 1px solid rgba(232, 244, 28, 0.3);
    transition: border-color 0.25s;
}
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose em { color: var(--fg); font-style: italic; }
.prose ul, .prose ol { margin: 0 0 22px 20px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
    border-left: 3px solid var(--accent);
    padding: 6px 0 6px 22px;
    margin: 28px 0;
    color: var(--fg);
    font-style: italic;
}

/* ========== BOUTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 14.5px;
    font-family: inherit;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.25s;
    box-shadow: 0 12px 34px -10px var(--accent-glow);
    text-decoration: none;
}
.btn:hover {
    background: var(--accent-bright);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px -10px var(--accent-glow);
}
.btn::after { content: '→'; transition: transform 0.25s; }
.btn:hover::after { transform: translateX(3px); }
.btn-ghost {
    background: transparent;
    color: var(--fg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--fg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* ========== FOOTER ========== */
footer {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 40px 56px;
    font-size: 13px;
    color: var(--fg-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
footer a { color: var(--fg-mid); transition: color 0.25s; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .nav {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .nav-center {
        order: 3;
        width: 100%;
        overflow-x: auto;
        gap: 22px;
        padding: 8px 0 4px;
        scrollbar-width: none;
    }
    .nav-center::-webkit-scrollbar { display: none; }
    .nav-center a { white-space: nowrap; font-size: 13px; }
    .nav-right { gap: 14px; }
    .nav-right a, .nav-right a.nav-cta { font-size: 13px; }
    .nav-right a.nav-cta { padding: 8px 14px; }
    .page-header { padding: 56px 20px 40px; }
    .card-panel {
        padding: 40px 24px;
        margin: 0 12px 60px;
        border-radius: 20px;
    }
    .prose { font-size: 15.5px; }
    footer {
        padding: 32px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}
