/* Site des organisateurs : pages d'article et d'épisode, page des guides, section « guides » de la page Organiser (27/11/2026).
   Chargée après deux-sites.css et deux-sites-pages.css. Pages fabriquées par deux-sites-v3/articles/fabriquer.py.
   L'or reste un trait fin ; les cartes sont des photos pleines, le titre posé dessus. */

/* ================================================================ 1. La colonne de lecture */
.cadre.art-colonne { max-width: 820px; }
.art-haut { padding-bottom: 22px; }
.art-sur { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 6px; color: var(--or-texte, #83662D); font: 700 .8rem/1.4 var(--police); letter-spacing: .06em; text-transform: uppercase; }
.art-haut h1 { margin-top: 6px; font-size: clamp(1.7rem, 1.2rem + 2.1vw, 2.5rem); }
.art-chapo { margin-top: 12px; color: var(--encre); font-size: 1.14rem; line-height: 1.55; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; color: var(--gris); font-size: .88rem; }
.art-attente { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; color: var(--titre); font-weight: 650; box-shadow: inset 0 0 0 1px var(--or-brun); }

.art { padding-top: clamp(22px, 3vw, 36px); }
.art-photo { margin: 0 0 24px; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 9; background: var(--fond-2); }
.art-photo img { width: 100%; height: 100%; object-fit: cover; }

.art-bref, .art-encadre, .art-sources { margin: 0 0 26px; padding: 16px 18px 16px 20px; border-left: 2px solid var(--or-brun); border-radius: 0 14px 14px 0; background: var(--fond-2); color: var(--encre); }
.art-encadre__titre { margin: 0 0 8px; color: var(--titre); font: 750 .98rem/1.3 var(--police); letter-spacing: -.005em; }
.art-bref ul, .art-encadre ul, .art-sources ul { margin: 0; padding-left: 18px; }
.art-bref li + li, .art-encadre li + li, .art-sources li + li { margin-top: 6px; }
.art-encadre { margin: 22px 0; }
.art-encadre p + ul { margin-top: 8px; }
.art-sources { margin-top: 30px; font-size: .92rem; color: var(--texte); }

.art-texte { max-width: none; }
.art-texte h2 { margin: 1.9em 0 .5em; color: var(--titre); font: 800 clamp(1.3rem, 1.1rem + .9vw, 1.6rem)/1.2 var(--police); letter-spacing: -.02em; text-wrap: balance; }
.art-texte h2:first-child { margin-top: 0; }
/* Un verbe et son pronom inversé (« tourne-t-elle », « peut-on ») : jamais coupés en fin de ligne (posé par articles/fabriquer.py) */
.art-uni { white-space: nowrap; }
.art-texte ul, .art-texte ol { margin: .7em 0 1em; padding-left: 22px; }
.art-texte li + li { margin-top: .45em; }
.art-texte ol.art-etapes { padding-left: 0; list-style: none; counter-reset: etape; }
.art-texte ol.art-etapes > li { position: relative; padding: 2px 0 2px 44px; counter-increment: etape; }
.art-texte ol.art-etapes > li + li { margin-top: .8em; }
.art-texte ol.art-etapes > li::before { content: counter(etape); position: absolute; left: 0; top: -.05em; width: 32px; color: var(--or-brun); font: 300 1.7rem/1.2 var(--police); text-align: center; }
.art-deroule ul { margin-top: .3em; color: var(--texte); }
.art-minutes { color: var(--gris); font-size: .88rem; font-weight: 400; }
.art-note { color: var(--gris); font-size: .95rem; font-style: italic; }
.art-tableau { margin: 1em 0; overflow-x: auto; }
.art-tableau table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.art-tableau th, .art-tableau td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ligne-forte); text-align: left; vertical-align: top; }
.art-tableau th { color: var(--titre); font-weight: 700; border-bottom-color: var(--or-brun); }
/* Au téléphone, un tableau s'empile : chaque ligne devient un petit bloc, le nom de la colonne devant chaque valeur */
@media (max-width: 599.98px) {
  .art-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .art-tableau tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--ligne-forte); }
  .art-tableau td { display: block; padding: 2px 0; border: 0; }
  .art-tableau td:first-child { color: var(--titre); font-weight: 700; }
  .art-tableau td:not(:first-child)::before { content: attr(data-colonne) " : "; color: var(--gris); font-size: .86rem; }
}
.art-liens { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 30px; }

/* ================================================================ 2. Les cartes d'article : la photo pleine, le titre posé dessus */
.art-cartes { display: grid; grid-template-columns: 1fr; gap: 12px; }
.art-carte { position: relative; display: block; overflow: hidden; min-height: 230px; border-radius: var(--rayon-photo, 14px); background: var(--nuit); color: #fff; text-decoration: none; isolation: isolate; }
.art-carte img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--courbe); }
.art-carte__voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 21, 48, 0) 28%, rgba(11, 21, 48, .58) 62%, rgba(11, 21, 48, .92) 100%); }
.art-carte__corps { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 15px; }
.art-carte__rubrique { align-self: flex-start; padding-bottom: 3px; border-bottom: 1px solid var(--or); color: #F3E3B8; font: 650 .74rem/1.3 var(--police); letter-spacing: .07em; text-transform: uppercase; }
.art-carte__titre { color: #fff; font: 750 1.06rem/1.25 var(--police); letter-spacing: -.012em; text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.art-carte:hover { color: #fff; }
.art-carte:hover img { transform: scale(1.04); }
.art-carte:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (min-width: 640px) {
  .art-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .art-carte { min-height: 250px; }
}
/* sur deux colonnes, la dernière carte d'un groupe au nombre impair prend toute la largeur */
@media (min-width: 640px) and (max-width: 979.98px) { .art-cartes--liste .art-carte:nth-child(odd):last-child { grid-column: span 2; } }
@media (min-width: 980px) {
  .art-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .art-cartes--liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .art-cartes--liste .art-carte:nth-child(5n + 1) { grid-column: span 2; }
  /* la dernière rangée d'un groupe est toujours pleine, quel que soit le nombre de guides (30/11) : des cartes larges en plus,
     jamais une carte seule ni un vide. Chaque ligne vise un reste précis du nombre de cartes divisé par dix. */
  .art-cartes--liste .art-carte:is(
    :nth-child(10n + 7):nth-last-child(5), :nth-child(10n + 10):nth-last-child(2),                                 /* reste 1 */
    :nth-child(10n + 2):last-child,                                                                                /* reste 2 */
    :nth-child(10n + 2):nth-last-child(3), :nth-child(10n + 3):nth-last-child(2), :nth-child(10n + 4):last-child,  /* reste 4 */
    :nth-child(10n + 4):nth-last-child(2), :nth-child(10n + 5):last-child,                                         /* reste 5 */
    :nth-child(10n + 4):nth-last-child(4), :nth-child(10n + 5):nth-last-child(3), :nth-child(10n + 7):last-child,  /* reste 7 */
    :nth-child(10n + 7):nth-last-child(2), :nth-child(10n + 8):last-child,                                         /* reste 8 */
    :nth-child(10n + 9):last-child                                                                                 /* reste 9 */
  ) { grid-column: span 2; }
  /* la section de la page Organiser : le guide général en grand, les trois guides par événement à côté */
  .art-cartes--une { grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: 1fr; }
  .art-cartes--une .art-carte:first-child { grid-row: span 2; min-height: 420px; }
  .art-cartes--une .art-carte:first-child .art-carte__titre { font-size: 1.5rem; }
  .art-cartes--une .art-carte:nth-child(4) { grid-column: 2 / span 2; }
  .art-cartes--une .art-carte { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .art-carte img { transition: none; } .art-carte:hover img { transform: none; } }

/* ================================================================ 3. La section « guides » de la page Organiser */
.art-autres { display: grid; gap: 0 28px; margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ligne-forte); }
.art-autres li { border-bottom: 1px solid var(--ligne-forte); }
.art-autres a { display: flex; align-items: center; min-height: 48px; padding: 8px 2px; color: var(--titre); font-weight: 600; text-decoration: none; }
.art-autres a:hover { color: var(--accent-lien); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) { .art-autres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Le lecteur d'un épisode qui s'écoute, et la mention de la voix de synthèse (01/12/2026). */
.art-ecoute { margin: 0 0 26px; padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ligne), var(--ombre); }
.art-ecoute audio { display: block; width: 100%; }
.art-ecoute__voix { margin: 10px 0 0; color: var(--gris); font-size: .86rem; }
