/* =====================
   RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0f172a;
  font-size: 1.2rem;
  color: #fff;
}

/* =====================
   NAVBAR
===================== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 5px 0;
}
.mon-espace-btn {
    margin-left: auto; /* pousse le bouton à droite */
}

.mon-espace-btn a {
    background: linear-gradient(90deg, #3793b8, #6dd5ed);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mon-espace-btn a:hover {
    background: linear-gradient(90deg, #2c7a9d, #3793b8);
    transform: translateY(-2px);
}


.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  
}

.logo img {
  width: 70px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 100px;
}

.menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.menu li a:hover {
  color: #38bdf8;
}
/* =====================
   SUBMENU (DESKTOP)
===================== */

.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  background: #020617;
  list-style: none;
  min-width: 220px;
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 2000;
}

.submenu li {
  padding: 0;
}

.submenu li a {
  display: block;
  padding: 10px 18px;
  color: #e5e7eb;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.submenu li a:hover {
  background: #0f172a;
  color: #38bdf8;
}

/* Affichage au survol */
.has-submenu:hover .submenu {
  display: block;
}

/* =====================
   SUBMENU (MOBILE)
===================== */

@media (max-width: 768px) {
  .submenu {
    position: static;
    box-shadow: none;
    background: #020617;
    padding-left: 10px;
  }

  .has-submenu > a::after {
    content: " ▾";
    font-size: 0.8rem;
    opacity: 0.7;
  }

  .has-submenu .submenu {
    display: none;
  }

  .has-submenu.open .submenu {
    display: block;
  }

}
 /* ===== SLIDER ACTUALITÉS – STYLE CNDP ===== */
 .cndp-slider {
  width: 100%;
  height: 420px;
  position: relative;
  overflow: hidden;
}

.cndp-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
}

.cndp-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.cndp-image {
  width: 50%;
}

.cndp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cndp-content {
  width: 50%;
  background: linear-gradient(135deg, #0b5fa5, #1286c7);
  color: #fff;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cndp-content h2 {
  font-size: 26px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cndp-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.cndp-actions {
  display: flex;
  gap: 15px;
}

.cndp-actions a {
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 14px;
}

.btn-white {
  background: #fff;
  color: #0b5fa5;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

/* DOTS */
.cndp-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.cndp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.cndp-dot.active {
  background: #fff;
}

/* RESPONSIVE */
@media(max-width: 900px) {
  .cndp-slide {
      flex-direction: column;
  }

  .cndp-image,
  .cndp-content {
      width: 100%;
      height: 40%;
  }

  .cndp-content {
      padding: 30px;
  }
}
/* =====================
   HERO FULL PAGE
===================== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../img/classbk4.jpg') center/cover no-repeat ;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero-overlay {
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 5.2rem;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.subtitle-small {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* =====================
   BUTTONS
===================== */
.hero-actions {
  display: flex;
  margin: 2rem;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-secondary {
  background: #facc15;
  color: #1f2937;
}

.btn-secondary:hover {
  background: #eab308;
}

/* =====================
   MOBILE
===================== */
.nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: #020617;
    flex-direction: column;
    width: 220px;
    display: none;
    gap: 15px;
  }

  .menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
  }
}
/* ===== MINI ANNONCE CINÉ ===== */
.mini-annonce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px;
    background: #6d96df;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 14px;
}

.mini-annonce-content {
    flex: 1;
    display: inline-block;
 
}

.mini-annonce-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #dfba6d;
}

.mini-annonce-content .fr {
    font-size: 18px;
    margin-bottom: 15px;
}

.mini-annonce-content .ar {
    font-size: 18px;
    direction: rtl;
    font-family: "Tahoma", sans-serif;
}

.mini-annonce-image {
    flex: 0 0 180px;
}

.mini-annonce-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .mini-annonce {
        flex-direction: column;
        text-align: center;
    }

    .mini-annonce-image {
        width: 100%;
    }
}
