/* ============================================================
   POLITUBE — LA DROITE
   Le salon institutionnel : bleu nuit, or, serif.
   Filets dorés, chiffres romains, registre d'annuaire.
   ============================================================ */

body.page-droite {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201, 162, 39, .08), transparent 60%),
    linear-gradient(180deg, var(--d-nuit) 0%, #080f1d 100%);
  color: var(--d-creme);
  font-family: var(--font-garamond);
  overflow-x: hidden;
}

body.page-droite ::selection { background: var(--d-or); color: var(--d-nuit); }

/* ---------- Barre haute ---------- */

.d-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1.2rem, 4vw, 3.4rem);
  border-bottom: 1px solid rgba(201, 162, 39, .3);
  position: sticky;
  top: 0;
  background: rgba(11, 20, 37, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
}

.d-topbar .logo {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 600;
}

.d-topbar .logo span { color: var(--d-or); }

.d-topbar nav { display: flex; gap: 1.8rem; align-items: center; }

.d-nav-lien {
  font-family: var(--font-garamond);
  font-size: .82rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .86;
  padding-bottom: .28rem;
  border-bottom: 1px solid transparent;
  transition: opacity .2s, border-color .2s, color .2s;
}

.d-nav-lien:hover { opacity: 1; border-color: rgba(240, 233, 216, .5); }
.d-nav-lien.on { color: var(--d-or-clair); opacity: 1; border-color: var(--d-or); }

/* ---------- Hero salon ---------- */

.d-hero {
  text-align: center;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.d-hero .cadre {
  position: absolute;
  inset: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(201, 162, 39, .35);
  pointer-events: none;
}

.d-hero .cadre::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 162, 39, .18);
}

.d-hero .surtitre {
  font-size: .8rem;
  letter-spacing: .48em;
  text-transform: uppercase;
  color: var(--d-or);
  display: block;
  margin-bottom: 1.6rem;
}

.d-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 1.02;
  letter-spacing: .01em;
}

.d-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--d-or-clair);
}

.d-hero .ornement {
  color: var(--d-or);
  font-size: 1.1rem;
  letter-spacing: 1.2em;
  display: block;
  margin: 1.7rem 0 1.5rem;
  text-indent: 1.2em; /* compense le letter-spacing du dernier caractère */
}

.d-hero .chapo {
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.75;
  max-width: 58ch;
  margin: 0 auto;
  opacity: .92;
}

.d-hero .millesime {
  margin-top: 2.1rem;
  font-size: .78rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, .72);
}

.d-hero .millesime b { color: var(--d-or); font-weight: 500; }

/* ---------- Registre ---------- */

.d-registre {
  max-width: 1180px;
  margin: 0 auto clamp(4rem, 8vw, 6.5rem);
  padding: 0 clamp(1.2rem, 4vw, 3.4rem);
}

/* Chapitres du registre */

.d-chapitre { margin-top: clamp(3rem, 6.5vw, 5rem); }
.d-chapitre:first-of-type { margin-top: clamp(1.2rem, 3vw, 2rem); }

.d-section-tete {
  text-align: center;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.d-section-tete .chapitre {
  display: block;
  font-size: .74rem;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--d-or);
  margin-bottom: .7rem;
}

.d-section-tete h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.1;
}

.d-filet {
  width: 76px;
  height: 1px;
  background: var(--d-or);
  margin: 1.2rem auto;
  position: relative;
}

.d-filet::after {
  content: "✦";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  background: var(--d-nuit);
  color: var(--d-or);
  padding: 0 .6rem;
  font-size: .72rem;
}

.d-section-tete p {
  font-style: italic;
  font-size: .98rem;
  line-height: 1.7;
  opacity: .84;
  max-width: 58ch;
  margin: 0 auto;
}

.d-groupe { border-top: 1px solid rgba(201, 162, 39, .5); }

.d-ligne {
  display: grid;
  grid-template-columns: 86px minmax(220px, 1.1fr) 1.4fr auto;
  gap: clamp(1.2rem, 2.6vw, 2.4rem);
  align-items: center;
  padding: clamp(1.5rem, 2.6vw, 2.1rem) .4rem;
  border-bottom: 1px solid rgba(201, 162, 39, .18);
  cursor: pointer;
  position: relative;
  transition: background .25s, padding-left .25s;
}

.d-ligne::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--d-or);
  transform: scaleY(0);
  transition: transform .25s;
}

.d-ligne:hover { background: rgba(201, 162, 39, .05); padding-left: 1.1rem; }
.d-ligne:hover::before { transform: scaleY(1); }

.d-ligne .numeral {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: rgba(240, 233, 216, .58);
  transition: color .25s;
}

.d-ligne:hover .numeral { color: var(--d-or); }

.d-ligne .identite h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  margin-bottom: .3rem;
}

.d-ligne .identite .tagline {
  font-style: italic;
  font-size: .95rem;
  color: var(--d-or-clair);
  opacity: .9;
}

.d-ligne .apercu {
  font-size: .95rem;
  line-height: 1.6;
  opacity: .84;
}

.d-ligne .apercu .d-tags { margin-top: .55rem; display: flex; gap: .9rem; flex-wrap: wrap; }

.d-tag {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, .72);
}

.d-tag::before { content: "· "; color: var(--d-or); }

.d-ligne .actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  align-items: flex-end;
}

.d-btn {
  font-family: var(--font-garamond);
  font-size: .8rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--d-or-clair);
  border: 1px solid rgba(201, 162, 39, .55);
  padding: .72rem 1.5rem .62rem;
  white-space: nowrap;
  transition: background .22s, color .22s, border-color .22s;
}

.d-btn:hover { background: var(--d-or); border-color: var(--d-or); color: var(--d-nuit); }

.d-lien-fiche {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240, 233, 216, .78);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(240, 233, 216, .3);
  padding-bottom: .2rem;
  transition: color .2s, border-color .2s;
}

.d-lien-fiche:hover { color: var(--d-creme); border-color: var(--d-or); }

/* ---------- Pied ---------- */

.d-footer {
  border-top: 1px solid rgba(201, 162, 39, .3);
  padding: 2rem clamp(1.2rem, 4vw, 3.4rem) 2.6rem;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.d-footer .lien-retour {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--d-or-clair);
  margin-bottom: 1.1rem;
}

.d-footer .lien-retour:hover { color: var(--d-or); }

.d-footer p { font-size: .76rem; line-height: 1.75; opacity: .62; max-width: 84ch; margin: 0 auto; }

/* ---------- Modale « plaque » ---------- */

.modal.modal-d {
  background: linear-gradient(165deg, var(--d-nuit-2), var(--d-nuit));
  border: 1px solid rgba(201, 162, 39, .55);
  outline: 1px solid rgba(201, 162, 39, .2);
  outline-offset: 6px;
  padding: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--d-creme);
  font-family: var(--font-garamond);
  text-align: center;
}

.modal-d .close { color: rgba(240, 233, 216, .6); }
.modal-d .close:hover { color: var(--d-creme); }

.modal-d .numeral {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--d-or);
  letter-spacing: .2em;
}

.modal-d h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.1;
  margin: .7rem 0 .4rem;
}

.modal-d .tagline { font-style: italic; font-size: 1.05rem; color: var(--d-or-clair); }

.modal-d .filet {
  width: 70px;
  height: 1px;
  background: var(--d-or);
  margin: 1.5rem auto;
  position: relative;
}

.modal-d .filet::after {
  content: "✦";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  background: var(--d-nuit-2);
  color: var(--d-or);
  padding: 0 .6rem;
  font-size: .75rem;
}

.modal-d h4 {
  font-size: .74rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--d-or);
  margin: 1.6rem 0 .6rem;
}

.modal-d p { line-height: 1.75; font-size: 1rem; opacity: .85; max-width: 52ch; margin: 0 auto; }

.modal-d .d-tags { justify-content: center; display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }

.modal-d .d-btn { display: inline-block; margin-top: 2rem; padding: .9rem 2.4rem .8rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .d-ligne { grid-template-columns: 56px 1fr; }
  .d-ligne .apercu { grid-column: 2; }
  .d-ligne .actions { grid-column: 2; flex-direction: row; align-items: center; }
}

@media (max-width: 560px) {
  .d-topbar { position: relative; flex-wrap: wrap; gap: .85rem; padding: .95rem 1rem; }
  .d-topbar nav { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .8rem; }
  .d-nav-lien { min-width: 0; font-size: .7rem; letter-spacing: .16em; text-align: center; }
  .d-ligne { grid-template-columns: 1fr; gap: .9rem; }
  .d-ligne .apercu, .d-ligne .actions { grid-column: 1; }
  .d-hero .cadre { display: none; }
}
