body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f9f9f9;
}

header {
  background: #1a1a1a;
  color: #fff;
  padding: 2rem 0; 
  position: fixed;
  width: 100%;
  z-index: 1000; 
  font-size: 18px;
  top: 0;
  display: flex; 
  justify-content: center; 
  align-items: center; 
}

header .container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px; 
  width: 100%;
  padding: 0 20px;
  height: 60px;
}

header .logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

header .logo img {
  height: 50px;
}

header nav {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header nav ul li {
  position: relative;
  text-align: center;
}

header nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease-in-out;
  white-space: nowrap;
}

header nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

header nav ul li .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  padding: 10px 0; 
  list-style: none;
  min-width: 200px; 
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  margin-top: 5px;
}

header nav ul li .dropdown-menu li {
  margin: 5px 0; 
  padding: 5px 10px; 
  text-align: left; 
  white-space: nowrap;
}

header nav ul li .dropdown-menu li a {
  display: block;
  padding: 5px;
  color: #fff;
  text-decoration: none;
  font-weight: normal;
  font-size: 16px;
}

header nav ul li .dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: underline;
}

header nav ul li:hover .dropdown-menu {
  display: block;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}


.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #1a1a1a;
  z-index: 1000;
  flex-direction: column;
  padding: 10px 0;
}

.mobile-nav.active {
  display: flex;
}

.dropdown-submenu {
  display: none;
  flex-direction: column;
  padding-left: 15px;
  gap: 10px;
  transition: all 0.3s ease-in-out;
}

.dropdown-submenu li {
margin: 6px 0; 
padding: 4px 0;
}

.dropdown-submenu li a {
padding: 4px 8px; 
font-size: 14px; 
display: block;
text-align: left;
}

.dropdown-submenu.active {
  display: flex;
}

@media (min-width: 769px) {
.hamburger {
    display: none;
}

.mobile-nav {
    display: flex;
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    background-color: #222;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-submenu {
    display: block;
}

header nav ul li .dropdown-menu {
    min-width: 220px;
}

.dropdown-submenu li {
    margin: 6px 0;
    padding: 4px 8px;
}

.dropdown-submenu li a {
    font-size: 14px;
}
}

@media (max-width: 768px) {
header {
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.hamburger {
    display: flex;
    position: absolute;
    left: 15px;
}

.logo {
    margin: 0 auto;
}

.hamburger span {
    background-color: #fff;
}

.dropdown-submenu {
    padding-left: 10px;
    gap: 6px; 
}

.dropdown-submenu li {
    margin: 4px 0;
    padding: 3px 6px;
}

.dropdown-submenu li a {
    font-size: 12px; 
    padding: 3px 6px;
}
}

/* Fin header */

/* Bouton Retour en haut */
#back-to-top {
  position: fixed;
  bottom: 20px; 
  right: 20px; 
  background-color: #303030; 
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#back-to-top:hover {
  background-color: #000000; 
  transform: scale(1.1); 
}

/* Notification pop-up */
.popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4CAF50; /* Vert pour succès */
  color: white;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0; 
  visibility: hidden;
  transform: translateY(20px); 
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
}

/* Afficher le pop-up */
.popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); 
}


/* Corps général */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  margin-top: 150px;
}

/* Conteneur principal */
.contact-container {
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  gap: 20px;
  flex-wrap: wrap; 
}

/* Formulaire */
form {
  flex: 1;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 90%;
  text-align: center;
}

form h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.note {
  font-size: 14px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.note a {
  color: #0073e6;
  text-decoration: none;
}

.note a:hover {
  text-decoration: underline;
}

.form-group {
  margin-bottom: 1rem;
  max-width: 500px; /* Contrôle la largeur des champs */
  width: 100%;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.required {
  color: red;
}

input, textarea {
  width: 100%; /* Prennent toute la largeur du parent */
  max-width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f0f0f0;
  font-family: 'Montserrat', sans-serif;
}

textarea {
  resize: none;
}

input:focus, textarea:focus {
  outline: 2px solid #0073e6;
}

.btn-submit {
  width: 100%;
  max-width: 500px;
  background: #1a1a1a;
  color: #fff;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.btn-submit:hover {
  background: #333;
}

/* Section d'information */
.contact-info {
  flex: 1;
  background: #1a1a1a;
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 1rem 0;
  line-height: 1.6;
}

.info-box {
  margin-top: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  background-color: #333;
  color: #fff;
  padding: 0.8rem;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.info-item:hover {
  background-color: #444;
  transform: translateY(-3px);
}

.info-item img {
  width: 25px;
  margin-right: 10px;
}

.info-item p {
  margin: 0;
}

.info-item a {
  color: #fff;
  text-decoration: none;
  transition: text-decoration 0.3s;
}

.info-item a:hover {
  text-decoration: underline;
}

/* Carte Google Maps */
.map {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

/* Réseaux sociaux */
.social-links {
  margin-top: 2rem;
}

.social-links h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Media Queries */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  form, .contact-info {
    width: 100%;
    max-width: 600px;
  }

  .form-group {
    max-width: 90%;
  }

  .btn-submit {
    max-width: 90%;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .social-icons img {
    width: 25px;
    height: 25px;
  }

  .map {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 1rem;
  }

  .btn-submit {
    padding: 0.8rem;
  }

  .social-icons img {
    width: 20px;
    height: 20px;
  }

  .info-item {
    padding: 0.6rem;
  }

  input, textarea {
    padding: 0.6rem;
  }
}


/* Footer général */
.footer {
  background-color: #1a1a1a;
  color: #ccc;
  padding: 40px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.footer-column {
  width: 30%; 
}

.footer-column p img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.footer-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 0px 0;
}

.social-links-grid a {
  display: flex;
  align-items: center;
  gap: 10px; 
  color: #ccc; 
  text-decoration: none; 
  transition: color 0.3s ease, transform 0.3s ease; 
}

.social-links-grid a:hover {
  color: #fff;
  transform: translateY(-3px); 
}

.social-links-grid img {
  width: 20px; 
  height: 20px;
  transition: transform 0.3s ease;
}

.social-links-grid img:hover {
  transform: scale(1.1);
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 10px; 
  align-items: center;
}

.footer-column p a,
.recrutement-link {
color: #ccc; 
text-decoration: none; 
}

.footer-column p a:hover,
.recrutement-link:hover {
text-decoration: underline; 
color: #fff; 
}

/* Section Newsletter */
.newsletter-bar {
  background-color: #242424; 
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.newsletter-bar-container {
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-bar h4 {
  font-size: 24px;
  margin-bottom: 10px;
}

.newsletter-bar p {
  font-size: 14px;
  margin-bottom: 20px;
}

.newsletter-bar-input {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
}

.newsletter-bar-input input {
  padding: 12px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 0 4px 4px 0;  
}

.newsletter-bar-button {
  padding: 12px 20px;
  background-color: #4d4d4d;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.newsletter-bar-button:hover {
  background-color: #b8b8b8;
}

.footer-bottom {
  background-color: #1a1a1a;
  color: #999;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid #333;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
  margin: 0 5px;
}

.footer-bottom a:hover {
  text-decoration: underline;
}


/* Pop-up de confirmation */
#confirmation-message {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #333;
color: #fff;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 2000;
text-align: center;
width: 90%;
max-width: 400px;
display: flex;
flex-direction: column;
gap: 1.5rem;
visibility: hidden;
opacity: 0;
transition: visibility 0.3s, opacity 0.3s;
}

#confirmation-message.show {
visibility: visible;
opacity: 1;
}

#confirmation-message button {
background: #0073e6;
color: #fff;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}

#confirmation-message button:hover {
background: #005bb5;
}


/* Media Queries */
@media (min-width: 1024px) {
  header .container {
      flex-direction: row; 
      justify-content: space-between;
  }

  header .logo {
      margin-right: auto; 
  }

  header nav {
      margin-left: auto; 
  }

  header nav ul {
      flex-direction: row; 
      gap: 20px;
  }
}

@media (max-width: 768px) {
  header .container {
      flex-direction: column;
      align-items: center;
  }

  header nav ul {
      flex-direction: column;
      align-items: center;
  }

  .footer-container {
      flex-direction: column;
      text-align: center;
  }

  .footer-column {
      width: 100%;
  }

  .social-links-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  header .logo img {
      height: 40px;
  }

  header nav ul li a {
      font-size: 14px;
  }

  .newsletter-bar h4 {
      font-size: 18px;
  }

  .newsletter-bar-button {
      font-size: 12px;
  }

  .footer-bottom {
      font-size: 9px;
  }
}




@media (max-width: 768px) {
  .contact-container {
    padding: 0 15px; 
    align-items: center; 
    justify-content: center; 
  }

  form, .contact-info {
    width: 90%;
    max-width: 500px; 
    margin: 0 auto; 
  }

  .form-group {
    max-width: 100%; 
  }

  .btn-submit {
    max-width: 100%;
  }

  .social-icons img {
    width: 25px;
    height: 25px;
  }
}

/* Style du popup de confirmation */
.confirmation-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #333;
  color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-align: center;
  font-size: 16px;
  visibility: hidden; /* Caché par défaut */
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.confirmation-popup.show {
  visibility: visible; /* Rendu visible */
  opacity: 1;
}

.confirmation-popup p {
  margin: 0;
  font-size: 16px;
}


/* Je vais me défenestrer si ça marche toujours pas après ça mdrr */
/* Update c'est bon tu peux continuer */