/* ═══════════════════════════════════════════════════
   CNP — FEUILLE DE STYLE GLOBALE
   Importée par toutes les pages du site.
   Direction : minimalisme radical, noir/blanc/jaune,
   Geist, zéro décoration superflue.
═══════════════════════════════════════════════════ */

/* ── IMPORT POLICE ──────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&display=swap');

/* ── VARIABLES ──────────────────────────────────── */
:root {
    --yellow : #FFE600;
    --navy   : #04091A;
    --black  : #0A0A0A;
    --white  : #FFFFFF;
    --grey   : #F2F2F2;
    --muted  : #999;
    --border : #E8E8E8;
    --font   : 'Geist', sans-serif;
    --speed  : 0.22s;
    --max    : 1200px;  /* largeur max du contenu */
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    background : var(--white);
    color      : var(--black);
    font-family: var(--font);
    font-size  : 16px;
    line-height: 1.55;
}
a   { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; }

/* ── CONTENEUR ──────────────────────────────────── */
.wrap {
    max-width: var(--max);
    margin   : 0 auto;
    padding  : 0 32px;
}

/* ══════════════════════════════════════════════════
   NAVBAR — fixe, fond blanc, fine bordure bas
══════════════════════════════════════════════════ */
.nav {
    position       : fixed;
    top: 0; left: 0; right: 0;
    z-index        : 300;
    height         : 54px;
    background     : rgba(255,255,255,0.94);
    backdrop-filter: blur(14px);
    border-bottom  : 1px solid var(--border);
    display        : flex;
    align-items    : center;
    transition     : box-shadow var(--speed);
}
.nav.scrolled { box-shadow: 0 1px 16px rgba(0,0,0,0.06); }

.nav__inner {
    max-width: var(--max);
    margin   : 0 auto;
    padding  : 0 32px;
    width    : 100%;
    display  : grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Logo */
.nav__logo { display: flex; align-items: center; }
.nav__logo img   { height: 26px; width: auto; }
.nav__logo-text  {
    font-size: 1rem; font-weight: 900;
    letter-spacing: -0.03em;
}

/* Liens centraux */
.nav__links { display: flex; gap: 28px; }
.nav__links a {
    font-size     : 0.68rem;
    font-weight   : 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color         : var(--muted);
    transition    : color var(--speed);
}
.nav__links a:hover,
.nav__links a.active { color: var(--black); }

/* Réseaux sociaux + CTA */
.nav__right {
    display    : flex;
    align-items: center;
    gap        : 16px;
    justify-self: end;
}
.nav__social {
    display: flex; gap: 10px;
}
.nav__social a {
    display    : flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 2px;
    color: var(--muted);
    transition: color var(--speed), background var(--speed);
}
.nav__social a:hover { color: var(--black); background: var(--grey); }
.nav__social svg { width: 14px; height: 14px; fill: currentColor; }

/* Bouton s'abonner */
.btn {
    display    : inline-flex;
    align-items: center;
    padding    : 7px 18px;
    font-size  : 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border     : 1.5px solid var(--black);
    border-radius: 2px;
    background : transparent;
    color      : var(--black);
    transition : background var(--speed), color var(--speed);
}
.btn:hover { background: var(--black); color: var(--white); }
.btn--fill {
    background: var(--black); color: var(--white);
}
.btn--fill:hover { background: #222; }
.btn--yellow {
    background : var(--yellow);
    border-color: var(--yellow);
    color      : var(--black);
}
.btn--yellow:hover { background: #d4c000; border-color: #d4c000; }

/* ══════════════════════════════════════════════════
   TICKER — bandeau jaune défilant sous la nav
══════════════════════════════════════════════════ */
.ticker {
    position  : fixed;
    top: 54px; left: 0; right: 0;
    z-index   : 299;
    height    : 24px;
    background: var(--yellow);
    overflow  : hidden;
    display   : flex;
    align-items: center;
}
.ticker__track {
    display    : flex;
    gap        : 64px;
    white-space: nowrap;
    animation  : ticker-scroll 30s linear infinite;
    font-size  : 0.6rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color      : var(--black);
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════
   PAGE OFFSET — compense nav + ticker
══════════════════════════════════════════════════ */
.page { padding-top: 78px; }  /* 54 + 24 */

/* ══════════════════════════════════════════════════
   TAG CATÉGORIE
══════════════════════════════════════════════════ */
.tag {
    display       : inline-block;
    padding       : 2px 9px;
    font-size     : 0.58rem;
    font-weight   : 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius : 2px;
    background    : var(--yellow);
    color         : var(--black);
}
.tag--dark {
    background: var(--black); color: var(--white);
}
.tag--outline {
    background  : transparent;
    border      : 1.5px solid var(--black);
    color       : var(--black);
}

/* ══════════════════════════════════════════════════
   SECTION HEADER — ligne + label réutilisable
══════════════════════════════════════════════════ */
.sec-head {
    display    : flex;
    align-items: center;
    gap        : 14px;
    margin-bottom: 0;
}
.sec-head h2 {
    font-size     : 0.6rem;
    font-weight   : 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color         : var(--muted);
    white-space   : nowrap;
}
.sec-head__line { flex: 1; height: 1px; background: var(--border); }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
    padding    : 40px 0 32px;
    border-top : 1px solid var(--border);
    margin-top : 80px;
}
.footer__inner {
    max-width: var(--max);
    margin   : 0 auto;
    padding  : 0 32px;
    display  : grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap      : 24px;
}
.footer__logo img   { height: 20px; }
.footer__logo-text  { font-size: 0.9rem; font-weight: 900; letter-spacing: -0.03em; }
.footer__nav {
    display: flex; gap: 24px;
}
.footer__nav a {
    font-size: 0.62rem; font-weight: 500;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--muted); transition: color var(--speed);
}
.footer__nav a:hover { color: var(--black); }

.footer__social {
    display: flex; gap: 10px; justify-self: end;
}
.footer__social a {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border: 1px solid var(--border); border-radius: 2px;
    color: var(--muted); transition: all var(--speed);
}
.footer__social a:hover { border-color: var(--black); color: var(--black); }
.footer__social svg { width: 13px; height: 13px; fill: currentColor; }

.footer__bottom {
    max-width: var(--max);
    margin   : 24px auto 0;
    padding  : 20px 32px 0;
    border-top: 1px solid var(--border);
    display  : flex;
    justify-content: space-between;
    align-items: center;
}
.footer__bottom p, .footer__bottom a {
    font-size: 0.62rem; color: var(--muted);
}
.footer__bottom a:hover { color: var(--black); }

/* ══════════════════════════════════════════════════
   ANIMATIONS REVEAL AU SCROLL
══════════════════════════════════════════════════ */
.reveal {
    opacity  : 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.on { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.07s; }
.reveal:nth-child(3) { transition-delay: 0.14s; }
.reveal:nth-child(4) { transition-delay: 0.21s; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .nav__inner { grid-template-columns: 1fr auto; }
    .nav__links { display: none; }
    .footer__inner { grid-template-columns: 1fr; text-align: center; }
    .footer__nav   { justify-content: center; }
    .footer__social{ justify-self: center; }
    .footer__bottom{ flex-direction: column; gap: 8px; text-align: center; }
}