

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

body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}



/* 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;
}

/* Navbar transparente en haut */
.navbar.transparent {
  background-color: transparent;
  box-shadow: none;
}

.navbar.transparent .nav-links.left li a,
.navbar.transparent .brand-name {
  color: white;
}

.navbar.transparent .nav-links.left li a.active::after {
  background-color: white;
}

.navbar.transparent .btn-postuler {
  background-color: white;
  color: #1d3557;
}

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



.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;
  }
}

/* Header : offre responsive */
.offre-header {
  position: relative;
  text-align: center;
  color: white;
}

/* Image de bannière avec hauteur fluide */
.offre-banner {
  width: 100%;
  height: clamp(250px, 40vw, 400px); /* min 250px, max 700px, proportionnelle à la largeur */
  object-fit: cover;
  filter: brightness(70%);
  transition: height 0.3s ease;
}

/* Contenu centré sur l'image, avec position fluide */
.offre-header-content {
  position: absolute;
  top: 55%; /* légèrement descendu */
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%; /* éviter débordement sur petits écrans */
  text-align: center;
  padding: 0 10px;
}

.offre-header-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.flag {
  width: 50px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .offre-banner {
    height: 300px;
    width: 100%;
    object-fit: cover;
    object-position: center 30%;
  }

  .offre-header-content h1 {
    font-size: 2rem;
    margin-top: 17px; 
  }

  .flag {
    width: 35px;
  }
  .offre-header-content {
    margin-top: 10px; /* optionnel, tu peux jouer avec la valeur */
  }
}


/* TABLETTE (769px → 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .offre-banner {
    height: 220px; /* légèrement plus petite que desktop */
  }
  .offre-header-content h1 {
    font-size: 2rem;
  }
  .flag {
    width: 40px;
  }
}

/* PETIT PC / GRAND MOBILE (1025px → 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .offre-banner {
    height: 260px;
  }
  .offre-header-content h1 {
    font-size: 2.2rem;
  }
  .flag {
    width: 45px;
  }
}

/* === TEXTE PROVENANT DE LA BASE DE DONNÉES (MOBILE) === */
@media (max-width: 768px) {

  /* Conteneur du texte DB */
  .offre-container section > div {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    word-break: break-word;
  }

  /* Paragraphes */
  .offre-container section > div p {
    margin-bottom: 12px;
  }

  /* Listes */
  .offre-container section > div ul,
  .offre-container section > div ol {
    padding-left: 18px;
    margin: 10px 0;
  }

  .offre-container section > div li {
    margin-bottom: 6px;
  }

  /* Texte en gras / italique */
  .offre-container section > div strong {
    font-weight: 600;
  }

  .offre-container section > div em {
    font-style: italic;
  }

  /* Éléments injectés (images, iframes…) */
  .offre-container section > div img,
  .offre-container section > div iframe {
    max-width: 100%;
    height: auto;
  }

}


/* Container principal avec navbar à gauche et contenu à droite */
.offre-main-container {
  display: flex;
  gap: 30px;       /* espace entre navbar et contenu */
  max-width: 1200px;
  margin: 20px auto 40px auto; /* centrer horizontalement et ajouter espace */
  padding: 0 20px;
}

/* Mini-navbar verticale à gauche */
.offre-subnav-left {
  position: sticky;      /* reste collée dans sa zone */
  top: 20px;             /* distance depuis le haut */
  padding: 15px 0;
  height: fit-content;
}

/* Liste */
.offre-subnav-left ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Éléments */
.offre-subnav-left ul li {
  margin-bottom: 20px;   /* plus d’espace entre les liens */
}

/* Liens */
.offre-subnav-left ul li a {
  text-decoration: none;
  color: black;        /* couleur principale */
  font-weight: 600;
  font-size: 1.2rem;     /* texte plus grand */
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s, transform 0.2s;
}

/* Hover sur chaque lien */
.offre-subnav-left ul li a:hover {
  color: black;        /* nuance plus foncée au survol */
  transform: translateX(3px); /* petit déplacement léger */
  background: rgba(0, 123, 255, 0.05); /* léger survol très subtil */
}

.offre-subnav-left ul li a:hover {
  color: #007bff;
}

/* Contenu principal à droite */
.offre-container {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.offre-container section {
  margin-bottom: 40px;
}

.offre-container h2 {
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* Bouton postuler */
.apply-section {
  text-align: center;
  margin: 30px 0;
}

.apply-btn {
  background: #007bff;
  color: white;
  padding: 16px 32px; /* ⬅️ PLUS D'ESPACE */
  border: none;
  border-radius: 8px; /* un peu plus arrondi */
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: background 0.3s;
}


.apply-btn:hover {
  background: #0056b3;
}
/* === MOBILE (max 768px) === */
@media (max-width: 768px) {
  .offre-main-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
  }

  /* Mini-navbar au-dessus du contenu */
  .offre-subnav-left {
    position: relative;
    top: 0;
    display: flex;
    justify-content: center;
    padding: 10px 0;
  }

  .offre-subnav-left ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .offre-subnav-left ul li {
    margin-bottom: 0;
  }

  .offre-subnav-left ul li a {
    font-size: 14px;
    padding: 6px 10px;
  }

  /* Contenu principal */
  .offre-container {
    padding: 15px;
  }

  .offre-container h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  /* Header */
  .offre-header-content h1 {
    font-size: 1rem;
  }

  /* Header */
  .offre-header-content p {
    font-size: 1rem;
  }
  .flag {
    width: 35px;
  }

  /* Bouton postuler */
  .apply-btn {
    width: 100%;
    padding: 14px 16px; /* ⬅️ plus d’espace intérieur */
    font-size: 14px;
    line-height: 1.4;
  }
}

/* === TABLETTE / PETIT PC (769px → 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  .offre-main-container {
    flex-direction: row;
    gap: 20px;
    max-width: 900px;
    padding: 0 20px;
  }

  .offre-subnav-left {
    top: 15px;
    padding: 10px 0;
  }

  .offre-subnav-left ul li a {
    font-size: 1rem;
    padding: 6px 8px;
  }

  .offre-container {
    padding: 15px;
  }

  .offre-container h2 {
    font-size: 1.4rem;
  }

  .offre-header-content h1 {
    font-size: 2rem;
  }

  .flag {
    width: 40px;
  }

  .apply-btn {
    padding: 10px 20px;
    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 */
  }
}









