/* Styles pour le calendrier de l'Avent */
body {
  --hotspotopened : 0, 180, 0;
  --hotspotlocked : 200, 0, 0;
  --hotspotcurrent : 255, 140, 0;
}

.hotspot-avent {
  width: 60px;
  height: 60px;
  display: flex!important;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  /*border: 3px solid white;*/
  transition: opacity 0.5s ease;
  /* scale 0.5s ease;
    border-radius: 50%;
opacity: 0.3;*/
  border: 1px dotted rgba(255, 255, 255,0.5);
}

.hotspot-avent:hover {
  opacity:1;
  font-size:2em;
}

/* Vert : disponible et ouvert */
.hotspot-avent.opened {
  background: rgba(var(--hotspotopened), 0.4);
}

/* Rouge : pas encore disponible */
.hotspot-avent.locked {
  background: rgba(var(--hotspotlocked), 0.4);
}

/* Orange : jour actuel */
.hotspot-avent.current {
  background: rgba(var(--hotspotcurrent), 0.7);
  animation: glow 1.5s infinite;
  opacity:1;
}

@keyframes glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.8); 
  }
  50% { 
    box-shadow: 0 0 40px rgba(255, 140, 0, 1); 
  }
}

/* Style pour hotspots avec SVG */
.hotspot-avent svg {
  max-width: 100%;
  max-height: 100%;
}

/* Hotspot spécifique pour SVG personnalisé */
#id1.hotspot-avent {
  width: auto;
  height: auto;
  background: none;
  border: none;
  opacity: 0.5;
}

#id1 svg {
  width: 435.88px;
  height: 497.48px;
  transform: scaleY(2);
}

/* Popup */
#avent-popup {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.7);
      max-width: 500px;
      width: 90%;
      z-index: 10000;
      text-align: center;
      display: none;
      opacity: 0;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#avent-popup > button{
      position: absolute;
      top: -15px;
      right: 0px;
      width: 48px;
      height: 48px;
      border: none;
      background: #000;
      color: #666;
      font-size: 40px;
      line-height: 20px;
      cursor: pointer;
      padding: 0px;
      transition: all 0.2s ease;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index:999;
      rotate:0deg;
    }

  #avent-popup > button:hover {
    color:#000;
    background:#fff;
    rotate:180deg;
  }
  #avent-popup-content {
   /*     font-size: 1.3em;
      margin-bottom: 0;
      line-height: 1.6;
      color: #333;*/
    }
/* Date tester */
.date-tester {
  font-family: 'Arial', sans-serif;
      position: absolute;
      bottom: 0px;
      right: 0px;
      z-index: 10;
      background: rgba(0,0,0,0.8);
      padding: 15px;
      border-radius: 10px;
      color: white;
}

.date-tester input:focus {
  outline: 2px solid #4CAF50;
}

/* Styles responsive */
@media (max-width: 768px) {
  .hotspot-avent {
    width: 50px;
    height: 50px;
    font-size: 1em;
  }
  
  .date-tester {
    padding: 10px;
  }
  
  #avent-popup {
    max-width: 90%;
  }
}
/* ========================================
   POPUP CALENDRIER DE L'AVENT - STYLES
   ======================================== */

/* États du conteneur */
.avent-popup-container.state-locked {
  --popupcolor : var(--hotspotlocked);
}

.avent-popup-container.state-current {
  --popupcolor : var(--hotspotcurrent);
}

.avent-popup-container.state-opened {
  --popupcolor : var(--hotspotopened);
}

/* Conteneur principal du popup */
.avent-popup-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 20px 20px;
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  font-size: clamp(0.9em, 2vw, 1.2em);
  border: 1px dotted rgba(var(--popupcolor), 0.5);
  color: #fff;
  letter-spacing:1px;
}
.avent-popup-container.dark {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    --colortext : #fff;
    }
.avent-popup-container.light {
    color: #000;
      background: rgba(255,255,255, 0.5);
    --colortext : #000;
    }


/* ========================================
   NUMÉRO DE CASE
   ======================================== */
.avent-case-number {
    position: absolute;
    left: -50px;
    right: -50px;
    top: -2em;
}

.avent-case-badge {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 60px;
      background: rgba(var(--popupcolor), 1);
    border: 1px dotted #fff;
}

.avent-shape-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 15px rgba(102, 126, 234, 0.4));
}

.avent-case-badge-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.8em;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Filtres de couleur SVG selon l'état */
.avent-popup-container.state-locked {

}

.avent-popup-container.state-current {

}

.avent-popup-container.state-opened {

}

/* ========================================
   LOGO PARTENAIRE
   ======================================== */
.avent-logo-container {
  text-align: center;
  margin: 10px 0 20px 0;
}

.avent-logo-link {
  text-decoration: none;
  display: inline-block;
  color:var(--colortext);
}
.avent-logo-link span {
  display:block;
  margin:0.5em 0 0 0;
  font-style:italic;
  font-size:0.6em;
}

.avent-logo-img {
  width: clamp(150px, 13vw, 500px);
  max-height: clamp(75px, 12vh, 150px);
  object-fit: contain;
  object-position:center;
}

/* ========================================
   NOM DU PARTENAIRE
   ======================================== */
.avent-partner-name {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.4em;
  font-weight: 600;
  text-align: center;
}

/* ========================================
   DATE / STATUT
   ======================================== */

.avent-date-text {
    text-align: center;
    font-weight: normal;
    font-size: 0.8em;
    margin: 0;
}

/* ========================================
   DESCRIPTION
   ======================================== */
.avent-description {
    font-size: 1em;
    line-height: 1.2em;
    text-align: center;
}

/* ========================================
   OFFRE (CAS 2 & 3)
   ======================================== */
.avent-offer-wrapper {
    margin:20px 0 10px 0;
}

.avent-offer-link {
  text-decoration: none;
  display: block;
}

.avent-offer-box {
    padding: 20px;
    background: linear-gradient(135deg, rgb(var(--popupcolor)), #764ba2);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease;
}

.avent-offer-box.clickable {
  cursor: pointer;
}

.avent-offer-box.clickable:hover {
  transform: scale(1.02);
}

.avent-offer-text {
  margin: 0;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  text-align: center;
}

/* ========================================
   CONTENT SUPPLÉMENTAIRE (CAS 2 & 3)
   ======================================== */
.avent-content-wrapper {
  margin-bottom: 15px;
}

.avent-content-text {
  font-size: 0.8em;
  line-height: 1.2em;
  text-align: center;
}

/* ========================================
   FORMULAIRE DE NOTIFICATION (CAS 1)
   ======================================== */
.avent-notification-form {
    margin-top: 20px;
    padding: 15px;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color:#fff;
}

.avent-notification-form input[type="checkbox"] + span {
  color:#fff;
  line-height:1em;
}

.avent-notification-form button {
    background: linear-gradient(135deg, rgb(var(--popupcolor)), #764ba2)!important
}
.avent-notification-header {
  text-align: center;
  /*margin-bottom: 10px;*/
}

.avent-notification-icon {
  font-size: 1.5em;
  display: block;
  margin-bottom: 5px;
}

.avent-notification-title {
    /* margin: 5px 0 10px 0; */
    text-align: center;
    /* color: #667eea; */
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 0.5em;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 600px) {
  .avent-popup-container {
    padding: 20px;
    max-width: 90%;
  }
  
  .avent-case-badge {
    width: 40px;
    height: 40px;
  }
  
  .avent-case-badge-number {
    font-size: 1.6em;
  }
  
  .avent-logo-img {
    max-width: 150px;
    max-height: 80px;
  }
  
  .avent-partner-name {
    font-size: 1.2em;
  }
}