/* =============================================
   ATHANOR — ROUE DE LA FORTUNE
   Charte graphique L'Athanor Douarnenez
   Couleurs : #f5f0e8 / #C0021A / #1a1a18
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Jost:wght@300;400;500&display=swap');

:root {
  --ath-or:       #C9973A;
  --ath-or-light: #d4b896;
  --ath-or-dark:  #8B6520;
  --ath-brun:     #1a1a18;
  --ath-creme:    #f5f0e8;
  --ath-creme-2:  #ece5d8;
  --ath-blanc:    #FFFFFF;
  --ath-texte:    #3a3a35;
  --ath-texte-2:  #6b6b60;
  --ath-vert:     #2D6A4F;
  --ath-rouge:    #C0021A;
  --ath-shadow:   0 4px 24px rgba(0,0,0,0.07);
}

.athanor-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  font-family: 'Jost', sans-serif;
  color: var(--ath-texte);
  background: #f5f0e8;
}

/* ---- SCREENS ---- */
.athanor-screen        { display: none; flex-direction: column; align-items: center; gap: 1.25rem; }
.athanor-screen.active { display: flex; }

/* ---- HEADER ---- */
.athanor-header   { text-align: center; padding: 1rem 0 0.25rem; width: 100%; }
.athanor-logo     { height: 64px; object-fit: contain; margin-bottom: 8px; }
.athanor-title    { font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; font-weight: 400; color: var(--ath-brun); letter-spacing: .03em; }
.athanor-title em { font-style: italic; color: var(--ath-rouge); }
.athanor-subtitle { font-size: 10px; font-weight: 400; color: var(--ath-texte-2); letter-spacing: .2em; text-transform: uppercase; margin-top: 3px; }

/* ---- SÉPARATEUR ---- */
.athanor-sep         { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 280px; }
.athanor-sep span    { flex: 1; height: 1px; background: rgba(192,2,26,0.25); }
.athanor-diamond     { width: 7px; height: 7px; background: var(--ath-rouge); transform: rotate(45deg); flex-shrink: 0; display: block; }

/* ---- CARD ---- */
.athanor-card      { background: var(--ath-blanc); box-shadow: var(--ath-shadow); padding: 1.4rem 1.5rem; width: 100%; border-top: 3px solid var(--ath-rouge); }
.athanor-card h2   { font-family: 'DM Serif Display', Georgia, serif; font-size: 18px; font-weight: 400; color: var(--ath-brun); margin: 0 0 8px; }
.athanor-card p    { font-size: 14px; color: var(--ath-texte-2); line-height: 1.7; margin: 0; }
.athanor-card-light         { border-top-color: var(--ath-or-light); }
.athanor-card-light p       { font-size: 13px; text-align: center; }

/* ---- ÉTAPES ---- */
.athanor-steps { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.athanor-step  { display: flex; align-items: flex-start; gap: 13px; background: var(--ath-creme-2); padding: 11px 14px; font-size: 14px; color: var(--ath-texte); line-height: 1.5; }
.athanor-num   { width: 26px; height: 26px; background: var(--ath-rouge); color: #fff; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; letter-spacing: .02em; }

/* ---- FORMULAIRE ---- */
.athanor-form             { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.athanor-form input       { width: 100%; padding: 12px 15px; border: 1.5px solid var(--ath-or-light); font-size: 14px; font-family: 'Jost', sans-serif; color: var(--ath-texte); background: var(--ath-blanc); transition: border-color .2s; box-sizing: border-box; outline: none; }
.athanor-form input:focus { border-color: var(--ath-rouge); }
.athanor-form input.error { border-color: var(--ath-rouge); }
.athanor-error            { font-size: 12px; color: var(--ath-rouge); }

/* ---- BOUTONS ---- */
.athanor-btn          { width: 100%; padding: 12px 24px; font-size: 11.5px; font-weight: 500; font-family: 'Jost', sans-serif; cursor: pointer; border: 1.5px solid transparent; letter-spacing: .14em; text-transform: uppercase; transition: background .22s, color .22s, border-color .22s; }
.athanor-btn:active   { transform: scale(0.98); }
.athanor-btn-or       { background: var(--ath-rouge); color: #fff; border-color: var(--ath-rouge); }
.athanor-btn-or:hover { background: var(--ath-brun); border-color: var(--ath-brun); color: #fff; }
.athanor-btn-or:disabled { background: var(--ath-creme-2); color: var(--ath-texte-2); border-color: var(--ath-creme-2); cursor: not-allowed; }

/* ---- UTILITAIRES ---- */
.athanor-note    { font-size: 11px; color: var(--ath-texte-2); text-align: center; line-height: 1.7; letter-spacing: .03em; }
.athanor-link    { color: var(--ath-rouge); cursor: pointer; text-decoration: underline; }
.athanor-badge   { display: inline-block; background: var(--ath-creme-2); color: var(--ath-rouge); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border: 1px solid rgba(192,2,26,0.2); }

/* ---- ICÔNE MAIL ---- */
.athanor-mail-icon     { width: 66px; height: 66px; background: var(--ath-creme-2); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.athanor-mail-icon svg { width: 30px; height: 30px; stroke: var(--ath-rouge); }

/* ---- ROUE ---- */
.athanor-wheel-wrap  { position: relative; width: 300px; height: 300px; margin: 0 auto; }
#athanor-wheel       { display: block; border-radius: 50%; box-shadow: 0 6px 32px rgba(0,0,0,0.15); }
.athanor-needle      { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; }
.athanor-needle-tri  { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 30px solid var(--ath-rouge); }
.athanor-needle-dot  { width: 14px; height: 14px; border-radius: 50%; background: var(--ath-rouge); margin-top: -2px; }

/* ---- RÉSULTAT ---- */
.athanor-result-box                      { width: 100%; padding: 1.25rem 1.5rem; text-align: center; }
.athanor-result-win                      { background: #EAF5EE; border: 1.5px solid var(--ath-vert); border-top: 3px solid var(--ath-vert); }
.athanor-result-lose                     { background: var(--ath-creme-2); border: 1.5px solid var(--ath-or-light); border-top: 3px solid var(--ath-or-light); }
.athanor-result-title                    { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; margin-bottom: 8px; }
.athanor-result-win  .athanor-result-title { color: var(--ath-vert); }
.athanor-result-lose .athanor-result-title { color: var(--ath-brun); }
.athanor-result-desc                     { font-size: 13px; color: var(--ath-texte-2); line-height: 1.6; }
.athanor-result-show                     { display: inline-block; margin-top: 12px; background: var(--ath-vert); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 9px 18px; }

/* ---- SPINNER ---- */
.athanor-spinner       { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: athanor-spin .7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes athanor-spin { to { transform: rotate(360deg); } }

/* ---- LÉGENDE ---- */
.athanor-legend-wrap  { width: 100%; background: var(--ath-blanc); padding: 1rem 1.25rem; box-shadow: var(--ath-shadow); border-top: 3px solid var(--ath-or-light); }
.athanor-legend-title { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ath-texte-2); margin-bottom: 10px; }
.athanor-legend       { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.athanor-legend-item  { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ath-texte); }
.athanor-legend-dot   { width: 26px; height: 26px; border-radius: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #1a1a18; border: 1.5px solid rgba(0,0,0,0.12); }
.athanor-legend-text  { line-height: 1.3; }

/* ─── OPTIN EMAIL APRÈS RÉSULTAT ─── */
.athanor-email-optin {
  background: #FAF6EE;
  border: 1px solid #e2d9c8;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}
.athanor-optin-label {
  font-size: 14px;
  color: #3D2B1F;
  margin: 0 0 10px;
  text-align: center;
}
.athanor-optin-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.athanor-optin-row input[type="email"] {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #d2c8b4;
  border-radius: 6px;
  font-size: 14px;
  font-family: Georgia, serif;
  background: #fff;
  color: #3D2B1F;
  outline: none;
}
.athanor-optin-row input[type="email"]:focus {
  border-color: #C9973A;
}
.athanor-btn-optin {
  background: #C9973A;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  font-family: Georgia, serif;
}
.athanor-btn-optin:disabled {
  opacity: 0.6;
  cursor: default;
}
