/* ============================================================================
   GRAND ESCARGOT (grandescargot.com) — FEUILLE DE STYLE DES REGISTRES INTÉRIEURS
   Pages : jeu-responsable.html, mentions-legales.html,
           confidentialite.html, a-propos.html
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. FRONTON D'OUVERTURE DES PAGES INTÉRIEURES (LE PALIER D'ÉTAGE)
   ---------------------------------------------------------------------------- */
.page-palier-hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(21, 31, 40, 0.94) 0%, rgba(37, 51, 64, 0.96) 100%),
    url("../img/sillage-argent-crepuscule-clair.jpg") center/cover no-repeat;
  color: var(--pierre-lutecienne);
  border-bottom: 3px solid var(--fer-forge);
  padding: 28px 0 36px 0;
  overflow: hidden;
}

.page-palier-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--laiton) 0%, #F2F7FA 50%, var(--laiton) 100%);
}

.palier-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #B9CBD9;
  margin-bottom: 16px;
}

.palier-breadcrumb a {
  color: #FFD166;
  text-decoration: none;
  font-weight: 700;
}

.palier-breadcrumb a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.palier-breadcrumb-sep {
  color: var(--laiton);
}

.palier-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
}

@media (min-width: 960px) {
  .palier-header-grid {
    grid-template-columns: 8fr 4fr;
    gap: 36px;
  }
}

.palier-plaque-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.palier-floor-badge {
  background: var(--laiton);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 4px;
  border: 1.5px solid var(--fer-forge);
  text-transform: uppercase;
}

.palier-cadastral-ref {
  background: rgba(247, 243, 232, 0.12);
  color: #E2ECF3;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(247, 243, 232, 0.28);
}

.palier-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 14px 0;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.palier-title em {
  color: #FFD166;
  font-style: italic;
}

.palier-lead {
  margin: 0;
  font-size: clamp(0.96rem, 1.25vw, 1.1rem);
  line-height: 1.58;
  color: #DCE6EE;
  max-width: 780px;
}

/* Stamp / Notarial Card in Hero Right Column */
.palier-notary-stamp {
  background: rgba(18, 26, 33, 0.75);
  border: 2px solid var(--laiton);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-stone);
  backdrop-filter: blur(6px);
}

.stamp-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFD166;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stamp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--pierre-lutecienne);
}

.stamp-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px dashed rgba(247, 243, 232, 0.18);
}

.stamp-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stamp-list strong {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #A3F5B5;
}

/* ----------------------------------------------------------------------------
   2. BARRE DE NAVIGATION INTER-REGISTRES (LES 4 PORTES DE LA LOGE)
   ---------------------------------------------------------------------------- */
.registre-doors-strip {
  background: var(--corniche-soleil);
  border-bottom: 2px solid var(--fer-forge);
  padding: 12px 0;
}

.registre-doors-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.doors-label {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--zinc-paris);
  margin-right: 6px;
  text-transform: uppercase;
}

.door-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: var(--pierre-claire);
  color: var(--fer-forge);
  border: 1.5px solid var(--fer-forge);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.door-pill:hover {
  background: #FFFFFF;
  color: var(--coquelicot);
}

.door-pill.is-current-page {
  background: var(--zinc-paris);
  color: var(--pierre-lutecienne);
  box-shadow: 0 2px 0 var(--fer-forge);
}

.door-pill.is-current-page .door-num {
  background: var(--laiton);
  color: #FFFFFF;
}

.door-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--corniche-soleil);
  color: var(--fer-forge);
}

/* ----------------------------------------------------------------------------
   3. ARCHITECTURE DE LECTURE À DEUX COLONNES (SOMMAIRE LATÉRAL + FEUILLE)
   ---------------------------------------------------------------------------- */
.page-registry-section {
  padding: 36px 0 60px 0;
}

.page-registry-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .page-registry-layout {
    grid-template-columns: 310px 1fr;
    gap: 40px;
  }
}

/* Colonne Latérale : L'Ascenseur de Lecture */
.registry-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .registry-sidebar {
    position: sticky;
    top: 112px;
  }
}

.sidebar-cage-card {
  background: var(--pierre-claire);
  border: 2.5px solid var(--fer-forge);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 0 var(--fer-forge), var(--shadow-stone);
}

.cage-card-roof {
  background: var(--zinc-paris);
  color: var(--pierre-lutecienne);
  padding: 10px 14px;
  border-bottom: 2px solid var(--fer-forge);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cage-card-roof span:last-child {
  color: #FFD166;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--fer-forge);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.toc-list a:hover {
  background: var(--corniche-soleil);
  border-color: var(--corniche-ombre);
  color: var(--coquelicot);
}

.toc-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--laiton);
  flex-shrink: 0;
}

/* Encart Latéral d'Urgence Joueurs Info Service */
.sidebar-emergency-plaque {
  background: var(--zinc-ardoise);
  color: var(--pierre-lutecienne);
  border: 2.5px solid var(--fer-forge);
  border-top: 5px solid var(--coquelicot);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-stone);
}

.emergency-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #FF857F;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sidebar-emergency-plaque h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #FFFFFF;
  margin: 0 0 8px 0;
}

.sidebar-emergency-plaque p {
  margin: 0 0 12px 0;
  font-size: 0.81rem;
  line-height: 1.48;
  color: #D6E1E8;
}

.btn-sidebar-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: var(--coquelicot);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1.5px solid #FFFFFF;
  margin-bottom: 8px;
}

.btn-sidebar-phone:hover {
  background: var(--coquelicot-hover);
  color: #FFFFFF;
}

.btn-sidebar-web {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFD166;
}

/* ----------------------------------------------------------------------------
   4. COLONNE PRINCIPALE : LA FEUILLE DE PIERRE ET LES ARTICLES CADASTRÉS
   ---------------------------------------------------------------------------- */
.registry-main-sheet {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stone-article-card {
  background: var(--pierre-claire);
  border: 2.5px solid var(--fer-forge);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 7px 0 var(--fer-forge), var(--shadow-stone);
}

.article-mansard-bar {
  background: linear-gradient(180deg, var(--corniche-soleil) 0%, #DFD4BA 100%);
  border-bottom: 2px solid var(--fer-forge);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.article-num-plaque {
  background: var(--zinc-paris);
  color: #FFD166;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--fer-forge);
  letter-spacing: 0.04em;
}

.article-tag-right {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--zinc-paris);
}

.article-stone-body {
  padding: 22px 20px;
}

@media (min-width: 768px) {
  .article-stone-body {
    padding: 28px 32px;
  }
}

.article-stone-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.2vw, 1.82rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--fer-forge);
  margin: 0 0 14px 0;
}

.article-stone-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--fer-forge);
  margin: 22px 0 10px 0;
}

.article-stone-body h3:first-child {
  margin-top: 0;
}

.article-stone-body p {
  margin: 0 0 14px 0;
  color: var(--zinc-paris);
  font-size: 0.96rem;
  line-height: 1.65;
}

.article-stone-body p:last-child {
  margin-bottom: 0;
}

.article-stone-body ul,
.article-stone-body ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
  color: var(--zinc-paris);
}

.article-stone-body li {
  margin-bottom: 8px;
  font-size: 0.94rem;
  line-height: 1.58;
}

.article-stone-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--corniche-soleil);
  color: var(--fer-forge);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--corniche-ombre);
}

/* ----------------------------------------------------------------------------
   5. COMPOSANTS SPÉCIAUX DES REGISTRES (FICHES NOTARIALES, GRILLES, DIAGNOSTIC)
   ---------------------------------------------------------------------------- */

/* A. Fiche Cadastrale à Jetons (Publisher / Host Legal Tokens) */
.notarial-ledger-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}

@media (min-width: 640px) {
  .notarial-ledger-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ledger-cell {
  background: var(--pierre-lutecienne);
  border: 1.5px solid var(--fer-forge);
  border-left: 5px solid var(--laiton);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.ledger-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zinc-clair);
  margin-bottom: 4px;
}

.ledger-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fer-forge);
  word-break: break-word;
}

/* B. Encadrés d'Alerte & de Sagesse */
.callout-plaque {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 18px 0;
  border: 2px solid var(--fer-forge);
}

.callout-plaque h3,
.callout-plaque h4 {
  margin: 0 0 6px 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
}

.callout-plaque p {
  margin: 0;
  font-size: 0.9rem;
}

.callout-brass {
  background: var(--laiton-clair);
  border-color: var(--laiton);
}

.callout-lettuce {
  background: var(--laitue-fond);
  border-color: var(--laitue-vive);
}

.callout-poppy {
  background: var(--coquelicot-fond);
  border-color: var(--coquelicot);
}

/* C. Grille de Cartes (Outils ANJ, Piliers de Modération, Engagements) */
.cards-2col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0;
}

@media (min-width: 680px) {
  .cards-2col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-stone-box {
  background: var(--pierre-lutecienne);
  border: 1.5px solid var(--fer-forge);
  border-top: 4px solid var(--zinc-paris);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.feature-stone-box.accent-green {
  border-top-color: var(--laitue-vive);
}

.feature-stone-box.accent-red {
  border-top-color: var(--coquelicot);
}

.feature-stone-box.accent-brass {
  border-top-color: var(--laiton);
}

.feature-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 4px;
}

.feature-stone-box h3,
.feature-stone-box h4 {
  margin: 0 0 8px 0 !important;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--fer-forge);
}

.feature-stone-box p {
  margin: 0 !important;
  font-size: 0.87rem !important;
  line-height: 1.52 !important;
}

/* D. Baromètre d'Auto-Observation (Checklist Interactive sur Jeu Responsable) */
.self-check-apparatus {
  background: var(--zinc-paris);
  color: var(--pierre-lutecienne);
  border: 2.5px solid var(--fer-forge);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 18px 0;
}

.self-check-header {
  border-bottom: 1px solid rgba(247, 243, 232, 0.2);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.self-check-header h3 {
  color: #FFD166 !important;
  margin: 0 0 6px 0 !important;
}

.self-check-header p {
  color: #D6E1E8 !important;
  font-size: 0.86rem !important;
  margin: 0 !important;
}

.self-check-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  display: grid;
  gap: 8px;
}

.self-check-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(247, 243, 232, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.self-check-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.self-check-item span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--pierre-lutecienne);
}

.self-check-result {
  background: rgba(18, 26, 33, 0.72);
  border: 1.5px solid var(--laiton);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.86rem;
  color: #FFFFFF;
}

.self-check-result strong {
  color: #FFD166;
}

/* E. Tableaux Cadastraux (RGPD, Barème de Notation, Répertoire ANJ) */
.registry-table-wrap {
  overflow-x: auto;
  border: 2px solid var(--fer-forge);
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pierre-claire);
  font-size: 0.86rem;
}

.registry-table th,
.registry-table td {
  padding: 11px 13px;
  border: 1px solid var(--corniche-ombre);
  text-align: left;
  vertical-align: top;
}

.registry-table thead th {
  background: var(--zinc-paris);
  color: var(--pierre-lutecienne);
  font-family: var(--font-display);
  font-size: 0.95rem;
  border-bottom: 2px solid var(--fer-forge);
}

.registry-table tbody th {
  background: var(--corniche-soleil);
  color: var(--fer-forge);
  font-weight: 700;
}

/* F. Vignette Illustrative dans les Pages Intérieures */
.registry-photo-banner {
  margin: 0 0 20px 0;
  border: 2px solid var(--fer-forge);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--zinc-ardoise);
}

.registry-photo-banner img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.registry-photo-banner figcaption {
  padding: 10px 14px;
  background: var(--corniche-soleil);
  border-top: 1.5px solid var(--fer-forge);
  font-size: 0.8rem;
  color: var(--fer-forge);
}
