/* Couleurs principales */
:root {
  --primary-blue: #0077cc;
  --accent-orange: #f58020;
}
 
/* Hero section */

.hero {
  height: 90vh;
  background: url("/static/images/Enaf.jpg") no-repeat center center / cover;
  color: white;
  padding: 4rem;
  position: relative;
}

.hero1 {
  height: 90vh;
  background: url("/static/images/imageEnaf1.jpg") no-repeat center center / cover;
  color: white;
  padding: 4rem;
  position: relative;
}

.hero2 {
  height: 90vh;
  background: url("/static/images/imageEnaf2.jpg") no-repeat center center / cover;
  color: white;
  padding: 4rem;
  position: relative;
}

/* Overlay sombre فوق الصورة */
.hero::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* noir transparent */
  z-index: 1;
  border-radius: inherit;
}
.hero1::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* noir transparent */
  z-index: 1;
  border-radius: inherit;
}

.hero2::before {
  content: "";
  position: absolute;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* noir transparent */
  z-index: 1;
  border-radius: inherit;
}

/* باش النص يبان فوق overlay */
.hero .container {
  position: relative;
  z-index: 2;
}

.hero1 .container {
  position: relative;
  z-index: 2;
}

.hero2 .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: 'Nunito';
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0,0,0,1);
  animation: fadeDown 1s ease-out;
}
.hero1-title {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: 'Nunito';
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0,0,0,1);
  animation: fadeDown 1s ease-out;
}

@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-90px); }
  100% { opacity: 1; transform: translateY(0); }
}

.btn-primary {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.btn-primary:hover {
  background-color: #e66f12;
  border-color: #e66f12;
}
.nav-link {
    transition: color 0.2s ease-in-out;
}
.nav-link:hover,
.nav-link:focus {
    color: #0d6efd;
    outline: none;
}
footer a:hover,
footer a:focus {
    text-decoration: underline;
    color: #0d6efd;
    outline: none;
}
.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.bg-primary {
  background-color: #0d6efd !important;
}

.bg-success {
  background-color: #198754 !important;
}

/* Navbar personnalisée */
.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
}

.navbar-primary {
  background-color: #0d6efd;
}

.navbar-primary .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 1rem;
}

.navbar-primary .navbar-nav .nav-link:hover {
  color: white;
}

/* Dropdown menu */
.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Bouton recherche */
.btn-outline-primary {
  border-color: #dee2e6;
}

.btn-outline-primary:hover {
  background-color: transparent;
  border-color: #0d6efd;
  color: #0d6efd;
}

/* Barre secondaire */
.navbar-secondary .nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #495057;
  padding: 0.25rem 0.75rem;
}

.navbar-secondary .nav-link:hover {
  color: #0d6efd;
}
.image-container {
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card:hover {
  transform: scale(1.02);
  transition: all 0.2s ease-in-out;
}

/* Icônes Bootstrap */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css");
