/* ============================================================
   Les Soins en Couleurs — MODULE ÉCLIPSE DU 12 AOÛT 2026
   Feuille de style dédiée à blog-eclipse-hossegor-12-aout-2026.html
   Aucun sélecteur global : tout est préfixé « ecl- » ou « .ecl ».
   ============================================================ */

.ecl {
  --vert-nuit: #00190E;
  --vert-maison: #1E3D34;
  --or: #B9975B;
  --or-clair: #E8C878;
  --creme: #F3E9D7;
  --f: 1;                      /* facteur de lumière, piloté par le script */
  margin: 34px 0 40px;
}

.ecl[hidden] { display: none; }

/* ---------- Le ciel : la scène principale ---------- */

.ecl .ecl-ciel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 26px 22px 30px;
  text-align: center;
  color: var(--creme);
  background:
    radial-gradient(120% 90% at 50% 96%,
      rgba(185, 151, 91, calc(0.55 * var(--f))) 0%,
      rgba(185, 151, 91, 0) 62%),
    linear-gradient(175deg, #00190E 0%, #0B2219 46%, #163229 100%);
  box-shadow: 0 18px 46px rgba(0, 25, 14, .28);
  transition: background .9s ease;
}

@media (prefers-reduced-motion: reduce) {
.ecl .ecl-ciel { transition: none; }
}

.ecl .ecl-eyebrow {
  margin: 0 0 4px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--or-clair);
}

.ecl .ecl-eyebrow .ecl-point {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #E8C878;
  vertical-align: middle;
}

.ecl .ecl-ciel.est-en-cours .ecl-point { animation: ecl-pulse 2.2s ease-in-out infinite; }

@keyframes ecl-pulse {
0%,
100% { opacity: 1; transform: scale(1); }
50% { opacity: .35; transform: scale(.72); }
}

@media (prefers-reduced-motion: reduce) {
.ecl .ecl-ciel.est-en-cours .ecl-point { animation: none; }
}

.ecl .ecl-scene { display: block; width: 100%; max-width: 440px; height: auto; margin: 6px auto 2px; }

.ecl .ecl-pct {
  margin: 2px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  line-height: 1;
  font-weight: 500;
  color: var(--or-clair);
}
.ecl .ecl-pct span { font-size: .42em; letter-spacing: .04em; }

.ecl .ecl-legende-pct {
  margin: 2px 0 16px;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .78;
}

.ecl .ecl-etat {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 600;
}

.ecl .ecl-compte {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
  opacity: .82;
}

.ecl .ecl-avert {
  margin: 18px auto 0;
  max-width: 460px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(158, 59, 36, .22);
  border: 1px solid rgba(232, 200, 120, .32);
  font-size: .84rem;
  line-height: 1.5;
}

/* ---------- La frise horaire ---------- */

.ecl .ecl-frise {
  position: relative;
  margin: 32px 0 0;
  padding: 0 44px;
}

.ecl .ecl-rail {
  position: relative;
  height: 5px;
  border-radius: 3px;
  background: rgba(30, 61, 52, .16);
}

.ecl .ecl-rail-fait {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #1E3D34, #B9975B);
  transition: width .6s linear;
}

@media (prefers-reduced-motion: reduce) { .ecl-rail-fait { transition: none; } }

.ecl .ecl-jalon {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  width: 76px;
}
.ecl .ecl-jalon::before {
  content: "";
  display: block;
  width: 11px; height: 11px;
  margin: -3px auto 6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1E3D34;
}
.ecl .ecl-jalon.est-passe::before { background: #B9975B; border-color: #B9975B; }
.ecl .ecl-jalon b {
  display: block;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  color: #1E3D34;
}
.ecl .ecl-jalon span {
  display: block;
  font-size: .7rem;
  line-height: 1.25;
  color: #8B8371;
}

.ecl .ecl-frise-fin { height: 62px; }

/* ---------- Le curseur de relecture ---------- */

.ecl .ecl-rejeu {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #F7F3EA;
  border: 1px solid rgba(30, 61, 52, .1);
}
.ecl .ecl-rejeu label {
  display: block;
  margin-bottom: 8px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8B8371;
}
.ecl .ecl-rejeu input[type="range"] {
  width: 100%;
  accent-color: #B9975B;
  height: 26px;
}
.ecl .ecl-rejeu input[type="range"]:focus-visible { outline: 3px solid #1E3D34; outline-offset: 3px; }

.ecl .ecl-rejeu-bas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.ecl .ecl-heure-simu {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #1E3D34;
}

.ecl .ecl-mini {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid rgba(30, 61, 52, .3);
  border-radius: 999px;
  background: #fff;
  color: #1E3D34;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.ecl .ecl-mini:hover { background: #1E3D34; color: #F3E9D7; }
.ecl .ecl-mini:focus-visible { outline: 3px solid #B9975B; outline-offset: 2px; }
.ecl .ecl-mini[hidden] { display: none; }

/* ---------- Les deux cartes : boussole & check-list ---------- */

.ecl .ecl-duo {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
.ecl .ecl-duo { grid-template-columns: 0.9fr 1.1fr; }
}

.ecl .ecl-carte {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(30, 61, 52, .12);
}
.ecl .ecl-carte h3 {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.34rem;
  color: #1E3D34;
}
.ecl .ecl-carte p.ecl-sous {
  margin: 0 0 14px;
  font-size: .84rem;
  color: #8B8371;
}

.ecl .ecl-cadran { display: block; width: 168px; max-width: 100%; height: auto; margin: 0 auto 10px; }
.ecl .ecl-cap {
  margin: 0;
  text-align: center;
  font-size: .88rem;
  color: #1E3D34;
}

.ecl .ecl-liste { list-style: none; margin: 0; padding: 0; }
.ecl .ecl-liste li { margin-bottom: 9px; }
.ecl .ecl-liste label {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .93rem;
  line-height: 1.45;
  color: #2A2A28;
}
.ecl .ecl-liste input {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: #1E3D34;
}
.ecl .ecl-liste input:focus-visible { outline: 3px solid #B9975B; outline-offset: 2px; }
.ecl .ecl-liste label.est-fait span { text-decoration: line-through; opacity: .5; }

.ecl .ecl-score {
  margin: 12px 0 0;
  font-size: .84rem;
  font-weight: 700;
  color: #B9975B;
}


/* ------------------------------------------------------------
   Reprise sur les règles globales du site
   (styles.css « .article p », premium.css « label »)
   ------------------------------------------------------------ */
.ecl .ecl-liste label {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: #2A2A28;
}
.ecl .ecl-ciel p { color: inherit; }
.ecl .ecl-jalon { padding-top: 17px; }
.ecl .ecl-jalon::before {
  position: absolute;
  left: 50%;
  top: -3px;
  transform: translateX(-50%);
  margin: 0;
}
.ecl .ecl-jalon.est-bas { padding-top: 62px; }
.ecl .ecl-jalon.est-bas::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 1px;
  height: 46px;
  background: rgba(30, 61, 52, .28);
}
.ecl .ecl-frise-fin { height: 112px; }

/* ------------------------------------------------------------
   Petits écrans : la frise se resserre
   ------------------------------------------------------------ */
@media (max-width: 520px) {
  .ecl .ecl-frise { padding: 0 34px; }
  .ecl .ecl-jalon { width: 66px; }
  .ecl .ecl-jalon b { font-size: .8rem; }
  .ecl .ecl-jalon span { font-size: .65rem; }
  .ecl .ecl-rejeu-bas { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------
   Mouvement réduit : on garde l'information, pas l'animation
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .ecl .ecl-rail-fait,
  .ecl .ecl-ciel,
  .ecl .ecl-mini { transition: none; }
}
