/* Calendrier du réseau (/calendrier/), mécanique reprise de
   iuac.ca/calendrier/, couleurs et typographie RQ3i. */

.rq3i-calendrier-page { background: #f8f9fa; }

/* ── Hero ────────────────────────────────────────────────────── */

.rq3i-cal-hero {
  background: #1b3c86;
  padding: 2.5rem 1.5rem 3rem;
}

.rq3i-cal-hero__inner { max-width: 900px; margin: 0 auto; }

.rq3i-cal-hero__breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.rq3i-cal-hero__breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.rq3i-cal-hero__breadcrumb a:hover { text-decoration: underline; }
.rq3i-cal-hero__breadcrumb-sep { margin: 0 0.4rem; }
.rq3i-cal-hero__breadcrumb-current { color: #fff; }

.rq3i-cal-hero__title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: #fff;
  margin: 0 0 0.75rem;
}

.rq3i-cal-hero__sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

.rq3i-cal-hero__lien-activites {
  display: inline-block;
  margin-top: 1rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rq3i-cal-hero__lien-activites:hover { color: #85c06c; }

/* ── Conteneur ───────────────────────────────────────────────── */

.rq3i-cal-conteneur {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.rq3i-cal-vide { color: #6b7280; }

/* ── Filtre par année ────────────────────────────────────────── */

.rq3i-cal-filtres {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.rq3i-cal-filtres label {
  font-weight: 600;
  color: #1b3c86;
  font-size: 0.9rem;
}

.rq3i-cal-filtres select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 0.95rem;
  background: #fff;
  color: #1f2937;
}

/* ── Accordéon des mois ──────────────────────────────────────── */

.rq3i-cal-accordeon {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rq3i-cal-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.rq3i-cal-section[open] {
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(27,60,134,0.15);
}

.rq3i-cal-titre::-webkit-details-marker { display: none; }

.rq3i-cal-titre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  padding: 0.85rem 1.1rem;
  background: transparent;
  color: #1f2937;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.rq3i-cal-titre:hover,
.rq3i-cal-titre:focus-visible { background: #e8edf8; }

.rq3i-cal-section[open] .rq3i-cal-titre,
.rq3i-cal-section[open] .rq3i-cal-titre:hover,
.rq3i-cal-section[open] .rq3i-cal-titre:focus-visible {
  background: #1b3c86;
  color: #fff;
}

.rq3i-cal-mois-etat {
  font-weight: 400;
  font-size: 0.85rem;
  color: #6b7280;
  margin-left: 0.4rem;
}

.rq3i-cal-section[open] .rq3i-cal-mois-etat { color: rgba(255,255,255,0.75); }

.rq3i-cal-signe {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.rq3i-cal-signe::before,
.rq3i-cal-signe::after {
  content: "";
  position: absolute;
  background: #6b7280;
}

.rq3i-cal-signe::before { inset: 6px 0 auto 0; height: 2px; }
.rq3i-cal-signe::after  { inset: 0 auto 0 6px; width: 2px; }

.rq3i-cal-section[open] .rq3i-cal-signe::before,
.rq3i-cal-section[open] .rq3i-cal-signe::after { background: #fff; }
.rq3i-cal-section[open] .rq3i-cal-signe::after { display: none; }

.rq3i-cal-corps { padding: 0 1.1rem 0.9rem; }

/* ── Ligne de jalon ──────────────────────────────────────────── */

.rq3i-cal-ligne {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e7eb;
  align-items: baseline;
}

.rq3i-cal-ligne:last-child { border-bottom: 0; }

.rq3i-cal-quand {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #1f2937;
}

.rq3i-cal-precision {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
}

.rq3i-cal-badge {
  justify-self: start;
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #e4f0ed;
  color: #2e6b5e;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .rq3i-cal-ligne {
    grid-template-columns: 14rem 1fr auto;
    gap: 1rem;
  }
  .rq3i-cal-badge { justify-self: end; }
}
