/* AMNESIA BORDEAUX — charte verrouillée (non modifiable depuis l'admin) */
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #050403;
  --ink: #f3ebde;
  --ink-2: rgba(243, 235, 222, .74);
  --ink-3: rgba(243, 235, 222, .52);
  --gold: #c9a66b;
  --gold-hi: #e6cb96;
  --line: rgba(201, 166, 107, .5);
  --line-soft: rgba(201, 166, 107, .26);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --w: min(100vw, 520px);             /* largeur de référence mobile */
  --gut: calc(var(--w) * .06);        /* marge latérale */
  --circle: calc(var(--w) * .30);     /* diamètre des ronds : 30 % */
  --bar-h: 62px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--serif);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body::before { /* très léger halo chaud derrière le haut de page */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 38% at 50% 12%, rgba(196, 140, 66, .10), transparent 70%),
    radial-gradient(80% 50% at 50% 100%, rgba(120, 80, 40, .06), transparent 70%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.page { position: relative; z-index: 1; width: var(--w); margin: 0 auto; }

/* ---------- Haut de page : fond d'ambiance ---------- */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: -6%;
  background: url(../../img/fond-hero.webp) center 30% / cover no-repeat;
  -webkit-mask: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
          mask: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

/* ---------- Logo ---------- */
.top { padding: env(safe-area-inset-top) 0 4px; display: flex; justify-content: center; }
.logo { width: calc(var(--w) * .66); height: auto; }

/* ---------- Slider événements 9/16 ---------- */
.events { position: relative; margin-top: 4px; }
.ev-track {
  display: flex; gap: calc(var(--w) * .02);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 14px calc(var(--w) * .14) 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  outline: none;
}
.ev-track::-webkit-scrollbar { display: none; }
.ev-card {
  flex: 0 0 calc(var(--w) * .68); margin: 0;
  aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  scroll-snap-align: center; scroll-snap-stop: always;
  isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); /* force le découpage arrondi sur iPhone */
  box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 0 26px rgba(214, 160, 80, .32), 0 18px 40px rgba(0,0,0,.6);
  background: #0d0a07;
  transition: opacity .5s ease, transform .5s ease, filter .5s ease;
}
.ev-card { position: relative; }
.ev-card::after { /* liseré doré dessiné AU-DESSUS de l'image : continu sur iPhone */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(230, 203, 150, .75);
}
.ev-card .ev-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: scale(1.15); object-fit: cover; filter: blur(18px) brightness(.55); }
.ev-card .ev-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.ev-card.is-dim { opacity: .75; transform: scale(.9); filter: brightness(.6); box-shadow: 0 10px 30px rgba(0,0,0,.7); }
.ev-dots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
.ev-dots button {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.ev-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(230, 203, 150, .75); transition: background .3s, transform .3s; }
.ev-dots [aria-selected="true"] i { background: var(--gold-hi); border-color: var(--gold-hi); transform: scale(1.15); }
.events.single .ev-dots { display: none; }
.events.single .ev-track { justify-content: center; padding-inline: 0; overflow: hidden; }
.ev-card--video .ev-img { object-fit: cover; background: #050403; }

/* ---------- Petit trait de séparation ---------- */
.sep { width: calc(var(--w) * .28); height: 1px; margin: 0 auto; background: linear-gradient(90deg, transparent, rgba(230,203,150,.75), transparent); }

/* ---------- Blocs circulaires ---------- */
.blocks { padding-top: 3.5svh; }
.blk {
  display: grid; align-items: start;
  column-gap: calc(var(--w) * .05);
  padding: 4.5svh var(--gut);
}
.blk--right { grid-template-columns: minmax(0, 1fr) var(--circle); }
.blk--left  { grid-template-columns: var(--circle) minmax(0, 1fr); }
.blk--left .blk-side { order: -1; }
.blk-side { display: flex; flex-direction: column; align-items: center; }
.blk-note { margin: 12px 0 0; white-space: nowrap; text-align: center; font: 500 10px/1.7 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

.blk h2 {
  margin: 0 0 2px; font: 600 calc(var(--w) * .064)/1.1 var(--serif);
  letter-spacing: -.01em; color: var(--ink);
  text-wrap: balance; overflow-wrap: normal; hyphens: none;
}
.blk-p { margin: 0; color: var(--ink-2); font-size: calc(var(--w) * .041); line-height: 1.5; }

.blk-circle {
  margin-top: 4px; /* aligné sur le haut du titre */
  position: relative; width: var(--circle); height: var(--circle);
}
.blk-circle .ph {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(230, 203, 150, .45);
  box-shadow: 0 0 0 3px rgba(5,4,3,.92), 0 0 22px rgba(214,160,80,.16), 0 16px 40px rgba(0,0,0,.65);
  background: #0d0a07;
}
.blk-circle img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.blk-circle img.on { opacity: 1; }

/* Halo lumineux qui tourne en continu autour du rond */
.ring { position: absolute; inset: -5px; border-radius: 50%; pointer-events: none; animation: ring-spin 4.8s linear infinite; }
.ring i {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(201,166,107,.22) 0deg, rgba(201,166,107,.22) 150deg,
    rgba(230,203,150,.55) 250deg, #f3dca8 320deg, #fff8e8 350deg, rgba(201,166,107,.22) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 1.6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.2px), #000 calc(100% - 1.6px));
}
.ring--glow { filter: blur(6px); opacity: 1; }
.ring--glow i {
  background: conic-gradient(from 0deg, transparent 0deg 210deg, rgba(235,185,105,.7) 295deg, #fff0c8 347deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 6px));
}
.blk--left .ring { animation-direction: reverse; }
.blk:nth-child(2) .ring { animation-delay: -1.6s; }
.blk:nth-child(3) .ring { animation-delay: -3.2s; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* ---------- Carte fidélité ---------- */
.loyalty {
  position: relative; margin: 1.5svh 0 0; padding: 16px var(--gut) 16px calc(var(--gut) * .7);
  display: grid; grid-template-columns: calc(var(--w) * .37) 50px minmax(0, 1fr); align-items: center; gap: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(40% 120% at 22% 50%, rgba(214,160,80,.16), transparent 70%),
    linear-gradient(90deg, rgba(201,166,107,.09), rgba(201,166,107,.03) 55%, rgba(201,166,107,.07));
}
.lc { position: relative; height: calc(var(--w) * .16); }
.lc-card {
  position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1.586; border-radius: 9px; overflow: hidden;
  background: linear-gradient(140deg, #221a12 0%, #0b0907 48%, #16110c 100%);
  border: 1px solid rgba(230,203,150,.38);
  box-shadow: 0 16px 30px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,235,200,.14);
  transform: translateY(-50%) rotate(-8deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.lc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255,240,210,.12) 50%, transparent 62%); }
.lc-back { transform: translate(-9%, -42%) rotate(-15deg); opacity: .8; }
.lc-card img { width: 70%; }
.lc-card small { font: 500 6.5px/1 var(--sans); letter-spacing: .24em; color: var(--gold); }
.lg { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(5,4,3,.35); }
.lg svg { width: 25px; height: 25px; }
.lt-t { margin: 0; font: 600 calc(var(--w) * .056)/1.1 var(--serif); white-space: nowrap; }
.lt-s { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }

/* ---------- Informations pratiques ---------- */
.infos { position: relative; isolation: isolate; padding: 30px calc(var(--gut) * .5) calc(var(--w) * .1); }
.infos::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: calc(var(--w) * -.1); height: calc(var(--w) * .32);
  background: url(../../img/ville-nuit.webp) center bottom / auto 100% no-repeat;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.infos-h { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); justify-content: center; }
.infos-h::before, .infos-h::after { content: ""; flex: 1; max-width: 90px; height: 1px; background: var(--line); }
.infos-g { display: grid; grid-template-columns: repeat(3, 1fr); }
.inf { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
.inf + .inf { border-left: 1px solid var(--line-soft); }
.inf svg { width: 22px; height: 22px; margin-bottom: 8px; }
.inf-l { margin: 0 0 4px; font-weight: 600; font-size: 12.5px; }
.inf-v { margin: 0; font-style: normal; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.inf-x { color: var(--gold); font-size: 11px; }
.inf--link { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; border-radius: 10px; }
.inf--link:active { background: rgba(201,166,107,.12); }
.inf-num { color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(230,203,150,.6); text-underline-offset: 3px; }

svg { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
svg .f { fill: var(--gold); stroke: none; }

.foot { position: relative; padding: 4px var(--gut) calc(var(--bar-h) + 26px + env(safe-area-inset-bottom)); text-align: center; }
.foot p { margin: 0; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.foot a { color: var(--ink-3); }

/* ---------- Barre fixe du bas ---------- */
.bar {
  position: fixed; z-index: 50; bottom: 0; left: 50%; transform: translateX(-50%);
  width: var(--w); display: flex; align-items: center; gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(5, 4, 3, .93);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-soft);
}
.go {
  flex: 0 0 auto; height: 44px; padding: 0 18px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, rgba(201,166,107,.14), rgba(201,166,107,.04));
  font: 600 12px/1 var(--sans); letter-spacing: .16em; color: var(--gold-hi); white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.go svg { width: 19px; height: 19px; stroke: var(--gold-hi); }
.go:active { background: rgba(201,166,107,.22); }
.socs { flex: 1; display: flex; align-items: center; justify-content: space-around; }
.soc { width: 52px; height: 48px; display: grid; place-items: center; position: relative; -webkit-tap-highlight-color: transparent; }
.soc + .soc::before, .socs .soc:first-child::before { content: ""; position: absolute; left: -4px; top: 12px; bottom: 12px; width: 1px; background: var(--line-soft); }
.socs .soc:first-child::before { left: -2px; }
.soc svg { width: 28px; height: 28px; stroke: #f6e3b8; stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(230,190,120,.45)); }
.soc svg .f { fill: #f6e3b8; }
.soc.is-off { opacity: .9; }

/* ---------- Apparition douce au scroll ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .blk-circle img, .ev-card { transition: none; }
  .ring { animation: none; transform: rotate(-40deg); }
}

/* ---------- Mentions légales ---------- */
.legal main { padding: 10px var(--gut) 0; }
.legal h1 { font: 600 34px/1.1 var(--serif); margin: 20px 0 10px; }
.legal h2 { font: 600 22px/1.2 var(--serif); margin: 26px 0 6px; color: var(--gold-hi); }
.legal p { color: var(--ink-2); margin: 0; }
.legal .logo { width: calc(var(--w) * .5); }
.todo { color: #e39a6b; font-style: normal; }

/* ---------- Grand écran : on garde la colonne mobile centrée ---------- */
@media (min-width: 700px) {
  .page { border-left: 1px solid rgba(201,166,107,.08); border-right: 1px solid rgba(201,166,107,.08); }
}
