/* ============================================================
   ALTIS EVENT — pages légales
   (cgv.html · annulation.html · mentions-legales.html)
   Reprend la palette et les polices de css/style.css.
   ============================================================ */

:root {
  --red: #C8102E;
  --red-deep: #8A0B1F;
  --wine: #2B0810;
  --gold: #FFB300;
  --gold-ink: #23070E;

  --ink: #1A1418;
  --ink-soft: #5A5158;
  --paper: #FFFFFF;
  --paper-alt: #FDF3F1;
  --border: #F0DCD8;
  --dim: #E8CFCB;
  --dim-2: #FBEAE7;

  --r-btn: 8px;
  --r-card: 12px;

  --font-display: "Anton", "Arial Narrow", Impact, "Haettenschweiler", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }

/* Noms techniques cités dans la politique (noms de cookies) : lisibles sans être criards. */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--paper-alt); border: 1px solid var(--border);
  border-radius: 4px; padding: .05em .35em; white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 700; }
sup { font-size: .7em; line-height: 0; }

/* ---- lien d’évitement ---- */
.skip {
  position: absolute; left: -9999px; top: 0;
}
.skip:focus {
  left: 1rem; top: .6rem; z-index: 10;
  background: var(--gold); color: var(--gold-ink);
  padding: .5rem .9rem; border-radius: var(--r-btn);
  font-weight: 700; text-decoration: none;
}

/* ---- barre supérieure ---- */
.topbar {
  background: var(--wine);
  color: #fff;
  border-bottom: 3px solid var(--red);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.brand span { color: var(--gold); }
.brand:hover { color: #fff; }
.back {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .3rem 0;
  color: var(--dim-2);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { color: #fff; text-decoration: underline; }

/* ---- colonne de lecture ---- */
.doc {
  flex: 1 0 auto;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 4rem;
}
.doc p, .doc li, .doc-meta { overflow-wrap: anywhere; }

.doc-head { margin-bottom: 2.25rem; }
.doc-kicker {
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
}
.doc h1 {
  margin: 0 0 .7rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 6vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--wine);
  overflow-wrap: break-word;
}
.doc-sub {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.doc-meta {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--r-card);
  padding: .9rem 1.25rem;
  font-size: .93rem;
  line-height: 1.6;
}
.doc .doc-meta p { margin: .4rem 0; }

/* ---- titres et texte ---- */
.doc section { margin-top: 2.6rem; }
.doc h2 {
  margin: 0 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--wine);
}
.doc h3 {
  margin: 1.7rem 0 .6rem;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wine);
}
.doc p { margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.45rem; }
.doc li { margin: 0 0 .45rem; padding-left: .2rem; }
.doc ul > li::marker { color: var(--red); }
.doc ol > li::marker { color: var(--wine); font-weight: 700; }

/* ---- sommaire ---- */
.doc .toc {
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.doc .toc h2 {
  margin: 0 0 .75rem;
  padding: 0;
  border: 0;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.doc .toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  font-size: .9rem;
  line-height: 1.45;
}
.doc .toc li {
  counter-increment: toc;
  display: flex;
  gap: .55em;
  margin: 0 0 .38rem;
  padding: 0;
  break-inside: avoid;
}
.doc .toc li::before {
  content: counter(toc) ".";
  flex: 0 0 1.6em;
  text-align: right;
  color: var(--ink-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }
@media (min-width: 640px) {
  .doc .toc ol { columns: 2; column-gap: 2.25rem; }
}

/* ---- tableaux ---- */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.55;
}
.table-wrap th,
.table-wrap td {
  padding: .62rem .85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: break-word;
}
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap thead th {
  background: var(--wine);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .01em;
  border-bottom: 0;
}
.table-wrap thead th + th { border-left: 1px solid rgba(255, 255, 255, .14); }
.table-wrap tbody tr:nth-child(even) > td { background: var(--paper-alt); }

/* tableaux à étiquettes de ligne (Cas visés, Conséquences…) */
.table-wrap tbody th[scope="row"] {
  width: 30%;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  border-bottom-color: rgba(255, 255, 255, .14);
}

/* tableaux larges : défilement horizontal sur petit écran */
.table-2col thead th { width: 50%; }
.table-3col { min-width: 480px; }
.table-synth { min-width: 600px; }
.table-synth tbody th[scope="row"] {
  width: auto;
  background: transparent;
  color: var(--ink);
  font-weight: 400;
  border-bottom-color: var(--border);
}
.table-synth tbody tr:nth-child(even) > th[scope="row"] { background: var(--paper-alt); }

/* ---- encadré d’acceptation ---- */
.doc .callout {
  margin: 2.6rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--wine);
  border-radius: var(--r-card);
}
.doc .callout h2 {
  margin: 0 0 .45rem;
  padding: 0;
  border: 0;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wine);
}
.doc .callout p:last-child { margin-bottom: 0; }

/* ---- pied de page ---- */
.site-foot {
  background: var(--wine);
  color: var(--dim);
  font-size: .88rem;
  line-height: 1.6;
  border-top: 3px solid var(--red);
}
.foot-inner {
  max-width: 1080px;
  margin: 0 auto;
  /* --ae-consent-h : hauteur de la bannière de consentement (js/consent.js).
     Vaut 0 tant qu'aucune bannière n'est ouverte : sans elle, rien ne change. */
  padding: 1.6rem 1.25rem calc(1.6rem + var(--ae-consent-h, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
.foot-inner p { margin: 0; }
.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
}
.foot-links a { color: var(--dim-2); text-decoration: none; }
.foot-links a:hover,
.foot-links a[aria-current="page"] { color: #fff; text-decoration: underline; }

/* ---- petits écrans ---- */
@media (max-width: 480px) {
  .doc { padding-top: 2rem; }
  .doc h2 { font-size: 1.2rem; }
  .doc-meta { padding: .8rem 1rem; }
  .doc .toc { padding: 1rem; }
  .table-wrap th, .table-wrap td { padding: .55rem .65rem; }
}

/* ---- impression ---- */
@media print {
  .skip, .topbar, .site-foot, .toc { display: none; }
  body { font-size: 11pt; }
  .doc { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  .table-wrap { overflow: visible; border-radius: 0; }
  .table-3col, .table-synth { min-width: 0; }
  .table-wrap thead th,
  .table-wrap tbody th[scope="row"] { background: #eee; color: #000; }
  .doc section, .table-wrap tr { break-inside: avoid-page; }
}
