/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /*padding-top: 80px;  espace en haut égal à la hauteur du navbar */
  font-family: Arial, sans-serif;
}
/* Mise à jour de la navbar */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #003366;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Partie gauche : les liens */
.nav-links.left {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links.left li a {
  color: white ;
  text-decoration: none;
  font-size: 1em;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
}

/* Effet au survol ET soulignement */
.nav-links.left li a:hover,
.nav-links.left li a:focus {
  color: #FFD700;
}

.nav-links.left li a:hover::after,
.nav-links.left li a:focus::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background-color: #FFD700;
  border-radius: 2px;
}

/* Lien actif = celui cliqué (ou marqué comme actif) */
.nav-links.left li a.active {
  color: #FFD700;
}

.nav-links.left li a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 3px;
  background-color: #FFD700;
  border-radius: 2px;
}

/* Partie droite : logo + bouton */
.right-side {
  display: flex;
  align-items: center;
  gap: 20px; /* réduit un peu pour test */
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  height: 50px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.5em;
  font-weight: bold;
  color: #1d3557;
}

/* Bouton Postuler */
.btn-postuler {
  background-color: #FFD700;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.btn-postuler:hover {
  background-color: #FFD700;
}












.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
  position: relative;
}

.burger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* === Responsive MOBILE === */
/* === Responsive MOBILE === */
@media (max-width: 768px) {
  .burger {
    display: flex;
    position: relative;
    z-index: 1101;
  }

  .nav-links.left {
    position: fixed;
    top: 0;
    right: 0;
    width: 140px; /* ↩️ Réduit la largeur pour l'ajuster aux liens */
    height: 100vh;
    background-color: #003366;
    flex-direction: column;
    padding-top: 70px;
    padding-left: 10px; /* 🔄 Pour coller les liens à gauche */
    z-index: 1100;
    display: none;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }
  

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

  .nav-links.left a {
    color: white;
    text-decoration: none;
    padding: 12px 8px; /* 🔄 réduit padding horizontal */
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
  }

  .nav-links.left a:hover {
    background-color: #005199;
    border-radius: 4px;
  }

  .right-side {
    display: flex;
    gap: 20px;
  }
}
.header-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 45, 219, 0.4);
  z-index: 1;
}
/* Petit ordinateur / tablette large */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Navbar moins large en padding */
  .navbar {
    padding: 0 20px;
  }

  /* Les liens du menu : police plus petite et moins d'espacement */
  .nav-links.left {
    gap: 12px;
  }

  .nav-links.left li a {
    font-size: 0.9em;
    padding: 6px 10px;
  }

  /* Bouton Postuler : plus compact */
  .btn-postuler {
    padding: 8px 16px;
    font-size: 0.9em;
  }

  /* Logo : réduit légèrement */
  .logo-img {
    height: 40px;
  }

  .brand-name {
    font-size: 1.2em;
  }

  /* On cache le burger (puisqu'on reste en mode desktop) */
  .burger {
    display: none !important;
  }

  /* On s’assure que les liens sont visibles horizontalement */
  .nav-links.left {
    display: flex !important;
    position: static;
    background: none;
    height: auto;
    padding: 0;
    box-shadow: none;
  }
}


.container {
  max-width: 700px;
  margin: auto;
  background: white;
  margin: 100px auto 0 auto;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #1a237e;
}

fieldset {
  border: 1px solid #ddd;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
}

legend {
  font-weight: bold;
  color: #333;
  padding: 0 10px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

button {
  display: block;
  width: 100%;
  background: #1a237e;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #3949ab;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

/* --- Mobile & petites tablettes (max 768px) --- */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px 20px;
    box-shadow: none; /* simplifier pour mobile */
  }

  h1 {
    font-size: 20px;
  }

  fieldset {
    padding: 10px;
  }

  input, select, textarea {
    font-size: 13px;
    padding: 8px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }
}

/* --- Tablette / petit ordinateur (769px à 1024px) --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    max-width: 90%; /* occupe plus de largeur */
    padding: 20px;
  }

  h1 {
    font-size: 22px;
  }

  input, select, textarea {
    font-size: 14px;
    padding: 9px;
  }

  button {
    font-size: 15px;
  }
}


/* Footer général */
.site-footer {
  background-color: #001b49;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 40px 20px 20px;
  box-shadow: inset 0 5px 10px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Conteneur principal */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

/* Logo */
.footer-logo img {
  max-width: 150px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.footer-logo img:hover {
  transform: scale(1.1);
}

/* Sections du footer */
.footer-nav, .footer-contact, .footer-social {
  flex: 1 1 200px;
}

/* Titres */
.footer-nav h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 18px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-bottom: 2px solid #00a3dd;
  padding-bottom: 8px;
}

/* Listes */
.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li,
.footer-contact ul li {
  margin-bottom: 12px;
}

/* Liens */
.footer-nav a,
.footer-contact a {
  color: #cfd9e9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #FFD700;
}

/* Icones dans contact */
.footer-contact i {
  margin-right: 8px;
  color: #00a3dd;
  min-width: 20px;
  text-align: center;
}

/* Section réseaux sociaux */
.footer-social .social-icons {
  display: flex;
  gap: 20px;
}

.footer-social .social-icons a {
  color: #cfd9e9;
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #00a3dd;
  transform: scale(1.2);
}

/* Bas du footer */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  font-size: 14px;
  color: #8293b3;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }
  .footer-nav, .footer-contact, .footer-social {
    flex: unset;
    width: 100%;
    max-width: 400px;
    text-align: center;
  }
  .footer-contact ul li {
    justify-content: center;
  }
  .footer-contact i {
    margin-right: 5px;
  }
  .footer-social .social-icons {
    justify-content: center;
  }
}
/* === Responsive FOOTER pour tablettes / petits PC (769px → 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer {
    padding: 40px 20px; /* réduit un peu le padding général */
  }

  .footer-container {
    max-width: 900px;   /* plus étroit */
    gap: 30px;          /* espace réduit entre les blocs */
  }

  .footer-logo img {
    max-height: 45px;   /* logo un peu plus petit */
  }

  .footer-nav h4,
  .footer-contact h4,
  .footer-social h4 {
    font-size: 15px;    /* titres réduits */
  }

  .footer-nav a,
  .footer-contact p,
  .footer-social a {
    font-size: 14px;    /* texte plus compact */
  }

  .footer-social .social-icons a {
    font-size: 18px;    /* icônes légèrement réduites */
  }
}

