/* =========================================================
   Clichy Conduite — Page "Site en construction"
   ========================================================= */

:root {
  --white: #ffffff;
  --pink-500: #e84a92;
  --pink-400: #ff5ba8;
  --pink-300: #ff8cc4;
  --pink-600: #c72b74;
  --anthracite-900: #0f0d13;
  --anthracite-800: #17141d;
  --anthracite-700: #221e29;
  --text-muted: rgba(255, 255, 255, 0.72);
  --glass-bg: rgba(20, 16, 24, 0.38);
  --glass-bg-soft: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.22);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--anthracite-900);
  color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   HERO — full viewport
   ========================================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--anthracite-900);
  opacity: 0;
  animation: hero-fade-in 1.1s var(--ease-out) 0.2s both;
}

/* Entrance: the whole background fades in shortly after load, with a
   short delay, instead of popping in immediately. */
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-media__img,
.hero-media__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 46%;
}

.hero-media__video {
  transform-origin: 66% 48%;
  will-change: transform, opacity;
  animation:
    hero-drive 22s ease-in-out infinite alternate,
    hero-video-loop-mask 2.75s ease-in-out infinite;
}

/* Very soft opacity dip timed to the clip's own loop point (2.75s) —
   smooths the wide-shot/close-up jump cut when it restarts. */
@keyframes hero-video-loop-mask {
  0%   { opacity: 1; }
  90%  { opacity: 1; }
  96%  { opacity: 0.65; }
  100% { opacity: 1; }
}

/* Slow, subtle "Ken Burns" style motion on the photo itself — the car's
   pixels are never touched, only a gentle continuous camera move, so it
   reads as the car driving rather than a static picture. */
@keyframes hero-drive {
  0%   { transform: scale(1) translateX(0); }
  100% { transform: scale(1.07) translateX(-1.1%); }
}

/* A soft light sweep that periodically glides across the scene, echoing
   the speed-streaks already in the photo — reinforces the sense of speed
   without ever touching the car itself. */
.hero-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-shine::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -35%;
  width: 32%;
  height: 140%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 100%
  );
  transform: skewX(-16deg);
  mix-blend-mode: screen;
  animation: shine-sweep 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 1.2s;
}

@keyframes shine-sweep {
  0%   { left: -35%; opacity: 0; }
  8%   { opacity: 1; }
  32%  { opacity: 1; }
  42%  { left: 115%; opacity: 0; }
  100% { left: 115%; opacity: 0; }
}

/* Gradient treatment: keeps the middle (the car) bright and untouched,
   only deepens gently at the very top (header) and bottom (content/footer)
   so text stays legible without a dark veil across the whole photo. */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 8, 14, 0.55) 0%,
      rgba(10, 8, 14, 0.10) 16%,
      rgba(10, 8, 14, 0) 38%,
      rgba(10, 8, 14, 0) 56%,
      rgba(12, 9, 16, 0.42) 78%,
      rgba(10, 7, 13, 0.72) 100%
    ),
    linear-gradient(
      to right,
      rgba(8, 6, 12, 0.38) 0%,
      rgba(8, 6, 12, 0.12) 38%,
      rgba(8, 6, 12, 0) 58%,
      rgba(8, 6, 12, 0) 100%
    );
}

/* Soft pink ambient glow, purely decorative, very subtle motion */
.hero-glow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: -10%;
  background:
    radial-gradient(38% 30% at 82% 88%, rgba(232, 74, 146, 0.30), transparent 70%),
    radial-gradient(30% 24% at 10% 8%, rgba(232, 74, 146, 0.18), transparent 70%);
  mix-blend-mode: screen;
  animation: glow-drift 14s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  0%   { opacity: 0.7; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 1;   transform: translate3d(-1.5%, -1.5%, 0) scale(1.04); }
}

/* =========================================================
   HEADER / LOGO
   ========================================================= */

/* Solid black brand bars, top and bottom — logo centered up top,
   contact links centered at the bottom. */
.top-bar,
.bottom-bar {
  position: relative;
  z-index: 3;
  width: 100%;
  background: var(--anthracite-900);
  border: 0 solid rgba(232, 74, 146, 0.55);
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(14px, 2.6vh, 22px) 20px;
  border-bottom-width: 2px;
  opacity: 0;
  transform: translateY(-16px);
  animation: fade-in-down 0.9s var(--ease-out) 0.15s forwards;
}

.logo {
  height: clamp(112px, 16vw, 168px);
  width: auto;
}

.bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(16px, 2.8vh, 24px) 20px clamp(14px, 2.4vh, 20px);
  border-top-width: 2px;
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 1.1s forwards;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.contact-link:hover,
.contact-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.contact-link--whatsapp:hover,
.contact-link--whatsapp:focus-visible { border-color: #25d366; }
.contact-link--mail:hover,
.contact-link--mail:focus-visible { border-color: var(--pink-400); }

.contact-icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.contact-link--whatsapp .contact-icon { fill: #25d366; }
.contact-link--mail .contact-icon { fill: var(--pink-400); }

.copyright {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 4vh, 32px) clamp(14px, 5vw, 32px) clamp(16px, 3vh, 28px);
}

@media (min-width: 761px) {
  .hero-content { justify-content: flex-start; padding-left: clamp(32px, 6vw, 88px); }
}

.hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 2vh, 20px);
  width: 100%;
  max-width: 800px;
  padding: clamp(26px, 4.4vh, 44px) clamp(20px, 5vw, 48px);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(22px, 3.4vw, 34px);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  opacity: 0;
  transform: translateY(26px);
  animation: fade-in-up 0.9s var(--ease-out) 0.22s forwards;
}

@media (min-width: 761px) {
  .hero-card {
    align-items: flex-start;
    text-align: left;
    max-width: 620px;
  }
  .countdown-grid { justify-content: flex-start; }
  .subtitle { max-width: 520px; }
}

@media (min-width: 1180px) {
  .hero-card { max-width: 660px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 20px;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(232, 74, 146, 0.45);
  opacity: 0;
  transform: translateY(18px);
  animation: fade-in-up 0.8s var(--ease-out) 0.35s forwards;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.7); }
}

.title {
  margin: 0;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(22px);
  animation: fade-in-up 0.9s var(--ease-out) 0.48s forwards;
}

.subtitle {
  margin: 0;
  max-width: 620px;
  font-size: clamp(14.5px, 2vw, 17.5px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-muted);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(22px);
  animation: fade-in-up 0.9s var(--ease-out) 0.62s forwards;
}

/* =========================================================
   COUNTDOWN
   ========================================================= */

.countdown {
  width: 100%;
  margin-top: clamp(6px, 1vh, 10px);
  opacity: 0;
  transform: translateY(24px);
  animation: fade-in-up 0.9s var(--ease-out) 0.78s forwards;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(10px, 2.4vw, 20px);
  flex-wrap: wrap;
}

.countdown-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 84px;
  padding: clamp(14px, 2.4vw, 22px) clamp(12px, 2.6vw, 26px);
  background: var(--glass-bg-soft);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.countdown-value {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5.4vw, 52px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 0%, #ffd7ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

.countdown-value.is-ticking {
  animation: value-pop 0.35s var(--ease-out);
}

@keyframes value-pop {
  0%   { transform: translateY(-6px) scale(0.94); opacity: 0.5; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.countdown-label {
  font-size: clamp(9.5px, 1.4vw, 11.5px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =========================================================
   LAUNCH DATE / FOOTER
   ========================================================= */

.launch-date {
  margin: 4px 0 0;
  font-size: clamp(12.5px, 1.8vw, 14.5px);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  animation: fade-in-up 0.9s var(--ease-out) 0.92s forwards;
}

.launch-date strong {
  color: var(--white);
  font-weight: 700;
}

/* =========================================================
   ANIMATIONS (entrance)
   ========================================================= */

@keyframes fade-in-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-down {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-glow { animation: none; opacity: 0.85; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .hero-media__img { object-position: 70% 46%; }
}

@media (max-width: 640px) {
  .hero-media__img { object-position: 74% 44%; }

  .hero-card { gap: 12px; }

  .logo { height: 96px; }

  .countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 340px;
    margin: 0 auto;
  }

  .countdown-item { min-width: 0; padding: 16px 10px; }

  .subtitle br { display: none; }
}

@media (max-width: 380px) {
  .title { font-size: clamp(26px, 8vw, 32px); }
  .countdown-value { font-size: 30px; }
}

/* Short viewports (landscape phones / small laptops in dev tools) */
@media (max-height: 560px) and (orientation: landscape) {
  .top-bar { padding: 8px 20px; }
  .logo { height: 70px; }
  .hero-card { gap: 8px; padding: 14px 20px 10px; }
  .title { font-size: clamp(22px, 4vw, 30px); }
  .subtitle { display: none; }
  .countdown-item { padding: 10px 14px; }
  .countdown-value { font-size: 24px; }
  .bottom-bar { padding: 8px 16px 10px; gap: 6px; }
  .contact-link { padding: 6px 12px; font-size: 12px; }
}
