/* =====================================================================
   Braillard — Single « activité » (event) : en-tête + colonne latérale.
   ===================================================================== */

/* Fiche activité : la sous-nav (piliers + sous-items) est conservée ; le grand
   espace du Figma « Single » (~78px) va SOUS le sous-menu, avant le titre. */
body.single-activite .br-pagehead{ padding-top: clamp(48px, 4.5vw, 78px); }

/* ---- En-tête : sous-titre + date (alignés à DROITE, Figma) ---- */
.br-event-head{ font-family: var(--br-font-body); text-align: right; }
.br-event-head__subtitle{
  margin: 0 0 clamp(10px, 1vw, 16px);
  font-size: clamp(26px, 2.31vw, 40px); line-height: 1.25; font-weight: 400; color: var(--br-black); /* Figma : 40px */
}
.br-event-head__subtitle em, .br-event-head__subtitle i{
  font-family: var(--br-font-display); font-style: italic; font-weight: 300;
}
.br-event-head__date{
  margin: 0; font-size: clamp(16px, 1.16vw, 20px); line-height: 1.4; color: var(--br-black); /* Figma : 20px noir */
}

/* ---- Colonne latérale ---- */
.br-event-aside{ font-family: var(--br-font-body); display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 36px); align-items: flex-start; }

/* Bouton « Vers l'inscription » (sombre) */
.br-event-aside__cta{
  display: inline-flex; align-items: center; justify-content: center;
  padding: clamp(14px, 1.2vw, 20px) clamp(22px, 2vw, 34px);
  background: var(--br-black); color: var(--br-white); text-decoration: none;
  font-size: clamp(15px, 1.04vw, 18px); line-height: 1; border-radius: 2px;
  transition: opacity .2s ease;
}
.br-event-aside__cta:hover{ opacity: .78; }

/* Précédente / suivante */
.br-event-nav{ display: flex; flex-direction: column; gap: clamp(12px, 1.2vw, 18px); }
.br-event-nav__link{ display: inline-flex; align-items: center; gap: 12px; color: var(--br-black); text-decoration: none; transition: opacity .2s ease; }
.br-event-nav__link[hidden]{ display: none; }
.br-event-nav__link:hover{ opacity: .6; }
.br-event-nav__arrow{ display: inline-flex; line-height: 0; flex: 0 0 auto; }
.br-event-nav__arrow svg{ width: 40px; height: auto; display: block; }
.br-event-nav__meta{ display: flex; flex-direction: column; min-width: 0; }
.br-event-nav__kicker{ font-size: clamp(14px, 0.93vw, 16px); color: var(--br-black); }
.br-event-nav__label{ font-size: clamp(13px, 0.87vw, 15px); color: #6b6660; line-height: 1.3; }

/* Lien « Retour » (flèche gauche) */
.br-event-aside__back{
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(14px, 0.93vw, 16px); color: var(--br-black); text-decoration: none;
}
.br-event-aside__back:hover{ opacity: .6; }
.br-event-aside__back-arrow{ display: inline-flex; line-height: 0; }
.br-event-aside__back-arrow svg{ width: 40px; height: auto; display: block; }

/* Partage */
.br-event-aside__share-title{ margin: 0 0 12px; font-size: clamp(16px, 1.16vw, 20px); font-weight: 500; color: var(--br-black); }
.br-event-aside__icons{ list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; }
.br-event-aside__icons a{ color: var(--br-black); font-size: 24px; line-height: 1; display: inline-flex; transition: opacity .2s ease; }
.br-event-aside__icons a:hover{ opacity: .55; }

@media (max-width: 900px){
  .br-event-aside{ flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: center; }
}

/* =====================================================================
   Layout du single « activité » : colonne latérale (gauche) + contenu (droite).
   Détecté par la présence du widget .br-event-aside (même principe que le
   sous-menu, car les réglages de conteneur en JSON brut ne se rendent pas).
   ===================================================================== */
.e-con:has(> .e-con .br-event-aside),
.e-con-inner:has(> .e-con .br-event-aside){
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto;
  column-gap: clamp(16px, 1.85vw, 32px);
  padding-inline: clamp(20px, 4vw, 56px);
  align-items: start;
}
/* Rangée 1, zone droite : en-tête (sous-titre + date). */
.e-con:has(> .e-con .br-event-aside) > .e-con:has(.br-event-head),
.e-con-inner:has(> .e-con .br-event-aside) > .e-con:has(.br-event-head){
  grid-column: 4 / -1; grid-row: 1; min-width: 0;
}
/* Rangée 2, gauche : colonne latérale (alignée avec le haut de l'image).
   STICKY : reste visible pendant qu'on lit le contenu à droite. align-self:start
   → hauteur naturelle (sinon l'item s'étire sur toute la ligne = rien à coller).
   top = hauteur du header sticky (~193px fixe en desktop) + petite marge. */
.e-con:has(> .e-con .br-event-aside) > .e-con:has(.br-event-aside),
.e-con-inner:has(> .e-con .br-event-aside) > .e-con:has(.br-event-aside){
  grid-column: 1 / 4; grid-row: 2; min-width: 0;
  position: sticky; top: 210px; align-self: start;
}
/* Rangée 2, droite : contenu (image/slideshow + corps). */
.e-con:has(> .e-con .br-event-aside) > .e-con:not(:has(.br-event-aside)):not(:has(.br-event-head)),
.e-con-inner:has(> .e-con .br-event-aside) > .e-con:not(:has(.br-event-aside)):not(:has(.br-event-head)){
  grid-column: 4 / -1; grid-row: 2; min-width: 0;
}
/* Corps (post content) : colonne de lecture retraitée + grand espacement vertical (Figma pl605/pr331/py128). */
.e-con:has(> .e-con .br-event-aside) .elementor-widget-theme-post-content{
  padding: clamp(48px, 7.4vw, 128px) 22% clamp(48px, 7.4vw, 128px) 11%;
  box-sizing: border-box;
}
.elementor-widget-theme-post-content p{ font-size: clamp(16px, 1.16vw, 20px); line-height: 1.4; }

@media (max-width: 900px){
  .e-con:has(> .e-con .br-event-aside),
  .e-con-inner:has(> .e-con .br-event-aside){ display: block; }
  /* Mobile : layout empilé → pas de sticky (la colonne redevient un bloc normal). */
  .e-con:has(> .e-con .br-event-aside) > .e-con:has(.br-event-aside),
  .e-con-inner:has(> .e-con .br-event-aside) > .e-con:has(.br-event-aside){ position: static; }
  .e-con:has(> .e-con .br-event-aside) .elementor-widget-theme-post-content{ padding-left: 0; padding-right: 0; }
}

