/* Oracle de Paris V10 — Feuille de style principale */

/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C9A84C;
  --gold-dark: #A07830;
  --purple: #7B4FA8;
  --purple-dark: #5A3A80;
  --bg: #0D0618;
  --surface: #1E1030;
  --surface-light: #2A1A42;
  --border: #3D2860;
  --text: #F0E8D0;
  --text-muted: #A090B0;
  --secondary: #1A0A2E;
  --success: #4CAF50;
  --error: #E53935;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── TYPOGRAPHIE ──────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: 'Cinzel', serif; }

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  color: var(--gold);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 40px;
}

/* ─── CONTAINER ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(123, 79, 168, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0D0618 0%, #1A0A2E 50%, #0D0618 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  padding: 40px 20px;
}

.brand-ornement {
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 8px;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-size: clamp(32px, 8vw, 64px);
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.4);
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 25px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text);
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 35px;
  line-height: 1.8;
}

.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.5);
}

/* ─── ARTS GRID ────────────────────────────────────────────────────────────── */
.arts-section {
  padding: 80px 0;
  background: var(--secondary);
}

.arts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.art-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.art-card:hover, .art-card.active {
  border-color: var(--gold);
  transform: translateY(-3px);
  background: var(--surface-light);
}

.art-icon { font-size: 32px; display: block; margin-bottom: 10px; }
.art-name { font-family: 'Cinzel', serif; font-size: 12px; color: var(--gold); letter-spacing: 1px; display: block; margin-bottom: 6px; }
.art-desc { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ─── CONSULTATION ──────────────────────────────────────────────────────────── */
.consultation-section {
  padding: 80px 0;
  background: var(--bg);
}

.consultation-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.art-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}

.art-btn {
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.art-btn:hover, .art-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--surface-light);
}

.form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group small { font-size: 12px; color: var(--text-muted); }
.required { color: var(--gold); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.num-input, .partner-num-input {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 12px 8px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  font-family: 'Cinzel', serif;
  transition: border-color 0.2s;
  outline: none;
}

.num-input:focus, .partner-num-input:focus {
  border-color: var(--gold);
}

.couple-section {
  background: rgba(123, 79, 168, 0.1);
  border: 1px solid var(--purple);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.couple-section.hidden { display: none; }

.couple-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 0;
}

.btn-submit {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  border: none;
  padding: 16px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  letter-spacing: 1px;
  font-family: inherit;
  width: 100%;
  margin-top: 10px;
}

.btn-submit:hover { transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loading { display: none; }
.btn-loading.visible { display: inline; }
.btn-text.hidden { display: none; }

/* ─── RÉSULTAT ──────────────────────────────────────────────────────────────── */
.result-section {
  padding: 60px 0;
  background: var(--secondary);
}

.result-section.hidden { display: none; }

.result-card {
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.result-ornement {
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 10px;
  margin-bottom: 20px;
  display: block;
}

.result-title {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 25px;
}

.result-tirage {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
}

.result-body {
  text-align: left;
  margin-bottom: 30px;
}

.result-body h3 {
  color: var(--gold);
  font-size: 14px;
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-body p {
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
}

.result-body .mots-cles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mot-cle {
  background: var(--surface-light);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
}

.result-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.btn-pdf {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: var(--text);
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
}

.btn-new {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 13px 28px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-new:hover { background: rgba(201, 168, 76, 0.1); }

/* ─── TARIFS ────────────────────────────────────────────────────────────────── */
.tarifs-section { padding: 80px 0; }

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.tarif-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  position: relative;
  text-align: center;
  transition: transform 0.2s;
}

.tarif-card:hover { transform: translateY(-4px); }

.tarif-card.tarif-featured {
  border-color: var(--gold);
  background: var(--surface-light);
}

.tarif-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 12px;
  white-space: nowrap;
}

.tarif-prix {
  font-family: 'Cinzel', serif;
  font-size: 42px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.tarif-prix span { font-size: 18px; color: var(--text-muted); }

.tarif-nom {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}

.tarif-type {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tarif-features {
  list-style: none;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tarif-features li { font-size: 13px; color: var(--text); text-align: left; }

.btn-tarif {
  display: block;
  background: var(--gold);
  color: var(--bg);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.btn-tarif:hover { opacity: 0.85; }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 16px;
}

.footer-name {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 2px;
}

.footer-ornement { color: var(--gold); font-size: 16px; }

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 8px;
}

.footer-copy { font-size: 12px; color: var(--text-muted); opacity: 0.5; }

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .consultation-card { padding: 24px 16px; }
  .numbers-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .num-input, .partner-num-input { font-size: 14px; padding: 10px 4px; }
  .result-card { padding: 24px 16px; }
  .tarifs-grid { grid-template-columns: 1fr; }
  .arts-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .result-cta { flex-direction: column; }
  .btn-pdf, .btn-new { text-align: center; }
}

/* ─── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ─── MESSAGES D'ERREUR / SUCCÈS ───────────────────────────────────────────── */
.form-error {
  background: rgba(229, 57, 53, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 10px;
}

.hidden { display: none !important; }

/* Tirage tactile : les indices internes des cartes ne sont jamais affichés. */
.tirage-cartes-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 10px; max-height: 310px; overflow-y: auto; padding: 8px; }
.carte-dos { min-height: 118px; border: 1px solid var(--gold); border-radius: 10px; background: linear-gradient(145deg, #101b36, #514177, #101b36); color: #f4ddaa; font: 700 1.6rem Georgia, serif; cursor: pointer; transition: transform .5s, background .5s; }
.carte-dos:hover:not(:disabled), .carte-dos:focus-visible { transform: translateY(-7px); }
.carte-dos.retournee { background: #f4ddaa; color: #182039; font-size: .85rem; transform: rotateY(360deg); }
.tirage-cartes-grille.melange .carte-dos { animation: melange-cartes .8s ease-in-out infinite alternate; }
.tirage-cartes-grille.melange .carte-dos:nth-child(3n) { animation-delay: .25s; }
@keyframes melange-cartes { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-12px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .tirage-cartes-grille.melange .carte-dos { animation: none; } .carte-dos { transition: none; } }
