/* 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; }
}


/* ===== Correctif robuste: neutralise les anciens CSS qui surdimensionnent les images ===== */
/* Si une feuille legacy (ex: stylegeneral.css / cg2.css) impose des tailles fixes, on écrase ici. */
.conf-hero{ min-height: 62vh !important; }   /* plus proche "plein écran" */
.conf-hero__bg{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Toutes les images dans le contenu ne doivent JAMAIS dépasser la zone d'affichage */
.conf-article img,
.conf-hero img,
.story img{
  max-width: 100% !important;
  height: auto !important;
}

/* Les images de carte gardent un cadrage stable */
.story__media img{
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
}

/* Si un ancien CSS force des marges/paddings qui écrasent le layout, on sécurise le conteneur */
.conf-article, .wrap{
  max-width: 1120px;
}
