/* ═══════════════════════════════════════════════════════════════
   Moirans Pratique — Page « À propos de Moirans » (31/10/2026)
   Rubriques repliables (js/apropos.js). L'hymne : css/hymne.css.
   ═══════════════════════════════════════════════════════════════ */
.apropos { display: flex; flex-direction: column; gap: 12px; }
.ap-vide-page { padding: 30px 14px; text-align: center; color: var(--text2); }

/* ── En-tête : intro + chiffres clés ──────────────────────────── */
.ap-entete-ville { padding: 4px 2px 2px; }
.ap-intro { margin: 0 0 12px; color: var(--text2); font-size: 14.5px; line-height: 1.5; }
.ap-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ap-chiffre { padding: 10px 10px 9px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); min-width: 0; }
.ap-chiffre strong { display: block; font-family: var(--font-d); font-size: 16px; color: var(--text); line-height: 1.2;
  overflow-wrap: anywhere; }
.ap-chiffre span { display: block; font-size: 11.5px; color: var(--text2); margin-top: 3px; line-height: 1.3; }
.ap-entete-ville .ap-source { margin-top: 8px; }

/* ── Rubriques repliables ─────────────────────────────────────── */
.ap-rub { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg, 16px); overflow: hidden; }
.ap-rub summary { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; list-style: none; }
.ap-rub summary::-webkit-details-marker { display: none; }
.ap-rub summary::after { content: '›'; margin-left: auto; font-size: 22px; line-height: 1; color: var(--text2); transition: transform .2s; }
.ap-rub[open] summary::after { transform: rotate(90deg); }
.ap-rub-ico { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(96,165,250,.14); color: var(--blue, #60a5fa); }
.ap-rub-ico .ico { width: 20px; height: 20px; }
.ap-rub--frise .ap-rub-ico     { background: rgba(251,191,36,.14);  color: var(--yellow, #fbbf24); }
.ap-rub--anecdotes .ap-rub-ico { background: rgba(251,191,36,.14);  color: var(--yellow, #fbbf24); }
.ap-rub--liste .ap-rub-ico     { background: rgba(45,212,191,.14);  color: var(--teal, #2dd4bf); }
.ap-rub-titres { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-rub-titre { font-family: var(--font-d); font-weight: 700; font-size: 15.5px; color: var(--text); }
.ap-rub-intro { font-size: 12.5px; color: var(--text2); line-height: 1.35; }
.ap-rub-corps { padding: 0 14px 14px; animation: ap-ouvre .22s ease; }
@keyframes ap-ouvre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ap-texte { color: var(--text); font-size: 14.5px; line-height: 1.6; }
.ap-texte p { margin: 0 0 10px; }
.ap-source { font-size: 11px; color: var(--text3, var(--text2)); margin-top: 10px; opacity: .85; }

/* Frise chronologique */
.ap-frise { list-style: none; margin: 4px 0 0; padding: 0 0 0 4px; }
.ap-frise-el { position: relative; padding: 0 0 14px 22px; border-left: 2px solid rgba(251,191,36,.35); margin-left: 6px; }
.ap-frise-el:last-child { border-left-color: transparent; padding-bottom: 2px; }
.ap-frise-el::before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--yellow, #fbbf24); }
.ap-frise-date { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--yellow, #fbbf24);
  text-transform: uppercase; letter-spacing: .03em; }
.ap-frise-corps strong { display: block; font-size: 14.5px; color: var(--text); margin-top: 1px; }
.ap-frise-corps p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text2); }

/* Listes (lieux, personnes, maires) */
.ap-liste { list-style: none; margin: 2px 0 0; padding: 0; }
.ap-liste-el { padding: 10px 0; border-top: 1px solid var(--border); }
.ap-liste-el:first-child { border-top: 0; padding-top: 2px; }
.ap-liste-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ap-liste-tete strong { font-size: 14.5px; color: var(--text); }
.ap-liste-tete span { font-size: 12px; color: var(--teal, #2dd4bf); }
.ap-liste-qualite { font-size: 12.5px; color: var(--text); opacity: .8; margin-top: 2px; font-style: italic; }
.ap-liste-el p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text2); }

/* Anecdotes */
.ap-anecdote { padding: 12px 14px; border-radius: 14px; background: rgba(251,191,36,.08); border-left: 3px solid var(--yellow, #fbbf24); }
.ap-anecdote strong { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 4px; }
.ap-anecdote p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.ap-anecdote .ap-source { margin-top: 6px; }

.ap-plus { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.ap-plus .ico { width: 16px; height: 16px; }
.ap-plus small { color: var(--text2); }

/* Ordinateur : chiffres sur une ligne */
@media (min-width: 900px) {
  .ap-chiffres { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Interface « liquid glass » (téléphone) */
@media (max-width: 899px) {
  html.ui-v2:not(.ui-v2-exp) .ap-rub,
  html.ui-v2:not(.ui-v2-exp) .ap-chiffre {
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    box-shadow: var(--v2-reflet, none), 0 10px 26px rgba(0,0,0,.18);
  }
  html.ui-v2:not(.ui-v2-exp) .ap-rub { border-radius: 24px 20px 26px 22px; }
  html.ui-v2:not(.ui-v2-exp) .ap-chiffre { border-radius: 18px; }
  html.ui-v2.v2-eco:not(.ui-v2-exp) .ap-rub,
  html.ui-v2.v2-eco:not(.ui-v2-exp) .ap-chiffre { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
