* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) translateX(0); 
  }
  50% { 
    transform: translateY(-30px) translateX(20px); 
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.header-section {
  width: 100%;
  min-height: 450px;
  background: linear-gradient(135deg, #e8e9ff 0%, #d5d7ff 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(139, 148, 202, 0.15);
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(176, 176, 251, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.header-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(176, 176, 251, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite reverse;
}

.title {
  font-family: "Playfair Display", serif;
  color: #1a1a2e;
  font-weight: 900;
  text-align: center;
  padding: 0 50px;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.title h1 {
  font-size: 3rem;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: -0.5px;
}

nav {
  position: absolute;
  top: 30px;
  right: 50px;
  display: flex;
  gap: 15px;
  z-index: 2;
}

.nav-button {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #1a1a2e;
  border: 2px solid transparent;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.nav-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 148, 202, 0.3), transparent);
  transition: left 0.5s;
}

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

.nav-button:hover {
  background: #8b94ca;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 148, 202, 0.4);
}

.about-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 50px;
  animation: fadeIn 1.2s ease-out;
}

.about-title,
.mission-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  color: #1a1a2e;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
}

.about-title {
  font-size: 2.5rem;
}

.mission-title {
  font-size: 2.3rem;
}

.about-title::after,
.mission-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #8b94ca, #b0b0fb);
  border-radius: 2px;
}

.about-content {
  margin-bottom: 60px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.about-content p {
  color: #4a4a6a;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 18px;
}

.services-section {
  max-width: 1400px;
  margin: 120px auto;
  padding: 0 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  height: 280px;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 18px;
  color: #1a1a2e;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #2a2a3e;
  position: relative;
  z-index: 1;
}

.card-evenements {
  background: linear-gradient(135deg, #b0b0fb 0%, #9a9af5 100%);
  animation-delay: 0.1s;
}

.card-bonplan {
  background: linear-gradient(135deg, #fbfab0 0%, #f5f59a 100%);
  animation-delay: 0.2s;
}

.card-tarifs {
  background: linear-gradient(135deg, #b0fbc1 0%, #9af5ad 100%);
  animation-delay: 0.3s;
}

.card-rejoindre {
  background: linear-gradient(135deg, #fab0fb 0%, #f59af5 100%);
  animation-delay: 0.4s;
  cursor: pointer;
  height: 320px;
  padding: 50px;
  grid-column: span 3;
}


@media (max-width: 1024px) {
  .card-rejoindre {
    grid-column: span 1;
    height: 300px;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .card-rejoindre {
    grid-column: span 1;
    height: 280px;
    padding: 30px;
  }
}

.footer-section {
  width: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #e8e9ff 0%, #d5d7ff 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 80px 50px;
  margin-top: 150px;
  box-shadow: 0 -10px 40px rgba(139, 148, 202, 0.15);
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8b94ca, #b0b0fb, #8b94ca);
  background-size: 200% 100%;
  animation: gradient 3s linear infinite;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInUp 1.5s ease-out;
}

.footer-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  color: #1a1a2e;
  font-size: 1.5rem;
}

.footer-link {
  color: #2a2a3e;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8b94ca;
  transition: width 0.3s;
}

.footer-link:hover {
  color: #8b94ca;
  transform: translateX(5px);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-text {
  color: #2a2a3e;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #8b94ca;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7a83ba;
}

@media (max-width: 1024px) {
  .title h1 {
    font-size: 2.2rem;
  }

  nav {
    top: 20px;
    right: 30px;
    gap: 10px;
  }

  .nav-button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .header-section {
    min-height: 400px;
    padding: 80px 20px 20px;
  }

  .title h1 {
    font-size: 1.8rem;
  }

  nav {
    position: static;
    flex-direction: column;
    margin-top: 30px;
    width: 100%;
    padding: 0 20px;
  }

  .nav-button {
    width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-section {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }
}
  .amicale-logo{
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8e9ff 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  flex-shrink: 0;
  box-shadow: 0 5px 20px rgba(139, 148, 202, 0.2);
  position: absolute;
  left: 10px;
  top: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  margin: 5% auto;
  padding: 40px;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.4s ease-out;
  border: 1px solid rgba(139, 148, 202, 0.2);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  color: #8b94ca;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 20px;
  right: 25px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 148, 202, 0.1);
}

.close:hover {
  color: #ffffff;
  background: #8b94ca;
  transform: rotate(90deg);
}

.modal-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #1a1a2e;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.modal-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #8b94ca, #b0b0fb);
  border-radius: 2px;
}

.modal-text {
  color: #2a2a3e;
  line-height: 1.8;
}

.modal-text p {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.modal-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 30px 0 20px 0;
  text-align: center;
}

.cotisations-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.cotisations-list li {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8e9ff 100%);
  margin: 15px 0;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #8b94ca;
  box-shadow: 0 5px 15px rgba(139, 148, 202, 0.1);
  transition: all 0.3s ease;
  font-size: 16px;
}

.cotisations-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(139, 148, 202, 0.2);
}

.cotisations-list li strong {
  color: #8b94ca;
  font-weight: 600;
}

.note {
  background: linear-gradient(135deg, #b0fbc1 0%, #9af5ad 100%);
  padding: 20px;
  border-radius: 12px;
  margin-top: 25px;
  text-align: center;
  font-weight: 500;
  color: #1a1a2e;
  border: 2px solid rgba(176, 251, 193, 0.3);
}


@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 30px 20px;
    width: 95%;
  }
  
  .modal-content h2 {
    font-size: 1.8rem;
  }
  
  .close {
    top: 15px;
    right: 20px;
    font-size: 28px;
  }
}