/* Reset et variables */
:root {
    --primary-color: #02335e;
    --secondary-color: #ebeae5;
    --accent-color: #f7f7f5;
    --light-color: #292625fa;
    --dark-color: #3e3e36;
    --text-color: #013a60;
    --text-light: #01394b;
    --white: #011f48;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
/* Style pour la navigation */
nav .nav-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* Style pour le bouton Candidater */
.header-candidature-btn {
  padding: 8px 20px;
  background-color: #02486d;
  color: white !important;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #01376c;
  white-space: nowrap;
  font-size: 0.95rem;
  height: fit-content;
}

.header-candidature-btn:hover {
  background-color: #034279 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(1, 59, 114, 0.973);
  border-color: #013b75;
}

/* Responsive */
@media (max-width: 992px) {
  nav .nav-wrapper {
    gap: 15px;
  }
  
  nav ul {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  nav .nav-wrapper {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
  }
  
  .header-candidature-btn {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}
/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
  margin-top: 110px;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(); 
  z-index: 1;
  opacity:2
}

.hero .container {
  position: relative;
  z-index: 2;
  color: white; /* Changez la couleur du texte si nécessaire */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 140px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

/* Boutons */
.btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.btn-primary:hover {
    background-color: #012b47;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(17, 10, 163, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--primary-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col p {
    margin: 15px 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(233, 225, 225, 0.1);
    border-radius: 40%;
    color: var(--white);
    text-align: center;
    line-height: 40px;
    margin-right: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-10px);
}

.footer-bottom {
    text-align: center;
    padding-top: 50px;
    border-top: 1px solid rgba(184, 176, 176, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: var(--transition);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 15px 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}
.social-links a i {
    font-size: 25px;
  }
  
  .intro {
    background-color: #02254f;
    padding: 60px 20px;
    color: #022f59;
  }
  .hero {
  background: url('banniere4.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  z-index: 1;
}

.hero .container {
  z-index: 2;
  position: relative;
}

  
  
  form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  form input,
  form textarea {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #f4efef;
    background-color: #f9f9f9;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
  }
  
  form input:focus,
  form textarea:focus {
    border-color: #f1f1f5;
    box-shadow: 0 0 0 3px rgba(10, 3, 70, 0.1);
    background-color: #fff;
  }
  
  form textarea {
    resize: vertical;
    min-height: 120px;
  }
  

  
    /* Styles pour les formations avec effet de survol */
    .formations-wrapper {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
      margin-top: 50px;
      position: relative;
    }
    
    .formation-card {
      background: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      width: 300px;
      transition: all 0.3s;
      border-top: 4px solid var(--accent-color);
      position: relative;
      cursor: pointer;
    }
    
    .formation-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
    
    .formation-card h3 {
      color: var(--primary-color);
      font-size: 1.5rem;
      margin-bottom: 20px;
      text-align: center;
    }
    
    /* Styles pour la liste cachée des formations */
    .formation-list {
      list-style: none;
      padding: 0;
      margin: 0;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: all 0.5s ease;
      position: relative;
    }
    
    .formation-card:hover .formation-list {
      max-height: 500px;
      opacity: 1;
      margin-top: 15px;
    }
    
    .formation-item {
      padding: 12px 15px;
      background-color: var(--light-gray);
      margin-bottom: 10px;
      border-radius: 8px;
      font-size: 0.95rem;
      transition: all 0.3s;
      transform: translateX(-20px);
      opacity: 0;
      animation: slideInItems 0.3s ease forwards;
    }
    
    .formation-card:hover .formation-item {
      animation: slideInItems 0.3s ease forwards;
    }
    
    .formation-card:hover .formation-item:nth-child(1) { animation-delay: 0.1s; }
    .formation-card:hover .formation-item:nth-child(2) { animation-delay: 0.2s; }
    .formation-card:hover .formation-item:nth-child(3) { animation-delay: 0.3s; }
    .formation-card:hover .formation-item:nth-child(4) { animation-delay: 0.4s; }
    .formation-card:hover .formation-item:nth-child(5) { animation-delay: 0.5s; }
    .formation-card:hover .formation-item:nth-child(6) { animation-delay: 0.6s; }
    .formation-card:hover .formation-item:nth-child(7) { animation-delay: 0.7s; }
    .formation-card:hover .formation-item:nth-child(8) { animation-delay: 0.8s; }
    .formation-card:hover .formation-item:nth-child(9) { animation-delay: 0.9s; }
    
    @keyframes slideInItems {
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }
    
    .formation-item:hover {
      background-color: rgba(0, 136, 209, 0.1);
      transform: translateX(5px);
    }
    
    /* Indicateur de survol */
    .formation-card::after {
      content: "";
      position: absolute;
      bottom: 15px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.8rem;
      color: var(--accent-color);
      opacity: 0.7;
      transition: all 0.3s ease;
    }
    
    .formation-card:hover::after {
      opacity: 0;
    }
  .custom-center {
    justify-content: center;
    justify-items: center;
  }
  
  
  .text-center {
    text-align: center;
  }
  
  .btn {
    display: inline-block;
    margin: 0 auto;
    /* Conserve tous tes autres styles existants pour .btn */
    background: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    cursor: pointer;
  }
  
  .btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 236, 236, 0.1);
  }

  /* Page Candidature */
.recruitment-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .recruitment-form {
    padding: 20px;
  }
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 50px 0 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: white;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

/* Effets au survol pour tous les liens de contact */
.footer-column a:hover {
  color: var(--accent-color) !important;
  text-decoration: underline !important;
  transition: all 0.3s ease;
}

/* Style des icônes */
.footer-column i[class^="fa-"] {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}


.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-5px);
}

.copyright {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Styles */
header {
  background-color: rgb(245, 246, 247);
  padding: 5px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: auto;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  padding: 10px 0;
  position: relative;
}
#logo-link {
  display: inline-block;
  cursor: pointer;
}

#logo-link:hover .logo {
  transform: scale(1.1) rotate(-2deg);
  transition: all 0.3s ease;
}

/* Petit effet bounce au clic */
.logo-clicked {
  animation: bounceLogo 0.5s;
}

@keyframes bounceLogo {
  0% { transform: scale(1); }
  30% { transform: scale(1.2); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.header-candidature-btn {
  background: var(--primary-color);
  color: rgb(235, 228, 228);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  margin-left: 20px;
  transition: all 0.3s;
}

.header-candidature-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Style des liens de contact */
.contact-link {
  color: inherit; /* Garde la couleur du texte parent */
  text-decoration: none; /* Supprime le soulignement */
  transition: all 0.3s ease; /* Animation fluide */
  margin-left: 8px; /* Espace après l'icône */
}

/* Effet au survol */
.contact-link:hover {
  color: var(--accent-color); /* Couleur d'accent au survol */
  text-decoration: underline; /* Soulignement léger */
}

/* Style des icônes */
.contact-info i {
  width: 20px; /* Largeur fixe pour l'alignement */
  text-align: center; /* Centrage des icônes */
  color: var(--primary-color); /* Couleur des icônes */
}
/* Footer Styles (déjà fourni précédemment) */

.concours-photos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  flex-wrap: wrap;
}

.concours-photos img {
  width: 300px; /* Largeur fixe pour chaque image */
  height: 200px; /* Hauteur fixe */
  object-fit: cover; /* Pour conserver les proportions */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.concours-photos img:hover {
  transform: scale(1.03);
}


/* Section À propos */
.a-propos {
  background-color: var(--light-gray);
  padding: 80px 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.expertise-card {
  background: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  border-top: 4px solid var(--accent-color);
}

.expertise-card:hover {
  transform: translateY(-10px);
}

.expertise-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.expertise-content {
  line-height: 1.8;
}

.expertise-list {
  padding-left: 20px;
  margin-top: 15px;
}

.expertise-list li {
  margin-bottom: 10px;
  position: relative;
}

.expertise-list li::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.quality-definition {
  font-style: italic;
  position: relative;
  padding-left: 20px;
  margin-top: 20px;
}



.afnor {
  display: block;
  font-size: 0.8rem;
  text-align: right;
  margin-top: 5px;
  color: var(--dark-gray);
}

@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
}
/* Section Taux de réussite */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.stats-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stats-header {
    background: #021756;
    color: white;
    padding: 15px 20px;
}

.stats-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.stat-item:nth-child(2n) {
    border-right: none;
}

.stat-item:nth-child(n+3) {
    border-bottom: none;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #040d60;
    margin-bottom: 5px;
}

.stat-value.highlight {
    color: #05266c;
    font-size: 2rem;
}

.stat-label {
    color: #040a0a;
    font-size: 0.95rem;

    /* Responsive */
@media (max-width: 500px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .stat-item:nth-child(n+3) {
        border-bottom: 1px solid #eee;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    header.scrolled {
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}

}

#scrollTopBtn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #013558, #3b82f6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(1, 53, 88, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) rotate(0deg);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

#scrollTopBtn:hover {
  background: linear-gradient(135deg, #3b82f6, #013558);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
  transform: translateY(-4px) scale(1.1);
}

#scrollTopBtn:active {
  transform: scale(0.95);
}

/* Effet de pulse autour du bouton */
#scrollTopBtn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
}

