:root {
  --th-accent: #e1003b;
  --th-accent-strong: #b4002f;
  --th-accent-soft: #ffe6ee;
  --th-accent-soft-strong: #ffd6e3;
  --th-busetcar: #e1003b;
  --th-bus-accent: #e1003b;
  --th-bus-accent-strong: #b4002f;
  --th-bus-accent-soft: #ffe6ee;
  --th-bus-accent-soft-strong: #ffd6e3;
  --th-tourhebdo: #004c97;
  --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);
}

.domain-banner {
  display: flex;
  width: 100%;
}

.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;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}

.nav-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

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

.nav-links li {
  position: relative;
}

.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);
}

.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;
}

.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;
}

.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;
}

.hero-primary {
  min-height: 420px;
  border-radius: var(--th-radius);
  overflow: hidden;
  position: relative;
  background: #101317;
  color: #fff;
  aspect-ratio: 16 / 10;
}

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

.hero-primary figure {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 0;
}

.hero-primary img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(0.82);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 10%, rgba(0, 0, 0, 0.75) 90%);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  z-index: 1;
}

.hero-overlay h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.hero-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.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;
}

.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);
}

.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);
}

.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;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-overlay h2 {
    font-size: 1.5rem;
  }

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

@media (max-width: 640px) {
  .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;
  }
}
