/* ============================================================
   LA VEILLÉE — v3 — App icon hero
   Direction : Maximalisme québécois rustique vintage
   Pivot visuel : l'app icon iOS (feu de camp + bannière)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&family=Bebas+Neue&family=JetBrains+Mono:wght@400;500;700&family=Special+Elite&display=swap');

:root {
  /* Palette canonique Round 4 — STRICTE */
  --maple: #f01028;
  --maple-deep: #c00a1f;
  --sky-mid: #68c0e8;
  --sky: #b0d8e0;
  --sky-deep: #8ec0d2;
  --parchment: #faf3e0;
  --ink: #121418;
  --wood: #2a1a12;
  --flame-red: #e8341a;
  --flame-orange: #ff7a1a;
  --flame-yellow: #ffc848;
  --flame-core: #fff4c4;

  /* Typo */
  --font-display: 'Rubik Mono One', system-ui, sans-serif;
  --font-headline: 'Bebas Neue', system-ui, sans-serif;
  --font-stamp: 'Special Elite', 'Courier New', monospace;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-width: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --liseré: 4px;
  --liseré-thin: 2px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Texte SEO/accessibilité caché visuellement mais lu par les screen readers et robots */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-mono);
  background: var(--sky);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  /* Micro-texture parchment subtile sur tout le site */
  background-image:
    /* Grain noise */
    radial-gradient(circle at 20% 30%, rgba(18, 20, 24, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(18, 20, 24, 0.02) 1px, transparent 1px),
    /* Vignette légère sur les côtés pour donner du relief */
    radial-gradient(ellipse at center, transparent 50%, rgba(18, 20, 24, 0.06) 100%);
  background-size: 80px 80px, 110px 110px, 100% 100%;
}

/* ============================================================
   BANNIÈRE NAV — Bannière rouge maple iconique de la canette
   Liserés noirs profonds en haut et en bas
   ============================================================ */

header {
  background: var(--maple);
  color: var(--parchment);
  border-top: var(--liseré) solid var(--ink);
  border-bottom: var(--liseré) solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 0 0 var(--ink);
  /* Texture canette (lignes verticales subtiles) */
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, transparent 2%, transparent 98%, rgba(255, 255, 255, 0.04) 100%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.03) 3px 4px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: 0.04em;
  color: var(--parchment);
  text-decoration: none;
  text-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.brand-mini-icon {
  width: 44px;
  height: 44px;
  display: inline-block;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  flex-shrink: 0;
  object-fit: cover;
}

nav.menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.menu a {
  font-family: var(--font-headline);
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--parchment);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.18s;
}

nav.menu a:hover,
nav.menu a[aria-current="page"] {
  color: var(--flame-yellow);
}

nav.menu a::before {
  content: '▲';
  font-size: 8px;
  color: var(--flame-yellow);
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%) scale(0);
  transition: transform 0.2s;
}

nav.menu a:hover::before,
nav.menu a[aria-current="page"]::before {
  transform: translateX(-50%) scale(1);
}

.menu-toggle {
  display: none;
  background: var(--ink);
  border: var(--liseré-thin) solid var(--parchment);
  color: var(--parchment);
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  nav.menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--maple);
    flex-direction: column;
    gap: 0;
    border-bottom: var(--liseré) solid var(--ink);
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }
  nav.menu[data-open="true"] {
    transform: translateY(0);
  }
  nav.menu a {
    padding: 18px var(--gutter);
    border-top: var(--liseré-thin) solid rgba(18, 20, 24, 0.4);
    width: 100%;
    text-align: center;
  }
  .menu-toggle {
    display: inline-block;
  }
}

/* ============================================================
   HERO — Type "produit en vitrine"
   Canette XL à droite, texte/CTA à gauche, fond bleu ciel
   ============================================================ */

.hero {
  background: var(--sky);
  padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
  border-bottom: var(--liseré) solid var(--ink);
}

/* Texture rayonnante derrière la canette pour la mettre en valeur */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 18%;
  transform: translate(50%, -50%);
  width: 700px;
  height: 700px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(240, 16, 40, 0.08) 0deg 8deg,
    transparent 8deg 16deg
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    order: 2;
  }
  .hero-can-wrap {
    order: 1;
  }
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.85;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-text h1 .accent {
  color: var(--maple);
  display: block;
  text-shadow: 4px 4px 0 var(--ink);
}

.hero-text p.lead {
  font-family: var(--font-headline);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.05em;
  color: var(--wood);
  text-transform: uppercase;
  margin-bottom: 32px;
  line-height: 1.15;
}

.hero-text p.lead strong {
  color: var(--maple);
  position: relative;
  display: inline-block;
}

.hero-text p.lead strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--flame-yellow);
  z-index: -1;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--maple);
  color: var(--parchment);
  padding: 20px 36px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: var(--liseré) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  line-height: 1;
}

/* Wrapper pour empiler/aligner les CTAs du hero */
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

@media (max-width: 880px) {
  .hero-cta-group {
    align-items: center;
  }
}

/* Bouton App Store — variante noire/ink avec icône Apple */
.hero-cta-appstore {
  background: var(--ink);
  color: var(--parchment);
  font-size: clamp(15px, 1.5vw, 17px);
  padding: 18px 32px;
  gap: 12px;
}

.hero-cta-appstore:hover {
  background: var(--wood);
  color: var(--parchment);
}

.hero-cta-appstore .appstore-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--parchment);
}

.hero-cta:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--ink);
  background: var(--flame-orange);
}

.hero-cta:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-cta .arrow {
  font-size: 24px;
  transition: transform 0.2s;
}

.hero-cta:hover .arrow {
  transform: translateX(4px);
}

/* La fameuse app icon iOS en hero — XL avec cadre style iPhone */
.hero-can-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 30px;
}

/* Override de spécificité pour .hero-cta dans .prose */
.prose .hero-cta,
.prose a.hero-cta {
  color: var(--parchment) !important;
  background: var(--maple);
  text-decoration: none;
}

.prose .hero-cta:hover,
.prose a.hero-cta:hover {
  background: var(--flame-orange);
  color: var(--parchment) !important;
  text-decoration: none;
}

.hero-app-icon {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-app-icon-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 22%;  /* iOS app icon corner radius — iOS 17+ uses ~22% */
  border: 5px solid var(--ink);
  box-shadow: 
    14px 14px 0 var(--ink),
    14px 14px 0 6px var(--maple);
  background: var(--parchment);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.hero-can-wrap:hover .hero-app-icon-img {
  transform: rotate(-2deg) scale(1.03);
}

/* Étoiles décoratives autour de l'icône comme sur un produit promo */
.hero-can-wrap::before,
.hero-can-wrap::after {
  content: '★';
  position: absolute;
  font-size: 32px;
  color: var(--maple);
  text-shadow: 2px 2px 0 var(--ink);
  pointer-events: none;
  animation: pulse-star 3s ease-in-out infinite;
}

.hero-can-wrap::before {
  top: 0;
  left: -5%;
  font-size: 28px;
}

.hero-can-wrap::after {
  bottom: 18%;
  right: -2%;
  animation-delay: 1.5s;
}

@keyframes pulse-star {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
}

/* ============================================================
   SECTION OCCASIONS — SEO use cases, fond parchment
   ============================================================ */

.section-occasions {
  background: var(--parchment);
  padding: clamp(70px, 9vw, 120px) var(--gutter);
  border-bottom: var(--liseré) solid var(--ink);
  position: relative;
}

.section-occasions::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 100% 0%, rgba(240, 16, 40, 0.04), transparent 35%),
    radial-gradient(circle at 0% 100%, rgba(255, 122, 26, 0.04), transparent 35%);
  pointer-events: none;
}

.section-occasions-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: clamp(48px, 6vw, 70px);
}

@media (max-width: 760px) {
  .occasions-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    gap: 16px;
    margin: 32px calc(var(--gutter) * -1) 0;
    padding: 12px var(--gutter) 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .occasions-grid::-webkit-scrollbar {
    display: none;
  }

  .occasions-grid .occasion-card {
    flex: 0 0 100%;
    max-width: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

.occasion-card {
  background: var(--parchment);
  border: var(--liseré) solid var(--ink);
  padding: 32px 28px;
  position: relative;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.occasion-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--maple);
}

.occasion-num {
  font-family: var(--font-display);
  font-size: 38px;
  color: var(--maple);
  line-height: 0.9;
  text-shadow: 3px 3px 0 var(--ink);
  display: block;
}

.occasion-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 26px);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.occasion-card p {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--wood);
  line-height: 1.65;
}

@media (max-width: 480px) {
  .occasion-card {
    box-shadow: 4px 4px 0 var(--ink);
    padding: 26px 22px;
  }
  .occasion-card:hover {
    box-shadow: 6px 6px 0 var(--maple);
  }
}

/* ============================================================
   BANNIÈRE-FRISE répétée entre sections (motif canette stencil)
   ============================================================ */

.frieze {
  background: var(--maple);
  border-top: var(--liseré) solid var(--ink);
  border-bottom: var(--liseré) solid var(--ink);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.frieze-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  animation: scroll-frieze 28s linear infinite;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--parchment);
  text-transform: uppercase;
}

.frieze-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.frieze-track .star {
  color: var(--flame-yellow);
  font-size: 16px;
}

@keyframes scroll-frieze {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION JEUX — fond parchment chaleureux
   ============================================================ */

.section-games {
  padding: clamp(70px, 9vw, 120px) var(--gutter);
  background: var(--parchment);
  border-bottom: var(--liseré) solid var(--ink);
  position: relative;
}

.section-games::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(240, 16, 40, 0.04), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(104, 192, 232, 0.05), transparent 30%);
  pointer-events: none;
}

.section-games-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-stamp);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 14px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  flex: 0 0 50px;
  height: 2px;
  background: var(--ink);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  text-align: center;
  margin-bottom: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.section-title .accent {
  color: var(--maple);
}

.section-subtitle {
  font-family: var(--font-headline);
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--wood);
  margin-bottom: clamp(48px, 6vw, 70px);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* ========== CAROUSEL MOBILE pour les 5 jeux ========== */
@media (max-width: 760px) {
  .games-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    gap: 16px;
    /* Permet aux cards de déborder sur les côtés du conteneur */
    margin: 0 calc(var(--gutter) * -1);
    padding: 12px var(--gutter) 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .games-grid::-webkit-scrollbar {
    display: none;
  }

  .games-grid .game-card {
    flex: 0 0 100%;
    max-width: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

.game-card {
  background: var(--parchment);
  border: var(--liseré) solid var(--ink);
  padding: 0;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--maple);
}

.game-card-banner {
  background: var(--maple);
  color: var(--parchment);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  border-bottom: var(--liseré) solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-card-banner .num {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--flame-yellow);
}

.game-card-body {
  padding: 26px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.game-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.game-card p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--wood);
  line-height: 1.6;
  flex: 1;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: auto;
  border-top: 2px dashed var(--ink);
  font-family: var(--font-stamp);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--wood);
}

.game-card-footer .badge {
  background: var(--ink);
  color: var(--parchment);
  padding: 3px 9px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* Variantes par jeu — 5 couleurs distinctes */
.game-card[data-game="bombe"] .game-card-banner { background: var(--flame-red); color: var(--parchment); }
.game-card[data-game="bombe"] .game-card-banner .num { color: var(--flame-yellow); }
.game-card[data-game="bombe"]:hover { box-shadow: 10px 10px 0 var(--flame-red); }

.game-card[data-game="vc"] .game-card-banner { background: var(--maple); color: var(--parchment); }
.game-card[data-game="vc"] .game-card-banner .num { color: var(--flame-yellow); }
.game-card[data-game="vc"]:hover { box-shadow: 10px 10px 0 var(--maple); }

.game-card[data-game="trivia"] .game-card-banner { background: var(--sky-mid); color: var(--ink); }
.game-card[data-game="trivia"] .game-card-banner .num { color: var(--ink); }
.game-card[data-game="trivia"]:hover { box-shadow: 10px 10px 0 var(--sky-mid); }

.game-card[data-game="boulette"] .game-card-banner { background: var(--flame-yellow); color: var(--ink); }
.game-card[data-game="boulette"] .game-card-banner .num { color: var(--maple); }
.game-card[data-game="boulette"]:hover { box-shadow: 10px 10px 0 var(--flame-yellow); }

.game-card[data-game="imposteur"] .game-card-banner { background: var(--ink); color: var(--flame-yellow); }
.game-card[data-game="imposteur"] .game-card-banner .num { color: var(--flame-yellow); }
.game-card[data-game="imposteur"]:hover { box-shadow: 10px 10px 0 var(--ink); }

/* ============================================================
   SECTION FEATURES — fond ink dramatique
   ============================================================ */

.section-features {
  background: var(--ink);
  color: var(--parchment);
  padding: clamp(70px, 9vw, 120px) var(--gutter);
  border-bottom: var(--liseré) solid var(--maple);
  position: relative;
  overflow: hidden;
}

.section-features::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.15), transparent 50%);
  filter: blur(60px);
  pointer-events: none;
}

.section-features::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(104, 192, 232, 0.15), transparent 50%);
  filter: blur(60px);
  pointer-events: none;
}

.section-features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-features .section-title {
  color: var(--parchment);
}

.section-features .section-title .accent {
  color: var(--flame-yellow);
}

.section-features .section-subtitle {
  color: var(--sky);
}

.section-features .section-eyebrow {
  color: var(--sky);
}

.section-features .section-eyebrow::before,
.section-features .section-eyebrow::after {
  background: var(--sky);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

/* ========== CAROUSEL MOBILE pour les 4 features ========== */
@media (max-width: 760px) {
  .features-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    gap: 16px;
    margin: 32px calc(var(--gutter) * -1) 0;
    padding: 12px var(--gutter) 28px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .features-grid::-webkit-scrollbar {
    display: none;
  }

  .features-grid .feature {
    flex: 0 0 100%;
    max-width: none;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}

@keyframes swipe-hint {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(4px); opacity: 0.9; }
}

/* ========== DOTS DE PAGINATION DU CARROUSEL ========== */
.carousel-dots {
  display: none;
}

@media (max-width: 760px) {
  .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }

  .carousel-dot:hover {
    background: var(--ink);
  }

  .carousel-dot[aria-current="true"] {
    background: var(--maple);
    border-color: var(--ink);
    transform: scale(1.3);
    box-shadow: 0 0 0 2px var(--parchment), 0 0 0 4px var(--ink);
  }

  /* Variante dots dans la section sombre (features) */
  .section-features .carousel-dot {
    border-color: var(--parchment);
  }

  .section-features .carousel-dot:hover {
    background: var(--parchment);
  }

  .section-features .carousel-dot[aria-current="true"] {
    background: var(--flame-yellow);
    border-color: var(--parchment);
    box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--flame-yellow);
  }
}

/* ========== POLISH MOBILE GLOBAL ========== */
@media (max-width: 480px) {
  /* Ajuster les ombres décalées qui débordent sur petit écran */
  .hero-cta {
    box-shadow: 5px 5px 0 var(--ink);
    padding: 17px 26px;
    font-size: 15px;
  }
  .hero-cta:hover {
    box-shadow: 7px 7px 0 var(--ink);
  }

  /* Hero app icon plus compact sur très petit écran */
  .hero-app-icon {
    max-width: 280px;
  }
  .hero-app-icon-img {
    box-shadow: 
      9px 9px 0 var(--ink),
      9px 9px 0 4px var(--maple);
  }

  /* Réduire les ombres des cards sur mobile */
  .game-card {
    box-shadow: 4px 4px 0 var(--ink);
  }

  /* Titre hero un peu moins extrême */
  .hero-text h1 {
    font-size: clamp(48px, 14vw, 72px) !important;
  }

  /* ========== FIX DÉBORDEMENT PAGES PROSE (privacy/conditions/support) ========== */
  /* Le mot "confidentialité" (16 lettres en Rubik Mono One) débordait sur mobile */
  .page-header h1 {
    font-size: clamp(32px, 9vw, 52px);
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .page-header h1 span {
    text-shadow: 3px 3px 0 var(--ink);
    word-break: break-word;
  }

  /* Réduire l'ombre décalée des h2 prose qui peut déborder */
  .prose h2 {
    text-shadow: 2px 2px 0 var(--ink);
    word-break: break-word;
    font-size: clamp(22px, 5.5vw, 28px);
  }

  /* Code et liens longs (ex : adresses email) ne doivent pas créer de débordement */
  .prose code,
  .prose a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* FAQ : les détails accordéon avaient des box-shadow qui pouvaient déborder */
  .faq details {
    box-shadow: 4px 4px 0 var(--ink);
  }

  /* Page header tagline ne doit pas déborder non plus */
  .page-header p.tagline {
    word-break: break-word;
    padding: 0 8px;
  }
}

.feature {
  padding: 28px 26px;
  border: var(--liseré-thin) solid rgba(245, 235, 213, 0.2);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
  backdrop-filter: blur(2px);
  transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: var(--flame-yellow);
  transform: translateY(-4px);
}

.feature .num {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--flame-yellow);
  line-height: 0.9;
  margin-bottom: 16px;
  text-shadow: 4px 4px 0 var(--maple);
  display: block;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  color: var(--parchment);
  line-height: 1.1;
}

.feature p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--sky);
  line-height: 1.65;
}

/* ============================================================
   SECTION CTA FINAL — bleu ciel + canette en watermark
   ============================================================ */

.section-cta {
  background: var(--sky);
  padding: clamp(70px, 10vw, 130px) var(--gutter);
  text-align: center;
  border-bottom: var(--liseré) solid var(--ink);
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(18, 20, 24, 0.04) 30px 31px),
    repeating-linear-gradient(-45deg, transparent 0 30px, rgba(18, 20, 24, 0.04) 30px 31px);
  pointer-events: none;
}

.section-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-cta h2 .accent {
  color: var(--maple);
  text-shadow: 4px 4px 0 var(--ink);
}

.section-cta p {
  font-family: var(--font-headline);
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 36px;
}

/* ============================================================
   SECTION FAQ — accordion sémantique details/summary, fond ink
   ============================================================ */

.section-faq {
  background: var(--ink);
  color: var(--parchment);
  padding: clamp(70px, 9vw, 120px) var(--gutter);
  border-bottom: var(--liseré) solid var(--maple);
  position: relative;
  overflow: hidden;
}

.section-faq::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(240, 16, 40, 0.12), transparent 50%);
  filter: blur(60px);
  pointer-events: none;
}

.section-faq-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-faq .section-title {
  color: var(--parchment);
}

.section-faq .section-subtitle {
  color: var(--sky);
}

.section-faq .section-eyebrow {
  color: var(--sky);
}

.section-faq .section-eyebrow::before,
.section-faq .section-eyebrow::after {
  background: var(--sky);
}

.faq-list {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: var(--liseré-thin) solid rgba(245, 235, 213, 0.2);
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--flame-yellow);
}

.faq-item[open] {
  background: rgba(240, 16, 40, 0.1);
  border-color: var(--maple);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.7vw, 17px);
  letter-spacing: 0.01em;
  color: var(--parchment);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.3;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--flame-yellow);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--maple);
}

.faq-item[open] summary {
  border-bottom: var(--liseré-thin) solid rgba(240, 16, 40, 0.3);
}

.faq-answer {
  padding: 18px 26px 24px;
  animation: faq-slide 0.25s ease-out;
}

.faq-answer p {
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--sky);
}

@keyframes faq-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .faq-item summary {
    padding: 18px 20px;
    font-size: 14px;
  }
  .faq-answer {
    padding: 14px 20px 20px;
  }
}

/* ============================================================
   PROSE — pages confidentialité / conditions / support
   ============================================================ */

.prose {
  max-width: 740px;
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
}

main.prose-page {
  background: var(--parchment);
  padding: clamp(60px, 7vw, 90px) var(--gutter);
  border-bottom: var(--liseré) solid var(--ink);
}

.page-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
  position: relative;
}

.page-header .eyebrow {
  display: inline-block;
  font-family: var(--font-stamp);
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--maple);
  background: var(--parchment);
  border: var(--liseré-thin) solid var(--maple);
  padding: 4px 14px;
  margin-bottom: 18px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.92;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-header h1 span {
  display: block;
  color: var(--maple);
  text-shadow: 4px 4px 0 var(--ink);
}

.page-header p.tagline {
  font-family: var(--font-headline);
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.08em;
  color: var(--wood);
  text-transform: uppercase;
}

/* Diviseur stylisé feu de camp */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(36px, 5vw, 56px) auto;
  gap: 20px;
}

.divider .line {
  flex: 1;
  max-width: 140px;
  height: var(--liseré-thin);
  background: var(--ink);
}

.divider .flame-mini {
  width: 26px;
  height: 32px;
  display: inline-block;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 34px);
  color: var(--maple);
  margin-top: 2.6em;
  margin-bottom: 0.65em;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 2px 2px 0 var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
  margin-top: 1.9em;
  margin-bottom: 0.55em;
}

.prose p {
  margin-bottom: 1em;
}

.prose strong {
  color: var(--maple);
  font-weight: 700;
}

.prose a {
  color: var(--maple);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.prose a:hover {
  background: var(--maple);
  color: var(--parchment);
  text-decoration: none;
}

.prose ul,
.prose ol {
  margin: 0.6em 0 1.3em 1.6em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose code {
  font-family: var(--font-mono);
  background: var(--ink);
  color: var(--flame-yellow);
  padding: 2px 7px;
  font-size: 0.9em;
  border-radius: 2px;
}

.prose .updated {
  display: block;
  font-family: var(--font-stamp);
  font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: var(--liseré-thin) dashed var(--wood);
  background: var(--sky);
  padding: 12px 18px;
  margin-bottom: 36px;
  text-align: center;
}

.prose .callout {
  border-left: var(--liseré) solid var(--maple);
  background: rgba(240, 16, 40, 0.07);
  padding: 18px 24px;
  margin: 28px 0;
  position: relative;
}

.prose .callout::before {
  content: '◆';
  position: absolute;
  left: -10px;
  top: 18px;
  background: var(--maple);
  color: var(--parchment);
  width: 16px;
  height: 16px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ accordion (page support) */
.faq details {
  border: var(--liseré) solid var(--ink);
  background: var(--parchment);
  padding: 0;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}

.faq details:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--maple);
}

.faq summary {
  list-style: none;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  line-height: 1.2;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--maple);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq details[open] {
  background: var(--maple);
}

.faq details[open] summary {
  color: var(--parchment);
  border-bottom: var(--liseré-thin) solid var(--ink);
}

.faq details[open] summary::after {
  content: '−';
  color: var(--parchment);
}

.faq details > p,
.faq details > div,
.faq details > ol {
  padding: 18px 22px 22px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--parchment);
  background: var(--maple);
  margin: 0;
}

.faq details a {
  color: var(--flame-yellow);
}

.faq details a:hover {
  background: var(--flame-yellow);
  color: var(--maple);
}

/* ============================================================
   FOOTER — bois sombre, motif rustique
   ============================================================ */

footer {
  background: var(--wood);
  color: var(--sky);
  border-top: var(--liseré) solid var(--maple);
  padding: 56px var(--gutter) 28px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: var(--liseré);
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    45deg,
    var(--maple) 0 14px,
    var(--ink) 14px 28px
  );
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand .footer-brand-name {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--parchment);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.footer-brand p {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--sky);
  max-width: 380px;
  margin-bottom: 18px;
}

.footer-brand .footer-icon {
  width: 64px;
  height: 64px;
  margin-top: 18px;
  border-radius: 14px;
  border: 2px solid var(--parchment);
  box-shadow: 4px 4px 0 var(--maple);
  display: block;
  object-fit: cover;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--flame-yellow);
  margin-bottom: 16px;
  line-height: 1;
}

.footer-col a {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--sky);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s, padding-left 0.15s;
}

.footer-col a:hover {
  color: var(--parchment);
  padding-left: 8px;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 28px;
  border-top: var(--liseré-thin) solid rgba(245, 235, 213, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-stamp);
  font-size: 11px;
  color: var(--sky);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-bottom .made-by a {
  color: var(--flame-yellow);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dashed var(--flame-yellow);
}

.footer-bottom .made-by a:hover {
  color: var(--parchment);
  border-bottom-color: var(--parchment);
}

/* ============================================================
   ANIMATIONS staggered au load
   ============================================================ */

@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); filter: brightness(1); }
  45% { opacity: 0.92; transform: scale(1.02); filter: brightness(1.1); }
  50% { opacity: 0.97; transform: scale(0.99); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text > * {
  animation: fadeUp 0.7s ease-out backwards;
}

.hero-text h1 { animation-delay: 0.25s; }
.hero-text p.lead { animation-delay: 0.4s; }
.hero-text .hero-cta-group { animation-delay: 0.55s; }

.hero-app-icon {
  animation: fadeUp 1s 0.4s ease-out backwards;
}

.flame-flicker {
  animation: flicker 1.8s ease-in-out infinite;
  transform-origin: bottom center;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .frieze-track {
    animation: none !important;
  }
}
