/* Brikolia : couleurs du jeu (menu : crème et filet ambre ; boutique : bois clair, bleu canard, orange) */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --nuit: #16110d;        /* garage le soir */
  --nuit-2: #221a14;
  --creme: #ede8e0;       /* lettres du titre */
  --ambre: #e0a040;       /* filet du titre */
  --mur: #f4ece0;         /* mur crème de la boutique */
  --bois: #e3c497;        /* bois clair des rayons */
  --bois-fonce: #b98d5a;
  --canard: #23685b;      /* bleu canard */
  --canard-fonce: #184c42;
  --orange: #e2832c;
  --encre: #2a1f16;
  --encre-douce: #5b4a3b;
  --rayon: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--encre);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Barre du haut */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: rgba(22, 17, 13, 0.88);
  backdrop-filter: blur(8px);
  color: var(--creme);
}
.top__logo { font-weight: 600; letter-spacing: 0.04em; text-decoration: none; font-size: 22px; }
.top__nav { display: flex; gap: 20px; margin-left: auto; }
.top__nav a { text-decoration: none; opacity: 0.8; }
.top__nav a:hover { opacity: 1; color: var(--ambre); }
.lang { display: flex; border: 1px solid rgba(237, 232, 224, 0.3); border-radius: 8px; overflow: hidden; }
.lang button {
  font: inherit; font-size: 14px; padding: 4px 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--creme);
}
.lang button[aria-pressed="true"] { background: var(--ambre); color: var(--nuit); font-weight: 600; }

/* Accueil */
.hero { position: relative; min-height: clamp(560px, 88vh, 860px); display: flex; align-items: center; overflow: hidden; color: var(--creme); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 12, 9, 0.92) 0%, rgba(16, 12, 9, 0.7) 40%, rgba(16, 12, 9, 0.1) 75%); }
.hero__content { position: relative; padding: 0 16px 0 max(16px, 6vw); max-width: 640px; }
.kicker { text-transform: uppercase; letter-spacing: 0.5em; font-size: 14px; opacity: 0.75; margin: 0 0 12px; }
.title { font-size: clamp(56px, 11vw, 112px); font-weight: 600; letter-spacing: 0.02em; line-height: 1; margin: 0; color: var(--creme); }
.filet { display: block; width: 84px; height: 4px; background: var(--ambre); border-radius: 2px; margin: 22px 0 26px; }
.hero__lead { font-size: clamp(18px, 2.2vw, 22px); margin: 0 0 28px; opacity: 0.92; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 15px;
  border: 1px solid rgba(237, 232, 224, 0.4); color: var(--creme);
}
.badge--amber { background: var(--ambre); border-color: var(--ambre); color: var(--nuit); font-weight: 600; }

/* Titres de section */
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin: 0 0 12px; line-height: 1.15; }
.section-title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--orange); border-radius: 2px; margin-top: 14px; }
.section-title--light { color: var(--creme); }
.section-title--light::after { background: var(--ambre); }
.section-lead { color: var(--encre-douce); margin: 0 0 28px; max-width: 720px; }

/* Le jeu */
.jeu { background: var(--mur); padding: 88px 0; }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; margin-top: 56px; }
.feature img { border-radius: var(--rayon); box-shadow: 0 18px 40px rgba(42, 31, 22, 0.22); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.feature--flip img { order: 2; }
.feature h3 { font-size: 26px; font-weight: 600; margin: 0 0 12px; color: var(--canard-fonce); }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 26px; margin: 10px 0; color: var(--encre-douce); }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 8px;
  background: var(--orange); border-radius: 2px;
}
.soon { margin: 56px 0 0; color: var(--encre-douce); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.soon .badge--amber { color: var(--nuit); }

/* Captures */
.galerie { background: var(--nuit-2); padding: 88px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.shot img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.3s ease; }
.shot:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); }
.lightbox::backdrop { background: rgba(10, 8, 6, 0.88); }
.lightbox img { border-radius: 10px; max-height: 88vh; width: auto; }
.lightbox__close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--creme); color: var(--nuit); font-size: 26px; line-height: 1; cursor: pointer;
}

/* Thèmes : un rayon de la boutique */
.themes { background: var(--mur); padding: 88px 0 96px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab {
  font: inherit; font-size: 16px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--canard); background: transparent; color: var(--canard-fonce);
}
.tab[aria-selected="true"] { background: var(--canard); color: var(--creme); }
.rayon { background: var(--bois); border-radius: var(--rayon); padding: 0 14px 18px; box-shadow: inset 0 0 0 6px var(--bois-fonce); }
.rayon__bandeau {
  margin: 0 -14px; padding: 16px 20px 12px; background: var(--canard);
  border-radius: var(--rayon) var(--rayon) 0 0; border-bottom: 6px solid var(--orange);
  color: var(--creme); font-size: 30px; font-weight: 600; text-align: center;
}
.rayon__note { margin: 12px 4px 0; color: var(--encre-douce); font-size: 15px; text-align: center; min-height: 1.4em; }
.rayon__etagere {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px;
  padding: 18px 6px 22px; background: var(--canard-fonce); margin-top: 12px; border-radius: 6px;
  border-bottom: 10px solid var(--orange); /* rail de prix */
}
.boite { margin: 0; }
.boite img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.boite figcaption { color: var(--creme); font-size: 15px; margin-top: 8px; line-height: 1.3; }
.vrac-note { margin: 22px 0 0; color: var(--encre-douce); text-align: center; }

/* Pied */
.pied { background: var(--nuit); color: var(--creme); text-align: center; padding: 48px 16px; }
.pied__logo { font-size: 28px; font-weight: 600; margin: 0 0 8px; }
.pied__logo::after { content: ""; display: block; width: 48px; height: 3px; background: var(--ambre); margin: 10px auto 0; border-radius: 2px; }
.pied p { margin: 6px 0; opacity: 0.85; }
.pied__small { font-size: 14px; opacity: 0.6; }

/* Petits écrans */
@media (max-width: 820px) {
  .top { gap: 12px; padding: 10px 16px; }
  .top__nav { display: none; }
  .lang { margin-left: auto; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .feature--flip img { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .hero__veil { background: linear-gradient(180deg, rgba(16, 12, 9, 0.55) 0%, rgba(16, 12, 9, 0.9) 70%); }
  .hero { align-items: flex-end; padding-bottom: 48px; }
  .rayon__etagere { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .kicker { letter-spacing: 0.3em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img { transition: none; }
}
