/* Feuille de style commune aux pages légales et d'information de Zola.
   Partagée par : conditions, confidentialite, mentions-legales,
   securite-enfants, conseils, contact.
   Elle suppose theme.css chargé avant : couleurs, fond, cartes, boutons et
   pied de page viennent de là, on ne décrit ici que la mise en page du texte. */

body {
  line-height: 1.75;
  font-size: 16px;
}

/* ---------- Barre du haut ---------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

/* ---------- En-tête de page ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  background: #f9f9fb;
  padding: 56px 24px 40px;
}
.hero-inner, main { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--heading); line-height: 1.25; }
.updated { color: var(--muted); font-size: .88rem; margin-top: 10px; }

/* ---------- Corps ---------- */
main { padding: 40px 24px 72px; }
section { margin-bottom: 34px; scroll-margin-top: 84px; }
h2 {
  font-size: 1.12rem;
  color: var(--heading);
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}
h3 {
  font-size: 1rem;
  color: var(--heading);
  margin: 20px 0 8px;
  font-weight: 600;
}
p { margin-bottom: 12px; color: var(--text); }
ul { padding-left: 4px; list-style: none; }
li {
  margin-bottom: 10px;
  padding-left: 26px;
  position: relative;
  color: var(--text);
}
li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
strong { color: var(--heading); }

/* ---------- Sommaire ---------- */
.toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 38px;
}
.toc h2 {
  border: 0;
  padding: 0;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.toc ol {
  columns: 2;
  column-gap: 28px;
  padding-left: 18px;
  font-size: .93rem;
}
.toc li { padding-left: 0; margin-bottom: 6px; break-inside: avoid; }
.toc li::before { display: none; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Encadrés ---------- */
.notice, .warn, .alert {
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 26px 0;
  font-size: .95rem;
}
.notice { background: #f9f9fb; border: 1px solid var(--line); color: var(--text); }
.warn { background: var(--warn-soft); border: 1px solid #fde68a; color: var(--warn); }
.alert { background: var(--danger-soft); border: 1px solid #fecaca; color: var(--danger); }

/* ---------- Fiches (contact, référents) ---------- */
.cards { display: grid; gap: 18px; }
.card h2 { font-size: 1.05rem; color: var(--heading); margin-bottom: 8px; border: 0; padding: 0; }
.card p { color: var(--text); font-size: .96rem; margin-bottom: 8px; }
.card .mail {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 1px;
}
.card .mail:hover { border-bottom-color: var(--accent); }
.addr { font-style: normal; color: var(--text); font-size: .96rem; line-height: 1.7; }

/* ---------- Tableau (identité de la société) ---------- */
.facts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facts th, .facts td {
  text-align: left;
  vertical-align: top;
  padding: 11px 0;
  border-bottom: 1px solid rgba(253, 38, 122, .12);
}
.facts th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 18px; }
.facts td { color: var(--text); }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .topbar { padding: 0 16px; height: 58px; }
  .hero { padding: 34px 20px 28px; }
  main { padding: 28px 20px 56px; }
  section { margin-bottom: 28px; }
  h2 { font-size: 1.05rem; padding-left: 12px; }
  li { padding-left: 22px; }
  .toc { padding: 18px; margin-bottom: 30px; }
  .toc ol { columns: 1; }
  .notice, .warn, .alert { padding: 16px 18px; margin: 20px 0; }
  .card { padding: 20px 18px; }
  .card .mail { word-break: break-all; }
  .facts th { width: 44%; }
}
