/* ════════════════════════════════════════════════════════════
   📄 Tropical Urban — CGV Premium Skin (conditions générales de vente)
   ------------------------------------------------------------
   Scope : body[data-page="cgv"]
   Aligné sur privacy-premium.css / cookies.css / shipping-premium.css
     - hero gradient éditorial + eyebrow
     - cartes .legal-section
     - listes .legal-list theme-aware
     - tableaux premium si présents
     - blocs info / contact
     - responsive mobile + dark mode
   Tokens --tu-* hérités de style.css.
   ════════════════════════════════════════════════════════════ */

body[data-page="cgv"] {
  background: var(--tu-bg);
  color: var(--tu-fg);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

/* ───── Main wrapper ───── */
body[data-page="cgv"] .legal-page {
  padding: 34px 18px 72px;
  color: var(--tu-fg);
  background: transparent;
}
body[data-page="cgv"] .legal-page > .container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ───── Hero éditorial ───── */
body[data-page="cgv"] .page-header {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 110% -20%, rgba(46,204,113,.22), transparent 60%),
    linear-gradient(160deg, var(--dark-color) 0%, #1E3A2E 55%, var(--primary-color) 160%);
  color: var(--tu-on-accent);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  text-align: center;
  overflow: hidden;
  margin-bottom: 6px;
}
body.dark-mode[data-page="cgv"] .page-header {
  background:
    radial-gradient(600px 300px at 110% -20%, rgba(46,204,113,.22), transparent 60%),
    linear-gradient(160deg, #0A0A0A 0%, #123320 55%, var(--primary-dark) 160%);
  border-color: rgba(46,204,113,.20);
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
}
/* [CGV-PRIVACY-MOBILE-01] L'eyebrow etait genere ici par un `content:` code
   en dur ; c'est desormais du HTML reel (.legal-eyebrow, stylee plus bas). */
body[data-page="cgv"] .page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  /* etait sans z-index => calque positionne peint AU-DESSUS du texte */
  z-index: 0;
  background: linear-gradient(125deg, transparent 0%, rgba(255,255,255,.06) 42%, transparent 70%);
  pointer-events: none;
}
body[data-page="cgv"] .page-header h1 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1.15;
  color: var(--tu-on-accent);
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
body[data-page="cgv"] .page-header h1 i { font-size: 0.85em; opacity: .88; }
body[data-page="cgv"] .page-header p {
  color: rgba(255,255,255,.88);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 720px;
}
body[data-page="cgv"] .page-header .last-update {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,.18);
}

/* ───── Legal-intro (gardé comme texte d'introduction sous le hero
   ou remplacé par le .page-header. On neutralise la règle générique si
   elle apparaissait quand même.) ───── */
body[data-page="cgv"] .legal-intro {
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
body[data-page="cgv"] .page-header + .legal-intro { display: none; }

/* ───── Sections cards ───── */
body[data-page="cgv"] .legal-section {
  padding: 24px 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--tu-surface);
  border: 1px solid var(--tu-line-strong);
  box-shadow: 0 6px 14px rgba(44,62,80,.08), 0 1px 3px rgba(44,62,80,.06);
  color: var(--tu-fg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.dark-mode[data-page="cgv"] .legal-section {
  border-color: var(--tu-line);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

body[data-page="cgv"] .legal-section h2 {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 900;
  color: var(--tu-fg);
  letter-spacing: .2px;
  line-height: 1.3;
  position: relative;
  padding-left: 16px;
  text-align: left;
  border: none;
}
body[data-page="cgv"] .legal-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary-color) 0%, #27AE60 100%);
}
body.dark-mode[data-page="cgv"] .legal-section h2::before {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

body[data-page="cgv"] .legal-section h3 {
  margin: 10px 0 4px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tu-accent-text);
  font-weight: 900;
}
body[data-page="cgv"] .legal-section h4 {
  margin: 8px 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--tu-fg);
  letter-spacing: 0;
}

body[data-page="cgv"] .legal-section p {
  margin: 0;
  color: var(--tu-fg-soft);
  font-size: 14.5px;
  line-height: 1.7;
}
body[data-page="cgv"] .legal-section p strong {
  color: var(--tu-fg);
  font-weight: 800;
}
body[data-page="cgv"] .legal-section a {
  color: var(--tu-accent-text);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed rgba(46,204,113,.35);
  transition: color .18s ease, border-color .18s ease;
}
body[data-page="cgv"] .legal-section a:hover {
  color: var(--tu-accent-text-hover);
  border-bottom-color: rgba(46,204,113,.6);
}
body[data-page="cgv"] .legal-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(46,204,113,.10);
  color: var(--tu-accent-text);
  border: 1px solid rgba(46,204,113,.22);
}

/* Placeholders {{…}} — rendu 100% naturel en production.
   Avant : fond orange + bordure dashed (debug / repérage).
   Après : `all: unset` neutralise tout style appliqué à la classe,
   `font: inherit` et `color: inherit` garantissent que le <span>
   hérite proprement du texte environnant. Les spans sont
   conservés dans le HTML pour permettre un repérage futur ou
   une injection dynamique des vraies valeurs (templating). */
body[data-page="cgv"] .legal-placeholder {
  all: unset;
  font: inherit;
  color: inherit;
}

/* Variante optionnelle : masquer totalement le span tout en
   conservant son contenu textuel (utile si besoin de neutralité
   absolue sans impacter la mise en forme du parent). */
body[data-page="cgv"] .legal-placeholder--hidden {
  display: contents;
}

/* Listes premium (deux variantes : .legal-list conservée + ul standard) */
body[data-page="cgv"] .legal-section ul,
body[data-page="cgv"] .legal-section .legal-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body[data-page="cgv"] .legal-section ul li,
body[data-page="cgv"] .legal-section .legal-list li {
  position: relative;
  padding: 9px 12px 9px 40px;
  border-radius: var(--radius-md);
  background: rgba(46,204,113,.08);
  border: 1px solid rgba(46,204,113,.22);
  color: var(--tu-fg);
  font-size: 14px;
  line-height: 1.55;
}
body.dark-mode[data-page="cgv"] .legal-section ul li,
body.dark-mode[data-page="cgv"] .legal-section .legal-list li {
  background: rgba(255,255,255,.025);
  border-color: var(--tu-line);
  color: var(--tu-fg-soft);
}
body[data-page="cgv"] .legal-section ul li::before,
body[data-page="cgv"] .legal-section .legal-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(46,204,113,.16);
  color: var(--tu-accent-text);
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(46,204,113,.28);
}
body[data-page="cgv"] .legal-section ul li strong,
body[data-page="cgv"] .legal-section .legal-list li strong {
  color: var(--tu-fg);
}

/* Listes ordonnées (étapes de commande, mentions de facture…) :
   numérotation verte, sans pastille ✓ — variante des listes "pills".
   (legal-premium ne stylise que les <ul> ; on ajoute ici les <ol> CGV.) */
body[data-page="cgv"] .legal-section ol {
  list-style: decimal;
  margin: 6px 0 2px;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--tu-fg-soft);
}
body[data-page="cgv"] .legal-section ol li {
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tu-fg-soft);
}
body[data-page="cgv"] .legal-section ol li::marker {
  color: var(--tu-accent-text);
  font-weight: 800;
}
body[data-page="cgv"] .legal-section ol li strong { color: var(--tu-fg); }
body.dark-mode[data-page="cgv"] .legal-section ol li { color: var(--tu-fg-soft); }

/* Bloc info / warning */
body[data-page="cgv"] .legal-section .info-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(46,204,113,.10), rgba(39,174,96,.05));
  border-left: 4px solid var(--primary-color);
  color: var(--tu-fg);
  font-size: 14px;
  line-height: 1.55;
  margin: 4px 0 2px;
}
body.dark-mode[data-page="cgv"] .legal-section .info-box {
  background: linear-gradient(135deg, rgba(46,204,113,.12), rgba(39,174,96,.04));
}
body[data-page="cgv"] .legal-section .info-box p { margin: 0; font-size: 14px; color: var(--tu-fg); }
body[data-page="cgv"] .legal-section .info-box p strong { color: var(--tu-accent-text); }

/* Contact-info box (réutilisée) */
body[data-page="cgv"] .contact-info {
  background: rgba(46,204,113,.06);
  border: 1px solid rgba(46,204,113,.22);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 6px 0;
}
body[data-page="cgv"] .contact-info p {
  margin: 4px 0;
  color: var(--tu-fg-soft);
  font-size: 14px;
}
body[data-page="cgv"] .contact-info p strong { color: var(--tu-fg); }
body.dark-mode[data-page="cgv"] .contact-info {
  background: rgba(46,204,113,.08);
  border-color: rgba(46,204,113,.20);
}

/* ───── Tableaux premium (si présents) ───── */
body[data-page="cgv"] .legal-section table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(44,62,80,.05);
  border: 1px solid var(--tu-line);
  background: var(--tu-surface);
  font-size: 13.5px;
}
body.dark-mode[data-page="cgv"] .legal-section table {
  background: var(--tu-surface);
  border-color: var(--tu-line);
}
body[data-page="cgv"] .legal-section table thead tr {
  background: linear-gradient(135deg, var(--primary-color) 0%, #27AE60 100%);
}
body.dark-mode[data-page="cgv"] .legal-section table thead tr {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}
body[data-page="cgv"] .legal-section table thead th {
  padding: 11px 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--tu-on-accent);
  text-align: left;
  border: none;
  background: transparent;
}
body[data-page="cgv"] .legal-section table tbody tr:nth-child(even) { background: rgba(46,204,113,.05); }
body.dark-mode[data-page="cgv"] .legal-section table tbody tr:nth-child(even) { background: rgba(255,255,255,.02); }
body[data-page="cgv"] .legal-section table tbody td,
body[data-page="cgv"] .legal-section table tbody th[scope="row"],
body[data-page="cgv"] .legal-section table tbody th[scope="rowgroup"] {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tu-fg-soft);
  border-top: 1px solid var(--tu-line);
}
body[data-page="cgv"] .legal-section table tbody td:first-child { color: var(--tu-fg); font-weight: 700; }
/* [ROWHEADERS-05] Les identifiants de ligne sont desormais des <th> : ils
   reprennent exactement le traitement de l ancienne premiere colonne.
   text-align:left est EXPLICITE car <th> est centre par defaut. */
body[data-page="cgv"] .legal-section table tbody th[scope="row"],
body[data-page="cgv"] .legal-section table tbody th[scope="rowgroup"] {
  color: var(--tu-fg);
  font-weight: 700;
  text-align: left;
}

@media (max-width: 680px) {
  body[data-page="cgv"] .legal-section table,
  body[data-page="cgv"] .legal-section table thead,
  body[data-page="cgv"] .legal-section table tbody,
  body[data-page="cgv"] .legal-section table tr,
  body[data-page="cgv"] .legal-section table td,
  body[data-page="cgv"] .legal-section table th {
    display: block;
    width: 100%;
  }
  body[data-page="cgv"] .legal-section table { border: none; box-shadow: none; background: transparent; }
  body[data-page="cgv"] .legal-section table thead { position: absolute; left: -9999px; top: -9999px; }
  body[data-page="cgv"] .legal-section table tbody tr {
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--tu-line-strong);
    background: var(--tu-surface);
  }
  body.dark-mode[data-page="cgv"] .legal-section table tbody tr { border-color: var(--tu-line); }
  body[data-page="cgv"] .legal-section table tbody td,
  body[data-page="cgv"] .legal-section table tbody th[scope="row"],
  body[data-page="cgv"] .legal-section table tbody th[scope="rowgroup"] {
    border: none;
    border-bottom: 1px dashed var(--tu-line);
    padding: 9px 4px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-align: right;
  }
  body[data-page="cgv"] .legal-section table tbody td:last-child { border-bottom: none; }
  body[data-page="cgv"] .legal-section table tbody td:first-child,
  body[data-page="cgv"] .legal-section table tbody th[scope="row"],
  body[data-page="cgv"] .legal-section table tbody th[scope="rowgroup"] {
    font-size: 14px;
    font-weight: 900;
    color: var(--tu-fg);
    text-align: left;
    padding: 10px 4px;
    border-bottom: 2px solid rgba(46,204,113,.24);
  }
}

/* ───── CTA final (cohérent avec privacy) ───── */
body[data-page="cgv"] .legal-cta-box {
  position: relative;
  margin-top: 4px;
  padding: 24px 26px 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 260px at 50% -30%, rgba(46,204,113,.18), transparent 60%),
    var(--tu-surface);
  border: 1px solid rgba(46,204,113,.30);
  box-shadow: 0 6px 14px rgba(44,62,80,.08), 0 1px 3px rgba(44,62,80,.06);
  text-align: center;
  overflow: hidden;
}
body.dark-mode[data-page="cgv"] .legal-cta-box {
  background:
    radial-gradient(600px 260px at 50% -30%, rgba(46,204,113,.22), transparent 60%),
    var(--tu-surface);
  border-color: rgba(46,204,113,.28);
}
body[data-page="cgv"] .legal-cta-box::before {
  content: "ORKYVA · DOCUMENTATION LÉGALE";
  display: block;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--tu-accent-text);
  font-weight: 900;
  margin-bottom: 8px;
}
body[data-page="cgv"] .legal-cta-box h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  color: var(--tu-fg);
  letter-spacing: .15px;
}
body[data-page="cgv"] .legal-cta-box p {
  margin: 0 auto 14px;
  max-width: 520px;
  color: var(--tu-muted);
  font-size: 13.5px;
  line-height: 1.55;
}
body[data-page="cgv"] .legal-cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
body[data-page="cgv"] .legal-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary-color) 0%, #27AE60 100%);
  color: var(--tu-on-accent);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(46,204,113,.24);
  transition: transform .15s ease, box-shadow .25s ease;
  touch-action: manipulation;
  font-family: inherit;
}
body.dark-mode[data-page="cgv"] .legal-cta-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}
body[data-page="cgv"] .legal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(46,204,113,.36);
}
body[data-page="cgv"] .legal-cta-btn--ghost {
  background: transparent;
  color: var(--tu-accent-text);
  border-color: rgba(46,204,113,.34);
  box-shadow: none;
}
body[data-page="cgv"] .legal-cta-btn--ghost:hover {
  background: rgba(46,204,113,.08);
  border-color: rgba(46,204,113,.6);
  color: var(--tu-accent-text-hover);
}

/* ───── Responsive ───── */
@media (max-width: 767px) {
  /* 760 -> 767 : couvre toute la plage mobile sans laisser 761-767 au desktop,
     et evite d ajouter une media query qui chevaucherait celle-ci. */
  /* Gouttiere en triple corrigee : .container (style.css:452, padding:0 2rem)
     s'appliquait DANS .legal-page deja gouttiere => 52 px/cote a 320 px.
     `!important` requis : responsive-premium.css:1045 pose
     `.legal-page/.privacy-page{padding:1rem!important}`. Une seule declaration
     groupee, donc un seul !important au lieu de quatre. */
  body[data-page="cgv"] .legal-page {
    padding: 20px 16px calc(44px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body[data-page="cgv"] .legal-page > .container { padding-left: 0; padding-right: 0; max-width: 100%; gap: 14px; }

  /* Hero compact, aligne a gauche : le texte centre produisait des lignes de
     deux ou trois mots sur 214 px utiles. */
  body[data-page="cgv"] .page-header {
    padding: 22px 22px 24px;
    text-align: left;
    margin-bottom: 0;
    /* ellipse tres reduite et repoussee hors du bloc ; le voile diagonal est
       supprime juste dessous => aucune variation de contraste sur le texte. */
    background:
      radial-gradient(210px 130px at 108% -34%, rgba(46,204,113,.16), transparent 62%),
      linear-gradient(160deg, var(--dark-color) 0%, #1E3A2E 55%, var(--primary-color) 160%);
  }
  body.dark-mode[data-page="cgv"] .page-header {
    background:
      radial-gradient(210px 130px at 108% -34%, rgba(46,204,113,.16), transparent 62%),
      linear-gradient(160deg, #0A0A0A 0%, #123320 55%, var(--primary-dark) 160%);
  }
  body[data-page="cgv"] .page-header::after { display: none; }
  body[data-page="cgv"] .page-header .legal-eyebrow { font-size: 10.5px; letter-spacing: .16em; margin-bottom: 12px; }
  /* icone au-dessus du titre : lui rend la pleine largeur (CGV 3 lignes -> 2).
     `!important` requis : responsive-premium.css:1050 pose
     `.legal-page h1/.privacy-page h1{font-size:1.5rem!important}`. */
  body[data-page="cgv"] .page-header h1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: clamp(24px, 6.2vw, 30px) !important;
    line-height: 1.2;
    margin: 0 0 10px;
    text-wrap: balance;
    /* privacy-premium.css:83 pose text-align:center directement sur le h1
       (regle absente de cgv-premium.css) : sans cette ligne le titre de
       Privacy reste centre alors que le reste du hero passe a gauche. */
    text-align: left;
  }
  body[data-page="cgv"] .page-header h1 i { font-size: 22px; opacity: .92; }
  body[data-page="cgv"] .page-header p { font-size: 15.5px; line-height: 1.6; max-width: none; margin: 0; }

  body[data-page="cgv"] .legal-reg-box { padding: 11px 14px; }
  body[data-page="cgv"] .legal-section { padding: 18px 16px 16px; }
  /* responsive-premium.css:1053 pose `margin-top:1.25rem!important` sur h2 :
     sur le premier h2 d'une carte cela creuse un vide en haut de chaque carte. */
  body[data-page="cgv"] .legal-section h2:first-child { margin-top: 0 !important; }
  body[data-page="cgv"] .legal-section p { font-size: 15px; line-height: 1.65; }
  body[data-page="cgv"] .legal-section ul li, body[data-page="cgv"] .legal-section .legal-list li { font-size: 15px; line-height: 1.55; padding: 10px 12px 10px 36px; }
  body[data-page="cgv"] .legal-section ul li::before, body[data-page="cgv"] .legal-section .legal-list li::before { left: 10px; width: 18px; height: 18px; }
  body[data-page="cgv"] .contact-info p { font-size: 15px; line-height: 1.6; }
  body[data-page="cgv"] .legal-section h2 { font-size: 17.5px; }
  body[data-page="cgv"] .legal-cta-box { padding: 18px 18px 16px; }
  body[data-page="cgv"] .legal-cta-btn { width: 100%; min-height: 48px; }
}
@media (max-width: 480px) {
  /* Les 2 declarations d origine (padding du wrapper, font-size du h1) etaient
     deja neutralisees par les !important de responsive-premium.css : code mort.
     Remplacees par les reglages reellement utiles aux tres petits ecrans. */
  body[data-page="cgv"] .page-header { padding: 20px 18px 22px; }
  body[data-page="cgv"] .legal-reg-box { padding: 10px 13px; }
  body[data-page="cgv"] .legal-section { padding: 16px 14px 14px; }
  body[data-page="cgv"] .page-header .legal-eyebrow { letter-spacing: .12em; }
}

/* ───── Accessibilité ───── */
body[data-page="cgv"] a:focus-visible,
body[data-page="cgv"] button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="cgv"] *,
  body[data-page="cgv"] *::before,
  body[data-page="cgv"] *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* =============== FIN cgv-premium.css =============== */

/* ═══ [CGV-PRIVACY-MOBILE-01 2026-08-02] ═══
   Portee : body[data-page="cgv"] uniquement. Meme hierarchie hero + encadre que
   mentions-legales / avis-clients, sans feuille partagee : ces pages ont leur
   propre architecture (§3 du lot). Causes racines mesurees a 320 px, dans le
   rendu et non dans le CSS : gouttiere en triple (52 px/cote => 214 px utiles),
   ::after absolu sans z-index peint au-dessus du texte, min-height:100vh,
   h1 en inline-flex (titre CGV sur 3 lignes), introduction a 14 px, et
   .last-update en border-radius:999px qui passe a 2 lignes sur CGV a <=360 px.
   ═══════════════════════════════════════ */

/* Eyebrow : HTML reel, propre a chaque page. */
body[data-page="cgv"] .page-header .legal-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .26em;
  color: rgba(255,255,255,.72);
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}
/* Contenu du hero au-dessus du voile decoratif (qui recoit z-index:0). */
body[data-page="cgv"] .page-header > * { position: relative; z-index: 1; }

/* Bandeau "version du document", sorti du hero.
   MESURE : en carte empilee (titre puis valeur) le bloc total passait de 350 a
   464 px sur CGV a 390 px — on echangeait un defaut de lisibilite contre un
   defaut de densite. Bandeau en ligne, qui ne se replie que s il manque de
   place : la lisibilite est gagnee sans rallonger la page. */
body[data-page="cgv"] .legal-reg-box {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(46,204,113,.06);
  border: 1px solid rgba(46,204,113,.22);
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  gap: 2px 10px;
}
body.dark-mode[data-page="cgv"] .legal-reg-box { background: rgba(46,204,113,.08); border-color: rgba(46,204,113,.20); }
body[data-page="cgv"] .legal-reg-box .legal-reg-title {
  margin: 0;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.5;
  /* #1B6B3A = 5.48:1 mesure sur ce fond en mode clair ; var(--tu-accent-text)
     (#1E8449) n'y atteint que 3.95:1, sous le seuil AA pour du 11-12 px. */
  color: #1B6B3A;
}
body.dark-mode[data-page="cgv"] .legal-reg-box .legal-reg-title { color: var(--tu-accent-text); }
body[data-page="cgv"] .legal-reg-box p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tu-fg-soft);
  text-align: left;
}

/* Jetons insecables (URL, emails) : sans cela ils sont COUPES par les
   overflow:hidden de la page a fort zoom. N agit que si le mot ne tient pas. */
body[data-page="cgv"] .page-header p,
body[data-page="cgv"] .legal-reg-box p,
body[data-page="cgv"] .legal-section p,
body[data-page="cgv"] .legal-section li,
body[data-page="cgv"] .legal-section a,
body[data-page="cgv"] .contact-info p { overflow-wrap: anywhere; }
/* ═══ FIN CGV-PRIVACY-MOBILE-01 ═══ */

/* ═══ [LEGAL-TABLES-A11Y-02 2026-08-03] ═══
   Accessibilite au zoom 200 % et au-dela. MESURE avant patch, a 195 px de
   largeur CSS (= 390 px a 200 %) : 124 caracteres de contenu REELLEMENT
   coupes sur CGV, 121 sur Privacy — cellules de tableau ("Jamais offerte
   automatiquement", "tu_cookie_consent"), titres de hero et libelles des
   encadres d orientation.
   CAUSE MESUREE, ni supposee ni deduite : aucun descendant EN FLUX ne
   depasse a droite ; le clip vient de mots trop longs pour la colonne, que
   overflow-wrap:normal refuse de couper. Le thead a left:-9999px et le
   overflow:hidden du tableau ont ete ecartes par bisection (les neutraliser
   ne change RIEN au nombre de caracteres coupes).
   ⇒ correction §13.A seule : rendre le contenu secable. Aucune structure de
   tableau touchee, aucun conteneur de defilement ajoute, aucun overflow
   masque, aucune cellule ni ligne ni colonne retiree.
   anywhere (et non break-word) : n agit QUE si le mot ne tient pas, et
   contrairement a break-word il est pris en compte dans le calcul de la
   largeur minimale intrinseque — ce qui est exactement ce qui manque ici.
   ═══════════════════════════════════════ */
body[data-page="cgv"] .legal-section table td,
body[data-page="cgv"] .legal-section table th,
body[data-page="cgv"] .page-header h1,
body[data-page="cgv"] .page-header .legal-eyebrow,
body[data-page="cgv"] .legal-cta-box h3,
body[data-page="cgv"] .legal-cta-box p,
body[data-page="cgv"] .legal-cta-btn {
  overflow-wrap: anywhere;
}
/* ═══ FIN LEGAL-TABLES-A11Y-02 ═══ */

/* ═══ [LEGAL-TABLES-SEMANTICS-03 2026-08-03] ═══
   Le mode carte (<=680px) deplace le <thead> hors ecran : chaque valeur se
   retrouvait SANS son en-tete de colonne. La maquette le prevoyait deja — le
   td est en flex/space-between — mais le libelle n avait jamais ete pose.
   MESURE ayant ecarte le retour au tableau natif a 320 px : colonnes de 47 a
   80 px, 6 caracteres par ligne, jusqu a 17 lignes dans une cellule et 78 mots
   brises au total (contre 1 en mode carte). Le mode carte est conserve.
   L association ACCESSIBLE est portee par les attributs HTML (scope, id,
   headers, caption) — jamais par ce pseudo-element, qui n est qu un secours
   VISUEL pour les personnes voyantes.
   ═══════════════════════════════════════ */

/* Caption : nom accessible du tableau. Retire du flux visuel SANS etre retire
   de l arbre d accessibilite — ni display:none ni visibility:hidden. */
body[data-page="cgv"] .legal-section table caption.tu-a11y-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  /* Libelle de colonne devant chaque valeur, issu de data-label. */
  body[data-page="cgv"] .legal-section table tbody td::before,
  body[data-page="cgv"] .legal-section table tbody th[scope="row"]::before,
  body[data-page="cgv"] .legal-section table tbody th[scope="rowgroup"]::before {
    content: attr(data-label);
    flex: 0 1 auto;
    min-width: 0;
    max-width: 46%;
    padding-right: 10px;
    text-align: left;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
    /* #1B6B3A = 5.48:1 sur le fond des cartes en mode clair ; l accent
       par defaut n atteint que 3.95:1, sous le seuil AA a cette taille. */
    color: #1B6B3A;
    overflow-wrap: anywhere;
  }
  body[data-page="cgv"].dark-mode .legal-section table tbody td::before,
  body[data-page="cgv"].dark-mode .legal-section table tbody th[scope="row"]::before,
  body[data-page="cgv"].dark-mode .legal-section table tbody th[scope="rowgroup"]::before,
  body.dark-mode[data-page="cgv"] .legal-section table tbody td::before,
  body.dark-mode[data-page="cgv"] .legal-section table tbody th[scope="row"]::before,
  body.dark-mode[data-page="cgv"] .legal-section table tbody th[scope="rowgroup"]::before {
    color: var(--tu-accent-text);
  }
  /* La valeur garde la place restante et reste alignee a droite. */
  body[data-page="cgv"] .legal-section table tbody td,
  body[data-page="cgv"] .legal-section table tbody th[scope="row"],
  body[data-page="cgv"] .legal-section table tbody th[scope="rowgroup"] {
    align-items: baseline;
  }
  /* 1re cellule = titre de la carte : le libelle y serait redondant avec le
     caption et alourdirait la carte ; la valeur y est deja en pleine largeur. */
  body[data-page="cgv"] .legal-section table tbody td:first-child::before {
    content: none;
  }
}
/* ═══ FIN LEGAL-TABLES-SEMANTICS-03 ═══ */
