/**
Theme Name: Astra Child - Fest Country Antonin
Author: ADNBSL Inc.
Author URI: https://adnbsl.com
Description: Thème officiel du du Festival Country St-Antonin.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child-fest-country-antonin
Template: astra
*/

.blur-background {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.01);  /* Une très légère opacité pour activer le backdrop-filter */
}

/* --- LIGNE CENTRALE --- */
.post-timeline {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
}
.post-timeline:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 0;
}
.post-timeline .timeline-progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  background: #a97c2f;
  transform: translateX(-50%);
  z-index: 0;
  margin: 0 !important;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px 0 #a97c2f55;
}

/* --- ALTERNANCE DES BLOCS --- */
.post-timeline > li {
  position: relative;
  min-height: 70px;
  margin-bottom: 10px;
  z-index: 2;
  list-style: none;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
}
.post-timeline > li:nth-child(odd) .timeline-item {
  margin-right: auto;
  margin-left: 0;
  text-align: right!important;
  width: 47%;
  position: relative;
}
.post-timeline > li:nth-child(odd) .timeline-item::after {
  right: -20px;
}
.post-timeline > li:nth-child(even) .timeline-item {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
  width: 47%;
  position: relative;
}
.post-timeline > li:nth-child(even) .timeline-item::after {
  left: -20px;
}

/* --- CERCLE + ÉTOILE SUR LA LIGNE CENTRALE --- */
.post-timeline > li::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #fff;
  border: 4px solid #a97c2f;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  z-index: 20;
}
.post-timeline > li::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: none;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" fill="%23a97c2f"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <title>start-favorite</title> <desc>Created with Sketch Beta.</desc> <defs> </defs> <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage"> <g id="Icon-Set-Filled" sketch:type="MSLayerGroup" transform="translate(-154.000000, -881.000000)" fill="%23a97c2f"> <path d="M186,893.244 L174.962,891.56 L170,881 L165.038,891.56 L154,893.244 L161.985,901.42 L160.095,913 L170,907.53 L179.905,913 L178.015,901.42 L186,893.244" id="start-favorite" sketch:type="MSShapeGroup"> </path> </g> </g> </g></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 21;
  pointer-events: none;
}

/* --- RESPONSIVE --- */
/* Grands écrans */
@media (min-width: 1201px) {
  .post-timeline .timeline-item {
    min-width: 400px;
    max-width: 45%;
  }
}

/* Tablettes et petits écrans (768px - 1023px) */
@media (max-width: 1023px) {
  .post-timeline {
    padding: 25px 0;
  }
  
  .post-timeline .timeline-item {
    min-width: 220px;
    max-width: 40%;
    padding: 12px 15px;
  }
  
  .post-timeline > li {
    min-height: 50px;
    margin-bottom: 15px;
  }
  
  .post-timeline > li::before {
    width: 28px;
    height: 28px;
    border-width: 3px;
  }
  
  .post-timeline > li::after {
    width: 18px;
    height: 18px;
  }
  
  .post-timeline:before,
  .post-timeline .timeline-progress {
    width: 3px;
  }
}

/* Tablettes en mode portrait et mobiles (0 - 900px) */
@media (max-width: 900px) {
  .post-timeline {
    padding: 20px 0;
  }
  
  /* Suppression de la ligne de temps */
  .post-timeline:before,
  .post-timeline .timeline-progress {
    display: none !important;
  }
  
  /* Suppression des icônes cercle/étoile */
  .post-timeline > li::before,
  .post-timeline > li::after {
    display: none !important;
  }
  
  .post-timeline > li,
  .post-timeline > li:nth-child(odd),
  .post-timeline > li:nth-child(even) {
    width: 100% !important;
    left: 0 !important;
    margin: 0 0 20px 0 !important;
    text-align: left !important;
    padding: 15px !important;
    display: block !important;
  }
  
  .timeline-item {
    width: 100% !important;
    margin: 0 !important;
    min-width: auto !important;
    max-width: 100% !important;
    padding: 15px !important;
    border-left: 3px solid #a97c2f;
  }
  
  /* Suppression des triangles */
  .post-timeline > li:nth-child(odd) .timeline-item::after,
  .post-timeline > li:nth-child(even) .timeline-item::after {
    display: none;
  }
  
  .site-event, .date-event {
    font-size: 0.95em;
  }
  
}

/* Mobiles (321px - 480px) */
@media (max-width: 480px) {
  .post-timeline {
    padding: 15px 0;
  }
  
  .post-timeline > li {
    padding: 12px !important;
    margin-bottom: 15px;
  }
  
  .post-timeline .timeline-item {
    padding: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
  
  .site-event, .date-event {
    font-size: 0.9em;
  }
  
  .site-event::before,
  .date-event::before {
    width: 0.9em;
    height: 0.9em;
  }
}

/* Très petits écrans (0 - 320px) */
@media (max-width: 320px) {
  .post-timeline > li {
    padding: 10px !important;
    margin-bottom: 12px;
  }
  
  .post-timeline .timeline-item {
    padding: 10px !important;
    border-radius: 4px;
    border-left-width: 2px;
  }
  
  .site-event, .date-event {
    font-size: 0.85em;
  }
  
  .site-event::before,
  .date-event::before {
    width: 0.85em;
    height: 0.85em;
  }
}

/* [a] Alignement à droite du texte et du contenu dans les blocs de gauche */

@media (max-width: 900px) {
  .post-timeline > li:nth-child(odd) .timeline-item,
  .post-timeline > li:nth-child(odd) .timeline-item * {
    text-align: left!important;
    justify-content: flex-start!important;
  }
}

.post-timeline > li:nth-child(odd) .timeline-item,
.post-timeline > li:nth-child(odd) .timeline-item * {
  text-align: right;
  justify-content: flex-end;
}

/* [b] Icônes déjà centrées sur la ligne centrale via ::before/::after sur li */

/* [c] Ligne du temps commence au premier cercle/étoile */
.post-timeline:before,
.post-timeline .timeline-progress {
  margin-top: 18px !important;
  margin-left: 0 !important;
}

/* [c] Fond blanc pour chaque bloc */
.post-timeline .timeline-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  padding-top: 0px!important;
  padding-bottom: 20px!important;
  display: inline-block;
  min-width: 300px;
  max-width: 90%;
}
.post-timeline .timeline-item img {
  border-radius: 8px 8px 0 0;
}
/* Centrage parfait des icônes sur la ligne centrale */
.post-timeline > li::before,
.post-timeline > li::after {
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Ligne du temps commence au premier cercle/étoile */
.post-timeline:before,
.post-timeline .timeline-progress {
  margin-top: 35px !important;
  height: calc(100% - 35px) !important;
  margin-left: 10px!important;
}

/* --- COIN TRIANGULAIRE ENTRE LE BLOC ET LE CERCLE --- */
.post-timeline > li:nth-child(odd) .timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 18px solid #fff;
  z-index: -1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.07));
}

.post-timeline > li:nth-child(even) .timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -16px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-right: 18px solid #fff;
  z-index: 15;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.07));
}

.site-event, .date-event {
  display: inline-flex;
  align-items: center;
  gap: 0em;
  font-size: 1em;
  line-height: 1.2;
}

.site-event::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 0.98em;
  height: 0.98em;
  margin-right: 0;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg" aria-labelledby="locationIconTitle" stroke="%23000" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="%23000"><path d="M12,21 C16,16.8 18,12.8 18,9 C18,5.6862915 15.3137085,3 12,3 C8.6862915,3 6,5.6862915 6,9 C6,12.8 8,16.8 12,21 Z"></path><circle cx="12" cy="9" r="1"></circle></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.date-event::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 0.90em;
  height: 0.90em;
  margin-right: 2px;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg" aria-labelledby="timeIconTitle" stroke="%23000" stroke-width="1" stroke-linecap="square" stroke-linejoin="miter" fill="none" color="%23000"><circle cx="12" cy="12" r="10"></circle><polyline points="12 5 12 12 16 16"></polyline></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


@media only screen and (max-width: 976px) {
.uagb-block-84031513.uagb-tabs__hstyle4-tablet .uagb-tab { border-radius: 4px!important;} 
}