/* ============================================
   HERVANA — Page Compteur (ouverture)
   Réutilise les variables de styles.css
============================================ */

.nav__links a.active {
  color: var(--text);
}
.nav__links a.active::after {
  width: 100%;
  background: var(--primary);
}

/* ============================================
   COUNTDOWN HERO
============================================ */
.cd-hero {
  padding: 180px 40px 80px;
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
}
.cd-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.cd-hero__title {
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 22px 0 0;
}
.cd-hero__title em {
  font-style: normal;
  color: var(--primary);
  display: inline-block;
}

.cd-hero__sub {
  max-width: 600px;
  margin: 26px auto 0;
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
}
.cd-hero__sub .reg { font-size: 0.5em; vertical-align: super; }

/* ===== Compte à rebours ===== */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  margin: 56px 0 10px;
  flex-wrap: wrap;
}

.cd-block {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 150px;
  padding: 30px 12px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .4s, transform .3s;
}
.cd-block::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  opacity: .6;
}
.cd-block:hover {
  border-color: var(--primary-line);
  transform: translateY(-4px);
}

.cd-block__num {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 88px);
  line-height: 0.9;
  color: var(--text);
  letter-spacing: 0.01em;
}
.cd-block__label {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.cd-sep {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 70px);
  color: var(--primary);
  line-height: 1;
  padding-top: 26px;
  opacity: .5;
}

/* ===== Date texte ===== */
.cd-hero__date {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 4px;
}

/* ===== Message d'ouverture (caché par défaut) ===== */
.cd-open {
  display: none;
  margin: 50px 0 10px;
}
.cd-open__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--primary-line);
  background: var(--primary-soft);
  border-radius: 30px;
  padding: 8px 18px;
  margin-bottom: 20px;
}
.cd-open__title {
  font-family: var(--display);
  font-size: clamp(60px, 10vw, 130px);
  line-height: 0.9;
  font-weight: 400;
}
.cd-open__title em {
  font-style: normal;
  color: var(--primary);
}

/* ===== CTA ===== */
.cd-hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .cd-hero { padding: 140px 22px 60px; }
  .cd-sep { display: none; }
  .cd-block { width: 42%; }
}
@media (max-width: 380px) {
  .cd-block { width: 46%; padding: 22px 8px 16px; }
}
