:root {
  --th-accent: #c8102e;
  --th-accent-strong: #a00d24;
  --th-accent-soft: #fde8eb;
  --th-accent-soft-strong: #f9ced4;
  --th-busetcar: #004c97;
  --th-bus-accent: #004c97;
  --th-bus-accent-strong: #003a73;
  --th-bus-accent-soft: #e2edff;
  --th-bus-accent-soft-strong: #d0e1ff;
  --th-tourhebdo: #c8102e;
  --th-dark: #1f1f1f;
  --th-bg: #f4f4f5;
  --th-border: #dedede;
  --th-text: #303030;
  --th-muted: #6a6a6a;
  --th-card: #ffffff;
  --th-radius: 18px;
  color-scheme: light;
  font-family: "Lato", "Segoe UI", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--th-bg);
  color: var(--th-text);
  font-family: inherit;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--th-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: -40px;
  background: var(--th-accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 8px;
  transition: transform 0.2s;
}

.skip-link:focus-visible {
  inset-block-start: 16px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: transform 0.96s ease, box-shadow 0.96s ease, padding 0.96s ease, height 0.96s ease, opacity 0.96s ease;
}

.site-header.header-reveal {
  animation: header-reveal 0.96s ease;
}

.site-header.header-condensed .topbar,
.site-header.header-condensed .domain-banner,
.site-header.header-condensed .news-ticker {
  display: none;
}

.site-header.header-condensed .main-nav {
  padding: 0 6vw;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.site-header.header-condensed .nav-links a {
  padding: 10px 0;
  font-size: 0.85rem;
}

.site-header.header-condensed {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

@keyframes header-reveal {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header.compact {
  position: static;
}

.topbar {
  display: none;
}

.topbar-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-links a {
  color: var(--th-dark);
}

.topbar-links a:hover {
  color: var(--th-accent);
}

.topbar-cta {
  background: var(--th-accent);
  color: #fff !important;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
}

.topbar-cta:hover {
  background: var(--th-accent-strong);
  text-decoration: none;
}

.domain-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 6vw;
  background: var(--th-accent);
  border-bottom: 1px solid var(--th-border);
}

.domain-logo {
  display: inline-flex;
  align-items: center;
}

.domain-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.domain-link {
  flex: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  padding: 12px 0;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.domain-tourhebdo {
  background: var(--th-tourhebdo);
}

.domain-busetcar {
  background: var(--th-busetcar);
}

.domain-link-active {
  box-shadow: inset 0 -4px rgba(255, 255, 255, 0.4);
}

.domain-link:hover,
.domain-link:focus-visible {
  opacity: 0.9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--th-accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(11, 111, 203, 0.2);
}

.btn.ghost {
  border: 1px solid var(--th-border);
  color: var(--th-dark);
  background: transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.main-nav {
  background: var(--th-accent);
  color: #fff;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.nav-brand {
  display: none;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: center;
}

.nav-links a {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 0;
  display: inline-block;
}

.nav-links li {
  position: relative;
}

/* Bus & Car logo in domain-banner — hidden, we use the one in nav */
.domain-logo-bus {
  display: none;
}

/* Bus & Car section in nav: wrapper holds logo + 2 items */
.nav-bus-section {
  position: relative;
  display: flex;
  align-items: flex-end;
  margin-left: 4px;
}
.nav-bus-section .nav-bus-logo-top {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  padding: 6px 0 4px;
  z-index: 10;
  display: flex;
  justify-content: center;
  background: var(--th-busetcar);
  border-radius: 10px 10px 0 0;
}
.nav-bus-section .nav-bus-logo-top img {
  width: 50%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}
.nav-bus-section .nav-bus-logo-top:hover img {
  opacity: 0.8;
}
.nav-bus-section > li {
  list-style: none;
  position: relative;
}
.nav-bus-section > li > a {
  background: var(--th-busetcar);
  color: #fff !important;
  padding: 14px 12px;
  white-space: nowrap;
  display: inline-block;
}
.nav-bus-section > li:first-of-type > a {
  border-radius: 0;
}
.nav-bus-section > li:last-of-type > a {
  border-radius: 0;
}
.nav-bus-section > li > a:hover {
  background: var(--th-bus-accent-strong);
}
.nav-bus-section > li.has-submenu:hover > a,
.nav-bus-section > li.has-submenu:focus-within > a {
  background: var(--th-bus-accent-strong);
  border-radius: 0;
}
.nav-bus-section .submenu a:hover,
.nav-bus-section .submenu a:focus-visible {
  background: var(--th-bus-accent-strong);
  color: #fff;
}

.nav-links .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  color: var(--th-text);
  min-width: 520px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  border: 1px solid var(--th-border);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 6px 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}

.nav-links .submenu li {
  list-style: none;
}

.nav-links .submenu a {
  color: var(--th-text);
  padding: 6px 8px;
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
  border-radius: 8px;
  word-break: break-word;
}

.nav-links .submenu a:hover,
.nav-links .submenu a:focus-visible {
  background: var(--th-accent-soft);
  color: var(--th-accent-strong);
}

.nav-links li.has-submenu:hover > a,
.nav-links li.has-submenu:focus-within > a {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.nav-links li:hover > .submenu,
.nav-links li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-search {
  margin-left: auto;
}

.nav-search a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-search svg {
  vertical-align: middle;
}

.news-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 6vw;
  background: var(--th-accent-soft);
  border-bottom: 1px solid var(--th-accent-soft-strong);
  font-size: 0.74rem;
}

.news-ticker p,
.news-ticker .ticker-label {
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

#tickerText {
  min-height: 1.2em;
}

.ticker-label {
  background: transparent;
  color: var(--th-accent);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(280px, 1fr);
  gap: 32px;
  padding: 32px 6vw 64px;
  max-width: 1440px;
  margin: 0 auto;
}

.page-layout > *,
.primary-column,
.sidebar,
.hero-grid > *,
.hero-primary,
.hero-rail,
.hero-overlay,
.hero-overlay h2,
.hero-overlay p,
.hero-meta,
.hero-rail-card,
.hero-rail-card h4,
.hero-rail-card p {
  min-width: 0;
}

.primary-column > section,
.sidebar .widget {
  background: #fff;
  border-radius: var(--th-radius);
  box-shadow: 0 15px 35px rgba(15, 15, 30, 0.08);
  padding: 24px;
  margin-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding-bottom: 8px;
  align-items: stretch;
}

/* « À la une » en pleine largeur, au-dessus de (dernières actus + sidebar) */
.page-layout > .hero-grid {
  grid-column: 1 / -1;
}

.hero-primary {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  width: 100%;
  max-width: 100%;
  border-radius: var(--th-radius);
  overflow: hidden;
  background: #c8102e;
  color: #fff;
  isolation: isolate;
}

.hero-primary.hero-clickable {
  cursor: pointer;
}

/* Image : bloc séparé EN HAUT (jamais de texte par-dessus) */
.hero-primary figure {
  margin: 0;
  position: relative;
  width: 100%;
  height: clamp(200px, 28vw, 320px);
  flex: 0 0 auto;
  overflow: hidden;
  background: #101317;
}

.hero-primary img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
}

/* Titre : bloc séparé EN BAS, sur fond rouge Tour Hebdo */
.hero-overlay {
  position: static;
  flex: 1 1 auto;
  background: #c8102e;
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.hero-overlay .btn.primary {
  background: #fff;
  color: #c8102e;
  border-color: #fff;
}

.hero-overlay h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  max-width: 100%;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  max-width: min(100%, 42rem);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-meta {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  flex-wrap: wrap;
}

.hero-cat {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
}

.hero-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 470px;
}

.hero-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--th-muted);
}

.hero-rail-head button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--th-border);
  background: #fff;
  cursor: pointer;
  position: relative;
}

#heroPrev::before,
#heroNext::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--th-dark);
  border-left: 2px solid var(--th-dark);
  transform: rotate(45deg);
}

#heroNext::before {
  transform: rotate(-135deg);
}

.hero-rail-card {
  display: flex;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
}

.hero-rail-card:last-child {
  border-bottom: none;
}

.hero-rail-card.active h4 {
  color: var(--th-accent);
}

.hero-rail-card.active {
  border-bottom-color: var(--th-accent);
}

.hero-rail-card img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.hero-rail-card h4 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.hero-rail-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--th-muted);
}

.hero-primary-skeleton,
.hero-rail-skeleton,
.article-card-skeleton,
.trending-skeleton-item {
  position: relative;
  overflow: hidden;
  background: rgba(236, 240, 246, 0.95);
}

.hero-primary-skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.hero-rail-skeleton {
  height: 74px;
  border-radius: 14px;
}

.article-card-skeleton {
  min-height: 360px;
  border-radius: 18px;
}

.trending-skeleton-item {
  height: 18px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.trending-skeleton-item:last-child {
  margin-bottom: 0;
}

#heroRail {
  min-height: 400px;
}

#latestList {
  min-height: 1120px;
}

#trendingList {
  min-height: 180px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.section-head.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
}

.eyebrow {
  text-transform: uppercase;
  color: var(--th-muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.article-card {
  border: 1px solid #f0f0f0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.article-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article-card-body {
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card-body h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--th-dark);
}

.article-card-body p {
  margin: 0;
  color: var(--th-muted);
  font-size: 0.95rem;
}

.article-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--th-muted);
}

.bus-category-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.bus-category-block h3 {
  margin: 0 0 6px;
}

.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-tabs button {
  border: 1px solid var(--th-border);
  border-radius: 999px;
  padding: 8px 18px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--th-muted);
}

.category-tabs button.active {
  background: var(--th-accent);
  border-color: var(--th-accent);
  color: #fff;
}

.category-panels {
  margin-top: 12px;
}

.category-panel {
  display: none;
}

.category-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.category-card {
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07);
}

.category-thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
}

.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.category-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--th-muted);
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.deep-dive-card {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(160deg, #1f1823, var(--th-accent));
  color: #fff;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deep-dive-card h4 {
  margin: 0;
}

.deep-dive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
}

.widget {
  border-radius: var(--th-radius);
  padding: 24px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(5, 5, 20, 0.08);
}

.widget-eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--th-muted);
  margin: 0 0 8px;
}

.widget h3 {
  margin: 0 0 8px;
}

.widget form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget input {
  border: 1px solid var(--th-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 1rem;
}

.trending ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending li a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
}

.trending li span {
  font-size: 1.2rem;
  color: var(--th-accent);
  font-weight: 700;
}

.site-footer {
  background: var(--th-dark);
  color: #fff;
  padding: 48px 6vw 32px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 24px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.footer-links h4 {
  margin: 0 0 10px;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 6vw;
}

.article-page {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.article-page-category {
  text-transform: uppercase;
  color: var(--th-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.article-page h1 {
  margin: 8px 0 16px;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.article-page-meta {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--th-muted);
  flex-wrap: wrap;
}

.article-page-hero {
  margin: 24px 0;
  border-radius: 20px;
  overflow: hidden;
}

.article-page-chapeau {
  font-size: 1.1rem;
  font-weight: 600;
}

.article-page-content p {
  margin-bottom: 1.1em;
  font-size: 1.02rem;
}

.article-page-content ul {
  padding-left: 1.3em;
}

.article-page-content img {
  border-radius: 12px;
  margin: 16px 0;
}

.article-breadcrumb {
  font-size: 0.9rem;
  color: var(--th-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.article-rail .widget {
  margin-bottom: 20px;
}

.article-view .page-layout {
  display: block;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--th-border);
  margin-top: 18px;
  color: var(--th-dark);
  font-weight: 600;
}

.section-shell {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 6vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-heading h1 {
  margin: 6px 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-heading p {
  margin: 0;
  color: var(--th-muted);
}

.section-hero {
  background: #fff;
  border-radius: var(--th-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.section-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}

.section-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--th-radius);
}

.section-hero-content h2 {
  margin: 10px 0;
  font-size: 2rem;
}

.section-hero-content p {
  margin: 0 0 10px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.section-card {
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(20, 20, 40, 0.06);
}

.section-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.section-card-body {
  padding: 16px;
}

.section-card-meta {
  margin: 0 0 6px;
  color: var(--th-muted);
  font-size: 0.9rem;
}

.section-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.section-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: var(--th-radius);
  border: 1px dashed var(--th-border);
}

/* ── Section pagination ── */

.section-pagination {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 6vw;
  text-align: center;
}

.pagination-status {
  font-size: 0.9rem;
  color: var(--th-muted);
  margin-bottom: 16px;
}

.pagination-controls {
  margin-bottom: 20px;
}

.pagination-load-more {
  font-size: 1rem;
  padding: 12px 32px;
}

.pagination-end {
  font-size: 0.9rem;
  color: var(--th-muted);
  font-style: italic;
}

.pagination-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination-page,
.pagination-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--th-dark);
  text-decoration: none;
  border: 1px solid var(--th-border);
  background: #fff;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.pagination-page:hover,
.pagination-arrow:hover {
  background: var(--th-accent-soft, #e8f0fe);
  border-color: var(--th-accent);
  color: var(--th-accent);
}

.pagination-page-active {
  background: var(--th-accent);
  color: #fff;
  border-color: var(--th-accent);
  pointer-events: none;
}

.pagination-arrow {
  font-size: 1.2rem;
  font-weight: 700;
}

.pagination-arrow-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  color: var(--th-muted);
  font-size: 0.9rem;
}

/* Loading spinner */

.section-spinner {
  text-align: center;
  padding: 32px 0;
  color: var(--th-muted);
}

.section-spinner p {
  margin-top: 12px;
  font-size: 0.9rem;
}

.spinner-dot {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  border: 3px solid var(--th-border);
  border-top-color: var(--th-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.nav-link-active {
  font-weight: 700;
  border-bottom: 2px solid #fff;
}

.bus-theme {
  --th-accent: var(--th-bus-accent);
  --th-accent-strong: var(--th-bus-accent-strong);
  --th-accent-soft: var(--th-bus-accent-soft);
  --th-accent-soft-strong: var(--th-bus-accent-soft-strong);
}

.bus-theme .domain-tourhebdo {
  background: var(--th-tourhebdo);
}

.bus-theme .domain-busetcar {
  background: var(--th-busetcar);
}

.bus-theme .main-nav {
  background: var(--th-bus-accent);
}

.bus-theme .newsletter-widget .newsletter-toggle {
  background: var(--th-bus-accent);
}

.bus-theme .newsletter-widget .newsletter-panel {
  background: var(--th-bus-accent-soft);
}

.bus-theme .topbar {
  display: none;
}

/* CDC page */
.cdc-shell {
  max-width: 980px;
  margin: 40px auto 80px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cdc-intro,
.cdc-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(5, 5, 30, 0.08);
  padding: 28px;
}

.cdc-intro h1 {
  margin: 0 0 12px;
}

.cdc-hint {
  color: var(--th-muted);
  font-size: 0.9rem;
  margin: 0;
}

.cdc-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cdc-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.cdc-card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--th-muted);
  margin: 0;
}

.cdc-card-path {
  color: var(--th-muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.cdc-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cdc-notes li {
  border: 1px solid var(--th-border);
  border-radius: 14px;
  padding: 12px 16px;
  background: #fdfbfd;
}

.cdc-note-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-muted);
}

.cdc-note-heading strong {
  color: var(--th-accent);
  letter-spacing: 0.05em;
}

.cdc-note-text {
  margin: 8px 0;
  font-weight: 600;
}

.cdc-note-context {
  margin: 0;
  color: var(--th-muted);
  font-size: 0.9rem;
}

.cdc-empty {
  text-align: center;
  padding: 40px;
  border-radius: 18px;
  border: 1px dashed var(--th-border);
  background: rgba(255, 255, 255, 0.8);
}

/* Annotation helpers */
.note-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 111, 203, 0.12);
  color: var(--th-accent-strong);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(11, 111, 203, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
}

.note-marker:focus-visible {
  outline: 2px solid #222;
}

.note-popup {
  position: absolute;
  width: 280px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 20px 45px rgba(10, 0, 20, 0.25);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.note-popup textarea {
  min-height: 100px;
  font: inherit;
  border-radius: 12px;
  border: 1px solid var(--th-border);
  padding: 8px 10px;
  resize: vertical;
}

.note-marker-highlight {
  animation: th-note-pulse 1s ease-in-out infinite alternate;
}

@keyframes th-note-pulse {
  from {
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.note-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.note-popup button {
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.note-popup-save {
  background: var(--th-accent);
  color: #fff;
}

.note-popup-delete {
  background: var(--th-accent-soft);
  color: var(--th-accent-strong);
}

.note-popup-cancel {
  background: #efefef;
}

.note-popup-status {
  font-size: 0.85rem;
  color: var(--th-muted);
}

.note-popup-status-success {
  color: #006c3c;
}

.note-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 160;
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  background: #fff;
  border: 1px solid var(--th-border);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.note-toggle.note-toggle-active {
  background: var(--th-accent);
  color: #fff;
  border-color: transparent;
}

.newsletter-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: min(320px, calc(100% - 30px));
  padding: 0;
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  background: transparent;
  z-index: 200;
}

.newsletter-widget .newsletter-toggle {
  width: 100%;
  border: none;
  background: var(--th-accent);
  color: #fff;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newsletter-widget .newsletter-toggle:hover,
.newsletter-widget .newsletter-toggle:focus-visible {
  box-shadow: 0 12px 26px rgba(11, 111, 203, 0.32);
  transform: translateY(-2px);
  outline: none;
}

.newsletter-widget.open .newsletter-toggle {
  border-radius: 18px 18px 0 0;
}

.toggle-eyebrow {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  opacity: 0.9;
}

.toggle-desc {
  font-size: 0.9rem;
  opacity: 0.95;
}

.newsletter-widget .newsletter-panel {
  padding: 20px;
  background: #fff;
  display: none;
  text-align: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.newsletter-widget.open .newsletter-panel {
  display: block;
}

.newsletter-widget .newsletter-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-panel h3 {
  margin: 0;
  font-size: 1.1rem;
}

.newsletter-panel p {
  margin: 6px 0 14px;
  color: var(--th-muted);
  font-size: 0.95rem;
}

.newsletter-panel form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.newsletter-panel label {
  font-weight: 700;
  align-self: flex-start;
}

.newsletter-panel input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--th-border);
  font-size: 1rem;
}

.newsletter-panel .btn.primary {
  width: 100%;
}

/* Page devenez annonceur */
.annonceur-page {
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 60%);
}

.annonceur-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.annonceur-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 28px;
  border-radius: 18px;
  background: radial-gradient(circle at 20% 20%, rgba(217, 58, 71, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(57, 120, 255, 0.08), transparent 35%),
    #0f1b30;
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 27, 48, 0.25);
}

.annonceur-hero .eyebrow {
  color: #9fb7ff;
}

.annonceur-hero h1 {
  font-size: 32px;
  margin: 6px 0 10px;
}

.annonceur-hero p {
  color: #e6edff;
}

.annonceur-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 8px;
}

.annonceur-points {
  list-style: disc;
  padding-left: 18px;
  color: #d7e2ff;
}

.annonceur-card {
  background: #0c1524;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.annonceur-card a {
  color: #9fb7ff;
}

.annonceur-form-block {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(15, 27, 48, 0.08);
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.annonceur-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.annonceur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.annonceur-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #1b2430;
}

.annonceur-grid input,
.annonceur-grid select,
.annonceur-textarea textarea {
  width: 100%;
  border: 1px solid #d9dfe6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #f9fbff;
}

.annonceur-fieldset {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f9fbff;
}

.annonceur-fieldset legend {
  font-weight: 700;
  color: #1b2430;
  padding: 0 6px;
}

.annonceur-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.annonceur-chips label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9dfe6;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font-weight: 600;
  color: #1b2430;
}

.annonceur-textarea {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: #1b2430;
}

.annonceur-textarea textarea {
  min-height: 120px;
}

.annonceur-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #1f2b3a;
}

.annonceur-consent input {
  margin-top: 4px;
}

.annonceur-footer {
  margin-top: 24px;
}

@media (max-width: 960px) {
  .annonceur-hero,
  .annonceur-form-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .newsletter-widget {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 1100px) {
  .page-layout,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar,
  .domain-banner,
  .main-nav,
  .news-ticker,
  .page-layout,
  .article-shell {
    padding: 16px;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .primary-column > section,
  .sidebar .widget {
    padding: 18px;
  }

  .hero-primary {
    min-height: 320px;
    width: 100%;
    max-width: 100%;
  }

  .hero-overlay {
    padding: 20px;
    gap: 10px;
  }

  .hero-overlay h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1.08;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
  }

  .hero-overlay p {
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  #heroRail {
    min-height: 0;
  }

  #latestList {
    min-height: 1180px;
  }
}

@media (max-width: 640px) {
  .hero-primary {
    min-height: 280px;
  }

  .hero-primary figure {
    padding: 10px;
  }

  .hero-overlay {
    padding: 16px;
  }

  .hero-meta {
    gap: 8px;
    font-size: 0.8rem;
  }

  .hero-rail {
    min-height: 0;
  }

  #latestList {
    min-height: 2080px;
  }

  .article-card-skeleton {
    min-height: 300px;
  }

  .page-snow {
    display: none;
  }

  .main-nav {
    gap: 14px;
    padding: 12px 14px;
  }

  .nav-brand {
    width: 100%;
    justify-content: center;
    padding: 0;
  }

  .nav-links {
    width: 100%;
  }

  .hero-rail {
    gap: 14px;
  }

  .hero-rail-card {
    align-items: center;
  }
}

.sponsored-pill,
.article-sponsored-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 76, 151, 0.12);
  color: #004c97;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sponsored-pill.inline {
  margin-bottom: 6px;
}

.article-sponsored-banner {
  margin-bottom: 10px;
}

/* ===== « À la une » en MOSAÏQUE (5 articles, titre sur l'image, rien ne dépasse) ===== */
.page-layout > .hero-mosaic {
  grid-column: 1 / -1;
}
.hero-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 520px;
  border-radius: var(--th-radius);
  overflow: hidden;
}
.mosaic-tile {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  border-radius: 12px;
  background: #101317;
  text-decoration: none;
}
.mosaic-tile--lead {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.mosaic-media {
  position: absolute;
  inset: 0;
}
.mosaic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mosaic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px 16px;
  background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.85));
}
.mosaic-title {
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.16;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}
.mosaic-tile--lead .mosaic-title {
  font-size: clamp(1.25rem, 1.8vw, 1.9rem);
  -webkit-line-clamp: 3;
}
.mosaic-tile--small .mosaic-title {
  font-size: clamp(0.85rem, 1vw, 1.02rem);
  -webkit-line-clamp: 2;
}
.mosaic-cat {
  align-self: flex-start;
  color: #fff;
  background: #c8102e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.mosaic-tile .sponsored-pill {
  align-self: flex-start;
}
@media (max-width: 760px) {
  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    aspect-ratio: auto;
    max-height: none;
  }
  .mosaic-tile {
    aspect-ratio: 16 / 10;
  }
  .mosaic-tile--lead {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
