/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0d2b7b;
  --primary-dark: #0a1f5c;
  --secondary: #f4c542;
  --accent: #e63946;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --base-size: 1rem;
  --scale: 1.25;
  --h1: calc(var(--h2) * var(--scale));
  --h2: calc(var(--h3) * var(--scale));
  --h3: calc(var(--h4) * var(--scale));
  --h4: calc(var(--h5) * var(--scale));
  --h5: calc(var(--h6) * var(--scale));
  --h6: var(--base-size);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem; /* Augmentation pour lisibilité */
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

img, video {
  max-width: 100%;
  height: auto;
}

button, .btn {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
  min-height: 48px; /* Pour le tactile */
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
}
.btn-secondary:hover {
  background-color: #e0b02b;
  transform: translateY(-2px);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.text-center { text-align: center; }
.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;
}

/* ===== HEADER FIXE ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 0.3rem 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.logo img { height: 60px; width: auto; }

/* Navigation desktop */
.main-nav { display: flex; }
.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}
.nav-list a {
  color: var(--dark);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-list a:hover::after,
.nav-list a.active::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a { display: flex; align-items: center; gap: 0.3rem; }
.dropdown-icon { width: 12px; transition: transform 0.3s; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  padding: var(--space-sm) 0;
  list-style: none;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown:hover .dropdown-icon { transform: rotate(180deg); }
.dropdown-menu a { display: block; padding: 0.8rem var(--space-md); }
.dropdown-menu a:hover { background: var(--light); }

/* Bouton connexion & langue */
.user-actions { display: flex; align-items: center; gap: 1rem; }
.btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}
.language-selector select {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--light-gray);
}

/* Menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1100;
}
.hamburger, .hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  left: 5px;
  transition: var(--transition);
}
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .hamburger { background-color: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); top: 0; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  margin-top: var(--header-height); /* Correction */
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  color: white;
  z-index: 10;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero h1 { font-size: 3.5rem; margin-bottom: var(--space-sm); }
.subtitle { font-size: 1.5rem; margin-bottom: var(--space-md); }
.hero-subtitle { font-size: 1.2rem; margin-bottom: var(--space-md); }
.cta-group { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ===== SECTIONS ===== */
#main-content section { padding: var(--space-xl) 0; }
#main-content section:nth-child(even) { background-color: var(--light); }

.verse-section {
  background-color: var(--primary);
  color: white;
  text-align: center;
}
.verse-text { font-size: 1.25rem; font-style: italic; }
.verse-text footer { margin-top: var(--space-sm); font-weight: 500; }

.welcome-section .container {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}
.welcome-content { flex: 1; }
.welcome-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.signature { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial-content { padding: var(--space-md); font-style: italic; position: relative; }
.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 3rem;
  color: var(--light-gray);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--light);
}
.testimonial-author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
}
.stat-value { font-size: 3rem; font-weight: 700; color: var(--primary); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.event-card {
  display: flex;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.event-card:hover { transform: translateY(-5px); }
.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: var(--space-md);
  min-width: 90px;
}
.event-date .day { font-size: 2rem; font-weight: 700; }
.event-date .month { font-size: 1.1rem; text-transform: uppercase; }
.event-content { padding: var(--space-md); flex: 1; }
.event-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-md);
  background: var(--light);
  color: var(--primary);
}
.event-link:hover { background: var(--primary); color: white; }

.contact-section .container {
  display: flex;
  gap: var(--space-lg);
}
.contact-content, .contact-form { flex: 1; }
.contact-methods { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-md); }
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--light);
  border-radius: var(--radius-md);
}
.form-group { margin-bottom: var(--space-sm); }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark);
  color: white;
  padding: var(--space-xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.footer-brand img { margin-bottom: var(--space-sm); }
.footer p { color: rgba(255,255,255,0.7); margin-bottom: var(--space-md); }
.social-links { display: flex; gap: var(--space-sm); }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-links h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-links h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: white; padding-left: 5px; }
.newsletter-form {
  display: flex;
  margin-top: var(--space-sm);
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.newsletter-form button {
  background: var(--secondary);
  color: var(--dark);
  padding: 0 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
}
.legal-links { display: flex; gap: var(--space-md); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s;
    padding: var(--space-lg);
    overflow-y: auto;
  }
  .main-nav.active { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-list li { width: 100%; border-bottom: 1px solid var(--light-gray); }
  .nav-list a { display: block; padding: 1rem 0; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding: 0;
  }
  .dropdown.active .dropdown-menu { max-height: 500px; padding: var(--space-sm) 0; }
  .user-actions { margin-top: var(--space-md); justify-content: center; }
  .welcome-section .container,
  .contact-section .container { flex-direction: column; }
  .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .cta-group { flex-direction: column; }
  .event-card { flex-direction: column; }
  .event-date { flex-direction: row; justify-content: flex-start; gap: var(--space-sm); }
  .event-link { padding: var(--space-sm); }
}
@media (max-width: 576px) {
  .hero h1 { font-size: 2rem; }
  .subtitle { font-size: 1.25rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-links { justify-content: center; }
}