/* ==========================================================================
   pages/events.css — Événements (evenements.html)
   ========================================================================== */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--ink-2); padding: 28px; text-align: center; }
.stats b { display: block; font-family: var(--font-display); font-size: 2.6rem; color: var(--brass); }
.stats small { color: var(--muted); }

.festivals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.festival { min-width: 0; }
.festival .card__photo { aspect-ratio: 16 / 10; }
.festival h3 { font-size: 1.2rem; margin: 4px 0; }
.festival p { font-size: .88rem; }

@media (max-width: 960px) and (min-width: 721px) {
  .festivals { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .stats div { padding: 18px 8px; }
  .stats b { font-size: 1.8rem; }
  .stats small { font-size: .74rem; line-height: 1.3; display: block; }
}

/* --- Les incontournables ------------------------------------------------ */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.hl {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 24px 22px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2) 60%);
  border: 1px solid var(--line); transition: transform .2s, border-color .2s;
}
.hl:hover { transform: translateY(-3px); border-color: rgba(212, 162, 76, .4); }
.hl--hot {
  border-color: rgba(212, 162, 76, .55);
  background: radial-gradient(120% 80% at 100% 0%, rgba(212, 162, 76, .22), transparent 60%), linear-gradient(180deg, #2e2418, var(--ink-2));
}
.hl__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.hl__date { line-height: 1; }
.hl__date small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hl__date b { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--brass); }
.hl__date span { margin-left: 6px; font-family: var(--font-display); font-size: 1.15rem; color: var(--cream-2); text-transform: lowercase; }
.hl__icon {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: 50%; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2);
}
.hl h3 { font-size: 1.2rem; line-height: 1.25; }
.hl__when { color: var(--brass-2); font-weight: 600; font-size: .84rem; }
.hl__context { font-size: .8rem; font-style: italic; color: var(--cream-2); }
.hl__desc { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.hl__desc { margin-bottom: 14px; }
.hl__btn { margin-top: auto; align-self: flex-start; }

/* --- Cases repliables : Jeudis Sainte-Folie / Soirées Sainte-Fête -------- */
.themeboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; align-items: start; }
.themeboxes--1 { grid-template-columns: minmax(0, 640px); }
.tb {
  min-width: 0; padding: 26px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(212, 162, 76, .35); transition: border-color .2s, box-shadow .2s;
}
.tb--folie { background: linear-gradient(140deg, rgba(122, 37, 49, .6), rgba(31, 26, 21, .96) 70%); }
.tb--fete  { background: linear-gradient(140deg, rgba(47, 70, 31, .75), rgba(31, 26, 21, .96) 70%); }
/* Couleurs de colonne (choisies dans l'admin) */
.tb--rouge    { background: linear-gradient(140deg, rgba(122, 37, 49, .6), rgba(31, 26, 21, .96) 70%); }
.tb--vert     { background: linear-gradient(140deg, rgba(47, 70, 31, .75), rgba(31, 26, 21, .96) 70%); }
.tb--bordeaux { background: linear-gradient(140deg, rgba(92, 22, 40, .8), rgba(31, 26, 21, .96) 70%); }
.tb--bleu     { background: linear-gradient(140deg, rgba(30, 52, 82, .75), rgba(31, 26, 21, .96) 70%); }
.tb--or       { background: linear-gradient(140deg, rgba(120, 88, 34, .55), rgba(31, 26, 21, .96) 70%); }
.tb[open] { border-color: rgba(212, 162, 76, .7); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.tb__summary { display: block; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tb__summary::-webkit-details-marker { display: none; }
.tb__summary::marker { content: ""; }
.tb__summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; border-radius: 8px; }
.tb__title { display: block; min-width: 0; }
.tb__title .eyebrow { display: block; }
.tb__lbl-open, .tb[open] .tb__lbl-closed { display: none; }
.tb[open] .tb__lbl-open { display: inline; }
.tb__head { display: flex; gap: 16px; align-items: center; }
.tb__badge { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: var(--ink); box-shadow: 0 0 0 6px rgba(212, 162, 76, .15); }
.tb h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 4px; }
.tb__intro { display: block; margin-top: 14px; color: var(--cream-2); font-size: .95rem; }
.tb__meta { display: block; margin-top: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--brass-2); }
.tb__meta:empty { display: none; }

.tb__toggle {
  margin-top: 18px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  color: var(--ink); background: var(--brass); border: 0; transition: background .2s;
}
.tb__summary:hover .tb__toggle { background: var(--brass-2); }
.tb__chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.tb[open] .tb__chev { transform: rotate(-135deg) translate(-2px, -2px); }

.tb__body { margin-top: 18px; }
.tb__list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.tb__row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.tb__date { min-width: 46px; text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 2px; }
.tb__date b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--brass); line-height: 1; letter-spacing: 0; }
.tb__text { min-width: 0; }
.tb__text > b { display: block; font-size: .98rem; }
.tb__time { display: block; font-style: normal; font-size: .78rem; font-weight: 600; color: var(--brass-2); margin-top: 2px; }
.tb__context { display: block; font-size: .78rem; color: var(--cream-2); margin-top: 2px; }
.tb__text small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.5; margin-top: 4px; }
.tb__link { display: inline-block; margin-top: 2px; padding: 6px 0; font-size: .86rem; font-weight: 600; color: var(--brass-2); }

@media (prefers-reduced-motion: no-preference) {
  .tb[open] .tb__body { animation: tb-open .28s ease-out; }
  @keyframes tb-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 860px) {
  .themeboxes { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .highlights.m-carousel { grid-auto-columns: 78%; }
  .tb { padding: 22px 18px; }
}
