/* Modèle d'article du blog Chalonscope. S'ajoute à ../styles.css (tokens, typographie, boutons, panneaux). */

.fil { font-size: .9em; color: var(--muted); margin: 1.5rem 0 1rem; }
.fil a { color: var(--muted); }
.rubrique {
  display: inline-block; background: var(--barre); color: var(--on-barre); font-family: var(--menu); font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em; font-size: .85em; padding: .2rem .7rem; border-radius: 3px; margin-bottom: 1rem; text-decoration: none;
}

.article-tete { padding: 0 0 1.5rem; }
.article-tete h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 18ch; }
.article-tete .chapo { font-weight: 600; font-size: 1.2em; line-height: 1.45; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .92em; margin: 0; padding: 0; list-style: none; }
.meta li + li::before { content: "·"; margin-right: 1rem; color: var(--line); }

.article-corps { padding-bottom: 2rem; }
.article-corps > p, .article-corps > ol, .article-corps > ul { max-width: 65ch; }
.article-corps h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2.25rem; }
.temoignage { border-left: 4px dashed var(--verif); padding: .25rem 0 .25rem 1.25rem; margin: 1.5rem 0; max-width: 65ch; }
.temoignage .etiquette { display: block; font-weight: 600; color: var(--verif); font-size: .9em; margin-bottom: .2rem; }
.temoignage p { margin: 0; }

/* Galerie de photos verticales : 2 colonnes en mobile, 4 dès 900 px. */
.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 2rem 0; padding: 0; list-style: none; }
.galerie figure { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--soft); }
.galerie figcaption { font-size: .88em; color: var(--muted); margin-top: .4rem; line-height: 1.35; }
.galerie-legende { font-size: .9em; color: var(--muted); margin-top: -1rem; max-width: 65ch; }
@media (min-width: 900px) { .galerie { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Questions posées publiquement : numéros ambre, comme les étapes de l'accueil. */
.questions-publiques { background: var(--surface); border-radius: 16px; padding: 1.5rem; margin: 2rem 0; max-width: calc(65ch + 3rem); }
.questions-publiques h2 { margin-top: 0; }
.questions-publiques ol { list-style: none; counter-reset: q; padding: 0; margin: 0; display: grid; gap: 1rem; }
.questions-publiques li { counter-increment: q; position: relative; padding-left: 3rem; font-weight: 600; }
.questions-publiques li::before {
  content: counter(q); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--amber); color: var(--on-amber); font: 700 1rem var(--titres);
}

.appel { background: var(--green); color: var(--bg); border-radius: 16px; padding: 1.5rem; margin: 2rem 0; max-width: calc(65ch + 3rem); }
.appel h2 { margin-top: 0; color: inherit; }
.appel .bouton { background: var(--bg); color: var(--ink); }
.appel .bouton:hover { filter: brightness(.92); }

.reponse { font-style: italic; color: var(--muted); max-width: 65ch; }

.sources { padding: 2rem 0 3rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.3rem; }
.sources ol { padding-left: 1.2rem; max-width: 70ch; font-size: .95em; }
.sources li { margin-bottom: .6rem; }
.sources .url { word-break: break-all; font-size: .9em; }
.transparence { font-size: .9em; color: var(--muted); max-width: 70ch; }

/* Mise en page « article de presse », sur le modèle d'une page de quotidien régional
   (L'Union, 10/01/2023, p. 8) : surtitre de rubrique, titre fin et étroit, chapô ouvert par le
   lieu, signature, texte en romain avec lettrine, citations en italique, exergue, encadrés gris,
   carré de fin. Le rouge de Chalonscope remplace le bleu du journal. */
.article-tete { border-top: 4px solid var(--barre); padding-top: 1rem; }
.article-tete .rubrique { background: none; color: var(--primary); padding: 0; border-radius: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; margin-bottom: .4rem; }
.article-tete h1 { font-family: var(--menu); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; max-width: 22ch; margin-bottom: .9rem; }
.article-tete .chapo { font-weight: 400; font-size: 1.22em; line-height: 1.4; max-width: 62ch; }
.chapo .lieu { font-family: var(--menu); font-weight: 600; text-transform: uppercase; color: var(--primary); margin-right: .3em; }
.meta { font-family: var(--menu); text-transform: uppercase; letter-spacing: .03em; font-size: .82em; border-top: 1px dotted var(--line); padding-top: .6rem; }
.meta .signature { color: var(--ink); font-weight: 600; }

:root { --presse: "Source Serif 4", Georgia, "Times New Roman", serif; }
.article-corps p { font-family: var(--presse); font-size: 1.02em; line-height: 1.6; hyphens: auto; }
.colonnes > p:first-of-type::first-letter { float: left; font-family: var(--presse); font-weight: 600; font-size: 3.6em; line-height: .85; margin: .06em .1em 0 0; color: var(--ink); }
.article-corps em { font-style: italic; }
.fin { display: inline-block; width: .6em; height: .6em; background: var(--barre); margin-left: .35em; vertical-align: baseline; }

.galerie img { border-radius: 2px; }
.galerie figcaption, .article-corps p.galerie-legende { font-family: var(--menu); font-weight: 500; color: var(--ink); font-size: .85em; letter-spacing: .01em; }

.article-corps p.exergue { font-family: var(--presse); font-style: italic; font-size: 1.45em; line-height: 1.3; color: var(--primary); max-width: 30ch; border-top: 2px dotted var(--line); padding-top: .8rem; margin: 2rem 0; }

/* Encadrés : fond gris, titre en capitales étroites, comme « Ce que dit la loi ». */
.article-corps .panneau { background: var(--soft); border-radius: 0; border-left: 0; border-top: 3px solid var(--green); }
.article-corps .panneau.verif { border-left: 0; border-top: 3px dashed var(--verif); }
.article-corps .panneau h3, .questions-publiques h2, .appel h2, .sources h2 { font-family: var(--menu); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.questions-publiques { border-radius: 0; border-top: 3px solid var(--barre); }
.questions-publiques li::before { background: var(--barre); color: var(--on-barre); font-family: var(--menu); border-radius: 2px; }
.appel { border-radius: 0; }

/* Grand écran : le récit sur plusieurs colonnes, comme une page de journal. Les encadrés,
   l'exergue et le témoignage ne sont jamais coupés d'une colonne à l'autre. */
.colonnes > * { max-width: 65ch; }
@media (min-width: 960px) {
  .colonnes { column-count: 2; column-gap: 2.5rem; column-rule: 1px dotted var(--line); margin: 1.5rem 0 2rem; }
  .colonnes > * { max-width: none; break-inside: avoid; }
  .colonnes > p { margin-top: 0; }
  .colonnes .exergue { margin: .5rem 0 1.2rem; max-width: none; }
  .colonnes .temoignage { margin-top: 0; }
}
@media (min-width: 1240px) { .colonnes { column-count: 3; } }

/* Photos : un clic les agrandit. */
.galerie img { cursor: zoom-in; transition: filter .15s; }
.galerie img:hover { filter: brightness(1.06); }
.visionneuse { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden; }
.visionneuse::backdrop { background: rgb(10 14 14 / .92); }
.visionneuse figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 3.2rem 3.5rem 2.5rem; }
.visionneuse img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.visionneuse figcaption { color: #F4EFE4; font-family: var(--menu); font-size: 1rem; text-align: center; max-width: 60ch; }
.visionneuse button { position: absolute; background: rgb(255 255 255 / .12); color: #fff; border: 0; min-width: 48px; min-height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.visionneuse button:hover { background: rgb(255 255 255 / .25); }
.visionneuse button:focus-visible { outline: 3px solid #9CC2FF; }
.v-prec { left: .6rem; top: 50%; transform: translateY(-50%); }
.v-suiv { right: .6rem; top: 50%; transform: translateY(-50%); }
.v-fermer { right: .6rem; top: .6rem; }
.v-compte { position: absolute; left: 1rem; top: 1rem; margin: 0; color: #B7C2BE; font-size: .9rem; }

/* Carte du lieu (Plan IGN). */
.carte-article { margin: 2rem 0; }
.carte { height: clamp(260px, 45vh, 420px); border-top: 3px solid var(--barre); background: var(--soft); }
.carte-article figcaption { font-family: var(--menu); font-size: .85em; margin-top: .5rem; color: var(--muted); max-width: 80ch; }
.carte-article figcaption strong { color: var(--ink); text-transform: uppercase; }
.carte-etiquette { font-family: var(--menu); font-weight: 600; text-transform: uppercase; }

/* Vue 3D (témoignage vidéo reconstruit par Spirula). */
.repere-3d { display: grid; place-items: center; }
.repere-3d span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--barre); color: #fff; font: 600 15px var(--menu); border: 3px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .35); cursor: pointer; }
.vue3d { padding: 0; border: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: #141a1a; overflow: hidden; }
.vue3d canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.v3-barre { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .8rem; background: linear-gradient(rgb(10 14 14 / .85), transparent); color: #F4EFE4; font-family: var(--menu); }
.v3-barre strong { margin-right: auto; text-transform: uppercase; letter-spacing: .03em; }
.v3-barre button { font-family: var(--menu); background: rgb(255 255 255 / .14); color: #fff; border: 0; border-radius: 3px; min-height: 44px; padding: .4rem .8rem; cursor: pointer; }
.v3-barre button[aria-pressed="true"] { background: var(--barre); }
.v3-fermer { font-size: 1.6rem; min-width: 44px; }
.v3-etat { position: absolute; inset: 45% 0 auto; text-align: center; color: #F4EFE4; font-family: var(--menu); margin: 0; }
.v3-etat:empty { display: none; }
.v3-aide { position: absolute; left: 50%; bottom: 2.6rem; transform: translateX(-50%); margin: 0; padding: .3rem .8rem; border-radius: 3px; background: rgb(10 14 14 / .6); color: #F4EFE4; font-family: var(--menu); font-size: .9rem; max-width: 90vw; text-align: center; pointer-events: none; }
.v3-barre button[hidden] { display: none; }
.v3-mention { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .6rem .8rem; color: #B7C2BE; font-size: .85rem; background: linear-gradient(transparent, rgb(10 14 14 / .85)); }
.v3-modes { display: inline-flex; gap: 2px; background: rgb(255 255 255 / .08); border-radius: 4px; padding: 2px; }
.v3-modes button[hidden] { display: none; }
.v3-croix { position: absolute; left: 1rem; bottom: 3.2rem; display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 56px); }
.v3-croix[hidden] { display: none; }
.v3-croix button { background: rgb(255 255 255 / .16); color: #fff; border: 0; border-radius: 8px; font-size: 1.3rem; touch-action: none; user-select: none; cursor: pointer; }
.v3-croix button:active { background: var(--barre); }
.v3-croix [data-dir="avant"] { grid-area: 1 / 2; } .v3-croix [data-dir="gauche"] { grid-area: 2 / 1; }
.v3-croix [data-dir="droite"] { grid-area: 2 / 3; } .v3-croix [data-dir="arriere"] { grid-area: 3 / 2; }
@media (max-width: 640px) { .v3-barre strong { flex-basis: 100%; font-size: .9rem; } .v3-barre button { font-size: .85rem; padding: .3rem .55rem; } }

.contributions-article, .commentaires-article { max-width: 70ch; margin: 0 0 2rem; }
.contributions-article { padding: 1rem 1.25rem; background: var(--soft); border-top: 3px solid var(--green); }
.commentaires-article { padding-top: 1.25rem; border-top: 3px solid var(--barre); }
.contributions-article h2, .commentaires-article h2 {
  margin: 0 0 .75rem;
  font: 600 1.3rem var(--menu);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.contributions-article ul, #commentaires-liste { list-style: none; padding: 0; margin: 0; }
.contributions-article li + li { margin-top: .75rem; }
.contributions-article p { margin: .2rem 0 0; }
.commentaire-public { padding: 1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.commentaire-reponse { margin-left: clamp(.5rem, 4vw, 1.5rem); padding-left: .75rem; border-left: 2px solid var(--line); }
.commentaire-entete { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; }
.commentaire-entete strong { overflow-wrap: anywhere; }
.commentaire-entete time, .commentaire-lien-parent { font-size: .88em; color: var(--muted); }
.commentaire-avatar { width: 2rem; height: 2rem; flex: none; }
.commentaire-texte { margin: .55rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.commentaire-lien-parent { display: inline-block; margin-top: .3rem; overflow-wrap: anywhere; }
.commentaire-photos { display: flex; flex-wrap: wrap; gap: .6rem; margin: .75rem 0; }
.commentaire-photos img { display: block; width: 7.5rem; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.commentaire-bouton, #commenter-annuler {
  min-height: 44px;
  padding: 0 .35rem;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: 600 1rem var(--texte);
  text-decoration: underline;
  cursor: pointer;
}
#commenter {
  display: grid;
  justify-items: start;
  gap: .55rem;
  margin-top: 1.25rem;
  padding: clamp(.85rem, 3vw, 1.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
}
#commenter[hidden] { display: none; }
#commenter h3, #commenter-reponse, #commenter .commenter-note { margin: 0; }
#commenter label, #commenter legend { font-weight: 600; }
#commenter label span { font-weight: 400; }
#commenter textarea { width: 100%; }
#commenter input[type="text"] { width: min(100%, 24rem); }
#commenter fieldset { display: grid; gap: .35rem; width: 100%; min-width: 0; margin: .45rem 0; border: 1px solid var(--line); }
#commenter input[type="file"] { max-width: 100%; color: var(--ink); font: inherit; }
#commenter .commenter-note { font-size: .9em; color: var(--muted); }
#commenter .bouton { margin-top: .35rem; }
