/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.5;
  background-color: #f4f6f8;
  color: #012E4E;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HEADER
========================= */
.header {
  position: relative; /* ❌ plus fixed → défile avec la page */
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10; /* ✅ en dessous du side-menu */
}

.header .container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo centré */
.header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.header .logo img {
  height: 50px;
  object-fit: contain;
}

/* Menu burger propre et espacé */
.menu-button {
  cursor: pointer;
  display: flex;
  align-items: center; /* centre verticalement les barres avec le texte */
  gap: 10px; /* espace entre les barres et le texte "Menu" */
  padding: 6px 10px;
  background: transparent;
  border: none;
}

/* Conteneur des 3 barres */
.menu-button .bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* espace les barres correctement */
  width: 26px; /* largeur des barres */
  height: 20px; /* hauteur totale pour espacer les barres */
}

.menu-button .bars span {
  display: block;
  height: 3px; /* épaisseur des traits */
  width: 100%; /* même largeur que le conteneur */
  background-color: #004080; /* bleu Air Corsica */
  border-radius: 2px;
}

/* Switch langue à droite */
.lang-container {
  position: relative;
}

.lang-button {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #005599;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  user-select: none;
}

.lang-menu {
  position: absolute;
  top: 110%;
  right: 0;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  min-width: 120px;
  z-index: 15;
}

.lang-menu.show {
  display: flex;
}

.lang-menu .lang-option {
  padding: 8px 12px;
  cursor: pointer;
  color: #005599;
  font-weight: bold;
}

.lang-menu .lang-option:hover {
  background-color: #f2f2f2;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 0 15px;
  }

  .menu-button {
    width: 28px;
    height: 20px;
  }

  .menu-button .bars span {
    height: 2px;
  }

  .lang-button {
    padding: 5px 10px;
    font-size: 13px;
  }
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 00;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.4);
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  background: #005599;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #003f73;
}

/* =========================
   ABOUT
========================= */
.about {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.about-container {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.about-slider {
  width: 50%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.about-slider img {
  width: 100%;
  display: none;
  border-radius: 10px;
}

.about-slider img.active {
  display: block;
}

.about-text {
  flex: 1;
}

.about-text h2, .about-text p {
  font-family: 'Roboto', sans-serif;
}

.about-dots {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 15px;
  gap: 8px;
}

.about-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
}

.about-dots span.active {
  background-color: #005599;
}

/* =========================
   SERVICES
========================= */
.services {
  background: #f5f9fc;
  padding: 60px 20px;
  text-align: center;
}

.services h2 {
  color: #005599;
  margin-bottom: 40px;
}

.services-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.service {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 220px;
}

.service img {
  width: 60px;
  margin-bottom: 15px;
}

.service h3 {
  color: #012E4E;
  font-size: 18px;
}

/* =========================
   NEWS & EVENTS
========================= */
.news-events {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.news, .events {
  flex: 1;
  min-width: 300px;
}

.news h2, .events h2 {
  font-size: 22px;
  color: #005599;
  margin: 0;
}

.news .underline, .events .underline {
  width: 60px;
  height: 3px;
  background-color: #0083C4;
  margin: 8px 0 16px 0;
  border-radius: 2px;
}

.card {
  background: #f5faff;
  border: 1px solid #cce6ff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.card h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #012E4E;
}

.card p {
  margin: 0;
  color: #005599;
  font-size: 15px;
}

.date {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #777;
}

/* =========================
   SLIDER PUBLICITÉS
========================= */
.slider-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px 0;
}

.slider {
  width: 1176px;
  height: 138px;
  overflow: hidden;
  position: relative;
}

.slider a {
  position: absolute;
  top: 0;
  left: 0;
  width: 1176px;
  height: 138px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.slider a.active {
  opacity: 1;
  pointer-events: auto;
}

.slider img {
  width: 1176px;
  height: 138px;
  object-fit: contain;
}

.slider-dots {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s;
}

.slider-dots span.active {
  background-color: #005599;
}

/* =========================
   COMMUNITY
========================= */
.community {
  background: #f5f9fc;
  padding: 60px 20px;
  text-align: center;
}

.community h2 {
  color: #005599;
  margin-bottom: 15px;
}

.community p {
  color: #012E4E;
  margin-bottom: 20px;
}

/* =========================
   FOOTER
========================= */
:root {
  --footer-top-color: #0079B3;
  --footer-bottom-color: #012E4E;
  --footer-text-color: #ffffff;
}

footer {
  width: 100%;
  margin-top: 50px;
}

.footer-top {
  background-color: var(--footer-top-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px 60px;
  gap: 15px;
  text-align: center;
}

.footer-logo {
  width: 160px;
  height: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: var(--footer-text-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  font-family: 'Roboto', Arial, sans-serif;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 15px;
}

.footer-discord {
  background-color: #5865F2;
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.footer-discord:hover {
  background-color: #4752c4;
}

.footer-rgpd {
  color: var(--footer-text-color);
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
}

.footer-rgpd:hover {
  text-decoration: underline;
}

.footer-bottom {
  background-color: var(--footer-bottom-color);
  height: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom p {
  color: var(--footer-text-color);
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 10px;
  }
  .about-container {
    flex-direction: column;
  }
  .about-slider {
    width: 100%;
  }
  .news-events {
    flex-direction: column;
  }
  .services-grid {
    gap: 20px;
  }
  .slider {
    width: 100%;
    height: auto;
  }
  .slider img {
    width: 100%;
    height: auto;
  }
  .footer-content {
    flex-direction: column;
    gap: 15px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== SIDE MENU ===== */
.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
  padding: 80px 20px 20px 20px; /* plus d'espace pour le header */
  transition: left 0.3s ease;
  z-index: 2000; /* ✅ au-dessus du header */
  border-radius: 0 12px 12px 0;
}

.side-menu.open {
  left: 0;
}

.side-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #005599;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin-bottom: 25px;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-menu li img {
  width: 30px;
  height: auto;
}

/* ===== OVERLAY ===== */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  transition: opacity 0.3s ease;
}

#overlay.active {
  display: block;
}

/* =========================
   FLASH INFO - STYLE AIR CORSICA
========================= */
.flash-info {
  width: 100%;
  background: linear-gradient(90deg, #0079B3, #005599);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  z-index: 1003;
  animation: slideDown 0.6s ease;
}

.flash-icon {
  font-size: 18px;
  margin-right: 10px;
  animation: pulse 1.5s infinite;
}

.flash-text {
  text-align: center;
}

.flash-text strong {
  font-weight: bold;
}

.flash-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 22px;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.flash-close:hover {
  opacity: 1;
}

/* Animation légère d'apparition */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animation d’alerte pulsante */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .flash-info {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  .flash-close {
    top: 8px;
    right: 10px;
    transform: none;
  }
}
