@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

:root {
  --gold: #d4af37; /* couleur dorée du logo */
  --gold-2: #f1d27a;
  --dark-1: #120c07; /* brun très sombre */
  --dark-2: #26180d; /* brun foncé pour le dégradé */
  --text-on-dark: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-on-dark);
  background: radial-gradient(60% 50% at 50% 35%, rgba(212,175,55,0.12) 0%, rgba(212,175,55,0.04) 45%, transparent 60%),
              radial-gradient(80% 70% at 50% 120%, rgba(212,175,55,0.10) 0%, transparent 60%),
              linear-gradient(160deg, var(--dark-1) 0%, var(--dark-2) 100%);
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: max(56px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-bottom));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(241,210,122,0.14) 0%, transparent 55%);
  pointer-events: none;
}

.hero-logo {
  width: 160px;
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}

.hero-title {
  font-weight: 800;
  font-size: clamp(42px, 8vw, 96px);
  letter-spacing: 0.06em;
  margin: 6px 0 4px 0;
  color: #ffffff;
  text-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0.5px #ffffff;
}

.hero-subtitle {
  margin: 0 0 26px 0;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: clamp(10px, 2.5vw, 28px);
  align-items: stretch;
  justify-items: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.unit {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  width: 100%;
  aspect-ratio: 1/1;
  padding: 10px 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(241,210,122,0.35);
  box-shadow: inset 0 0 0 1.5px rgba(212,175,55,0.18), 0 10px 24px rgba(0,0,0,0.35);
}

.unit span {
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 800;
  line-height: 1;
  color: var(--gold-2);
  text-shadow: 0 6px 22px rgba(212,175,55,0.45), 0 0 1px rgba(0,0,0,0.5);
}

.unit small {
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold) 0%, #b99628 100%);
  color: #1a1208;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(212,175,55,0.45);
}

@media (max-width: 560px) {
  .hero { padding: 52px 14px 22px; }
  .hero-logo { width: 118px; }
  .hero-title { font-size: clamp(36px, 10vw, 48px); }
  .timer { grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 12px; max-width: 440px; }
  .unit { border-radius: 14px; }
  .unit small { font-size: 11px; }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero { padding: 44px 12px 20px; }
  .hero-title { font-size: clamp(30px, 11vw, 42px); letter-spacing: 0.04em; }
  .hero-subtitle { font-size: 14px; }
  .timer { gap: 10px; max-width: 360px; grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .unit { aspect-ratio: 1/0.9; padding: 8px; }
  .unit span { font-size: clamp(22px, 8vw, 32px); }
}

/* Short viewports (landscape phones) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: 24px; padding-bottom: 16px; }
  .hero-logo { width: 110px; }
  .hero-title { font-size: clamp(28px, 8vw, 56px); }
}

/* Medium breakpoints */
@media (min-width: 561px) and (max-width: 900px) {
  .hero-title { font-size: clamp(48px, 8vw, 72px); }
  .timer { grid-template-columns: repeat(4, minmax(100px, 1fr)); max-width: 640px; }
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 16px 24px;
  color: rgba(255,255,255,0.8);
}

.contact-link {
  color: var(--gold-2);
  text-decoration: none;
  font-weight: 600;
}
.contact-link:hover { text-decoration: underline; }

.sep { color: rgba(255,255,255,0.35); }

.hero .contact {
  padding-top: 18px;
}

/* Phone bar fixed at bottom for mobile */
.phone-bar { display: none; }
.phone-bar-link {
  display: inline-block;
  color: var(--dark-1);
  background: linear-gradient(180deg, var(--gold) 0%, #b99628 100%);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(212,175,55,0.4);
}

@media (max-width: 560px) {
  .contact .contact-phone { display: none; }
  .phone-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-bottom)) 16px calc(env(safe-area-inset-bottom) + 6px);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.45) 100%);
    z-index: 50;
  }
}
