/* Reset de base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  scroll-behavior: smooth;
}

/* Conteneur central pour limiter la largeur du contenu */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header (En-tête du site) */
.header {
  background: #fff;
  border-bottom: 3px solid #5ab4e8;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #5ab4e8;
}

.logo img {
  height: auto;
}

/* Navigation */
.navbar .nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.navbar .nav-list li a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.navbar .nav-list li a:hover {
  background: #5ab4e8;
  color: #fff;
}

.navbar .nav-list li a.active {
  font-weight: 600;
  color: #5ab4e8;
  background: rgba(90, 180, 232, 0.1);
}

/* Menu hamburger pour mobile */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  background: #5ab4e8;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-toggle-label:hover {
  background: #48a0d6;
}

/* Styles spécifiques pour les écrans étroits */
@media (max-width: 768px) {
  .navbar .nav-list {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-top: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .navbar .nav-list li {
    margin: 0;
    text-align: center;
  }

  .navbar .nav-list li a {
    display: block;
    border-radius: 0;
    padding: 1rem;
  }

  .nav-toggle-label {
    display: block;
  }

  #nav-toggle:checked ~ nav .nav-list {
    display: flex;
  }

  .logo span {
    display: none;
  }
}

/* Section d'accueil (bandeau hero) */
.hero {
  background: linear-gradient(135deg, #5ab4e8 0%, #48a0d6 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::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 20"><defs><pattern id="wave" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0 10 Q25 0 50 10 T100 10 V20 H0 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="20" fill="url(%23wave)"/></svg>') repeat-x;
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: #fff;
  color: #5ab4e8;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Sections génériques */
section {
  padding: 3rem 0;
}

section h2 {
  font-size: 2rem;
  color: #5ab4e8;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

section h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
  font-weight: 600;
}

section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

section ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Section avec fond alternatif */
.schedule, .contact, .informations {
  background: #f8f9fa;
}

/* Section Les cours */
.courses ul {
  list-style: none;
  padding-left: 0;
}

.courses li {
  padding: 0.5rem 0;
  border-left: 3px solid #5ab4e8;
  padding-left: 1rem;
  margin-bottom: 0.75rem;
  background: rgba(90, 180, 232, 0.05);
  border-radius: 0 4px 4px 0;
}

/* Section Informations */
.info-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.info-documents, .info-bureau {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.document-links {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.document-item {
  padding: 1.5rem;
  border: 2px solid #5ab4e8;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.document-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(90, 180, 232, 0.2);
}

.document-item h4 {
  color: #5ab4e8;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.document-item p {
  margin-bottom: 1rem;
  color: #666;
}

.btn-document {
  display: inline-block;
  background: #5ab4e8;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-document:hover {
  background: #48a0d6;
}

.bureau-members {
  margin-top: 1rem;
}

.member-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-item:last-child {
  border-bottom: none;
}

.member-item strong {
  color: #5ab4e8;
  min-width: 120px;
}

.pool-plan {
  margin-top: 2rem;
  text-align: center;
}

.plan-container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.pool-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

/* Tableau des horaires */
.schedule-table {
  margin: 2rem 0;
  overflow-x: auto;
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.schedule-table th {
  background: #5ab4e8;
  color: #fff;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}

.schedule-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.schedule-table tr:nth-child(even) td {
  background: #f8f9fa;
}

.schedule-table tr:hover td {
  background: rgba(90, 180, 232, 0.1);
}

.schedule-note {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-top: 1rem;
  padding: 1rem;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

/* Section Tarifs */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.pricing-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border-top: 4px solid #5ab4e8;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card h3 {
  color: #5ab4e8;
  margin-bottom: 1rem;
}

.price {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin: 1rem 0;
}

.price-group {
  margin: 1rem 0;
}

.price-group .price {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.location {
  font-size: 0.8rem;
  background: #5ab4e8;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 500;
}

.pricing-notes {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #5ab4e8;
}

/* Section Événements */
.events-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.event-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-left: 4px solid #5ab4e8;
  transition: transform 0.3s ease;
}

.event-item:hover {
  transform: translateX(5px);
}

.event-item h3 {
  color: #5ab4e8;
  margin-bottom: 0.5rem;
}

.event-item p {
  margin-bottom: 0.5rem;
}

/* Section Contact */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-info, .contact-form-link {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item a {
  color: #5ab4e8;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.location-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #5ab4e8;
}

/* Pied de page (Footer) */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 2rem 0;
  }
  
  section h2 {
    font-size: 1.75rem;
  }
  
  .pricing-table {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .schedule-table {
    font-size: 0.9rem;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 0.5rem;
  }
  
  .info-content {
    grid-template-columns: 1fr;
  }
  
  .document-item {
    padding: 1rem;
  }
  
  .member-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .member-item strong {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  .contact-info, .contact-form-link {
    padding: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.event-item, .pricing-card, .contact-info, .contact-form-link {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling pour les ancres */
html {
  scroll-behavior: smooth;
}

/* Focus states pour l'accessibilité */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid #5ab4e8;
  outline-offset: 2px;
}
