/* Sections d'accueil 4 Temples : mêmes titres que « Nos meilleures ventes » (Cinzel 700, #615733). */
.tples-home-section {
  --tples-ink: #131519;
  --tples-gold: #C5B47A;
  --tples-gold-title: #615733;
  --tples-gold-text: #7A6528;
  --tples-cream: #F6F3EA;
  --tples-line: #E6DFCC;
  padding-block: 4rem;
}
.tples-home-section__title {
  margin: 0 0 .75rem;
  font-family: Cinzel, serif;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
  color: var(--tples-gold-title);
}
.tples-home-section__lead {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: #4A4B50;
}

/* ---- Nos univers ---- */
.tples-home-categories { background: #FFFFFF; }
.tples-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.tples-home-category {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tples-line);
  border-radius: 12px;
  background: var(--tples-ink);
  color: #F6F3EA;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tples-home-category:hover,
.tples-home-category:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(19, 21, 25, .18);
  color: #F6F3EA;
}
.tples-home-category__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000000; }
.tples-home-category__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tples-home-category:hover .tples-home-category__media img { transform: scale(1.04); }
.tples-home-category__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.tples-home-category__name { font-family: Cinzel, serif; font-size: 1.375rem; font-weight: 700; color: var(--tples-gold); }
.tples-home-category__tagline { font-size: .9375rem; line-height: 1.5; color: #D9D2BC; flex: 1; }
.tples-home-category__cta { display: inline-flex; align-items: center; gap: .375rem; margin-top: .5rem; font-family: Cinzel, serif; font-weight: 700; color: var(--tples-gold); }
.tples-home-category__count { font-family: Lato, sans-serif; font-weight: 400; color: #B9B4A6; }

/* ---- Accessoires par jeu ---- */
.tples-home-games { background: var(--tples-cream); }
/* Tuiles de largeur fixe centrées : pas de vide sur la dernière ligne. */
.tples-home-games__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .875rem;
}
.tples-home-games__list > li { flex: 0 1 13rem; }
.tples-home-game { height: 100%; }
/* Tuiles sombres : plusieurs logos officiels (Lorcana, Star Wars, Riftbound) sont prévus pour un fond foncé. */
.tples-home-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 8rem;
  padding: 1.125rem 1rem;
  border: 1px solid #2E3036;
  border-radius: 10px;
  background: var(--tples-ink);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.tples-home-game:hover,
.tples-home-game:focus-visible { border-color: var(--tples-gold); transform: translateY(-2px); }
.tples-home-game__logo { display: block; width: auto; max-width: 100%; height: 60px; object-fit: contain; }
/* Logo One Piece entièrement noir : passé en blanc sur fond sombre. */
.tples-home-game--one-piece-card-game .tples-home-game__logo { filter: invert(1); }
.tples-home-game__name { display: flex; align-items: center; min-height: 60px; font-family: Cinzel, serif; font-size: 1.375rem; font-weight: 700; color: var(--tples-gold); }
.tples-home-game__count { font-size: .8125rem; color: #B9B4A6; }
.tples-home-games__all { margin: 2rem 0 0; text-align: center; }
.tples-home-games__all a { font-family: Cinzel, serif; font-weight: 700; color: var(--tples-gold-text); }

/* ---- Guide et FAQ ---- */
.tples-home-guide { background: #FFFFFF; }
.tples-home-guide__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.tples-home-guide .tples-home-section__title { text-align: left; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 1.25rem; }
.tples-home-guide__text { line-height: 1.65; color: #3B3C40; }
.tples-home-guide__text h3 { margin: 1.5rem 0 .5rem; font-family: Cinzel, serif; font-size: 1.125rem; font-weight: 700; color: var(--tples-ink); }
.tples-home-guide__text a { color: var(--tples-gold-text); font-weight: 600; }
.tples-home-faq { display: flex; flex-direction: column; gap: .625rem; }
.tples-home-faq__item { border: 1px solid var(--tples-line); border-radius: 10px; background: #FFFFFF; }
.tples-home-faq__item[open] { border-color: var(--tples-gold); background: #FFFCF4; }
.tples-home-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--tples-ink);
}
.tples-home-faq__question::-webkit-details-marker { display: none; }
.tples-home-faq__question::after { content: '+'; flex-shrink: 0; font-size: 1.375rem; line-height: 1; color: var(--tples-gold-text); }
.tples-home-faq__item[open] .tples-home-faq__question::after { content: '−'; }
.tples-home-faq__answer { margin: 0; padding: 0 1.25rem 1.125rem; line-height: 1.6; color: #3B3C40; }

/* ---- Bandeau : boutons d'accès au catalogue et liens du texte ---- */
.prehome-description a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
.prehome-description a:hover { color: #C5B47A; }
.tples-hero-cta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 1.75rem; }
.tples-hero-cta .btn { min-height: 3rem; padding: .625rem 1.5rem; border-radius: 0; font-family: Cinzel, serif; font-weight: 700; display: inline-flex; align-items: center; }
.tples-hero-cta .tples-hero-cta__primary { background: #C5B47A; border: 1px solid #C5B47A; color: #131519; }
.tples-hero-cta .tples-hero-cta__primary:hover { background: #D6C68E; color: #131519; }
.tples-hero-cta .tples-hero-cta__secondary { background: transparent; border: 1px solid #C5B47A; color: #C5B47A; }
.tples-hero-cta .tples-hero-cta__secondary:hover { background: rgba(197, 180, 122, .12); color: #E2D5A6; }

@media (max-width: 991.98px) {
  .tples-home-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tples-home-guide__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}
@media (max-width: 575.98px) {
  .tples-home-section { padding-block: 2.75rem; }
  .tples-home-categories__grid { grid-template-columns: minmax(0, 1fr); }
  .tples-home-games__list > li { flex-basis: calc(50% - .4375rem); }
  .tples-hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tples-home-category,
  .tples-home-category__media img { transition: none; }
}

/* ---- Surtitre « Temple I », « Temple II · Nouveau »… ---- */
.tples-home-section__eyebrow {
  margin: 0 0 .5rem;
  font-family: Cinzel, serif;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  color: var(--tples-gold-text);
}

/* ---- Les 4 portes du bandeau d'accueil ---- */
.tples-temples {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}
.tples-temple {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  color: #F6F3EA;
  text-decoration: none;
}
.tples-temple--open { background: #1B1D22; border: 1px solid #C5B47A; transition: transform .2s ease, box-shadow .2s ease; }
.tples-temple--open:hover,
.tples-temple--open:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); color: #F6F3EA; }
.tples-temple--soon { background: rgba(27, 29, 34, .72); border: 1px dashed #4A4C52; }
.tples-temple__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; background: #17191D; color: #6E6A5E; }
.tples-temple--open .tples-temple__media { background: #FFFFFF; }
.tples-temple__media img { width: 100%; height: 100%; object-fit: cover; }
.tples-temple__body { display: flex; flex-direction: column; gap: .375rem; padding: 1rem 1.125rem 1.25rem; flex: 1; }
.tples-temple__label { white-space: nowrap; }
.tples-temple__num { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-family: Cinzel, serif; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: #C5B47A; }
.tples-temple--soon .tples-temple__num { color: #9A9588; }
.tples-temple__soon { font-family: Lato, sans-serif; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; padding: .125rem .5rem; border: 1px solid #8F8A7C; border-radius: 999px; color: #C9C3B3; }
.tples-temple__name { font-family: Cinzel, serif; font-size: 1.5rem; font-weight: 700; color: #FBF3DA; }
.tples-temple--soon .tples-temple__name { color: #C9C3B3; }
.tples-temple__tagline { flex: 1; font-size: .875rem; line-height: 1.45; color: #C9C3B3; }
.tples-temple--soon .tples-temple__tagline { color: #A6A194; }
.tples-temple__cta { margin-top: .375rem; font-size: .9375rem; font-weight: 700; color: #C5B47A; }
a.tples-temple__cta:hover { color: #E4D59E; }
@media (max-width: 1199.98px) {
  .tples-temples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .tples-temples { gap: .75rem; margin-top: 1.5rem; }
  .tples-temple__media { aspect-ratio: 4 / 3; }
  .tples-temple__media svg { width: 44px; height: 44px; }
  .tples-temple__body { padding: .75rem .875rem 1rem; }
  .tples-temple__name { font-size: 1.125rem; }
  .tples-temple__tagline { font-size: .8125rem; }
}

/* ---- Temple des figurines ---- */
.tples-home-figurines { background: #1B1D22; color: #F6F3EA; }
.tples-home-figurines .tples-home-section__eyebrow { color: #C5B47A; text-align: left; }
.tples-home-figurines .tples-home-section__title { color: #FBF3DA; text-align: left; text-transform: none; }
.tples-home-figurines .tples-home-section__lead { margin: 0; text-align: left; color: #D6D1C3; }
.tples-home-figurines__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; }
.tples-home-figurines__head > div { max-width: 46rem; }
.tples-home-figurines__all {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  background: #C5B47A;
  color: #131519;
  font-family: Cinzel, serif;
  font-weight: 700;
  text-decoration: none;
}
.tples-home-figurines__all:hover { background: #B5A262; color: #131519; }
.tples-home-figurines__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tples-home-figurines .tples-home-category { border-color: #34363C; }
.tples-home-figurines__subtitle { margin: 3rem 0 1.25rem; font-family: Cinzel, serif; font-size: 1.625rem; color: #FBF3DA; }
@media (max-width: 991.98px) {
  .tples-home-figurines__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Temples à venir ---- */
.tples-home-soon { background: #131519; color: #F6F3EA; border-top: 1px solid #2E3036; }
.tples-home-soon__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.tples-home-soon__text { flex: 1 1 28rem; max-width: 40rem; }
.tples-home-soon .tples-home-section__eyebrow { color: #C5B47A; text-align: left; }
.tples-home-soon .tples-home-section__title { color: #FBF3DA; text-align: left; text-transform: none; }
.tples-home-soon .tples-home-section__lead { margin: 0; text-align: left; color: #D6D1C3; }
.tples-home-soon__form { flex: 1 1 22rem; max-width: 34rem; }
/* Formulaire newsletter réutilisé : seul le champ et le bouton restent. */
.tples-home-soon .email-subscription { padding: 0 !important; background: transparent; }
.tples-home-soon .email-subscription .container { padding: 0; }
.tples-home-soon .email-subscription__content__left { display: none; }
.tples-home-soon .email-subscription__content__right { flex: 0 0 100%; max-width: 100%; }
.tples-home-soon .email-subscription__content__infos,
.tples-home-soon .email-subscription__content__infos a { color: #A6A194; font-size: .8125rem; }
