/* ========================================================
   LEADERS — Design System Officiel (assets/css/main.css)
   Référence visuelle : Maquette DIGITAL 360X (15/10/2026)
   Client : Groupe ARC-EN-CIEL
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  /* Couleurs principales */
  --navy: #1A2246;
  --navy-dark: #121A36;
  --navy-top: #0F1530;
  --navy-drawer: #111833;
  --navy-nav: #141B3B;
  --fond: #FAF9F6;
  --encre: #16192B;
  --encre-sec: #3A3F50;
  --encre-leg: #5A5F70;
  --ligne: #E2DED4;
  --ligne-dark: #D8D3C7;
  --ligne-light: #EEE9DD;
  --or: #B07D24;
  --or-accent: #E9C46A;
  --or-texte: #8A6418;
  --rouge: #B3261E;
  --rouge-vif: #D52B1E;

  /* Barre signature du logo */
  --mali-vert: #1A8A3C;
  --mali-jaune: #F2B705;
  --mali-rouge: #D52B1E;

  /* Polices */
  --font-ui: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: Georgia, 'Times New Roman', serif;

  /* Alias et compatibilité */
  --navy2: #121A36;
  --orc: #E9C46A;
  --orf: #8A6418;
  --vert: #1A8A3C;
  --txt: #16192B;
  --txt2: #5A5F70;
}

/* Normalisation de l'esperluette pour éviter la ligature cursive de Playfair Display */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  src: local('Georgia'), local('Times New Roman');
  unicode-range: U+0026;
}

[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 64px;
}

body {
  font-family: var(--font-ui);
  background: var(--fond);
  color: var(--encre);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy-dark);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: var(--or-texte);
}

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

/* Utilitaires maquette */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.navscroll {
  overflow-x: auto;
  scrollbar-width: none;
}

.navscroll::-webkit-scrollbar {
  display: none;
}

.navlink {
  transition: border-color .2s ease, color .2s ease;
}

.navlink:hover,
.navlink:focus-visible,
.navlink.active {
  color: #fff !important;
  border-bottom-color: var(--acc, var(--or-accent)) !important;
  background: rgba(255, 255, 255, 0.04);
}

/* Barre de navigation sticky au scroll vertical */
.rubrics-nav-new {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #141B3B;
  border-top: 1px solid #252E57;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 18px rgba(10, 14, 30, 0.4);
  transition: box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform, position;
}
.rubrics-nav-new.is-stuck {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  background: #0E142B;
}

/* Point rouge éditorial Flash info (conforme maquette) */
.flash-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #D52B1E;
  display: inline-block;
  flex-shrink: 0;
}

/* Carrousel immersif de défilement Flash info */
.flash-carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.flash-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}
.flash-card-item {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  box-sizing: border-box;
}
@media (max-width: 960px) {
  .flash-card-item {
    flex: 0 0 calc(50% - 10px);
  }
}
@media (max-width: 640px) {
  .flash-card-item {
    flex: 0 0 88%;
  }
}

.lift {
  transition: opacity .2s ease;
}

.lift:hover {
  opacity: .88;
}

.lift:hover .hl {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--encre);
  margin: 0;
}

/* Signature tricolore */
.trico {
  display: flex;
  height: 4px;
  width: 100%;
}
.trico span {
  flex: 1;
}
.trico .v { background: var(--mali-vert); }
.trico .o { background: var(--mali-jaune); }
.trico .r { background: var(--mali-rouge); }

/* 1. TOP BAR */
.top-bar-new {
  background: var(--navy-top);
  color: #C9CEDD;
  font-size: 14px;
}
.top-bar-new .wrap {
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.top-bar-new a {
  color: #fff;
}
.top-bar-new a:hover {
  color: var(--or-accent);
}

/* 2. MASTHEAD */
.site-header-new {
  background: var(--navy);
  color: #fff;
}
.site-header-new a {
  color: #fff;
}
.mh-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.mh-bars {
  display: flex;
  gap: 3px;
  height: 48px;
}
.mh-word {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 54px;
  letter-spacing: .01em;
  line-height: 1;
}
.mh-sub {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #B4BACF;
}
.mh-cta {
  height: 46px;
  padding: 0 20px;
  border-radius: 0;
  background: var(--or);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: opacity .15s ease;
}
.mh-cta:hover {
  opacity: .92;
}

/* 3. BARRE DES RUBRIQUES */
.rubrics-nav-new {
  background: var(--navy-nav);
  border-top: 1px solid #252E57;
}
.rubrics-nav-new .navscroll {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 32px;
}
.rubrics-nav-new .navlink {
  display: flex;
  align-items: center;
  height: 50px;
  color: #E6E8F0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  box-sizing: border-box;
  padding-top: 3px;
}

/* 4. TIROIR / MENU DÉROULANT AVEC HOVER DYNAMIQUE */
.mh-menu-trigger-wrap {
  user-select: none;
}
.mh-menu-trigger-wrap:hover .mh-menu-btn {
  background: rgba(255, 255, 255, 0.1) !important;
}
.mh-menu-trigger-wrap:hover .mh-tag {
  color: #FFFFFF !important;
}

#menu-panel {
  background: var(--navy-drawer, #111833);
  border-top: 1px solid #252E57;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: menuSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#menu-panel.is-open {
  display: block !important;
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-rubriques-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 24px;
}

@media (max-width: 1024px) {
  .menu-rubriques-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .menu-rubriques-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 16px !important;
  }
}

/* Hover dynamique sur chaque rubrique */
.menu-rubrique-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: #FFFFFF !important;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px !important;
  margin: -6px -10px;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer;
}

.menu-rubrique-link .menu-dot {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}

.menu-rubrique-link:hover,
.menu-rubrique-link:focus-visible {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateX(4px);
}

.menu-rubrique-link:hover .menu-dot,
.menu-rubrique-link:focus-visible .menu-dot {
  transform: scale(1.45);
  box-shadow: 0 0 10px var(--acc, #D18A1A);
}

/* Liens transversaux inférieurs du tiroir */
.menu-footer-links {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #2A3254;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
}

.menu-footer-link {
  color: #C9CEDD !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  text-decoration: none;
  padding: 5px 10px;
  margin: -5px -10px;
  border-radius: 4px;
  transition: all 0.2s ease !important;
  cursor: pointer;
}

.menu-footer-link svg {
  stroke: currentColor;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.menu-footer-link:hover,
.menu-footer-link:focus-visible {
  color: #E9C46A !important;
  background: rgba(233, 196, 106, 0.08) !important;
  transform: translateY(-2px);
}

.menu-footer-link:hover svg,
.menu-footer-link:focus-visible svg {
  stroke: #E9C46A;
  transform: scale(1.12);
}

/* 5. BANNIÈRE PUBLICITAIRE */
.adban {
  position: relative;
  height: 110px;
  border-radius: 0;
  overflow: hidden;
  background: var(--navy-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  box-sizing: border-box;
}

/* BOUTONS ET COMPOSANTS */
.btn-editorial {
  border-radius: 0;
  border: 0;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s ease, background .15s ease;
}
.btn-editorial-dark {
  background: var(--navy-dark);
  color: #fff;
}
.btn-editorial-dark:hover {
  background: #0A0F24;
  color: #fff;
}
.btn-editorial-or {
  background: var(--or);
  color: #fff;
}
.btn-editorial-or:hover {
  opacity: .92;
  color: #fff;
}

/* BANNER ALERTE EXPIRATION */
.banner-expire {
  background: #FFF3CD;
  color: #856404;
  padding: 10px 24px;
  border-bottom: 1px solid #FFEBAA;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.banner-expire a {
  color: #856404;
  font-weight: 700;
  text-decoration: underline;
}

/* RECHERCHE DÉPLIABLE */
#search-bar-inline {
  background: #0F1530;
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
#search-bar-inline input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}
#search-bar-inline input:focus {
  outline: none;
  border-color: var(--or-accent);
}

/* MODALE PAYWALL */
.mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 36, 0.7);
  z-index: 9998;
  backdrop-filter: blur(4px);
}
.mask.open {
  display: block;
}
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 520px;
  background: #fff;
  border-radius: 0;
  padding: 36px 32px 30px;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-top: 4px solid var(--or);
}
.modal.open {
  display: block;
}
.modal .x {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
  color: var(--encre-leg);
}
.modal h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--navy-dark);
  margin-bottom: 12px;
}
.modal p {
  font-size: 15px;
  color: var(--encre-sec);
  line-height: 1.55;
  margin-bottom: 20px;
}
.modal .off {
  background: #F8F6F0;
  border: 1px solid var(--ligne);
  padding: 16px;
  margin-bottom: 22px;
}
.modal .off b {
  display: block;
  font-size: 16px;
  color: var(--navy-dark);
  margin-bottom: 4px;
}
.modal .off span {
  font-size: 13px;
  color: var(--encre-leg);
}

/* MEDIA QUERIES MOBILE (<= 760px) */
@media (max-width: 760px) {
  .mh-grid {
    grid-template-columns: auto 1fr auto !important;
    padding: 16px 16px 14px !important;
  }
  .mh-tag, .mh-search {
    display: none !important;
  }
  .navscroll {
    justify-content: flex-start !important;
    gap: 24px !important;
  }
  .mh-word {
    font-size: 34px !important;
  }
  .mh-bars {
    height: 30px !important;
  }
  .mh-sub {
    font-size: 9px !important;
    letter-spacing: .14em !important;
    margin-top: 6px !important;
  }
  .mh-cta {
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
  }
  .adban {
    height: auto !important;
    flex-wrap: wrap;
    padding: 18px !important;
    gap: 12px !important;
  }
  .adban .ad-line {
    font-size: 18px !important;
  }
  .adban .ad-sub {
    white-space: normal !important;
  }
}

/* ====================================================================
   BARRE DE NAVIGATION MOBILE INFÉRIEURE (BOTTOM NAVBAR LEADERS)
   Conforme aux maquettes Image 1 & Image 2 (5 accès directs en bas d'écran)
   ==================================================================== */
.mobile-bottom-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: rgba(14, 21, 46, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(212, 162, 58, 0.35);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
  z-index: 1050;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
}

.mobile-nav-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 58px;
}

.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 58px;
  text-decoration: none !important;
  color: #A0A6BF;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.18s ease, transform 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mob-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: transform 0.18s ease;
}

.mob-nav-item svg {
  stroke: currentColor;
  transition: stroke 0.18s ease, transform 0.18s ease;
}

.mob-nav-item:hover,
.mob-nav-item:active {
  color: #FFFFFF;
}

.mob-nav-item:active {
  transform: scale(0.93);
}

.mob-nav-item.active {
  color: #D4A23A;
  font-weight: 700;
}

.mob-nav-item.active svg {
  stroke: #D4A23A;
  transform: translateY(-1px);
}

.mob-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, #D4A23A, #F3D27A);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 1px 8px rgba(212, 162, 58, 0.6);
}

.mob-nav-label {
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
}

.mob-lbl-short { display: inline; }
.mob-lbl-full { display: none; }
@media (min-width: 440px) {
  .mob-lbl-short { display: none; }
  .mob-lbl-full { display: inline; }
}

@media (max-width: 860px) {
  .mobile-bottom-navbar {
    display: flex;
  }
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ====================================================================
   ESPACE PARTENAIRE DE RUBRIQUE (RESPONSIVE & RÉADAPTÉ)
   ==================================================================== */
.partenaire-rubrique-container {
  margin: 0 auto;
}

.adban-rubrique {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.adban-rubrique:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25) !important;
}

.adban-rubrique .adban-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

@media (max-width: 768px) {
  .adban-rubrique {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 24px 18px 16px !important;
    height: auto !important;
  }
  .adban-rubrique .adban-corner-tag {
    position: static !important;
    width: 100% !important;
    order: -1;
    font-size: 9px !important;
    margin-bottom: -4px;
  }
  .adban-rubrique .adban-badge {
    width: 42px !important;
    height: 42px !important;
    font-size: 16px !important;
  }
  .adban-rubrique .adban-title {
    font-size: 17px !important;
  }
  .adban-rubrique .adban-desc {
    font-size: 12px !important;
  }
  .adban-rubrique .adban-btn {
    width: 100% !important;
    height: 38px !important;
    margin-top: 4px;
    text-align: center;
  }
}

/* ====================================================================
   ESPACE PARTENAIRE FORMAT COLONNE DROITE (SIDEBAR CARD - Image 2)
   ==================================================================== */
.adban-sidebar-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.adban-sidebar-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px);
}
.adban-sidebar-card a:hover {
  filter: brightness(1.08);
}

