:root {
  --bois-sombre: #5D4037;
  --bois-profond: #3E2723;
  --feutre-beige: #F4EAD4;
  --or-royal: #D4AF37;
  --or-clair: #F0D060;
  --vert-bonus: #1B5E20;
  --rouge-piege: #B71C1C;
  --bleu-mult: #0055FF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--feutre-beige);
  color: var(--bois-profond);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Image de fond du plateau en filigrane doux */
.fond-plateau {
  position: fixed;
  inset: 0;
  background-image: url('fond_plateau.png');
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}

.conteneur {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

/* EN-TÊTE / HÉRO */
header.hero {
  text-align: center;
  padding: 28px 16px 36px;
}

.logo-crux {
  width: 180px;
  height: 180px;
  border-radius: 36px;
  box-shadow: 0 10px 26px rgba(62, 39, 35, 0.35);
  margin-bottom: 14px;
  object-fit: contain;
}


h1.titre-principal {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--bois-sombre);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sous-titre {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bois-sombre);
  opacity: 0.85;
  margin-top: 4px;
}

blockquote.accroche {
  max-width: 680px;
  margin: 24px auto;
  padding: 18px 24px;
  background: var(--bois-sombre);
  color: #FFFFFF;
  border-left: 6px solid var(--or-royal);
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* BOUTON DE TÉLÉCHARGEMENT */
.zone-telechargement {
  margin-top: 26px;
}

.btn-download {
  display: inline-block;
  background: linear-gradient(135deg, var(--or-royal), #C59B27);
  color: var(--bois-profond);
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 50px;
  box-shadow: 0 8px 22px rgba(93, 64, 55, 0.35);
  border: 2px solid var(--bois-profond);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(93, 64, 55, 0.45);
}

.info-version {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bois-sombre);
}

/* CARTES DE CONTENU */
.carte {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  border: 2px solid var(--bois-sombre);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(62, 39, 35, 0.12);
}

.carte-sombre {
  background: var(--bois-sombre);
  color: #FFFFFF;
  border: 2px solid var(--or-royal);
}

h2 {
  font-size: 1.55rem;
  color: var(--bois-sombre);
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(93, 64, 55, 0.2);
  padding-bottom: 6px;
}

.carte-sombre h2 {
  color: var(--or-royal);
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

p + p {
  margin-top: 12px;
}

/* GRILLE DES JETONS */
.grille-jetons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.item-jeton {
  background: var(--feutre-beige);
  border: 1px solid rgba(93, 64, 55, 0.35);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-jeton {
  min-width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #EFEBE9;
  border: 1.5px solid var(--bois-sombre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
}

.txt-vert { color: var(--vert-bonus); }
.txt-bleu { color: var(--bleu-mult); }
.txt-marron { color: #5D0011; }
.txt-rouge { color: var(--rouge-piege); }

.badge-inversion {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

code {
  font-family: inherit;
  font-size: 1em;
  font-weight: 800;
  background: rgba(93, 64, 55, 0.14);
  padding: 2px 7px;
  border-radius: 5px;
}

/* MODES DE JEU & IA */
.grille-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.sous-carte {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 16px;
}

.sous-carte h3 {
  color: var(--or-royal);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.liste-ia {
  list-style: none;
  margin-top: 10px;
}

.liste-ia li {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--feutre-beige);
  border-left: 4px solid var(--bois-sombre);
  border-radius: 8px;
}

.liste-ia li strong {
  color: var(--bois-sombre);
}

/* APERÇU DU PLATEAU */
.apercu-ecran {
  text-align: center;
  margin-top: 14px;
}

.apercu-ecran img {
  max-width: 300px;
  width: 100%;
  border-radius: 18px;
  border: 4px solid var(--bois-sombre);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* ÉTAPES D'INSTALLATION */
.etapes-install {
  padding-left: 20px;
  margin-top: 8px;
}

.etapes-install li {
  margin-bottom: 6px;
  font-weight: 600;
}

/* PIED DE PAGE */
footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(93, 64, 55, 0.25);
  font-size: 0.9rem;
  color: var(--bois-sombre);
}

footer a {
  color: var(--bois-sombre);
  font-weight: 700;
}

@media (max-width: 600px) {
  h1.titre-principal { font-size: 2.3rem; }
  blockquote.accroche { font-size: 1.05rem; padding: 14px 16px; }
  .btn-download { font-size: 1.1rem; padding: 14px 24px; }
}
