/* ───────────────────────────────────────────────────────────── */
/* 1/ Empêcher le scroll horizontal (sans fixer la hauteur)     */
/* ───────────────────────────────────────────────────────────── */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;  /* Masque toute barre de défilement horizontale */
  font-family: 'Segoe UI', sans-serif;
}

/* ───────────────────────────────────────────────────────────── */
/* 2/ Masquer une menubar fixe en bas (adapter le sélecteur)    */
/* ───────────────────────────────────────────────────────────── */
.menubar-bottom,
#bottomNav {
  display: none !important;
}

/* ───────────────────────────────────────────────────────────── */
/* 3/ Vidéo d’arrière-plan et overlay                           */
/* ───────────────────────────────────────────────────────────── */
/* Limiter la vidéo à 90vh pour qu'elle couvre header + hero uniquement */
.video-background {
  position: absolute;  
  top: 0;
  left: 0;
  width: 100%;
  height: 90vh;     /* ← Ajuste ici : 90vh = header + hero */
  overflow: hidden;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Logo */
.navbar-brand {
  margin-left: 0.5rem;
}

.navbar-brand img {
  height: 65px;
  max-height: 70px;
}

/* Héros */
.hero {
   min-height: 90vh;  /* correspond à la hauteur vidéo */
  z-index: 2;
  position: relative;
  text-shadow: 1px 1px 4px #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Fond de la section "Des postes disponibles..." */
.banner-jobs {
  background: linear-gradient(135deg, #001f3f 0%, #007a99 55%, #00e1ff 100%);
  /* tu peux baisser à 0.9 si c'est trop flashy */
  background-attachment: fixed;
}

/* Pour que le texte reste lisible */
.banner-jobs h2,
.banner-jobs p {
  color: #fff !important;
}

.banner-jobs .form-select {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.banner-jobs .form-select option {
  color: #000;
}



/* ===== HEADER STYLING GÉNÉRIQUE ===== */
.navbar {
  margin: 20px auto;
  padding: 0.5rem 1rem;
  width: 95%;
  max-width: 1400px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

/* === MENU ACCUEIL === */
.navbar-dark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-dark .nav-link {
  color: white !important;
  font-weight: 500;
  margin-right: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  transition: color 0.2s ease-in-out;
}

.navbar-dark .nav-link:hover {
  color: #00e1ff !important;
}

.navbar-dark .auth-links .btn {
  font-size: 0.9rem;
  padding: 6px 18px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  transition: background 0.3s, color 0.3s;
}

.navbar-dark .auth-links .btn:hover {
  background: rgba(0, 225, 255, 0.5);
  color: #000;
}

/* === MENU AUTRES PAGES === */
.navbar-light {
  background-color: #ffffff;
}

.navbar-light .nav-link {
  color: #000 !important;
  font-weight: 500;
  margin-right: 15px;
  transition: color 0.2s ease-in-out;
}

.navbar-light .nav-link:hover {
  color: #00bcd4 !important;
}

.navbar-light .auth-links .btn {
  font-size: 0.9rem;
  padding: 6px 18px;
  white-space: nowrap;
  border: 1px solid #000;
  color: #000;
  border-radius: 30px;
  transition: background 0.3s, color 0.3s;
}

.navbar-light .auth-links .btn:hover {
  background-color: #00bcd4;
  color: white;
}

/* Footer */
.footer-custom {
  margin-top: 4rem;
  background: url("../assets/footer_background.png") no-repeat center center;
  background-size: cover;
  padding-top: 3rem;
  padding-bottom: 2rem;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-glass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 2rem;
}

.footer-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #00e1ff;
  text-decoration: underline;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin-bottom: 2rem;
}

.footer-bottom {
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.3);
  color: #eee;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* Images */
.img-fluid {
  max-width: 150px;
}

.object-fit-cover {
  object-fit: cover;
}

/* Cartes de catégories modernisées */
.category-card {
  background: #fff;
  border: 1px solid rgba(0, 160, 200, 0.1);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #33c3de, #4aaecb);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 160, 200, 0.12);
  border-color: rgba(0, 160, 200, 0.28);
}

.category-card:hover::before {
  transform: scaleX(1);
}

/* Icônes améliorées */
.icon-circle {
  background: linear-gradient(135deg, #33c3de, #4aaecb);
  color: #fff;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.category-card:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
}

.view-all:hover {
  text-decoration: underline;
}

/* Offres */
.offer-card {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.offer-card:hover {
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.25), 0 6px 24px rgba(0, 174, 239, 0.2);
  transform: translateY(-2px);
}

/* Recrutement */
.bg-blue-custom {
  background-color: #0b3a53;
}

/* Engagement */
.bg-degrade {
  background: radial-gradient(circle at right, #00bcd4 0%, #0b3a53 50%, #072c3c 100%);
  color: #fff;
}

.bg-degrade h2,
.bg-degrade h3 {
  color: #fff;
}

.bg-degrade strong {
  font-weight: 600;
}

.bg-gradient-blue {
  background: radial-gradient(circle at center, #00e1ff, #0b3a53 80%);
}

/* ───────────────────────────────────────────────────────────── */
/* === SIDEBAR UTILISATEUR & EMPLOYEUR (même style visuel) === */
/* ───────────────────────────────────────────────────────────── */
#sidebarNav .nav-link,
#employerSidebarNav .nav-link {
  color: #333;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  margin-bottom: 0.3rem;
  transition: all 0.25s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #f0f2f5;
}

#sidebarNav .nav-link:hover,
#employerSidebarNav .nav-link:hover {
  background-color: #f0f4ff;
  border-color: #d0e2ff;
  color: #0d6efd;
  transform: translateX(2px);
}

/* === ÉTAT ACTIF === */
#sidebarNav .nav-link.active,
#employerSidebarNav .nav-link.active {
  background-color: #e9f3ff;
  color: #0d6efd !important;
  font-weight: 600;
  border-left: 4px solid #0d6efd;
  border-color: #bcd9ff;
}

#sidebarNav .nav-link i,
#employerSidebarNav .nav-link i {
  min-width: 22px;
  text-align: center;
  font-size: 1.1rem;
  margin-right: 0.4rem;
}

/* === AJOUT POUR OFFCANVAS MOBILE === */
#offcanvasSidebar .nav-link {
  color: #333;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  margin-bottom: 0.3rem;
  transition: all 0.25s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #f0f2f5;
}

#offcanvasSidebar .nav-link:hover {
  background-color: #f0f4ff;
  border-color: #d0e2ff;
  color: #0d6efd;
  transform: translateX(2px);
}

#offcanvasSidebar .nav-link.active {
  background-color: #e9f3ff;
  color: #0d6efd !important;
  font-weight: 600;
  border-left: 4px solid #0d6efd;
  border-color: #bcd9ff;
}

#offcanvasSidebar .nav-link i {
  min-width: 22px;
  text-align: center;
  font-size: 1.1rem;
  margin-right: 0.4rem;
}
/* ─────────────────────────────────────────────── */
/* RESPONSIVE HERO SECTION                         */
/* ─────────────────────────────────────────────── */

/* Général : desktop/tablettes */
.hero {
  min-height: 65vh;
  padding-top: 8rem;   /* Évite que le menu recouvre le h1 */
  padding-bottom: 4rem;
  text-align: center;
}

/* ———————— MOBILE ———————— */
@media (max-width: 768px) {

 .video-background {
    height: 120vh;    /* ← couvre hero + formulaire */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
  }

  .video-background video {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }


  /* — HERO — */
  .hero {
    min-height: 100vh;      /* Hero = 100% de la hauteur visible */
    padding-top: 6rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Titre plus petit */
  .hero h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }

  /* Sous-titre */
  .hero p.lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Formulaire */
  #searchForm {
    width: 100%;
  }

  #searchForm .form-control,
  #searchForm .form-select {
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
  }

  /* Bouton */
  #searchForm button {
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
  }
}

/* ———————— TRÈS PETITS TÉLÉPHONES ———————— */
@media (max-width: 480px) {

  .hero {
    padding-top: 5rem;
    min-height: 100vh; /* l’ensemble devient hyper lisible */
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p.lead {
    font-size: 0.95rem;
  }

  #searchForm .col-md-5,
  #searchForm .col-md-4,
  #searchForm .col-md-3 {
    width: 100%;
  }
}
/* ============================================================
   OPTION 2 — CTA "Se connecter" en bas du menu mobile
   ============================================================ */
@media (max-width: 768px) {

  /* Menu mobile en mode glass propre */
  .navbar-collapse {
    padding: 1.5rem 1rem;
    backdrop-filter: blur(20px);
    border-radius: 18px;
  }

  /* Espacement des liens */
  .navbar-nav .nav-item {
    margin-bottom: 0.8rem;
  }

  /* Bloc CTA en bas du menu */
  .auth-links {
    width: 100%;
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);

    display: flex;
    justify-content: center;
  }

  /* Style du bouton CTA */
  .auth-links .btn {
    width: 100%;
    max-width: 260px;
    background: rgba(0, 225, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 35px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
  }

  .auth-links .btn:hover {
    background: #00e1ff;
    color: #000;
    transform: translateY(-2px);
  }
}
/* ───────────────────────────────────────────────────────────── */
/* === RESPONSIVE FOOTER (AJOUTER À LA FIN DU CSS) === */
/* ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* 1. Ajustement de la boîte Glass sur mobile */
  .footer-glass {
    padding: 2rem 1.5rem !important; /* Un peu moins de padding sur les côtés */
    gap: 2.5rem !important; /* Plus d'espace entre les sections empilées */
  }

  /* 2. Titres soulignés discrètement pour séparer visuellement */
  .footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
  }
  
  /* Petite ligne décorative sous les titres sur mobile uniquement */
  .footer-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #00e1ff; /* Ta couleur cyan */
    margin: 5px auto 0 auto; /* Centré */
    opacity: 0.7;
  }

  /* 3. Liens du menu plus faciles à cliquer */
  .footer-link {
    display: block;
    padding: 5px 0; /* Zone de clique agrandie verticalement */
    font-size: 1.05rem;
  }

  /* 4. Gestion du Copyright en bas */
  .footer-bottom {
    font-size: 0.8rem;
    padding: 0 1rem;
  }
  
  .footer-bottom br {
    display: block; /* Force le retour à la ligne sur mobile */
    margin-bottom: 5px;
  }
}
