/* ═══════════════════════════════════════════════════════════════════
   OryMap, site public. Gabarit inspiré de policies.google.com :
   en-tête blanc, onglets soulignés, sommaire fixe à gauche, texte aéré.
   Charte : Forest #0F3D24, Ory Green #00B850, DM Sans (comme l'app).
   ═══════════════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff; color: #202822;
  line-height: 1.7; font-size: 16px;
}

/* ── En-tête ── */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid #e6ebe8;
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px 0;
}
.brand-row { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; }
.brand-row svg { display: block; }
.brand-name { font-size: 19px; font-weight: 700; color: #0F3D24; letter-spacing: -0.4px; text-decoration: none; }
.brand-sub { font-size: 14px; color: #5a6c63; border-left: 1px solid #d9e2dc; padding-left: 12px; margin-left: 2px; }

.tabs { display: flex; gap: 4px; }
.tabs a {
  padding: 10px 16px 12px; font-size: 14px; font-weight: 500;
  color: #5a6c63; text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  white-space: nowrap;
}
.tabs a:hover { color: #0F3D24; background: #f4f8f5; border-radius: 8px 8px 0 0; }
.tabs a.active { color: #0F3D24; font-weight: 700; border-bottom-color: #00B850; }

/* ── Corps : sommaire + contenu ── */
.layout {
  max-width: 1100px; margin: 0 auto; padding: 36px 24px 80px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px;
}
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #8a978f; margin-bottom: 12px; }
.toc a {
  display: block; padding: 6px 12px; font-size: 13.5px; color: #5a6c63;
  text-decoration: none; border-left: 2px solid #e6ebe8; line-height: 1.45;
}
.toc a:hover { color: #0F3D24; }
.toc a.active { color: #00863B; font-weight: 700; border-left-color: #00B850; }

.content { max-width: 720px; }
.doc-title { font-size: 38px; font-weight: 700; color: #0F3D24; letter-spacing: -1px; line-height: 1.2; margin-bottom: 10px; }
.doc-meta { color: #5a6c63; font-size: 14px; margin-bottom: 34px; }
.doc-meta strong { color: #0F3D24; }

h2 { color: #0F3D24; font-size: 22px; font-weight: 700; margin: 44px 0 14px; letter-spacing: -0.3px; scroll-margin-top: 96px; }
h2 .num { color: #00B850; margin-right: 10px; }
h3 { color: #0F3D24; font-size: 16.5px; font-weight: 700; margin: 24px 0 8px; }
p { margin-bottom: 14px; }
ul { margin: 8px 0 16px 22px; }
li { margin-bottom: 7px; }
strong { color: #0F3D24; }
a { color: #00863B; }

.info-box {
  background: #EDFAF1; border-left: 4px solid #00B850;
  padding: 18px 22px; border-radius: 10px; margin: 20px 0; font-size: 15px;
}
.info-box ul { margin-bottom: 0; }
.warn-box {
  background: #FFF7E6; border-left: 4px solid #E8A317;
  padding: 18px 22px; border-radius: 10px; margin: 20px 0; font-size: 15px; color: #6b4e00;
}
.warn-box strong { color: #5a4200; }
.legal-ref {
  background: #f0f4f1; padding: 1px 8px; border-radius: 4px;
  font-size: 12.5px; font-weight: 700; color: #0F3D24; white-space: nowrap;
}

.table-wrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
thead th {
  background: #f4f8f5; color: #0F3D24; padding: 11px 13px; text-align: left;
  font-weight: 700; border-bottom: 2px solid #00B850;
}
tbody td { padding: 11px 13px; border-bottom: 1px solid #e9efeb; vertical-align: top; }
td strong { font-weight: 700; }

.doc-footer {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #e6ebe8;
  color: #5a6c63; font-size: 13px; line-height: 1.9;
}

/* ── Accueil ── */
.hero { max-width: 720px; margin: 0 auto; padding: 96px 24px 64px; text-align: center; }
.hero svg { margin-bottom: 24px; }
.hero h1 { font-size: 46px; font-weight: 700; color: #0F3D24; letter-spacing: -1.5px; margin-bottom: 10px; }
.hero .tagline { font-size: 21px; color: #00863B; font-weight: 500; margin-bottom: 22px; }
.hero p { font-size: 16.5px; color: #3d4a42; max-width: 560px; margin: 0 auto 14px; }
.hero .soon {
  display: inline-block; margin-top: 18px; background: #EDFAF1; color: #00863B;
  font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px;
}
.footer-simple {
  border-top: 1px solid #e6ebe8; padding: 26px 24px 40px; text-align: center;
  color: #5a6c63; font-size: 13.5px; line-height: 2;
}
.footer-simple a { color: #00863B; margin: 0 10px; }

/* ── Écrans étroits ── */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .toc { position: static; max-height: none; margin-bottom: 28px; }
  .toc details { border: 1px solid #e6ebe8; border-radius: 10px; padding: 12px 16px; }
  .toc summary { font-weight: 700; color: #0F3D24; cursor: pointer; font-size: 14px; }
  .toc a { border-left: none; padding: 7px 4px; }
  .brand-sub { display: none; }
  .doc-title { font-size: 29px; }
  h2 { font-size: 19px; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 18px; }
}
@media (min-width: 881px) {
  .toc details { display: contents; }
  .toc summary { display: none; }
}
@media print {
  .header, .toc { display: none !important; }
  .layout { display: block; padding: 0; }
  body { font-size: 12px; }
}
