/* Styles d'une fiche événement, partagés par :
   - evenement.html            (page complète)
   - programme-2026-2027.html  (lightbox ouverte au clic sur une vignette)
   Le contenu est identique des deux côtés, seul l'emballage change. */

/* ---- CONTENU DE LA FICHE ---- */
.event-figure { border-radius: var(--r); overflow: hidden; margin-bottom: 38px; aspect-ratio: 21/9; }
.event-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.event-body p { font-size: 17px; line-height: 1.72; color: var(--text); margin-bottom: 18px; }
.event-note {
  border-left: 4px solid var(--gold); background: var(--gold-pale);
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 26px 0;
  font-size: 15px; color: var(--navy);
}
.event-speakers { background: var(--coral); color: white; border-radius: var(--r); padding: 28px 30px; margin-top: 34px; }
.event-speakers h2,
.event-speakers h3 { font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.event-speakers ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.event-speakers li { font-size: 15px; line-height: 1.6; padding-left: 18px; position: relative; }
.event-speakers li::before { content: '•'; position: absolute; left: 0; font-weight: 700; }
.event-speakers .sp-name { font-weight: 700; }
.event-moderation {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.35);
  font-size: 15px;
}
.event-aside {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px; position: sticky; top: 92px;
  display: flex; flex-direction: column; gap: 14px;
}
.event-aside-row { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--navy); line-height: 1.5; }
.event-aside-row svg { width: 16px; height: 16px; stroke: var(--coral); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.event-aside-row strong { font-weight: 700; }
.event-aside .ev-tag {
  align-self: flex-start; background: rgba(27, 42, 74, 0.1); color: var(--navy);
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}
.event-empty { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.event-cta {
  display: inline-block; margin-top: 8px; padding: 12px 22px;
  background: var(--coral); color: white; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-decoration: none; text-align: center;
}
.event-cta:hover { background: #ad5004; }

/* ---- PAGE COMPLÈTE (evenement.html) ---- */
.event-page {
  max-width: 1280px; margin: 72px auto 0;
  /* 111px : dégage la barre de nav puis la queue du signet, qui descend à 171px */
  padding: 111px 5% 90px;
}
.event-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--coral); text-decoration: none;
  margin-bottom: 26px;
}
.event-back:hover { text-decoration: underline; }
.event-eyebrow {
  font-size: 14px; font-weight: 700; color: var(--coral);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px;
}
.event-title {
  font-family: 'Montserrat', sans-serif; font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 800; color: var(--navy); line-height: 1.12; letter-spacing: -1px;
  margin-bottom: 34px;
}

/* ---- LIGHTBOX (programme-2026-2027.html) ---- */
.lb-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0; transition: opacity .2s ease;
}
/* `.lb-overlay { display:flex }` ci-dessus est un style d'auteur : il l'emporte
   sur le `[hidden] { display:none }` du navigateur même à spécificité égale.
   Sans cette règle, la boîte hidden="true" restait affichée en display:flex,
   invisible (opacity:0) mais toujours au premier plan — elle interceptait
   alors tous les clics de la page, partout, sans qu'aucune erreur n'apparaisse. */
.lb-overlay[hidden] { display: none; }
.lb-overlay.is-open { opacity: 1; }
.lb-dialog {
  position: relative; width: 100%; max-width: 1000px;
  background: white; border-radius: 20px;
  padding: 44px 44px 48px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .35);
  transform: translateY(12px); transition: transform .25s ease;
}
.lb-overlay.is-open .lb-dialog { transform: translateY(0); }
.lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer; background: var(--cream);
  color: var(--navy); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: var(--border); }
.lb-close:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.lb-eyebrow {
  font-size: 13px; font-weight: 700; color: var(--coral);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px;
  padding-right: 48px;
}
.lb-title {
  font-family: 'Montserrat', sans-serif; font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 800; color: var(--navy); line-height: 1.15; letter-spacing: -0.8px;
  margin-bottom: 28px; padding-right: 48px;
}
/* dans la lightbox l'encadré ne colle pas : la fenêtre défile déjà */
.lb-dialog .event-aside { position: static; }
.lb-dialog .event-figure { margin-bottom: 30px; }
.lb-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }
.lb-permalink {
  font-size: 14px; font-weight: 700; color: var(--coral);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.lb-permalink:hover { text-decoration: underline; }
/* pendant l'ouverture, la page derrière ne défile plus */
body.lb-open { overflow: hidden; }

@media (max-width: 900px) {
  .event-page { padding: 80px 5% 60px; }
  .event-cols { grid-template-columns: 1fr; gap: 30px; }
  .event-aside { position: static; order: -1; }
  .event-figure { aspect-ratio: 16/9; margin-bottom: 28px; }
  .lb-overlay { padding: 0; }
  .lb-dialog { border-radius: 0; min-height: 100%; padding: 30px 22px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .lb-overlay, .lb-dialog { transition: none; }
}
