/* Mise en page des conditions générales de vente (document long, lecture suivie). */

/* La police du site est déclarée page par page, dans un <style> en tête de
   chaque document : theme.css ne la porte pas. Cette page étant la seule à
   tirer toute sa mise en page d'une feuille externe, elle n'héritait de rien
   et retombait sur le sérif par défaut du navigateur. */
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.cgv-hero {
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(135deg, #0d4d8b 0%, #1f6fb2 100%);
  color: #f3f9ff;
  box-shadow: 0 12px 30px rgba(18, 66, 110, 0.2);
}

.cgv-hero h1 {
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.2;
}

.cgv-hero p {
  margin: 0 0 8px;
  max-width: 76ch;
  line-height: 1.55;
  color: #dbeaf9;
}

.cgv-hero p:last-child {
  margin-bottom: 0;
}

.cgv-version {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.cgv-identity {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cgv-identity dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffd9a3;
}

.cgv-identity dd {
  margin: 2px 0 10px;
  color: #eef6ff;
  line-height: 1.5;
}

.cgv-identity dd:last-child {
  margin-bottom: 0;
}

.cgv-identity a {
  color: #fff;
}

/* Sommaire */

.cgv-toc {
  border-radius: 14px;
  border: 1px solid var(--brand-line, #d4e1f2);
  background: #fff;
  padding: 16px 18px;
  margin-top: 14px;
  box-shadow: 0 6px 18px rgba(16, 66, 110, 0.08);
}

.cgv-toc h2 {
  margin: 0 0 10px;
  color: var(--brand-blue, #0d4d8b);
  font-size: 1.05rem;
}

.cgv-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3;
  column-gap: 22px;
}

.cgv-toc li {
  break-inside: avoid;
  margin-bottom: 5px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.cgv-toc a {
  color: #1f5f9c;
  text-decoration: none;
}

.cgv-toc a:hover {
  text-decoration: underline;
}

/* Corps du document */

.cgv-body {
  border-radius: 14px;
  border: 1px solid var(--brand-line, #d4e1f2);
  background: #fff;
  padding: 20px 22px;
  margin-top: 14px;
  box-shadow: 0 6px 18px rgba(16, 66, 110, 0.08);
}

.cgv-article {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid #e6eef8;
  scroll-margin-top: 90px;
}

.cgv-article:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.cgv-article h2 {
  margin: 0 0 8px;
  color: var(--brand-blue, #0d4d8b);
  font-size: 1.12rem;
  line-height: 1.3;
}

.cgv-article p,
.cgv-article li {
  color: var(--brand-text, #16263a);
  line-height: 1.6;
}

.cgv-article p {
  margin: 0 0 10px;
}

.cgv-article p:last-child,
.cgv-article ul:last-child {
  margin-bottom: 0;
}

.cgv-article ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.cgv-article li {
  margin-bottom: 5px;
}

.cgv-caps {
  text-transform: uppercase;
  font-weight: 600;
}

/* Annexe tarifaire */

.cgv-annex {
  border-radius: 14px;
  border: 1px solid #aac9e5;
  background: #edf6ff;
  padding: 20px 22px;
  margin-top: 14px;
  box-shadow: 0 8px 20px rgba(15, 66, 109, 0.08);
  scroll-margin-top: 90px;
}

.cgv-annex h2 {
  margin: 0 0 4px;
  color: #123f68;
}

.cgv-annex h3 {
  margin: 18px 0 8px;
  color: var(--brand-blue, #0d4d8b);
  font-size: 1.02rem;
}

.cgv-annex p {
  margin: 0 0 10px;
  color: #34526f;
  line-height: 1.55;
}

.cgv-table-wrap {
  overflow-x: auto;
}

.cgv-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.95rem;
}

.cgv-table caption {
  text-align: left;
  padding-bottom: 6px;
  font-size: 0.88rem;
  color: #4f6b88;
}

.cgv-table th,
.cgv-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #e2ecf7;
}

.cgv-table thead th {
  background: #0d4d8b;
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.cgv-table tbody tr:last-child th,
.cgv-table tbody tr:last-child td {
  border-bottom: 0;
}

.cgv-table tbody tr:nth-child(even) {
  background: #f6fafe;
}

.cgv-table td:not(:first-child),
.cgv-table th:not(:first-child) {
  text-align: right;
}

.cgv-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #4f6b88;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .cgv-toc ol {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .cgv-toc ol {
    columns: 1;
  }

  .cgv-hero,
  .cgv-body,
  .cgv-annex {
    padding: 16px;
  }
}
