/* ═══════════════════════════════════════════
   CESI - ÉCOLE D'INGÉNIEUR
   Styles modernes et professionnels
═══════════════════════════════════════════ */

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

:root {
  /* Charte graphique CESI */
  --primary: #FFB500;
  --primary-light: #FFC94D;
  --primary-dark: #E6A300;
  --secondary: #1E293B; /* Deep Slate */
  --secondary-light: #334155;
  --bg-primary: #020617; /* Very Dark Background */
  --bg-secondary: #0F172A; /* Card Background */
  --text-primary: #F8FAFC; /* Almost White */
  --text-secondary: #94A3B8; /* Muted Light Gray */
  --text-muted: #64748B;
  --border-color: #1E293B;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
  --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.4);
  --glow-primary: 0 0 20px rgba(255, 181, 0, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  position: relative;
}

.nav-logo::after {
  content: '.';
  color: var(--primary);
}

.nav-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 2px solid var(--border-color);
  padding-left: 12px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.btn-menu span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* ══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */

.btn {
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary);
  color: #020617; /* High contrast text on yellow */
  box-shadow: 0 4px 12px rgba(255, 181, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-light);
  box-shadow: 0 6px 16px rgba(255, 181, 0, 0.3);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--text-muted);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* ══════════════════════════════════════════
   SECTIONS & LAYOUT
═══════════════════════════════════════════ */

section {
  padding: 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 24px auto 0;
}

/* ══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */

.hero {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  background: radial-gradient(circle at top right, var(--secondary) 0%, var(--bg-primary) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%;
  width: 500px; height: 500px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 181, 0, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 181, 0, 0.2);
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 650px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: var(--bg-secondary);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-primary);
  border-color: rgba(255, 181, 0, 0.4);
}

.hero-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ══════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════ */

.about {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  margin: 40px auto;
  border: 1px solid var(--border-color);
}

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

.about-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.about-card:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-4px);
}

.card-number {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1;
}

.about-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.about-card p {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

/* ══════════════════════════════════════════
   PROGRAMS SECTION
═══════════════════════════════════════════ */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.program-card {
  background: var(--bg-secondary);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--primary);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-primary);
  border-color: rgba(255, 181, 0, 0.4);
}

.program-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.program-card > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 16px;
  min-height: 48px;
}

.program-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.program-features li {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.program-features li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: rgba(255, 181, 0, 0.2);
  color: var(--primary-dark);
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

/* ══════════════════════════════════════════
   ASSOCIATIONS SECTION
═══════════════════════════════════════════ */

.associations {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  margin: 40px auto;
  border: 1px solid var(--border-color);
}

.associations-intro {
  text-align: center;
  margin-bottom: 60px;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.associations-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.association-tile {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.association-tile:not(.coming-soon):hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-6px);
}

.association-tile.cinema-tile {
  background: linear-gradient(135deg, rgba(255, 181, 0, 0.05) 0%, var(--bg-secondary) 100%);
  border-color: rgba(255, 181, 0, 0.3);
}

.association-tile.cinema-tile:hover .tile-desc {
  color: var(--text-primary);
}

.tile-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tile-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color 0.3s ease;
}

.tile-arrow {
  margin-top: auto;
  font-size: 20px;
  width: 44px; height: 44px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.association-tile.cinema-tile:hover .tile-arrow {
  color: var(--primary);
  transform: translateX(5px);
  border-color: var(--primary);
}

.association-tile.coming-soon {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════ */

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

.contact-card {
  background: var(--bg-secondary);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-primary);
  border-color: rgba(255, 181, 0, 0.4);
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-value {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary) !important;
  font-size: 16px !important;
}

/* ══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.footer {
  background: #020617;
  color: var(--text-primary);
  padding: 80px 40px 30px;
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 24px;
  color: var(--primary);
  font-weight: 700;
}

.footer-section p {
  color: #9CA3AF;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 16px;
}

.footer-section a {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.social-links a:hover {
  background: var(--bg-primary);
  color: var(--primary);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #9CA3AF;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ══════════════════════════════════════════
   CALENDAR SECTION
═══════════════════════════════════════════ */

.calendar-section {
  background: var(--bg-primary);
}

.calendar-container {
  max-width: 900px;
  margin: 0 auto 60px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
}

.calendar-header h3 {
  font-size: 24px;
  min-width: 200px;
  text-align: center;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.month-nav {
  background: rgba(255, 181, 0, 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.month-nav:hover {
  background: var(--primary);
  color: var(--bg-primary);
  transform: scale(1.1);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-name {
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  padding: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
  background: rgba(255, 181, 0, 0.02);
}

.calendar-day:hover {
  border-color: var(--primary);
  background: rgba(255, 181, 0, 0.08);
  transform: translateY(-2px);
}

.calendar-day.today {
  background: var(--primary);
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 181, 0, 0.3);
}

.calendar-day.has-event::after {
  content: '●';
  position: absolute;
  bottom: 4px;
  color: var(--primary);
  font-size: 12px;
}

.calendar-day.other-month {
  opacity: 0.4;
  cursor: default;
}

.calendar-day.other-month:hover {
  transform: none;
  background: rgba(255, 181, 0, 0.02);
  border-color: var(--border-color);
}

.events-list {
  max-width: 900px;
  margin: 0 auto;
}

.events-list h3 {
  font-size: 22px;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.event-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
}

.event-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.event-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.event-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.event-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════
   QUICK LINKS (ASSOCIATIONS)
═══════════════════════════════════════════ */

.quick-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}

.quick-link:hover {
  border-color: var(--primary);
  background: rgba(255, 181, 0, 0.05);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.quick-link-icon {
  font-size: 48px;
  transition: transform 0.3s ease;
}

.quick-link:hover .quick-link-icon {
  transform: scale(1.15) rotate(5deg);
}

.quick-link-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.quick-link.cinema {
  border-color: #ff8c42;
}

.quick-link.cinema:hover {
  border-color: #ff8c42;
  background: rgba(255, 140, 66, 0.08);
}

.quick-link.bde {
  border-color: var(--primary);
}

.quick-link.associations {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--bg-primary);
}

.quick-link.associations:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 30px rgba(255, 181, 0, 0.4);
}

.quick-link.associations .quick-link-icon {
  color: var(--bg-primary);
}

/* ══════════════════════════════════════════
   ASSOCIATIONS PANEL MODAL
═══════════════════════════════════════════ */

.associations-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.associations-panel-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.associations-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-color);
  animation: slideUp 0.3s ease;
}

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

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  border-bottom: 2px solid var(--border-color);
  background: rgba(255, 181, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.panel-header h2 {
  font-size: 28px;
  color: var(--text-primary);
  margin: 0;
}

.panel-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 0;
}

.panel-close:hover {
  color: var(--primary);
  background: rgba(255, 181, 0, 0.1);
  transform: rotate(90deg);
}

.panel-content {
  padding: 40px;
}

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

.assoc-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.assoc-card:hover {
  border-color: var(--primary);
  background: rgba(255, 181, 0, 0.03);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.assoc-card.featured {
  border-color: var(--primary);
  background: rgba(255, 181, 0, 0.08);
  grid-column: span 1;
}

.assoc-card.featured:hover {
  box-shadow: 0 0 30px rgba(255, 181, 0, 0.2);
}

.assoc-icon {
  font-size: 56px;
  transition: transform 0.3s ease;
  line-height: 1;
}

.assoc-card:hover .assoc-icon {
  transform: scale(1.2) rotate(5deg) bounceAnimation;
}

.assoc-card h3 {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

.assoc-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
}

.assoc-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(255, 181, 0, 0.1);
  cursor: pointer;
}

.assoc-link:hover {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(2px);
}

.panel-footer {
  padding: 24px 40px;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  background: rgba(255, 181, 0, 0.02);
  font-size: 14px;
}

/* ══════════════════════════════════════════
   RESPONSIVE CALENDAR & PANEL
═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .calendar-container {
    padding: 20px;
  }

  .calendar-day-name {
    font-size: 10px;
    padding: 8px;
  }

  .quick-links {
    flex-direction: column;
  }

  .quick-link {
    min-width: 100%;
  }

  .associations-grid {
    grid-template-columns: 1fr;
  }

  .panel-header {
    padding: 24px;
  }

  .panel-header h2 {
    font-size: 22px;
  }

  .assoc-card {
    padding: 24px;
  }

  .assoc-icon {
    font-size: 42px;
  }

  .panel-content {
    padding: 20px;
  }

  .panel-footer {
    padding: 16px 20px;
  }

  .associations-panel-overlay {
    padding: 10px;
  }

  .associations-panel {
    max-height: 95vh;
  }

  .events-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .calendar-grid {
    gap: 4px;
  }

  .calendar-day {
    font-size: 12px;
  }

  .panel-header h2 {
    font-size: 18px;
  }

  .quick-link-icon {
    font-size: 36px;
  }

  .assoc-icon {
    font-size: 36px;
  }

  .assoc-card h3 {
    font-size: 16px;
  }

  .assoc-card p {
    font-size: 13px;
  }
}


  .nav-subtitle {
    display: none; /* Cache sur mobile */
  }

  .nav-actions .btn {
    display: none; /* Cache sur mobile */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .btn-menu {
    display: flex;
  }

  .btn-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .btn-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .btn-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  section {
    padding: 80px 24px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .about-grid,
  .programs-grid,
  .contact-grid,
  .associations-buttons {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  
  .hero-card {
    padding: 24px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .nav-logo {
    font-size: 24px;
  }
}

/* ══════════════════════════════════════════
   PAGE CONTENT (About & Legal)
═══════════════════════════════════════════ */
.page-section {
  padding-top: 150px;
}

.page-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 50px 60px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.page-content h3 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.page-content h3:first-child {
  margin-top: 0;
}

.page-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  padding-left: 0;
  list-style-type: none;
  margin-bottom: 20px;
}

.page-content ul li {
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-content ul li::before {
  content: '✓';
  color: var(--primary-dark);
  font-weight: bold;
  font-size: 14px;
  background: rgba(255, 181, 0, 0.2);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.info-box {
  background: var(--secondary);
  padding: 30px;
  border-radius: var(--radius);
  margin-top: 40px;
  border-left: 4px solid var(--primary);
}

.info-box h4 {
  color: var(--text-primary);
  font-size: 18px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .page-content {
    padding: 30px 20px;
  }
}
