/* Les Griffons Aéromodélisme - Premium Aviation Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  /* Aviation-inspired color palette */
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary: #0891b2;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #10b981;
  --sky-light: #e0f2fe;
  --sky: #0ea5e9;
  --dark: #0c1222;
  --dark-light: #1e293b;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a56db 0%, #0891b2 100%);
  --gradient-dark: linear-gradient(180deg, #0c1222 0%, #1e293b 100%);
  --gradient-sky: linear-gradient(180deg, #0369a1 0%, #0ea5e9 50%, #7dd3fc 100%);
  --gradient-hero: linear-gradient(135deg, #0c1222 0%, #1e3a5f 40%, #0369a1 100%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(26, 86, 219, 0.3);

  /* Cassiopeia overrides */
  --cassiopeia-color-primary: #0c1222;
  --cassiopeia-color-hover: #0369a1;
  --cassiopeia-color-link: #1a56db;
}

* { box-sizing: border-box; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-600);
  line-height: 1.7;
  background-color: #e0f2fe;
  background-image:
    linear-gradient(180deg, rgba(224, 242, 254, 0.65) 0%, rgba(186, 230, 253, 0.7) 100%),
    url('/images/griffons/bg-aircraft.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: scroll;
  background-repeat: no-repeat;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Remove default Cassiopeia styles that conflict */
.site-grid { background: transparent; }
.container-header, .container-nav { background: transparent !important; }

/* ==================== PREMIUM HEADER ==================== */
.header,
.container-header,
header.container-header,
header.header.container-header {
  background: linear-gradient(135deg, #0c1222 0%, #1e3a5f 40%, #0369a1 100%) !important;
  background-color: #0c1222 !important;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  position: relative;
  z-index: 1000;
}

/* Subtle airplane pattern for header */
.header::before,
.container-header::before,
header.container-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M25 50 L20 48 L5 52 L8 50 L5 48 L20 52 L25 50 L35 45 L35 47 L28 50 L35 53 L35 55 L25 50z' transform='rotate(25 25 50)'/%3E%3Cpath d='M75 25 L70 23 L55 27 L58 25 L55 23 L70 27 L75 25 L85 20 L85 22 L78 25 L85 28 L85 30 L75 25z' transform='rotate(-15 75 25)'/%3E%3Cpath d='M60 80 L55 78 L40 82 L43 80 L40 78 L55 82 L60 80 L70 75 L70 77 L63 80 L70 83 L70 85 L60 80z' transform='rotate(10 60 80)'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.header .grid-child,
.container-header .grid-child {
  padding: 0.3rem 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.header .site-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white) !important;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.header .site-description {
  display: none;
}

.header .logo img,
.header .brand-logo img,
.container-header .logo img,
.container-header .brand-logo img {
  max-height: 75px !important;
  height: 75px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.header .logo img:hover,
.header .brand-logo img:hover {
  transform: scale(1.03);
}

.header .navbar-brand,
.container-header .navbar-brand {
  padding: 0 !important;
  margin: 0 !important;
}

/* Top accent line */
.header::after,
.container-header::after,
header.container-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%) !important;
  z-index: 10;
}

/* ==================== NAVIGATION ==================== */
.container-header nav {
  background: transparent;
  padding: 0;
  margin-top: 0 !important;
}

.container-header .mod-menu {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin: 0 !important;
}

.container-header .mod-menu > li {
  position: relative;
}

.container-header .mod-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  color: rgba(255,255,255,0.9) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 5px;
  transition: all 0.25s ease;
  position: relative;
}

.container-header .mod-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.container-header .mod-menu > li > a:hover::after,
.container-header .mod-menu > li > a:focus::after {
  width: 80%;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.1);
}

.container-header .mod-menu .active > a,
.container-header .mod-menu .current > a {
  color: var(--white) !important;
  background: rgba(255, 255, 255, 0.15);
}

.container-header .mod-menu .active > a::after,
.container-header .mod-menu .current > a::after {
  width: 80%;
  background: var(--accent);
}

/* ==================== DROPDOWN MENUS ==================== */
.container-header .mod-menu .dropdown-menu,
.container-header .mod-menu ul.mod-menu__sub,
.container-header .mod-menu ul,
.container-header .mod-menu > li > ul,
.header .mod-menu ul,
.header nav ul ul,
ul.mod-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: none !important;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  min-width: 220px;
  z-index: 9999;
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.container-header .mod-menu .dropdown-menu::before,
.container-header .mod-menu ul.mod-menu__sub::before,
.container-header .mod-menu ul::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 rgba(0, 0, 0, 0.05);
}

.container-header .mod-menu .dropdown-menu li,
.container-header .mod-menu ul.mod-menu__sub li,
.container-header .mod-menu ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container-header .mod-menu .dropdown-menu a,
.container-header .mod-menu ul.mod-menu__sub a,
.container-header .mod-menu ul ul a,
.container-header .mod-menu li li a,
.container-header .mod-menu > li > ul a,
.container-header .mod-menu > li ul li a,
.container-header nav ul ul a,
.container-header nav li li a,
ul.mod-menu li ul a,
ul.mod-menu li li a {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem !important;
  color: #374151 !important;
  background: transparent !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* Decorative dots before submenu items - optional, comment out if causing issues */
/*
.container-header .mod-menu .dropdown-menu a::before,
.container-header .mod-menu ul.mod-menu__sub a::before,
.container-header .mod-menu li li a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gray-300);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.2s ease;
}
*/

.container-header .mod-menu .dropdown-menu a:hover,
.container-header .mod-menu ul.mod-menu__sub a:hover,
.container-header .mod-menu ul ul a:hover,
.container-header .mod-menu li li a:hover,
.container-header .mod-menu > li > ul a:hover,
.container-header .mod-menu > li ul li a:hover,
.container-header nav ul ul a:hover,
.container-header nav li li a:hover,
ul.mod-menu li ul a:hover,
ul.mod-menu li li a:hover {
  color: #1a56db !important;
  background: #e0f2fe !important;
}

/* Hover effect for decorative dots - disabled
.container-header .mod-menu .dropdown-menu a:hover::before,
.container-header .mod-menu ul.mod-menu__sub a:hover::before,
.container-header .mod-menu li li a:hover::before {
  background: var(--primary);
  transform: scale(1.3);
}
*/

/* Force submenu text to be dark - override any inherited styles */
.header ul ul a,
.header li li a,
.header .mod-menu ul a,
.header nav ul ul a,
.mod-menu__sub a,
.dropdown-menu a {
  color: #374151 !important;
}

.header ul ul a:hover,
.header li li a:hover,
.header .mod-menu ul a:hover,
.header nav ul ul a:hover,
.mod-menu__sub a:hover,
.dropdown-menu a:hover {
  color: #1a56db !important;
  background: #e0f2fe !important;
}

/* ==================== HIDE ARTICLE INFO ==================== */
.com-content-article__info,
.article-info,
.com-content-article .article-info,
.com-content-article__info-block,
.createdby,
.category-name,
.published,
.hits,
.create,
.modified,
.parent-category-name,
dd.createdby,
dd.category-name,
dd.published,
dd.create,
time.article-info-term,
.com-content-article .icons,
.article-info-term {
  display: none !important;
}

/* ==================== MAIN CONTENT ==================== */
.container-component {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 1200px;
  position: relative;
}

/* Decorative corner accent */
.container-component::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--sky-light) 0%, transparent 60%);
  border-radius: 16px 0 0 0;
  pointer-events: none;
}

.com-content-article__body {
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.com-content-article__body h2 {
  font-size: 1.8rem;
  color: var(--dark);
  margin: 2.5rem 0 1.25rem 0;
  padding-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.com-content-article__body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.com-content-article__body h2:first-child {
  margin-top: 0;
}

.com-content-article__body h3 {
  font-size: 1.35rem;
  color: var(--dark-light);
  margin: 2rem 0 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--secondary);
}

.com-content-article__body p {
  margin-bottom: 1.25rem;
  color: var(--gray-600);
}

.com-content-article__body a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.com-content-article__body a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.com-content-article__body a:hover {
  color: var(--primary-dark);
}

.com-content-article__body a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.com-content-article__body img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.com-content-article__body img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

/* Lists */
.com-content-article__body ul,
.com-content-article__body ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.com-content-article__body li {
  margin-bottom: 0.75rem;
  position: relative;
}

.com-content-article__body ul li::marker {
  color: var(--primary);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 4rem 2.5rem;
  border-radius: 16px;
  margin: -2.5rem -2.5rem 2.5rem -2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Airplane pattern for hero section */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3C!-- Avion stylisé 1 --%3E%3Cpath d='M30 100 L20 95 L-5 105 L5 100 L-5 95 L20 105 L30 100 L55 85 L55 90 L38 100 L55 110 L55 115 L30 100z' transform='rotate(15 30 100)'/%3E%3C!-- Avion stylisé 2 --%3E%3Cpath d='M150 50 L140 45 L115 55 L125 50 L115 45 L140 55 L150 50 L175 35 L175 40 L158 50 L175 60 L175 65 L150 50z' transform='rotate(-20 150 50)'/%3E%3C!-- Avion stylisé 3 --%3E%3Cpath d='M120 160 L110 155 L85 165 L95 160 L85 155 L110 165 L120 160 L145 145 L145 150 L128 160 L145 170 L145 175 L120 160z' transform='rotate(30 120 160)'/%3E%3C!-- Nuages stylisés --%3E%3Cellipse cx='70' cy='40' rx='20' ry='8' opacity='0.4'/%3E%3Cellipse cx='85' cy='36' rx='15' ry='6' opacity='0.4'/%3E%3Cellipse cx='170' cy='130' rx='18' ry='7' opacity='0.4'/%3E%3Cellipse cx='183' cy='127' rx='12' ry='5' opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* Glowing orb effect */
.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section h2 {
  color: var(--white) !important;
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
  display: block;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section h2::after {
  display: none;
}

.hero-section .lead {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ==================== LEAD PARAGRAPH ==================== */
.lead, p.lead {
  font-size: 1.15rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ==================== CARDS ==================== */
.intro-cards, .activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.activity-card {
  background: var(--gradient-card);
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.activity-card:hover::before {
  transform: scaleX(1);
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: transparent;
}

.activity-card h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-card p {
  color: var(--gray-500);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.activity-card a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.activity-card a:hover {
  gap: 0.6rem;
}

.activity-card a::after {
  content: '\2192';
  font-size: 1rem;
}

/* ==================== NEWS ITEMS ==================== */
.news-item {
  background: var(--white);
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.news-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gradient-primary);
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.news-item h3 {
  color: var(--dark);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.news-item:hover h3 {
  color: var(--primary);
}

.news-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sky-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* ==================== LOCATION & CONTACT ==================== */
.location-info, .contact-info {
  background: linear-gradient(135deg, var(--sky-light) 0%, var(--gray-50) 100%);
  padding: 2.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.location-info::before, .contact-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.contact-details {
  background: var(--white);
  padding: 1.75rem;
  border-radius: 12px;
  margin: 1.25rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

address {
  font-style: normal;
  line-height: 1.9;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  margin: 1.25rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

/* ==================== ALERTS ==================== */
.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: none;
  border-radius: 12px;
  padding: 1.5rem 1.75rem 1.5rem 4rem;
  margin: 1.5rem 0;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.alert-warning::before {
  content: '\26A0';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.alert-warning h3 {
  color: #92400e;
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

/* ==================== GALLERY WITH LIGHTBOX ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.gallery-grid img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: var(--shadow-xl);
}

.gallery-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.gallery-grid a::before {
  content: '\1F50D';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.gallery-grid a:hover::before {
  opacity: 1;
}

.gallery-grid a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-grid a:hover::after {
  opacity: 1;
}

/* ==================== LIGHTBOX CSS PURE ==================== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox:target {
  display: flex;
}

.lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.lightbox-content img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Bouton fermer - en haut à droite de l'image */
.lightbox-content .lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-radius: 50%;
  font-size: 28px;
  line-height: 45px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.lightbox-content .lightbox-close:hover {
  background: #fff;
  transform: scale(1.1) rotate(90deg);
}

/* Boutons navigation - sur les côtés de l'image */
.lightbox-content .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  border-radius: 50%;
  font-size: 32px;
  line-height: 55px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

.lightbox-content .lightbox-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-content .lightbox-prev {
  left: 15px;
}

.lightbox-content .lightbox-next {
  right: 15px;
}

/* Compteur - en bas de l'image */
.lightbox-content .lightbox-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-content img {
    max-width: 95vw;
    max-height: 95vh;
  }

  .lightbox-content .lightbox-nav {
    width: 48px;
    height: 48px;
    font-size: 28px;
    line-height: 48px;
  }

  .lightbox-content .lightbox-prev {
    left: 10px;
  }

  .lightbox-content .lightbox-next {
    right: 10px;
  }

  .lightbox-content .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
  }

  .lightbox-content .lightbox-counter {
    bottom: 15px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .lightbox-content .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 24px;
    line-height: 42px;
  }

  .lightbox-content .lightbox-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 36px;
  }

  .lightbox-content .lightbox-counter {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    bottom: 10px;
  }
}

/* ==================== BUTTONS ==================== */
.btn, .btn-primary, a.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: var(--white) !important;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(26, 86, 219, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before, .btn-primary::before, a.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before, .btn-primary:hover::before, a.btn-primary:hover::before {
  left: 100%;
}

.btn:hover, .btn-primary:hover, a.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.4);
}

.btn:active, .btn-primary:active, a.btn-primary:active {
  transform: translateY(-1px);
}

/* Secondary button style */
.btn-secondary, a.btn-secondary {
  background: var(--white);
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-secondary:hover, a.btn-secondary:hover {
  background: var(--primary);
  color: var(--white) !important;
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.3);
}

/* ==================== IMAGES ==================== */
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: 12px !important; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.75rem;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0.75rem;
}

@media (max-width: 768px) {
  .col-md-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Image cards with captions */
.image-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.image-card img {
  width: 100%;
  display: block;
}

.image-card figcaption {
  padding: 1rem 1.25rem;
  background: var(--white);
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Featured image styling */
.featured-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin: 2rem 0;
}

.featured-image img {
  width: 100%;
  display: block;
}

.featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--gradient-dark);
  color: var(--gray-400);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

/* Decorative airplane pattern for footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 75 L30 70 L5 80 L15 75 L5 70 L30 80 L40 75 L60 62 L60 67 L47 75 L60 83 L60 88 L40 75z' transform='rotate(10 40 75)'/%3E%3Cpath d='M110 40 L100 35 L75 45 L85 40 L75 35 L100 45 L110 40 L130 27 L130 32 L117 40 L130 48 L130 53 L110 40z' transform='rotate(-15 110 40)'/%3E%3Cpath d='M90 120 L80 115 L55 125 L65 120 L55 115 L80 125 L90 120 L110 107 L110 112 L97 120 L110 128 L110 133 L90 120z' transform='rotate(25 90 120)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 150px 150px;
  pointer-events: none;
}

/* Top border accent */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--sky) 100%);
}

.footer a {
  color: var(--sky);
  transition: color 0.2s ease;
}
.footer a:hover {
  color: var(--white);
}

.footer-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-content p {
  margin-bottom: 0.5rem;
}

.footer .grid-child {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Footer logo/branding */
.footer .logo {
  margin-bottom: 1rem;
}

.footer .logo img {
  max-height: 40px;
  opacity: 0.9;
  filter: brightness(1.1);
}

/* ==================== BREADCRUMBS ==================== */
.mod-breadcrumbs {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.mod-breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.mod-breadcrumbs a:hover {
  text-decoration: underline;
}

/* ==================== LOADING ANIMATION ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container-component {
  animation: fadeInUp 0.5s ease-out;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
  .hero-section {
    padding: 3rem 1.5rem;
    margin: -2.5rem -1.5rem 2rem -1.5rem;
  }
  .hero-section h2 { font-size: 1.85rem; }
  .container-component { padding: 2rem; margin: 1.5rem 1rem; }

  .container-header .mod-menu {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .header .site-title { font-size: 0.85rem; }

  .header .logo img,
  .header .brand-logo img,
  .container-header .logo img,
  .container-header .brand-logo img {
    max-height: 44px !important;
    height: 44px;
  }

  .hero-section {
    padding: 2rem 1.25rem;
    border-radius: 0 0 16px 16px;
    margin: -2.5rem -1.5rem 1.5rem -1.5rem;
  }
  .hero-section h2 { font-size: 1.5rem; }
  .hero-section .lead { font-size: 1rem; }

  .container-component {
    padding: 1.5rem;
    margin: 1rem 0.75rem;
    border-radius: 12px;
  }

  .container-component::before {
    display: none;
  }

  .intro-cards, .activities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .container-header .mod-menu > li > a {
    padding: 0.4rem 0.65rem;
    font-size: 0.7rem;
  }

  .activity-card { padding: 1.25rem; }
  .news-item { padding: 1.25rem 1.25rem 1.25rem 1.5rem; }
}

@media (max-width: 480px) {
  .header .logo img,
  .header .brand-logo img,
  .container-header .logo img,
  .container-header .brand-logo img {
    max-height: 38px !important;
    height: 38px;
  }
  .gallery-grid { grid-template-columns: 1fr; }
  .intro-cards, .activities-grid { gap: 1rem; }
}

/* ==================== UTILITIES ==================== */
html { scroll-behavior: smooth; }
::selection { background: var(--primary); color: var(--white); }

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Aviation-themed decorative elements */
.aviation-icon::before {
  content: '\2708';
  margin-right: 0.5rem;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .header, .footer, .mod-breadcrumbs { display: none; }
  .container-component { box-shadow: none; margin: 0; padding: 1rem; }
}

/* ==================== INFO BOXES ==================== */
.info-box, .highlight-box {
  background: linear-gradient(135deg, var(--sky-light) 0%, #e0f7fa 100%);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--secondary);
  position: relative;
}

.info-box h4, .highlight-box h4 {
  color: var(--dark);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* ==================== TABLES ==================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--gradient-primary);
  color: var(--white);
}

th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--gray-50);
}

/* ==================== BLOCKQUOTES ==================== */
blockquote {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--gray-600);
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ==================== CLUB AFFILIATIONS ==================== */
.affiliations, .partners {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: 16px;
}

.affiliations img, .partners img {
  max-height: 60px;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: grayscale(30%);
}

.affiliations img:hover, .partners img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* ==================== SCHEDULE / HORAIRES ==================== */
.schedule, .horaires {
  background: var(--gradient-card);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.schedule h3, .horaires h3 {
  margin-top: 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.25rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--gray-200);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-day {
  font-weight: 600;
  color: var(--dark);
}

.schedule-time {
  color: var(--primary);
  font-weight: 500;
}

/* ==================== STATS / NUMBERS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== TEAM / MEMBERS GRID ==================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-member img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--gray-200);
}

.team-member h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.team-member .role {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==================== FFAM BADGE ==================== */
.ffam-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.ffam-badge img {
  height: 24px;
  width: auto;
}

/* ==================== CRITICAL SUBMENU FIX ==================== */
/* Override ALL possible submenu link colors to ensure visibility */
.site-grid .mod-menu ul a,
.site-grid .mod-menu li ul a,
.site-grid .mod-menu li li a,
.site-grid nav ul ul a,
.site-grid nav li li a,
.container-header ul.mod-menu ul a,
.container-header ul.mod-menu li ul a,
.container-header .metismenu ul a,
nav.container-nav ul ul a,
.header ul li ul li a,
.header nav ul li ul li a {
  color: #374151 !important;
  background-color: transparent !important;
}

.site-grid .mod-menu ul a:hover,
.site-grid .mod-menu li ul a:hover,
.site-grid .mod-menu li li a:hover,
.site-grid nav ul ul a:hover,
.site-grid nav li li a:hover,
.container-header ul.mod-menu ul a:hover,
.container-header ul.mod-menu li ul a:hover,
.container-header .metismenu ul a:hover,
nav.container-nav ul ul a:hover,
.header ul li ul li a:hover,
.header nav ul li ul li a:hover {
  color: #1a56db !important;
  background-color: #e0f2fe !important;
}

/* ==================== ULTIMATE SUBMENU FIX ==================== */
/* This section uses the highest specificity possible */
body .header .mod-menu > li > ul > li > a,
body .header .mod-menu li.parent > ul > li > a,
body .header nav .mod-menu li ul li a,
body .container-header .mod-menu li ul li a,
body .site-grid .container-header .mod-menu li ul li a,
body .site-grid .header .mod-menu li ul li a,
body ul.mod-menu li.parent ul li a,
body nav ul.mod-menu li ul li a,
body .mod-menu .mod-menu__sub li a {
  color: #374151 !important;
  background: transparent !important;
}

body .header .mod-menu > li > ul > li > a:hover,
body .header .mod-menu li.parent > ul > li > a:hover,
body .header nav .mod-menu li ul li a:hover,
body .container-header .mod-menu li ul li a:hover,
body .site-grid .container-header .mod-menu li ul li a:hover,
body .site-grid .header .mod-menu li ul li a:hover,
body ul.mod-menu li.parent ul li a:hover,
body nav ul.mod-menu li ul li a:hover,
body .mod-menu .mod-menu__sub li a:hover {
  color: #1a56db !important;
  background: #e0f2fe !important;
}
