/* ==========================================================================
   UEC — Union des Étudiants Clubistes — Design System
   ========================================================================== */

:root {
  --red: #D6001C;
  --red-dark: #A50016;
  --red-light: #FF3B4E;
  --white: #FFFFFF;
  --black: #111111;
  --black-soft: #1A1A1A;
  --ink: #111111;
  --paper: #FFFFFF;
  --gold: #E8B923;
  --gold-soft: #F5D879;

  --gray-50: #FBF5F5;
  --gray-100: #F5ECEC;
  --gray-200: #E4E4E6;
  --gray-300: #C9C9CE;
  --gray-500: #8A8A93;
  --gray-700: #4A4A52;
  --gray-800: #2B2B31;
  --gray-900: #1B1B1F;

  --section-tint: linear-gradient(180deg, rgba(214,0,28,0.05), rgba(214,0,28,0.015));
  color-scheme: light;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(17,17,17,0.04), 0 4px 14px rgba(17,17,17,0.06);
  --shadow-md: 0 2px 6px rgba(17,17,17,0.05), 0 14px 34px rgba(17,17,17,0.10);
  --shadow-lg: 0 4px 12px rgba(17,17,17,0.06), 0 28px 64px rgba(17,17,17,0.14);
  --shadow-red: 0 8px 18px rgba(214,0,28,0.16), 0 16px 40px rgba(214,0,28,0.24);

  --container: 1240px;
  --nav-h: 84px;
  --ticker-h: 34px;
}

/* ==========================================================================
   Dark theme — toggle via [data-theme="dark"] on <html>
   --ink / --paper stay fixed (always-dark / always-light elements like the
   navbar, hero, footer); everything else flips for reading comfort.
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --white: #18191d;
  --black: #F2F2F4;
  --black-soft: #1A1A1A;

  --gray-50: #1c1d21;
  --gray-100: #212227;
  --gray-200: #2d2e34;
  --gray-300: #3c3d44;
  --gray-500: #9b9ba3;
  --gray-700: #c9c9d0;
  --gray-800: #dedee3;
  --gray-900: #F2F2F4;

  --section-tint: linear-gradient(180deg, rgba(214,0,28,0.12), rgba(214,0,28,0.02));
  --shadow-sm: 0 4px 14px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--red); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .icon-btn:focus-visible, .gitem:focus-visible {
  outline-color: var(--red);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ==========================================================================
   Utility
   ========================================================================== */

.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.bg-black { background: var(--ink); color: var(--paper); }

.section-pad { padding: 110px 0; }
.section-pad-sm { padding: 70px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(214,0,28,0.08);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--gray-700);
  font-size: 1.05rem;
}

.dark .section-head p { color: var(--gray-300); }

.grid { display: grid; gap: 28px; min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  transition: all .3s cubic-bezier(.2,.7,.2,1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--paper);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(214,0,28,0.38); }

.btn-outline {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--paper); transform: translateY(-3px); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--red); transform: translateY(-3px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #E6B800 100%);
  color: var(--ink);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(255,215,0,0.35); }

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Navbar
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red-dark) 0%, var(--red) 55%, var(--paper) 100%);
  z-index: 1200;
}

/* News ticker (above navbar) */
.news-ticker {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1010;
  height: var(--ticker-h);
  background: linear-gradient(90deg, var(--ink) 0%, var(--red-dark) 55%, var(--ink) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.ticker-track {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 80px;
  width: max-content;
  white-space: nowrap;
  direction: ltr;
  animation: tickerScroll 24s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  white-space: nowrap;
  unicode-bidi: isolate;
  direction: ltr;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}
.ticker-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.ticker-item .ar {
  display: inline-block;
  unicode-bidi: isolate;
  direction: rtl;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
@media (max-width: 640px) {
  .news-ticker { height: var(--ticker-h); }
  .ticker-track { gap: 40px; }
  .ticker-item { font-size: 0.62rem; gap: 7px; }
  .ticker-item .dot { width: 4px; height: 4px; }
}

.navbar {
  position: fixed;
  top: var(--ticker-h); left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all .35s ease;
  background: rgba(17,17,17,0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar.solid {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--gray-200);
  height: 76px;
  box-shadow: var(--shadow-sm);
}
:root[data-theme="dark"] .navbar.solid {
  background: rgba(20,21,25,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: none; width: 100%; padding: 0 40px; flex-wrap: nowrap; }

.brand { display: flex; align-items: center; gap: 13px; transition: opacity .25s ease; }
.brand:hover { opacity: 0.82; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.18); transition: border-color .25s ease; }
.navbar.solid .brand img { border-color: var(--gray-200); }
.brand-text { font-family: var(--font-display); line-height: 1.15; }
.brand-text strong { display: block; font-size: 0.98rem; letter-spacing: 0.03em; color: var(--paper); }
.brand-text span { display: block; font-size: 0.66rem; letter-spacing: 0.16em; color: var(--red-light); font-weight: 600; margin-top: 1px; }
.navbar.solid .brand-text strong { color: var(--black); }
.navbar.solid .brand-text span { color: var(--black); }

.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 0.87rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius-full);
  transition: all .25s ease;
}
.navbar.solid .nav-links > li > a { color: var(--gray-800); }
.nav-links > li > a:hover { background: rgba(255,255,255,0.1); }
.navbar.solid .nav-links > li > a:hover { background: var(--gray-100); }
.nav-links > li.active > a { background: var(--red); color: var(--paper); box-shadow: 0 6px 16px rgba(214,0,28,0.35); }

.nav-links .caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: 0.7; transition: transform .3s ease, opacity .2s ease; }
.nav-links li:hover .caret { transform: rotate(225deg); margin-top: 3px; opacity: 1; }

.mega {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 10px);
  width: 640px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  border: 1px solid var(--gray-200);
  margin-top: 12px;
}
:root[data-theme="dark"] .mega { background: rgba(24,25,30,0.98); }
.nav-links li:hover .mega { opacity: 1; visibility: visible; transform: translate(-50%, 4px); }
.mega a { display: flex; align-items: center; gap: 14px; padding: 13px; border-radius: var(--radius-sm); color: var(--gray-800); transition: all .2s ease; }
.mega a:hover { background: var(--gray-100); color: var(--red); transform: translateX(2px); }
.mega a .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(214,0,28,0.08); display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; font-size: 1.05rem; transition: all .2s ease; }
.mega a:hover .ic { background: var(--red); color: var(--paper); transform: scale(1.06); }
.mega a .lbl { font-family: var(--font-display); font-weight: 600; font-size: 0.87rem; }
.mega a .sub { font-size: 0.74rem; color: var(--gray-500); margin-top: 1px; }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; flex-shrink: 0; }
.nav-actions::before {
  content: '';
  width: 1px; height: 24px;
  background: rgba(255,255,255,0.15);
  margin-right: 2px;
}
.navbar.solid .nav-actions::before { background: var(--gray-200); }
.icon-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(255,255,255,0.1);
  transition: all .25s;
  font-size: 1.05rem;
  position: relative;
}
.navbar.solid .icon-btn { color: var(--gray-800); background: var(--gray-100); }
.icon-btn:hover { background: var(--red); color: var(--paper); }
.icon-btn .badge-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; border: 2px solid var(--ink); }

/* Theme toggle */
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.mobile-theme-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
.mobile-theme-toggle svg { width: 16px; height: 16px; }
.mobile-theme-toggle .i-sun { display: none; }
.mobile-theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .mobile-theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .mobile-theme-toggle .i-moon { display: none; }
.mobile-theme-toggle .ttx::after { content: 'Thème sombre'; }
:root[data-theme="dark"] .mobile-theme-toggle .ttx::after { content: 'Thème clair'; }

.lang-switch { position: relative; }
.lang-switch > button { display: flex; align-items: center; gap: 6px; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; padding: 10px 14px; border-radius: var(--radius-full); background: rgba(255,255,255,0.1); }
.navbar.solid .lang-switch > button { color: var(--gray-800); background: var(--gray-100); }
.lang-menu { position: absolute; top: 110%; right: 0; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; min-width: 140px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; border: 1px solid var(--gray-200); }
.lang-switch:hover .lang-menu { opacity: 1; visibility: visible; transform: translateY(4px); }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 0.85rem; color: var(--gray-800); font-weight: 500; }
.lang-menu a:hover { background: var(--gray-100); color: var(--red); }

.burger { display: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.1); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.navbar.solid .burger { background: var(--gray-100); }
.burger span { width: 20px; height: 2px; background: var(--paper); border-radius: 2px; transition: all .3s; }
.navbar.solid .burger span { background: var(--gray-800); }

.mobile-panel {
  position: fixed; inset: 0; z-index: 1100;
  background: var(--ink);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
  padding: 26px 24px 60px;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-panel-close { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.mobile-panel a.mlink { display: flex; justify-content: space-between; align-items: center; padding: 17px 4px; font-family: var(--font-display); font-weight: 600; color: var(--paper); border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.02rem; }
.mobile-panel .msub { padding-left: 14px; }
.mobile-panel .msub a { display: block; padding: 12px 4px; color: var(--gray-300); font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-panel a.mlink.active-mobile { color: var(--red-light); }
.mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--ticker-h) + var(--nav-h));
  background: var(--ink);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -15%; right: -12%;
  width: 55%; height: 150%;
  background: linear-gradient(100deg, rgba(214,0,28,0.4) 0%, rgba(214,0,28,0) 72%);
  transform: skewX(-12deg);
  z-index: 1;
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.55) 40%, rgba(17,17,17,0.92) 100%),
    linear-gradient(100deg, rgba(214,0,28,0.5) 0%, rgba(17,17,17,0.2) 55%);
}
.hero-content { position: relative; z-index: 2; padding: 60px 0 90px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  color: var(--red-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  color: var(--paper);
  max-width: 900px;
  margin-bottom: 22px;
}
.hero h1 span { color: var(--red-light); }
.hero .motto {
  font-family: var(--font-display);
  color: var(--red-light);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-style: italic;
  margin-bottom: 24px;
}
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 70px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(14px);
  max-width: 780px;
}
.hero-stats div { background: rgba(255,255,255,0.04); padding: 22px 18px; text-align: center; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--paper); }
.hero-stats span { font-size: 0.76rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.6); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top;} 50%{transform:scaleY(1);transform-origin:top;} 51%{transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* Page header (inner pages) */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: calc(var(--ticker-h) + var(--nav-h) + 70px) 0 80px;
  background: var(--ink);
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; inset: -3%;
  background-image: url('../photo/cover.jpeg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  animation: heroZoom 26s ease-in-out infinite alternate;
}
.page-palestine .page-hero::before { background-image: url('../photo/bgpilastine.jpeg'); }
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.72) 0%, rgba(17,17,17,0.62) 42%, rgba(17,17,17,0.95) 100%),
    radial-gradient(circle at 15% 20%, rgba(214,0,28,0.45), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255,255,255,0.10), transparent 42%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 42px 42px, 42px 42px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow {
  color: var(--red-light);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: var(--paper); text-shadow: 0 4px 24px rgba(0,0,0,0.45); }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 620px; margin: 16px auto 0; font-size: 1.05rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-top: 22px; font-size: 0.82rem; color: rgba(255,255,255,0.5); font-family: var(--font-display); }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: var(--red-light); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(214,0,28,0.18); }

/* Split card (image | content), used for featured product / article */
.split-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.feature-media { min-height: 340px; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .split-card { grid-template-columns: minmax(0, 1fr); }
  .feature-media { min-height: 240px; }
}

/* Main content + sidebar layout (news, articles) */
.news-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 50px; align-items: start; }
@media (max-width: 960px) {
  .news-layout { grid-template-columns: minmax(0, 1fr); }
}

.card-glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  transition: all .35s ease;
}
.card-glass:hover { background: rgba(255,255,255,0.1); transform: translateY(-6px); border-color: rgba(255,215,0,0.35); }

/* News card */
.news-card .thumb { height: 210px; position: relative; overflow: hidden; }
.news-card .thumb img, .news-card .thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .thumb img, .news-card:hover .thumb .ph { transform: scale(1.08); }
.news-card .cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--red); color: var(--paper);
  font-family: var(--font-display); font-weight: 600; font-size: 0.7rem;
  padding: 6px 14px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.05em;
}
.news-card .cat.gold { background: linear-gradient(135deg, var(--gold) 0%, #E6B800 100%); color: var(--ink); }
.news-card .body { padding: 24px; }
.news-card .meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--gray-500); margin-bottom: 10px; font-weight: 500; }
.news-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.news-card p { color: var(--gray-700); font-size: 0.92rem; margin-bottom: 16px; }
.news-card .rd { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }

/* Placeholder graphic block (used instead of missing photography) */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red) 0%, var(--ink) 100%);
  color: rgba(255,255,255,0.85);
  position: relative;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.ph .ph-ic { font-size: 2rem; position: relative; z-index: 1; }
.ph.alt { background: linear-gradient(135deg, #2B2B31 0%, var(--ink) 100%); }
.ph.gold { background: linear-gradient(135deg, #B8860B 0%, var(--ink) 100%); }

/* Event card */
.event-card { display: flex; overflow: hidden; }
.event-date {
  flex-shrink: 0; width: 92px;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.event-date strong { font-size: 1.8rem; color: var(--paper); line-height: 1; }
.event-date span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.event-card .body { padding: 22px 24px; flex: 1; }
.event-card .tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--red); margin-bottom: 8px; }
.event-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.event-card .meta-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--gray-500); }

/* Icon badge (used standalone and inside department/value cards) */
.ic-wrap {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--paper);
  box-shadow: var(--shadow-red);
}

/* Department card */
.dept-card { padding: 34px 28px; }
.dept-card .ic-wrap { margin-bottom: 22px; }
.dept-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.dept-card p { color: var(--gray-700); font-size: 0.92rem; margin-bottom: 18px; }
.dept-card .more { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--red); }

/* Department role detail (tagline + responsibility list) */
.dept-tagline { color: var(--red); font-style: italic; font-size: 0.88rem; line-height: 1.6; margin: 8px 0 16px; }
.dept-detail-list { border-top: 1px solid var(--gray-200); padding-top: 14px; }
@media (max-width: 700px) {
  .dept-detail-list { columns: 1 !important; }
}
.dept-detail-list li { margin-bottom: 12px; font-size: 0.86rem; color: var(--gray-700); line-height: 1.65; }
.dept-detail-list li:last-child { margin-bottom: 0; }
.dept-detail-list li strong { display: block; color: var(--black); font-family: var(--font-display); font-weight: 600; margin-bottom: 2px; }
.dept-lead { color: var(--red); font-style: italic; font-size: 1rem; line-height: 1.7; margin-bottom: 14px; }
.dept-lead.on-dark { color: var(--paper); }

/* Team / Committee card */
.team-card { text-align: center; padding: 0 0 30px; }
.team-card .photo { height: 260px; position: relative; overflow: hidden; margin-bottom: 22px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.team-card .photo .ph { width: 100%; height: 100%; font-size: 3.4rem; font-family: var(--font-display); font-weight: 700; }
.team-card .social {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%) translateY(14px);
  display: flex; gap: 8px; opacity: 0; transition: all .3s ease;
}
.team-card:hover .social { opacity: 1; transform: translateX(-50%) translateY(0); }
.team-card .social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.95); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.team-card .social a:hover { background: var(--red); color: var(--paper); }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; padding: 0 20px; }
.team-card .role { color: var(--red); font-weight: 600; font-size: 0.85rem; font-family: var(--font-display); margin-bottom: 10px; }
.team-card .bio { color: var(--gray-700); font-size: 0.85rem; padding: 0 22px; }
.team-card .email { display: block; margin-top: 12px; font-size: 0.8rem; color: var(--gray-500); }

/* ==========================================================================
   Stats counters
   ========================================================================== */

.stats-band {
  background: var(--ink);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(214,0,28,0.25), transparent 60%);
}
.stats-band .grid { position: relative; z-index: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: var(--paper); }
.stat strong .plus { color: var(--paper); }
.stat span { color: rgba(255,255,255,0.6); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* ==========================================================================
   Smart ideas section
   ========================================================================== */

.smart-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.smart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.smart-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px 24px;
  transition: all .35s ease;
}

.smart-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214,0,28,0.18);
}

.smart-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(214,0,28,0.10), rgba(17,17,17,0.06));
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(17,17,17,0.08);
}

.smart-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--ink);
}

.smart-icon.card-thumb {
  overflow: hidden;
  background: var(--white);
  transform: rotate(-5deg);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
.smart-icon.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.smart-card:hover .smart-icon.card-thumb { transform: rotate(0deg) scale(1.08); box-shadow: var(--shadow-red); }
@media (prefers-reduced-motion: reduce) {
  .smart-icon.card-thumb, .smart-card:hover .smart-icon.card-thumb { transition: none; transform: none; }
}

.smart-tag {
  display: inline-block;
  background: rgba(214,0,28,0.08);
  color: var(--red);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.smart-card h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}

.smart-card p {
  color: var(--gray-700);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.smart-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.smart-list li {
  position: relative;
  padding-left: 18px;
  color: var(--gray-800);
  font-size: 0.86rem;
}

.smart-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 1.15rem;
  line-height: 1;
}

.smart-cta {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  background: linear-gradient(135deg, var(--ink) 0%, #1d1d1d 100%);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.smart-cta > div:not(.deco-layer), .smart-cta > a { position: relative; z-index: 1; }

.smart-cta .eyebrow { margin-bottom: 10px; }
.eyebrow.gold { background: rgba(255,215,0,0.14); color: var(--gold); }
.eyebrow.gold::before { background: var(--gold); }

.smart-cta h3 {
  color: var(--paper);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

/* ==========================================================================
   Past events section
   ========================================================================== */

.past-events-section {
  overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, #fff2f3 100%);
}
:root[data-theme="dark"] .past-events-section { background: linear-gradient(180deg, var(--white) 0%, rgba(214,0,28,0.1) 100%); }
.past-events-section::before {
  content: '';
  position: absolute; inset: -25%;
  background:
    radial-gradient(circle at 18% 25%, rgba(214,0,28,0.14), transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(214,0,28,0.10), transparent 50%);
  animation: peGlowDrift 15s ease-in-out infinite alternate;
  z-index: 0;
}
.past-events-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(214,0,28,0.06) 0px, rgba(214,0,28,0.06) 2px, transparent 2px, transparent 26px);
  animation: peStripeDrift 20s linear infinite;
  z-index: 0;
}
.past-events-section > .container { position: relative; z-index: 1; }
@keyframes peGlowDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, -3%) scale(1.08); }
}
@keyframes peStripeDrift {
  from { background-position: 0 0; }
  to   { background-position: 220px 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .past-events-section::before, .past-events-section::after { animation: none; }
}

.past-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.past-event-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .35s ease;
}

.past-event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214,0,28,0.12);
}

.event-visual {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.event-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.visual-red { background: linear-gradient(135deg, #cd0f24 0%, #3d0d12 100%); }
.visual-charcoal { background: linear-gradient(135deg, #202124 0%, #111214 100%); }
.visual-light { background: linear-gradient(135deg, #f1f1f1 0%, #d9d9d9 100%); }

.event-icon {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.event-icon svg {
  width: 44px;
  height: 44px;
  fill: var(--white);
}

.visual-light .event-icon {
  background: rgba(17,17,17,0.08);
  border-color: rgba(17,17,17,0.14);
}
.visual-light .event-icon svg { fill: var(--black); }

.event-content {
  padding: 22px 22px 24px;
}

.event-date-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(214,0,28,0.08);
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.past-event-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.past-event-card p {
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--red), var(--gold)); transform: translateX(-50%); }
.tl-item { position: relative; width: 50%; padding: 0 46px 60px; }
.tl-item:nth-child(odd) { left: 0; text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left; }
.tl-dot { position: absolute; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--red); }
.tl-item:nth-child(odd) .tl-dot { right: -9px; }
.tl-item:nth-child(even) .tl-dot { left: -9px; }
.tl-year { display: inline-block; font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 1.3rem; margin-bottom: 8px; }
.tl-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.tl-item p { color: var(--gray-700); font-size: 0.9rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.tsm-track { display: flex; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tsm-slide { flex: 0 0 100%; padding: 4px; }
.tsm-card { background: var(--white); border-radius: var(--radius-lg); padding: 46px; text-align: center; max-width: 720px; margin: 0 auto; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.tsm-card .stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 20px; letter-spacing: 4px; }
.tsm-card p { font-size: 1.2rem; font-family: var(--font-display); font-weight: 500; color: var(--gray-900); margin-bottom: 26px; line-height: 1.5; }
.tsm-person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tsm-person .av { width: 52px; height: 52px; border-radius: 50%; font-family: var(--font-display); font-weight: 700; }
.tsm-person strong { display: block; font-size: 0.92rem; }
.tsm-person span { font-size: 0.78rem; color: var(--gray-500); }
.tsm-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.tsm-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-300); transition: all .25s; }
.tsm-dots button.active { background: var(--red); width: 26px; border-radius: 6px; }

/* ==========================================================================
   Sponsors
   ========================================================================== */

.sponsor-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.sponsor-row { display: flex; gap: 60px; width: max-content; animation: scrollX 26s linear infinite; align-items: center; }
.sponsor-row img, .sponsor-row .slogo { height: 46px; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.slogo { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--gray-300); white-space: nowrap; letter-spacing: 0.02em; transition: color .3s; }
.slogo:hover { color: var(--red); }

.sponsor-card { padding: 34px 24px; text-align: center; }
.sponsor-card .slogo-box { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sponsor-card h4 { font-size: 1rem; margin-bottom: 6px; }
.sponsor-card p { font-size: 0.82rem; color: var(--gray-500); }
.sponsor-tier { display: inline-block; margin-top: 12px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 12px; border-radius: var(--radius-full); }
.tier-gold { background: rgba(255,215,0,0.15); color: #9A7B00; }
.tier-silver { background: rgba(140,140,150,0.15); color: #5c5c66; }
.tier-red { background: rgba(214,0,28,0.1); color: var(--red); }

/* ==========================================================================
   Gallery + lightbox
   ========================================================================== */

.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.gfilter { padding: 10px 22px; border-radius: var(--radius-full); font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; background: rgba(214,0,28,0.07); color: var(--red-dark); transition: all .25s; }
.gfilter.active, .gfilter:hover { background: var(--red); color: var(--paper); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gitem { position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: pointer; aspect-ratio: 1/1; }
.gitem .ph { width: 100%; height: 100%; font-size: 1.8rem; }
.gitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gitem:hover img { transform: scale(1.1); }

/* Gallery page — dark professional theme (always dark, independent of site theme) */
.page-gallery .section-pad-sm,
.page-gallery .section-pad {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.page-gallery .section-pad-sm > .container,
.page-gallery .section-pad > .container { position: relative; z-index: 1; }
.page-gallery .section-head h2 { color: var(--paper); }
.page-gallery .section-head p { color: rgba(255,255,255,0.6); }
.page-gallery .card {
  background: var(--black-soft);
  border-color: rgba(255,255,255,0.08);
}
.page-gallery .card:hover { border-color: rgba(214,0,28,0.35); }
.page-gallery .card h4 { color: var(--paper); }
.page-gallery .card > span { color: rgba(255,255,255,0.5); }
.page-gallery .gitem { border: 1px solid rgba(255,255,255,0.06); }
.page-gallery .newsletter-band { border-top: 1px solid rgba(255,255,255,0.08); }

/* ==========================================================================
   Event chronicle (bento mosaic story blocks)
   ========================================================================== */

.event-filters .gfilter { display: inline-flex; align-items: center; gap: 8px; }
.ev-count { background: rgba(0,0,0,0.12); font-size: 0.7rem; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-full); }
.gfilter.active .ev-count { background: rgba(255,255,255,0.28); }

.event-list { display: flex; flex-direction: column; gap: 8px; }
.event-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 46px 32px;
  margin: 0 -32px;
  border-bottom: 1px solid var(--gray-200);
}
.event-block:nth-child(even) { background: rgba(214,0,28,0.035); border-radius: var(--radius-lg); border-bottom-color: transparent; }
.event-block:last-child { border-bottom: none; }
.event-block.rev .event-media { order: 2; }
.event-block.rev .event-text { order: 1; }

.event-text { position: relative; }
.ev-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(214,0,28,0.4);
  margin-bottom: 10px;
}
.event-text h3 { font-size: 1.5rem; margin: 12px 0 14px; }
.event-text p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; max-width: 520px; }
.ev-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 0.84rem; color: var(--gray-500); font-weight: 600; }

.event-media { display: grid; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; height: 280px; }
.event-media .gitem { aspect-ratio: unset; height: 100%; border-radius: 0; }
.event-media.mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); }
.event-media.mosaic .gitem.big { grid-column: 1 / 3; grid-row: 1 / 3; }
.event-media.mosaic .gitem-extra { display: none; }
.ev-more-badge {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(17,17,17,0.62);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  transition: background .25s;
}
.gitem:hover .ev-more-badge { background: rgba(214,0,28,0.72); }

/* Tribute (hommage) — solemn dark treatment */
.event-block.tribute { background: var(--ink); border-radius: var(--radius-lg); padding: 46px; border-bottom: none; margin: 10px 0; }
.event-block.tribute .ev-num { color: rgba(255,255,255,0.25); }
.event-block.tribute .event-text h3 { color: var(--paper); }
.event-block.tribute .event-text p { color: rgba(255,255,255,0.72); }
.event-block.tribute .ev-meta { color: rgba(255,255,255,0.5); }
.event-block.tribute .ev-meta .rd { color: var(--red-light); }
.event-block.tribute .pill-dark { background: rgba(255,215,0,0.14); color: var(--gold); }

/* Trophy (palmarès) — celebratory gold accent */
.event-block.trophy { background: linear-gradient(120deg, rgba(255,215,0,0.08), transparent 60%); border-radius: var(--radius-lg); padding: 46px; border-bottom: none; margin: 10px 0; }
.event-block.trophy .event-media { box-shadow: 0 20px 50px rgba(255,215,0,0.18); }

/* Archives (chronicle entries without photos yet) */
.event-block.text-only { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }
.event-block.text-only .event-text p { max-width: none; }
.chron-meta { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 16px; font-size: 0.86rem; color: var(--gray-500); }
.chron-meta strong { color: var(--gray-700); font-weight: 600; }
.pill-soon { background: transparent; border: 1px dashed var(--gray-300); color: var(--gray-500); }

@media (max-width: 860px) {
  .event-block, .event-block.rev { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 34px 16px; margin: 0 -16px; }
  .event-block.rev .event-media, .event-block.rev .event-text { order: initial; }
  .event-media { height: 220px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .event-media.mosaic .gitem.big { grid-column: 1 / 3; grid-row: 1 / 2; }
  .event-block.tribute, .event-block.trophy { padding: 28px; }
  .smart-grid { grid-template-columns: minmax(0, 1fr); }
  .smart-cta { flex-direction: column; align-items: flex-start; }
}
.gitem::after { content: '\\2922'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--paper); background: rgba(17,17,17,0); transition: all .3s; opacity: 0; }
.gitem:hover::after { background: rgba(17,17,17,0.45); opacity: 1; }
.gitem:hover .ph { transform: scale(1.1); }
.gitem.span-2 { grid-column: span 2; grid-row: span 2; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,10,0.94); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox .lb-box { max-width: 900px; width: 100%; }
.lightbox .lb-media { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-md); overflow: hidden; }
.lightbox .lb-close { position: absolute; top: 28px; right: 32px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--paper); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.lightbox .lb-prev { left: 24px; } .lightbox .lb-next { right: 24px; }
.lightbox .lb-cap { text-align: center; color: rgba(255,255,255,0.7); margin-top: 18px; font-size: 0.88rem; }

/* ==========================================================================
   Accordion / FAQ
   ========================================================================== */

.accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.acc-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; }
.acc-q { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.acc-q .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; transition: all .3s; }
.acc-q .plus::before, .acc-q .plus::after { content: ''; position: absolute; background: var(--gray-800); transition: all .3s; }
.acc-q .plus::before { width: 12px; height: 2px; }
.acc-q .plus::after { width: 2px; height: 12px; }
.acc-item.open .acc-q .plus { background: var(--red); transform: rotate(180deg); }
.acc-item.open .acc-q .plus::before, .acc-item.open .acc-q .plus::after { background: var(--paper); }
.acc-item.open .acc-q .plus::after { transform: scaleY(0); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-a-in { padding: 0 26px 22px; color: var(--gray-700); font-size: 0.92rem; }

/* ==========================================================================
   Forms
   ========================================================================== */

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); font-size: 0.92rem; transition: all .25s; background: var(--gray-50);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(214,0,28,0.08); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-pill { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; transition: all .2s; }
.check-pill:hover { border-color: var(--red); }
.check-pill input { width: auto; }
.upload-box { border: 2px dashed var(--gray-300); border-radius: var(--radius-md); padding: 34px; text-align: center; color: var(--gray-500); font-size: 0.88rem; transition: all .25s; cursor: pointer; }
.upload-box:hover { border-color: var(--red); color: var(--red); background: rgba(214,0,28,0.03); }
.upload-box .uic { font-size: 1.8rem; margin-bottom: 10px; }

/* ==========================================================================
   Store
   ========================================================================== */

.product-card { position: relative; }
.product-card .thumb { height: 240px; }
.product-card .badge-new { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--ink); font-size: 0.68rem; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-full); text-transform: uppercase; }
.product-card .wish { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: all .2s; }
.product-card .wish:hover, .product-card .wish.active { background: var(--red); color: var(--paper); }
.product-card .body { padding: 20px; }
.product-card .pcat { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.product-card h3 { font-size: 1rem; margin-bottom: 8px; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; }
.product-card .price { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--red); }
.product-card .old-price { text-decoration: line-through; color: var(--gray-500); font-size: 0.85rem; margin-left: 8px; }
.product-card .add-cart { width: 42px; height: 42px; border-radius: 50%; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.product-card .add-cart:hover { background: var(--red); transform: scale(1.08); }
.store-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.store-filters { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   Progress bars (projects)
   ========================================================================== */

.progress-track { width: 100%; height: 8px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: var(--radius-full); }
.proj-card { padding: 28px; }
.proj-card .status { display: inline-block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 13px; border-radius: var(--radius-full); margin-bottom: 14px; }
.status-active { background: rgba(214,0,28,0.1); color: var(--red); }
.status-done { background: rgba(30,160,90,0.12); color: #1E8F52; }
.status-soon { background: rgba(255,215,0,0.15); color: #9A7B00; }
.proj-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.proj-card p { color: var(--gray-700); font-size: 0.9rem; margin-bottom: 18px; }
.proj-card .prow { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--gray-500); margin-bottom: 8px; font-weight: 600; }
.avatars { display: flex; margin-top: 16px; }
.avatars .av { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--white); margin-left: -10px; font-size: 0.7rem; font-family: var(--font-display); font-weight: 700; }
.avatars .av:first-child { margin-left: 0; }

/* ==========================================================================
   Docs
   ========================================================================== */

.doc-row { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--radius-md); border: 1px solid var(--gray-200); transition: all .25s; }
.doc-row:hover { border-color: var(--red); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.doc-row .dic { width: 50px; height: 50px; border-radius: 12px; background: rgba(214,0,28,0.08); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.doc-row .dinfo { flex: 1; }
.doc-row h4 { font-size: 0.96rem; margin-bottom: 3px; }
.doc-row .dinfo span { font-size: 0.78rem; color: var(--gray-500); }
.doc-row .dl { font-family: var(--font-display); font-weight: 700; font-size: 0.84rem; color: var(--red); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.newsletter-band {
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.15) 1.5px, transparent 1.5px); background-size: 20px 20px; opacity: .4; }
.newsletter-wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.newsletter-wrap h3 { color: var(--paper); font-size: 1.5rem; margin-bottom: 6px; }
.newsletter-wrap p { color: rgba(255,255,255,0.85); }
.newsletter-form { display: flex; gap: 10px; min-width: 380px; }
.newsletter-form input { flex: 1; padding: 15px 20px; border-radius: var(--radius-full); border: none; font-size: 0.9rem; }
.newsletter-form input:focus { outline: 2px solid var(--gold); }

/* ==========================================================================
   Decorative accents (dark sections)
   ========================================================================== */

.deco-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 20vw, 15rem);
  letter-spacing: 0.02em;
  color: rgba(214,0,28,0.22);
  white-space: nowrap;
  user-select: none;
  animation: decoDrift 16s ease-in-out infinite alternate;
}
.smart-cta .deco-text { font-size: clamp(3rem, 9vw, 6rem); }
@keyframes decoDrift {
  from { transform: translate(-54%, -50%) scale(1); }
  to   { transform: translate(-46%, -50%) scale(1.05); }
}
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(214,0,28,0.35);
  animation: decoSpin 42s linear infinite;
}
@keyframes decoSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.deco-circle.c1 { width: 220px; height: 220px; top: -70px; right: 8%; }
.deco-circle.c2 { width: 130px; height: 130px; bottom: -40px; left: 6%; border-color: rgba(255,255,255,0.15); animation-duration: 30s; animation-direction: reverse; }
.deco-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(214,0,28,0.5), transparent); }
.deco-line.l1 { width: 40%; top: 22%; left: -6%; transform: rotate(-8deg); }
.deco-line.l2 { width: 32%; bottom: 18%; right: -6%; transform: rotate(6deg); }

/* On red-tinted dark backgrounds, red-on-red loses contrast — switch the watermark to white */
.palmares-dark .deco-text { color: rgba(255,255,255,0.12); }
.palmares-dark .deco-circle { border-color: rgba(255,255,255,0.28); }
.palmares-dark .deco-line { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); }

@media (prefers-reduced-motion: reduce) {
  .deco-text, .deco-circle { animation: none; }
}

footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255,255,255,0.7); padding: 80px 0 0; }
footer > .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 50px; height: 50px; border-radius: 50%; }
.footer-brand strong { color: var(--paper); font-family: var(--font-display); font-size: 1rem; display: block; }
.footer-brand span { color: var(--red-light); font-size: 0.7rem; letter-spacing: 0.1em; }
.footer-col h4 { color: var(--paper); font-size: 0.92rem; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.87rem; transition: all .2s; }
.footer-col ul li a:hover { color: var(--red-light); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; font-size: 0.85rem; margin-bottom: 14px; align-items: flex-start; }
.footer-contact li .fic { color: var(--red-light); margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.8rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom .flinks { display: flex; gap: 22px; }
.footer-bottom .flinks a:hover { color: var(--paper); }

.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--red); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-red);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .3s ease;
  font-size: 1.1rem;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--ink); }

/* Page loader */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--ink); display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s ease; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader-ring { width: 56px; height: 56px; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Countdown */
.countdown { display: flex; gap: 14px; justify-content: center; }
.countdown .cbox { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md); padding: 18px 20px; min-width: 84px; text-align: center; backdrop-filter: blur(10px); transition: all .3s ease; }
.countdown .cbox:hover { background: rgba(255,255,255,0.14); transform: translateY(-4px); }
.countdown .cbox strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--paper); }
.countdown .cbox span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }

/* Subtle animated background texture (drifting dot-grid) for otherwise-static sections */
.section-anim-bg { position: relative; overflow: hidden; }
.section-anim-bg::before {
  content: '';
  position: absolute; inset: -20%;
  background-image: radial-gradient(rgba(214,0,28,0.09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  animation: dotDrift 34s linear infinite;
  z-index: 0;
}
.section-anim-bg > .container { position: relative; z-index: 1; }
@keyframes dotDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-26px, -26px); }
}
@media (prefers-reduced-motion: reduce) {
  .section-anim-bg::before { animation: none; }
}

/* Homepage — bolder accents */
body[data-active="home"] .section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
body[data-active="home"] .section-head h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
body[data-active="home"] .dept-card { position: relative; }
body[data-active="home"] .dept-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
body[data-active="home"] .dept-card:hover::before { transform: scaleX(1); }

.past-event-card { position: relative; }
.past-event-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: 2;
}
.past-event-card:hover::before { transform: scaleX(1); }

/* Palmarès — dark trophy-case treatment */
.palmares-dark {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, #1a0508 65%, var(--red-dark) 170%);
}
.palmares-dark > .container { position: relative; z-index: 1; }
.palmares-dark .section-head h2 { color: var(--paper); }
.palmares-dark .section-head p { color: rgba(255,255,255,0.68); }
.palmares-dark .news-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); }
.palmares-dark .news-card h3 { color: var(--paper); }
.palmares-dark .news-card p { color: rgba(255,255,255,0.68); }
.palmares-dark .news-card .rd { color: var(--red-light); }

/* About page — extra polish */
.page-about .about-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.page-about .about-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(214,0,28,0.07); color: var(--red);
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1px solid rgba(214,0,28,0.14);
}
.page-about .about-media { position: relative; }
.page-about .about-badge {
  position: absolute; bottom: -18px; left: -18px;
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-red);
  border: 4px solid var(--white);
}
.page-about .about-badge strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; }
.page-about .about-badge span { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.9; }
.page-about .value-card { transition: all .35s cubic-bezier(.2,.7,.2,1); }
.page-about .value-card .ic-wrap { transition: transform .35s ease; }
.page-about .value-card:hover .ic-wrap { transform: scale(1.1) rotate(-6deg); }
.page-about .about-avatar-ring { position: relative; display: inline-block; }
.page-about .about-avatar-ring::before {
  content: '';
  position: absolute; inset: -12px;
  border-radius: 50%;
  border: 1.5px dashed rgba(214,0,28,0.4);
  animation: decoSpin 60s linear infinite;
}
.page-about .about-quote-mark {
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(214,0,28,0.35);
  margin-bottom: -18px;
}
.page-about .tl-dot { animation: tlPulse 2.4s ease-in-out infinite; }
@keyframes tlPulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--red); }
  50% { box-shadow: 0 0 0 6px rgba(214,0,28,0.25); }
}
@media (prefers-reduced-motion: reduce) {
  .page-about .tl-dot, .page-about .about-avatar-ring::before { animation: none; }
}

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.tab-btn { padding: 12px 24px; border-radius: var(--radius-full); font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; background: var(--gray-100); color: var(--gray-700); transition: all .25s; }
.tab-btn.active, .tab-btn:hover { background: var(--red); color: var(--paper); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Membership card showcase */
.member-card-frame {
  max-width: min(320px, 100%);
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
  will-change: transform;
}
.member-card-frame:hover {
  transform: perspective(900px) rotateY(6deg) rotateX(2deg) scale(1.03);
  box-shadow: 0 30px 60px rgba(214,0,28,0.2);
}
.member-card-frame img { width: 100%; display: block; }
@media (prefers-reduced-motion: reduce) {
  .member-card-frame { transition: none; }
  .member-card-frame:hover { transform: none; }
}

/* Badges / pills reused */
.pill { display: inline-block; padding: 5px 14px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pill-red { background: rgba(214,0,28,0.1); color: var(--red); }
.pill-gold { background: rgba(255,215,0,0.15); color: #9A7B00; }
.pill-dark { background: rgba(17,17,17,0.06); color: var(--gray-800); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav-links, .nav-actions .icon-btn.hide-tablet, .nav-actions::before { display: none; }
  .burger { display: flex; }
  .navbar .container { padding: 0 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .past-events-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { left: 20px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; left: 0; text-align: left; padding: 0 0 46px 56px; }
  .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 11px; right: auto; }
  .field-row, .checkgrid { grid-template-columns: minmax(0, 1fr); }
  .newsletter-form { min-width: 0; width: 100%; }
  .newsletter-wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  :root { --nav-h: 72px; --ticker-h: 30px; }
  .section-pad { padding: 70px 0; }
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gitem.span-2 { grid-column: span 2; grid-row: span 1; aspect-ratio: 2/1; }
  .event-card { flex-direction: column; }
  .event-date { flex-direction: row; width: 100%; gap: 8px; padding: 10px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .store-toolbar { flex-direction: column; align-items: stretch; }
  .nav-actions { gap: 8px; }
  .nav-actions a[href*="login.ueclubistes.tn"] { display: none; }
  .brand-text { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .countdown { flex-wrap: wrap; }
  .countdown .cbox { min-width: 70px; padding: 12px 14px; }
}
