@import url('https://fonts.googleapis.com/css2?family=Georgia&display=swap');

:root {
    --yellow: #ffd900;
    --green: #24e681;
    --red: #e8412a;
    --amber: #f5a623;
    --blue: #14063a;
    --paper: #f6f1e6;
    --fg: #f0ebe0;
    --muted: #d7d0c2;
    --line: rgba(255,255,255,.18);
    --border: rgba(240,235,224,0.08);
    --card: rgba(12,12,12,.72);
    --archive-bg: #989A66;
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #111; color: var(--paper); font-family: 'Barlow', Arial, Helvetica, sans-serif; min-height: 100vh; }
a { color: inherit; text-decoration: none; }

/* FOND D'ÉCRAN GLOBAL */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: linear-gradient(180deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .6) 42%, rgba(0, 0, 0, .88)), url("images/portail-ftbx-original.jpg") center / cover no-repeat;
    filter: grayscale(.25) saturate(.62) blur(2px);
    transform: scale(1.012);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0,0,0,.4);
    pointer-events: none;
}

/* TOPBAR */
.topbar {
    background: #050505;
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 2.5rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.topbar-brand { color: var(--fg); font-weight: 600; }
.topbar-links { display: flex; gap: 1rem; list-style: none; flex-wrap: wrap; }
.topbar-links a { color: var(--muted); transition: color 0.2s; }
.topbar-links a:hover, .topbar-links a.active { color: var(--amber); }

/* HERO */
.hero {
    position: relative;
    min-height: 280px;
    height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #aa9c03;
    padding: 30px 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/fond-ftbx-mag.jpg');
    background-size: cover;
    background-position: center top;
    opacity: 0.25;
    filter: grayscale(40%) contrast(1.1);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,13,13,0.95) 20%, rgba(13,13,13,0.6) 60%, rgba(13,13,13,0.3) 100%),
                linear-gradient(to bottom, rgba(13,13,13,0.5) 0%, transparent 40%, rgba(13,13,13,0.9) 100%);
}
.eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: .6rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--amber);
}
.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -.02em;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    color: var(--fg);
    margin: 0;
}
.hero-rule {
    height: 3px;
    margin: .3rem 0;
    background: linear-gradient(to right, var(--red), var(--amber), transparent);
}
.hero-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: clamp(.85rem, 2.5vw, 1.4rem);
    color: var(--fg);
    margin: 0;
}
.hero-byline {
    font-family: 'Space Mono', monospace;
    font-size: .7rem;
    letter-spacing: .12em;
    color: var(--muted);
    margin: .25rem 0 0 0;
}

/* NAVIGATION INTERNE */
.site-subnav {
    background: rgba(12, 12, 12, 0.85);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2.5rem;
    display: flex;
    gap: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    overflow-x: auto;
}
.site-subnav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}
.site-subnav a:hover { color: var(--yellow); }

/* SECTIONS GÉNÉRALES */
.section {
    background: rgba(12, 12, 12, 0.82);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 6px;
}
.section-head h2, .catalogue-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--amber);
    padding-left: 10px;
}

/* SECTION ARCHIVES HISTORIQUES */
#archives {
    background-color: var(--archive-bg);
    color: #1a1a1a;
    border: 2px solid #555;
}
#archives .section-head h2 {
    color: #1a1a1a;
    border-left-color: #1a1a1a;
}
#archives .archive-intro p {
    color: #222;
}
.archive-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    font-family: 'Space Mono', monospace;
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 0.4rem;
    border-radius: 4px;
}
.archive-num { font-weight: bold; color: #000; }
.archive-duration { font-size: 0.85rem; opacity: 0.8; }
.archive-title { flex: 1; font-weight: 600; }

/* MODALE LECTEUR VIDÉO */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
}
.video-modal:not([hidden]) {
    display: grid;
}
.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}
.video-modal-panel {
    position: relative;
    width: min(800px, 90vw);
    background: #111;
    border: 1px solid var(--amber);
    padding: 20px;
    border-radius: 6px;
    z-index: 1001;
}
.video-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.video-modal-player {
    aspect-ratio: 16/9;
    background: #000;
    margin-bottom: 15px;
    width: 100%;
}
.video-modal-info h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: 'Barlow Condensed', sans-serif;
}
.video-modal-info p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* FOOTER COMPLET */
footer {
    border-top: 3px solid var(--red);
    background: #111;
    padding: 2.5rem 2.5rem 1.25rem 2.5rem;
    margin-top: 44px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--fg);
    margin-bottom: 0.75rem;
}
.footer-col p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
}
.footer-links li a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-links li a:hover { color: var(--amber); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: .75rem; }
.footer-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--red);
}
.footer-name { font-size: 0.875rem; color: var(--muted); }
.footer-copy { font-family: 'Space Mono', monospace; font-size: .65rem; color: var(--muted); }

/* Responsive */
@media (max-width: 750px) {
    .topbar, .site-subnav { padding: 0.5rem 1.25rem; flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    footer { padding: 1.5rem 1.25rem 1rem 1.25rem; }
}