:root {
  --sand: #f6efe3;
  --terracotta: #c4623a;
  --sun: #e07a3f;
  --olive: #5c6b3c;
  --olive-light: #8a9a5b;
  --ink: #2b2620;
  --muted: #6f665b;
}
* { box-sizing: border-box; }
/* Un élément masqué le reste, même s'il porte une classe qui fixe son affichage (ex. .btn). */
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 18%, #fff3dc 0%, #fbf3e6 35%, var(--sand) 70%);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

/* Soleil : rayons qui tournent lentement, coeur qui respire */
.sun {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 40px;
}
.sun::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(224, 122, 63, 0.3) 0deg 6deg, transparent 6deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%);
          mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%);
  animation: spin 40s linear infinite;
}
.sun::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2a065, var(--terracotta) 70%);
  animation: glow 4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(196, 98, 58, 0.14), 0 0 30px 6px rgba(224, 122, 63, 0.3);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 16px rgba(196, 98, 58, 0.1), 0 0 55px 14px rgba(224, 122, 63, 0.45);
  }
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: normal;
  letter-spacing: 0.02em;
}
.tagline {
  margin: 8px 0 32px;
  color: var(--olive);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: "Segoe UI", Arial, sans-serif;
}
p {
  max-width: 34rem;
  margin: 0 auto 12px;
  font-size: 1.15rem;
  line-height: 1.6;
}
footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* Apparition douce des textes */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s ease-out forwards;
}
.d1 { animation-delay: 0.2s; }
.d2 { animation-delay: 0.5s; }
.d3 { animation-delay: 0.8s; }
.d4 { animation-delay: 1.1s; }
.d5 { animation-delay: 6.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Le lézard arrive et se dore au soleil */
.stage {
  position: relative;
  width: min(34rem, 100%);
  height: 56px;
  margin: 20px auto 0;
}
.lizard {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 120px;
  margin-left: -60px;
  animation: crawl 5s cubic-bezier(0.25, 0.6, 0.3, 1) 1.4s both;
}
@keyframes crawl {
  from { transform: translateX(-70vw); }
  to { transform: translateX(0); }
}
.lizard .leg { transform-box: view-box; }
.lizard .fl { transform-origin: 88px 15px; }
.lizard .fr { transform-origin: 88px 25px; }
.lizard .bl { transform-origin: 66px 15px; }
.lizard .br { transform-origin: 66px 25px; }
.lizard .step-a { animation: step-a 0.36s ease-in-out 1.4s 14 alternate; }
.lizard .step-b { animation: step-b 0.36s ease-in-out 1.4s 14 alternate; }
@keyframes step-a { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes step-b { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
.lizard .tail {
  transform-box: view-box;
  transform-origin: 60px 20px;
  animation: wag 2.6s ease-in-out 6.4s infinite;
}
@keyframes wag {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-7deg); }
  70% { transform: rotate(6deg); }
}
.lizard .head {
  transform-box: view-box;
  transform-origin: 92px 20px;
  animation: look 5s ease-in-out 7s infinite;
}
@keyframes look {
  0%, 40%, 100% { transform: rotate(0deg); }
  55%, 75% { transform: rotate(-12deg); }
}

/* Espace privé */
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--olive);
  color: #fff;
  text-decoration: none;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.05em;
}
.btn:hover,
.btn:focus-visible { background: #4a5730; }
.muted { color: var(--muted); }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
