@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Inter:wght@400;500;600&display=swap');

:root {
  --rouge: #C8321E;
  --rouge-fonce: #9E2414;
  --creme: #FBF5EA;
  --carte: #FFFFFF;
  --texte: #2A1F17;
  --texte-doux: #7A6B5D;
  --vert: #3F7D3A;
  --bord: #EADFCC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--creme);
  color: var(--texte);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  padding: 24px 16px;
  -webkit-tap-highlight-color: transparent;
}

.marque {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--rouge);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.marque::before { content: "🍕"; font-size: 18px; }

.carte {
  width: 100%;
  max-width: 400px;
  background: var(--carte);
  border: 1px solid var(--bord);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
}

.emoji { font-size: 48px; line-height: 1; margin-bottom: 16px; }

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--rouge);
}

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 8px;
}

p.sous { color: var(--texte-doux); font-size: 16px; line-height: 1.5; margin-bottom: 24px; }

.btn {
  display: block;
  width: 100%;
  padding: 16px 20px;
  border-radius: 14px;
  border: none;
  font: 600 17px 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform .1s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-principal { background: var(--rouge); color: #fff; }
.btn-principal:hover { background: var(--rouge-fonce); }
.btn-vert { background: var(--vert); color: #fff; }
.btn-blanc { background: #fff; color: var(--texte); border: 1.5px solid var(--bord); }
.btn-discret {
  background: none; border: none; color: var(--texte-doux);
  font: 500 15px 'Inter', sans-serif; padding: 14px; margin-top: 4px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

input[type=email] {
  width: 100%;
  padding: 16px;
  border: 1.5px solid var(--bord);
  border-radius: 14px;
  font: 400 17px 'Inter', sans-serif;
  background: var(--creme);
  margin-bottom: 12px;
  outline: none;
}
input[type=email]:focus { border-color: var(--rouge); background: #fff; }

.case {
  display: flex; gap: 10px; align-items: flex-start;
  text-align: left; font-size: 13px; color: var(--texte-doux);
  line-height: 1.4; margin-bottom: 20px;
}
.case input { margin-top: 2px; accent-color: var(--rouge); width: 18px; height: 18px; flex-shrink: 0; }

.erreur { color: var(--rouge); font-size: 14px; min-height: 20px; margin-bottom: 8px; }

.merci {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px dashed var(--bord);
}
.merci p { font-weight: 600; font-size: 17px; margin-bottom: 14px; color: var(--vert); }

.mentions { font-size: 12px; color: var(--texte-doux); margin-top: 20px; max-width: 400px; text-align: center; line-height: 1.5; }

/* Popup */
.voile {
  position: fixed; inset: 0;
  background: rgba(42, 31, 23, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fondu .25s ease;
}
.popup {
  background: #fff; border-radius: 24px;
  width: 100%; max-width: 380px;
  padding: 28px 22px 16px;
  text-align: center;
  animation: monte .3s ease;
}
.popup .emoji { font-size: 40px; margin-bottom: 10px; }
.popup p { color: var(--texte-doux); line-height: 1.5; margin-bottom: 18px; }
.astuce {
  background: var(--creme); border-radius: 14px;
  padding: 14px 16px; text-align: left; margin-bottom: 20px;
}
.astuce strong { display: block; margin-bottom: 6px; font-size: 15px; }
.astuce ul { list-style: none; font-size: 14px; color: var(--texte-doux); line-height: 1.7; }

@keyframes fondu { from { opacity: 0; } }
@keyframes monte { from { opacity: 0; transform: translateY(20px); } }

/* Roue */
.roue-zone { position: relative; width: 300px; height: 300px; margin: 8px auto 24px; max-width: 100%; }
.roue-zone canvas { width: 100%; height: 100%; transition: transform 5s cubic-bezier(.15, .7, .1, 1); }
.fleche {
  position: absolute; left: 50%; top: -10px; transform: translateX(-50%);
  width: 0; height: 0; z-index: 2;
  border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 28px solid var(--rouge);
}
.centre {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: #fff; border: 4px solid var(--rouge);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}

/* Résultats */
.lot {
  font-family: 'Fraunces', serif; font-weight: 800;
  font-size: 34px; color: var(--vert); margin: 4px 0 20px;
}
.code {
  border: 2px dashed var(--vert); border-radius: 14px;
  padding: 14px; margin-bottom: 16px;
}
.code small { display: block; font-size: 12px; color: var(--texte-doux); text-transform: uppercase; letter-spacing: .08em; }
.code span { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 800; letter-spacing: .08em; }
.infos { font-size: 14px; color: var(--texte-doux); line-height: 1.6; margin-bottom: 20px; }

#confettis { position: fixed; inset: 0; pointer-events: none; }
