/* ==========================================================================
   LUXE THEME — black & gold. Loaded after style.css; remove the <link> in
   inc/header.php to return to the previous look.
   ========================================================================== */

:root {
  --lx-bg: #080808;
  --lx-bg-2: #0e0e0e;
  --lx-bg-3: #141414;
  --lx-text: #d9d3c4;
  --lx-muted: #9b9483;
  --lx-ivory: #f6f0e0;
  --lx-line: rgba(212, 175, 55, 0.22);
  --lx-line-soft: rgba(212, 175, 55, 0.12);
  --lx-gold-grad: linear-gradient(135deg, #f3dd86 0%, #d4af37 45%, #9c7418 100%);
  --lx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;

  /* re-map the legacy palette so existing rules turn dark automatically */
  --color-black-50: #101010;
  --color-black-100: rgba(212, 175, 55, 0.2);
  --color-black-700: #a29b88;
  --color-black-800: #d9d3c4;
  --color-gold-50: #15120a;
  --color-gold-100: #2a2210;
  --color-gold-600: #dcbc55;
  --color-gold-700: #e6c96a;
  --transition-smooth: all 0.45s var(--lx-ease);
  color-scheme: dark;
}

::selection { background: #d4af37; color: #080808; }
html { scrollbar-color: #8a6a1c #0a0a0a; }

body {
  background: var(--lx-bg);
  color: var(--lx-text);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--lx-ivory);
  font-weight: 500;
  letter-spacing: 0.02em;
}
a { transition: var(--transition-smooth); }

/* ---------- Sections ---------- */
.section { background: var(--lx-bg); padding: 8.5rem 0; }
.section-alt { background: var(--lx-bg-2); }
.section-dark {
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.07), transparent 60%), #0b0b0b;
  color: var(--lx-text);
}
.section + .section { border-top: 1px solid var(--lx-line-soft); }

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lx-ivory);
  margin-bottom: 5rem;
}
.section-title::after {
  width: 110px;
  height: 1px;
  bottom: -1.6rem;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
.section-title::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(-1.6rem - 4px);
  width: 9px;
  height: 9px;
  background: #d4af37;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 0 5px var(--lx-bg);
}
.section-alt .section-title::before { box-shadow: 0 0 0 5px var(--lx-bg-2); }
.section-dark .section-title::before { box-shadow: 0 0 0 5px #0b0b0b; }
.section-dark .section-title, .section-dark h2 { color: var(--lx-ivory); }
.section-lead, .section-lead-light { color: var(--lx-muted); font-size: 1.15rem; font-weight: 300; }

.reveal { transform: translateY(46px); transition: opacity 1.2s var(--lx-ease), transform 1.2s var(--lx-ease); }

/* ---------- Header ---------- */
.header { padding: 1.25rem 0; }
.header.scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid var(--lx-line);
  backdrop-filter: blur(14px);
  padding: 0.5rem 0;
}
.nav-link {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lx-ivory);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #e8c75a; }
.nav-link::after { height: 1px; background: #d4af37; }
.nav-menu { gap: 2.2rem; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
}
.btn-primary {
  background: var(--lx-gold-grad);
  color: #0a0a0a;
  border: none;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fbeaa0 0%, #e2bd4a 45%, #b0851f 100%);
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(212, 175, 55, 0.32);
}
.btn-outline { border: 1px solid #d4af37; color: #e8c75a; background: transparent; }
.btn-outline:hover { background: var(--lx-gold-grad); color: #0a0a0a; transform: translateY(-3px); }
.btn-ghost { color: var(--lx-text); border: 1px solid var(--lx-line) !important; }
.btn-ghost:hover { color: #e8c75a; border-color: #d4af37 !important; }
.header .btn-primary { padding: 0.8rem 1.7rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at center, rgba(8, 8, 8, 0.25) 0%, rgba(8, 8, 8, 0.85) 100%),
    linear-gradient(rgba(8, 8, 8, 0.35), rgba(8, 8, 8, 0.7)),
    url('./logo/intro.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff3c4 0%, #e6c35a 55%, #b88a22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 2.2rem;
  padding-bottom: 2.2rem;
  position: relative;
}
.hero h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  transform: translateX(-50%);
}
.hero p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  letter-spacing: 0.03em;
  color: var(--lx-ivory);
  opacity: 0.95;
  max-width: 820px;
}
.hero-buttons { gap: 1.5rem; margin-top: 1rem; }
.scroll-indicator { color: #e8c75a; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; }
.mouse { border-color: #d4af37; border-radius: 2px; }
.mouse::before { background: #d4af37; }

/* ---------- Breadcrumb (gold bar, refined) ---------- */
.breadcrumb-bar {
  background: var(--lx-gold-grad);
  color: #0a0a0a;
  padding: 0.8rem 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.breadcrumb ol { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.breadcrumb a, .breadcrumb [aria-current='page'] { color: #0a0a0a; }

/* ---------- About ---------- */
.highlight {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--lx-ivory);
}
.text-gold { color: #e8c75a; font-style: normal; font-weight: 600; letter-spacing: 0.04em; }
.about-text { color: var(--lx-text); font-size: 1.05rem; }
.about-image { border-radius: 0; box-shadow: 18px 18px 0 rgba(212, 175, 55, 0.12); border: 1px solid var(--lx-line); }
.engagement-list {
  background: var(--lx-bg-3);
  border-radius: 0;
  border: 1px solid var(--lx-line);
  border-left: 3px solid #d4af37;
}
.engagement-list h3 { color: #e8c75a; font-size: 1.7rem; }
.engagement-list li .bi { color: #d4af37; }

/* ---------- Cards ---------- */
.icon-card, .library-card, .training-card, .contact-info {
  background: linear-gradient(160deg, #131313 0%, #0b0b0b 100%);
  border: 1px solid var(--lx-line);
  border-radius: 0;
  padding: 2.6rem 2.2rem;
  color: var(--lx-text);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}
.icon-card::before, .library-card::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--lx-gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--lx-ease);
}
.icon-card:hover::before, .library-card:hover::before { transform: scaleX(1); }
.icon-card:hover, .library-card:hover, .training-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.08);
}
.icon-card .card-icon, .section-dark .icon-card .card-icon {
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 0;
  color: #e8c75a;
  transform: rotate(0);
}
.icon-card h3, .section-dark .icon-card h3, .library-card h3, .training-card h3 {
  color: var(--lx-ivory);
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}
.icon-card p, .section-dark .icon-card p, .library-card p, .training-card p { color: var(--lx-muted); }
.icon-card .more {
  color: #e8c75a;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.library-card .card-icon { color: #e8c75a; }
.training-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 400;
  background: var(--lx-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Timeline ---------- */
.timeline { border-left: 1px solid rgba(212, 175, 55, 0.5); }
.timeline li::before {
  background: #d4af37;
  box-shadow: 0 0 0 5px var(--lx-bg), 0 0 18px rgba(212, 175, 55, 0.6);
}
.timeline h3 { color: #e8c75a; font-size: 1.9rem; }

/* ---------- Gallery ---------- */
.gallery { gap: 1.25rem; }
.gallery a {
  border-radius: 0;
  border: 1px solid var(--lx-line);
  position: relative;
}
.gallery a::after {
  content: '\F52A';
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #e8c75a;
  background: rgba(8, 8, 8, 0.55);
  opacity: 0;
  transition: opacity 0.5s var(--lx-ease);
}
.gallery a:hover::after { opacity: 1; }
.gallery img { transition: transform 1.2s var(--lx-ease); }
.gallery a:hover img { transform: scale(1.1); }

.chip {
  border-radius: 0;
  background: transparent;
  border: 1px solid var(--lx-line);
  color: var(--lx-text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
}
.chip:hover { border-color: #d4af37; color: #e8c75a; background: transparent; }
.chip.active, .year-filters .chip.active {
  background: var(--lx-gold-grad);
  border-color: transparent;
  color: #0a0a0a;
}
.event-head h2 { font-size: 2.3rem; }
.event-meta { color: #e8c75a; letter-spacing: 0.08em; }

/* ---------- Contact / forms ---------- */
.form-group label { color: var(--lx-text); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.form-group input, .form-group textarea {
  background: #0f0f0f;
  color: var(--lx-ivory);
  border: 1px solid var(--lx-line);
  border-radius: 0;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}
.field-error { color: #ff8f80; }
.form-status.success { color: #8bdc9d; }
.contact-info h3 { color: #e8c75a; font-size: 1.8rem; }
.info-item .icon, .info-item .icon .bi { color: #d4af37; }
.social-link { color: var(--lx-text); }
.social-link:hover { color: #e8c75a; }

/* Registration card */
.inscription-card {
  background: #0c0c0c;
  border: 1px solid var(--lx-line);
  border-radius: 0;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 80px rgba(212, 175, 55, 0.05);
}
.stepper li { color: var(--lx-muted); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.stepper li.active { color: #e8c75a; }
.stepper .dot { background: #0c0c0c; border: 1px solid var(--lx-line); color: var(--lx-muted); border-radius: 0; }
.stepper li.active .dot { background: var(--lx-gold-grad); border-color: transparent; color: #0a0a0a; box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.16); }
.stepper li.done .dot { background: #0c0c0c; border-color: #d4af37; color: #e8c75a; }
.stepper li::before { background: var(--lx-line); }
.stepper li.done::before, .stepper li.active::before { background: #d4af37; }
.panel-title { color: var(--lx-ivory); font-size: 2rem; font-weight: 500; }
.inscription-form .form-group label { color: var(--lx-text); }
.inscription-form .input-icon input,
.inscription-form .input-icon select,
.inscription-form .input-icon textarea {
  background: #101010;
  border: 1px solid var(--lx-line);
  border-radius: 0;
  color: var(--lx-ivory);
}
.inscription-form .input-icon input:hover, .inscription-form .input-icon select:hover, .inscription-form .input-icon textarea:hover { border-color: rgba(212, 175, 55, 0.6); }
.inscription-form .input-icon input:focus, .inscription-form .input-icon select:focus, .inscription-form .input-icon textarea:focus {
  background: #131313;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}
.inscription-form .input-icon .error { border-color: #d6604f; background: #1a0f0d; }
.inscription-form .input-icon select option { background: #101010; color: var(--lx-ivory); }
.input-icon > i { color: #d4af37; }
.opt { color: var(--lx-muted); }
abbr[title] { color: #e8c75a; }
.wizard-nav { border-top-color: var(--lx-line); }
.inscription-success p { color: var(--lx-muted); }
.inscription-success .reference {
  background: rgba(212, 175, 55, 0.07);
  border: 1px dashed #d4af37;
  border-radius: 0;
  color: var(--lx-ivory);
}
.success-icon { background: var(--lx-gold-grad); border-radius: 0; transform: rotate(45deg); }
.success-icon i { transform: rotate(-45deg); }
.inscription-aside::after { background: linear-gradient(to top, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.1) 60%); }
.aside-caption i { color: #e8c75a; }
.aside-caption strong { font-size: 1.9rem; font-weight: 500; }

/* ---------- Footer ---------- */
.footer {
  background: #050505;
  border-top: 1px solid var(--lx-line);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  width: 240px; height: 1px;
  background: var(--lx-gold-grad);
  transform: translateX(-50%);
}
.footer h4 {
  color: #e8c75a;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.footer-links a, .footer-contact p, .footer-bottom { color: var(--lx-muted); }
.footer-links a:hover { color: #e8c75a; }
.footer-tagline { font-family: var(--font-display); font-size: 1.4rem; color: #e8c75a; }
.footer-bottom { border-top-color: var(--lx-line-soft); font-size: 0.8rem; letter-spacing: 0.06em; }
.footer-partners { border-bottom-color: var(--lx-line-soft); }
.partner { border-radius: 0; border-color: var(--lx-line); letter-spacing: 0.08em; }

/* ---------- Misc ---------- */
.to-top { border-radius: 0; background: var(--lx-gold-grad); color: #0a0a0a; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.lightbox { background: rgba(4, 4, 4, 0.96); }
.lightbox img { border-radius: 0; border: 1px solid var(--lx-line); }
.lightbox-nav { border-radius: 0; border: 1px solid var(--lx-line); background: transparent; }
.skip-link { border-radius: 0; background: var(--lx-gold-grad); }
input[type='date']::-webkit-calendar-picker-indicator { filter: invert(0.75) sepia(1) saturate(4) hue-rotate(5deg); cursor: pointer; }

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .nav-menu { background: rgba(8, 8, 8, 0.98); border-bottom: 1px solid var(--lx-line); }
  .hero::after { inset: 0.75rem; }
  .hero h1 { letter-spacing: 0.06em; font-size: clamp(1.4rem, 6.5vw, 2rem); }
  .highlight { font-size: 1.4rem; }
}

/* ---------- Buttons: slightly rounded everywhere ---------- */
:root { --lx-radius-btn: 14px; }
.btn,
.chip,
.to-top,
.lightbox-nav,
.lightbox-close,
.skip-link,
.nav-toggle,
button[type='submit'] { border-radius: var(--lx-radius-btn); }
.btn-primary, .btn-outline, .btn-ghost { border-radius: var(--lx-radius-btn); }

/* ---------- Gold sparkles in the hero (sparkles.js) ---------- */
.hero .sparkles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero > .container { position: relative; z-index: 2; }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 3.5rem; }
.contact-tile { text-align: center; padding: 2.4rem 1.5rem; background: linear-gradient(160deg, #131313 0%, #0b0b0b 100%); border: 1px solid var(--lx-line); transition: var(--transition-smooth); }
.contact-tile:hover { border-color: rgba(212, 175, 55, 0.6); transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.55); }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 3.6rem; height: 3.6rem; border: 1px solid rgba(212, 175, 55, 0.5); color: #e8c75a; font-size: 1.4rem; margin-bottom: 1.1rem; }
.contact-tile h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-tile p { color: var(--lx-muted); margin: 0; }
.contact-tile a { color: #e8c75a; text-decoration: none; }
.contact-tile a:hover { color: #f6d96b; }
.tile-social { display: flex; justify-content: center; gap: 1.1rem; font-size: 1.4rem; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: stretch; }
.contact-card { background: #0c0c0c; border: 1px solid var(--lx-line); padding: 2.5rem; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.contact-card .card-title { font-size: 1.9rem; margin-bottom: 1.75rem; }
.contact-card .form-group { margin-bottom: 1.15rem; }
.contact-card .form-group label { font-size: 0.78rem; margin-bottom: 0.45rem; }
.contact-card .field-error { min-height: 0; }
.contact-card .input-icon input, .contact-card .input-icon textarea {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: #101010;
  border: 1px solid var(--lx-line);
  border-radius: 0;
  color: var(--lx-ivory);
  font: inherit;
  font-size: 0.95rem;
}
.contact-card .input-icon textarea { resize: vertical; min-height: 150px; }
.contact-card .input-icon input:hover, .contact-card .input-icon textarea:hover { border-color: rgba(212, 175, 55, 0.6); }
.contact-card .input-icon input:focus, .contact-card .input-icon textarea:focus { outline: none; background: #131313; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16); }
.contact-card .input-icon .error { border-color: #d6604f; background: #1a0f0d; }

.contact-map { position: relative; border: 1px solid var(--lx-line); min-height: 420px; background: #0c0c0c; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.95) sepia(0.35) hue-rotate(2deg) saturate(1.4); }
.map-link { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; background: rgba(8, 8, 8, 0.85); border: 1px solid var(--lx-line); color: #e8c75a; text-decoration: none; padding: 0.55rem 1rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; border-radius: var(--lx-radius-btn, 6px); }
.map-link:hover { border-color: #d4af37; color: #f6d96b; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map { min-height: 320px; }
  .contact-card { padding: 1.75rem 1.25rem; }
}

.btn-block { width: 100%; justify-content: center; border: none; }

/* ---------- Footer: smaller type + chevron links ---------- */
.footer { padding: 3.5rem 0 1.5rem; }
.footer h4 { font-size: 0.68rem; letter-spacing: 0.22em; margin-bottom: 1.1rem; }
.footer-tagline { font-size: 1.15rem; }
.footer-links a, .footer-contact p { font-size: 0.82rem; line-height: 1.5; }
.footer-links a { display: flex; align-items: center; gap: 0.55rem; padding: 0.38rem 0; opacity: 1; }
.footer-links a::before {
  font-family: 'bootstrap-icons';
  content: '\F285';
  font-size: 0.6rem;
  color: #d4af37;
  transition: transform 0.4s var(--lx-ease);
}
.footer-links a:hover { color: #e8c75a; }
.footer-links a:hover::before { transform: translateX(4px); }
.footer-contact p { margin-bottom: 0.6rem; }
.footer-contact .bi { font-size: 0.85rem; }
.footer-social a { font-size: 1.05rem; }
.footer-bottom { font-size: 0.72rem; }
.footer-partners h4 { margin-bottom: 1rem; }
.partner { font-size: 0.78rem; padding: 0.55rem 1rem; }
.partner .bi { font-size: 1rem; }
.footer-content { gap: 3rem; margin-bottom: 2rem; }

/* ---------- Hero eyebrow: contest identity ---------- */
.hero .hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #e8c75a;
  opacity: 1;
  margin: 0 auto 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero .hero-eyebrow::before, .hero .hero-eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d4af37);
}
.hero .hero-eyebrow::after { transform: scaleX(-1); }
@media (max-width: 768px) {
  .hero .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.26em; }
  .hero .hero-eyebrow::before, .hero .hero-eyebrow::after { width: 22px; }
}

/* ==========================================================================
   GSAP layer (animations.js). Everything here is scoped to .js / .gsap-on so the
   site still works with plain CSS if GSAP cannot load.
   ========================================================================== */

/* hero starts hidden (no flash); GSAP reveals it */
.js .hero .hero-eyebrow, .js .hero h1, .js .hero p, .js .hero .scroll-indicator { opacity: 0; }
.js .fade-in { animation: none; }
/* the old CSS scroll reveal is replaced by ScrollTrigger */
.js .reveal { opacity: 1; transform: none; transition: none; }

/* page transition curtain */
.page-transition { display: none; position: fixed; inset: 0; z-index: 5000; background: #080808; pointer-events: none; }
.js .page-transition { display: block; }
.page-transition::after { content: ''; position: absolute; left: 50%; top: calc(50% + 70px); width: 120px; height: 1px; background: linear-gradient(90deg, transparent, #d4af37, transparent); transform: translate(-50%, -50%); }
.page-transition img { position: absolute; left: 50%; top: 50%; width: min(240px, 55vw); height: auto; transform: translate(-50%, -50%); }

/* scroll progress (gold hairline at the very top) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1200; background: linear-gradient(90deg, #9c7418, #f3dd86, #d4af37); transform-origin: left center; transform: scaleX(0); pointer-events: none; }

/* header slides away while reading, comes back on scroll up */
.header { transition: var(--transition-smooth), transform 0.6s var(--lx-ease); }
.header.is-hidden { transform: translateY(-110%); }

/* hero gold rule driven by --line */
.hero h1::after { transform: translateX(-50%) scaleX(var(--line, 1)); }

/* section title: letters rise inside a mask, ornament drawn by --orn / --dia */
.section-title { perspective: 700px; }
.section-title::after { transform: translateX(-50%) scaleX(var(--orn, 1)); }
.section-title::before { transform: translateX(-50%) rotate(45deg) scale(var(--dia, 1)); }
.section-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.02em 0.08em; margin: -0.14em -0.02em -0.08em; }
.section-title .char { display: inline-block; will-change: transform; transform-origin: 50% 100%; }

/* timeline progress line */
.timeline { position: relative; }
.timeline .tl-progress { position: absolute; left: -1px; top: 0; width: 3px; height: 100%; background: linear-gradient(180deg, #f3dd86, #d4af37 60%, #9c7418); transform-origin: top center; box-shadow: 0 0 14px rgba(212, 175, 55, 0.55); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .page-transition, .scroll-progress { display: none !important; }
}

/* ---------- Gallery: toolbar, summary, captions, pagination ---------- */
.gallery-toolbar { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(200px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 0.9rem; margin: 0 auto 1.75rem; padding: 1.1rem; background: #0c0c0c; border: 1px solid var(--lx-line); }
.gallery-toolbar .tool { position: relative; }
.gallery-toolbar .tool > i { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: #d4af37; pointer-events: none; font-size: 0.95rem; }
.gallery-toolbar input[type='search'], .gallery-toolbar select {
  width: 100%; height: 100%; min-height: 2.9rem; padding: 0.7rem 2.2rem 0.7rem 2.6rem; background: #101010; color: var(--lx-ivory);
  border: 1px solid var(--lx-line); border-radius: 0; font: inherit; font-size: 0.9rem; appearance: none; -webkit-appearance: none;
}
.gallery-toolbar select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='%23d4af37'%3E%3Cpath d='M1.5 5l6.5 6.5L14.5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.gallery-toolbar select option { background: #101010; color: var(--lx-ivory); }
.gallery-toolbar input[type='search']::-webkit-search-cancel-button { display: none; }
.gallery-toolbar input:hover, .gallery-toolbar select:hover { border-color: rgba(212, 175, 55, 0.6); }
.gallery-toolbar input:focus, .gallery-toolbar select:focus { outline: none; border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16); }
.gallery-toolbar .tool-clear { position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); color: var(--lx-muted); font-size: 0.8rem; text-decoration: none; padding: 0.3rem; }
.gallery-toolbar .tool-clear:hover { color: #e8c75a; }
.gallery-toolbar .btn { padding: 0 1.8rem; min-height: 2.9rem; }
.js .gallery-toolbar .btn { display: none; }
.js .gallery-toolbar { grid-template-columns: minmax(200px, 1.6fr) minmax(200px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr); }

.gallery-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem; margin-bottom: 1.5rem; }
.gallery-summary .count { color: var(--lx-muted); font-size: 0.85rem; letter-spacing: 0.04em; margin: 0; }
.gallery-summary .count strong { color: #e8c75a; font-weight: 600; }
.active-filters { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.active-filters a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.8rem; border: 1px solid var(--lx-line); color: var(--lx-text); font-size: 0.78rem; text-decoration: none; border-radius: var(--lx-radius-btn, 6px); }
.active-filters a:hover { border-color: #d4af37; color: #e8c75a; }
.active-filters .reset { border-color: transparent; color: #e8c75a; text-decoration: underline; text-underline-offset: 3px; }

.gallery a { position: relative; }
.gallery a .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 0.1rem; padding: 2.2rem 1rem 0.9rem; background: linear-gradient(to top, rgba(8, 8, 8, 0.92), rgba(8, 8, 8, 0)); color: var(--lx-ivory); transform: translateY(100%); opacity: 0; transition: transform 0.6s var(--lx-ease), opacity 0.6s var(--lx-ease); pointer-events: none; }
.gallery a .cap strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.gallery a .cap em { font-style: normal; font-size: 0.74rem; color: #e8c75a; letter-spacing: 0.06em; }
.gallery a:hover .cap, .gallery a:focus-visible .cap { transform: none; opacity: 1; }
.gallery a::after { z-index: 1; }

.gallery-empty { text-align: center; padding: 5rem 1rem; border: 1px dashed var(--lx-line); }
.gallery-empty > i { font-size: 2.6rem; color: #d4af37; }
.gallery-empty h3 { margin: 1rem 0 0.4rem; font-size: 1.8rem; }
.gallery-empty p { color: var(--lx-muted); margin-bottom: 1.5rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3rem; }
.pagination .pg { display: inline-flex; align-items: center; justify-content: center; min-width: 2.7rem; height: 2.7rem; padding: 0 0.5rem; border: 1px solid var(--lx-line); color: var(--lx-text); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em; border-radius: var(--lx-radius-btn, 6px); transition: var(--transition-smooth); }
.pagination a.pg:hover { border-color: #d4af37; color: #e8c75a; transform: translateY(-2px); }
.pagination .pg.active { background: var(--lx-gold-grad); border-color: transparent; color: #0a0a0a; font-weight: 700; }
.pagination .pg-gap { border-color: transparent; color: var(--lx-muted); min-width: 1.5rem; }
.pagination .disabled { opacity: 0.3; }

.lightbox { flex-direction: column; gap: 0.9rem; }
.lightbox img { max-height: calc(100% - 3.5rem); }
.lightbox-caption { color: var(--lx-text); font-size: 0.85rem; letter-spacing: 0.04em; text-align: center; max-width: 90%; margin: 0; }

@media (max-width: 1000px) { .gallery-toolbar, .js .gallery-toolbar { grid-template-columns: 1fr 1fr; } .gallery-toolbar .tool-search { grid-column: 1 / -1; } }
@media (max-width: 560px) { .gallery-toolbar, .js .gallery-toolbar { grid-template-columns: 1fr; } .gallery a .cap { transform: none; opacity: 1; } }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Marquee band ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--lx-line); border-bottom: 1px solid var(--lx-line); background: #060606; padding: 1.6rem 0; }
.marquee-track { display: flex; align-items: center; width: max-content; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 2.2rem; color: transparent; -webkit-text-stroke: 1px rgba(212, 175, 55, 0.75); }
.marquee-track span:nth-of-type(even) { color: #d4af37; -webkit-text-stroke: 0; background: var(--lx-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.marquee-track i { width: 10px; height: 10px; flex-shrink: 0; background: #d4af37; transform: rotate(45deg); box-shadow: 0 0 14px rgba(212, 175, 55, 0.7); }

/* ---------- Partners: infinite slider ---------- */
.partner-slider { position: relative; overflow: hidden; padding: 0.4rem 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.partner-track { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem 0; }
.partner-slider.is-sliding .partner-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; will-change: transform; }
.partner-slider .partner { flex-shrink: 0; margin: 0 1.6rem; min-height: 4rem; padding: 0.6rem 1.4rem; display: inline-flex; align-items: center; gap: 0.7rem; opacity: 1; text-decoration: none; color: var(--lx-text); }
.partner-slider .partner.has-logo { background: #f6f0e0; border-color: transparent; padding: 0.7rem 1.5rem; }
.partner-slider .partner img { height: 2.6rem; width: auto; max-width: 11rem; object-fit: contain; filter: none; }
.partner-slider .partner:hover { border-color: var(--lx-line); }
.partner-slider .partner-sep { width: 7px; height: 7px; flex-shrink: 0; background: #d4af37; transform: rotate(45deg); box-shadow: 0 0 10px rgba(212, 175, 55, 0.6); }
.partner-slider:not(.is-sliding) .partner-sep { display: none; }

/* ---------- Footer credit ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; text-align: left; }
.footer-bottom p { margin: 0; }
.footer-bottom .credit { color: var(--lx-muted); letter-spacing: 0.08em; }
.footer-bottom .credit a { color: #e8c75a; text-decoration: none; font-weight: 600; }
@media (max-width: 768px) { .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Scroll-linked effects ---------- */
.scrub-words .w { display: inline-block; }
.statement { padding: 9rem 0; background: var(--lx-bg); text-align: center; border-bottom: 1px solid var(--lx-line-soft); }
.statement .scrub-words { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.3; letter-spacing: 0.01em; color: var(--lx-ivory); max-width: 1000px; margin: 0 auto; }

.zoom-band { position: relative; height: 100vh; overflow: hidden; background: #050505; }
.zoom-frame { position: absolute; inset: 0; overflow: hidden; }
.zoom-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.zoom-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.25) 55%, rgba(8, 8, 8, 0.35) 100%); }
.zoom-caption { position: absolute; left: 0; right: 0; bottom: 12%; z-index: 2; text-align: center; padding: 0 1.5rem; }
.zoom-caption h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.8rem; }
.zoom-eyebrow { font-size: 0.74rem; letter-spacing: 0.4em; text-transform: uppercase; color: #e8c75a; margin-bottom: 1rem; }
.gallery a img { transform: scale(1.2); }

/* ---------- Panels (section wipes) ---------- */
.panels { position: relative; background: #050505; }
.panel { position: relative; height: 100vh; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: #050505; }
.panel-bg { position: absolute; inset: 0; overflow: hidden; }
.panel-bg img { width: 100%; height: 100%; object-fit: cover; }
.panel-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.55) 48%, rgba(5, 5, 5, 0.25) 100%); }
.panel:nth-child(even) .panel-bg::after { background: linear-gradient(270deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.55) 48%, rgba(5, 5, 5, 0.25) 100%); }
.panel-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 3; }
.panel-inner { position: relative; z-index: 2; }
.panel-inner > * { max-width: 560px; }
.panel:nth-child(even) .panel-inner { text-align: right; }
.panel:nth-child(even) .panel-inner > * { margin-left: auto; }
.panel-num { display: block; font-family: var(--font-display); font-size: clamp(5rem, 11vw, 9rem); line-height: 1; font-weight: 500; color: transparent; -webkit-text-stroke: 1px rgba(212, 175, 55, 0.7); margin-bottom: 0.5rem; }
.panel-title { font-size: clamp(2.4rem, 5vw, 4rem); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.2rem; }
.panel-text { color: var(--lx-text); font-size: 1.1rem; margin-bottom: 2rem; }
@media (max-width: 767px) { .panel { height: auto; min-height: 70vh; padding: 4rem 0; } .panel:nth-child(even) .panel-inner { text-align: left; } .panel:nth-child(even) .panel-inner > * { margin-left: 0; } }

/* ---------- Scroll-spy dots ---------- */
.spy { position: fixed; right: 1.6rem; top: 50%; transform: translateY(-50%); z-index: 900; display: flex; flex-direction: column; gap: 1.1rem; }
.spy button { display: flex; align-items: center; justify-content: flex-end; gap: 0.8rem; background: none; border: none; cursor: pointer; padding: 0.15rem 0; color: var(--lx-ivory); font: inherit; }
.spy .dot { width: 9px; height: 9px; border: 1px solid #d4af37; transform: rotate(45deg); transition: background 0.5s, box-shadow 0.5s, transform 0.5s var(--lx-ease); }
.spy .lbl { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: #e8c75a; opacity: 0; transform: translateX(8px); transition: opacity 0.5s, transform 0.5s var(--lx-ease); }
.spy button.active .dot { background: #d4af37; box-shadow: 0 0 12px rgba(212, 175, 55, 0.8); transform: rotate(45deg) scale(1.35); }
.spy button.active .lbl { opacity: 1; transform: none; }
@media (max-width: 1023px) { .spy { display: none; } }

/* ---------- Leaflet map (contact) ---------- */
.contact-map .leaflet-host { position: absolute; inset: 0; background: #0c0c0c; z-index: 1; }
.contact-map { min-height: 460px; }
.osm-dark { filter: grayscale(1) invert(0.92) contrast(0.92) sepia(0.4) hue-rotate(2deg) saturate(1.6) brightness(0.95); }
.leaflet-container { font-family: 'Inter', sans-serif; background: #0c0c0c; outline: none; }
.leaflet-bar { border: 1px solid var(--lx-line) !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important; border-radius: var(--lx-radius-btn, 6px) !important; overflow: hidden; }
.leaflet-bar a { background: #0c0c0c; color: #e8c75a; border-bottom: 1px solid var(--lx-line); width: 34px; height: 34px; line-height: 34px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.leaflet-bar a:last-child { border-bottom: none; }
.leaflet-bar a:hover, .leaflet-bar a:focus { background: #161616; color: #f6d96b; }
.leaflet-control-attribution { background: rgba(8, 8, 8, 0.8) !important; color: var(--lx-muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: #e8c75a !important; }
.leaflet-popup-content-wrapper { background: #0c0c0c; color: var(--lx-ivory); border: 1px solid #d4af37; border-radius: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7); }
.leaflet-popup-tip { background: #0c0c0c; border: 1px solid #d4af37; }
.leaflet-popup-content { margin: 14px 18px; font-size: 0.85rem; line-height: 1.6; color: var(--lx-text); }
.leaflet-popup-content strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.06em; color: #e8c75a; }
.leaflet-popup-content a { color: #e8c75a; text-decoration: none; font-weight: 600; }
.recenter a { font-size: 0.95rem; }

.gold-pin { background: none; border: none; }
.gold-pin .core { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--lx-gold-grad); transform: rotate(45deg); box-shadow: 0 0 16px rgba(212, 175, 55, 0.9); }
.gold-pin .ring { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 1px solid #d4af37; border-radius: 50%; opacity: 0; animation: pin-pulse 2.6s ease-out infinite; }
.gold-pin .ring.r2 { animation-delay: 1.3s; }
@keyframes pin-pulse { 0% { transform: scale(0.3); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }

.map-hint { position: absolute; left: 50%; top: 1rem; transform: translateX(-50%); z-index: 500; background: rgba(8, 8, 8, 0.85); border: 1px solid var(--lx-line); color: var(--lx-text); padding: 0.45rem 1rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none; transition: opacity 0.6s; white-space: nowrap; }
.map-hint.gone { opacity: 0; }
.map-link { z-index: 500; }
.map-fallback { position: relative; z-index: 2; padding: 2rem; }
.contact-map iframe { display: none; }
@media (max-width: 560px) { .map-hint { white-space: normal; text-align: center; width: 80%; } }

/* ---------- Gallery density (Flip) ---------- */
.density { display: inline-flex; border: 1px solid var(--lx-line); border-radius: var(--lx-radius-btn, 6px); overflow: hidden; }
.density button { background: transparent; border: none; color: var(--lx-muted); width: 2.6rem; height: 2.4rem; cursor: pointer; font-size: 0.95rem; }
.density button + button { border-left: 1px solid var(--lx-line); }
.density button[aria-pressed='true'] { background: var(--lx-gold-grad); color: #0a0a0a; }
.gallery[data-density='compact'] { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 0.8rem; }
.gallery[data-density='large'] { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1.6rem; }
@media (max-width: 560px) { .density { display: none; } }

/* ==========================================================================
   Gold-foil buttons: vertical metallic bands, in the site's own golds.
   Only buttons use --lx-foil (bars, rules and text gradients keep --lx-gold-grad).
   ========================================================================== */
:root {
  --lx-foil-angle: 115deg; /* 90deg = vertical bands; +25deg tilts them */
  --lx-foil: linear-gradient(var(--lx-foil-angle), #e6c04a 0%, #c9992a 14%, #a67c1c 30%, #c4a026 48%, #f0d468 67%, #fae38a 74%, #e2bb42 87%, #c9992a 100%);
}

.btn-primary,
.btn-primary:hover,
.pagination .pg.active,
.chip.active,
.year-filters .chip.active,
.density button[aria-pressed='true'],
.to-top,
.skip-link {
  background: var(--lx-foil);
  color: #0a0a0a;
}
.btn-outline:hover { background: var(--lx-foil); color: #0a0a0a; }
.to-top:hover { background: var(--lx-foil); }
.btn-primary:hover { filter: brightness(1.08) saturate(1.05); }

/* ---------- Registration payment step ---------- */
.pay-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; padding: 1.25rem 1.4rem; margin-bottom: 1.5rem; border: 1px solid var(--lx-line); border-left: 3px solid #d4af37; background: rgba(212, 175, 55, 0.05); }
.pay-amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; background: var(--lx-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pay-caption { color: var(--lx-muted); font-size: 0.9rem; }
.pay-instruction { margin: 0 0 1.4rem; padding: 1rem 1.2rem; border: 1px dashed var(--lx-line); background: #0f0f0f; font-size: 0.92rem; }
.pay-instruction[hidden] { display: none; }
.pay-instruction p { margin: 0 0 0.4rem; }
.pay-instruction p:last-child { margin: 0; }
.pay-instruction b { color: #e8c75a; font-weight: 600; }
.pay-instruction .pay-number { font-size: 1.05rem; letter-spacing: 0.05em; }
.pay-extra { color: var(--lx-muted); font-size: 0.85rem; margin: 0 0 1.4rem; }
.pay-extra .bi { color: #d4af37; margin-right: 0.3rem; }
.pay-note { color: #e8c75a; font-size: 0.9rem; margin: 0 auto 1rem; max-width: 420px; }
.pay-note[hidden] { display: none; }

/* ---------- Success screen fixes ---------- */
.stepper[hidden] { display: none; }
.inscription-success .reference { display: block; width: max-content; max-width: 100%; margin: 0 auto 1.6rem; }

/* ---------- Registration section: smaller headings ---------- */
#inscription .section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 3.8rem; }
#inscription .section-lead { font-size: 1rem; }
#inscription .panel-title { font-size: clamp(1.2rem, 2.1vw, 1.55rem); letter-spacing: 0.07em; line-height: 1.25; margin-bottom: 1.3rem; }
#inscription .inscription-success h3 { font-size: 1.5rem; }
#inscription .aside-caption strong { font-size: 1.4rem; }
#inscription .pay-amount { font-size: 1.9rem; }
#inscription .stepper { margin-bottom: 2rem; }

/* ---------- Registration steps: smaller step titles ---------- */
#inscription .stepper li { font-size: 0.6rem; letter-spacing: 0.16em; gap: 0.4rem; }
#inscription .stepper .dot { width: 1.9rem; height: 1.9rem; font-size: 0.72rem; }
#inscription .stepper li::before { top: 0.95rem; }
#inscription .stepper li.done .dot::after { font-size: 0.8rem; }
#inscription .panel-title { font-size: clamp(1.05rem, 1.7vw, 1.3rem); letter-spacing: 0.08em; margin-bottom: 1.1rem; }
#inscription .stepper li.done .dot { font-size: 0; }
#inscription .stepper li.done .dot::after { font-size: 0.8rem; }

/* ---------- Photo like: one heart, filled when liked ---------- */
.tile { position: relative; }
.tile .reactions { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 6; display: flex; }
.react {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.1rem; padding: 0.3rem 0.7rem;
  background: rgba(8, 8, 8, 0.82); border: 1px solid var(--lx-line); border-radius: 999px;
  color: #e8c75a; font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; 
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.react .bi { font-size: 1rem; line-height: 1; display: inline-block; }
.react .bi-heart-fill { display: none; }
.react.on .bi-heart { display: none; }
.react.on .bi-heart-fill { display: inline-block; }
.react .n:empty { display: none; }
.react.on { color: #ff6b86; border-color: rgba(255, 107, 134, 0.7); background: rgba(40, 10, 16, 0.78); }
.react:focus-visible { outline: 2px solid #e8c75a; outline-offset: 2px; }

.lightbox .lb-reactions { position: static; }
.lightbox .lb-reactions[hidden] { display: none; }
.lightbox .lb-reactions .react { min-height: 2.6rem; padding: 0.4rem 1.2rem; font-size: 0.9rem; }
.lightbox .lb-reactions .react .bi { font-size: 1.25rem; }

.burst-canvas { position: fixed; z-index: 6000; pointer-events: none; }
@media (max-width: 560px) { .react { padding: 0.25rem 0.55rem; min-height: 1.95rem; } }

/* ---------- Download button ---------- */
.tile .reactions { gap: 0.4rem; }
.dl-form { display: contents; }
.dl {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.1rem; min-width: 2.1rem; padding: 0.3rem 0.65rem;
  background: rgba(8, 8, 8, 0.72); border: 1px solid var(--lx-line); border-radius: 999px; color: #e8c75a;
  font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; 
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.dl .bi { font-size: 1rem; line-height: 1; }
.dl:hover, .dl:focus-visible { border-color: #d4af37; background: rgba(40, 32, 8, 0.85); color: #f6d96b; }
.dl:focus-visible { outline: 2px solid #e8c75a; outline-offset: 2px; }
.tile .dl-label, .lightbox .dl-label { display: none; }
.lightbox .lb-reactions { display: flex; gap: 0.6rem; }
.lightbox .lb-reactions .dl { min-height: 2.6rem; padding: 0.4rem 1.2rem; font-size: 0.9rem; }
.lightbox .lb-reactions .dl .bi { font-size: 1.2rem; }
.lightbox .lb-reactions .dl .dl-label { display: inline; }

/* ---------- Image skeletons: shimmer until the image has loaded ---------- */
.skel.is-loading::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(212, 175, 55, 0) 25%, rgba(212, 175, 55, 0.13) 50%, rgba(212, 175, 55, 0) 75%) 0 0 / 250% 100%, #101010;
  animation: skel-sweep 1.5s linear infinite;
}
.skel img, .gallery a.skel img { transition: transform 1.2s var(--lx-ease), opacity 0.8s ease; }
.skel.is-loading img { opacity: 0; }
@keyframes skel-sweep { from { background-position: 150% 0, 0 0; } to { background-position: -100% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel.is-loading::before { animation: none; } }

.lightbox.loading::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(70vw, 960px); aspect-ratio: 3 / 2; max-height: 70vh; transform: translate(-50%, -50%);
  border: 1px solid var(--lx-line);
  background: linear-gradient(100deg, rgba(212, 175, 55, 0) 25%, rgba(212, 175, 55, 0.13) 50%, rgba(212, 175, 55, 0) 75%) 0 0 / 250% 100%, #101010;
  animation: skel-sweep 1.5s linear infinite; pointer-events: none;
}
.lightbox.loading img { opacity: 0; }

/* ---------- Gallery page: tighter gap under the breadcrumb ---------- */
.gallery-section { padding-top: 3.2rem; }
@media (max-width: 768px) { .gallery-section { padding-top: 2rem; } }

/* ---------- Breadcrumb bar: black stars rising from the bottom and fading out ---------- */
.breadcrumb-bar .container { position: relative; }
.bc-stars { position: absolute; right: 2rem; top: 0; bottom: 0; width: 190px; overflow: hidden; pointer-events: none; }
.bc-stars span { position: absolute; top: 50%; display: block; opacity: 0; animation: bc-rise var(--d, 4s) ease-out infinite; animation-delay: var(--delay, 0s); }
.bc-stars svg { display: block; width: 100%; height: 100%; fill: #0a0a0a; }
.bc-stars .s1 { --d: 4.2s; --delay: 0s;     --o: 0.9;  width: 15px; height: 15px; margin-top: -7px; right: 4px; }
.bc-stars .s2 { --d: 3.4s; --delay: -1.3s;  --o: 0.6;  width: 9px;  height: 9px;  margin-top: -5px; right: 34px; }
.bc-stars .s3 { --d: 5s;   --delay: -2.4s;  --o: 0.75; width: 11px; height: 11px; margin-top: -5px; right: 62px; }
.bc-stars .s4 { --d: 3.8s; --delay: -0.7s;  --o: 0.5;  width: 7px;  height: 7px;  margin-top: -4px; right: 92px; }
.bc-stars .s5 { --d: 4.6s; --delay: -3.1s;  --o: 0.7;  width: 12px; height: 12px; margin-top: -6px; right: 124px; }
@keyframes bc-rise {
  0%   { opacity: 0; transform: translateY(26px) scale(0.6) rotate(0deg); }
  22%  { opacity: var(--o, 0.8); }
  100% { opacity: 0; transform: translateY(-30px) scale(1) rotate(60deg); }
}
@media (prefers-reduced-motion: reduce) { .bc-stars span { animation: none; opacity: 0.6; transform: none; } }
@media (max-width: 640px) { .bc-stars { right: 1rem; width: 90px; } .bc-stars .s4, .bc-stars .s5 { display: none; } }

/* ---------- Hero slideshow (images from the admin) ---------- */
.hero { background: #080808; background-attachment: scroll; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(8, 8, 8, 0.25) 0%, rgba(8, 8, 8, 0.85) 100%), linear-gradient(rgba(8, 8, 8, 0.35), rgba(8, 8, 8, 0.7));
}
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Crossfade slides (hero, inscription photo): fade + slow zoom ---------- */
.fade-slide { opacity: 0; transform: scale(1.08); transition: opacity 1.8s ease; }
.fade-slide.on, .fade-slide.out { animation: hero-kb 12s ease-out forwards; }
.fade-slide.on { opacity: 1; }
@keyframes hero-kb { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fade-slide.on, .fade-slide.out { animation: none; transform: none; } }

/* ---------- About photos (images from the admin) ---------- */
.about-photo { margin: 0; position: relative; overflow: hidden; background: #101010; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-photo + .about-photo { margin-top: 0; }
.about-content.no-image { grid-template-columns: minmax(0, 820px); justify-content: center; }

/* ---------- Online payment ---------- */
.pay-online { margin: 0 0 1.4rem; padding: 1.1rem 1.3rem; border: 1px solid var(--lx-line); background: #0f0f0f; font-size: 0.92rem; }
.pay-online p { margin: 0 0 0.6rem; }
.pay-online p:last-child { margin: 0; color: var(--lx-muted); }
.pay-online .bi { color: #e8c75a; margin-right: 0.35rem; }
.pay-online strong { color: var(--lx-ivory); font-weight: 600; }

.pay-result { max-width: 560px; margin: 0 auto; text-align: center; padding: 3rem 2rem; border: 1px solid var(--lx-line); background: linear-gradient(160deg, #131313, #0b0b0b); }
.pay-result-icon { display: inline-flex; align-items: center; justify-content: center; width: 4.4rem; height: 4.4rem; font-size: 2rem; margin-bottom: 1.2rem; transform: rotate(45deg); border: 1px solid #d4af37; color: #e8c75a; }
.pay-result-icon .bi { transform: rotate(-45deg); }
.pay-result.ok .pay-result-icon { background: var(--lx-foil); color: #0a0a0a; border-color: transparent; }
.pay-result.ko .pay-result-icon { border-color: #d6604f; color: #ff8f80; }
.pay-result h2 { font-size: 1.9rem; margin-bottom: 0.7rem; }
.pay-result p { color: var(--lx-muted); }
.pay-result .pay-result-ref { color: var(--lx-text); margin-top: 1.2rem; }
.pay-result .pay-result-ref strong { color: #e8c75a; }
.pay-result-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; }

/* ---------- Slider controls (dots + arrows) ---------- */
.slider-dots { position: absolute; top: 1rem; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: 0.55rem; pointer-events: none; }
.slider-dot { pointer-events: auto; width: 10px; height: 10px; padding: 0; border: 1px solid #e8c75a; background: rgba(8, 8, 8, 0.45); transform: rotate(45deg); cursor: pointer; transition: background 0.4s, transform 0.4s; }
.slider-dot.active { background: #e8c75a; transform: rotate(45deg) scale(1.25); }
.slider-dot:focus-visible, .slider-arrow:focus-visible { outline: 2px solid #e8c75a; outline-offset: 3px; }
.slider-arrow { position: absolute; top: 42%; z-index: 4; width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 999px; border: 1px solid var(--lx-line); background: rgba(8, 8, 8, 0.6); color: #e8c75a; cursor: pointer; font-size: 1rem; transition: background 0.3s, border-color 0.3s; }
.slider-arrow:hover { border-color: #d4af37; background: rgba(8, 8, 8, 0.85); }
.slider-arrow.prev { left: 0.8rem; }
.slider-arrow.next { right: 0.8rem; }

/* ---------- App store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.store-buttons.center { justify-content: center; margin-top: 1.8rem; }
.store-btn { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.25rem 0.6rem 1rem; min-width: 11.5rem; background: #0a0a0a; border: 1px solid #d4af37; border-radius: 12px; color: #fff; text-decoration: none; transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.store-btn:hover { background: #151208; border-color: #f0d468; transform: translateY(-2px); color: #fff; }
.store-btn:focus-visible { outline: 2px solid #e8c75a; outline-offset: 3px; }
.store-btn .bi { font-size: 1.9rem; line-height: 1; color: #e8c75a; }
.store-btn span { display: grid; line-height: 1.15; text-align: left; }
.store-btn small { font-size: 0.66rem; letter-spacing: 0.06em; color: var(--lx-muted); }
.store-btn strong { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.01em; }
.store-buttons.footer { margin: 0.2rem 0 1rem; }
.store-buttons.footer .store-btn { min-width: 0; padding: 0.4rem 0.9rem 0.4rem 0.75rem; border-radius: 10px; }
.store-buttons.footer .store-btn .bi { font-size: 1.4rem; }
.store-buttons.footer .store-btn strong { font-size: 0.9rem; }

.app-band { text-align: center; padding: 6rem 0; background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08), transparent 65%), #0b0b0b; border-top: 1px solid var(--lx-line-soft); border-bottom: 1px solid var(--lx-line-soft); }
.app-band-icon { font-size: 2.6rem; color: #e8c75a; }
.app-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; letter-spacing: 0.06em; margin: 0.8rem 0; }
.app-band p { color: var(--lx-muted); margin: 0; }
