/* Reset et variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00bcd4;
  --secondary-color: #00eaff;
  --bg-dark: #0f172a;
  --bg-darker: #0a0f1e;
  --text-light: #ffffff;
  --text-gray: #d1faff;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid rgba(0, 188, 212, 0.3);
  box-shadow: 0 4px 20px rgba(0, 188, 212, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
  filter: drop-shadow(0 0 10px var(--primary-color));
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-color);
  background: rgba(0, 188, 212, 0.1);
}

.nav-link.active {
  color: var(--secondary-color);
  background: rgba(0, 188, 212, 0.15);
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

.user-profile {
  padding: 8px 20px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 20px;
  border: 1px solid var(--primary-color);
}

/* Hero Section avec Carrousel */
.hero-section {
  margin-top: 80px;
  height: calc(100vh - 80px);
  position: relative;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-video,
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-dark);
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.8));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.carousel-overlay h1 {
  font-size: 4em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 0 20px var(--primary-color), 0 0 40px var(--primary-color);
  animation: glow 2s ease-in-out infinite alternate;
}

.carousel-overlay p {
  font-size: 1.5em;
  color: var(--text-gray);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
  }
  to {
    text-shadow: 0 0 30px var(--primary-color), 0 0 50px var(--primary-color);
  }
}

/* Boutons du carrousel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 188, 212, 0.3);
  border: 2px solid var(--primary-color);
  color: var(--text-light);
  font-size: 2em;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
  border-radius: 5px;
}

.carousel-btn:hover {
  background: rgba(0, 188, 212, 0.6);
  box-shadow: 0 0 20px var(--primary-color);
}

.carousel-btn.prev {
  left: 30px;
}

.carousel-btn.next {
  right: 30px;
}

/* Indicateurs */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s;
}

.indicator.active {
  background: var(--primary-color);
  box-shadow: 0 0 15px var(--primary-color);
}

.indicator:hover {
  background: rgba(0, 188, 212, 0.6);
}

/* Info Section */
.info-section {
  padding: 80px 20px;
  background: var(--bg-darker);
}

.info-section h2 {
  text-align: center;
  font-size: 3em;
  margin-bottom: 60px;
  color: var(--secondary-color);
  text-shadow: 0 0 15px var(--primary-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.info-card {
  background: rgba(0, 188, 212, 0.05);
  padding: 40px;
  border-radius: 15px;
  border: 2px solid rgba(0, 188, 212, 0.2);
  text-align: center;
  transition: all 0.3s;
}

.info-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 188, 212, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

.info-card .icon {
  font-size: 4em;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px var(--primary-color));
}

.info-card h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.info-card p {
  color: var(--text-gray);
  line-height: 1.8;
}

/* News Section */
.news-section {
  padding: 80px 20px;
  background: var(--bg-dark);
}

.news-section h2 {
  text-align: center;
  font-size: 3em;
  margin-bottom: 60px;
  color: var(--secondary-color);
  text-shadow: 0 0 15px var(--primary-color);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background: rgba(0, 188, 212, 0.05);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(0, 188, 212, 0.2);
  transition: all 0.3s;
}

.news-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

.news-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.news-content {
  padding: 25px;
}

.news-date {
  color: var(--primary-color);
  font-size: 0.9em;
  font-weight: 600;
}

.news-card h3 {
  margin: 15px 0;
  color: var(--secondary-color);
  font-size: 1.5em;
}

.news-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  padding: 60px 20px 20px;
  border-top: 2px solid rgba(0, 188, 212, 0.3);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.3em;
}

.footer-section p {
  color: var(--text-gray);
  line-height: 1.8;
}

.footer-section a {
  display: block;
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.footer-section a:hover {
  color: var(--secondary-color);
  padding-left: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 188, 212, 0.2);
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }
  
  .carousel-overlay h1 {
    font-size: 2em;
  }
  
  .carousel-overlay p {
    font-size: 1em;
  }
  
  .carousel-btn {
    font-size: 1.5em;
    padding: 10px 15px;
  }
  
  .carousel-btn.prev {
    left: 10px;
  }
  
  .carousel-btn.next {
    right: 10px;
  }
  
  .info-section h2,
  .news-section h2 {
    font-size: 2em;
  }

/* ===============================
   MENU MOBILE BURGER
================================ */
.burger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }

  .nav-menu.open {
    max-height: 500px;
  }

  .nav-link {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
  }
}

}