/*
 Theme Name:  kld
 Theme URI:    https://seeusoon.digital
 Description:  Child Theme for Divi
 Author:       Xavier BADAIRE
 Author URI:   https://seeusoon.digital
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/

/*@import url("et-line-font/style.css");*/

/*#main-content{
  background-color: #000 !important;
}
*/

.kld-hidden {
  display: none !important;
}
#kld-spotpickr-dialog { display:none; }
.kld-sp-header { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:10px; }
.kld-sp-title { font-weight:700; }
.kld-sp-step { opacity:.7; font-size:12px; }
.kld-sp-body { min-height: 260px; }
.kld-sp-hours { display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; }
.kld-sp-slots { display:grid; grid-template-columns: repeat(2, 1fr); gap:8px; }
.kld-sp-btn { padding:10px; border:1px solid rgba(0,0,0,.15); border-radius:10px; background:#fff; cursor:pointer; }
.kld-sp-btn:hover { border-color: rgba(0,0,0,.35); }
.kld-sp-btn[disabled] { opacity:.35; cursor:not-allowed; }
.kld-sp-footer { display:flex; justify-content:space-between; margin-top:12px; }
.kld-sp-link { background:none; border:none; color:#2271b1; cursor:pointer; padding:0; }
.kld-sp-link:hover { text-decoration:underline; }
.kld-sp-muted { opacity:.7; font-size:12px; margin-top:6px; }
.kld-sp-day-has { font-weight:700; }

a.et_pb_button {
  position: relative !important;
  display: inline-block !important;
  font-weight: 600 !important;
  color: transparent !important;
  text-decoration: none !important;
  background-image: linear-gradient(90deg, #ff4e50, #f9d423, #24c6dc, #514a9d, #ff4e50) !important;
  background-size: 200% !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  transition: all 0.4s ease !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4) !important; /* halo blanc doux */
  animation: shiftGradient 6s linear infinite;
}
/*a.et_pb_button::before {
  background-color: rgba(255,255,255,.3) !important;
  content: " " !important;
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
}*/
a.et_pb_button:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important; /* halo plus intense au survol */
  animation: shiftGradient 3s linear infinite !important;
}

@keyframes shiftGradient {
  0%   { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#LiveMorseTranslator {
  position: relative;
  padding: 24px 28px;
  border: 1px solid rgba(0,0,0,0.5);
  border-radius: 18px;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  font-family: monospace;
  color: #000;
  letter-spacing: 3px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);

  max-height: 200px;
  overflow: hidden;
  cursor: not-allowed;
}

#MorseCode {
  display: block;
  font-size: 1.35rem;
  line-height: 1.6;
  word-break: break-word;

  max-height: 200px;
  overflow-y: auto;
}

/* TIMER FIXÉ EN HAUT */
#MorseTimer {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 9999;
  font-size: 0.85rem;
  font-family: monospace;
  color: #000;
  background: rgba(255,255,255,0.85);
}




/* Grid responsive (2 colonnes dès que possible) */
#LiveMorseSpots{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background-color: #000;
  max-width: 100%;
  border-radius: 1em;
}

/* Spot responsive en ratio 1:1 (sans width/height fixes) */
.spot{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* Le SVG ne doit pas imposer de taille : il s’étire au conteneur */
.spot .spot-svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}


/* Anneau : proportionnel au viewBox, donc responsive */
.spot .spot-ring{
  fill: none;
  stroke: rgba(0, 0, 0, .25);
  stroke-width: 1;
  vector-effect: non-scaling-stroke; /* garde l'épaisseur visuelle stable */
}

/* Le disque “fill” en CSS : taille relative au conteneur (200/300 = 66.666%) */
.spot::before{
  content: "";
  position: absolute;
  z-index: 1;
  width: 66.666%;
  height: 66.666%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #000;
}

/* OFF */
.spot.is-off::before{
  background: #000;
  filter: none;
}

/* ON */
.spot.is-on::before{
  background: #fff59a;
  filter: drop-shadow(0 0 12px rgba(255,235,120,0.6))
          drop-shadow(0 0 24px rgba(255,180,60,0.4));
}

/* STANDBY (avec gradient animé proposé) */
.spot.is-standby::before{
  background:
    radial-gradient(circle at center,
      hsla(52, 100%, 88%, .8) 0%,
      hsla(52, 100%, 88%, .4) 12%,
      hsla(27, 100%, 58%, .1) 35%,
      hsla(0, 0%, 0%, 1) 100%
    ),
    radial-gradient(circle at center,
      hsla(52, 100%, 88%, .2) 0%,
      hsla(27, 100%, 58%, .3) 40%,
      transparent 70%
    );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%, 80% 80%;
  animation: standbyGradientPulse 4s ease-in-out infinite;
  will-change: background-size, filter, transform;
}

@keyframes standbyGradientPulse{
  0%,100%{
    background-size: 100% 100%, 75% 75%;
    filter: drop-shadow(0 0 8px rgba(255,230,140,0.22))
            drop-shadow(0 0 18px rgba(255,160,70,0.14));
    transform: translate(-50%, -50%) scale(1);
  }
  50%{
    background-size: 100% 100%, 105% 105%;
    filter: drop-shadow(0 0 20px rgba(255,240,170,0.5))
            drop-shadow(0 0 40px rgba(255,150,50,0.35));
    transform: translate(-50%, -50%) scale(1.03);
  }
}

/* Titre optionnel (si présent sous le spot) */
.spot .spot-name{
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #FFF;
}

/* Mobile : 1 colonne si trop étroit */
@media (max-width: 620px){
  #LiveMorseSpots{
    grid-template-columns: 1fr;
  }
}




