:root {
  --bg: #f7f3eb;        /* papier craft clair */
  --text: #222;         /* texte principal */
  --muted: #666;        /* texte secondaire */
  --accent: #b66a5e;    /* rouge-brun pastel */
  --accent-2: #d98c7a;  /* accent plus clair */
  --card: #fff;         /* fond des cartes */
  --radius: 12px;       /* arrondis */
  --shadow: 4px 6px 12px rgba(34, 22, 12, 0.08);
}

/* --- GLOBAL --- */
body {
  margin: 0;
  background: var(--bg);
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
  padding-top: 70px; /* espace pour header fixe */
}

h1, h2, h3 {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-2); }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 1000;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.nav {
  display: flex;
  gap: 20px;
}
.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.nav a.active { border-bottom: 2px solid var(--accent); }

/* Icônes du header et menu langues avec ratio cartes */
.nav-icon {
  height: 60px;
  width: auto;
  aspect-ratio: 63 / 88;
  display: block;
  object-fit: contain;
}

/* Images du menu langues */
.lang-menu a img {
  height: 60px;
  width: auto;
  aspect-ratio: 63 / 88;
  display: block;
  object-fit: contain;
  box-shadow: var(--shadow); /* tu peux aussi l’enlever si tu veux zéro effet */
  border-radius: 0; /* bords droits */
}

.brand {
  display: flex;
  align-items: center;
}
.brand img.nav-icon {
  height: 40px;
  width: auto;
  display: block;
}

/* --- HERO (page index) --- */
.hero { padding: 2rem 0; text-align: center; }
.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo img.logo {
  max-width: 440px;
  height: auto;
}

/* --- FRAMES --- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #ddd;
  padding: 1.5rem;
}
.frame { margin-bottom: 2rem; }

/* --- BOUTONS --- */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: all 0.15s ease;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn.ghost:hover {
  background: var(--accent-2);
  color: #fff;
}

/* --- SECTIONS --- */
.section { padding: 3rem 0; }
.section hr {
  border: 0;
  border-top: 1px dashed var(--muted);
  margin: 2rem 0;
}

/* --- FOOTER --- */
.site-footer {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- PAGE JEUX --- */
.cards-grid {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Carte de jeu */
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #ddd;
  aspect-ratio: 63 / 88;
  max-width: 260px;
  width: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.game-card img,
.card-image-placeholder {
  width: 100%;
  height: 60%;
  object-fit: cover;
  display: block;
  background: transparent;
}
.game-card .card-body {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
}
.game-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.game-card p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.game-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.12);
}
.game-card.placeholder {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* --- PAGE BUTTON --- */
.button-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Texte 2/3 */
.button-text {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Image 1/3 sticky */
.button-image {
  flex: 1;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}
.button-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Tableaux coûts */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.cost-table th, .cost-table td {
  border: 1px solid #ddd;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.cost-table th {
  background: #f0eae2;
}

/* Responsive Button page */
@media (max-width: 900px) {
  .button-layout {
    flex-direction: column;
  }
  .button-image {
    position: relative;
    top: auto;
    order: -1;
  }
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  border: 1px solid #ddd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
  font-weight: 600;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question:hover { color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.25rem;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1rem 1.25rem;
}
.faq-item.active .faq-question {
  color: var(--accent);
  border-bottom: 1px dashed var(--muted);
}

/* --- FORMULAIRE CONTACT --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(182, 106, 94, 0.2);
}
.form-group.checkbox {
  flex-direction: row;
  align-items: center;
}
.form-group.checkbox label {
  font-weight: normal;
  font-family: "Inter", sans-serif;
  margin-left: 0.5rem;
}
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* --- SELECTEUR DE LANGUE --- */
.lang-switcher {
  position: relative;
  display: inline-block;
}
.lang-menu {
  position: absolute;
  top: 45px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  z-index: 2000;
}
.lang-menu a img {
  width: 40px;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.15s ease;
}
.lang-menu a img:hover { transform: scale(1.05); }
.lang-switcher.active .lang-menu { display: flex; }

/* Forcer les images de sélection de langue à avoir des bords droits */
.lang-menu a img {
  border-radius: 0 !important;
  box-shadow: none; /* enlève aussi l’ombre si tu veux un rendu plat */
}

/* Slideshow container */
.slideshow {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* Images inside slideshow */
.slideshow .slides {
  position: relative;
  width: 100%;
}

.slideshow .slide {
  display: none;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.slideshow .slide.active {
  display: block;
  animation: fade 0.8s ease-in-out;
}

@keyframes fade {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Buttons (arrows) */
.slideshow .prev,
.slideshow .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  box-shadow: var(--shadow);
}

.slideshow .prev:hover,
.slideshow .next:hover {
  background: rgba(255,255,255,1);
}

.slideshow .prev {
  left: 5px;
}

.slideshow .next {
  right: 5px;
}
