/* ============================================
   REGIE.LU — TARIFS 2026
   Visual codes: #ff2621 / #171616 / #fff / #e0e4f0
   Font: NeueMontreal (original regie.lu)
   ============================================ */

@font-face {
  font-family: 'NeueMontreal';
  font-weight: 450;
  font-style: normal;
  src: url(fonts/NeueMontreal-Regular.woff2) format('woff2'),
       url(fonts/NeueMontreal-Regular.woff) format('woff');
}

@font-face {
  font-family: 'NeueMontreal';
  font-weight: 530;
  font-style: normal;
  src: url(fonts/NeueMontreal-Medium.woff2) format('woff2'),
       url(fonts/NeueMontreal-Medium.woff) format('woff');
}

@font-face {
  font-family: 'NeueMontreal';
  font-weight: 800;
  font-style: normal;
  src: url(fonts/NeueMontreal-Bold.woff2) format('woff2'),
       url(fonts/NeueMontreal-Bold.woff) format('woff');
}

:root {
  --red: #ff2621;
  --red-dark: #cb1b17;
  --red-light: #fbe4e5;
  --dark: #171616;
  --grey: #454545;
  --grey-mid: #6b6b6b;
  --grey-light: #e0e4f0;
  --grey-bg: #f4f4f6;
  --white: #ffffff;
  --container: 103.1rem;
  --radius: 0.4rem;
  --transition: 0.25s ease;
}

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

html { font-size: 10px; scroll-behavior: smooth; }

body {
  font-family: 'NeueMontreal', sans-serif;
  font-weight: 450;
  font-size: 1.5rem;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ---- LAYOUT ---- */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

/* ---- HEADER — regie.lu style exact ---- */
.site-header {
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%);
}

.header-nav a:not(.header-cta) {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.index-hero {
  padding-top: 14rem;
}

.index-hero .hero-title span {
  color: var(--white);
}

.page-hero {
  padding-top: 14rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.8rem 0;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  height: 3rem;
  width: auto;
  display: block;
}

/* Badge "Tarifs 2026" à droite du logo */
.header-badge {
  margin-left: 1.6rem;
  padding: 0.75rem 1.95rem;
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 10rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-nav a,
.nav-link {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  font-weight: 450;
  padding: 0.8rem 1.4rem;
  border-radius: 10rem;
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active,
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ---- SÉLECTEUR DE LANGUE / SPRACHUMSCHALTER ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 0.8rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10rem;
  overflow: hidden;
}
.header-nav .lang-switch a {
  padding: 0.55rem 1.15rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  border-radius: 0;
  text-shadow: none;
}
.header-nav .lang-switch a.is-active {
  background: var(--red);
  color: var(--white);
}
.header-nav .lang-switch a:not(.is-active):hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
}

/* ---- MENU BURGER (mobile / tablette) ---- */
/* Case à cocher masquée mais focusable (astuce CSS sans JS) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.nav-burger { display: none; }   /* le bouton n'apparaît qu'en responsive */

/* ---- NAV DROPDOWN ---- */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item--dropdown > .nav-link::after {
  content: ' ▾';
  font-size: 0.75em;
  opacity: 0.55;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -0.8rem;
  left: 0;
  right: 0;
  height: 0.8rem;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.2rem;
  padding: 0.6rem;
  min-width: 20rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.9rem 1.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  font-weight: 450;
  border-radius: 0.8rem;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  transition: var(--transition);
}

.nav-dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.header-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 10rem !important;
  padding: 0.9rem 2.2rem !important;
  font-weight: 530 !important;
  margin-left: 0.8rem;
}

.header-cta:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
}

/* ---- ONGLET STICKY LATÉRAL ---- */
.sticky-contact-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1.4rem 2rem;
  border-radius: 1rem 0 0 1rem;
  text-decoration: none;
  z-index: 999;
  white-space: nowrap;
  box-shadow: -3px 0 16px rgba(0,0,0,0.25);
  transition: background 0.2s, padding 0.2s;
  writing-mode: horizontal-tb;
}
.sticky-contact-tab:hover {
  background: var(--red-dark);
  padding: 1.4rem 2.6rem;
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--red);
  color: var(--white);
  padding: 13rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  left: auto;
  width: 55%;
  background: var(--hero-bg, url(imgs/Luxembourg.jpg)) center/cover no-repeat;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.85) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.85) 100%);
  opacity: 0.55;
  pointer-events: none;
}

.page-hero .hero-title span { color: var(--white); }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 10rem;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3.6rem, 6vw, 7.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero-title span { color: var(--red); }

.hero-desc {
  font-size: 1.7rem;
  color: rgba(255,255,255,0.7);
  max-width: 56rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-meta__item strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
}

.hero-meta__item span {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- TWO-COLUMN LAYOUT (sidebar + content) ---- */
.page-layout {
  display: grid;
  grid-template-columns: 24rem 1fr;
  gap: 4rem;
  align-items: start;
  padding: 5rem 0 8rem;
}

/* Permet aux colonnes de la grille de rétrécir sous la largeur de leur contenu
   (sinon un tableau large fait déborder la page en mobile). */
.page-layout > main,
.page-layout > .sidebar { min-width: 0; }

/* ---- SIDEBAR NAV ---- */
.sidebar {
  position: sticky;
  top: 8rem;
}

.sidebar-nav {
  border: 1px solid var(--grey-light);
  border-radius: 1.2rem;
  overflow: hidden;
}

.sidebar-nav__header {
  background: var(--dark);
  color: var(--white);
  padding: 1.6rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-nav__list {
  list-style: none;
}

.sidebar-nav__list li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  border-bottom: 1px solid var(--grey-light);
  transition: var(--transition);
}

.sidebar-nav__list li a:hover,
.sidebar-nav__list li a.active {
  color: var(--red);
  background: var(--red-light);
  padding-left: 2.4rem;
}

.sidebar-nav__list li:last-child a { border-bottom: none; }

.sidebar-nav__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ---- CONTENT SECTIONS ---- */
.content-section {
  margin-bottom: 6rem;
  scroll-margin-top: 10rem;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--grey-light);
}

.section-number {
  width: 4.8rem;
  height: 4.8rem;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.4rem;
  color: var(--grey-mid);
  margin-top: 0.4rem;
  font-weight: 400;
}

/* ---- INTRO TEXT ---- */
.intro-text {
  font-size: 1.6rem;
  line-height: 1.75;
  color: var(--grey);
  margin-bottom: 3rem;
}

/* ---- TABLES ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--grey-light);
  margin-bottom: 2rem;
}

.tarif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.tarif-table thead th {
  background: var(--dark);
  color: var(--white);
  padding: 1.2rem 1.6rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tarif-table thead th:first-child { border-radius: 0; }

.tarif-table tbody tr {
  border-bottom: 1px solid var(--grey-light);
  transition: background var(--transition);
}

.tarif-table tbody tr:last-child { border-bottom: none; }

.tarif-table tbody tr:hover { background: var(--grey-bg); }

.tarif-table tbody td {
  padding: 1.2rem 1.6rem;
  vertical-align: middle;
}

.tarif-table .col-name {
  font-weight: 600;
  color: var(--dark);
}

.tarif-table .col-price {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.tarif-table .col-dim {
  font-size: 1.2rem;
  color: var(--grey-mid);
  font-family: monospace;
}

.tarif-table .row-header td {
  background: var(--grey-bg);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
  padding: 0.8rem 1.6rem;
}

.tarif-table .check { color: var(--red); font-weight: 700; }
.tarif-table .dash  { color: var(--grey-light); }

/* ---- CPM TABLE (additive) ---- */
.cpm-builder {
  background: var(--grey-bg);
  border-radius: 1.2rem;
  padding: 2.4rem;
  margin-bottom: 2.4rem;
}

.cpm-builder__title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-mid);
  margin-bottom: 1.6rem;
}

.cpm-formula {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cpm-formula__block {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 0.8rem;
  padding: 1rem 1.4rem;
  text-align: center;
}

.cpm-formula__block strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

.cpm-formula__block span {
  font-size: 1.1rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cpm-formula__op {
  font-size: 2rem;
  color: var(--grey-mid);
  font-weight: 300;
}

.cpm-formula__result {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.cpm-formula__result strong,
.cpm-formula__result span { color: var(--white); }

/* ---- CPM CALCULETTE ---- */
.cpm-calc__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.cpm-calc__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cpm-calc__label {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-mid);
}

/* Empêche les règles display:flex/block de réafficher un élément masqué */
#cpm-calc [hidden] { display: none !important; }

/* Multi-select */
.ms { position: relative; }

.ms__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.4rem;
  font-size: 1.4rem;
  font-family: inherit;
  color: var(--dark);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ms__toggle:hover { border-color: var(--grey-mid); }

.ms__toggle[aria-expanded="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
}

.ms__summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms__summary--empty { color: var(--grey-mid); }

.ms__chevron {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: var(--grey-mid);
  transition: transform 0.15s ease;
}
.ms__toggle[aria-expanded="true"] .ms__chevron { transform: rotate(180deg); }

.ms__panel {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  max-height: 32rem;
  overflow-y: auto;
  padding: 0.6rem;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 0.8rem;
  box-shadow: 0 1.2rem 3rem rgba(23, 22, 22, 0.15);
}

.ms__group {
  padding: 1rem 0.8rem 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-mid);
}

.ms__opt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  font-size: 1.35rem;
  border-radius: 0.5rem;
  cursor: pointer;
}
.ms__opt:hover { background: var(--grey-bg); }
.ms__opt span { flex: 1; }
.ms__opt em {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
}
.ms__opt input {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.cpm-calc__empty {
  padding: 1.6rem;
  font-size: 1.4rem;
  color: var(--grey-mid);
  background: var(--white);
  border: 1px dashed var(--grey-light);
  border-radius: 0.8rem;
  margin-bottom: 2rem;
}

.cpm-formula__result strong { transition: color 0.15s ease; }

/* ---- PACKAGE CARDS ---- */
.package-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.package-card {
  border: 1px solid var(--grey-light);
  border-radius: 1.2rem;
  overflow: hidden;
}

.package-card__header {
  background: var(--dark);
  color: var(--white);
  padding: 2rem 2.4rem;
}

.package-card__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 10rem;
  margin-bottom: 0.8rem;
}

.package-card__title {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.package-card__sub {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
}

.package-card__body {
  padding: 2rem 2.4rem;
}

.package-card__stat {
  margin-bottom: 1.6rem;
}

.package-card__stat strong {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--red);
  display: block;
  line-height: 1;
}

.package-card__stat span {
  font-size: 1.2rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- PROMO BLOCK ---- */
.promo-block {
  background: var(--red);
  color: var(--white);
  border-radius: 1.2rem;
  padding: 2.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.promo-block__title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.promo-block__sub {
  font-size: 1.4rem;
  opacity: 0.8;
  margin-top: 0.4rem;
}

/* DMP sources block */
.dmp-sources {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  background: var(--grey-light);
  border-radius: 1.2rem;
  padding: 2rem 2.4rem;
  margin: 2rem 0 2.8rem;
}

.dmp-sources__group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dmp-sources__plus {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--grey-mid);
  line-height: 1;
}

.dmp-source__label {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  background: var(--white);
  border-radius: 0.8rem;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: calc(5.5rem + 1.4rem); /* même hauteur totale que .dmp-source__logo */
  box-sizing: border-box;
}

.dmp-source__logo {
  box-sizing: content-box; /* height = logo seul, padding s'ajoute en dehors */
  height: 5.5rem;
  max-width: 24rem;
  object-fit: contain;
  object-position: left center;
  background: var(--white);
  border-radius: 0.8rem;
  padding: 0.7rem 1.4rem;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.promo-block__logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.8rem 0 0.6rem;
}

.promo-block__logo {
  box-sizing: content-box; /* height = logo seul, padding s'ajoute en dehors */
  height: 5.5rem;
  max-width: 24rem;
  object-fit: contain;
  object-position: left center;
  background: rgba(255,255,255,0.97);
  border-radius: 0.8rem;
  padding: 0.7rem 1.4rem;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.promo-block__price {
  text-align: right;
  flex-shrink: 0;
}

.promo-block__price strong {
  display: block;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.promo-block__price span {
  font-size: 1.2rem;
  opacity: 0.7;
}

.promo-block__discount {
  background: var(--white);
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 800;
  padding: 0.4rem 1rem;
  border-radius: 10rem;
  display: inline-block;
  margin-top: 0.4rem;
}

/* ---- NOTE / DISCLAIMER ---- */
.note {
  background: var(--grey-bg);
  border-left: 3px solid var(--grey-light);
  border-radius: 0 0.6rem 0.6rem 0;
  padding: 1.2rem 1.6rem;
  font-size: 1.3rem;
  color: var(--grey-mid);
  margin-bottom: 2rem;
}

.note strong { color: var(--dark); }

/* ---- BRAND CHIPS ---- */
.brand-chips {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 10rem;
}

.brand-chip.de { background: #1a1a2e; }
.brand-chip.fr { background: #16213e; }
.brand-chip.en { background: #0f3460; }
.brand-chip.pt { background: #533483; }

/* ---- CALENDAR ---- */
.editorial-calendar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.calendar-month {
  border: 1px solid var(--grey-light);
  border-radius: 0.8rem;
  overflow: hidden;
}

.calendar-month__header {
  background: var(--dark);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calendar-month__items {
  padding: 1rem 1.2rem;
}

.calendar-month__item {
  display: flex;
  gap: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--grey-light);
  font-size: 1.3rem;
  align-items: baseline;
}

.calendar-month__item:last-child { border-bottom: none; }

.calendar-month__date {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- FORMAT BADGES ---- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.format-badge {
  border: 1px solid var(--grey-light);
  border-radius: 0.8rem;
  padding: 1.4rem;
  text-align: center;
  transition: var(--transition);
}

.format-badge:hover {
  border-color: var(--red);
  background: var(--red-light);
}

.format-badge__num {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.format-badge__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.format-badge__dim {
  font-size: 1.1rem;
  color: var(--grey-mid);
  font-family: monospace;
}

/* ---- HOME INDEX ---- */
.index-hero {
  background: var(--red);
  color: var(--white);
  padding: 13rem 0 8rem;
  position: relative;
  overflow: hidden;
}

.index-hero__bg {
  position: absolute;
  inset: 0;
  left: auto;
  right: 0;
  width: 60%;
  background: url(imgs/Rubiks-v2.jpg) no-repeat;
  background-size: 290% auto;
  background-position: 8% 4%;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 25%, black 60%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 25%, black 60%);
  opacity: 0.9;
  pointer-events: none;
}

.index-hero .hero-title { font-size: clamp(4rem, 7vw, 8.8rem); }

.index-hero__medias-badge {
  position: absolute;
  bottom: 2.4rem;
  right: 3.2rem;
  width: clamp(16.8rem, 21.6%, 31.2rem);
  z-index: 2;
  pointer-events: none;
}

/* ---- BRAND CARDS GRID (index) ---- */
.brands-section {
  padding: 7rem 0;
}

.brands-section__title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.brands-section__sub {
  color: var(--grey-mid);
  font-size: 1.6rem;
  margin-bottom: 4rem;
}

.channel-group {
  margin-bottom: 5rem;
}

.channel-label {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.channel-label__icon {
  width: 3.2rem;
  height: 3.2rem;
  background: var(--red);
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-label__icon svg { width: 1.6rem; height: 1.6rem; fill: var(--white); }

.channel-label__name {
  font-size: 1.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.brand-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 1.6rem;
}

.brand-card {
  border: 1px solid var(--grey-light);
  border-radius: 1.2rem;
  padding: 2.4rem;
  text-decoration: none;
  color: var(--dark);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.brand-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(255,38,33,0.1);
  transform: translateY(-2px);
}

.brand-card:hover::before { transform: scaleX(1); }

.brand-card__name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.brand-card__langs {
  display: flex;
  gap: 0.6rem;
}

.brand-card__lang {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 10rem;
  background: var(--dark);
  color: var(--white);
  letter-spacing: 0.05em;
}

.brand-card__tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.brand-card__tag {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 10rem;
  background: var(--grey-bg);
  color: var(--grey);
  border: 1px solid var(--grey-light);
}

.brand-card__arrow {
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
  margin-left: auto;
  align-self: flex-end;
}

/* ---- BRAND LOGOS ---- */
.brand-card__logo {
  display: block;
  height: 6.4rem;
  max-width: 26rem;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.brand-card__logo--square {
  height: 9.6rem;
  width: 9.6rem;
  max-width: 9.6rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}

.footer-logo span { color: var(--red); }

.footer-copy {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--white); }

/* Footer brand logos */
.footer-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.footer-brands img {
  width: 35.2rem;
  max-width: 100%;
  height: auto;
}

.footer-brand-logo {
  box-sizing: content-box; /* height = logo seul, padding s'ajoute en dehors */
  height: 3.6rem;
  max-width: 18rem;
  object-fit: contain;
  object-position: center;
  background: rgba(255,255,255,0.97);
  border-radius: 0.8rem;
  padding: 0.7rem 1.4rem;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.footer-hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 0 2.8rem 0;
}

/* ---- UTILITIES ---- */
.tag-new {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 10rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.6rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--grey-light);
  margin: 3rem 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .sidebar-nav {
    display: none;
  }

  .editorial-calendar {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 2rem;
  }

  .promo-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-block__price { text-align: left; }

  /* ---- Menu burger ---- */
  .header-inner { position: relative; }

  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--white);
    cursor: pointer;
    padding: 0.2rem 1rem;
    border-radius: 0.6rem;
    user-select: none;
    -webkit-user-select: none;
  }
  .nav-burger:hover { background: rgba(255,255,255,0.12); }

  .header-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark);
    border-radius: 1.2rem;
    padding: 1rem 0;
    box-shadow: 0 1.5rem 4rem rgba(0,0,0,0.4);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-toggle:checked ~ .header-nav { display: flex; }

  .header-nav .nav-item,
  .header-nav .nav-item--dropdown { display: block; width: 100%; }

  .header-nav .nav-link,
  .header-nav > a {
    display: block;
    width: 100%;
    padding: 1.1rem 2.4rem;
    border-radius: 0;
    font-size: 1.6rem;
    text-shadow: none;
  }
  .nav-item--dropdown > .nav-link::after { display: none; }

  /* Sous-menus dépliés (pas de survol sur mobile) */
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a {
    padding: 0.9rem 2.4rem 0.9rem 4rem;
    font-size: 1.4rem;
  }

  .header-nav .lang-switch {
    margin: 1.2rem 2.4rem 0.4rem;
    align-self: flex-start;
  }
}

@media (max-width: 600px) {
  html { font-size: 9px; }

  .editorial-calendar { grid-template-columns: 1fr; }

  .package-cards { grid-template-columns: 1fr; }

  .table-wrap { font-size: 1.2rem; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* Précision entre parenthèses dans un en-tête de tableau : plus discrète que
   le libellé principal, sans casser l'alignement de la ligne d'en-tête.
   En em : suit la taille de l'en-tête si elle change. */
.tarif-table thead th .th-detail {
  display: block;          /* passe sur sa propre ligne : la colonne cesse
                              d'être dimensionnée par le libellé entier */
  margin-top: 0.2rem;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

/* ── Advertiser Content : bloc d'introduction et options ──────────────────
   Ces règles étaient dupliquées dans un <style> embarqué sur chaque page
   d'écosystème. Centralisées ici pour que digital.html en bénéficie aussi.
   Les pages qui gardent leur bloc embarqué ne changent pas d'apparence :
   des règles identiques y sont simplement redéfinies. */
.adv-content-block {
  background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
  color: var(--white);
  border-radius: 1.2rem;
  padding: 3rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.adv-content-block::after {
  content: 'AC';
  position: absolute;
  right: 2rem;
  bottom: -1rem;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.05em;
}
.adv-content-block h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.adv-content-block p {
  font-size: 1.4rem;
  opacity: 0.7;
  margin-bottom: 0;
}
.options-block {
  background: var(--grey-bg);
  border-radius: 0.8rem;
  padding: 1.6rem 2rem;
  margin-top: 1.6rem;
}
.options-block__title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-mid);
  margin-bottom: 1rem;
}
.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--grey-light);
  font-size: 1.4rem;
}
.option-row:last-child { border-bottom: none; }
.option-row__price { font-weight: 700; color: var(--red); }

/* ── Cartes et tableau des newsletters ────────────────────────────────────
   Repris du <style> embarqué de newsletters.html pour que la section
   Newsletters de digital.html dispose des mêmes styles. La page
   newsletters.html garde son bloc : des règles identiques y priment. */
.newsletter-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
      gap: 1.6rem;
      margin-bottom: 3rem;
    }

    .newsletter-card {
      border: 1px solid var(--grey-light);
      border-radius: 1.2rem;
      overflow: hidden;
    }

    .newsletter-card__header {
      padding: 2rem 2.4rem 1.6rem;
      border-bottom: 1px solid var(--grey-light);
    }

    .newsletter-card__logo {
      display: block;
      height: 5.6rem;
      width: auto;
      max-width: 14rem;
      object-fit: contain;
      object-position: left center;
      margin-bottom: 1rem;
    }

    .newsletter-card__logo--icon {
      height: 5.6rem;
      width: 5.6rem;
      border-radius: 1rem;
      object-fit: cover;
    }

    .newsletter-card__brand {
      font-size: 1.8rem;
      font-weight: 800;
      color: var(--dark);
      letter-spacing: -0.02em;
      margin-bottom: 0.4rem;
    }

    .newsletter-card__lang {
      display: inline-block;
      font-size: 1rem;
      font-weight: 700;
      padding: 0.2rem 0.7rem;
      border-radius: 10rem;
      background: var(--dark);
      color: var(--white);
      letter-spacing: 0.05em;
    }

    .newsletter-card__stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
    }

    .newsletter-card__stat {
      padding: 1.4rem 2.4rem;
      border-right: 1px solid var(--grey-light);
      border-bottom: 1px solid var(--grey-light);
    }

    .newsletter-card__stat:nth-child(2n) { border-right: none; }
    .newsletter-card__stat:last-child,
    .newsletter-card__stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

    .newsletter-card__stat strong {
      display: block;
      font-size: 2rem;
      font-weight: 800;
      color: var(--red);
      line-height: 1;
    }

    .newsletter-card__stat span {
      font-size: 1.1rem;
      color: var(--grey-mid);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .schedule-chip {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--grey-bg);
      border: 1px solid var(--grey-light);
      color: var(--dark);
      font-size: 1.2rem;
      font-weight: 600;
      padding: 0.4rem 1rem;
      border-radius: 10rem;
      margin: 0.3rem;
    }

    .tarif-highlight {
      background: var(--red);
      color: var(--white);
      font-weight: 800;
    }

    .summary-table-wrap {
      overflow-x: auto;
      border-radius: 1rem;
      border: 1px solid var(--grey-light);
      margin-bottom: 2rem;
    }

    .summary-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 1.4rem;
      min-width: 60rem;
    }

    .summary-table thead th {
      background: var(--dark);
      color: var(--white);
      padding: 1.2rem 1.6rem;
      text-align: left;
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .summary-table tbody td {
      padding: 1.2rem 1.6rem;
      border-bottom: 1px solid var(--grey-light);
      vertical-align: middle;
    }

    .summary-table tbody tr:last-child td { border-bottom: none; }
    .summary-table tbody tr:hover { background: var(--grey-bg); }

    .summary-table .col-brand { font-weight: 700; }
    .summary-table .col-price { font-weight: 700; color: var(--red); white-space: nowrap; }
    .summary-table .row-total { background: rgba(255,38,33,0.04); }
    .summary-table .row-total .col-brand { color: var(--dark); font-weight: 800; }

    .info-block {
      background: var(--grey-bg);
      border-radius: 1.2rem;
      padding: 2.4rem;
      margin-bottom: 2rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }

    .info-block__item h4 {
      font-size: 1.2rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--grey-mid);
      margin-bottom: 0.8rem;
    }

    .info-block__item p {
      font-size: 1.4rem;
      color: var(--dark);
      line-height: 1.6;
    }

    .info-block__item a {
      color: var(--red);
      font-weight: 600;
      text-decoration: none;
    }

    @media (max-width: 700px) {
      .info-block { grid-template-columns: 1fr; }
      .newsletter-cards { grid-template-columns: 1fr; }
    }

/* ── Cartes de modules (formats print) ────────────────────────────────────
   Reprises du <style> embarqué de luxemburger-wort.html pour que la page
   Contacto en dispose aussi. La page Wort garde son bloc : des règles
   identiques y sont simplement redéfinies. */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.module-card {
  border: 1px solid var(--grey-light);
  border-radius: 0.8rem;
  padding: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.module-card__info { flex: 1; }

.module-card__code {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.module-card__dim {
  font-size: 1.1rem;
  color: var(--grey-mid);
  font-family: monospace;
}

.module-card__price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--red);
  white-space: nowrap;
}
