/* ==========================================================================
   ROULEURS DE SOLEIL (rouleursdesoleil.com) — Companion Editorial Stylesheet
   Dedicated to the quieter, high-legibility sanctuary & regulatory pages:
   jeu-responsable.html, mentions-legales.html, confidentialite.html, a-propos.html
   ========================================================================== */

/* 1. Quiet Sanctuary Hero Banner (Rooted in the World, Calm & Readable) */
.page-hero-quiet {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background: var(--elytra-night);
  border-bottom: 2px solid var(--suture-gold);
  overflow: hidden;
}

.page-hero-quiet__picture,
.page-hero-quiet__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 1;
  filter: saturate(0.95) contrast(1.04);
}

.page-hero-quiet__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(4, 23, 18, 0.92) 0%, rgba(4, 23, 18, 0.72) 55%, rgba(4, 23, 18, 0.48) 100%),
    linear-gradient(180deg, rgba(4, 23, 18, 0.35) 0%, rgba(4, 23, 18, 0.78) 65%, rgba(4, 23, 18, 0.97) 100%);
}

.page-hero-quiet__inner {
  position: relative;
  z-index: 3;
  padding-top: 48px;
  padding-bottom: 38px;
  color: var(--bg-zenith-white);
}

/* Breadcrumb Trail (Le Sillon de Retour) */
.breadcrumb-sillon {
  margin-bottom: 18px;
}

.breadcrumb-sillon__list {
  list-style: none;
  margin: 0;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(6, 35, 27, 0.82);
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.breadcrumb-sillon__list a {
  color: var(--suture-gold-light);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb-sillon__list a:hover {
  color: var(--solar-molten);
  text-decoration: underline;
}

.breadcrumb-sillon__sep {
  color: var(--solar-molten);
}

.breadcrumb-sillon__current {
  color: var(--text-on-dark-muted);
}

.page-hero-quiet__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--suture-gold-light);
  margin-bottom: 10px;
}

.page-hero-quiet__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0 0 14px;
  color: var(--bg-zenith-white);
  max-width: 26ch;
}

.page-hero-quiet__lead {
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.62;
  color: rgba(255, 249, 245, 0.92);
  max-width: 72ch;
}

.page-hero-quiet__meta-strip {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 164, 65, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-on-dark-muted);
}

.page-hero-quiet__meta-strip strong {
  color: var(--suture-gold-light);
}

/* 2. Editorial Two-Column Sanctuary Layout (Sticky Sommaire + Parchment Sheet) */
.editorial-sanctuary {
  padding: 48px 0 80px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}

/* Left Sticky Sommaire (Astrolabe de Lecture) */
.sommaire-panel {
  position: sticky;
  top: calc(var(--guardrail-height) + var(--header-height) + 22px);
  background: linear-gradient(165deg, #06231B 0%, #041712 70%, #1F0926 100%);
  color: var(--text-on-dark);
  border: 1.5px solid var(--suture-gold);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-carapace);
}

.sommaire-panel__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--suture-gold-light);
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sommaire-panel__subtitle {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-on-dark-muted);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(217, 164, 65, 0.35);
}

.sommaire-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sommaire-nav a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-roll);
}

.sommaire-nav a:hover {
  background: rgba(14, 107, 80, 0.38);
  color: var(--bg-zenith-white);
  border-color: rgba(217, 164, 65, 0.5);
}

.sommaire-nav__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--suture-gold-light);
  flex-shrink: 0;
}

.sommaire-panel__box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 164, 65, 0.35);
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

.sommaire-panel__box strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--suture-gold-light);
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.sommaire-panel__box a {
  color: #8FF7D4;
  font-weight: 700;
}

/* Companion Cross-Navigation Links inside Sidebar */
.companion-pages-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.companion-pages-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 249, 245, 0.05);
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.76rem;
}

.companion-pages-list a[aria-current="page"] {
  background: var(--solar-molten);
  color: var(--bg-zenith-white);
  font-weight: 700;
}

/* Right Main Reading Column (Zenith White Parchment) */
.editorial-sheet {
  background: var(--bg-zenith-white);
  border: 1.5px solid var(--suture-gold);
  border-radius: var(--radius-lg);
  padding: 42px 46px;
  box-shadow: var(--shadow-carapace);
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.editorial-chapter {
  scroll-margin-top: calc(var(--guardrail-height) + var(--header-height) + 24px);
  padding-bottom: 36px;
  border-bottom: 1px dashed rgba(217, 164, 65, 0.65);
}

.editorial-chapter:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.editorial-chapter__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--moult-purple);
  background: rgba(94, 27, 107, 0.08);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.editorial-chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--elytra-deep);
  margin: 0 0 16px;
}

.editorial-chapter h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--elytra-deep);
  margin: 24px 0 10px;
}

.editorial-chapter p {
  margin: 0 0 16px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.editorial-chapter p:last-child {
  margin-bottom: 0;
}

.editorial-chapter ul,
.editorial-chapter ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editorial-chapter li::marker {
  color: var(--scarab-viridian);
  font-weight: 700;
}

.editorial-chapter code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  background: rgba(14, 107, 80, 0.11);
  color: var(--elytra-deep);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

/* 3. Specialized Cloisonné Callouts & Regulatory Data Cards */
.cloisonne-callout {
  background: var(--bg-parchment-warm);
  border: 1.5px solid var(--suture-gold);
  border-left: 5px solid var(--scarab-viridian);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 20px 0;
}

.cloisonne-callout--urgent {
  background: linear-gradient(135deg, #06231B 0%, #0A382B 100%);
  color: var(--bg-zenith-white);
  border-color: var(--suture-gold);
  border-left: 5px solid var(--solar-molten);
}

.cloisonne-callout--urgent h3,
.cloisonne-callout--urgent strong {
  color: var(--suture-gold-light);
}

.cloisonne-callout--urgent p {
  color: var(--text-on-dark-muted);
}

.cloisonne-callout--urgent a {
  color: #8FF7D4;
  font-weight: 700;
}

.cloisonne-callout__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--elytra-deep);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Publisher & Host Legal Identity Grid */
.legal-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.legal-id-card {
  background: var(--bg-parchment-warm);
  border: 1.5px solid var(--suture-gold);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.legal-id-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--elytra-deep);
  color: var(--suture-gold-light);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.legal-id-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: var(--elytra-deep);
}

.legal-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.legal-dl__row {
  display: flex;
  flex-direction: column;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(217, 164, 65, 0.45);
}

.legal-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-dl dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.legal-dl dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--elytra-deep);
  word-break: break-word;
}

/* Interactive Self-Reflection Checklist (Jeu Responsable) */
.self-test-module {
  background: linear-gradient(165deg, #06231B 0%, #041712 100%);
  color: var(--text-on-dark);
  border: 2px solid var(--suture-gold);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  margin: 22px 0;
  box-shadow: var(--shadow-enamel);
}

.self-test-module__head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--bg-zenith-white);
  margin: 0 0 8px;
}

.self-test-module__head p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.self-test-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.self-test-item {
  background: rgba(255, 249, 245, 0.06);
  border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.self-test-item:hover {
  background: rgba(14, 107, 80, 0.28);
  border-color: var(--suture-gold-light);
}

.self-test-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--solar-molten);
  flex-shrink: 0;
  cursor: pointer;
}

.self-test-item span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--bg-zenith-white);
}

.self-test-result {
  background: rgba(14, 107, 80, 0.32);
  border: 1.5px solid var(--suture-gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.self-test-result__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--suture-gold-light);
  margin-bottom: 3px;
}

.self-test-result__text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

/* Regulatory & Technical Tables */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1.5px solid var(--suture-gold);
  border-radius: var(--radius-md);
}

.cloisonne-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-zenith-white);
}

.cloisonne-table th {
  background: var(--elytra-deep);
  color: var(--suture-gold-light);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--suture-gold);
}

.cloisonne-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(217, 164, 65, 0.35);
  color: var(--text-secondary);
  vertical-align: top;
}

.cloisonne-table tr:last-child td {
  border-bottom: none;
}

.cloisonne-table tr:nth-child(even) td {
  background: rgba(247, 214, 200, 0.22);
}

.cloisonne-table strong {
  color: var(--elytra-deep);
}

/* Feature Cards Grid inside Editorial Pages */
.editorial-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 18px 0;
}

.editorial-mini-card {
  background: var(--bg-parchment-warm);
  border: 1px solid var(--suture-gold);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.editorial-mini-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--scarab-viridian);
  margin-bottom: 6px;
}

.editorial-mini-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--elytra-deep);
}

.editorial-mini-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Visual Plate Inset inside Long-Form Reading */
.editorial-plate-inset {
  margin: 22px 0;
  border: 1.5px solid var(--suture-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--elytra-night);
}

.editorial-plate-inset img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.editorial-plate-inset figcaption {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--suture-gold-light);
  background: var(--elytra-deep);
  border-top: 1px solid var(--suture-gold);
}

/* Responsive Adjustments for Companion Pages */
@media (max-width: 1024px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sommaire-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .page-hero-quiet {
    min-height: 290px;
  }

  .page-hero-quiet__inner {
    padding-top: 32px;
    padding-bottom: 26px;
  }

  .editorial-sanctuary {
    padding: 28px 0 56px;
  }

  .editorial-sheet {
    padding: 24px 18px;
    gap: 32px;
  }

  .legal-identity-grid,
  .editorial-cards-grid {
    grid-template-columns: 1fr;
  }

  .self-test-module {
    padding: 20px 16px;
  }
}
