/* conference_galerie.css
   Styles communs aux pages de conférences (Boulder, etc.)
*/

.galerie{ background: var(--bg); }

.conf-hero{
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.conf-hero__bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.conf-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(11,12,15,0.92) 0%, rgba(11,12,15,0.72) 55%, rgba(11,12,15,0.40) 100%),
    linear-gradient(180deg, rgba(11,12,15,0.15) 0%, rgba(11,12,15,0.88) 100%);
}

.conf-hero__content{
  position: relative;
  padding: 42px 0 34px 0;
  max-width: 860px;
}

.back{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.back:hover{
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

.back img{
  display:block;
  border-radius: 6px;
}

.conf-title{
  margin: 0 0 10px 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
}

.conf-title__sub{
  display: block;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.62em;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 8px;
}

.conf-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 68ch;
}

.conf-article{
  max-width: 980px;
}



/* Empêche les images de "déborder" sur les pages conférences (images très grandes) */
.conf-article img{
  max-width: 100%;
  height: auto;
  display: block;
}

.story{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.story--reverse{
  grid-template-columns: 1.25fr 1fr;
}

.story--reverse .story__media{ order: 2; }
.story--reverse .story__text{ order: 1; }

.story__media{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}

.story__media img{
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.story__text{
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px 16px 14px 16px;
}

.story__text--full{
  grid-column: 1 / -1;
}

.story__text p{
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.story__text p:last-child{ margin-bottom: 0; }

.conf-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 900px){
  .story, .story--reverse{ grid-template-columns: 1fr; }
  .story--reverse .story__media{ order: 0; }
  .story--reverse .story__text{ order: 0; }
  .story__media img{ height: 220px; }
}


/* =========================================================
   TIMELINE — réglage espacement + ligne centrale lumineuse
   ========================================================= */

/* 1) Les cartes texte ne doivent pas toucher la pastille DIAPO (centre) */
.timeline__content{
  max-width: 520px;
}

/* Certains fichiers utilisent .timeline__content, d'autres .timeline__card : on couvre les deux */
.timeline__item--left  .timeline__content,
.timeline__item--left  .timeline__card{
  margin-right: 60px !important;
}

.timeline__item--right .timeline__content,
.timeline__item--right .timeline__card{
  margin-left: 60px !important;
}

/* 2) Ligne centrale lumineuse style galerie */
.timeline{
  position: relative;
}

.timeline::before{
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    rgba(143,184,255,0.05),
    rgba(143,184,255,0.75),
    rgba(143,184,255,0.05)
  );
  box-shadow:
    0 0 14px rgba(143,184,255,0.55),
    0 0 42px rgba(143,184,255,0.25);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

/* On s'assure que le contenu passe au-dessus de la ligne */
.timeline__item,
.timeline__item *{
  position: relative;
  z-index: 1;
}

/* Mobile : la timeline passe en colonne, la ligne se décale à gauche */
@media (max-width: 860px){
  .timeline::before{
    left: 22px;
    transform: none;
  }

  .timeline__item--left  .timeline__content,
  .timeline__item--left  .timeline__card,
  .timeline__item--right .timeline__content,
  .timeline__item--right .timeline__card{
    margin-left: 44px !important;
    margin-right: 0 !important;
  }
}
