/* ==========================================================================
   Aigneville – Comptes-rendus du conseil municipal
   ========================================================================== */
.pv {
  --pv-bordeaux: var(--bordeaux, #782C39);
  --pv-bordeaux-81: var(--bordeaux-81, #93525D);
  --pv-bordeaux-56: var(--bordeaux-56, #B08A91);
  --pv-tint: var(--bordeaux-tint, #F5F0F1);
  --pv-pale: var(--bordeaux-pale, #DFB8C0);
  --pv-bleu: var(--bleu, #3D67E3);
  --pv-bleu-fonce: var(--bleu-fonce, #2A4BB0);
  --pv-gris: var(--gris, #DFDFDF);
  --pv-texte: var(--texte, #2C2C2A);
  --pv-texte-2: var(--texte-2, #5F5E5A);
  --pv-texte-3: var(--texte-3, #888780);
  --pv-radius: var(--radius, 8px);
  --pv-ombre: 0 14px 40px rgba(44, 44, 42, .14), 0 2px 6px rgba(44, 44, 42, .06);
  color: var(--pv-texte);
}
.contenu-principal.pv-page .conteneur { max-width: 980px; }
.pv-intro { margin-bottom: 24px; }
.pv *, .pv *::before, .pv *::after { box-sizing: border-box; }
.pv button, .pv input { font-family: inherit; }
.pv-ico {
  width: 1em; height: 1em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.pv :focus-visible { outline: 3px solid var(--pv-bleu); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Barre : filtres par année + recherche
   -------------------------------------------------------------------------- */
.pv-barre {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; margin: 0 0 22px;
}
.pv-filtres { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--pv-tint); }
.pv-filtre {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border: 0; border-radius: 999px; background: transparent;
  color: var(--pv-bordeaux); font-size: .95rem; font-weight: 700; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.pv-filtre span {
  min-width: 22px; padding: 0 6px; border-radius: 999px; background: #fff;
  font-size: .75rem; line-height: 20px; text-align: center; color: var(--pv-bordeaux);
}
.pv-filtre:hover { background: #fff; }
.pv-filtre[aria-pressed="true"] { background: var(--pv-bordeaux); color: #fff; box-shadow: 0 2px 6px rgba(120, 44, 57, .3); }
.pv-filtre[aria-pressed="true"] span { background: rgba(255, 255, 255, .2); color: #fff; }

.pv-recherche {
  position: relative; display: flex; align-items: center; flex: 0 1 320px;
  color: var(--pv-texte-3);
}
.pv-recherche .pv-ico { position: absolute; left: 14px; font-size: 1.05rem; pointer-events: none; }
.pv-recherche input {
  width: 100%; padding: 9px 14px 9px 40px;
  border: 1px solid var(--pv-gris); border-radius: 999px; background: #fff;
  font-size: .95rem; color: var(--pv-texte);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pv-recherche input:focus { outline: none; border-color: var(--pv-bordeaux-56); box-shadow: 0 0 0 4px var(--pv-tint); }
.pv-recherche .ecran-lecteur, .pv-recherche .screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

/* --------------------------------------------------------------------------
   Dernière séance (vedette)
   -------------------------------------------------------------------------- */
.pv-une {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: center;
  margin: 0 0 40px; padding: 28px 30px;
  border-radius: 16px; color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .13) 0 90px, transparent 91px),
    radial-gradient(circle at 70% 120%, rgba(255, 255, 255, .08) 0 120px, transparent 121px),
    linear-gradient(135deg, var(--pv-bordeaux) 0%, var(--pv-bordeaux-81) 100%);
  box-shadow: 0 18px 40px rgba(120, 44, 57, .25);
}
.pv-une > .pv-ico {
  position: absolute; right: -18px; bottom: -26px; width: 190px; height: 190px;
  stroke: rgba(255, 255, 255, .09); stroke-width: 1.2; pointer-events: none;
}
.pv-une-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: 14px;
  background: #fff; color: var(--pv-bordeaux);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18); line-height: 1; text-align: center;
}
.pv-une-js { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--pv-texte-3); }
.pv-une-j { font-size: 3.6rem; font-weight: 700; margin: 6px 0 4px; }
.pv-une-m { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pv-une-corps { position: relative; z-index: 1; min-width: 0; }
.pv-une-sur {
  display: flex; align-items: center; gap: 10px; margin: 0 0 6px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--pv-pale);
}
.pv-une-titre { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.25; color: #fff; }
.pv-une-titre a { color: #fff; text-decoration: none; }
.pv-une-titre a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pv-une-meta { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .98rem; color: rgba(255, 255, 255, .88); }
.pv-une-extrait { margin: 10px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.pv-une-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.pv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  font-size: .95rem; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.pv-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pv-btn small { font-weight: 400; opacity: .8; }
.pv-btn-plein { background: #fff; color: var(--pv-bordeaux); }
.pv-btn-plein:hover { background: var(--pv-tint); color: var(--pv-bordeaux); }
.pv-btn-plein .pv-ico { transition: transform .15s ease; }
.pv-btn-plein:hover .pv-ico { transform: translateX(3px); }
.pv-btn-contour { border: 2px solid rgba(255, 255, 255, .55); color: #fff; padding: 8px 18px; }
.pv-btn-contour:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.pv-badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px;
  background: var(--pv-bleu); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Frise par année
   -------------------------------------------------------------------------- */
.pv-annee { margin: 0 0 34px; }
.pv-annee-titre {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px;
  font-size: 1.9rem; line-height: 1; color: var(--pv-bordeaux);
}
.pv-annee-titre small { font-size: .85rem; font-weight: 700; color: var(--pv-texte-3); text-transform: uppercase; letter-spacing: .08em; }
.pv-annee-titre::after { content: ""; flex: 1; height: 2px; background: var(--pv-tint); align-self: center; }

.pv-liste { position: relative; list-style: none; margin: 0; padding: 0 0 0 0; display: flex; flex-direction: column; gap: 12px; }
.pv-liste::before {
  content: ""; position: absolute; left: 30px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--pv-pale), var(--pv-tint));
}
.pv-item {
  position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  margin: 0; padding: 14px 18px 14px 0;
  border-radius: 12px; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pv-item:hover { background: #fff; box-shadow: var(--pv-ombre); transform: translateX(4px); }
.pv-date {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 12px;
  background: #fff; border: 2px solid var(--pv-bordeaux); color: var(--pv-bordeaux);
  line-height: 1; pointer-events: none; transition: background-color .2s ease, color .2s ease;
}
.pv-item:hover .pv-date { background: var(--pv-bordeaux); color: #fff; }
.pv-date-j { font-size: 1.45rem; font-weight: 700; }
.pv-date-m { font-size: .7rem; font-weight: 700; text-transform: uppercase; margin-top: 3px; letter-spacing: .04em; }

.pv-item-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pv-item-titre { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--pv-texte); text-decoration: none; }
.pv-item-titre::after { content: ""; position: absolute; inset: 0; border-radius: 12px; } /* toute la ligne est cliquable */
.pv-item:hover .pv-item-titre { color: var(--pv-bordeaux); text-decoration: none; }
.pv-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .88rem; color: var(--pv-texte-3); }
.pv-pdf-info { display: inline-flex; align-items: center; gap: 4px; color: var(--pv-texte-2); }
.pv-pdf-info .pv-ico { color: var(--pv-bordeaux); }

.pv-item-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.pv-ico-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--pv-gris); background: #fff; color: var(--pv-bordeaux); font-size: 1.1rem;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pv-ico-btn:hover { background: var(--pv-bordeaux); border-color: var(--pv-bordeaux); color: #fff; text-decoration: none; }
.pv-lire { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--pv-bleu); text-decoration: none; }
.pv-lire .pv-ico { transition: transform .15s ease; }
.pv-item:hover .pv-lire .pv-ico { transform: translateX(3px); }

/* La dernière séance apparaît dans la frise uniquement lors d'un filtrage */
.pv:not(.is-filtre) .pv-item.is-une { display: none; }
.pv.is-filtre .pv-une { display: none; }
.pv-annee[hidden], .pv-item[hidden] { display: none !important; }

.pv-aucun { padding: 26px; border: 1px dashed var(--pv-bordeaux-56); border-radius: 12px; text-align: center; color: var(--pv-texte-2); }
.pv-vide { color: var(--pv-texte-3); font-style: italic; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .pv-barre { flex-direction: column; align-items: stretch; }
  .pv-filtres { border-radius: 14px; }
  .pv-recherche { flex-basis: auto; }

  .pv-une { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .pv-une-date { flex-direction: row; aspect-ratio: auto; gap: 10px; padding: 12px 16px; justify-content: flex-start; align-self: start; width: max-content; }
  .pv-une-j { font-size: 2rem; margin: 0; }
  .pv-une-titre { font-size: 1.2rem; }
  .pv-btn { flex: 1 1 auto; justify-content: center; }

  .pv-liste::before { left: 25px; }
  .pv-item { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 12px 12px 12px 0; }
  .pv-date { width: 52px; height: 52px; }
  .pv-date-j { font-size: 1.2rem; }
  .pv-item-actions { grid-column: 2; }
  .pv-item:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pv *, .pv { transition: none !important; }
}
