/* =========================================================
   NEW FRONTIER — RedM Roleplay
   Western / cinématique / immersif
========================================================= */

/* -----------  RESET / BASE  ----------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --leather:   #3b2a1e;
  --leather-2: #2a1d13;
  --sand:      #d2b48c;
  --sand-2:    #e8d3a8;
  --bone:      #efe4ce;
  --blood:     #7b1e1e;
  --blood-2:   #5a1414;
  --ember:     #c0792d;
  --charcoal:  #121212;
  --ink:       #0b0807;
  --paper:     #f3e6c8;

  /* Type */
  --font-display: "Rye", "IM Fell English SC", Georgia, serif;
  --font-serif:   "IM Fell English", Georgia, serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 4px;
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.6), 0 10px 20px -10px rgba(0,0,0,.4);
  --shadow-md: 0 12px 30px -10px rgba(0,0,0,.5);

  /* Easing */
  --ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--bone);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* -----------  TEXTURE / GRAIN  ----------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .22;
  /* mix-blend-mode retiré : forçait une recomposition GPU de toute la page à chaque frame */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 1.4s steps(6) infinite;
  will-change: transform;
  contain: layout style paint;
}
@keyframes grainShift {
  0%   { transform: translate(0,0) }
  20%  { transform: translate(-3%, 2%) }
  40%  { transform: translate(2%, -1%) }
  60%  { transform: translate(-1%, 3%) }
  80%  { transform: translate(3%, 1%) }
  100% { transform: translate(0,0) }
}

/* -----------  LOADER  ----------- */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(circle at 50% 40%, #1a1108 0%, #000 80%);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; color: var(--sand); }
.loader__star {
  color: var(--ember);
  animation: starSpin 2.4s linear infinite;
  filter: drop-shadow(0 0 18px rgba(192,121,45,.5));
}
@keyframes starSpin { to { transform: rotate(360deg); } }
.loader__text {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: .12em;
  font-size: .95rem;
  color: var(--sand-2);
  opacity: .85;
}

/* -----------  CURSOR  ----------- */
.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
  will-change: transform;
}
.cursor {
  width: 32px; height: 32px;
  border: 1.5px solid rgba(210,180,140,.8);
  border-radius: 50%;
  /* width/height retirés de la transition : reflow main-thread à 60fps → remplacé par scale() dans le RAF */
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.cursor-dot {
  width: 4px; height: 4px;
  background: var(--ember);
  border-radius: 50%;
}
.cursor.is-hover {
  background: rgba(210,180,140,.12);
  border-color: var(--sand);
}
@media (max-width: 900px), (hover: none) {
  .cursor, .cursor-dot { display: none; }
}

/* -----------  CONTAINER / SECTION  ----------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  position: relative;
}
.section--dark {
  background:
    radial-gradient(ellipse at top, rgba(123,30,30,.18), transparent 60%),
    linear-gradient(180deg, #1a120b 0%, #0b0805 100%);
}
.section__head {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ember);
  font-size: .82rem;
  margin-bottom: 1rem;
}
.title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--bone);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: .01em;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 0 rgba(0,0,0,.4);
}
.lead {
  color: rgba(239,228,206,.78);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  max-width: 60ch;
}
.section__head .lead { margin-inline: auto; }

/* -----------  BUTTONS  ----------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(180deg, #8a2424 0%, var(--blood) 50%, var(--blood-2) 100%);
  color: var(--bone);
  /* box-shadow retiré : rastérisation coûteuse lors de la création du layer GPU au hover */
  border-color: rgba(255,200,160,.15);
}
.btn--primary:hover {
  transform: translateY(-2px);
  border-color: rgba(255,200,160,.4);
}
.btn--ghost {
  background: rgba(11,8,7,.55);
  color: var(--bone);
  border-color: rgba(210,180,140,.35);
}
.btn--ghost:hover {
  background: rgba(210,180,140,.12);
  border-color: var(--sand);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ember);
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(192,121,45,.35);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s, gap .2s var(--ease);
}
.link-arrow:hover { color: var(--sand-2); border-color: var(--sand-2); gap: .9rem; }

/* -----------  NAV  ----------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background .35s var(--ease), padding .35s var(--ease),
              border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
  will-change: transform;
}
.nav.is-scrolled {
  background: rgba(11,8,7,.88);
  /* backdrop-filter supprimé : créait un layer GPU + floutait tout au premier scroll (hitch visible) */
  padding: .65rem 0;
  border-bottom-color: rgba(210,180,140,.12);
}
.nav__container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.nav__brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: var(--sand);
}
.nav__brand-mark { color: var(--ember); }
.nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: var(--bone);
}
.nav__menu {
  display: flex; gap: 2rem;
  font-family: var(--font-serif);
  letter-spacing: .04em;
}
.nav__menu a {
  position: relative;
  color: rgba(239,228,206,.75);
  transition: color .2s;
  font-size: 1.02rem;
}
.nav__menu a::after {
  content: ""; position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--ember);
  transition: width .3s var(--ease);
}
.nav__menu a:hover { color: var(--bone); }
.nav__menu a:hover::after { width: 100%; }

.nav__cta { padding: .6rem 1.1rem; font-size: .85rem; }

.nav__toggle {
  display: none;
  width: 38px; height: 38px;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--sand);
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 12px; }
.nav__toggle span:nth-child(2) { top: 18px; }
.nav__toggle span:nth-child(3) { top: 24px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* -----------  HERO  ----------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(11,8,7,.55) 0%, rgba(11,8,7,.85) 100%),
    radial-gradient(ellipse 80% 60% at 50% 35%, #c0792d33 0%, transparent 70%),
    linear-gradient(180deg, #2a1810 0%, #0b0805 60%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
  /* parallax supprimé : layer GPU surdimensionné + overflow:hidden parent = reflow main thread à chaque scroll */
}
.hero__bg::after {
  /* SVG silhouette western — rendu en CSS pour rester safe sans image */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 600' preserveAspectRatio='xMidYMax slice'><g fill='%23000' opacity='0.85'><path d='M0,600 L0,420 L120,400 L220,440 L340,360 L460,420 L600,380 L760,440 L900,400 L1080,460 L1240,400 L1400,440 L1600,420 L1600,600 Z'/><path d='M0,600 L0,520 L80,510 L180,500 L240,520 L320,500 L420,540 L520,510 L640,540 L740,520 L860,540 L980,520 L1100,545 L1240,525 L1380,540 L1500,525 L1600,540 L1600,600 Z' opacity='0.85'/><g transform='translate(1080,440)'><path d='M0,0 c2,-4 4,-12 8,-14 c4,-2 6,4 10,2 c4,-2 8,-10 12,-10 c6,0 6,8 10,10 c4,2 6,-2 10,-2 c4,0 6,4 8,8 l-2,18 l-56,-2 z'/><rect x='6' y='-2' width='4' height='14'/><rect x='40' y='-2' width='4' height='14'/></g><g transform='translate(140,395)'><path d='M-6,0 c0,-30 6,-50 14,-60 c6,-8 6,-12 0,-22 c-2,-4 4,-2 8,-2 c2,-6 8,-6 12,0 c4,-2 10,-4 8,2 c-6,10 -6,14 0,22 c8,10 14,30 14,60 z' opacity='0.95'/></g></g></svg>");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: .9;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,.55) 75%, rgba(0,0,0,.9) 100%),
    linear-gradient(180deg, rgba(11,8,7,.4) 0%, transparent 30%, rgba(11,8,7,.6) 100%);
}
.hero__content {
  text-align: center;
  padding: 8rem 1.25rem 6rem;
  max-width: 900px;
}
.hero__pretitle {
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ember);
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--bone);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: .02em;
  text-shadow:
    0 4px 0 rgba(0,0,0,.5),
    0 0 60px rgba(192,121,45,.2);
  margin-bottom: 1.5rem;
}
.hero__slogan {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(239,228,206,.92);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}
.hero__cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero__meta {
  display: inline-flex; align-items: center;
  gap: 1.8rem;
  padding: 1rem 1.6rem;
  border: 1px solid rgba(210,180,140,.18);
  border-radius: var(--radius);
  background: rgba(11,8,7,.72);
  /* backdrop-filter retiré : forçait le navigateur à flouter le hero derrière */
}
.hero__meta div { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.hero__meta strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--sand-2);
  letter-spacing: .04em;
}
.hero__meta span {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(239,228,206,.55);
}
.hero__meta-divider {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent, rgba(210,180,140,.4), transparent);
}

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: rgba(239,228,206,.55);
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-size: .7rem;
}
.hero__scroll span {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--ember));
  position: relative; overflow: hidden;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 50%; background: var(--bone);
  transform: translateY(-100%);
  animation: scrollBar 1.8s var(--ease) infinite;
}
@keyframes scrollBar {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* -----------  ABOUT  ----------- */
.about__grid {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.about__intro p:not(.eyebrow):not(.lead) { color: rgba(239,228,206,.7); margin-top: 1rem; }

.about__visual figcaption {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(239,228,206,.6);
  text-align: center;
  letter-spacing: .03em;
}

.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--leather-2);
  border: 1px solid rgba(210,180,140,.25);
  box-shadow: var(--shadow-lg);
}
.frame__img {
  position: absolute; inset: 8px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.5)),
    radial-gradient(ellipse 60% 40% at 50% 30%, #c0792d40 0%, transparent 60%),
    linear-gradient(135deg, #4a3220 0%, #1a0e07 100%),
    url("../img/about.jpg");
  background-size: cover;
  background-position: center;
  /* filter retiré : créait un layer GPU au moment où l'élément entrait dans le viewport (hitch hero→about) */
}
.frame__corners span {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--ember);
}
.frame__corners span:nth-child(1) { top: -2px; left: -2px;    border-right: 0; border-bottom: 0; }
.frame__corners span:nth-child(2) { top: -2px; right: -2px;   border-left: 0;  border-bottom: 0; }
.frame__corners span:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.frame__corners span:nth-child(4) { bottom: -2px; right: -2px;border-left: 0;  border-top: 0; }

/* -----------  FEATURES  ----------- */
.features__grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.feature {
  padding: 2rem 1.8rem;
  background:
    linear-gradient(180deg, rgba(59,42,30,.55), rgba(20,14,10,.75));
  border: 1px solid rgba(210,180,140,.14);
  border-radius: var(--radius);
  position: relative;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(192,121,45,.18), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(192,121,45,.45);
  box-shadow: var(--shadow-md);
}
.feature:hover::before { opacity: 1; }
.feature__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid rgba(192,121,45,.4);
  color: var(--ember);
  border-radius: 50%;
  margin-bottom: 1.4rem;
  background: rgba(192,121,45,.06);
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--bone);
  margin-bottom: .6rem;
  letter-spacing: .02em;
}
.feature p { color: rgba(239,228,206,.7); font-size: .96rem; }

/* -----------  STEPS / JOIN  ----------- */
.steps {
  list-style: none;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2.4rem 2rem 2rem;
  background:
    linear-gradient(180deg, rgba(59,42,30,.4), rgba(20,14,10,.85));
  border: 1px solid rgba(210,180,140,.12);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: rgba(192,121,45,.4); }
.step__num {
  position: absolute; top: -18px; left: 1.6rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ember);
  background: var(--ink);
  padding: .1rem .8rem;
  border: 1px solid rgba(192,121,45,.4);
  letter-spacing: .04em;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--bone);
  margin-bottom: .6rem;
}
.step p { color: rgba(239,228,206,.72); }

/* -----------  GALLERY  ----------- */
.gallery__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(210,180,140,.14);
  background: var(--leather-2);
  cursor: pointer;
}
.gallery__item::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%),
    radial-gradient(ellipse at center, rgba(192,121,45,.2) 0%, transparent 70%),
    linear-gradient(135deg, var(--leather) 0%, var(--ink) 100%);
  background-size: cover;
  background-position: center;
  /* filter retiré : appliqué sur 6 pseudo-éléments, coûteux au hover */
  transition: transform .8s var(--ease);
}
.gallery__item[data-img="g1"]::before { background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)), url("../img/gallery/g1.jpg"); }
.gallery__item[data-img="g2"]::before { background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)), url("../img/gallery/g2.jpg"); }
.gallery__item[data-img="g3"]::before { background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)), url("../img/gallery/g3.jpg"); }
.gallery__item[data-img="g4"]::before { background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)), url("../img/gallery/g4.jpg"); }
.gallery__item[data-img="g5"]::before { background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)), url("../img/gallery/g5.jpg"); }
.gallery__item[data-img="g6"]::before { background-image: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)), url("../img/gallery/g6.jpg"); }

.gallery__item:hover::before { transform: scale(1.06); }

.gallery__item figcaption {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--bone);
  letter-spacing: .03em;
  font-size: .95rem;
  transform: translateY(8px);
  opacity: .85;
  transition: transform .4s var(--ease), opacity .4s;
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

.gallery__item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.gallery__item:nth-child(2) { grid-column: span 5; grid-row: span 1; }
.gallery__item:nth-child(3) { grid-column: span 5; grid-row: span 1; }
.gallery__item:nth-child(4) { grid-column: span 4; grid-row: span 1; }
.gallery__item:nth-child(5) { grid-column: span 4; grid-row: span 1; }
.gallery__item:nth-child(6) { grid-column: span 4; grid-row: span 1; }

/* -----------  COMMUNITY  ----------- */
.community__grid {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}
.quote {
  margin: 2rem 0;
  padding: 1.8rem 2rem;
  border-left: 3px solid var(--ember);
  background: rgba(0,0,0,.25);
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(239,228,206,.85);
  font-size: 1.05rem;
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: rgba(239,228,206,.55);
  letter-spacing: .05em;
}
.community__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.community__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(59,42,30,.5), rgba(20,14,10,.7));
  border: 1px solid rgba(210,180,140,.14);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.stat:hover { transform: translateY(-4px); border-color: rgba(192,121,45,.4); }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ember);
  letter-spacing: .03em;
  margin-bottom: .3rem;
}
.stat span {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(239,228,206,.55);
}

/* -----------  FOOTER  ----------- */
.footer {
  padding: 4rem 0 2rem;
  background:
    linear-gradient(180deg, #0b0805 0%, #000 100%);
  border-top: 1px solid rgba(210,180,140,.1);
}
.footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.6fr 1fr 1fr;
  margin-bottom: 3rem;
}
.footer__brand p {
  margin-top: 1rem;
  color: rgba(239,228,206,.55);
  font-size: .92rem;
  max-width: 30ch;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--sand);
  margin-bottom: 1rem;
  letter-spacing: .04em;
}
.footer__col a {
  display: block;
  color: rgba(239,228,206,.6);
  font-size: .92rem;
  padding: .35rem 0;
  transition: color .2s, padding .2s var(--ease);
}
.footer__col a:hover { color: var(--ember); padding-left: .4rem; }

.footer__bottom {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(210,180,140,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem;
  color: rgba(239,228,206,.4);
}

/* -----------  REVEAL ANIMATION  ----------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }

/* Hero entrée séquentielle */
.hero .reveal { transition-delay: .2s; }
.hero .hero__title.reveal       { transition-delay: .35s; }
.hero .hero__slogan.reveal      { transition-delay: .55s; }
.hero .hero__cta.reveal         { transition-delay: .75s; }
.hero .hero__meta.reveal        { transition-delay: .95s; }

/* -----------  RESPONSIVE  ----------- */
@media (max-width: 960px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .nav.is-open .nav__menu {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11,8,7,.97);
    border-top: 1px solid rgba(210,180,140,.15);
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.2rem;
  }

  .about__grid,
  .community__grid { grid-template-columns: 1fr; }

  .gallery__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery__item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
  .gallery__item:nth-child(n+2) { grid-column: span 3; grid-row: span 1; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero__meta {
    flex-direction: column; gap: 1rem; padding: 1.2rem 1.6rem;
  }
  .hero__meta-divider {
    width: 30px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(210,180,140,.4), transparent);
  }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .community__stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
}
