/* 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 AVEC IMAGE */
.header-section {
    position: relative;
    height: 350px; /* hauteur réduite */
    background-image: url('../image/img1.jpg'); /* ton image ici */
    background-size: cover;
    background-position: center;
}
.header-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 2;
}
.header-overlay h1 {
    margin: 0;
    font-size: 60px;
    animation: fadeIn 1.5s ease-in-out ,  fadeUp 2s ease forwards;
}
.fade-in-up {
  animation: fadeUp 1s ease forwards;
}

.header-overlay p {
    margin: 5px 0 0;
    font-size: 18px;
    color: #FFD700;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeUp 1.5s ease forwards;
}

/* CONTENU OFFRES */


/* BARRE DE RECHERCHE OFFRES */
.offres-search {
    width: 80%;               /* même largeur que les offres */
    max-width: 800px;         /* largeur max pour grands écrans */
    margin: 30px auto;        /* centré verticalement et horizontalement */
    display: flex;            /* champ + bouton sur la même ligne */
    justify-content: center;
    gap: 10px;                /* espace entre le champ et le bouton */
}

.offres-search input[type="text"] {
    flex: 1;                  /* prend tout l'espace disponible */
    padding: 12px 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.offres-search input[type="text"]:focus {
    border-color: orange;
    box-shadow: 0 0 5px rgba(255,165,0,0.5);
}

.offres-search button {
    background-color: orange;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.offres-search button:hover {
    background-color: #ffb84d;
    transform: scale(1.05);
}

/* === Responsive HEADER & SEARCH === */

/* 📱 Mobile (max 768px) */
@media (max-width: 768px) {
  .header-section {
    height: 220px; /* moins haut pour petits écrans */
  }

  .header-overlay h1 {
    font-size: 28px; /* titre réduit */
  }

  .header-overlay p {
    font-size: 14px;
  }

  .offres-search {
    flex-direction: column; /* input + bouton en colonne */
    width: 90%;
    margin: 20px auto;
  }

  .offres-search input[type="text"] {
    font-size: 16px;
    padding: 10px;
    border-radius: 6px;
  }

  .offres-search button {
    width: 100%; /* bouton prend toute la largeur */
    font-size: 16px;
    padding: 10px;
  }
}

/* 💻 Tablettes / petits PC (769px → 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-section {
    height: 280px; /* un peu moins haut que desktop */
  }

  .header-overlay h1 {
    font-size: 40px; /* taille intermédiaire */
  }

  .header-overlay p {
    font-size: 16px;
  }

  .offres-search {
    width: 85%;
    gap: 8px;
  }

  .offres-search input[type="text"] {
    font-size: 16px;
    padding: 10px 12px;
  }

  .offres-search button {
    font-size: 16px;
    padding: 10px 18px;
  }
}

.offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    margin: 0 auto 15px; /* auto à gauche/droite pour centrer */
    background: white;
    width: 80%; /* largeur relative */
}

.offer img {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    border-radius: 8px;
}
.offer-info {
    flex: 1;
}
.offer-title {
    font-weight: bold;
    font-size: 25px;
    margin-bottom: 5px;
}
.offer-details {
    font-size: 20px;
    color: green;
}
.deadline {
    font-size: 20px;
    color: black;
    margin-top: 5px;
}

.titre-centre {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin: 20px 0;
    position: relative;
    color: #003366;
}

.titre-centre::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: orange;
    margin: 8px auto 0;
    border-radius: 2px;
}
.offer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;  /* centre le drapeau et le bouton */
    gap: 10px;            /* espace entre le drapeau et le bouton */
}

.offer-actions .flag {
    height: 50px;
    width: auto;
}
.apply-btn {
    background-color: orange;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none; 

    /* Animation en boucle */
    animation: pulse 1.5s infinite;
}

/* Définition de l'animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 165, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 165, 0, 0.7);
    }
}



/* 🌐 Grand écran (aucun changement, juste pour contrôle) */
@media (min-width: 1200px) {
    .offer {
        width: 80%;
        padding: 30px;
    }
}

/* 💻 Écrans moyens (petits PC, tablettes) */
@media (max-width: 1199px) and (min-width: 768px) {
    .offer {
        width: 95%;
        padding: 20px;
    }
    .offer img {
        width: 80px;
        height: 80px;
    }
    .offer-title {
        font-size: 22px;
    }
    .offer-details, .deadline {
        font-size: 18px;
    }
    .apply-btn {
        padding: 10px 16px;
        font-size: 15px;
    }
    .offer-actions .flag {
        height: 40px;
    }
}

/* 📱 Téléphones */
@media (max-width: 767px) {
    .offer {
        width: calc(100% - 20px);
        padding: 15px;
        align-items: center;
        padding: 15px;
    }
    
    .offer img {
        width: 80px;
        height: 80px;
    }
    .offer-title {
        font-size: 13px;
    }
    .offer-details, .deadline {
        font-size: 14px;
    }
    .apply-btn {
        padding: 8px 16px;
        font-size: 10px;
    }
    .offer-actions .flag {
        height: 40px;
    }
}







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









