/* Pages légales INNOCERTIS — même palette et même police que le site */
:root { --lin: #faf7ef; --lin-2: #f3efe6; --lin-3: #eeeae2; --trait: #ddd5c4; --noir: #111; --gris: #5e5a53; --terracotta: #c05145; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--lin); color: var(--noir); font-family: "Poppins", system-ui, sans-serif; font-size: 16.5px; line-height: 1.7; }
a { color: inherit; text-decoration-color: var(--terracotta); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--noir); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
.proto { background: var(--lin-3); color: var(--gris); font-size: 12.5px; text-align: center; padding: 6px 16px; }
mark { background: #f3d9d4; color: var(--noir); padding: 0 4px; border-radius: 3px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--trait); }
.logo img { height: 44px; width: auto; }
.back { font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--noir); }
.doc { padding-top: 40px; padding-bottom: 64px; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 6px; }
.dot { color: var(--terracotta); }
.upd { color: var(--gris); font-size: 14px; margin: 0 0 32px; }
h2 { font-size: 20px; font-weight: 600; margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--trait); }
p { margin: 0 0 12px; max-width: 68ch; }
.note { font-size: 14.5px; color: var(--gris); }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--trait); }
dt { color: var(--gris); font-size: 14.5px; }
dd { margin: 0; overflow-wrap: anywhere; }
.foot { padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--trait); color: var(--gris); font-size: 13.5px; }
@media (max-width: 640px) { dl div { grid-template-columns: 1fr; gap: 0; } }

/* Page des conditions générales de vente */
h2.plain { border-top: 0; padding-top: 0; }
.toc { margin: 32px 0 8px; padding: 22px 26px; background: var(--lin-2); border-radius: 16px; }
.toc h2 { margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.toc li { padding: 4px 0; break-inside: avoid; font-size: 15px; }
.toc a { text-decoration: none; border-bottom: 1px solid transparent; }
.toc a:hover { border-bottom-color: var(--terracotta); }
.cgv h2[id] { scroll-margin-top: 16px; }
.cgv h3 { font-size: 16.5px; font-weight: 600; margin: 18px 0 6px; }
.cgv ul { margin: 0 0 12px; padding-left: 22px; max-width: 68ch; }
.cgv li { margin-bottom: 6px; }
.artnav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: none; margin: 18px 0 0; font-size: 13.5px; color: var(--gris); }
.artnav a { text-decoration: none; border-bottom: 1px solid var(--trait); }
.table { overflow-x: auto; margin: 0 0 14px; }
.cgv table { border-collapse: collapse; width: 100%; font-size: 15px; }
.cgv td { border: 1px solid var(--trait); padding: 8px 10px; vertical-align: top; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.cgv h2 .num { display: inline-block; min-width: 1.6em; margin-right: 6px; color: var(--terracotta); font-weight: 600; }
.cgv h2.annexe { color: var(--gris); }
.preambule p:first-child { font-weight: 500; }
.toc li.annexe { color: var(--gris); font-style: italic; }

/* Bouton d'impression */
.doc-actions { margin: 6px 0 0; }
.print-btn { font: inherit; font-size: 14.5px; font-weight: 500; color: var(--noir); background: transparent; border: 1px solid var(--noir); border-radius: 999px; padding: 9px 20px; cursor: pointer; }
.print-btn:hover { background: var(--noir); color: var(--lin); }

/* Texte justifié (pages légales, à l'écran comme à l'impression) */
.doc p, .doc ul { max-width: none; }
.doc p, .doc li, .doc dd { text-align: justify; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.doc .upd, .doc .artnav, .doc .doc-actions, .toc li { text-align: left; hyphens: manual; }

/* Impression et PDF : aux couleurs du site (le fond lin est posé sur chaque page du PDF) */
@media print {
  @page { size: A4; margin: 18mm 16mm 20mm; }
  html, body { background: transparent; }
  body { color: var(--noir); font-size: 10.5pt; line-height: 1.55; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .proto, .top .back, .doc-actions, .artnav, .foot { display: none !important; }
  .top { border: 0; border-bottom: 0.6pt solid var(--trait); padding: 0 0 5mm; margin-bottom: 7mm; }
  .wrap { max-width: none; padding: 0; }
  .doc { padding: 0; }
  h1 { font-size: 22pt; }
  h2 { font-size: 13pt; break-after: avoid; page-break-after: avoid; border-top: 0.6pt solid var(--trait); }
  p, li { orphans: 3; widows: 3; max-width: none; }
  .cgv ul { max-width: none; }
  .toc { background: var(--lin-3); border: 0; break-inside: avoid; }
  .toc a, a { color: var(--noir); text-decoration: none; }
  mark { background: none; border-bottom: 1pt solid var(--terracotta); }
  .doc > .note { display: none; }
  .top .logo img { height: 20mm; width: auto; }
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn { text-decoration: none; background: var(--terracotta); border-color: var(--terracotta); color: #fff; display: inline-block; }
.dl-btn:hover { background: #a8453a; border-color: #a8453a; color: #fff; }
