/* Composants juridiques et gestion du consentement de TVM Diffusion. */
.legal-page {
  background: #0d1823;
  color: #f7f2ea;
}

.legal-main {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 0;
}

.legal-main h1 {
  max-width: 820px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .92;
}

.legal-lead {
  max-width: 760px;
  margin: 34px 0 52px;
  color: #d1d7dc;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
}

.legal-section {
  padding: 34px 0;
  border-top: 1px solid #f7f2ea29;
}

.legal-section h2 {
  margin-bottom: 20px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.legal-section h3 {
  margin: 28px 0 12px;
  font-size: 21px;
}

.legal-section p,
.legal-section li,
.legal-section td,
.legal-section th {
  font-size: 16px;
  line-height: 1.7;
}

.legal-section p + p { margin-top: 14px; }
.legal-section ul { margin: 16px 0 0 22px; list-style: disc; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: #73d9ec; text-decoration: underline; text-underline-offset: 4px; }
.legal-section strong { color: #fff; }

.legal-notice {
  margin: 24px 0;
  padding: 20px;
  border-left: 4px solid #ff7b42;
  background: #142230;
}

.legal-placeholder {
  color: #ffb08c;
  font-weight: 700;
}

.legal-table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; }
.legal-table th,
.legal-table td { padding: 14px; border: 1px solid #f7f2ea29; text-align: left; vertical-align: top; }
.legal-table th { background: #142230; }

.legal-footer {
  width: min(920px, calc(100% - 44px));
  margin: 0 auto;
  padding: 30px 0 46px;
  border-top: 1px solid #f7f2ea29;
}

.legal-footer nav { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.legal-footer a { min-height: 44px; display: inline-flex; align-items: center; color: #d1d7dc; }

.error-page .legal-main { min-height: calc(100vh - 96px); }
.error-code {
  color: #ff7b42;
  font-size: clamp(100px, 24vw, 260px);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .8;
  margin: 12px 0 32px;
}
.error-page .legal-lead { margin-bottom: 32px; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.error-actions .primary-cta { min-height: 56px; }
.error-actions .text-link { color: #d1d7dc; font-size: 16px; }

.tvm-consent-banner,
.tvm-consent-modal {
  position: fixed;
  z-index: 10000;
  color: #f7f2ea;
  font: 400 16px/1.55 "Space Grotesk", Arial, sans-serif;
}

.tvm-consent-banner[hidden],
.tvm-consent-modal[hidden] { display: none !important; }

.tvm-consent-banner {
  display: flex;
  flex-direction: column;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 860px;
  margin: auto;
  padding: 18px 20px;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  border: 1px solid #73d9ec;
  background: #142230;
  box-shadow: 0 22px 80px #000b;
}

.tvm-consent-banner h2 { flex-shrink: 0; }
.tvm-consent-banner > p {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 14px;
  line-height: 1.5;
}
.tvm-consent-banner .tvm-consent-actions { flex-shrink: 0; margin-top: 14px; }

.tvm-consent-banner h2,
.tvm-consent-modal h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.tvm-consent-banner p,
.tvm-consent-modal p { margin: 0; color: #d1d7dc; }
.tvm-consent-banner a,
.tvm-consent-modal a { color: #73d9ec; text-decoration: underline; text-underline-offset: 3px; }

.tvm-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.tvm-consent-button {
  min-height: 48px;
  padding: 10px 16px;
  border: 2px solid #73d9ec;
  border-radius: 0;
  background: #0d1823;
  color: #f7f2ea;
  font-weight: 700;
  cursor: pointer;
}

.tvm-consent-button:hover { background: #1e3344; }
.tvm-consent-button-primary { background: #73d9ec; color: #0d1823; }
.tvm-consent-button-primary:hover { background: #a7e8f3; }
.tvm-consent-button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.tvm-consent-modal {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #000b;
}

.tvm-consent-panel {
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #73d9ec;
  background: #142230;
  box-shadow: 0 22px 80px #000c;
}

.tvm-consent-service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 22px;
  margin: 24px 0 0;
  padding: 20px 0;
  border-block: 1px solid #f7f2ea29;
}

.tvm-consent-service strong { font-size: 18px; }
.tvm-consent-service p { grid-column: 1 / -1; }
.tvm-consent-service input { width: 26px; height: 26px; accent-color: #20bfe0; }
.tvm-consent-modal .tvm-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.youtube-consent-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 28px;
  background: #070d13;
  color: #f7f2ea;
  text-align: center;
}

.youtube-consent-placeholder p { max-width: 560px; margin: 0 auto 18px; line-height: 1.6; }
.youtube-consent-placeholder .tvm-consent-button { width: min(100%, 320px); }

@media (max-width: 650px) {
  .tvm-consent-modal .tvm-consent-actions { grid-template-columns: 1fr; }
  .tvm-consent-banner {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    padding: 12px;
    max-height: min(240px, calc(100vh - 16px));
    max-height: min(240px, calc(100dvh - 16px));
  }
  .tvm-consent-banner h2 { margin-bottom: 6px; font-size: 18px; }
  .tvm-consent-banner > p { line-height: 1.45; }
  .tvm-consent-banner .tvm-consent-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
  }
  .tvm-consent-banner .tvm-consent-button {
    min-height: 44px;
    padding: 6px 4px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.2;
  }
  .tvm-consent-panel { padding: 22px; }
  .legal-table { min-width: 700px; }
}

@media (max-width: 340px) {
  .tvm-consent-banner .tvm-consent-button { padding-inline: 2px; font-size: 12px; }
}

@media (max-height: 450px) {
  .tvm-consent-banner { right: 8px; left: 8px; bottom: max(8px, env(safe-area-inset-bottom)); padding: 10px 14px; }
  .tvm-consent-banner h2 { margin-bottom: 6px; font-size: 18px; }
  .tvm-consent-banner > p { line-height: 1.4; }
  .tvm-consent-banner .tvm-consent-actions { gap: 8px; margin-top: 8px; }
  .tvm-consent-banner .tvm-consent-button { min-height: 44px; padding-block: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .tvm-consent-banner,
  .tvm-consent-modal { scroll-behavior: auto; }
}

/* Invitation compacte, sans voile ni interruption de la navigation. */
.tvm-consent-banner {
  left: auto;
  right: 18px;
  bottom: 18px;
  width: min(460px, calc(100% - 36px));
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #f7f2ea29;
  box-shadow: 0 4px 20px #0003;
}
.tvm-consent-banner h2 { font-size: 16px; margin-bottom: 6px; }
.tvm-consent-banner > p { font-size: 13px; line-height: 1.45; }
.tvm-consent-banner .tvm-consent-actions { margin-top: 10px; gap: 6px; }
.tvm-consent-banner .tvm-consent-button {
  min-height: 44px;
  padding: 7px 5px;
  border: 1px solid #f7f2ea45;
  background: transparent;
  color: #f7f2ea;
  font-size: 12px;
  font-weight: 500;
}
.tvm-consent-banner .tvm-consent-button:hover { background: #f7f2ea12; }
@media (max-width: 820px) {
  /* Les liens étaient masqués par styles.css sans menu de remplacement. */
  .nav:has(.nav-links) { height: auto; min-height: 80px; flex-wrap: wrap; padding-bottom: 10px; }
  .nav .nav-links {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 13px;
  }
  .nav .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 650px) {
  .tvm-consent-banner {
    right: 10px; left: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    width: auto; padding: 12px; max-height: calc(100dvh - 20px);
  }
}
