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

/* Font & Global */
body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #f9fbfd 100%);
  color: #333;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Header & Nav */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(0, 51, 153, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 9999;
  transition: all 0.3s ease;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  color: #ffca00;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.nav-brand:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  font-weight: 600;
  align-items: center;
}

.nav-menu li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #ffca00;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu li a:hover::after,
.nav-menu li a:focus::after {
  width: 80%;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: #ffca00;
}

.btn-login {
  background-color: #ffca00;
  color: #003399 !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  font-weight: 700;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 10px rgba(255, 202, 0, 0.4);
}

.btn-login::after {
  display: none !important;
}

.btn-login:hover {
  background-color: #ffdb4d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 202, 0, 0.6);
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.nav-toggle:hover {
  transform: scale(1.1);
  color: #ffca00;
}

/* Banner Marquee */
.banner {
  margin-top: 68px; /* header height */
  background: linear-gradient(90deg, #ffca00, #ffdb4d);
  color: #003399;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
}

.banner p {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 80px 30px;
  background: url('../images/Banière.jpg') no-repeat center center/cover;
  border-radius: 24px;
  position: relative;
  color: white;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 51, 153, 0.7), rgba(0, 0, 0, 0.8));
  border-radius: 24px;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: auto;
}

.hero-logo {
  width: 130px;
  border-radius: 50%;
  border: 4px solid #ffca00;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(255, 202, 0, 0.5);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
  animation: slideUp 1s ease-out;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  animation: slideUp 1s ease-out 0.2s both;
}

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

.cta-button {
  background: linear-gradient(135deg, #ffca00, #ffdb4d);
  color: #003399;
  padding: 16px 40px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(255, 202, 0, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  animation: slideUp 1s ease-out 0.4s both;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(255, 202, 0, 0.6);
  background: linear-gradient(135deg, #ffdb4d, #ffca00);
}

.cta-button.small {
  padding: 12px 28px;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255, 202, 0, 0.3);
  text-transform: none;
  letter-spacing: normal;
  animation: none;
}
.cta-button.small:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 202, 0, 0.4);
}

/* Promotion Section */
.promotion {
  max-width: 1200px;
  margin: 60px auto;
  padding: 50px 30px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 51, 153, 0.08);
  text-align: center;
  position: relative;
}

.promotion::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #003399, #ffca00);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.promotion h2 {
  font-weight: 800;
  color: #003399;
  font-size: 2.4rem;
  margin-bottom: 35px;
}

.video-container {
  display: flex;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.video-container:hover {
  transform: scale(1.01);
}

iframe {
  border-radius: 16px;
  max-width: 100%;
}

/* Info Section */
.info-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px 15px;
  text-align: center;
}

.info-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #003399;
  margin-bottom: 45px;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 10px;
}

.info-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 35px 25px;
  font-weight: 500;
  color: #444;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0,51,153,0.05);
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 4px;
  background: #ffca00;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 51, 153, 0.12);
  border-color: rgba(0,51,153,0.1);
}

.info-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.info-card-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
}

.info-card p {
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Events Section */
.events-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 30px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 51, 153, 0.08);
}

.events-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #003399;
  margin-bottom: 35px;
  text-align: center;
}

.event-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  background: #f8faff;
  border-left: 5px solid #ffca00;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.event-item:hover {
  transform: translateX(10px);
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,51,153,0.1);
}

.event-date {
  font-weight: 800;
  color: #003399;
  font-size: 1.15rem;
  min-width: 200px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-date::before {
  content: '📅';
  font-size: 1.2rem;
}

.event-item p {
  font-size: 1.1rem;
  color: #444;
  font-weight: 500;
  margin: 0;
}

/* Contact Section */
.contact-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 60px 30px;
  background: linear-gradient(135deg, #003399, #001f5c);
  color: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 51, 153, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,202,0,0.1) 0%, transparent 60%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.contact-section h2 {
  color: #ffca00;
  font-size: 2.6rem;
  margin-bottom: 25px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.contact-section p {
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.mail-display {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 20px 0 40px !important;
  user-select: all;
  background: rgba(255,255,255,0.1);
  display: inline-block;
  padding: 10px 25px;
  border-radius: 12px;
  border: 1px dashed rgba(255,202,0,0.5);
}

.contact-btn {
  background-color: #ffca00;
  color: #003399;
  padding: 18px 50px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.contact-btn:hover {
  background-color: #fff;
  color: #003399;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

/* Footer */
footer {
  background-color: #001f5c;
  color: #aebcd4;
  padding: 30px 0;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  border-top: 4px solid #ffca00;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 68px;
    right: 0;
    background: rgba(0, 51, 153, 0.95);
    backdrop-filter: blur(15px);
    height: calc(100vh - 68px);
    width: 280px;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    gap: 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }

  .nav-menu.nav-menu_visible {
    transform: translateX(0);
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    font-size: 1.3rem;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 100px;
  }

  .banner {
    font-size: 1rem;
    padding: 10px 0;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .event-date {
    margin-bottom: 5px;
  }
}
