.agenda-card-wrapper {
  width: 238px;
  font-family: 'euclid_circular_b_medium-webfont', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.span_6 .subheader {
        font-size: 14px !important ;
}

body.single-sortie_serie #header-outer #top nav > ul > li > a,
body.single-sortie_serie #header-outer #top .sf-menu > li > a,
body.single-sortie_serie #header-outer #top .sf-menu > li > a span {
  color: #ffffff !important;
  fill: #ffffff !important;
}

@media (max-width: 767px) {
  .agenda-card-v2 {
    width: 100%;
  }
  .agenda-thumbnail-v2 {
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

@media screen and (max-width: 767px) {
  .agenda-logo-v2 {
    top: 12px;
    right: 12px;
    position: absolute !important;
top: 6px;
right: 6px;
z-index: 10;
width: 28px;
height: 28px;
pointer-events: none;
  }

  .agenda-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* pour éviter le décalage */
    height: auto; /* s'ajuste à la hauteur du contenu */
    position: relative;
  }

  .agenda-thumbnail-v2 {
    width: 140px !important;
    height: 180px !important;
    position: relative;
    overflow: hidden;
  }
}



/* Bloc visuel */
.agenda-card-v2 {
  width: 238px;
  height: 288px;

  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  padding-top: 35px;
   align-items: flex-start;
   border-radius: 8px;
}

.agenda-thumbnail-v2 {
  width: 100%;
  max-width: 166px; /* Limite la largeur si besoin */
  height: 214px !important;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  position: relative; /* 🔥 essentiel pour que le logo .agenda-logo-v2 fonctionne */
  overflow: hidden;
}
.agenda-thumbnail-v2 img {
  width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 8px;
   display: block;
}

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

.archive-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.archive-card h2 {
  font-size: 18px;
  margin: 0;
}
.archive-card p {
  margin: 8px 0;
  font-size: 14px;
  color: #444;
}
.archive-card .button {
  margin-top: auto;
  display: inline-block;
  background: #0033cc;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
}

.archive-card .meta {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}

.agenda-logo-v2 {
  position: absolute;
    top: 6px;
    right: 6px;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 10;
}

.agenda-logo-v2 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

}

/* Bloc texte */
.agenda-infos-v2 {
  width: 100%;
  text-align: left;
  padding: 0 4px;
  line-height: 1.2;
}

.agenda-title-v2 {
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 4px;
}

.agenda-date-v2 {
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}
.td-page-header .td-page-title,
.td-page-header .td-page-title span {
  color: #fff !important;
}
.agenda-format-genre-v2 {
  font-size: 12px;
  color: #dfdede;
}

/* Bouton */
.agenda-bottom-v2 {
  width: 100%;
  padding: 8px 4px 0;
  text-align: center;
}


.agenda-btn-v2 {
  display: block;
  width: 238px;
  height: 30px;
  background: #112cb6;
  color: #fff !important;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 30px;
  text-align: center;
  text-decoration: none !important ;
  font-family: 'euclid_circular_b_medium-webfont', sans-serif;
  border-radius: 19px;
}
.agenda-btn-v2:hover {
  background: #222;
  color: #fff !important;
  text-decoration: none !important
}

.agenda-btn-v3 {
  display: block !important;
  width: auto;
  height: 30px;
  background: #000;
  color: #fff !important;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 30px;
  text-align: center;
  text-decoration: none !important
  font-family: 'euclid_circular_b_medium-webfont', sans-serif;
  border-radius: 0px;
}
.agenda-btn-v3:hover {
  background: #222;
  color: #fff !important;
}


/* Responsive grid */
.agenda-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .agenda-card-v2 {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .agenda-grid {
    grid-template-columns: 1fr;
  }
}



.agenda-plugin .agenda-main-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
}

.agenda-plugin .agenda-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 50px;
}

.agenda-logo {
 position: absolute;
 top: 16px;
 left: 16px;
 z-index: 10;
 width: 35px;
 height: 30px;
 border-radius: 20px;
}

.agenda-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 20px;
}

.agenda-plateforme {
  color: #ff3f3f;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 6px;
}

.agenda-plugin .agenda-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.agenda-meta {
  font-size: 14px;
  color: #ddd;
  margin-bottom: 6px;
}

.agenda-links {
  margin-top: 12px;
}

.agenda-link {
  color: white;
  font-size: 14px;
  text-decoration: underline;
  display: inline-block;
  margin-right: 12px;
}

.agenda-link:hover {
  opacity: 0.8;
}

.agenda-synopsis {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #1b1464, #3c1e8e);
  color: white;
  padding: 24px;
  border-radius: 16px;
  z-index: 10;
  overflow-y: auto;
}
.agenda-synopsis::-webkit-scrollbar {
  width: 6px;
}
.agenda-synopsis::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.agenda-synopsis-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 22px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}


.agenda-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: linear-gradient(135deg, #1b1464, #3c1e8e);
  border-radius: 16px;
  color: white;
  padding: 24px;
  overflow: hidden;
  min-height: auto;
  height: auto;
}

.agenda-filters {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 30px;
  align-items: center;
}

.agenda-filters select,
.agenda-filters button,
.agenda-filters .reset-filters {
  max-width: 160px;
  white-space: nowrap;
}

.agenda-meta-double {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: #ddd;
  margin-bottom: 6px;
}
.agenda-btn-full {
  display: block;
  width: 70%;
  height: 34px;
  background: white;
  color: black !important;
  border-radius: 12px;
  text-decoration: none !important;
  text-transform: uppercase;
  text-align: center;
  padding: 2px;
  overflow: hidden;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease;
    font-family: 'euclid_circular_b_medium-webfont', sans-serif !important;
}

.agenda-btn-full:hover {
  background: #032be7;
  color: black !important;

}


.agenda-meta-double span {
  flex: 1;
  white-space: nowrap;
}

#agenda-toggle-filters {
  display: none;
}

@media screen and (max-width: 600px) {
  #agenda-toggle-filters {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
  }

  .agenda-filters {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .agenda-filters.visible {
    display: flex;
    max-height: 500px;
    opacity: 1;
  }

  .agenda-filters select,
  .agenda-filters button,
  .agenda-filters .reset-filters {
    width: 100%;
    max-width: 100%;
  }

  .agenda-plugin .agenda-title {
    font-size: 15px;
  }

  .agenda-plugin .agenda-meta,
  .agenda-plugin .agenda-meta-double span {
    font-size: 13px;
    margin-bottom: 4px;
  }
}
@media (max-width: 767px) {
  .agenda-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 767px) {
  .agenda-grid-wrapper {
    padding-left: 1px;
    padding-right: 1px;
  }
}
@media (max-width: 767px) {
  .agenda-grid {
    grid-template-columns: 1fr; /* une seule colonne fluide */
  }
}

/* Bouton visible uniquement sur mobile */
#open-filters {
  display: none;
  padding: 10px 16px;
  background: #032be7;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
   margin: 20px auto; /* centrage horizontal */
}
#agenda-filters {
  width: 100%;
}

/* Panel latéral mobile */
.agenda-filters-panel {
  position: fixed;
   top: 50px;
   left: 0;
   width: 100vw;
   height: 100vh;
   height: calc(100vh - 50px);
   background: #fff;
   z-index: 1000000;
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   transform: translateX(-100%);
   transition: transform 0.3s ease-in-out;
   padding-top: 100px; /* espace pour header */
   padding-bottom: 50px; /* espace pour menu en bas */
   box-sizing: border-box;
}


.agenda-close-filters {
  position: sticky;
   top: 0;
   background: white;
   z-index: 1000010;
   border: none;
   width: 100%;
   text-align: right;
   padding: 12px 20px;
}
.agenda-actions button {
  background-color: #032be7 !important;
  color: #fff; /* si le texte est noir sur bleu */
  border: none; /* optionnel, pour virer bordure noire */
}

/* Responsive */
@media screen and (max-width: 768px) {
  #open-filters {
    display: block;
margin: 20px auto;
padding: 10px 16px;
background: #032be7;
color: white;
border: none;
border-radius: 10px;
font-size: 16px;
text-align: center;
  font-family: euclid_circular_b_medium-webfont;
  }

  .agenda-filters {
    display: none !important; /* on cache la version classique */
  }
.agenda-filters-panel.visible {
 transform: translateX(0%);
   }
}
@media screen and (max-width: 768px) {
  #agenda-filters-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    z-index: 10000030;
  }

  #agenda-filters-mobile select,
  #agenda-filters-mobile button,
  #agenda-filters-mobile .reset-filters {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: white;
    color: #000 !important;
    box-sizing: border-box;
    display: block;
  }
}

#agenda-filters-mobile {
min-height: 70%;
}
#agenda-filters-mobile {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#agenda-filters-mobile {
  padding-top: 20px; /* ajuste selon la hauteur de ton header */
}
#agenda-filters-mobile .agenda-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

#agenda-filters-mobile .agenda-actions button,{
  flex: 1;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: white;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: nowrap;
  white-space: nowrap;
  padding: 8px 12px;         /* réduit la hauteur */
   font-size: 13px;           /* police plus fine */
   font-family: 'euclid_circular_b_medium-webfont', sans-serif;
 line-height: 1.2;
}
#agenda-filters-mobile select {
  height: 42px;
  font-size: 14px;
  margin-bottom: 10px;
}
#agenda-filters-mobile .reset-filters {
  display: flex;
  justify-content: center;
  align-items: center; /* 👈 Centrage vertical parfait */
}
@media screen and (max-width: 767px) {
  .agenda-card-wrapper {
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (max-width: 767px) {
  .agenda-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 8px;

  }

  .agenda-card-wrapper {
    width: 100%;
  }

  .agenda-card-v2 {
    width: 100%;
    height: 250px;
    padding: 8px;
    padding-top: 35px;
  }

  .agenda-thumbnail-v2 {
    width: 140px !important;
    height: 180px !important;
  }

  .agenda-logo-v2 {
    width: 35px;
    height: 25px;
    top: 4px;
    right: 4px;
    border-radius: 10px;
    overflow: hidden;
      z-index: 10;
  }

  .agenda-infos-v2 {
    padding: 0 2px;
  }

  .agenda-title-v2 {
    font-size: 13px;
  }

  .agenda-date-v2 {
    font-size: 12px;
  }

  .agenda-format-genre-v2 {
    font-size: 11px;
  }

  .agenda-btn-v2 {
    width: 100%;
    height: 26px;
    font-size: 11px;
    line-height: 26px;
  }
}
@media screen and (max-width: 374px) {
  .agenda-grid {
    grid-template-columns: 1fr;
  }
}
/* Applique uniquement sur desktop */
@media (min-width: 768px) {
  .agenda-filters select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #f8f8f8;
    border: 1px solid #ccc;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    color: #111;
    margin-right: 12px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 36px;
    transition: all 0.2s ease-in-out;
  }

  .agenda-filters select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
  }

  .agenda-filters button[type="submit"] {
    padding: 10px 20px;
    border: none;
    background-color: #111;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 12px;
  }

  .agenda-filters .reset-filters {
    color: #1a73e8;
    font-weight: bold;
    margin-left: 16px;
    text-decoration: none;
  }
}
.agenda-thumbnail-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.agenda-thumbnail-container .agenda-thumbnail-v2 {
  width: 100%;
  max-width: 166px;
  height: 214px !important;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

@media screen and (max-width: 767px) {
  .agenda-thumbnail-container .agenda-thumbnail-v2 {
    width: 140px !important;
    height: 180px !important;
  }

  .agenda-thumbnail-container {
    justify-content: center;
  }
}
