:root { --fond: #06041a; --carte: #171038; --bord: #33295f; --texte: #f3efff; --doux: #b9b1dc; --or: #ffd27a; --accent: #b07cf0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--fond); }
body { margin: 0; color: var(--texte); font: 17px/1.6 -apple-system, "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; margin: 0 0 .5em; line-height: 1.12; }
h1 { font-size: clamp(38px, 7vw, 84px); }
h2 { font-size: clamp(28px, 4.2vw, 50px); }
h3 { font-size: 24px; color: var(--or); }
a { color: inherit; }
.sur { text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; color: var(--or); margin: 0 0 18px; }
.chapo { font-size: clamp(18px, 2.2vw, 23px); color: var(--doux); margin: 0 auto 26px; max-width: 46ch; }
.mini { font-size: 13px; color: var(--doux); margin: 10px 0 0; }

.bouton {
  display: inline-block; border: 0; border-radius: 999px; padding: 15px 30px; font: 600 17px/1 -apple-system, sans-serif; cursor: pointer; text-decoration: none;
  color: #170b33; background: linear-gradient(120deg, #ffd27a, #f0a6ff 55%, #9c7bff); background-size: 220% 100%; animation: reflet 5s linear infinite;
  box-shadow: 0 0 36px -6px #c58af7; transition: transform .2s, box-shadow .2s;
}
.bouton:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 54px -4px #f0a6ff; }
.bouton.petit { padding: 9px 18px; font-size: 14px; animation: none; }
.bouton.grand { padding: 20px 44px; font-size: 21px; }
.bouton.contour { background: transparent; color: var(--texte); border: 1px solid var(--accent); box-shadow: none; animation: none; }
.fantome { background: none; border: 0; color: var(--doux); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
@keyframes reflet { to { background-position: -220% 0; } }

.tete { position: fixed; z-index: 10; inset: 0 0 auto 0; display: flex; align-items: center; gap: 22px; padding: 14px 24px; background: linear-gradient(rgba(6, 4, 26, .85), rgba(6, 4, 26, 0)); }
.tete .marque { font: 21px Georgia, serif; color: var(--or); letter-spacing: .02em; white-space: nowrap; text-decoration: none; margin-right: auto; }
.tete nav { display: flex; gap: 22px; }
.tete nav a { text-decoration: none; color: var(--doux); font-size: 14.5px; }
.tete nav a:hover { color: var(--texte); }

.heros { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
#ciel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros .voile { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(6, 4, 26, .35), rgba(6, 4, 26, .78) 78%); transition: opacity 1.2s; }
.heros.revele .voile { opacity: .15; }
.accroche { position: relative; padding: 90px 20px 60px; max-width: 980px; transition: opacity .7s, transform .7s; }
.accroche h1 { text-shadow: 0 0 60px rgba(176, 124, 240, .7); animation: monte 1.2s .1s both; }
.accroche .sur { animation: monte 1s both; } .accroche .chapo { animation: monte 1.2s .35s both; } .naissance { animation: monte 1.2s .6s both; } .accroche .mini { animation: monte 1.2s .8s both; }
.heros.revele .accroche { opacity: 0; transform: scale(1.08); pointer-events: none; }
@keyframes monte { from { opacity: 0; transform: translateY(34px); filter: blur(8px); } }
.naissance { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.naissance input {
  font: 20px/1 -apple-system, sans-serif; color: var(--texte); color-scheme: dark; padding: 13px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 210, 122, .6); background: rgba(12, 8, 40, .7); backdrop-filter: blur(6px); min-width: 230px; text-align: center;
}
.naissance input:focus { outline: 2px solid var(--or); outline-offset: 2px; }
.resultat { position: absolute; left: 0; right: 0; top: 65%; padding: 0 20px; display: grid; gap: 10px; justify-items: center; animation: monte 1s both; }
.resultat h2 { margin: 0; font-size: clamp(24px, 3.6vw, 40px); text-shadow: 0 2px 18px #000; }
.resultat .sur { margin: 0; }
.resultat p { max-width: 56ch; margin: 0; font-size: clamp(16px, 2vw, 20px); text-shadow: 0 2px 14px #000; }
.descendre { position: absolute; bottom: 16px; left: 50%; translate: -50% 0; color: var(--doux); animation: flotte 2s ease-in-out infinite; }
.heros.revele .descendre { display: none; }
@keyframes flotte { 50% { transform: translateY(8px); } }

.bloc { padding: clamp(70px, 11vw, 150px) 22px; position: relative; }
.bloc.sombre { background: linear-gradient(180deg, #0b0726, #130c36 50%, #0b0726); }
.paire { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.centre { max-width: 860px; margin: 0 auto; text-align: center; }
.texte p { color: var(--doux); }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.points li { padding-left: 30px; position: relative; }
.points li::before { content: "✦"; position: absolute; left: 0; color: var(--or); }

.apparait { opacity: 0; transform: translateY(50px); transition: opacity 1s, transform 1s cubic-bezier(.2, .8, .2, 1); }
.apparait.vu { opacity: 1; transform: none; }

/* Roue des neuf nombres */
.roue { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.roue::before, .roue::after { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(255, 210, 122, .35); animation: tourne 60s linear infinite; }
.roue::after { inset: 24%; border-style: dashed; animation-direction: reverse; animation-duration: 40s; }
.roue .anneau { position: absolute; inset: 0; animation: tourne 48s linear infinite; }
.roue .n {
  position: absolute; width: 17%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; translate: -50% -50%;
  font: bold clamp(22px, 3.4vw, 36px) Georgia, serif; color: var(--c); border: 1.5px solid var(--c); background: rgba(12, 8, 40, .8); box-shadow: 0 0 26px -6px var(--c);
  animation: tourne 48s linear infinite reverse;
}
.roue .coeur { position: absolute; inset: 34%; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 15px Georgia, serif; color: var(--or); background: radial-gradient(circle, rgba(176, 124, 240, .35), transparent 70%); }
.roue .coeur b { display: block; font-size: clamp(40px, 7vw, 74px); line-height: 1; color: #fff; text-shadow: 0 0 34px var(--accent); }
@keyframes tourne { to { rotate: 360deg; } }

.ecran { border-radius: 18px; overflow: hidden; border: 1px solid var(--bord); box-shadow: 0 30px 90px -20px #000, 0 0 70px -20px var(--accent); transform: perspective(1200px) rotateY(7deg); transition: transform .8s; }
.ecran:hover { transform: none; }
#extrait { display: block; width: 100%; aspect-ratio: 16 / 9; }

/* Éventail de cartes */
.eventail { display: flex; justify-content: center; margin: 50px auto 0; height: clamp(260px, 38vw, 420px); max-width: 1000px; perspective: 1400px; }
.eventail img {
  height: 100%; border-radius: 9px; margin: 0 -4.5%; box-shadow: 0 18px 40px rgba(0, 0, 0, .7); transform-origin: 50% 130%;
  transform: rotate(0deg) translateY(60px); opacity: 0; transition: transform 1.1s cubic-bezier(.2, .9, .2, 1) calc(var(--i) * 90ms), opacity .8s calc(var(--i) * 90ms), box-shadow .3s;
}
.eventail.vu img { opacity: 1; transform: rotate(calc((var(--i) - 3) * 8deg)) translateY(calc((var(--i) - 3) * (var(--i) - 3) * 5px)); }
.eventail.vu img:hover { transform: rotate(calc((var(--i) - 3) * 8deg)) translateY(-34px) scale(1.08); box-shadow: 0 0 50px var(--or); z-index: 3; transition-delay: 0s; }

.dialogue { display: grid; gap: 12px; }
.msg { padding: 14px 18px; border-radius: 18px; font-size: 16px; }
.msg.moi { background: #3a2a78; justify-self: end; max-width: 85%; border-bottom-right-radius: 4px; }
.msg.numa { background: var(--carte); border: 1px solid var(--bord); border-bottom-left-radius: 4px; min-height: 230px; white-space: pre-wrap; }
.curseur { display: inline-block; width: 8px; height: 1.1em; background: var(--or); vertical-align: -3px; margin-left: 2px; animation: clignote 1s steps(2) infinite; }
@keyframes clignote { 50% { opacity: 0; } }

.offres { max-width: 1100px; margin: 50px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; align-items: stretch; }
.offre { position: relative; background: var(--carte); border: 1px solid var(--bord); border-radius: 22px; padding: 30px 26px; display: grid; gap: 6px; align-content: start; transition: transform .3s, opacity 1s, box-shadow .3s; }
.offre:hover { transform: translateY(-8px); box-shadow: 0 24px 60px -24px var(--accent); }
.offre.vedette { border-color: var(--or); background: linear-gradient(170deg, #2a1c66, #171038); box-shadow: 0 0 70px -24px var(--or); }
.ruban { position: absolute; top: -13px; left: 50%; translate: -50% 0; background: var(--or); color: #170b33; font-size: 12.5px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.prix { font: 46px/1.1 Georgia, serif; }
.prix small { font-size: 17px; color: var(--doux); }
.offre ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; font-size: 15.5px; }
.offre li { padding-left: 26px; position: relative; }
.offre li::before { content: "✓"; position: absolute; left: 0; color: var(--or); }
.offre .bouton { text-align: center; align-self: end; }

.final { text-align: center; background: radial-gradient(ellipse at 50% 100%, #3b2390 0%, transparent 65%); }
.pied { padding: 30px 22px 44px; text-align: center; color: var(--doux); font-size: 12.5px; max-width: 800px; margin: 0 auto; }

@media (max-width: 820px) {
  .paire { grid-template-columns: 1fr; }
  .paire.inverse .ecran { order: 2; }
  .tete nav { display: none; }
  .ecran { transform: none; }
  .eventail img { margin: 0 -8%; }
}
@media (prefers-reduced-motion: reduce) {
  .apparait { opacity: 1; transform: none; transition: none; }
  .accroche *, .bouton, .roue *, .roue::before, .roue::after { animation: none !important; }
}
[hidden] { display: none !important; }
.offre li.non { color: var(--doux); opacity: .62; }
.offre li.non::before { content: "✕"; color: #c98a8a; }
.offres.quatre { max-width: 1280px; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.naissance input[type=email] { min-width: 250px; }
.naissance input::placeholder { color: var(--doux); }
.accord { flex-basis: 100%; display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 13.5px; color: var(--doux); cursor: pointer; }
.accord input { min-width: 0; width: auto; padding: 0; }
.mini a { color: var(--doux); }
