body {
    margin: 0;
    padding-top: 80px;
    font-family: 'Arial', sans-serif;
    background: hsl(0, 0%, 100%); /* Change de #f5f5f5 à #000 pour un vrai noir */
    color: #333;
  }
  
  
  body, html {
    overflow-x: hidden;
  }
  

  .hero {
    background-image: url('images/bg1.png'); /* PREMIER fond directement */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
  }
  
  
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
  }
  
  .logo {
    height: 100px;
    margin-bottom: 20px;
  }
  
  .hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ffffff; /* <-- Ajout pour blanc pur */
  }
  
  
  .hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
  }
  
  .hero-buttons a {
    margin: 10px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
  }
  
  .btn {
    background-color: #f1c40f;
    color: #000;
  }
  
  .btn-outline {
    border: 2px solid #f1c40f;
    color: #f1c40f;
    background: transparent;
  }
  
  /* SECTIONS */
  section {
    padding: 60px 20px;
    text-align: center;
  }
  
  .about, .staff, .candidature {
    max-width: 900px;
    margin: auto;
  }
  
  .staff-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .staff-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 150px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .staff-card img {
    width: 100px;
    border-radius: 50%;
  }
  
  /* NAVBAR */
  .navbar {
    width: 100%;
    background-color: #111;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    z-index: 1000;
  }
  
  .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-left img {
    height: 50px;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-grow: 1;
    justify-content: flex-start; /* Décale vers la gauche */
    margin-left: 50px; /* Tu peux ajuster ici la distance */
  }
  
  
  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 12px;
    transition: 0.3s;
  }
  
  .nav-links a:hover {
    color: #f1c40f;
  }
  
  .btn-green {
    background: linear-gradient(90deg, #11998e, #38ef7d);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
  }
  
  .btn-green:hover {
    opacity: 0.9;
  }
  
  /* FOOTER */
  footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px 10px;
  }
  
  /* FORMULAIRE CANDIDATURE ULTRA JOLI */
  .candidature {
    background: #f0f2f5;
    padding: 60px 40px;
    border-radius: 20px;
    max-width: 1000px; /* Beaucoup plus large */
    margin: 80px auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  
  
  .candidature h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  form input, form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
  }
  
  form input:focus, form textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    outline: none;
  }
  
  form button {
    padding: 15px;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  form button:hover {
    background: linear-gradient(90deg, #1abc9c, #3498db);
  }
  
  .legal-footer {
    background: #111;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    font-size: 14px;
  }
  
  .legal-footer p {
    margin: 10px 0;
  }
  
  .legal-logo img {
    margin-bottom: 30px;
  }
  
  .legal-links {
    margin: 20px 0;
  }
  
  .legal-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
  }
  
  .legal-links a:hover {
    color: #f1c40f;
  }
  
  .legal-pegi {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .legal-pegi img {
    height: 60px;
    background: #222;
    padding: 8px;
    border-radius: 10px;
  }
  
  /* PAGE STAFF AMÉLIORÉE */
.staff-page {
    padding: 50px 20px 80px 20px;
    text-align: center;
    background: #ffffff;
    min-height: 100vh;
  }
  
  .staff-page h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #292828;
  }
  
  .staff-subtitle {
    font-size: 18px;
    margin-bottom: 50px;
    color: #292828;
  }
  
  .staff-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .staff-card {
    background: #1c1c1c;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    width: 220px;
    transition: transform 0.3s ease;
  }
  
  .staff-card:hover {
    transform: translateY(-10px);
  }
  
  .staff-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #f1c40f;
  }
  
  .staff-card h3 {
    color: white;
    margin-bottom: 5px;
  }
  
  .role {
    color: #bbb;
  }
  
  form input, form textarea {
    width: 100%;
    max-width: 900px;
    margin: auto;
  }
  

  .form-step {
    display: none;
    flex-direction: column;
    gap: 20px;
  }
  
  .form-step.active {
    display: flex;
  }
  
  .form-navigation {
    display: flex;
    justify-content: space-between;
  }
  
  .next-btn, .prev-btn, .submit-btn {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .next-btn:hover, .prev-btn:hover, .submit-btn:hover {
    background: #2980b9;
  }
  

  .form-step {
    display: none;
  }
  
  .form-step.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  
  

header.navbar {
  width: 100%;
  background-color: #111;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px; /* <-- hauteur fixe ! */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.nav-logo {
  height: 50px; /* <-- réduit ton logo */
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  padding: 8px 12px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #f1c40f; /* Jaune au survol */
}



.progress-container {
  width: 100%;
  background: #ddd;
  height: 10px;
  border-radius: 50px;
  margin: 10px 0 30px 0;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #11998e, #38ef7d);
  transition: width 0.5s ease;
}


.progress-message {
  margin-top: 10px;
  font-weight: bold;
  color: #38ef7d; /* Vert flashy */
  text-align: center;
  display: none;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #38ef7d;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader p {
  font-size: 18px;
  color: #333;
}

.merci {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f5f5f5;
  padding: 20px;
}

.merci h1 {
  color: #2ecc71;
  margin-bottom: 20px;
}

.merci p {
  font-size: 18px;
  margin-bottom: 30px;
}

.merci .btn {
  background-color: #3498db;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* Styles rapides CFX */
.cfx-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.cfx-content {
  background: #222;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.cfx-content input {
  width: 80%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
}

/* Style rapide CFX */
.cfx-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.cfx-content {
  background: #1c1c1c;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  text-align: center;
}
.cfx-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
}
.cfx-content button {
  margin-top: 10px;
  padding: 10px 20px;
  background: linear-gradient(90deg, #11998e, #38ef7d);
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}
.nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-user span {
  font-weight: bold;
  color: #38ef7d;
}
.nav-user button {
  background: #333;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.nav-user button:hover {
  background: #555;
}



/* RESET NAV */
.navbar {
  background-color: #0f0f0f;
  padding: 10px 20px;
}

.nav-main {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: bold;
  color: orange;
  text-decoration: none;
  padding: 12px 18px;
  transition: 0.3s;
  cursor: pointer;
}

.nav-link:hover {
  color: white;
}

.arrow {
  font-size: 12px;
  margin-left: 5px;
  transition: transform 0.2s ease-in-out;
}

/* MENU DÉROULANT */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(to bottom, #1a1a1a, #0f0f0f);
  border-radius: 4px;
  padding: 10px 0;
  display: none;
  flex-direction: column;
  min-width: 160px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 100;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.dropdown-menu a:hover {
  background-color: #111;
  color: #38ef7d;
}

/* Affichage on hover */
.nav-item:hover .dropdown-menu {
  display: flex;
}

/* Flèche qui tourne */
.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Menu déroulant Réseaux */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background: none;
  border: none;
  color: #ff9900;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 15px;
  transition: 0.3s ease;
}

.dropbtn:hover {
  color: #ffffff;
  text-shadow: 0 0 5px #ff9900;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: linear-gradient(to bottom, #111, #000);
  min-width: 160px;
  z-index: 999;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
  border-radius: 8px;
  overflow: hidden;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: bold;
  transition: 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #1a1a1a;
  color: #ff9900;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.metier-card.police:hover {
  background: url('images/metiers/police.jpg') no-repeat center center/cover;
  backdrop-filter: blur(3px);
}

.metier-card.ems:hover {
  background: url('images/metiers/ems.jpg') no-repeat center center/cover;
  backdrop-filter: blur(3px);
}

.metier-card.concessionnaire:hover {
  background: url('images/metiers/concessionnaire.jpg') no-repeat center center/cover;
  backdrop-filter: blur(3px);
}

.metier-card.taxi:hover {
  background: url('images/metiers/taxi.jpg') no-repeat center center/cover;
  backdrop-filter: blur(3px);
}

.metier-card.livreur:hover {
  background: url('images/metiers/livreur.jpg') no-repeat center center/cover;
  backdrop-filter: blur(3px);
}

/* Structure */
.navbar {
  background: #0f0f0f;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.nav-logo {
  height: 45px;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a,
.nav-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}

/* Effet soulignement animé */
.nav-links a::after,
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: orange;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-link:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1f1f1f;
  padding: 10px 0;
  top: 100%;
  left: 0;
  min-width: 160px;
  border-radius: 6px;
  z-index: 1000;
}

.dropdown-content a {
  color: white;
  padding: 10px 20px;
  display: block;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #2a2a2a;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Boutons à droite */
.nav-buttons {
  display: flex;
  gap: 10px;
}

.btn-discord {
  background: #38ef7d;
  padding: 8px 14px;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.btn-cfx {
  background: #333;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

/* Effet surlignement animé en orange */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: orange;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
  width: 100%;
}



/* RESPONSIVE DESIGN */

@media screen and (max-width: 1024px) {
  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-grid {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }
}

@media screen and (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 15px; /* avant c'était trop à droite */
    z-index: 1001;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #2c2c2c; /* fond gris visible */
    flex-direction: column;
    display: none;
    padding: 20px;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    color: white;
    padding: 12px;
    border-bottom: 1px solid #444;
  }

  .nav-buttons {
    display: none;
  }
}


  .hero {
    padding: 40px 20px;
  }

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

  .hero p {
    font-size: 1em;
  }

  .staff-card {
    width: 90%;
  }

  .container {
    padding: 15px;
  }

  form input, form textarea {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 1.3em;
  }

  .hero p {
    font-size: 0.9em;
  }

  .nav-links {
    font-size: 12px;
  }

  .btn, .btn-outline, .btn-green {
    padding: 10px 16px;
    font-size: 14px;
  }
}




/* Ajout RESPONSIVE pour corriger navbar et boutons mobiles */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    display: none;
    margin-left: 0;
    padding-top: 20px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    position: absolute;
    top: 22px;
    right: 20px;
    z-index: 9999;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    border-bottom: 1px solid #333;
  }

  .btn-green,
  .btn {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
  }

  /* Cacher le bouton Connexion CFX sur mobile */
  .btn-cfx {
    display: none !important;
  }
}



.menu-toggle {
  display: none;
  font-size: 26px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #444; /* fond gris pour le menu mobile */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }
}




