* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif; /* Application de Poppins comme police principale */
}

/* Style pour le bouton de remontée */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0066cc;
  color: white;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background-color: #0052a3;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn i {
  font-size: 20px;
}

/* Responsive pour le bouton */
@media (max-width: 576px) {
  .scroll-top-btn {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: 20px;
  }
  
  .scroll-top-btn i {
    font-size: 16px;
  }
}


/* ----------------HEADER-------------------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #06325e; /* Couleur bleue */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Assure que le menu reste au-dessus des autres éléments */
}

.main-nav {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px; /* Hauteur fixe du menu */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* Style du conteneur du logo */
.logo-container {
  width: 200px; /* Espace dédié pour le logo */
}

.logo {
  color: white;
  font-size: 24px;
  font-weight: bold;
}

/* Style des liens de navigation */
.nav-links {
  display: flex;
  gap: 30px; /* Espace entre les liens */
  margin-right: 200px; /* Ajout d'une marge à droite pour rapprocher vers le centre */
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 10px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 5px; /* Position du trait sous le texte */
  left: 0;
  width: 0; /* Commence avec une largeur de 0 */
  height: 2px; /* Épaisseur du trait */
  background-color: white;
  transition: width 0.3s ease; /* Animation de la largeur */
}

.nav-link:hover::after {
  width: 100%; /* Le trait s'étend jusqu'à 100% de la largeur */
}

/* Responsive design */
@media (max-width: 768px) {
  .main-nav {
    padding: 0 10px;
  }

  .logo-container {
    width: 150px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-link {
    font-size: 14px;
  }
}

/* D'abord, cacher le bouton hamburger par défaut sur toutes les tailles d'écran */
.mobile-menu-btn {
  display: none; /* Le bouton est caché par défaut */
  color: white;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

/* Ensuite, afficher uniquement sur petits écrans */
@media (max-width: 576px) {
  .mobile-menu-btn {
    display: block; /* Afficher uniquement sur mobile */
  }
  
  .nav-links {
    display: none; /* Cacher les liens par défaut */
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #06325e;
    padding: 20px 0;
    gap: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav-links.show {
    display: flex; /* Montrer les liens quand .show est ajouté via JS */
  }
}

/* ----------------HERO SECTION--------------------------- */
/* Reset de la section hero complète */
/* Section hero en deux moitiés égales */
.hero-section {
  height: calc(100vh - 70px);
  margin-top: 70px;
  display: flex;
  
  overflow: hidden;
}

/* Colonne gauche - texte */
.hero-content {
  width: 50%;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #000000;
  z-index: 5;
}

/* Colonne droite - image */
.hero-background {
  width: 50%;
  height: 100%;
  background-image: url('../images/heroimage.jpeg'); /* Remplace par le bon nom */
  background-size: cover;
  background-position: center;
}

/* Titre */
.hero-content h1 {
  font-size: 50px;
  font-weight: 700;
  color: white;
  margin-bottom: 25px;
  line-height: 1.2;
}

.title-line {
  display: block;
}

.title-line:nth-child(2),
.title-line:nth-child(3) {
  color: #0066cc;
}

/* Paragraphes */
.hero-content p {
  color: white;
  margin-bottom: 15px;
}

.hero-content p:first-of-type {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content p:last-of-type {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Bouton */
.cta-button {
  padding: 15px 30px;
  font-size: 16px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  align-self: flex-start;
  text-transform: uppercase;
}

.cta-button:hover {
  background-color: #0052a3;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-content,
  .hero-background {
    width: 100%;
  }

  .hero-content {
    padding: 40px 20px;
    order: 2;
  }

  .hero-background {
    height: 40vh;
    order: 1;
  }

  .hero-content h1 {
    font-size: 36px;
    text-align: center;
  }

  .hero-content p {
    text-align: center;
  }

  .cta-button {
    align-self: center;
  }
}


/* ----------------HEADER RESPONSIVE AMÉLIORÉ---------------------- */
@media (max-width: 992px) {
  .nav-links {
    margin-right: 50px; /* Réduire la marge à droite sur tablette */
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding: 0 15px;
    height: 60px; /* Menu légèrement moins haut sur mobile */
  }
  
  .logo-container {
    width: 120px;
  }
  
  .logo {
    font-size: 20px;
  }
  
  .nav-links {
    margin-right: 0;
    gap: 10px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 8px 5px;
  }
}

@media (max-width: 576px) {
  /* Pour les très petits écrans, basculer vers un menu hamburger */
  .main-nav {
    height: 50px;
  }
  
  .nav-links {
    display: none; /* Cacher les liens par défaut */
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #06325e;
    padding: 20px 0;
    gap: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .nav-links.show {
    display: flex; /* Montrer les liens quand .show est ajouté via JS */
  }
  
  .mobile-menu-btn {
    display: block; /* Bouton hamburger à créer en HTML */
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }
}

/* ----------------HERO SECTION RESPONSIVE AMÉLIORÉ------------------- */
@media (max-width: 992px) {
  .hero-content {
    max-width: 500px;
    margin-left: 5%;
  }
  
  .hero-content h1 {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: calc(100vh - 60px);
    margin-top: 60px;
  }
  
  .hero-content {
    max-width: 400px;
    padding: 0 30px;
  }
  
  .hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
  }
  
  .hero-content p:first-of-type {
    font-size: 10px;
    margin-bottom: 15px;
  }
  
  .hero-content p:last-of-type {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  .cta-button {
    padding: 15px 25px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .hero-section::before {
    /* Overlay plus sombre pour mobile pour meilleure lisibilité */
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.9) 40%,
      rgba(0, 0, 0, 0.85) 70%,
      rgba(0, 0, 0, 0.7) 100%
    );
  }
  
  .hero-content {
    margin-left: 0;
    padding: 0 20px;
    text-align: center;
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }
  
  .hero-content p:last-of-type {
    font-size: 13px;
  }
  
  .cta-button {
    padding: 12px 20px;
    font-size: 13px;
    width: 80%;
    max-width: 250px;
  }
}


/* ----------------ADVANTAGES SECTION AMÉLIORÉE----------------------- */
.advantages-section {
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  background: linear-gradient(120deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
}

/* Animation d'entrée pour le titre */
.section-title {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  color: #222;
  margin-bottom: 60px;
  position: relative;
  animation: fadeInDown 0.8s ease-out forwards;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0066cc, #3a89e9);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Style des icônes flottantes amélioré */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.icon-float {
  position: absolute;
  opacity: 0.12;
  color: #0066cc;
  filter: drop-shadow(0 2px 5px rgba(0, 102, 204, 0.3));
  transition: opacity 0.5s ease;
}

/* Style des icônes au survol de la section */
.advantages-section:hover .icon-float {
  opacity: 0.18;
}

/* Animation d'apparition des cartes */
.advantages-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 0 20px;
}

.advantage-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(0, 102, 204, 0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.advantage-card:nth-child(1) {
  animation-delay: 0.2s;
}

.advantage-card:nth-child(2) {
  animation-delay: 0.4s;
}

.advantage-card:nth-child(3) {
  animation-delay: 0.6s;
}

.advantage-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 102, 204, 0.15);
  border-color: rgba(0, 102, 204, 0.2);
}

.card-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #0066cc, #0080ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  transition: all 0.5s ease;
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.25);
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.5s ease-out;
}

.advantage-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.advantage-card:hover .card-icon::before {
  transform: scale(1);
}

.card-icon i {
  font-size: 38px;
  color: white;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.advantage-card:hover .card-icon i {
  transform: scale(1.2);
  animation: pulse 1s infinite alternate;
}

.advantage-card h3 {
  color: #0066cc;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  transition: color 0.3s ease;
}

.advantage-card:hover h3 {
  color: #0080ff;
}

.advantage-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  margin: 0;
  padding: 0 10px;
  transition: color 0.3s ease;
}

.advantage-card:hover p {
  color: #222;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}

/* Animation des icônes flottantes optimisée */
@keyframes floating {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(40px, 40px) rotate(8deg);
  }
  50% {
    transform: translate(0, 80px) rotate(-8deg);
  }
  75% {
    transform: translate(-40px, 40px) rotate(8deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Positionnement optimisé des icônes pour éviter les cartes */
/* Groupe gauche */
.icon-float:nth-child(1) {
  font-size: 45px;
  animation: floating 20s infinite ease-in-out;
  top: 5%;
  left: 5%;
}

.icon-float:nth-child(2) {
  font-size: 40px;
  animation: floating 18s infinite ease-in-out reverse;
  top: 25%;
  left: 2%;
}

.icon-float:nth-child(3) {
  font-size: 50px;
  animation: floating 22s infinite ease-in-out;
  top: 45%;
  left: 8%;
}

.icon-float:nth-child(4) {
  font-size: 42px;
  animation: floating 25s infinite ease-in-out reverse;
  bottom: 20%;
  left: 5%;
}

.icon-float:nth-child(5) {
  font-size: 48px;
  animation: floating 23s infinite ease-in-out;
  bottom: 5%;
  left: 10%;
}

/* Groupe droite */
.icon-float:nth-child(6) {
  font-size: 44px;
  animation: floating 21s infinite ease-in-out reverse;
  top: 5%;
  right: 5%;
}

.icon-float:nth-child(7) {
  font-size: 46px;
  animation: floating 19s infinite ease-in-out;
  top: 25%;
  right: 8%;
}

.icon-float:nth-child(8) {
  font-size: 43px;
  animation: floating 24s infinite ease-in-out reverse;
  top: 45%;
  right: 3%;
}

.icon-float:nth-child(9) {
  font-size: 47px;
  animation: floating 26s infinite ease-in-out;
  bottom: 20%;
  right: 7%;
}

.icon-float:nth-child(10) {
  font-size: 45px;
  animation: floating 22s infinite ease-in-out reverse;
  bottom: 5%;
  right: 10%;
}

/* Groupe haut */
.icon-float:nth-child(11) {
  font-size: 41px;
  animation: floating 23s infinite ease-in-out;
  top: 2%;
  left: 25%;
}

.icon-float:nth-child(12) {
  font-size: 49px;
  animation: floating 21s infinite ease-in-out reverse;
  top: 5%;
  left: 45%;
}

.icon-float:nth-child(13) {
  font-size: 46px;
  animation: floating 24s infinite ease-in-out;
  top: 3%;
  right: 35%;
}

/* Groupe bas */
.icon-float:nth-child(14) {
  font-size: 44px;
  animation: floating 20s infinite ease-in-out reverse;
  bottom: 3%;
  left: 35%;
}

.icon-float:nth-child(15) {
  font-size: 48px;
  animation: floating 25s infinite ease-in-out;
  bottom: 5%;
  right: 30%;
}

/* Support pour les écrans avec préférence pour les animations réduites */
@media (prefers-reduced-motion: reduce) {
  .advantage-card,
  .section-title,
  .card-icon,
  .icon-float {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive design amélioré */
@media (max-width: 992px) {
  .advantages-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .advantages-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .advantage-card {
    padding: 35px 25px;
  }

  .card-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px;
  }

  .advantage-card h3 {
    font-size: 22px;
  }

  .advantage-card p {
    font-size: 14px;
  }
}
/* ----------------etapes----------------------------- */
.steps-section {
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  background-color: #074888;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  position: relative;
}

.steps-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 80px;
}

.steps-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.step-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 250px;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

/* Animation délais pour chaque étape */
.step-circle:nth-child(1) {
  animation-delay: 0.2s;
}
.step-circle:nth-child(3) {
  animation-delay: 0.4s;
}
.step-circle:nth-child(5) {
  animation-delay: 0.6s;
}

.circle {
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.circle::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.step-number {
  font-size: 36px;
  font-weight: 700;
  color: #0066cc;
}

.step-circle h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.step-circle p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.5;
}

.connector {
  width: 100px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 15px;
  position: relative;
}

.connector::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: white;
  animation: fillLine 1.5s ease forwards;
  animation-delay: 1s;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes fillLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Hover effects */
.step-circle:hover .circle {
  transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 992px) {
  .steps-container {
    flex-direction: column;
  }

  .connector {
    width: 2px;
    height: 50px;
    margin: 15px 0;
  }

  .step-circle {
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
  }
}

/* ----------------formulaire---------------------------- */
.form-section {
  position: relative;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  background-image: url('../images/heroimage.jpeg');

  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  z-index: 0;
  color: white; /* Pour que le texte reste visible */
}

.form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* overlay noir à 50% */
  z-index: -1;
}

.form-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 50px;
  text-align: center;
}

.form-container {
  width: 100%;
  max-width: 600px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.6s ease forwards;
}


.refundform-container {
  width: 100%;
  max-width: 600px;
  background: #0066cc;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.6s ease forwards;
}

.refundform-container .submit-btn:hover {
  
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);

}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.refundform-group label {
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Style des selects personnalisés */
.custom-select {
  position: relative;
}

.custom-select select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  appearance: none;
  background: white;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #0066cc;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.custom-select select:focus + i {
  transform: translateY(-50%) rotate(180deg);
}

/* Style du groupe input avec toggle */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input {
  width: 100%;
  padding: 15px;
  padding-right: 45px;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #0066cc;
}

.toggle-password:focus {
  outline: none;
  color: #0066cc;
}

/* Focus states */
.custom-select select:focus,
.input-group input:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Bouton de soumission */
.submit-btn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.submit-btn:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}






.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(5px);
}

/* Animation d'apparition */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .form-container {
    padding: 30px 20px;
  }

  .form-title {
    font-size: 28px;
  }

  .submit-btn {
    padding: 15px 25px;
  }
}

/* ----------------FORMULAIRE RESPONSIVE AMÉLIORÉ---------------------- */
@media (max-width: 992px) {
  .form-container {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .form-section {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    padding: 40px 15px;
  }
  
  .form-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .form-container {
    padding: 25px 20px;
  }
  
  .auth-form {
    gap: 20px;
  }
  
  .form-group label {
    font-size: 12px;
  }
  
  .custom-select select,
  .input-group input {
    padding: 12px;
    font-size: 14px;
  }
  
  .submit-btn {
    padding: 14px 20px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .form-section {
    padding: 30px 10px;
  }
  
  .form-title {
    font-size: 24px;
    margin-bottom: 25px;
  }
  
  .form-container {
    padding: 20px 15px;
  }
  
  .auth-form {
    gap: 15px;
  }
  
  .submit-btn {
    width: 100%;
  }
}

/* Orientation landscape sur mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    height: auto;
    min-height: calc(100vh - 50px);
  }
  
  .hero-content {
    padding: 30px 20px;
  }
  
  .form-section {
    min-height: auto;
    padding: 40px 15px;
  }
}
/* Style pour les messages d'erreur */
.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.error-message.visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style pour les inputs en erreur */
.input-group.error input,
.custom-select.error select {
  border-color: #dc3545;
}

.input-group.error .input-icon {
  color: #dc3545;
}

/*second formulaire----------------------------------*/
.contact-section {
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  background-color: #0066cc;
  background-image: linear-gradient(135deg, #0066cc 0%, #004999 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  opacity: 0.9;
}

.contact-container {
  width: 100%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.6s ease forwards;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

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

.form-group.half {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-group {
  position: relative;
  border-radius: 15px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.input-group:focus-within {
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #0066cc;
  font-size: 18px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px;
  padding-left: 45px;
  border: 2px solid transparent;
  border-radius: 15px;
  font-size: 16px;
  color: #333;
  background: transparent;
  transition: all 0.3s ease;
}

.input-group textarea {
  min-height: 150px;
  resize: vertical;
  padding-top: 20px;
}

.input-group textarea + .input-icon {
  top: 20px;
  transform: none;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.error-message.visible {
  display: block;
}

.submit-btn {
  width: 100%;
  background: #0066cc;
  color: white;
  border: none;
  padding: 18px 30px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transition: transform 0.3s ease;
  transform: translateX(-100%);
}

.submit-btn:hover::before {
  transform: translateX(0);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

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

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .contact-container {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
  }
}
/* Ajout d'animations pour la section de contact */

/* Animation du titre et sous-titre */
.section-title {
  opacity: 0;
  animation: fadeInDown 0.8s ease forwards 0.2s;
}

.section-subtitle {
  opacity: 0;
  animation: fadeInDown 0.8s ease forwards 0.4s;
}

/* Animation du formulaire qui apparaît */
.contact-container {
  opacity: 0;
  animation: popIn 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.6s;
}

/* Animation pour chaque groupe de formulaire */
.form-group {
  opacity: 0;
  transform: translateY(20px);
}

.form-row .form-group:nth-child(1) {
  animation: fadeInUp 0.6s ease forwards 0.8s;
}

.form-row .form-group:nth-child(2) {
  animation: fadeInUp 0.6s ease forwards 1s;
}

.form-group:not(.half) {
  animation: fadeInUp 0.6s ease forwards 1.2s;
}

/* Animation pour le bouton d'envoi */
.submit-btn {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards 1.4s;
}

/* Focus sur les champs avec effet de lumière */
.input-group:focus-within {
  background: white;
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
  border: 2px solid rgba(0, 102, 204, 0.3);
  animation: pulseBorder 1.5s infinite;
}

/* Animation du bouton au survol plus dynamique */
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
  background: linear-gradient(135deg, #0066cc 0%, #0080ff 100%);
}

.submit-btn:hover .btn-icon {
  animation: flyIcon 0.6s ease-in-out;
}

/* Nouvelles animations keyframes */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  70% {
    opacity: 1;
    transform: scale(1.02) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulseBorder {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(0, 102, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
  }
}

@keyframes flyIcon {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
  100% {
    transform: translateX(5px);
  }
}

/* Animation d'arrière-plan */
.contact-section {
  position: relative;
  animation: gradientShift 10s ease infinite alternate;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* Animation des icônes des champs */
.input-group:focus-within .input-icon {
  animation: iconBounce 0.5s ease;
  color: #0080ff;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(-60%);
  }
}
/* ----------------VIGILANCE SECTION AMÉLIORÉE----------------------- */
.vigilance-section {
    min-height: calc(100vh - 70px);
    margin-top: 70px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ebf2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

/* Éléments décoratifs d'arrière-plan */
.vigilance-section::before,
.vigilance-section::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.05), rgba(0, 102, 204, 0.15));
    z-index: 1;
}

.vigilance-section::before {
    top: -100px;
    left: -100px;
    animation: floatBubble 15s infinite alternate ease-in-out;
}

.vigilance-section::after {
    bottom: -100px;
    right: -100px;
    animation: floatBubble 18s infinite alternate-reverse ease-in-out;
}

@keyframes floatBubble {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 50px) scale(1.1);
    }
    100% {
        transform: translate(20px, 80px) scale(0.95);
    }
}

.vigilance-container {
    max-width: 850px;
    background: white;
    padding: 60px;
    border: none;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 102, 204, 0.25);
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Bordure stylisée et effets de brillance */
.vigilance-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #0066cc, #3a89e9, #0066cc);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

.vigilance-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.vigilance-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #0066cc, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.3);
    position: relative;
    animation: float 3s infinite ease-in-out;
}

.vigilance-icon::after {
    content: "";
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border: 2px solid rgba(0, 102, 204, 0.3);
    animation: ripple 2s infinite ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes ripple {
    0% {
        opacity: 1;
        transform: scale(0.9);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.vigilance-icon i {
    font-size: 46px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.vigilance-title {
    color: #0066cc;
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 35px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 102, 204, 0.1);
    animation: fadeIn 1s ease-out;
}

.vigilance-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #3a89e9);
    border-radius: 4px;
}

.vigilance-content {
    text-align: left;
    animation: fadeIn 1.2s ease-out;
}

.vigilance-text {
    font-size: 18px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 35px;
    font-weight: 400;
}

.vigilance-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 15px;
}

.vigilance-list li {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background: #f8fafd;
    border-radius: 12px;
    border-left: 4px solid #0066cc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 16px;
    color: #333;
    position: relative;
    animation: slideInLeft 0.5s ease-out both;
    animation-delay: calc(0.2s * var(--i, 0));
}

.vigilance-list li:nth-child(1) { --i: 1; }
.vigilance-list li:nth-child(2) { --i: 2; }
.vigilance-list li:nth-child(3) { --i: 3; }
.vigilance-list li:nth-child(4) { --i: 4; }

.vigilance-list li:hover {
    transform: translateX(10px) translateY(-5px);
    background: #f0f7ff;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.12);
    border-left-width: 6px;
}

.vigilance-list li i {
    color: white;
    margin-right: 15px;
    font-size: 20px;
    background: #0066cc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.25);
}

.vigilance-list li:hover i {
    transform: scale(1.2) rotate(10deg);
    background: linear-gradient(135deg, #0066cc, #0080ff);
}

/* Plus d'animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design amélioré */
@media (max-width: 992px) {
    .vigilance-container {
        padding: 50px 40px;
    }
    
    .vigilance-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .vigilance-container {
        padding: 40px 25px;
        margin: 0 15px;
    }
    
    .vigilance-title {
        font-size: 30px;
    }
    
    .vigilance-text {
        font-size: 16px;
    }
    
    .vigilance-list li {
        font-size: 15px;
        padding: 15px;
    }
    
    .vigilance-icon {
        width: 90px;
        height: 90px;
    }
    
    .vigilance-icon i {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .vigilance-container {
        padding: 30px 20px;
    }
    
    .vigilance-title {
        font-size: 26px;
    }
    
    .vigilance-text {
        font-size: 15px;
    }
    
    .vigilance-list li {
        font-size: 14px;
        padding: 12px;
    }
    
    .vigilance-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .vigilance-icon i {
        font-size: 36px;
    }
}
/*footer------------------------------------*/
.main-footer {
  background-color: #06325e;
  color: white;
  padding-top: 60px;
  margin-top: auto; /* Pour coller le footer en bas */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Style pour la section marque */
.footer-brand {
  padding-right: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.brand-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 14px;
}

/* Style pour les sections */
.footer-section h4 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: #0066cc;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-section ul li a:hover {
  color: white;
}

/* Style pour les informations de contact */
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info i {
  color: #0066cc;
  font-size: 16px;
}

/* Barre de copyright */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.legal-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: white;
}

.separator {
  color: rgba(255, 255, 255, 0.4);
}

/* Responsive design */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}
/*pour que lorsqu'on clique sur le bouton de la section 1, on vienne sur le formulaire*/
html {
  scroll-behavior: smooth; /* Pour un défilement fluide natif */
}

.form-section {
  scroll-margin-top: 70px; /* Pour compenser la hauteur du menu fixe */
}
/*fin*/

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.spinner-container {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.spinner-text {
  font-weight: 500;
  color: #333;
}

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

.spinner-visible {
  visibility: visible;
  opacity: 1;
}

/* Pour désactiver le bouton pendant la soumission */
.submit-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}




