/* ---------- RESET DE BASE ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0b0c10;
  color: #e6e6e6;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
}
.container { width: min(1200px, 92vw); margin-inline: auto; }

/* ---------- EN-TÊTE ---------- */
header {
  background: rgba(10,11,16,.6);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg,#6b7cff,#7b47b3);
}

/* ---------- MENU PRINCIPAL ---------- */
.menu ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.menu li { position: relative; }
.menu a {
  color: #a3b3ff;
  text-decoration: none;
  padding: .4rem .6rem;
  border-radius: .4rem;
  transition: background .2s ease;
}
.menu a:hover {
  background: rgba(255,255,255,.06);
  text-decoration: none;
}

/* ---------- SOUS-MENU (DROPDOWN ANIMÉ) ---------- */
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  min-width: 240px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: .5rem 0;
  z-index: 100;
  display: flex;
  flex-direction: column;

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.dropdown-content li { width: 100%; }
.dropdown-content li a {
  display: block;
  color: #e6e6e6;
  padding: .6rem 1rem;
  white-space: nowrap;
}
.dropdown-content li a:hover {
  background: rgba(255,255,255,.08);
}
.dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- CARROUSEL ---------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  margin-top: 1rem;
}
.carousel-track {
  display: flex;
  transition: transform 1s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}
.slide {
  min-width: 100%;
  position: relative;
  transition: transform 1s ease, opacity 1s ease;
}
.slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: grayscale(.5);
  transition: transform 1s ease, filter .4s ease;
}
.slide:hover img {
  transform: scale(1.03);
  filter: grayscale(0);
}
.cap {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,.6);
  padding: .5rem 1rem;
  font-weight: 600;
}

/* ---------- COMMANDES DU CARROUSEL ---------- */
.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.ctrl {
  background: rgba(0,0,0,.4);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  cursor: pointer;
  transition: background .2s ease;
}
.ctrl:hover { background: rgba(0,0,0,.6); }

/* ---------- POINTS DU CARROUSEL ---------- */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
  transition: background .3s ease, transform .3s ease;
}
.dot.active {
  background: #c9d2ff;
  transform: scale(1.3);
}

/* ---------- CARTES ET PANNEAUX ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  background: rgba(255,255,255,.03);
  padding: 1rem;
  border-radius: .8rem;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(255,255,255,.05);
}
.panel {
  background: rgba(255,255,255,.03);
  padding: 1rem;
  border-radius: .8rem;
  border: 1px solid rgba(255,255,255,.08);
}

/* ---------- VIDÉO ---------- */
.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: .8rem;
}
.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- PIED DE PAGE ---------- */
footer {
  background: rgba(7,7,9,.8);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}
footer iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: .8rem;
  margin-top: 1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .menu ul { flex-wrap: wrap; justify-content: center; }
  .carousel img { height: 280px; }
}
