/* ===================================
   Musée de la 1ère Armée Française
   TYPOGRAPHIE RESPONSIVE OPTIMISÉE
   Développé par Hélène
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==================
   VARIABLES AMÉLIORÉES
   ================== */
:root {
  /* Couleurs sophistiquées */
  --primary-dark: #1a1a1a;
  --primary-light: #2a2a2a;
  --accent-gold: #c9a96e;
  --accent-gold-light: #d4b579;
  --french-blue: #2c5aa0;
  --french-red: #c1272d;

  /* Couleurs texte optimisées pour le contraste */
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;    /* Plus foncé pour meilleur contraste */
  --text-light: #666666;        /* Plus foncé qu'avant */
  --text-white: #ffffff;
  --border-light: #e5e5e5;
  --border-lighter: #f5f5f5;
  --background-light: #fafafa;
  --background-white: #ffffff;

  --shadow-subtle: 0 2px 20px rgba(0, 0, 0, 0.05);
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 10px 50px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 3rem;

  /* Typographie responsive avec fluid typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Tailles de texte plus modérées */
  --text-xs: clamp(0.75rem, 0.3vw + 0.7rem, 0.875rem);      /* 12-14px */
  --text-sm: clamp(0.875rem, 0.2vw + 0.85rem, 0.95rem);     /* 14-15px */
  --text-base: clamp(1rem, 0.2vw + 0.95rem, 1.05rem);       /* 16-17px */
  --text-lg: clamp(1.05rem, 0.3vw + 1rem, 1.125rem);        /* 17-18px */
  --text-xl: clamp(1.125rem, 0.5vw + 1.05rem, 1.25rem);     /* 18-20px */
  --text-2xl: clamp(1.25rem, 1vw + 1.125rem, 1.5rem);       /* 20-24px */
  --text-3xl: clamp(1.5rem, 2vw + 1.25rem, 2rem);           /* 24-32px */
  --text-4xl: clamp(2rem, 3vw + 1.5rem, 2.75rem);           /* 32-44px */

  /* Line-heights optimisés */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;
}

/* Reset amélioré */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Font-size plus modérée */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6; /* Moins espacé */
  color: var(--text-primary);
  background-color: var(--background-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==================
   TYPOGRAPHIE AMÉLIORÉE
   ================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--leading-relaxed);
}

/* Texte de contenu principal plus lisible */
.content-text {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: var(--text-secondary);
}

/* Accessibilité */
.skip-link {
  position: absolute;
  top: -40px;
  left: var(--spacing-sm);
  background: var(--primary-dark);
  color: var(--text-white);
  padding: var(--spacing-xs) var(--spacing-sm);
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 500;
  font-size: var(--text-base);
  transition: var(--transition-fast);
}

.skip-link:focus {
  top: var(--spacing-sm);
}

*:focus {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ==================
   HEADER SOPHISTIQUÉ
   ================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-lighter);
  z-index: 1000;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-subtle);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-xl);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  color: inherit;
}

.logo-image {
  width: clamp(40px, 4vw, 50px);
  height: clamp(40px, 4vw, 50px);
  object-fit: contain;
  flex-shrink: 0; /* Empêche la compression */
}

.logo-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-content .subtitle {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  margin: 0;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  padding: var(--spacing-xs) 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}

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

.nav-link:hover,
.nav-link:focus {
  color: var(--accent-gold);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--spacing-xs);
}

/* ==================
   HERO SECTION ÉLÉGANT
   ================== */

.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f5f5f5 100%);
  position: relative;
  overflow: hidden;
  padding-top: 100px; /* Plus d'espace pour éviter le chevauchement */
  padding-bottom: var(--spacing-3xl); /* Espace en bas pour séparer des sections suivantes */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10%;
  width: 40%;
  height: 120%;
  background: linear-gradient(135deg,
    rgba(193, 39, 45, 0.03) 0%,
    rgba(44, 90, 160, 0.05) 50%,
    rgba(201, 169, 110, 0.04) 100%);
  transform: rotate(-15deg);
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--primary-light);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg); /* Plus d'espace */
  margin-top: var(--spacing-md); /* Espace du haut aussi */
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  line-height: var(--leading-snug);
}

.hero-date {
  font-size: var(--text-lg);
  color: var(--french-red);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--spacing-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--primary-light);
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: 2px;
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  cursor: pointer;
  min-height: 48px; /* Taille minimum tactile */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-light);
  padding: var(--spacing-md) var(--spacing-xl);
  border: 2px solid var(--accent-gold);
  border-radius: 2px;
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: transparent;
  color: var(--primary-light);
  transform: translateY(-2px);
  border: 2px solid var(--accent-gold-light);
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  position: relative;
  z-index: 2;
}

/* ==================
   SECTIONS CONTENT
   ================== */

.section {
  padding: var(--spacing-3xl) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.container-narrow {
  max-width: 1200px; /* MÊME TAILLE que container */
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-badge {
  display: inline-block;
  background: var(--background-light);
  color: var(--text-secondary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 65ch; /* Largeur optimale pour la lecture */
  margin: 0 auto;
  line-height: var(--leading-loose);
  text-align: left; /* Améliore la lisibilité */
}

/* ==================
   STORY SECTION AMÉLIORÉE
   ================== */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.story-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: var(--leading-tight);
}

.story-text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--spacing-md);
  max-width: 60ch;
}

.story-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.highlight-card {
  background: var(--primary-dark);
  color: var(--text-white);
  padding: var(--spacing-2xl);
  border-radius: 8px;
  text-align: center;
  margin: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--french-blue), var(--accent-gold), var(--french-red));
}

.highlight-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--accent-gold);
  line-height: var(--leading-snug);
}

.highlight-card p {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.95);
  max-width: 70ch;
  margin: 0 auto;
}

/* ==================
   GALLERY MODERNE AMÉLIORÉE
   ================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  background: var(--background-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.gallery-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-content {
  padding: var(--spacing-xl);
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: var(--leading-snug);
}

.gallery-description {
  font-size: var(--text-base); /* Plus grand qu'avant */
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ==================
   CTA SECTION AMÉLIORÉE
   ================== */

.cta-section {
  background: var(--primary-dark);
  color: var(--text-white);
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg,
    var(--primary-dark) 0%,
    var(--primary-light) 50%,
    var(--primary-dark) 100%);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--text-white);
  line-height: var(--leading-tight);
}

.cta-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.92); /* Meilleur contraste */
  margin-bottom: var(--spacing-xl);
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-loose);
}

.cta-questions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.cta-question {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  text-align: center;
}

.cta-question:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* ==================
   FOOTER ÉLÉGANT AMÉLIORÉ
   ================== */

.site-footer {
  background: var(--background-light);
  border-top: 1px solid var(--border-light);
  padding: var(--spacing-3xl) 0 var(--spacing-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  line-height: var(--leading-snug);
}

.footer-section p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--spacing-md);
  font-size: var(--text-base);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: var(--spacing-xs) 0;
  transition: var(--transition-fast);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent-gold);
  padding-left: var(--spacing-xs);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: var(--text-light);
  font-size: var(--text-base);
}

/* ==================
   RESPONSIVE DESIGN AMÉLIORÉ
   ================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .section-description {
    text-align: center;
  }

  .hero {
    min-height: 70vh;
  }

  /* Fix pour éviter les chevauchements sur iPad */
  .nav-container {
    padding: var(--spacing-sm) var(--spacing-lg);
  }

  .hero-actions {
    margin-top: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-white);
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
  }

  .main-nav.show {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-container {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .hero {
    min-height: 60vh;
    text-align: center;
  }

  .hero-visual {
    height: 280px;
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .container,
  .container-narrow {
    padding: 0 var(--spacing-lg);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .cta-questions {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  /* FORMULAIRE DE CONTACT EN COLONNE SUR MOBILE */
  .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: var(--spacing-xl) !important;
  }

  .contact-form-section {
    order: 2; /* Le formulaire passe en bas */
  }

  .contact-info-section {
    order: 1; /* Les infos passent en haut */
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .container,
  .container-narrow {
    padding: 0 var(--spacing-md);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .gallery-content {
    padding: var(--spacing-lg);
  }

  .highlight-card {
    padding: var(--spacing-xl);
  }
}

/* ==================
   AMÉLIORATION SPÉCIFIQUE POUR FORMULAIRES
   ================== */

/* Formulaires plus lisibles */
label {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  line-height: var(--leading-normal);
  margin-bottom: var(--spacing-xs);
  display: block;
}

input, textarea, select {
  font-size: var(--text-base) !important;
  line-height: var(--leading-normal);
  padding: var(--spacing-md);
  min-height: 48px; /* Taille tactile minimum */
}

.form-help, .form-help-improved {
  font-size: var(--text-sm) !important;
  color: var(--text-secondary) !important;
  line-height: var(--leading-relaxed);
}

/* Messages d'erreur plus visibles */
[role="alert"] {
  font-size: var(--text-base);
  font-weight: 500;
  line-height: var(--leading-normal);
}

/* ==================
   AMÉLIORATIONS POUR L'ACCESSIBILITÉ
   ================== */

/* Meilleurs contrastes pour les liens */
a {
  color: var(--french-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--accent-gold);
  text-decoration-thickness: 2px;
}

/* Focus plus visible */
*:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Amélioration pour les utilisateurs de clavier */
.nav-link:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 4px;
}

/* ==================
   CLASSES UTILITAIRES RESPONSIVE
   ================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Tailles de texte spécifiques */
.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.text-large {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
}

.text-readable {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  max-width: 65ch;
  color: var(--text-secondary);
}

/* Espacement optimal pour la lecture */
.content-spacing p:not(:last-child) {
  margin-bottom: var(--spacing-lg);
}

/* Amélioration pour les listes */
ul, ol {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* ==================
   PRÉFÉRENCES UTILISATEUR AMÉLIORÉES
   ================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --text-light: #333333;
    --border-light: #000000;
    --accent-gold: #b8860b; /* Or plus foncé pour plus de contraste */
  }

  .hero-description,
  .section-description,
  .story-text,
  .cta-description {
    color: var(--text-primary);
  }
}

/* Mode sombre si l'utilisateur le préfère */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-light: #b0b0b0;
    --background-white: #1a1a1a;
    --background-light: #2a2a2a;
    --border-light: #404040;
    --border-lighter: #333333;
  }

  .site-header {
    background: rgba(26, 26, 26, 0.95);
  }

  .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  }
}

/* ==================
   PRINT STYLES - TYPOGRAPHIE OPTIMISÉE
   ================== */

@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  h1 { font-size: 18pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
  h4 { font-size: 13pt; }
  h5 { font-size: 12pt; }
  h6 { font-size: 11pt; }

  p {
    font-size: 11pt;
    line-height: 1.6;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }
}

/* ==================
   CLASSES POUR CONTENU SPÉCIFIQUE DU MUSÉE
   ================== */

/* Classe pour les dates historiques */
.historical-date {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--french-red);
  font-variant-numeric: oldstyle-nums;
}

/* Classe pour les noms propres/batailles */
.battle-name {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

/* Classe pour les témoignages */
.testimonial {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  font-style: italic;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent-gold);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

/* Classe pour les informations importantes */
.important-info {
  background: rgba(201, 169, 110, 0.1);
  border: 2px solid var(--accent-gold);
  border-radius: 8px;
  padding: var(--spacing-lg);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  margin: var(--spacing-lg) 0;
}

.important-info h3 {
  color: var(--accent-gold);
  margin-bottom: var(--spacing-md);
}

.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;
}
