/*
Theme Name: Tirage Avenir
Theme URI: https://tirage-avenir.fr/
Author: OpenAI
Author URI: https://openai.com/
Description: Thème WordPress léger pour un site tarot/voyance avec homepage SEO, tirage du jour et structure éditoriale prête à remplir.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: tirage-avenir
*/

:root {
  --bg: #0f0920;
  --bg-soft: #171032;
  --card: rgba(255,255,255,0.06);
  --card-border: rgba(255,255,255,0.12);
  --text: #f5efff;
  --muted: #c9bfe3;
  --gold: #f3c96a;
  --gold-strong: #ffc94d;
  --purple: #7e57ff;
  --purple-soft: #a98cff;
  --success: #93f0bf;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(126,87,255,.25), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(243,201,106,.18), transparent 20%),
    linear-gradient(180deg, #120b27 0%, #0d081b 100%);
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-strong); }
img { max-width: 100%; height: auto; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12,8,24,.82);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}

.branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.branding img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 16px;
}

.site-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.1;
}
.site-title a { color: #fff; }
.site-tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 18px;
  align-items: center;
}

.primary-nav a {
  color: #fff;
  font-weight: 600;
}

.btn,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #1a1233;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(243,201,106,.28);
  cursor: pointer;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
}

.hero-card,
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-copy {
  padding: 36px;
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold);
  border: 1px solid rgba(243,201,106,.25);
  background: rgba(243,201,106,.08);
  font-weight: 700;
  font-size: .9rem;
}

.hero h1,
.page-title,
.entry-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.02em;
  margin: 18px 0 16px;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.hero-points div,
.stat-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.hero-visual {
  padding: 28px;
}

.card-stack {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.tarot-card {
  width: min(100%, 380px);
  aspect-ratio: 2/3.2;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(126,87,255,.23), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.14);
  position: relative;
  overflow: hidden;
}

.tarot-card::before,
.tarot-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
}

.tarot-card::after {
  inset: 30px;
  border-style: dashed;
  opacity: .45;
}

.card-motif {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}

.card-motif strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 8px;
}

.section {
  padding: 24px 0 28px;
}

.section-title,
.entry-content h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  margin: 0 0 12px;
}

.section-intro,
.entry-content p,
.entry-summary {
  color: var(--muted);
}

.grid-3,
.grid-4,
.posts-grid {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.posts-grid { grid-template-columns: repeat(3, 1fr); }

.feature-card,
.post-card,
.info-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.feature-card h3,
.post-card h3,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.feature-card p,
.post-card p,
.info-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.link-arrow {
  font-weight: 700;
}

.card-grid-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.mini-card {
  padding: 18px 12px;
  text-align: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
}

.mini-card strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.tarot-widget {
  padding: 28px;
}

.tarot-result {
  min-height: 180px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.tarot-result h3,
.tarot-result h4 { margin: 0 0 10px; }
.tarot-result p { margin: 0; color: var(--muted); }

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.badge-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(126,87,255,.14);
  border: 1px solid rgba(126,87,255,.28);
}

.cta-box {
  padding: 32px;
  background: linear-gradient(135deg, rgba(126,87,255,.18), rgba(243,201,106,.12));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(9,5,18,.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
  padding: 36px 0;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.footer-links,
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin: 10px 0; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0 30px;
  color: var(--muted);
  font-size: .95rem;
}

.content-shell {
  padding: 42px 0;
}

.entry-content h2 { margin-top: 32px; }
.entry-content h3 {
  margin-top: 22px;
  font-size: 1.35rem;
}
.entry-content ul { color: var(--muted); }

.breadcrumbs {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
}

.archive-header {
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .footer-grid,
  .grid-3,
  .posts-grid,
  .grid-4,
  .card-grid-mini,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 16px;
    left: 16px;
    background: #130c27;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    padding: 16px;
  }

  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
}
