/* ==================================================================
   NOIR SUR BLANC — Couche « moderne » (V2)
   Chargée après site.css : rayons doux, ombres légères, en-tête vitré,
   animations d'apparition au défilement, transitions entre les pages.
   Toutes les animations sont désactivées si le visiteur le demande
   (réglage « réduire les animations » du téléphone / ordinateur).
   ================================================================== */

:root {
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .04);
  --shadow: 0 14px 34px -16px rgba(17, 17, 17, .22);
  --shadow-lg: 0 28px 60px -24px rgba(17, 17, 17, .38);
  --bg: #f6f4ef;
}

/* Transition douce entre deux pages (navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .22s ease both; }
::view-transition-new(root) { animation: vtIn .32s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

body { background: var(--bg); }
html { scroll-padding-top: 90px; }

/* ---------- Boutons ---------- */
.btn { border-radius: var(--pill); position: relative; overflow: hidden; isolation: isolate; transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { box-shadow: 0 10px 24px -12px rgba(204, 30, 79, .85); }
.btn--accent::after, .btn--ink::after, .btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--accent:hover::after, .btn--ink:hover::after, .btn--primary:hover::after { transform: translateX(120%); }
.btn i { transition: transform .25s var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(4px); }

/* ---------- Bandeau supérieur ---------- */
@media (min-width: 1100px) {
  .topbar__date { display: none; }
  .topbar--empty { display: none !important; }
}

/* ---------- Manchette ---------- */
.masthead__logo img { transition: transform .5s var(--ease); }
.masthead__logo:hover img { transform: scale(1.015); }

/* ---------- En-tête collant vitré ---------- */
.site-header { transition: box-shadow .3s, background .3s, transform .35s var(--ease); }
@media (max-width: 1099px) {
  .site-header { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
  .site-header.is-hidden { transform: translateY(-100%); }
}
@media (min-width: 1100px) {
  .site-header { background: rgba(17, 17, 17, .94); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }
  .site-header.is-scrolled { box-shadow: 0 14px 30px -14px rgba(0,0,0,.55); }
  .nav__link::after { transition: transform .3s var(--ease-out); }
  .catbar { display: none; }
}
.icon-btn { transition: background .2s, color .2s, transform .2s var(--ease); }
.icon-btn:hover { transform: scale(1.06); }
.icon-btn:active { transform: scale(.94); }

/* Méga-menu : apparition en cascade */
.mega { border-radius: var(--radius); box-shadow: var(--shadow-lg); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.mega a { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s; }
.nav__item.is-open .mega a { opacity: 1; transform: none; }
.nav__item.is-open .mega a:nth-child(2) { transition-delay: .02s; }
.nav__item.is-open .mega a:nth-child(3) { transition-delay: .04s; }
.nav__item.is-open .mega a:nth-child(4) { transition-delay: .06s; }
.nav__item.is-open .mega a:nth-child(5) { transition-delay: .08s; }
.nav__item.is-open .mega a:nth-child(6) { transition-delay: .10s; }
.nav__item.is-open .mega a:nth-child(7) { transition-delay: .12s; }
.nav__item.is-open .mega a:nth-child(8) { transition-delay: .14s; }
.nav__item.is-open .mega a:nth-child(n+9) { transition-delay: .16s; }
.mega a i { transition: background .2s, color .2s, transform .3s var(--ease); }
.mega a:hover i { transform: rotate(-8deg) scale(1.08); }

/* Recherche */
.search-panel.is-open { animation: slideDown .35s var(--ease-out); }
.search-form input { box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); }

/* Rubriques (mobile) */
.chip { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chip:hover { transform: translateY(-1px); }

/* Fil « En continu » : point rouge qui pulse */
.ticker__label { border-radius: var(--pill); position: relative; padding-left: 26px; }
.ticker__label i { display: none; }
.ticker__label::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #fff; animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.ticker__track a::before { border-radius: 50%; background: var(--accent-600); }

/* Tiroir mobile : liens en cascade */
.drawer { transition: transform .45s var(--ease-out), box-shadow .45s; }
body.drawer-open .drawer { box-shadow: -30px 0 60px -30px rgba(0,0,0,.5); }
.drawer-overlay { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer__link, .drawer__cats .chip { opacity: 0; transform: translateX(18px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .2s; }
body.drawer-open .drawer__link, body.drawer-open .drawer__cats .chip { opacity: 1; transform: none; }
body.drawer-open .drawer__link:nth-child(2) { transition-delay: .05s; }
body.drawer-open .drawer__link:nth-child(3) { transition-delay: .08s; }
body.drawer-open .drawer__link:nth-child(4) { transition-delay: .11s; }
body.drawer-open .drawer__link:nth-child(5) { transition-delay: .14s; }
body.drawer-open .drawer__link:nth-child(6) { transition-delay: .17s; }
body.drawer-open .drawer__cats .chip { transition-delay: .2s; }

/* ---------- Titres de sections : le filet se dessine ---------- */
.section__head::before { transform-origin: left; transition: transform .8s var(--ease-out) .1s; }
.js-motion .section__head:not(.is-in)::before { transform: scaleX(0); }
.section__more i { transition: transform .25s var(--ease); }
.section__more:hover i { transform: translateX(5px); }

/* ---------- Cartes ---------- */
.card, .compact, .widget, .article-body, .content-card, .stat, .value, .feature { border-radius: var(--radius); }
.card { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; will-change: transform; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__media img { transition: transform 1.1s var(--ease-out), opacity .6s, filter .6s; }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.25)); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover .card__media::after { opacity: 1; }
.card__title a, .compact__title a, .mini__title a, .feature__title a {
  background-image: linear-gradient(var(--accent-600), var(--accent-600));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .45s var(--ease-out), color .25s;
}
.card:hover .card__title a, .compact:hover .compact__title a, .mini:hover .mini__title a { background-size: 100% 2px; }
.feature__title a { background-image: linear-gradient(#fff, #fff); }
.feature:hover .feature__title a { background-size: 100% 2px; text-decoration: none; }
.badge { border-radius: 6px; }
.card__media .badge { transition: transform .3s var(--ease); }
.card:hover .card__media .badge { transform: translateY(-2px); }

.compact { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s; }
.compact:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: transparent; }
.compact__img img { transition: transform .8s var(--ease-out); }
.compact:hover .compact__img img { transform: scale(1.08); }
.mini__img img { transition: transform .6s var(--ease-out); }
.mini:hover .mini__img img { transform: scale(1.1); }
.mini__rank { transition: color .3s, transform .3s var(--ease); }
.mini:hover .mini__rank { color: var(--accent-600); transform: scale(1.1); }

/* ---------- À la une ---------- */
.feature { box-shadow: var(--shadow-lg); }
.feature img { transition: transform 1.4s var(--ease-out); }
.hero__main .feature img { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, -1%); } }
.hero__main .feature__body > * { animation: heroUp .9s var(--ease-out) both; }
.hero__main .feature__body > *:nth-child(2) { animation-delay: .12s; }
.hero__main .feature__body > *:nth-child(3) { animation-delay: .22s; }
.hero__main .feature__body > *:nth-child(4) { animation-delay: .32s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.feature .badge { box-shadow: 0 6px 16px -6px rgba(204,30,79,.8); }

/* Images : apparition en fondu une fois chargées */
.js-motion img.lazy-fade { opacity: 0; filter: blur(6px); }
.js-motion img.lazy-fade.is-loaded { opacity: 1; filter: none; transition: opacity .7s var(--ease), filter .7s var(--ease), transform 1.1s var(--ease-out); }

/* ---------- Apparition au défilement ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(28px); }
.js-motion .reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.js-motion .reveal--left { transform: translateX(-28px); }
.js-motion .reveal--scale { transform: scale(.96); }

/* ---------- Barre latérale & newsletter ---------- */
.widget { transition: box-shadow .4s var(--ease-out); }
.widget:hover { box-shadow: var(--shadow); }
.newsletter { box-shadow: var(--shadow-lg); }
.newsletter::after { animation: floatBand 7s ease-in-out infinite; }
@keyframes floatBand { 0%, 100% { transform: rotate(35deg) translateY(0); } 50% { transform: rotate(35deg) translateY(10px); } }
.newsletter__icon { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.newsletter input[type=email], .footer-nl__form input { transition: box-shadow .25s, border-color .25s, background .25s; }

/* ---------- En-têtes de pages ---------- */
.page-hero::after { animation: bandIn 1s var(--ease-out) both; }
@keyframes bandIn { from { opacity: 0; transform: rotate(-35deg) translateX(80px); } }
.page-hero h1, .page-hero p, .page-hero__meta { animation: heroUp .8s var(--ease-out) both; }
.page-hero p { animation-delay: .1s; }
.page-hero__meta { animation-delay: .18s; }

/* ---------- Article ---------- */
.reading-progress { height: 4px; background: linear-gradient(90deg, var(--accent-700), var(--accent-500)); box-shadow: 0 0 12px rgba(204,30,79,.6); transition: width .08s linear; }
.article-head .badge, .article-title, .article-lead, .article-meta { animation: heroUp .8s var(--ease-out) both; }
.article-title { animation-delay: .06s; }
.article-lead { animation-delay: .14s; }
.article-meta { animation-delay: .22s; }
.article-figure img { box-shadow: var(--shadow-lg); }
.prose a { transition: color .2s, text-decoration-color .2s; }
.share a, .share button { transition: transform .25s var(--ease), box-shadow .25s; }
.share a:hover, .share button:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); }

/* ---------- Vidéos ---------- */
.play span { transition: transform .4s var(--ease-out), box-shadow .4s; }
.video-card:hover .play span { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(204,30,79,.25), 0 12px 26px rgba(0,0,0,.35); }

/* ---------- Pied de page ---------- */
.footer-nl::before { animation: floatBand2 8s ease-in-out infinite; }
@keyframes floatBand2 { 0%, 100% { transform: rotate(-35deg) translateX(0); } 50% { transform: rotate(-35deg) translateX(30px); } }
.footer__links a { display: inline-block; transition: color .2s, transform .25s var(--ease); }
.footer__links a:hover { transform: translateX(4px); }
.site-footer .socials a, .socials a { transition: background .2s, color .2s, transform .25s var(--ease); }
.socials a:hover { transform: translateY(-3px); }
.footer__motto span { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.14), rgba(255,255,255,.04)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }

/* Bouton « haut de page » avec anneau de progression */
.fab { transition: transform .3s var(--ease), opacity .3s, visibility .3s, background .2s; }
.fab--top { transform: translateY(14px) scale(.9); }
.fab--top.is-visible { transform: none; }
.fab--top.is-visible:hover { transform: translateY(-3px); }
.fab--top { --p: 0; background: conic-gradient(var(--accent-600) calc(var(--p) * 1%), var(--ink) 0); }
.fab--top i { position: relative; z-index: 1; }
.fab--top::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.fab--top:hover::before { background: var(--accent-600); }
.fab--wa { animation: waIn .6s var(--ease-out) 1s both; }
.fab--wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: waRing 2.6s ease-out 2s infinite; }
@keyframes waIn { from { opacity: 0; transform: scale(.4); } }
@keyframes waRing { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 80%, 100% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

/* Notifications */
.toast { border-radius: 16px; animation: toastIn .5s var(--ease-out); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }

/* Pagination */
.pagination__btn { transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
a.pagination__btn:hover { transform: translateY(-2px); }

/* ---------- Mouvement réduit : tout est affiché sans animation ---------- */
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal, .js-motion img.lazy-fade { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__main .feature img { animation: none; }
  .js-motion .section__head:not(.is-in)::before { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media print {
  .js-motion .reveal, .js-motion img.lazy-fade { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Article sans photo : l'image de remplacement s'efface derrière le titre */
.feature--noimg img { opacity: .35; }
.feature--noimg::before { background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.95) 100%); }

/* ==================================================================
   PIED DE PAGE (V2)
   ================================================================== */
.sf { position: relative; background: #0d0d0d; color: rgba(255,255,255,.68); margin-top: 96px; font-size: 15px; }
.sf::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent-600) 0 160px, rgba(255,255,255,.08) 160px); }
.sf a { color: rgba(255,255,255,.72); }
.sf a:hover { color: #fff; }

/* Lettre d'information : carte rouge qui chevauche le haut du pied de page */
.sf-nl {
  position: relative; top: -56px; margin-bottom: -16px; overflow: hidden; isolation: isolate;
  display: grid; gap: 20px; padding: 28px 24px; border-radius: 20px; color: #fff;
  background: radial-gradient(500px 220px at 100% 0%, rgba(255,255,255,.16), transparent 60%), linear-gradient(120deg, #d4245a, #9c1239);
  box-shadow: 0 30px 60px -30px rgba(204,30,79,.75);
}
.sf-nl::after { content: "sur"; position: absolute; z-index: -1; right: 18px; bottom: -42px; font: italic 900 160px/1 var(--font-display); color: rgba(255,255,255,.07); transform: rotate(-12deg); pointer-events: none; }
.sf-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.sf-nl h2 { color: #fff; font-family: var(--font-display); font-weight: 900; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; margin: 8px 0 8px; }
.sf-nl p { margin: 0; color: rgba(255,255,255,.85); max-width: 520px; }
.sf-nl__form { display: grid; gap: 10px; align-content: center; }
.sf-nl__form input { height: 54px; padding: 0 22px; border: 0; border-radius: var(--pill); background: #fff; color: var(--ink); min-width: 0; font-size: 16px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.5); }
.sf-nl__form input:focus { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; }
.sf-nl__form .btn { min-height: 54px; background: #111; color: #fff; box-shadow: none; padding-inline: 26px; }
.sf-nl__form .btn:hover { background: #000; color: #fff; }
@media (min-width: 860px) {
  .sf-nl { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding: 40px 44px; }
  .sf-nl__form { grid-template-columns: 1fr auto; }
}

/* Colonnes */
.sf-grid { display: grid; gap: 36px; padding-block: 8px 44px; }
@media (min-width: 700px) { .sf-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .sf-grid { grid-template-columns: 1.35fr 1.15fr .9fr 1.25fr; gap: 44px; } }
.sf-brand img { width: 210px; height: auto; }
.sf-brand__tag { margin: 14px 0 0; font-family: var(--font-serif); font-style: italic; color: rgba(255,255,255,.55); font-size: 14px; }
.sf-brand__desc { margin: 12px 0 0; font-size: 14.5px; line-height: 1.7; }
.sf-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sf-socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: background .25s, transform .25s var(--ease), border-color .25s; }
.sf-socials a:hover { background: var(--accent-600); border-color: var(--accent-600); transform: translateY(-3px); }

.sf-title { color: #fff; font-family: var(--font-sans); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 6px 0 18px; display: flex; align-items: center; gap: 10px; }
.sf-title::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent-600); }
.sf-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sf-links--2 { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.sf-links a { position: relative; display: inline-block; transition: color .2s, transform .25s var(--ease); }
.sf-links a::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent-600); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease); }
.sf-links a:hover { transform: translateX(10px); }
.sf-links a:hover::before { opacity: 1; transform: none; }

.sf-info { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.sf-info li { display: flex; gap: 12px; align-items: flex-start; }
.sf-info i { width: 16px; margin-top: 5px; color: var(--accent-500); text-align: center; }
.sf-alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.sf-alert > i:first-child { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-600); color: #fff; flex-shrink: 0; }
.sf-alert strong { display: block; color: #fff; font-size: 14.5px; }
.sf-alert small { display: block; color: rgba(255,255,255,.6); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.sf-alert__go { margin-left: auto; color: rgba(255,255,255,.5); transition: transform .25s var(--ease), color .2s; }
.sf-alert:hover { background: rgba(255,255,255,.09); border-color: rgba(204,30,79,.6); transform: translateY(-2px); }
.sf-alert:hover .sf-alert__go { transform: translateX(4px); color: #fff; }
.sf-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; }
.sf-wa i { color: #25d366; font-size: 18px; }
.sf-staff { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 10px; color: #fff; font-family: var(--font-serif); }
.sf-staff small { display: block; font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }

.sf-bottom { border-top: 1px solid rgba(255,255,255,.08); background: #090909; }
.sf-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 18px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.sf-bottom em { font-family: var(--font-serif); color: rgba(255,255,255,.7); }
.sf-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sf-legal a { color: rgba(255,255,255,.55); }
@media (max-width: 699px) {
  .sf { margin-top: 84px; }
  .sf-nl { padding: 24px 20px; border-radius: 18px; }
  .sf-bottom__inner { flex-direction: column; align-items: flex-start; padding-bottom: 86px; }
}
@media print { .sf { display: none !important; } }

/* Photos dans le texte : une photo en hauteur ne prend plus tout l'écran */
.article-extra-img { text-align: center; }
.article-extra-img img { width: auto; max-width: 100%; max-height: min(70vh, 620px); margin-inline: auto; box-shadow: var(--shadow); }
.article-extra-img figcaption { text-align: left; max-width: 640px; margin-inline: auto; }
