/*
Theme Name: Ndiambour Vision
Theme URI: https://ndiambourvision.com/
Author: Ndiambour Vision
Author URI: https://ndiambourvision.com/
Description: Thème WordPress pour média de diffusion (broadcast) avec lecteur direct intégré (flux HLS, YouTube Live, Facebook Live ou lecteur personnalisé par shortcode/iframe), badge « EN DIRECT », bandeau d'actualités défilant et mise en page magazine. Conçu pour les chaînes de télévision, radios et sites d'information.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ndiambour-vision
Tags: news, broadcast, magazine, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
    --nv-ink:        #0E1116;   /* fond plateau, près du noir */
    --nv-ink-2:      #161B22;   /* panneaux */
    --nv-ink-3:      #232A33;   /* bordures sur fond sombre */
    --nv-paper:      #FBFAF6;   /* fond lecture */
    --nv-paper-2:    #FFFFFF;
    --nv-line:       #E6E3DA;   /* filets sur fond clair */
    --nv-text:       #1A1D23;   /* texte principal clair */
    --nv-text-soft:  #5C626C;   /* texte secondaire */
    --nv-text-inv:   #F4F2EC;   /* texte sur fond sombre */
    --nv-text-inv-soft: #A7AEB8;

    --nv-live:       #E7263B;   /* rouge antenne */
    --nv-live-dark:  #B01528;
    --nv-gold:       #E9B949;   /* accent or chaud */
    --nv-green:      #2A8C5A;   /* vert (catégories) */

    --nv-font-display: "Oswald", "Arial Narrow", sans-serif;
    --nv-font-body:    "Lora", Georgia, "Times New Roman", serif;
    --nv-font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --nv-wrap: 1200px;
    --nv-radius: 4px;
    --nv-shadow: 0 1px 2px rgba(14,17,22,.08), 0 8px 24px rgba(14,17,22,.06);
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--nv-paper);
    color: var(--nv-text);
    font-family: var(--nv-font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--nv-live-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nv-font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: .2px;
    color: var(--nv-text);
    margin: 0 0 .5em;
}

.nv-wrap { max-width: var(--nv-wrap); margin-inline: auto; padding-inline: 20px; }

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
}

.nv-skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--nv-live); color: #fff; padding: 10px 16px;
    font-family: var(--nv-font-ui); z-index: 1000;
}
.nv-skip-link:focus { left: 8px; top: 8px; text-decoration: none; }

:focus-visible { outline: 3px solid var(--nv-gold); outline-offset: 2px; }

/* =========================================================
   3. Barre utilitaire + bandeau direct (signature)
   ========================================================= */
.nv-topbar {
    background: var(--nv-ink);
    color: var(--nv-text-inv-soft);
    font-family: var(--nv-font-ui);
    font-size: .8rem;
    border-bottom: 1px solid var(--nv-ink-3);
}
.nv-topbar .nv-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.nv-topbar__date { text-transform: capitalize; letter-spacing: .3px; }
.nv-topbar__social { display: flex; gap: 14px; }
.nv-topbar__social a { color: var(--nv-text-inv-soft); display: inline-flex; }
.nv-topbar__social a:hover { color: #fff; text-decoration: none; }

/* Bandeau défilant façon lower-third */
.nv-ticker {
    background: var(--nv-ink-2);
    border-bottom: 1px solid var(--nv-ink-3);
    display: flex; align-items: stretch; overflow: hidden;
    font-family: var(--nv-font-ui);
}
.nv-ticker__label {
    background: var(--nv-live);
    color: #fff;
    font-family: var(--nv-font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: .82rem;
    display: flex; align-items: center;
    padding: 8px 16px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    padding-right: 26px;
}
.nv-ticker__track {
    position: relative; flex: 1 1 auto; overflow: hidden;
    display: flex; align-items: center;
}
.nv-ticker__move {
    display: inline-flex; gap: 48px; white-space: nowrap;
    padding-left: 100%;
    animation: nv-ticker 30s linear infinite;
    color: var(--nv-text-inv);
    font-size: .9rem;
}
.nv-ticker:hover .nv-ticker__move { animation-play-state: paused; }
.nv-ticker__move span { display: inline-flex; align-items: center; gap: 48px; }
.nv-ticker__move span::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--nv-gold); display: inline-block;
}
@keyframes nv-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* =========================================================
   4. En-tête
   ========================================================= */
.nv-header { background: var(--nv-ink); color: var(--nv-text-inv); }
.nv-header .nv-wrap { display: flex; align-items: center; gap: 24px; min-height: 88px; }

.nv-brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.nv-brand__logo img { max-height: 56px; width: auto; }
.nv-brand__title {
    font-family: var(--nv-font-display);
    font-weight: 700;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--nv-text-inv);
    line-height: 1;
}
.nv-brand__title a { color: inherit; }
.nv-brand__title a:hover { text-decoration: none; color: var(--nv-gold); }
.nv-brand__desc { font-family: var(--nv-font-ui); font-size: .78rem; color: var(--nv-text-inv-soft); margin-top: 4px; }

.nv-header__spacer { flex: 1 1 auto; }

.nv-live-cta {
    font-family: var(--nv-font-display);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: .9rem;
    color: #fff;
    background: var(--nv-live);
    padding: 10px 18px;
    border-radius: var(--nv-radius);
    display: inline-flex; align-items: center; gap: 9px;
    flex: 0 0 auto;
}
.nv-live-cta:hover { background: var(--nv-live-dark); text-decoration: none; color: #fff; }

/* Pastille pulsante EN DIRECT */
.nv-dot {
    width: 9px; height: 9px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,.7);
    animation: nv-pulse 1.6s infinite;
}
@keyframes nv-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.65); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Navigation principale */
.nv-nav { background: var(--nv-ink-2); border-top: 1px solid var(--nv-ink-3); border-bottom: 3px solid var(--nv-live); }
.nv-nav .nv-wrap { display: flex; align-items: center; }
.nv-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; font-family: var(--nv-font-display); }
.nv-menu li { position: relative; }
.nv-menu a {
    display: block; padding: 14px 18px;
    color: var(--nv-text-inv);
    text-transform: uppercase; font-weight: 500; letter-spacing: .6px; font-size: .95rem;
}
.nv-menu a:hover, .nv-menu .current-menu-item > a { background: var(--nv-live); color: #fff; text-decoration: none; }
.nv-menu .sub-menu {
    position: absolute; left: 0; top: 100%; min-width: 220px;
    background: var(--nv-ink); border: 1px solid var(--nv-ink-3);
    list-style: none; margin: 0; padding: 6px 0; z-index: 50;
    display: none; box-shadow: var(--nv-shadow);
}
.nv-menu li:hover > .sub-menu, .nv-menu li:focus-within > .sub-menu { display: block; }
.nv-menu .sub-menu a { padding: 10px 18px; font-size: .88rem; }

.nv-menu-toggle {
    display: none; margin-left: auto;
    background: none; border: 0; color: var(--nv-text-inv);
    font-family: var(--nv-font-display); text-transform: uppercase; letter-spacing: 1px;
    font-size: .95rem; padding: 14px 18px; cursor: pointer; align-items: center; gap: 10px;
}
.nv-menu-toggle .nv-burger { width: 22px; height: 2px; background: currentColor; position: relative; display: block; }
.nv-menu-toggle .nv-burger::before, .nv-menu-toggle .nv-burger::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
}
.nv-menu-toggle .nv-burger::before { top: -7px; }
.nv-menu-toggle .nv-burger::after  { top: 7px; }

/* =========================================================
   5. Lecteur direct
   ========================================================= */
.nv-live-section { background: var(--nv-ink); padding: 28px 0 36px; color: var(--nv-text-inv); }
.nv-live-section--page { padding-top: 36px; }
.nv-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }

.nv-player {
    position: relative; aspect-ratio: 16 / 9; background: #000;
    border-radius: var(--nv-radius); overflow: hidden;
    border: 1px solid var(--nv-ink-3);
}
.nv-player iframe, .nv-player video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
/* Lecteur personnalisé (shortcode ou code d'intégration) */
.nv-player__embed { position: absolute; inset: 0; width: 100%; height: 100%; }
.nv-player__embed iframe,
.nv-player__embed video,
.nv-player__embed .bradmax-player,
.nv-player__embed > div {
    position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0;
}
.nv-player__poster {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}
.nv-player__offline {
    position: absolute; inset: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: linear-gradient(180deg, rgba(14,17,22,.55), rgba(14,17,22,.85));
    color: var(--nv-text-inv); text-align: center; padding: 24px;
}
.nv-player__offline h3 { color: #fff; font-size: 1.5rem; }
.nv-player__offline p { font-family: var(--nv-font-ui); color: var(--nv-text-inv-soft); margin: 0; max-width: 36ch; }

.nv-onair {
    position: absolute; top: 14px; left: 14px; z-index: 5;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--nv-live); color: #fff;
    font-family: var(--nv-font-display); font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.2px; font-size: .82rem; padding: 7px 12px; border-radius: var(--nv-radius);
}

.nv-live-meta { font-family: var(--nv-font-ui); }
.nv-live-meta__eyebrow {
    font-family: var(--nv-font-display); text-transform: uppercase; letter-spacing: 2px;
    color: var(--nv-gold); font-size: .8rem; margin-bottom: 6px;
}
.nv-live-meta__program { color: #fff; font-size: 1.9rem; line-height: 1.1; margin: 0 0 10px; }
.nv-live-meta__note { color: var(--nv-text-inv-soft); font-size: .92rem; }
.nv-live-aside { background: var(--nv-ink-2); border: 1px solid var(--nv-ink-3); border-radius: var(--nv-radius); padding: 18px; }
.nv-live-aside h4 {
    color: var(--nv-gold); font-size: .9rem; text-transform: uppercase; letter-spacing: 1.5px;
    border-bottom: 1px solid var(--nv-ink-3); padding-bottom: 10px; margin-bottom: 12px;
}
.nv-live-aside ul { list-style: none; margin: 0; padding: 0; }
.nv-live-aside li { padding: 9px 0; border-bottom: 1px dashed var(--nv-ink-3); }
.nv-live-aside li:last-child { border-bottom: 0; }
.nv-live-aside a { color: var(--nv-text-inv); font-family: var(--nv-font-display); font-weight: 400; letter-spacing: .3px; }
.nv-live-aside a:hover { color: var(--nv-gold); text-decoration: none; }
.nv-live-aside time { display: block; font-size: .76rem; color: var(--nv-text-inv-soft); margin-top: 2px; }

/* =========================================================
   6. Contenu / grille magazine
   ========================================================= */
.nv-main { padding: 40px 0 56px; }
.nv-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 40px; align-items: start; }

.nv-section-head {
    display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
    border-bottom: 2px solid var(--nv-ink); padding-bottom: 8px;
}
.nv-section-head h2 {
    font-size: 1.5rem; text-transform: uppercase; letter-spacing: .5px; margin: 0;
}
.nv-section-head h2::before {
    content: ""; display: inline-block; width: 10px; height: 22px;
    background: var(--nv-live); margin-right: 12px; vertical-align: -3px;
}

.nv-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }

.nv-card { background: var(--nv-paper-2); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); overflow: hidden; display: flex; flex-direction: column; }
.nv-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--nv-ink-2); }
.nv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nv-card:hover .nv-card__media img { transform: scale(1.04); }
.nv-card__cat {
    position: absolute; bottom: 0; left: 0; z-index: 2;
    background: var(--nv-live); color: #fff;
    font-family: var(--nv-font-display); text-transform: uppercase; letter-spacing: 1px;
    font-size: .72rem; padding: 5px 11px;
}
.nv-card__cat:hover { background: var(--nv-live-dark); text-decoration: none; color: #fff; }
.nv-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.nv-card__title { font-size: 1.28rem; line-height: 1.2; margin: 0 0 8px; }
.nv-card__title a { color: var(--nv-text); }
.nv-card__title a:hover { color: var(--nv-live-dark); text-decoration: none; }
.nv-card__excerpt { color: var(--nv-text-soft); font-size: .98rem; margin: 0 0 14px; }
.nv-card__meta { margin-top: auto; font-family: var(--nv-font-ui); font-size: .78rem; color: var(--nv-text-soft); display: flex; gap: 14px; }

/* Carte en avant (premier article) */
.nv-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; }
.nv-feature .nv-card__media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.nv-feature .nv-card__title { font-size: 2rem; }
@media (max-width: 700px){ .nv-feature { grid-template-columns: 1fr; } .nv-feature .nv-card__media { min-height: 220px; } }

/* =========================================================
   7. Sidebar / widgets
   ========================================================= */
.nv-sidebar .widget { background: var(--nv-paper-2); border: 1px solid var(--nv-line); border-radius: var(--nv-radius); padding: 18px; margin-bottom: 26px; }
.nv-sidebar .widget-title {
    font-size: 1.05rem; text-transform: uppercase; letter-spacing: .8px;
    border-bottom: 2px solid var(--nv-live); padding-bottom: 8px; margin: 0 0 14px;
}
.nv-sidebar ul { list-style: none; margin: 0; padding: 0; }
.nv-sidebar li { padding: 9px 0; border-bottom: 1px solid var(--nv-line); font-family: var(--nv-font-ui); font-size: .92rem; }
.nv-sidebar li:last-child { border-bottom: 0; }
.nv-sidebar a { color: var(--nv-text); }

/* =========================================================
   8. Article unique
   ========================================================= */
.nv-single { max-width: 760px; margin-inline: auto; }
.nv-single__cat { font-family: var(--nv-font-display); text-transform: uppercase; letter-spacing: 1.5px; color: var(--nv-live-dark); font-size: .85rem; }
.nv-single__title { font-size: 2.6rem; line-height: 1.08; margin: 8px 0 14px; }
.nv-single__meta { font-family: var(--nv-font-ui); font-size: .85rem; color: var(--nv-text-soft); display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--nv-line); border-bottom: 1px solid var(--nv-line); padding: 12px 0; margin-bottom: 24px; }
.nv-single__thumb { margin: 0 0 26px; }
.nv-single__thumb img { width: 100%; border-radius: var(--nv-radius); }
.nv-content p { margin: 0 0 1.3em; }
.nv-content h2 { font-size: 1.7rem; margin: 1.4em 0 .5em; }
.nv-content h3 { font-size: 1.35rem; margin: 1.3em 0 .5em; }
.nv-content img { border-radius: var(--nv-radius); margin: 1em 0; }
.nv-content blockquote {
    border-left: 4px solid var(--nv-live); margin: 1.4em 0; padding: .4em 0 .4em 20px;
    font-style: italic; color: var(--nv-text-soft);
}
.nv-content a { text-decoration: underline; }
.nv-tags { margin: 28px 0; font-family: var(--nv-font-ui); font-size: .85rem; }
.nv-tags a { display: inline-block; background: var(--nv-ink-2); color: var(--nv-text-inv); padding: 4px 11px; border-radius: 999px; margin: 0 6px 6px 0; }
.nv-tags a:hover { background: var(--nv-live); text-decoration: none; }

/* =========================================================
   9. Pagination / boutons
   ========================================================= */
.nv-btn {
    display: inline-block; font-family: var(--nv-font-display); text-transform: uppercase;
    letter-spacing: 1px; font-weight: 600; font-size: .9rem;
    background: var(--nv-ink); color: #fff; padding: 11px 22px; border-radius: var(--nv-radius);
}
.nv-btn:hover { background: var(--nv-live); text-decoration: none; color: #fff; }
.nv-pagination { margin-top: 40px; font-family: var(--nv-font-ui); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nv-pagination .page-numbers {
    display: inline-block; padding: 9px 14px; border: 1px solid var(--nv-line);
    border-radius: var(--nv-radius); color: var(--nv-text); background: #fff;
}
.nv-pagination .current { background: var(--nv-live); color: #fff; border-color: var(--nv-live); }
.nv-pagination a:hover { background: var(--nv-ink); color: #fff; text-decoration: none; }

/* =========================================================
   10. Pied de page
   ========================================================= */
.nv-footer { background: var(--nv-ink); color: var(--nv-text-inv-soft); padding: 48px 0 0; font-family: var(--nv-font-ui); }
.nv-footer__cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--nv-ink-3); }
.nv-footer h4 { color: var(--nv-gold); text-transform: uppercase; letter-spacing: 1.5px; font-size: .9rem; margin-bottom: 14px; }
.nv-footer__brand .nv-brand__title { color: #fff; }
.nv-footer a { color: var(--nv-text-inv-soft); }
.nv-footer a:hover { color: #fff; }
.nv-footer .widget { margin-bottom: 0; }
.nv-footer ul { list-style: none; margin: 0; padding: 0; }
.nv-footer li { padding: 6px 0; }
.nv-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; font-size: .82rem; }

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 980px) {
    .nv-live-grid { grid-template-columns: 1fr; }
    .nv-layout { grid-template-columns: 1fr; }
    .nv-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nv-grid { grid-template-columns: 1fr; }
    .nv-menu-toggle { display: inline-flex; }
    .nv-nav .nv-wrap { flex-wrap: wrap; }
    .nv-menu {
        display: none; flex-direction: column; width: 100%;
        border-top: 1px solid var(--nv-ink-3);
    }
    .nv-menu.is-open { display: flex; }
    .nv-menu .sub-menu { position: static; display: block; background: var(--nv-ink); }
    .nv-brand__title { font-size: 1.4rem; }
    .nv-header .nv-wrap { flex-wrap: wrap; min-height: auto; padding-top: 14px; padding-bottom: 14px; }
    .nv-single__title { font-size: 2rem; }
    .nv-footer__cols { grid-template-columns: 1fr; }
    .nv-footer__bottom { flex-direction: column; }
}

/* =========================================================
   12. Animations d'ouverture & révélations
   (actives seulement avec .nv-anim sur <html>, posée par JS
   quand « réduire les animations » n'est pas demandé)
   ========================================================= */

/* --- Images-clés --- */
@keyframes nv-fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes nv-fade-up   { from { opacity: 0; transform: translateY(20px); }  to { opacity: 1; transform: none; } }
@keyframes nv-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes nv-pop       { 0% { opacity: 0; transform: scale(.86); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }

/* --- Entrée en cascade à l'ouverture (au-dessus de la ligne de flottaison) --- */
.nv-anim .nv-topbar        { animation: nv-fade-down .55s cubic-bezier(.2,.7,.2,1) both;   animation-delay: .02s; }
.nv-anim .nv-ticker        { animation: nv-fade-in   .7s  ease both;                        animation-delay: .12s; }
.nv-anim .nv-header .nv-brand { animation: nv-fade-down .6s cubic-bezier(.2,.7,.2,1) both;  animation-delay: .16s; }
.nv-anim .nv-header .nv-live-cta { animation: nv-pop  .55s cubic-bezier(.2,.7,.2,1) both;   animation-delay: .34s; }
.nv-anim .nv-nav           { animation: nv-fade-up   .6s  cubic-bezier(.2,.7,.2,1) both;    animation-delay: .26s; }

/* Léger décalage des liens du menu, pour un effet « déroulé » */
.nv-anim .nv-menu > li     { animation: nv-fade-up .5s cubic-bezier(.2,.7,.2,1) both; }
.nv-anim .nv-menu > li:nth-child(1) { animation-delay: .34s; }
.nv-anim .nv-menu > li:nth-child(2) { animation-delay: .40s; }
.nv-anim .nv-menu > li:nth-child(3) { animation-delay: .46s; }
.nv-anim .nv-menu > li:nth-child(4) { animation-delay: .52s; }
.nv-anim .nv-menu > li:nth-child(5) { animation-delay: .58s; }
.nv-anim .nv-menu > li:nth-child(n+6){ animation-delay: .64s; }

/* --- Révélations au défilement (gérées par IntersectionObserver → .is-in) --- */
.nv-anim .nv-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .6s cubic-bezier(.2,.7,.2,1),
        transform .6s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc( var(--nv-i, 0) * 70ms );
    will-change: opacity, transform;
}
.nv-anim .nv-reveal.is-in {
    opacity: 1;
    transform: none;
}
/* Une fois révélé, on libère la mémoire GPU */
.nv-anim .nv-reveal.is-in { will-change: auto; }

/* --- Micro-interactions enrichies --- */
.nv-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.nv-anim .nv-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(14,17,22,.14); }
.nv-anim .nv-card:hover .nv-card__media img { transform: scale(1.06); }

.nv-btn, .nv-live-cta, .nv-menu a { transition: transform .25s ease, background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.nv-anim .nv-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14,17,22,.16); }
.nv-anim .nv-live-cta:hover { transform: translateY(-2px); }

/* Soulignement animé des liens du menu */
.nv-menu > li > a { position: relative; }
.nv-menu > li > a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
    background: var(--nv-gold); transform: scaleX(0); transform-origin: left;
    transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nv-anim .nv-menu > li > a:hover::after,
.nv-anim .nv-menu > li.current-menu-item > a::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
    .nv-ticker__move { animation: none; padding-left: 16px; }
    .nv-dot { animation: none; }
    .nv-card__media img { transition: none; }

    /* Sécurité : neutralise toutes les animations d'ouverture/révélation. */
    .nv-anim .nv-topbar,
    .nv-anim .nv-ticker,
    .nv-anim .nv-header .nv-brand,
    .nv-anim .nv-header .nv-live-cta,
    .nv-anim .nv-nav,
    .nv-anim .nv-menu > li { animation: none; }
    .nv-anim .nv-reveal { opacity: 1; transform: none; transition: none; }
    .nv-anim .nv-card:hover { transform: none; box-shadow: var(--nv-shadow); }
    .nv-anim .nv-menu > li > a::after { transition: none; }
}

/* =========================================================
   13. Carrousel « héros » de l'accueil
   ========================================================= */
.nv-hero {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 54vw, 660px);
    background: var(--nv-ink);
    overflow: hidden;
    isolation: isolate;
}
.nv-hero__viewport { position: absolute; inset: 0; }

.nv-hero__slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .8s ease, visibility 0s linear .8s;
}
.nv-hero__slide.is-active {
    opacity: 1; visibility: visible;
    transition: opacity .8s ease, visibility 0s;
    z-index: 1;
}

.nv-hero__media { position: absolute; inset: 0; }
.nv-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Léger zoom lent sur la diapositive active (effet « Ken Burns ») */
.nv-anim .nv-hero__slide.is-active .nv-hero__media img {
    animation: nv-hero-zoom 7s ease-out both;
}
@keyframes nv-hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Dégradé pour la lisibilité du texte (sombre à gauche/bas) */
.nv-hero__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(14,17,22,.92) 0%, rgba(14,17,22,.72) 34%, rgba(14,17,22,.15) 66%, rgba(14,17,22,0) 100%),
        linear-gradient(0deg, rgba(14,17,22,.6) 0%, rgba(14,17,22,0) 40%);
}

.nv-hero__inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; min-height: inherit; }
.nv-hero__content { max-width: 560px; color: var(--nv-text-inv); padding: 40px 0; }

.nv-hero__kicker {
    display: inline-block;
    font-family: var(--nv-font-ui); font-weight: 600; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--nv-ink); background: var(--nv-gold);
    padding: 5px 12px; border-radius: 3px; margin-bottom: 16px;
}
.nv-hero__title {
    font-family: var(--nv-font-display); font-weight: 700;
    font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05;
    margin: 0 0 14px; text-wrap: balance;
}
.nv-hero__excerpt {
    font-family: var(--nv-font-ui); font-size: 1.05rem; line-height: 1.6;
    color: var(--nv-text-inv-soft); margin: 0 0 26px; max-width: 46ch;
}
.nv-hero__btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--nv-font-ui); font-weight: 600; font-size: .95rem;
    color: var(--nv-text-inv); padding: 12px 26px;
    border: 1.5px solid rgba(244,242,236,.6); border-radius: 999px;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.nv-hero__btn span { font-size: 1.3em; line-height: 0; }
.nv-hero__btn:hover { background: var(--nv-text-inv); color: var(--nv-ink); border-color: var(--nv-text-inv); transform: translateY(-2px); }

/* Entrée animée du texte quand la diapositive devient active */
.nv-anim .nv-hero__slide.is-active .nv-hero__kicker  { animation: nv-hero-in .6s cubic-bezier(.2,.7,.2,1) both .15s; }
.nv-anim .nv-hero__slide.is-active .nv-hero__title   { animation: nv-hero-in .7s cubic-bezier(.2,.7,.2,1) both .25s; }
.nv-anim .nv-hero__slide.is-active .nv-hero__excerpt { animation: nv-hero-in .7s cubic-bezier(.2,.7,.2,1) both .35s; }
.nv-anim .nv-hero__slide.is-active .nv-hero__btn     { animation: nv-hero-in .7s cubic-bezier(.2,.7,.2,1) both .45s; }
@keyframes nv-hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Flèches */
.nv-hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(14,17,22,.35); color: #fff; border: 1px solid rgba(244,242,236,.35);
    cursor: pointer; backdrop-filter: blur(2px);
    transition: background-color .25s ease, transform .25s ease;
}
.nv-hero__arrow span { font-size: 1.9rem; line-height: 1; margin-top: -3px; }
.nv-hero__arrow:hover { background: var(--nv-live); border-color: var(--nv-live); }
.nv-hero__arrow--prev { left: 18px; }
.nv-hero__arrow--next { right: 18px; }
.nv-hero__arrow:hover { transform: translateY(-50%) scale(1.06); }

/* Pastilles */
.nv-hero__dots {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px;
    display: flex; gap: 9px; justify-content: center;
}
.nv-hero__dot {
    width: 26px; height: 4px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(244,242,236,.45); padding: 0;
    transition: background-color .25s ease, width .25s ease;
}
.nv-hero__dot:hover { background: rgba(244,242,236,.75); }
.nv-hero__dot.is-active { background: var(--nv-gold); width: 40px; }

@media (max-width: 760px) {
    .nv-hero { min-height: 440px; }
    .nv-hero__shade { background:
        linear-gradient(0deg, rgba(14,17,22,.94) 0%, rgba(14,17,22,.55) 45%, rgba(14,17,22,.2) 100%); }
    .nv-hero__inner { align-items: flex-end; }
    .nv-hero__content { padding-bottom: 54px; }
    .nv-hero__arrow { width: 40px; height: 40px; }
    .nv-hero__arrow--prev { left: 8px; }
    .nv-hero__arrow--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .nv-hero__slide { transition: opacity .001s linear; }
    .nv-anim .nv-hero__slide.is-active .nv-hero__media img,
    .nv-anim .nv-hero__slide.is-active .nv-hero__kicker,
    .nv-anim .nv-hero__slide.is-active .nv-hero__title,
    .nv-anim .nv-hero__slide.is-active .nv-hero__excerpt,
    .nv-anim .nv-hero__slide.is-active .nv-hero__btn { animation: none; }
    .nv-hero__arrow:hover { transform: translateY(-50%); }
}
