/*
Theme Name: Réserve Militaire
Template: twentytwentyfive
Author: OpenClaw
Description: Thème enfant personnalisé pour le réseau des associations de la réserve militaire
Version: 1.0
*/

/* ====================
   PALETTE DE COULEURS
   ==================== */

:root {
  --reserve-primary: #1E3A5F;      /* Bleu marine */
  --reserve-secondary: #C41E3A;     /* Rouge ruban */
  --reserve-accent: #D4AF37;        /* Or médailles */
  --reserve-dark: #1a1a2e;          /* Noir profond */
  --reserve-light: #f5f5f5;         /* Gris clair */
  --reserve-white: #ffffff;
  --reserve-text: #333333;
}

/* ====================
   BASE
   ==================== */

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--reserve-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--reserve-primary);
}

/* ====================
   HEADER
   ==================== */

.site-header {
  background: linear-gradient(135deg, var(--reserve-primary) 0%, var(--reserve-dark) 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header a {
  color: var(--reserve-white) !important;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
}

/* ====================
   HERO SECTION
   ==================== */

.hero-section {
  background: linear-gradient(135deg, var(--reserve-primary) 0%, var(--reserve-dark) 100%);
  color: var(--reserve-white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/hero-pattern.svg') repeat;
  opacity: 0.1;
}

.hero-section h1 {
  color: var(--reserve-white);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section .subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--reserve-secondary);
  color: var(--reserve-white);
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--reserve-white);
  color: var(--reserve-white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--reserve-white);
  color: var(--reserve-white);
}

.btn-secondary:hover {
  background: var(--reserve-white);
  color: var(--reserve-primary);
}

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

.section {
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--reserve-secondary), var(--reserve-accent));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ====================
   MISSIONS
   ==================== */

.missions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mission-card {
  background: var(--reserve-white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mission-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.mission-card h3 {
  margin-bottom: 1rem;
  color: var(--reserve-primary);
}

/* ====================
   ANNUAIRE ASSOCIATIONS
   ==================== */

.associations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.association-card {
  background: var(--reserve-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.association-card:hover {
  transform: translateY(-5px);
}

.association-card-header {
  background: var(--reserve-primary);
  color: var(--reserve-white);
  padding: 1.5rem;
}

.association-card-header h3 {
  color: var(--reserve-white);
  margin: 0;
  font-size: 1.25rem;
}

.association-card-body {
  padding: 1.5rem;
}

.association-card-body p {
  margin-bottom: 1rem;
}

.association-tag {
  display: inline-block;
  background: var(--reserve-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--reserve-text);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ====================
   CHIFFRES CLÉS
   ==================== */

.stats-section {
  background: var(--reserve-primary);
  color: var(--reserve-white);
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--reserve-accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ====================
   TÉMOIGNAGES
   ==================== */

.testimonials-section {
  background: var(--reserve-light);
  padding: 4rem 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--reserve-white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--reserve-secondary);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 20px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--reserve-primary);
}

.testimonial-role {
  color: #666;
  font-size: 0.9rem;
}

/* ====================
   NEWSLETTER
   ==================== */

.newsletter-section {
  background: linear-gradient(135deg, var(--reserve-secondary) 0%, var(--reserve-accent) 100%);
  color: var(--reserve-white);
  padding: 4rem 2rem;
  text-align: center;
}

.newsletter-section h2 {
  color: var(--reserve-white);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 2rem auto 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  background: var(--reserve-dark);
  color: var(--reserve-white);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--reserve-primary);
}

/* ====================
   FOOTER
   ==================== */

.site-footer {
  background: var(--reserve-dark);
  color: var(--reserve-white);
  padding: 3rem 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-column h3 {
  color: var(--reserve-accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--reserve-white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-column a:hover {
  opacity: 1;
  color: var(--reserve-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ====================
   ADAPTATIONS MULTISITE
   ==================== */

/* Site principal - Réseau */
.site-network .hero-section {
  background: linear-gradient(135deg, var(--reserve-primary) 0%, var(--reserve-dark) 100%);
}

/* Site AORX - Régional */
.site-aorx .hero-section {
  background: linear-gradient(135deg, #2C5282 0%, #1E3A5F 100%);
}

.site-aorx .btn-primary {
  background: #C41E3A;
}

/* Site ANRX - National */
.site-anrx .hero-section {
  background: linear-gradient(135deg, #1a365d 0%, #0f2744 100%);
}

.site-anrx .btn-primary {
  background: #B91E1E;
}

/* ====================
   RESPONSIVE
   ==================== */

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .subtitle {
    font-size: 1rem;
  }
  
  .section {
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .missions-grid,
  .associations-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ====================
   ACCESSIBILITÉ
   ==================== */

:focus {
  outline: 2px solid var(--reserve-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--reserve-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 6px;
}
