/* Reset and base styles */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #f5f1eb;
  color: #2d4a3e;
  line-height: 1.5;
  font-size: 16px;
}

/* Header */
header {
  background: linear-gradient(135deg, #4a6741 0%, #7a9c6b 100%);
  color: #fff;
  padding: 1.5rem 0 1rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(74,103,65,0.2);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.logo {
  height: 80px;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  padding: 3px;
  background: #fef5d9;
}

header h1 {
  margin: 0 0 0.75rem 0;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: 'Noto Serif JP', serif;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  color: #4a6741;
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Main content */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Hero Section */
.hero-section {
  background: #f0e8d8;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(74,103,65,0.08);
  text-align: center;
  position: relative;
  border: 1px solid #e8f5e8;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%234a6741" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #2d4a3e;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #5a7a5a;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #4a6741 0%, #7a9c6b 100%);
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(74,103,65,0.2);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 44px;
}

.cta-button::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.4s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74,103,65,0.3);
}

.cta-button.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Objectifs Section */
.objectifs-section {
  margin-bottom: 2rem;
}

.objectifs-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #2d4a3e;
  margin-bottom: 1.5rem;
}

.objectifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.objectif-card {
  background: #f0e8d8;
  padding: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(74,103,65,0.08);
  border: 1px solid #e8f5e8;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 0.25rem;
  min-height: 44px;
}

.objectif-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4a6741, #7a9c6b);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.objectif-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74,103,65,0.12);
  border-color: #4a6741;
  z-index: 1;
}

.objectif-card:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(74,103,65,0.15);
}

.objectif-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.objectif-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d4a3e;
  margin: 0;
  text-align: center;
}

/* Disciplines Section */
.disciplines-section {
  margin-bottom: 2rem;
}

.disciplines-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #2d4a3e;
  margin-bottom: 1.5rem;
}

.discipline-category {
  margin-bottom: 2rem;
}

.discipline-category h3 {
  font-size: 1.3rem;
  color: #4a6741;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4a6741;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.discipline-card {
  background: #f0e8d8;
  padding: 1.25rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(74,103,65,0.08);
  text-decoration: none;
  color: inherit;
  border: 1px solid #e8f5e8;
  min-height: 44px;
  min-width: 44px;
}

.discipline-card.featured {
  background: linear-gradient(135deg, #f0e8d8 0%, #e8dcc8 100%);
  border-color: #4a6741;
  box-shadow: 0 2px 8px rgba(74,103,65,0.15);
}

.discipline-card.selected {
  background: linear-gradient(135deg, #f0e8d8 0%, #e8f0e8 100%);
  border-color: #7a9c6b;
  box-shadow: 0 2px 8px rgba(122,156,107,0.2);
  transform: scale(1.02);
}

.discipline-card.highlighted {
  background: linear-gradient(135deg, #f0e8d8 0%, #e8dcc8 100%);
  border-color: #4a6741;
  box-shadow: 0 4px 12px rgba(74,103,65,0.2);
  transform: scale(1.05);
}

.discipline-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(74,103,65,0.12); }

.discipline-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.discipline-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d4a3e;
  margin: 0 0 0.5rem 0;
}

.discipline-card p {
  font-size: 0.85rem;
  color: #5a7a5a;
  margin: 0;
}

/* Aikido Focus Section */
.aikido-focus-section {
  background: #f0e8d8;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(74,103,65,0.08);
  border: 1px solid #e8f5e8;
}

.aikido-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.aikido-text h2 {
  font-size: 1.8rem;
  color: #2d4a3e;
  margin-bottom: 0.75rem;
}

.aikido-text p {
  font-size: 1rem;
  color: #4a6741;
  margin-bottom: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-item {
  background: #f5f1eb;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(74,103,65,0.08);
  border: 1px solid #e8f5e8;
}

.info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d4a3e;
  margin-bottom: 0.5rem;
}

.info-item p, .info-item ul {
  color: #4a6741;
  margin: 0;
  font-size: 0.9rem;
}

.info-item ul {
  list-style: none;
  padding: 0;
}

.info-item li {
  padding: 0.2rem 0;
  border-bottom: 1px solid #e8f5e8;
}

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

.aikido-actions {
  text-align: center;
}

.equipe-section {
  background: #f5f1eb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  box-shadow: 0 1px 4px rgba(74,103,65,0.08);
  border: 1px solid #e8f5e8;
}

.equipe-section h3 {
  font-size: 1.2rem;
  color: #2d4a3e;
  margin-bottom: 0.75rem;
}

.equipe-section p {
  color: #4a6741;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.external-link {
  color: #4a6741;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.external-link:hover {
  color: #7a9c6b;
}



/* Essai Section */
.essai-section {
  background: linear-gradient(135deg, #4a6741 0%, #7a9c6b 100%);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: #fff;
  box-shadow: 0 2px 12px rgba(74,103,65,0.2);
}

.essai-content h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.essai-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  background: rgba(255,255,255,0.15);
  padding: 1.25rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.social-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.social-link:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 0;
  background: #2d4a3e;
  color: #fff;
  margin-top: 2rem;
}

footer p {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1, .hero-section h1 { font-size: 1.8rem; }
  
  nav ul { flex-direction: column; gap: 0.4rem; }
  nav a { min-height: 48px; padding: 0.8rem 1.2rem; }
  
  .hero-subtitle { font-size: 1rem; }
  
  .objectifs-grid, .info-grid, .contact-info { grid-template-columns: 1fr; }
  .objectifs-grid { gap: 1rem; }
  
  .discipline-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  
  main { padding: 1rem; }
  
  .hero-section, .aikido-focus-section, .essai-section { padding: 1.5rem 1rem; }
  
  /* Optimize for mobile performance */
  .cta-button, .objectif-card, .discipline-card { -webkit-tap-highlight-color: rgba(74,103,65,0.1); }
  
  /* Reduce animations on mobile for better performance */
  .cta-button:hover, .objectif-card:hover, .discipline-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(74,103,65,0.08);
  }
  
  /* Simplify gradients on mobile */
  header {
    background: #4a6741;
  }
  
  .essai-section {
    background: #4a6741;
  }
  
  /* Reduce backdrop-filter usage on mobile */
  nav a, .contact-item {
    backdrop-filter: none;
    background: rgba(255,255,255,0.2);
  }
}

@media (max-width: 480px) {
  header { padding: 1.25rem 0 0.75rem 0; }
  .logo { height: 70px; }
  header h1, .hero-section h1 { font-size: 1.6rem; }
  
  .cta-button { padding: 0.7rem 1.25rem; font-size: 0.95rem; }
  .cta-button.large { padding: 0.9rem 1.75rem; font-size: 1rem; }
}

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

/* Mobile-specific performance optimizations */
@media (max-width: 768px) {
  /* Reduce paint complexity */
  * {
    will-change: auto;
  }
  
  /* Optimize for mobile rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Reduce GPU usage */
  .cta-button::before,
  .objectif-card::before,
  .discipline-card::before {
    display: none;
  }
}

/* Print styles */
@media print {
  .cta-button, nav, .objectif-card:hover, .discipline-card:hover {
    box-shadow: none !important;
    transform: none !important;
  }
} 