/*
Theme Name: Thème Conviviabule
*/

/* ================================
   VARIABLES
   ================================ */
:root {
  --color-bg-blue: #7ebec5;
  --color-dark:    #1a1a2e;
  --color-text:    #222222;
  --color-muted:   #555555;
  --color-white:   #ffffff;
  --radius:        8px;
  --max-width:     1040px;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Source+Sans+3:wght@400;600&display=swap');


.site-content, .content {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}


/* ================================
   PODCAST SINGLE
   ================================ */
.podcast-single {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem 4rem;
/* 	background: var(--color-bg-blue); */
}

/* --- LIGNE HAUTE --- */
.podcast-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

/* Bloc titre (vert) */
.podcast-title-block {
      background: var(--color-bg-blue);

  color: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.podcast-title {

  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.podcast-meta {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

.podcast-bio-block {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  border: 1px solid rgba(0,0,0,0.08);
}

.quote-icon {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-white);
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-muted);
}

.intervenants-photos {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.intervenant-photo {
  display: block;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  /*margin: 1rem auto 1.5rem;*/
  border: 3px solid var(--color-beige);
}

.bio-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.65;
}

.bio-text strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

/* --- LECTEUR --- */
.podcast-player {
  /* background: var(--color-dark); */
  /* border-radius: var(--radius); */
  /* padding: 1.5rem; */
  margin-bottom: 1.5rem;
}

.podcast-player iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.podcast-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem; background: 'red';}

.podcast-tags a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 0.5px solid #AFA9EC;
  background: #EEEDFE;
  color: #3C3489;
  transition: opacity 0.15s;
}

.podcast-tags a:hover { opacity: 0.8; }

/* Remove default WP block margins inside player */
.podcast-player .wp-block-embed {
  margin: 0;
}

/* --- LIGNE BASSE --- */
.podcast-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.podcast-description,
.podcast-further {
  background: transparent;
}

.podcast-description h2,
.podcast-further h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.podcast-description p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1em;
}

.podcast-further ul {
  list-style: none;
  padding: 0;
}

.podcast-further ul li {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
  padding-left: 1rem;
  position: relative;
}

.podcast-further ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-teal);
}


/* ================================
   ARCHIVE PODCASTS
   ================================ */
.archive-podcasts {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem 4rem;
}
 
.archive-header {
  margin-bottom: 2.5rem;
}
 
.archive-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text);
}
 
/* Grille */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
 
/* Carte */
.podcast-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}
 
.podcast-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}
 
.card-photo img {
  width: 200px;
  height: 200px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-beige);
  margin-bottom: 1.25rem;
}

.card-photo-wide {
  flex: 1;
  display: flex;
  justify-content: center;
}

.card-photo-wide img {
  width: 200px;
  height: auto;
  display: block;
  object-fit: cover;
  /*border-radius: 50%;*/
  border: 3px solid var(--color-beige);
  margin-bottom: 1.25rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
 
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
	min-height: 5em;
}
 
.card-title a {
  color: var(--color-text);
  text-decoration: none;
}
 
.card-title a:hover {
  color: var(--color-teal);
}
 
.card-intervenant {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-teal);
}
 
.card-date {
  font-size: 0.8rem;
  color: var(--color-muted);
}
 
.card-resume {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin-top: 0.4rem;
}
 
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-teal);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease;
}
 
.card-link:hover {
  background: #558f8d;
  text-decoration: none;
}
 
/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}
 
.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
}
 
.pagination a,
.pagination span {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  background: var(--color-white);
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s ease;
}
 
.pagination a:hover {
  background: var(--color-teal);
  color: var(--color-white);
}
 
.pagination .current {
  background: var(--color-teal);
  color: var(--color-white);
  font-weight: 700;
}
 
/* No content */
.no-content {
  color: var(--color-muted);
  text-align: center;
  padding: 3rem 0;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 720px) {
  .podcast-top,
  .podcast-bottom {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .podcast-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================
   SEARCH RESULTS
   ================================ */


.search-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.search-title em {
  color: var(--color-teal);
  font-style: normal;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  transition: border-color 0.2s;
}

.search-card:hover {
  border-color: var(--color-teal);
}

.search-photo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--color-beige);
}

.search-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  display: block;
  margin-bottom: 0.3rem;
}

.search-card h2 {
  font-size: 1.1rem;
   margin-bottom: 0.3rem;
}

.search-card h2 a {
  color: var(--color-text);
  text-decoration: none;
}

.search-card h2 a:hover {
  color: var(--color-teal);
}

.search-meta {
  font-size: 0.88rem;
  color: var(--color-muted);
}


/* ── Conference single ── */
.conference-single { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem; }

.conference-title {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.conference-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Layout deux colonnes */
.conference-left-side,
.conference-right-side {
  display: block;
}


/* Bloc date/heure/intervenant */
.conference-date-block {
  background: #f7f7f5;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.conference-date {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
	color: #666;

}

.conference-time {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.conference-date-block p {
  font-size: 13px;
  color: #666;
  border-top: 0.5px solid rgba(0,0,0,0.08);
  padding-top: 10px;
  margin: 0;
}

/* Description */
.conference-description-block {
  font-size: 15px;
  color: #444;
  line-height: 1.75;
}

/* Illustration */
.illustation {
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(0,0,0,0.1);
}

.illustration-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}
.illustration-card {
    background-color: var(--wp--preset--color--encadre-bleu-clair);
    border-radius: 12px;
    padding: 1rem;
}

.illustration-card__photo {
    width: 100%;
}

.illustration-card__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.illustration-card__photo a {
    display: block;
    cursor: zoom-in;
}

.lightbox-trigger { cursor: zoom-in; display: block; }

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
	z-index: 99999;
	isolation: isolate;
}

.lightbox-overlay.active { display: flex;  }

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}

.lightbox-close:hover { opacity: 1; }

/* Responsive */
@media (max-width: 640px) {
  .conference-layout { grid-template-columns: 1fr; }
  .conference-right-side { order: -1; }
	  .header-columns .wp-block-column:first-child {
    display: none;
  }
	/* La nav (hamburger) prend tout l'espace à gauche */
  .header-columns .wp-block-column:nth-child(2) {
    flex-basis: auto !important;
    flex-grow: 1;
  }

  /* Le bouton recherche garde sa taille, collé à droite */
  .header-columns .wp-block-column:nth-child(3) {
    flex-basis: auto !important;
    flex-shrink: 0;
  }
  .header-columns .wp-block-column:nth-child(2) .wp-block-navigation {
    justify-content: flex-start !important;
  }
}
.illustration-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* Encadrés */
/* .wp-block-group.is-style-encadre {
  border-radius: 12px;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.08);
} */
/* 
.wp-block-columns:has([class*="encadre"]) {
    align-items: stretch;  
}

.wp-block-columns [class*="encadre"] {
    height: 100%;
} */

.encadre {
    border-radius: 12px;
/*     padding: 1.5rem 2rem; */
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
/*   display: flex; */
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

/* Fonds colorés */
.encadre.encadre--bleu-clair.encadre--fond  { background: var(--wp--preset--color--encadre-bleu-clair); }
.encadre.encadre--bleu-fonce.encadre--fond  { background: var(--wp--preset--color--encadre-bleu-fonce); }
.encadre.encadre--rose.encadre--fond        { background: var(--wp--preset--color--encadre-rose); }
.encadre.encadre--jaune.encadre--fond       { background: var(--wp--preset--color--encadre-jaune); }
.encadre.encadre--beige.encadre--fond       { background: var(--wp--preset--color--encadre-beige); }

/* Contours */
.encadre.encadre--bleu-clair.encadre--contour  { border: 24px solid var(--wp--preset--color--encadre-bleu-clair); }
.encadre.encadre--bleu-fonce.encadre--contour  { border: 24px solid var(--wp--preset--color--encadre-bleu-fonce); }
.encadre.encadre--rose.encadre--contour        { 
	border: 25px solid var(--wp--preset--color--encadre-rose); }
.encadre.encadre--jaune.encadre--contour       { border: 24px solid var(--wp--preset--color--encadre-jaune); }
.encadre.encadre--beige.encadre--contour       { border: 24px solid var(--wp--preset--color--encadre-beige); }


/* Les colonnes qui contiennent un encadré ACF */
.wp-block-column:has(.encadre) {
    display: flex;
    flex-direction: column;
}

.wp-block-column:has(.encadre) .encadre {
    flex: 1;
}

.encadre.alignwide {
    max-width: var(--wp--style--global--wide-size);
    margin-left: auto;
    margin-right: auto;
}

.encadre.alignfull {
    max-width: 100%;
}