/* ==========================================================================
   SOLUM — pages d'information : dossier de partenariat, contact,
   mentions légales, confidentialité. S'appuie sur styles.css.
   ========================================================================== */

/* ------------------------------------------------------------- Héros */

.doc-hero { padding-top: clamp(7rem, 13vw, 9.5rem); }
.doc-hero::before { display: none; }
.doc-back { margin-bottom: 2.2rem; font-size: .98rem; }
.doc-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.doc-hero h1 {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  line-height: .95;
  letter-spacing: -0.025em;
  max-width: 14ch;
  margin-bottom: 1.6rem;
}
.doc-hero .lede { max-width: 34em; }
.doc-meta { margin: 1.6rem 0 0; font-size: .95rem; opacity: .8; max-width: 40em; }

/* ------------------------------------------------------- Corps de page */

.doc { padding-top: clamp(2rem, 4vw, 3rem); }
.doc::before { display: none; }

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.doc-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 50rem; }

.doc-toc {
  position: sticky;
  top: 6rem;
  font-family: var(--display);
  font-size: .92rem;
}
.doc-toc p { margin: 0 0 .6rem; font-weight: 700; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(29, 24, 19, .2); }
.doc-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(29, 24, 19, .2);
  text-decoration: none;
}
.doc-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.doc-section { padding: clamp(2.2rem, 5vw, 3.4rem) 0; border-top: 2px solid var(--ink); scroll-margin-top: 6rem; }
.doc-section:first-child { border-top: 0; padding-top: 0; }
.doc-section h2 { font-size: var(--fs-4); margin-bottom: 1.2rem; max-width: 22ch; }
.doc-section h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.doc-section > p { font-size: 1.08rem; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.6rem 2rem;
  margin-top: 1.6rem;
}
.doc-grid > div { padding-top: .9rem; border-top: 2px solid var(--ink); }
.doc-grid p { margin: 0; font-size: 1.02rem; line-height: 1.55; }

.doc-callout {
  margin: 1.2rem 0 2rem;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid var(--ink);
  background: rgba(29, 24, 19, .06);
  font-size: 1.08rem;
  max-width: 44em;
}

.doc-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.doc-list li { position: relative; padding-left: 1.2rem; line-height: 1.5; }
.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: .6rem;
  height: 2px;
  background: var(--ink);
}
.doc-steps { margin: .6rem 0 0; padding-left: 1.6rem; display: grid; gap: .4rem; }
.doc-steps li::marker { font-family: var(--display); font-weight: 700; font-feature-settings: "tnum"; }

/* Tableaux : statut, budget, documents */
.doc-table-wrap { overflow-x: auto; margin-top: 1.2rem; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.doc-table th, .doc-table td {
  padding: .8rem 1rem .8rem 0;
  border-bottom: 1px solid rgba(29, 24, 19, .22);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.doc-table thead th {
  font-family: var(--display);
  font-size: .88rem;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}
.doc-table tbody th { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 104; width: 26%; }
.doc-table td:last-child { white-space: nowrap; }
.doc-table tfoot th, .doc-table tfoot td { border-top: 2px solid var(--ink); font-weight: 700; }
@media (max-width: 640px) { .doc-table td:last-child { white-space: normal; } }

/* Étiquettes d'état. « À préciser » signale une information encore manquante */
.tag, .tbd {
  display: inline-block;
  padding: .12rem .55rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.tag { border: 1px solid var(--ink); }
.tag--done { background: var(--ink); color: #ecebe4; }
.tbd { border: 1px dashed currentColor; opacity: .85; }
.h-R .tbd, .h-F .tbd { opacity: 1; }
.tbd-legend { font-size: .95rem; }

/* Feuille de route : une vraie séquence */
.roadmap {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.roadmap > li { padding: 1.2rem 1.2rem 1.4rem; background: rgba(29, 24, 19, .06); border-top: 4px solid var(--ink); }
.roadmap__when { margin: 0; font-family: var(--display); font-size: .9rem; font-feature-settings: "tnum"; opacity: .8; }
.roadmap h3 { margin: .2rem 0 .8rem; font-size: 1.35rem; }

/* Cartes de gouvernance */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 3px;
  margin-top: 1.6rem;
}
.doc-cards > div { padding: 1.2rem 1.3rem 1.3rem; background: rgba(29, 24, 19, .06); }
.doc-cards p { margin: 0 0 .7rem; font-size: 1rem; line-height: 1.5; }
.doc-cards p:last-child { margin-bottom: 0; }

/* Pages de texte : mentions, confidentialité */
.doc-prose h2 { font-size: var(--fs-2); margin: 2.6rem 0 .8rem; }
.doc-prose h2:first-child { margin-top: 0; }
.doc-prose p, .doc-prose li { font-size: 1.05rem; max-width: 40em; }
.doc-prose ul { padding-left: 1.2rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.6rem 2rem;
}
.contact-grid > div { padding-top: .9rem; border-top: 2px solid var(--ink); }
.contact-grid p { margin: 0 0 1rem; font-size: 1.02rem; }
.mail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 600;
  text-underline-offset: 4px;
  word-break: break-word;
}

/* Section de contact sombre en bas de page */
.doc-contact h2 { max-width: 16ch; }

.doc-body { min-width: 0; }

@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; }
  .doc-toc ol { display: flex; flex-wrap: wrap; gap: 0 1.2rem; border-top: 0; }
  .doc-toc a { border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }
  .roadmap { grid-template-columns: 1fr; }
}

.h3-like { font-size: 1.25rem; margin-bottom: .6rem; }
.doc-sub { margin-top: 2.4rem !important; }

/* Très petits écrans : titres ajustés à la largeur, sans césure (voir styles.css) */
@media (max-width: 420px) {
  .doc-hero h1 { font-size: clamp(2rem, 10.8vw, 2.4rem); font-variation-settings: "wdth" 108; }
  .doc-section h2 { font-size: clamp(2rem, 10.2vw, 2.666rem); font-variation-settings: "wdth" 100; }
}
