/* =========================================================
   Gate / Compte à rebours — fond olive, esthétique site
   ========================================================= */

#gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #928749;
  color: #e8dfb8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 2rem;
}

.gate-bg-title {
  position: absolute;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(8rem, 24vw, 26rem);
  font-weight: 900;
  color: rgba(232, 223, 184, 0.05);
  letter-spacing: -0.05em;
  bottom: -8vh;
  left: -3vw;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-3deg);
  user-select: none;
}

.gate-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  z-index: 1;
}

.gate-logo {
  width: clamp(110px, 18vw, 180px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(6px 6px 0 #c6622e);
  display: block;
}

.gate-title {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2.8rem, 9vw, 6rem);
  color: #e8dfb8;
  margin: 0 0 0.3em;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-shadow: 5px 5px 0 rgba(198, 98, 46, 0.4);
  text-transform: uppercase;
  white-space: nowrap;
}
.gate-title .q {
  font-size: 0.55em;
  opacity: 0.85;
  position: relative;
  top: -0.15em;
  padding: 0 0.05em;
}

.gate-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: #f5efd7;
  margin: 0 0 2rem;
}

.gate-meta {
  margin-bottom: 1.5rem;
}
.gate-launch-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e8dfb8;
  opacity: 0.7;
  margin-bottom: 0.4em;
}
.gate-launch-date {
  display: inline-block;
  background: #c6622e;
  color: #e8dfb8;
  padding: 0.4em 1em;
  font-weight: 900;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: skewX(-6deg);
}

.gate-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  max-width: 520px;
  margin: 2rem auto;
}

.gate-unit {
  background: rgba(0, 0, 0, 0.18);
  border: 2px solid #e8dfb8;
  padding: 0.9rem 0.3rem;
}
.gate-unit .num {
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  color: #e8dfb8;
  letter-spacing: -0.02em;
}
.gate-unit .label {
  display: block;
  margin-top: 0.4em;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.75;
}

.gate-info {
  margin-top: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: #f5efd7;
  line-height: 1.5;
}

/* Password */
.gate-pwd {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(232, 223, 184, 0.2);
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.gate-pwd label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e8dfb8;
  opacity: 0.7;
  margin-bottom: 0.6em;
}
.gate-pwd-row {
  display: flex;
  gap: 0.4rem;
}
.gate-pwd input {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(232, 223, 184, 0.3);
  color: #e8dfb8;
  padding: 0.7em 0.9em;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s;
}
.gate-pwd input::placeholder { color: rgba(232, 223, 184, 0.45); }
.gate-pwd input:focus { border-color: #c6622e; background: rgba(0, 0, 0, 0.3); }
.gate-pwd input.error { border-color: #c6622e; animation: gate-shake 0.3s; }
.gate-pwd button {
  background: #c6622e;
  color: #e8dfb8;
  border: 1.5px solid #c6622e;
  padding: 0 1.2em;
  font-family: 'Archivo Black', sans-serif;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
}
.gate-pwd button:hover { background: transparent; color: #c6622e; }
.gate-pwd-error {
  margin-top: 0.6em;
  font-size: 0.8rem;
  color: #c6622e;
  min-height: 1em;
  font-weight: 600;
}

@keyframes gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 520px) {
  #gate-overlay { padding: 1.2rem; }
  .gate-countdown { gap: 0.3rem; }
  .gate-unit { padding: 0.6rem 0.2rem; }
  .gate-unit .num { font-size: 1.7rem; }
  .gate-unit .label { font-size: 0.55rem; letter-spacing: 0.1em; }
  .gate-title { white-space: normal; }
}
