/* ==========================================================================
   Pages « La paroisse » et « Vie paroissiale » (chargé après base.css)
   Préfixe .pr- pour éviter toute collision avec les autres pages.
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- Liens d'ancrage sous le titre ---------- */
.pr-anchors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 3vw, 36px); }
.pr-anchors a {
  text-decoration: none; font-size: .92rem; font-weight: 500; padding: .55em 1.1em; min-height: 40px; display: inline-flex; align-items: center;
  color: var(--texte); border: 1px solid var(--ligne); border-radius: var(--rayon-s); background: #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.pr-anchors a:hover { border-color: var(--bleu-logo); background: var(--bleu-logo); color: #fff; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Présentation ---------- */
.pr-devise { font-family: var(--font-accent); font-weight: 500; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--bleu-logo); line-height: 1.3; margin-block: 1.2rem; }

/* Grand arc de 7 couleurs, en CSS pur : 7 demi-anneaux emboîtés */
.pr-arc-wrap { margin: 0; }
.pr-arc-wrap figcaption { text-align: center; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); margin-top: 1rem; }
.pr-arc { position: relative; container-type: inline-size; width: 100%; max-width: 560px; aspect-ratio: 2 / 1; margin-inline: auto; }
.pr-arc span {
  position: absolute; bottom: 0; left: calc(var(--i) * 6.5%); right: calc(var(--i) * 6.5%); height: calc(100% - var(--i) * 13%);
  border: solid var(--c); border-width: 12px 12px 0; border-width: 2.6cqw 2.6cqw 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s ease; transition-delay: calc(var(--i) * 90ms);
  transform: scale(.7); opacity: 0;
}
.pr-arc-wrap.is-in .pr-arc span, .pr-arc.is-in span { transform: none; opacity: 1; }
.pr-arc-wrap.reveal { opacity: 1; transform: none; }
.pr-arc-wrap.is-in .pr-arc span { transform: none; opacity: 1; }

/* « Pourquoi Arc-en-ciel ? » */
.pr-why { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.pr-why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.pr-why__list li { display: grid; grid-template-columns: 18px 1fr; gap: 16px; align-items: start; }
.pr-why__list h3 { margin-bottom: .15em; font-size: 1.3rem; }
.pr-why__list p { margin: 0; color: var(--texte-doux); }
.pr-why__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); margin-top: .4em; }
.pr-why-frame { background: #eef4fa; border-color: rgba(0, 61, 114, .12); box-shadow: none; }
.pr-tight { padding-top: 0; }

/* ---------- Frise chronologique : compacte, horizontale sur grand écran ---------- */
.pr-timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; display: grid; gap: 12px; }
.pr-timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 9px; width: 2px; background: var(--bleu-logo); opacity: .3; }
.pr-timeline__item { position: relative; padding-left: 36px; }
.pr-timeline__item::before {
  content: ""; position: absolute; left: 0; top: 18px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--bleu-logo); box-shadow: 0 0 0 4px var(--bg-alt);
}
.pr-timeline__item:not(.is-empty)::before { background: var(--orange); border-color: var(--orange); }
.pr-timeline__card { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 14px 18px; box-shadow: var(--ombre-s); height: 100%; }
.pr-timeline__card h3 { margin-bottom: .2em; font-size: 1.05rem; }
.pr-timeline__card p { font-size: .92rem; line-height: 1.45; }
.pr-timeline__card p:last-child { margin-bottom: 0; }
.pr-timeline__date { margin-bottom: .5rem; }
.pr-timeline__item.is-empty .pr-timeline__card { background: transparent; border: 1.5px dashed rgba(27, 18, 13, .25); box-shadow: none; }
@media (min-width: 900px) {
  .pr-timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .pr-timeline::before { top: 9px; bottom: auto; left: 0; right: 0; width: auto; height: 2px; }
  .pr-timeline__item { padding: 32px 0 0; }
  .pr-timeline__item::before { left: 0; top: 0; }
}

/* ---------- Notre curé : une carte, photo à gauche, texte puis rendez-vous ---------- */
.pr-cure { display: grid; overflow: hidden; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); box-shadow: var(--ombre-s); }
@media (min-width: 900px) { .pr-cure { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); } }
.pr-cure .pr-cure__photo { margin: 0; max-width: none; border: 0; border-radius: 0; min-height: 280px; aspect-ratio: auto; }
.pr-cure__corps { padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; }
.pr-cure__corps h2 { margin-bottom: .3em; }
.pr-cure__id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 1rem; }
.pr-cure__nom { font-family: var(--font-titre); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; color: var(--accent-texte); line-height: 1.15; }
.pr-cure__intro { color: var(--texte-doux); max-width: 56ch; margin-bottom: 1.6rem; }

/* Rendez-vous : tuile de date + détails */
.pr-event { display: flex; gap: clamp(14px, 2.4vw, 24px); margin-top: auto; padding: clamp(16px, 2.2vw, 24px); background: #eef4fa; border: 1px solid rgba(0, 61, 114, .15); border-radius: var(--rayon); color: var(--texte); }
.pr-event__date { flex: none; align-self: flex-start; display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 12px 8px; border-radius: var(--rayon-s); background: var(--bleu-logo); color: #fff; line-height: 1; }
.pr-event__date b { font-size: 2rem; font-weight: 700; }
.pr-event__date small { margin-top: .3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--jaune); }
.pr-event__corps { min-width: 0; }
.pr-event h3 { margin: .45rem 0 .2rem; font-size: 1.15rem; }
.pr-event__quand { font-weight: 600; color: var(--bleu-logo); margin-bottom: .3rem; }
.pr-event__detail { color: var(--texte-doux); font-size: .95rem; margin-bottom: .6rem; }
.pr-event .form-note { margin: 0; }
@media (max-width: 480px) { .pr-event { flex-direction: column; } .pr-event__date { flex-direction: row; gap: 10px; align-items: baseline; padding: 8px 16px; } .pr-event__date b { font-size: 1.6rem; } }

/* ---------- Conseil paroissial ---------- */
.pr-inst { position: relative; }
.pr-inst__num { display: block; font-family: var(--font-accent); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--accent-texte); margin-bottom: .6rem; }
.pr-inst h3 { margin-bottom: .4em; }
.pr-inst p { margin: 0; color: var(--texte-doux); }
.pr-membres { margin-top: clamp(24px, 4vw, 48px); }
.pr-membres__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; margin-bottom: .6rem; }
.pr-membres__head h3 { margin: 0; }
.pr-membres__list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pr-membres__list li { display: grid; gap: 8px; padding: 16px; border: 1px dashed var(--ligne); border-radius: var(--rayon-s); }
.pr-skel { display: block; height: 12px; border-radius: var(--rayon-s); background: rgba(27, 18, 13, .08); }
.pr-skel--l { width: 70%; height: 14px; } .pr-skel--s { width: 45%; }

/* ---------- Chapelle ---------- */
.pr-chapelle { text-align: center; }
.pr-chapelle__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bleu-logo); color: #fff; margin-bottom: 1rem; }
.pr-chapelle__messe { font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); display: flex; flex-wrap: wrap; gap: .2em .8em; justify-content: center; align-items: baseline; }
.pr-chapelle__messe strong { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); font-weight: 600; line-height: 1; color: var(--bleu-logo); }

/* ---------- Valeurs : carte blanche + petite pastille de couleur ---------- */
.pr-val h3 { font-family: var(--font-accent); font-weight: 600; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); margin-bottom: .3em; }
.pr-val h3::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin-bottom: .55em; }
.pr-val p { margin: 0; color: var(--texte-doux); }

/* ---------- Vie paroissiale : filtres & cartes ---------- */
.pr-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pr-chip {
  font: 500 .98rem/1 var(--font-titre); color: var(--texte); background: #fff; border: 1px solid var(--ligne); border-radius: var(--rayon-s);
  padding: .85em 1.3em; min-height: 44px; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.pr-chip:hover { border-color: var(--bleu-logo); color: var(--bleu-logo); }
.pr-chip[aria-pressed="true"] { background: var(--bleu-logo); border-color: var(--bleu-logo); color: #fff; font-weight: 600; }
#filtre-etat { min-height: 1.5em; margin-bottom: 24px; }

.pr-mv__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--rayon-s); background: color-mix(in srgb, var(--c) 20%, #fff); color: var(--bleu-logo); border: 1px solid color-mix(in srgb, var(--c) 45%, #fff); margin-bottom: 1rem; }
.pr-mv { display: flex; flex-direction: column; }
.pr-mv__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .7rem; }
.pr-mv__cat { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--texte-doux); }
.pr-mv__cat + .pr-mv__cat::before { content: "·"; margin-right: 6px; }
.pr-mv h3 { margin-bottom: .4em; }
.pr-mv > p { color: var(--texte-doux); }
.pr-mv__info { margin: auto 0 .8rem; padding-top: .4rem; }
.pr-mv__link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--bleu-logo); padding: .4em 0; display: inline-block; min-height: 32px; }
.pr-mv__info + .pr-mv__link { margin-top: 0; }
.pr-mv__link:hover { color: var(--accent-texte); }
.pr-mv[hidden] { display: none; }

/* ---------- Focus jeunes : agenda ---------- */
.pr-agenda { display: grid; gap: 16px; }
.pr-ev { display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: clamp(16px, 2.4vw, 24px); border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--ligne); box-shadow: var(--ombre-s); }
.pr-ev__date { display: grid; place-content: center; text-align: center; width: 84px; height: 84px; border-radius: var(--rayon); background: var(--bleu-logo); color: #fff; align-self: start; }
.pr-ev__date b { font-size: 1.5rem; line-height: 1; font-weight: 700; }
.pr-ev__date span { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pr-ev.is-passe { background: rgba(255, 255, 255, .6); box-shadow: none; }
.pr-ev.is-passe .pr-ev__date { background: #8a8378; }
.pr-ev h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); margin: .3em 0; }
.pr-ev__badges { margin: 0; }
.pr-ev__quand { font-weight: 600; color: var(--accent-texte); margin-bottom: .4em; }
.pr-ev p { margin-bottom: .4em; }
.pr-ev__lieu { color: var(--texte-doux); font-size: .95rem; margin-bottom: 0 !important; }
@media (max-width: 480px) { .pr-ev { grid-template-columns: 1fr; } .pr-ev__date { width: 72px; height: 72px; } }

/* ---------- Focus chorale ---------- */
.pr-chorale { background: #eef4fa; border-color: rgba(0, 61, 114, .12); box-shadow: none; display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: stretch; padding: clamp(22px, 4vw, 52px); }
@media (min-width: 900px) { .pr-chorale { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.pr-chorale__intro { display: flex; flex-direction: column; }
.pr-chorale__intro > p:not(.lead) { color: var(--texte-doux); }
.pr-chorale__points { list-style: none; margin: .4rem 0 1.2rem; padding: 0; display: grid; gap: .5rem; font-family: var(--font-titre); font-weight: 600; font-size: 1.15rem; color: var(--titre); }
.pr-chorale__points span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 10px; border-radius: var(--rayon-s); background: var(--bleu-logo); color: #fff; font-size: 1rem; }
.pr-chorale__info { display: flex; gap: 14px; align-items: flex-start; margin-top: auto; padding: 16px 18px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); }
.pr-chorale__ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--rayon-s); background: rgba(0, 61, 114, .08); color: var(--bleu-logo); }
.pr-chorale__info strong { display: block; font-family: var(--font-titre); color: var(--titre); }
.pr-chorale__info span:not(.badge) { color: var(--texte-doux); font-size: .92rem; }
.pr-chorale .lead { color: var(--texte-doux); }
.pr-chorale__form { background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: clamp(18px, 2.6vw, 32px); }
.pr-chorale__form h3 { margin-bottom: .2em; }
.form__duo { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__duo { grid-template-columns: 1fr 1fr; } }
.field--check { grid-template-columns: 26px 1fr; align-items: start; gap: 12px; }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--orange); padding: 0; }
.field--check label { font-weight: 400; }
.field [aria-invalid="true"] { border-color: var(--rouge) !important; }
.form-error { margin: 0; padding: 12px 16px; border-radius: var(--rayon); background: rgba(238, 47, 35, .08); border: 1px solid var(--rouge); color: #8a1008; font-weight: 500; }
.pr-chorale__form .btn { justify-self: start; }

@media (prefers-reduced-motion: reduce) {
  .pr-arc span { transform: none; opacity: 1; transition: none; }
  .pr-chip, .pr-anchors a { transition: none; }
}

.pr-cure__accueil { margin: 20px 0 12px; padding-left: 18px; border-left: 3px solid var(--bleu-logo); }
.pr-cure__accueil p { margin: 0; color: var(--texte-doux); }
