/* ============================================
   INDIAN RIDERS MAROC - STYLES COMPILÉS
   ============================================
   
   Ce fichier est généré automatiquement par build-css.js
   NE PAS MODIFIER DIRECTEMENT - Modifier les fichiers sources dans css/
   
   Pour rebuilder: npm run build:css
   
   ============================================ */

/* ========== css/base/_variables.css ========== */
/* ============================================
   DESIGN TOKENS - Heritage meets Dark Mode
   ============================================
   
   Variables CSS réutilisables pour maintenir la cohérence
   visuelle dans tout le site. Toutes les couleurs, espacements,
   typographies et effets sont définis ici.
   
   ============================================ */

:root {
  /* ===== Couleurs de Base - Dark Mode (par défaut) ===== */
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-tertiary: #2a2a2a;

  /* ===== Couleurs d'Accent - Heritage Logo ===== */
  --accent-primary: #701f28;
  --accent-secondary: #f0e8d0;
  --accent-hover: #8b2633;
  --accent-dark: #5a1820;

  /* ===== Couleurs de Texte ===== */
  --text-primary: #EDEDED;
  --text-secondary: #B0B0B0;
  --text-muted: #707070;

  /* ===== Couleurs Fonctionnelles ===== */
  --border-subtle: rgba(240, 232, 208, 0.1);
  --border-medium: rgba(240, 232, 208, 0.2);
  --border-accent: rgba(112, 31, 40, 0.5);

  /* ===== Effets de Transparence ===== */
  --overlay-dark: rgba(0, 0, 0, 0.6);
  --glass-light: rgba(240, 232, 208, 0.05);
  --glass-medium: rgba(240, 232, 208, 0.08);

  /* ===== Dégradés ===== */
  --gradient-bg: linear-gradient(180deg, #0f0f0f 0%, #121212 50%, #1a1a1a 100%);
  --gradient-card: linear-gradient(135deg, rgba(240, 232, 208, 0.03) 0%, rgba(240, 232, 208, 0.01) 100%);
  --gradient-accent: linear-gradient(135deg, #701f28 0%, #5a1820 100%);

  /* ===== Typographie - Familles de Police ===== */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* ===== Typographie - Tailles de Police ===== */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* ===== Typographie - Poids de Police ===== */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* ===== Typographie - Hauteur de Ligne ===== */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ===== Espacements - Grille de 4px ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* ===== Rayons de Bordure ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ===== Ombres - Optimisées pour Performance ===== */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 8px 20px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 12px rgba(112, 31, 40, 0.4);
  --shadow-accent-hover: 0 6px 16px rgba(112, 31, 40, 0.6);

  /* ===== Durées de Transition - Performance Optimale ===== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Utilitaires ===== */
  --maxw: 1100px;

  /* ===== Galerie Responsive - Propriétés Personnalisées ===== */
  --gallery-columns-mobile: 2;
  --gallery-columns-tablet: 2;
  --gallery-columns-desktop: 3;
  --gallery-gap-mobile: 1rem;
  --gallery-gap-tablet: 1.25rem;
  --gallery-gap-desktop: 1.5rem;
  --gallery-item-min-width-mobile: 140px;
  --gallery-item-min-width-tablet: 200px;
  --gallery-item-min-width-desktop: 250px;

  /* ===== Configuration de Base ===== */
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light mode supprimé - Dark mode permanent uniquement */


/* ========== css/base/_reset.css ========== */
/* ============================================
   RESET & BASE STYLES
   ============================================
   
   Reset CSS minimal et styles de base pour garantir
   une cohérence cross-browser.
   
   ============================================ */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  font-family: var(--font-body);
  font-size: var(--text-base);
}


/* ========== css/base/_typography.css ========== */
/* ============================================
   TYPOGRAPHY SYSTEM - Robuste et Mécanique
   ============================================
   
   Système typographique à deux polices:
   - Oswald (titres): Condensée, forte, en MAJUSCULES
   - Montserrat (corps): Géométrique, lisible
   
   ============================================ */

/* Titres - Oswald en MAJUSCULES */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin: 0;
  font-weight: var(--font-bold);
}

h1 {
  font-size: var(--text-5xl);
  line-height: var(--leading-tight);
  letter-spacing: 0.02em;
}

h2 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
}

/* Corps de texte - Montserrat */
p,
li,
a,
button,
input,
textarea,
select,
label {
  font-family: var(--font-body);
  color: var(--text-primary);
}

p {
  margin: 0 0 var(--space-4) 0;
  line-height: var(--leading-relaxed);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  body {
    font-size: var(--text-sm);
  }

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }

  h4 {
    font-size: var(--text-xl);
  }
}


/* ========== css/components/_buttons.css ========== */
/* ============================================
   COMPONENTS - BUTTONS & CTA
   ============================================
   
   Boutons avec intégration des couleurs du logo
   
   ============================================ */

/* Bouton principal - Remplissage Bordeaux avec texte et bordure Crème */
.btn-primary,
.cta {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--accent-secondary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-secondary);
  font-weight: var(--font-semibold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
  box-shadow: var(--shadow-accent);
  text-decoration: none;
  font-size: var(--text-base);
  line-height: 1;
  will-change: transform;
}

.btn-primary:hover,
.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-hover);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-primary:active,
.cta:active {
  background: var(--accent-dark);
  transform: translateY(0);
  box-shadow: var(--shadow-accent);
}

/* Bouton secondaire - Bordure Crème */
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent-secondary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 2px solid var(--accent-secondary);
  font-weight: var(--font-medium);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
  text-decoration: none;
  font-size: var(--text-base);
  line-height: 1;
  will-change: transform;
}

.btn-secondary:hover {
  background: var(--accent-secondary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 232, 208, 0.2);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(240, 232, 208, 0.1);
}

/* Bouton ghost - Minimaliste */
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: var(--font-medium);
  font-family: var(--font-body);
  cursor: pointer;
  transition: transform var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
  text-decoration: none;
  font-size: var(--text-base);
  line-height: 1;
  will-change: transform;
}

.btn-ghost:hover {
  color: var(--accent-secondary);
  background: var(--glass-light);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(0);
  background: var(--glass-medium);
}


/* ========== css/components/_cards.css ========== */
/* ============================================
   COMPONENTS - CARDS
   ============================================
   
   Cartes avec fond Gris Moteur et bordures Bordeaux/Crème
   
   ============================================ */

/* Carte de base */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
  position: relative;
  will-change: transform;
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Carte avec accent Bordeaux */
.card-accent {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-primary);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
  position: relative;
  will-change: transform;
}

.card-accent:hover {
  border-left-color: var(--accent-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Carte avec bordure Crème */
.card-highlight {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--accent-secondary);
  box-shadow: 0 4px 16px rgba(240, 232, 208, 0.1);
  transition: transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
  position: relative;
  will-change: transform;
}

.card-highlight:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 6px 20px rgba(240, 232, 208, 0.15);
  transform: translateY(-2px);
}

/* Barre verticale Bordeaux */
.card-divider {
  border-left: 2px solid var(--accent-primary);
  padding-left: var(--space-4);
  transition: border-color var(--transition-base);
}

.card-divider:hover {
  border-left-color: var(--accent-hover);
}

/* Barre verticale Crème */
.card-divider-cream {
  border-left: 2px solid var(--accent-secondary);
  padding-left: var(--space-4);
  transition: border-color var(--transition-base);
}

.card-divider-cream:hover {
  border-left-color: var(--text-primary);
}


/* ========== css/components/_forms.css ========== */
/* ============================================
   COMPONENTS - FORMS
   ============================================
   
   Formulaires avec accents Bordeaux
   
   ============================================ */

/* Labels */
form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  transition: color 0.3s ease;
}

/* Champs de formulaire */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: var(--font-normal);
  transition: border-color var(--transition-base),
    background-color var(--transition-base),
    box-shadow var(--transition-base);
  resize: vertical;
  line-height: var(--leading-normal);
}

/* État hover */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover {
  border-color: var(--border-medium);
  background: var(--bg-tertiary);
}

/* État focus */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
  box-shadow: 0 0 0 3px rgba(112, 31, 40, 0.2);
}

/* Placeholders */
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
  font-family: var(--font-body);
}

/* Label au focus */
input:focus+label,
textarea:focus+label,
select:focus+label {
  color: var(--accent-secondary);
}

/* Textarea */
textarea {
  min-height: 120px;
}

/* Select */
select {
  cursor: pointer;
  appearance: none;
  background-color: var(--bg-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23f0e8d0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
  /* Force matching styling with text inputs */
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

select:hover {
  border-color: var(--border-medium);
  background-color: var(--bg-tertiary);
  /* Keep the arrow same color or slightly brighter */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23EDEDED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* États de validation */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: var(--accent-primary);
}

/* Disabled state */
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-primary);
}

/* Responsive - Mobile */
@media (max-width: 768px) {

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  textarea,
  select {
    font-size: var(--text-sm);
  }
}


/* ========== css/components/_navigation.css ========== */
/* ============================================
   COMPONENTS - NAVIGATION
   ============================================
   
   Navigation sticky avec transition transparente → opaque
   
   ============================================ */

/* ============================================
   GALERIE & LIGHTBOX
   ============================================ */

/* Responsive Gallery Grid - Mobile First with Fallback */
.gallery-grid {
  /* Flexbox fallback for older browsers */
  display: flex;
  flex-wrap: wrap;
  gap: var(--gallery-gap-mobile);
  margin-top: 2rem;
}

.gallery-grid .gallery-item {
  /* Flexbox fallback: 2 columns on mobile */
  flex: 0 0 calc(50% - (var(--gallery-gap-mobile) / 2));
}

/* CSS Grid enhancement for modern browsers */
@supports (display: grid) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns-mobile), 1fr);
    gap: var(--gallery-gap-mobile);
  }

  .gallery-grid .gallery-item {
    /* Reset flex properties when grid is supported */
    flex: none;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  /* Touch-friendly minimum size for mobile */
  min-height: 44px;
  min-width: 44px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Overlay au survol avec icon */
.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Lightbox (Modal) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px !important;
  right: 20px !important;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(179, 0, 21, 0.8);
  transform: scale(1.1);
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Tablet Responsive Adjustments */
@media (min-width: 768px) {
  .gallery-grid {
    gap: var(--gallery-gap-tablet);
  }

  .gallery-grid .gallery-item {
    /* Flexbox fallback: 2 columns on tablet */
    flex: 0 0 calc(50% - (var(--gallery-gap-tablet) / 2));
  }

  /* CSS Grid enhancement */
  @supports (display: grid) {
    .gallery-grid {
      grid-template-columns: repeat(var(--gallery-columns-tablet), 1fr);
    }
  }
}

/* Desktop Responsive Adjustments */
@media (min-width: 1024px) {
  .gallery-grid {
    gap: var(--gallery-gap-desktop);
  }

  .gallery-grid .gallery-item {
    /* Flexbox fallback: 3 columns on desktop */
    flex: 0 0 calc(33.333% - (var(--gallery-gap-desktop) * 2 / 3));
  }

  /* CSS Grid enhancement */
  @supports (display: grid) {
    .gallery-grid {
      grid-template-columns: repeat(var(--gallery-columns-desktop), 1fr);
    }
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
  .gallery-item {
    /* Ensure touch-friendly sizing on mobile */
    min-height: 120px;
    border-radius: var(--radius-sm);
  }

  .gallery-item:hover {
    /* Reduce hover effects on mobile for better performance */
    transform: translateY(-2px);
  }

  .gallery-item:hover img {
    /* Reduce scale effect on mobile */
    transform: scale(1.05);
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}

/* Extra Small Mobile - Single Column Gallery */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet Responsive Adjustments for Gallery Items */
@media (min-width: 768px) and (max-width: 1023px) {
  .gallery-item {
    /* Optimize for tablet touch interaction */
    min-height: 150px;
    border-radius: var(--radius-md);
  }

  .gallery-item:hover {
    transform: translateY(-3px);
  }
}

/* Desktop Responsive Adjustments for Gallery Items */
@media (min-width: 1024px) {
  .gallery-item {
    /* Full hover effects on desktop */
    min-height: 200px;
    border-radius: var(--radius-lg);
  }

  .gallery-item:hover {
    transform: translateY(-5px);
  }

  .gallery-item:hover img {
    transform: scale(1.1);
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  background: transparent;
  padding: var(--space-4) 0;
  transition: background-color var(--transition-smooth),
    box-shadow var(--transition-smooth),
    padding var(--transition-smooth),
    transform var(--transition-smooth);
}

/* Header au scroll */
header.scrolled {
  background: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-3) 0;
}

/* Header caché */
header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.logo {
  height: 120px;
  width: auto;
  transition: transform var(--transition-smooth),
    filter var(--transition-smooth);
  filter: drop-shadow(0 4px 12px rgba(112, 31, 40, 0.4));
  will-change: transform;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(112, 31, 40, 0.6));
}

/* Navigation */
nav {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  font-family: var(--font-body);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base);
  position: relative;
}

nav a:hover {
  color: var(--accent-secondary);
}

/* Soulignement Crème au hover */
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-secondary);
  transition: width var(--transition-smooth);
  transform: translateX(-50%);
  will-change: width;
}

nav a:hover::after {
  width: 80%;
}

/* Lien actif */
nav a.active {
  color: var(--accent-secondary);
  border-bottom: 2px solid var(--accent-primary);
}

/* État focus */
nav a:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  color: var(--accent-secondary);
}

nav a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  background: var(--glass-light);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid #f0e8d0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: var(--space-2);
  z-index: 1001;
  transition: transform var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.hamburger:hover {
  background: rgba(240, 232, 208, 0.1);
  border-color: #f0e8d0;
  transform: scale(1.05);
}

.hamburger:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #f0e8d0;
  border-radius: 2px;
  transition: transform var(--transition-base),
    opacity var(--transition-base),
    background-color var(--transition-base);
}

.hamburger:hover .hamburger-line {
  background: #f0e8d0;
}

/* Animation du hamburger en X */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


/* ========== css/components/_icons.css ========== */
/* ============================================
   COMPONENTS - ICONS & GRAPHIC DETAILS
   ============================================
   
   Icônes et détails graphiques en Crème
   
   ============================================ */

.icon {
  color: var(--accent-secondary);
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base),
    color var(--transition-base);
  display: inline-block;
  vertical-align: middle;
  will-change: transform;
}

.icon:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.icon-inline {
  color: var(--accent-secondary);
  width: 18px;
  height: 18px;
  margin-right: var(--space-2);
  vertical-align: middle;
  display: inline-block;
  transition: color var(--transition-base);
}

.underline-accent {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-2);
}

.underline-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-secondary);
  transition: width var(--transition-smooth);
  will-change: width;
}

.underline-accent:hover::after {
  width: 100px;
}

.separator {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, transparent 100%);
  margin: var(--space-8) 0;
  border: none;
}

hr.separator-alt {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-primary) 25%, var(--accent-secondary) 75%, transparent 100%);
  border: none;
  margin: var(--space-6) 0;
}

ul.custom-list {
  list-style: none;
  padding-left: 0;
}

ul.custom-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
  transition: color var(--transition-base),
    padding-left var(--transition-base);
}

ul.custom-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  transition: transform var(--transition-base),
    color var(--transition-base);
  will-change: transform;
}

ul.custom-list li:hover::before {
  color: var(--accent-hover);
  transform: translateX(4px);
}

ul.custom-list li:hover {
  color: var(--text-primary);
  padding-left: calc(var(--space-6) + 4px);
}

ol.custom-list-ordered {
  list-style: none;
  counter-reset: custom-counter;
  padding-left: 0;
}

ol.custom-list-ordered li {
  position: relative;
  padding-left: var(--space-8);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
  counter-increment: custom-counter;
  transition: color var(--transition-base),
    padding-left var(--transition-base);
}

ol.custom-list-ordered li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  width: var(--space-6);
  height: var(--space-6);
  background: var(--accent-primary);
  color: var(--accent-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  transition: transform var(--transition-base),
    background-color var(--transition-base);
  border: 1px solid var(--accent-secondary);
  will-change: transform;
}

ol.custom-list-ordered li:hover::before {
  background: var(--accent-hover);
  transform: scale(1.1);
}

ol.custom-list-ordered li:hover {
  color: var(--text-primary);
  padding-left: calc(var(--space-8) + 4px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-medium);
  transition: transform var(--transition-base),
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base);
  cursor: default;
  will-change: transform;
}

.tag:hover {
  background: var(--accent-secondary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 232, 208, 0.2);
}

.tag .icon-inline {
  width: 14px;
  height: 14px;
  margin-right: 0;
}

.tag:hover .icon-inline {
  color: var(--accent-primary);
}

.tag-bordeaux {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.tag-bordeaux:hover {
  background: var(--accent-primary);
  color: var(--accent-secondary);
}

.section-icon {
  color: var(--accent-secondary);
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-3);
  transition: transform var(--transition-base),
    color var(--transition-base);
  will-change: transform;
}

.section-icon:hover {
  color: var(--text-primary);
  transform: scale(1.1) rotate(5deg);
}

.divider-with-icon {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.divider-with-icon::before,
.divider-with-icon::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

.divider-with-icon .icon {
  color: var(--accent-secondary);
  width: 20px;
  height: 20px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .icon {
    width: 20px;
    height: 20px;
  }

  .icon-inline {
    width: 16px;
    height: 16px;
    margin-right: var(--space-1);
  }

  .section-icon {
    width: 28px;
    height: 28px;
  }

  .underline-accent::after {
    width: 40px;
  }

  .underline-accent:hover::after {
    width: 60px;
  }

  .tag {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-2);
  }

  ul.custom-list li,
  ol.custom-list-ordered li {
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
  }

  ol.custom-list-ordered li {
    padding-left: var(--space-6);
  }
}


/* ========== css/layout/_container.css ========== */
/* ============================================
   LAYOUT - CONTAINER & GRID
   ============================================
   
   Système de layout pour le site
   
   ============================================ */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
}

/* Two-column layout */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.grid>.card,
.grid>.card-accent,
.grid>.card-highlight,
.grid>div {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.grid form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.grid form button[type="submit"] {
  margin-top: auto;
}

/* Footer */
footer {
  margin-top: 22px;
  padding: 18px 0;
  color: var(--text-secondary);
  text-align: center;
  font-size: 13px;
}

footer a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

footer a:hover {
  color: var(--text-primary);
}


/* ========== css/pages/_hero.css ========== */
/* ============================================
   PAGES - HERO SECTION
   ============================================
   
   Section hero avec overlay sombre
   
   ============================================ */

.hero {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.52));
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-6);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(112, 31, 40, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
  border-radius: inherit;
}

.hero-image>* {
  position: relative;
  z-index: 2;
}

.section-bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
  border-radius: inherit;
}

.section-bg-image>* {
  position: relative;
  z-index: 2;
}

.hero-left {
  flex: 1;
}

.hero h1 {
  margin: 0 0 var(--space-4) 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-shadow: 0 4px 12px rgba(112, 31, 40, 0.6), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  text-shadow: 0 3px 10px rgba(112, 31, 40, 0.5), 0 2px 6px rgba(0, 0, 0, 0.7);
}

.hero h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(112, 31, 40, 0.4), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.lead {
  color: var(--text-secondary);
  margin: 0 0 var(--space-6) 0;
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.stats {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.stat {
  background: var(--glass-medium);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-smooth),
    background-color var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  min-width: 100px;
  text-align: center;
  will-change: transform;
}

.stat:hover {
  background: var(--glass-light);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 31, 40, 0.2);
}

.stat strong {
  display: block;
  font-size: var(--text-2xl);
  font-family: var(--font-heading);
  color: var(--accent-secondary);
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 6px rgba(112, 31, 40, 0.4);
}


/* ========== css/pages/_events.css ========== */
/* ============================================
   PAGES - EVENT CARDS
   ============================================
   
   Cartes événements avec indicateurs de date
   
   ============================================ */

.events-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.event {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  transition: transform var(--transition-smooth),
    background-color var(--transition-smooth),
    border-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
  cursor: pointer;
  will-change: transform;
}

.event:hover {
  background: var(--bg-tertiary);
  border-left-color: var(--accent-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(112, 31, 40, 0.2);
}

.event-date {
  min-width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  font-weight: var(--font-bold);
  font-family: var(--font-heading);
  box-shadow: var(--shadow-accent);
  border: 2px solid var(--accent-secondary);
  flex-shrink: 0;
  transition: transform var(--transition-smooth),
    background-color var(--transition-smooth),
    box-shadow var(--transition-smooth);
  will-change: transform;
}

.event:hover .event-date {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent-hover);
  transform: scale(1.05);
}

.event-date-day {
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: 0;
}

.event-date-month {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-1);
}

.event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.event-info strong {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.event-info small {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.event-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: var(--space-2);
  transition: transform var(--transition-fast),
    background-color var(--transition-fast);
  will-change: transform;
}

.badge-new {
  background: var(--accent-primary);
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
}

.event:hover .badge-new {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.badge-limited {
  background: var(--accent-secondary);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.event:hover .badge-limited {
  background: var(--text-primary);
  transform: scale(1.05);
}

.badge-urgent {
  background: transparent;
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
}

.event:hover .badge-urgent {
  background: var(--accent-secondary);
  color: var(--accent-primary);
  transform: scale(1.05);
}

/* Theme toggle supprimé - Dark mode permanent uniquement */

@media (max-width: 768px) {

  .event {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .event-date {
    min-width: 70px;
    height: 70px;
  }

  .event-date-day {
    font-size: var(--text-2xl);
  }

  .event-date-month {
    font-size: var(--text-xs);
  }

  .event-info strong {
    font-size: var(--text-base);
  }

  .event-badge {
    margin-left: 0;
    margin-top: var(--space-1);
  }
}


/* ========== css/pages/_gallery.css ========== */
/* ============================================
   PAGES - GALLERY
   ============================================
   
   Galerie avec filtres d'opacité
   
   ============================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
  border: 1px solid var(--border-subtle);
  will-change: transform;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(112, 31, 40, 0.3);
  border-color: var(--accent-primary);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth),
    filter var(--transition-smooth);
  filter: brightness(0.7);
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.5);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  opacity: 0.4;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 0.7;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(112, 31, 40, 0.9) 100%);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-text {
  color: var(--accent-secondary);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-3);
  transition: transform var(--transition-smooth);
}

.gallery-item:hover .gallery-item-text {
  transform: translateY(-4px);
}

.gallery-item-icon {
  color: var(--accent-secondary);
  transition: transform var(--transition-smooth);
}

.gallery-item:hover .gallery-item-icon {
  transform: scale(1.2);
}

.gallery .item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
  cursor: pointer;
  will-change: transform;
}

.gallery .item:hover {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  border-color: var(--accent-primary);
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(112, 31, 40, 0.2);
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent-primary);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--accent-primary);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .gallery-item-text {
    font-size: var(--text-base);
    bottom: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
  }
}

/* ========== css/utilities/_utilities.css ========== */
/* ============================================
   UTILITY CLASSES
   ============================================
   
   Classes réutilisables pour usage rapide
   
   ============================================ */

/* Spacing Utilities */
.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.p-2 {
  padding: var(--space-2);
}

.p-3 {
  padding: var(--space-3);
}

.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent-secondary);
}

.text-bordeaux {
  color: var(--accent-primary);
}

.text-uppercase {
  text-transform: uppercase;
}

.text-bold {
  font-weight: var(--font-bold);
}

.text-semibold {
  font-weight: var(--font-semibold);
}

/* Background Utilities */
.bg-primary {
  background: var(--bg-primary);
}

.bg-secondary {
  background: var(--bg-secondary);
}

.bg-tertiary {
  background: var(--bg-tertiary);
}

.bg-bordeaux {
  background: var(--accent-primary);
}

.bg-cream {
  background: var(--accent-secondary);
}

/* Border Utilities */
.border-bordeaux {
  border: 1px solid var(--accent-primary);
}

.border-cream {
  border: 1px solid var(--accent-secondary);
}

.border-subtle {
  border: 1px solid var(--border-subtle);
}

.border-left-bordeaux {
  border-left: 3px solid var(--accent-primary);
}

.border-left-cream {
  border-left: 3px solid var(--accent-secondary);
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

/* Display Utilities */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-accent {
  box-shadow: var(--shadow-accent);
}

/* Border Radius Utilities */
.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: var(--radius-full);
}


/* ========== css/utilities/_responsive.css ========== */
/* ============================================
   RESPONSIVE DESIGN
   ============================================
   
   Optimisation responsive pour tous les appareils
   
   ============================================ */

/* Tablette (< 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: var(--space-5);
  }

  nav {
    gap: var(--space-1);
  }

  nav a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  .logo {
    height: 105px;
  }

  .hero {
    padding: var(--space-6);
    gap: var(--space-5);
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .card,
  .card-accent,
  .card-highlight {
    padding: var(--space-5);
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .container {
    padding: var(--space-4);
  }

  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) 0;
  }

  header.scrolled {
    padding: var(--space-2) 0;
  }

  .logo {
    height: 90px;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 2px solid var(--accent-primary);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: var(--space-8) var(--space-4);
    gap: var(--space-2);
    z-index: 1000;
    transition: right var(--transition-smooth);
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  nav.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
  }

  nav a {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    text-align: left;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    font-size: var(--text-lg);
  }

  nav a:hover,
  nav a.active {
    background: var(--accent-primary);
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateX(-4px);
  }

  nav a::after {
    display: none;
  }

  .btn-primary,
  .btn-secondary,
  .cta {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-ghost {
    padding: var(--space-3) var(--space-4);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5);
    gap: var(--space-4);
  }

  .hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
  }

  .hero h2 {
    font-size: var(--text-3xl);
  }

  .hero h3 {
    font-size: var(--text-2xl);
  }

  .lead {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
  }

  .stats {
    gap: var(--space-3);
    margin-top: var(--space-4);
    width: 100%;
  }

  .stat {
    padding: var(--space-3) var(--space-4);
    min-width: 80px;
    flex: 1;
  }

  .stat strong {
    font-size: var(--text-xl);
  }

  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .card,
  .card-accent,
  .card-highlight {
    padding: var(--space-4);
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
  }

  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .hero aside {
    width: 100% !important;
  }

  .hero aside .card {
    padding: var(--space-4);
  }

  .card .btn-primary,
  .card .btn-secondary,
  .card .cta {
    width: 100%;
    justify-content: center;
  }

  form button {
    width: 100%;
    justify-content: center;
  }

  [style*="display:flex"] {
    flex-wrap: wrap !important;
  }
}

/* Très petit mobile (< 375px) */
@media (max-width: 375px) {
  .container {
    padding: var(--space-3);
  }

  .hero {
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero h2 {
    font-size: var(--text-2xl);
  }

  .stats {
    flex-direction: column;
    gap: var(--space-2);
  }

  .stat {
    width: 100%;
    min-width: auto;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }

  .card,
  .card-accent,
  .card-highlight {
    padding: var(--space-3);
  }

  .event {
    padding: var(--space-3);
  }

  .event-date {
    min-width: 60px;
    height: 60px;
  }

  .event-date-day {
    font-size: var(--text-xl);
  }
}


/* ========== css/utilities/_accessibility.css ========== */
/* ============================================
   ACCESSIBILITY
   ============================================
   
   Conformité WCAG 2.1 niveau AA
   
   ============================================ */

/* Focus Visible States */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-ghost:focus-visible,
.cta:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(112, 31, 40, 0.2);
}

a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  background: var(--glass-light);
  border-radius: var(--radius-sm);
}

nav a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  background: var(--glass-light);
  color: var(--accent-secondary);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(112, 31, 40, 0.2);
}

.card:focus-visible,
.card-accent:focus-visible,
.card-highlight:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(112, 31, 40, 0.2);
}

.event:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(112, 31, 40, 0.3), 0 0 0 6px rgba(112, 31, 40, 0.2);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 4px;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(112, 31, 40, 0.4), 0 0 0 6px rgba(112, 31, 40, 0.2);
}

.tag:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.logo:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 6px;
  transform: scale(1.05);
  filter: drop-shadow(0 6px 16px rgba(112, 31, 40, 0.6));
}

/* Keyboard Navigation Support */
.card[tabindex],
.card-accent[tabindex],
.card-highlight[tabindex],
.event[tabindex],
.gallery-item[tabindex] {
  cursor: pointer;
}

[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

/* Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: var(--accent-secondary);
  padding: var(--space-3) var(--space-5);
  text-decoration: none;
  font-weight: var(--font-semibold);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: var(--space-4);
  outline: 3px solid var(--accent-secondary);
  outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-ghost:hover,
  .cta:hover,
  .card:hover,
  .card-accent:hover,
  .card-highlight:hover,
  .event:hover,
  .gallery-item:hover,
  .logo:hover {
    transition: none !important;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-ghost:hover,
  .cta:hover {
    transform: none !important;
  }

  .card:hover,
  .card-accent:hover,
  .card-highlight:hover {
    transform: none !important;
  }

  .event:hover {
    transform: none !important;
  }

  .gallery-item:hover,
  .gallery-item:hover img {
    transform: none !important;
  }

  .logo:hover {
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {

  .btn-primary,
  .btn-secondary,
  .cta {
    border-width: 3px;
  }

  .card,
  .card-accent,
  .card-highlight {
    border-width: 2px;
  }

  *:focus-visible {
    outline-width: 3px;
    outline-offset: 2px;
  }

  .text-secondary,
  .lead,
  form label {
    color: var(--text-primary);
  }
}

/* ============================================
   RESPONSIVE - SECTIONS AFFICHES MERZOUGA 2026
   ============================================ */

/* Section affiche - Optimisation mobile */
@media (max-width: 768px) {

  /* Container affiche sur mobile */
  #affiche .card,
  #poster .card {
    padding: var(--space-4);
  }

  /* Image affiche - Optimisation tactile */
  img[src*="affiche"] {
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  }

  /* Boutons de téléchargement - Zone tactile optimisée */
  a[download*="Affiche"],
  a[download*="Poster"] {
    min-height: 44px !important;
    padding: var(--space-3) var(--space-4) !important;
    font-size: var(--text-base) !important;
  }

  /* Espacement vertical sur mobile */
  #affiche,
  #poster {
    margin-top: var(--space-4) !important;
  }

  /* Titre section affiche */
  #affiche h2,
  #poster h2 {
    font-size: var(--text-xl) !important;
    margin-bottom: var(--space-3) !important;
  }

}

/* Tablette - Optimisations intermédiaires */
@media (max-width: 1024px) and (min-width: 769px) {

  /* Container affiche sur tablette */
  div[style*="max-width: 400px"] {
    max-width: 350px !important;
  }

  /* Boutons sur tablette */
  a[download*="Affiche"],
  a[download*="Poster"] {
    padding: var(--space-3) var(--space-5) !important;
  }

}

/* Très petit mobile - Optimisations supplémentaires */
@media (max-width: 375px) {

  /* Container affiche très petit écran */
  div[style*="max-width: 400px"] {
    max-width: 100% !important;
    padding: 0 var(--space-2) !important;
  }

  /* Image affiche - Marges réduites */
  img[src*="affiche"] {
    border-radius: var(--radius-sm) !important;
  }

  /* Bouton téléchargement - Pleine largeur sur très petit écran */
  a[download*="Affiche"],
  a[download*="Poster"] {
    width: 100% !important;
    justify-content: center !important;
    margin-top: var(--space-3) !important;
  }

}

/* Mode paysage mobile - Optimisations spéciales */
@media (max-height: 500px) and (orientation: landscape) {

  /* Réduire les marges verticales en mode paysage */
  #affiche,
  #poster {
    margin-top: var(--space-2) !important;
  }

  /* Container plus compact */
  div[style*="max-width: 400px"] {
    max-width: 300px !important;
  }

}

/* Accessibilité - Préférences utilisateur */
@media (prefers-reduced-motion: reduce) {

  /* Désactiver les animations de survol pour les affiches */
  img[src*="affiche"] {
    transition: none !important;
  }

  img[src*="affiche"]:hover {
    transform: none !important;
  }

}

/* Contraste élevé - Améliorer la visibilité */
@media (prefers-contrast: high) {

  /* Augmenter le contraste des boutons de téléchargement */
  a[download*="Affiche"],
  a[download*="Poster"] {
    border: 2px solid var(--accent-secondary) !important;
    background-color: var(--accent-primary) !important;
  }

  /* Ombre plus marquée pour les affiches */
  img[src*="affiche"] {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
    border: 1px solid var(--border-medium) !important;
  }

}

/* Styles responsifs pour affiches Merzouga 2026 ajoutés */
/* ============================================
   GALERIE ENRICHIE - OPTIMISATIONS SPÉCIFIQUES
   ============================================ */

/* Bouton "Voir Plus" - Style amélioré */
#load-more-merzouga,
#load-more-merzouga-en {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#load-more-merzouga:hover,
#load-more-merzouga-en:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(112, 31, 40, 0.3);
}

/* Animation pour les photos qui apparaissent */
#more-merzouga-photos.gallery,
#more-merzouga-photos-en.gallery {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections de galerie - Espacement optimisé */
.card h2.underline-accent {
  margin-bottom: var(--space-4);
}

/* Galerie responsive - Améliorations pour les nouvelles photos */
@media (max-width: 768px) {

  /* Bouton "Voir Plus" sur mobile */
  #load-more-merzouga,
  #load-more-merzouga-en {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
  }

  /* Espacement des sections sur mobile */
  .card {
    margin-top: var(--space-4) !important;
  }

  /* Titre des sections sur mobile */
  .card h2 {
    font-size: var(--text-xl);
    text-align: center;
  }

}

/* Très petit mobile - Optimisations supplémentaires */
@media (max-width: 375px) {

  /* Bouton plus compact */
  #load-more-merzouga,
  #load-more-merzouga-en {
    padding: var(--space-3);
    font-size: var(--text-sm);
  }

}

/* Effet de survol amélioré pour les nouvelles photos */
.gallery-item img[src*="photos_club"] {
  transition: all 0.4s ease;
}

.gallery-item:hover img[src*="photos_club"] {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Indicateur de chargement pour les photos */
.gallery-item img[loading="lazy"] {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Amélioration de l'accessibilité pour les nouvelles photos */
.gallery-item[tabindex]:focus img[src*="photos_club"] {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 4px;
}

/* Style pour les sections thématiques */
.card:nth-child(odd) {
  background: var(--gradient-card);
}

.card:nth-child(even) {
  background: linear-gradient(135deg, rgba(112, 31, 40, 0.02) 0%, rgba(112, 31, 40, 0.01) 100%);
}

/* Optimisation pour les préférences utilisateur */
@media (prefers-reduced-motion: reduce) {

  #more-merzouga-photos.gallery,
  #more-merzouga-photos-en.gallery {
    animation: none;
  }

  .gallery-item img[src*="photos_club"] {
    transition: none;
  }

  #load-more-merzouga,
  #load-more-merzouga-en {
    transition: none;
  }

}

/* Contraste élevé pour la galerie */
@media (prefers-contrast: high) {

  .gallery-item img[src*="photos_club"] {
    border: 2px solid var(--accent-secondary);
  }

  #load-more-merzouga,
  #load-more-merzouga-en {
    border: 2px solid var(--accent-secondary) !important;
    background-color: var(--accent-primary) !important;
  }

}

/* Styles pour la galerie enrichie - Terminé */

/* ============================================
   AMÉLIORATIONS GALERIE - CHARTE GRAPHIQUE MODERNE
   ============================================ */

/* Animation d'apparition pour les statistiques */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet de survol amélioré pour les cartes de statistiques */
.card-accent:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(112, 31, 40, 0.2);
}

/* Animation pour les badges de section */
.event-badge {
  animation: fadeInScale 0.6s ease-out;
  transition: all 0.3s ease;
}

.event-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(112, 31, 40, 0.3);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Effet de parallaxe subtil pour les sections */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Amélioration de l'icône Instagram dans la section Follow */
.card-highlight .btn-primary[style*="instagram"] {
  position: relative;
  overflow: hidden;
}

.card-highlight .btn-primary[style*="instagram"]::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.6s ease;
}

.card-highlight .btn-primary[style*="instagram"]:hover::before {
  left: 100%;
}

/* Effet de grille dynamique pour la galerie */
.gallery {
  position: relative;
}

.gallery::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg,
      transparent 25%,
      rgba(112, 31, 40, 0.05) 25%,
      rgba(112, 31, 40, 0.05) 50%,
      transparent 50%,
      transparent 75%,
      rgba(112, 31, 40, 0.05) 75%);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

.gallery:hover::before {
  opacity: 1;
}

/* Amélioration des statistiques avec animation au scroll */
.card-accent[style*="text-align: center"] {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out forwards;
}

.card-accent[style*="text-align: center"]:nth-child(1) {
  animation-delay: 0.1s;
}

.card-accent[style*="text-align: center"]:nth-child(2) {
  animation-delay: 0.2s;
}

.card-accent[style*="text-align: center"]:nth-child(3) {
  animation-delay: 0.3s;
}

.card-accent[style*="text-align: center"]:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Effet de focus amélioré pour l'accessibilité */
.gallery-item:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 6px;
  border-radius: var(--radius-lg);
}

/* Responsive - Améliorations mobiles pour la galerie */
@media (max-width: 768px) {

  /* Statistiques empilées sur mobile */
  .card-accent[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-3) !important;
  }

  /* Badges plus compacts sur mobile */
  .event-badge {
    font-size: 0.75rem !important;
    padding: var(--space-1) var(--space-2) !important;
  }

  /* Réduction de l'espacement sur mobile */
  .card {
    margin-top: var(--space-4) !important;
  }
}

/* Très petit mobile - Optimisations supplémentaires */
@media (max-width: 375px) {

  /* Statistiques hero plus compactes */
  .hero .stats {
    gap: var(--space-2) !important;
  }

  .hero .stat {
    min-width: 60px !important;
  }

  .hero .stat strong {
    font-size: 1.5rem !important;
  }
}

/* Mode sombre - Améliorations pour les nouvelles sections */
@media (prefers-color-scheme: dark) {

  .card-accent {
    background: rgba(112, 31, 40, 0.1);
    border: 1px solid rgba(112, 31, 40, 0.3);
  }

  .event-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

/* Réduction de mouvement pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {

  .card-accent,
  .event-badge,
  .gallery::before,
  .card {
    animation: none !important;
    transition: none !important;
  }

  .card:hover,
  .card-accent:hover,
  .event-badge:hover {
    transform: none !important;
  }
}

/* ===== Accessibility Enhancements for Gallery ===== */

/* Focus management for gallery items */
.gallery-item:focus {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 4px;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 232, 208, 0.3);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 4px;
}

/* Screen reader only text for layout changes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Announce layout changes to screen readers */
.gallery-grid[role="grid"]::before {
  content: attr(aria-label);
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gallery-item {
    border: 2px solid var(--text-primary);
  }

  .gallery-item:focus {
    outline: 4px solid var(--accent-secondary);
    outline-offset: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .gallery-item {
    transition: none;
  }

  .gallery-item:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }

  .gallery-item:focus {
    transform: none;
  }
}

/* Keyboard navigation improvements */
.gallery-item[role="gridcell"] {
  position: relative;
}

.gallery-item[role="gridcell"]:focus::after {
  content: "Appuyez sur Entrée pour agrandir";
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-align: center;
  pointer-events: none;
}

/* English version */
[lang="en"] .gallery-item[role="gridcell"]:focus::after {
  content: "Press Enter to enlarge";
}

/* ===== Performance Optimizations for Gallery ===== */

/* Prevent layout shifts during responsive transitions */
.gallery-grid {
  /* Use contain for better performance */
  contain: layout style;
  /* Optimize for animations */
  will-change: grid-template-columns, gap;
}

/* Optimize gallery items for performance */
.gallery-item {
  /* Prevent layout shifts */
  contain: layout style paint;
  /* Optimize transforms */
  transform: translateZ(0);
  /* Improve rendering performance */
  backface-visibility: hidden;
}

/* Optimize images for performance */
.gallery-item img {
  /* Prevent layout shifts */
  contain: layout;
  /* Optimize for transforms */
  will-change: transform;
  /* Improve image rendering */
  image-rendering: optimizeQuality;
}

/* Reduce animations on slower devices */
@media (prefers-reduced-motion: reduce) {
  .gallery-grid {
    will-change: auto;
  }

  .gallery-item {
    will-change: auto;
    transition: none;
  }

  .gallery-item img {
    will-change: auto;
    transition: none;
  }
}

/* Optimize for high refresh rate displays */
@media (min-resolution: 120dpi) {
  .gallery-item {
    /* Smoother animations on high-DPI displays */
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
}

/* Memory optimization for large galleries */
.gallery-item img[loading="lazy"] {
  /* Optimize memory usage for lazy-loaded images */
  content-visibility: auto;
  contain-intrinsic-size: 300px 225px;
  /* 4:3 aspect ratio fallback */
}

/* Optimize for touch devices */
@media (hover: none) and (pointer: coarse) {
  .gallery-item:hover {
    /* Reduce hover effects on touch devices for better performance */
    transform: translateY(-1px);
  }

  .gallery-item:hover img {
    transform: scale(1.02);
  }
}

/* Critical rendering path optimization */
.gallery-grid[role="grid"] {
  /* Prioritize grid rendering */
  content-visibility: auto;
}

/* Optimize for print media */
@media print {
  .gallery-grid {
    /* Simplify layout for printing */
    display: block;
    column-count: 2;
    column-gap: 1rem;
    break-inside: avoid;
  }

  .gallery-item {
    /* Optimize for print */
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 1rem;
    transform: none;
    transition: none;
  }

  .gallery-item:hover {
    transform: none;
  }

  .gallery-item img {
    transform: none;
    transition: none;
  }
}

/* FORCE fix for lightbox close button */
.lightbox-close {
  top: 10px !important;
  right: 10px !important;
  opacity: 1 !important;
  display: flex !important;
  visibility: visible !important;
  z-index: 99999 !important;
}