/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: #f4f4f4;
color: #333;
margin: 0;
padding: 0;
}

header{
      display: flex;
      flex-direction: row;
      color:#ffffff;
      border-bottom:#e8491d 4px solid;
      height: 100px;
      justify-content: space-between;
      background: #35424a;
      padding: 20px 40px;
      position: fixed;
      /*animation: slideDown 1s ease;*/
      top: 0;
      left: 0;
      width: 100%;
      z-index: 1000;
      
    }
     .title h1{
      font-size: 28px;
      letter-spacing: 1px;
      /*animation: fadeIn 1.2s ease;*/
    }
    .title strong{
        color:#e8491d;
    }
  
  .nav a{
    text-decoration: none;
    color: white;
    font-size: 20px;
    padding: 0 10px;
  }
  
  .nav li{
    list-style-type: none;
  }
  .nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    animation: fadeIn 0.15s ease;
  }
 
  header .nav a:hover{
    color:#e8491d;
    font-weight:bold;
    border-bottom: 2px solid white;
    transition: 0.8s;
  }
  
main {
padding: 20px;
margin-top: 80px;
}


/*home page*/
/* -------- ANIMATION DE FOND -------- */

#home {
  position: relative;
  min-height: 75vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: white;
  background: none; /* empêche fond par défaut */
}

/* Images de fond superposées et animées */
#home::before,
#home::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  animation: changeBackground 10s infinite;
  transition: opacity 1s ease;
}

#home::before {
  background-image: url('images/bg-home1.jpg');
  animation-delay: 0s;
}

#home::after {
  background-image: url('images/bg-home2.jpg');
  animation-delay: 5s;
}

@keyframes changeBackground {
  0% { opacity: 1; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.05); }
  50% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* Voile dégradé fixe au-dessus des images */
.home-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(116, 137, 150, 0.7),
   rgba(243, 239, 239, 0.932));
  z-index: 1;
  opacity: 0.5;
}

/* -------- CONTENU FIXE -------- */

.home-contenu {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: #35424a;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  transition: transform 0.4s ease;
}

.home-contenu:hover {
  transform: scale(1.02);
}

.home-contenu h2 {
  font-size: 36px;
  margin-bottom: 20px;
   animation: slideDown 0.8s ease forwards;
}

.home-contenu p {
  font-size: 18px;
  animation: fadeInUp 1.2s ease forwards;
}

/* Footer pour bien apparaître */

.btn a{
  background-color:#35424a;
  color: white;
  border-radius: 5px;
  margin-top: 30px;
  padding: 5px;
text-decoration: none;
font-weight: bold;
transition: color 0.8s ease;
}
.btn a:hover{
  
  color: #e8491d;
}

.home-contenu2 {
  padding-top: 30px;
  color: black;
  margin-top: 10px;
  position: relative;
  z-index: 2;
  backdrop-filter: brightness(0.8);
  -webkit-backdrop-filter: brightness(0.8);
  transition: transform 0.4s ease;
  padding: 10px 10px;
  
}
.home-contenu2 p{
  margin-top: 20px;
  font-weight: bold;
  
  
  
}

/* Section About begin */

#about{
  
  /* Général */

 h2 {
  color: #35424a;
  padding-bottom: 5px;
}

}


.about-contenu {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  
}
.about-contenu .text{
  padding-bottom: 30px;
}

.about-contenu ul {
  list-style: disc;
  padding-left: 20px;
}

/* Bouton */
.btn {
  background-color: #35424a;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

.see-team .btn:hover {
  background-color: #cf3f15;
}

/* Lien vers Our Team */
.see-team {
  
  margin: 20px 0;
}

/* Section Our Team */
#team {
  background: #fff;
  padding: 40px 20px;
  border-top: 4px solid #e8491d;
  text-align: center;
}

.team-container {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.team-member {
  width: 200px;
  padding: 20px;
  background: #f4f4f4;
  border-radius: 8px;
  text-align: center;
}
/*js style de team*/
.team-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.team-member {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 20px;
  width: 220px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.team-member:hover {
  transform: scale(1.05);
}

/*section services begin*/

#services {
  background-color: #f4f4f4;
  padding: 60px 20px;
  min-height: 100vh;
}

.contenu-services {
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contenu-services h2 {
  font-size: 36px;
  color: #35424a;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.contenu-services h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #e8491d;
  margin: 12px auto 0;
  border-radius: 2px;
}

.contenu-services h3 {
  color: #e8491d;
  font-size: 24px;
  margin-top: 30px;
}

.contenu-services p {
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 10px;
}
/*section services fini*/

/*contact debut*/

/* Grille des contacts */
/*.contact-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 50px;
}

.contact-box {
  background-color: #f4f4f4;
  padding: 20px;
  border-left: 4px solid #e8491d;
  border-radius: 12px;
  flex: 1 1 280px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-box h3 {
  margin-top: 10px;
  color: #35424a;
}

.contact-box p {
  margin: 8px 0;
  font-size: 15px;
}

.contact-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.icon {
  width: 35px;
  vertical-align: middle;
  margin-right: 5px;
}

.adresse {
  text-align: center;
  margin-top: 40px;
}

.adresse h3 {
  color: #35424a;
}*/
/*contact new debut*/

/* SECTION CONTACT */
#contact {
    background-color: white;
    padding: 4rem 2rem;
    color: #35424a;
}

.contenu-contact h2 {
    text-align: center;
    color: #e8491d;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.contact-box {
    background-color: #f9f9f9;
    border-left: 5px solid #e8491d;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
}

.contact-box h3 {
    color: #35424a;
    margin-bottom: 0.5rem;
}

.contact-box p {
    margin: 0.3rem 0;
    color: black;
    font-size: 1rem;
}


.adresse {
    margin-top: 3rem;
    text-align: center;
    background-color: whitesmoke;
    color: black;
    padding: 1.5rem;
    border-radius: 10px;
}

.adresse h3 {
    color: #e8491d;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.contact-box p img{
  width: 35px;
  vertical-align: middle;
  margin-right: 5px;
}



/* Footer */
footer{
background: #35424a;
  color: white;
  padding-left: 5px;
}
footer .footer {
  
  display: flex;
  justify-content: space-between;
}

footer .adress h2{
  border-bottom: 2px solid white;
  text-align: left;
  margin-bottom: 10px;
}
footer .adress p{
  padding-top: 10px;
  text-align: left;
  
}

footer .copyright{
  text-align: center;
  padding-bottom: 10px;
}

.lang-switch h2{
  border-bottom: 2px solid white;
  margin-bottom: 10px;
}
/*translate button*/
.lang-switch button {
  background-color:#e8491d ;  
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 14px;
  margin-right: 10px;
  border-radius: 5px;
  cursor: pointer;
  width: 100px;
  transition: background-color 0.3s ease;
}

.lang-switch button:hover {
  background-color: #35424a;    
  color: #e8491d;
}


/*end footer*/


/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/*menu mobile*/
/* BURGER (mobile only) 
.burger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}*/
/* Quand il est ouvert */
.burger.open::before {
  content: "✖"; /* Croix */
}

/* Animation menu mobile */
@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav{
    position: absolute;
    top: 70px;
    right: 0;
    background: #35424a;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
  }
  /*button amburger*/
  .burger::before {
  content: "☰";
  font-size: 28px;
  color:#e8491d ;
  transition: transform 0.3s ease;
  background-color:white;
}

.burger.open::before {
  content: "✖";
}

  .nav.show {
    display: flex; /* affiché si la classe show est ajoutée en JS */
    animation: slideDown 0.3s ease;
  }

  .home-contenu h2 {
    font-size: 28px;
  }

  .home-contenu p {
    font-size: 16px;
  }
}
/* --------- RESPONSIVE DESIGN --------- */

@media screen and (max-width: 768px) {
  .home-contenu {
    max-width: 70%;
    padding: 15px;
  }


  .lang-switch button {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .contenu-services {
    padding: 20px;
  }

  .contenu-services h2 {
    font-size: 28px;
  }

  .contenu-services h3 {
    font-size: 20px;
  }

  .contenu-services p {
    font-size: 15px;
  }
  .services-final{
    font-size: 14px;
    text-align: left;
  }

  .contact-grid {
    flex-direction: column;
    align-items: center;
  }

}


  


@media screen and (max-width: 480px) {
  .home-contenu h2 ,.home-contenu2 h2 {
    font-size: 24px;
  }

  .home-contenu p ,.home-contenu2 p {
    font-size: 15px;
    font-weight: normal;
  }
  

  .contenu-contact h2{
    font-size: 26px;
  }
  .contact-box h3, .contenu-contact .adresse h3{
    font-size: 18px;
  }

  .contact-box p, .contenu-contact .adresse p {
    font-size: 16px;
  }
  .contact-box{
    width: auto;
    padding: 0;
  }
  .contact-box p img{
    width: 15px;
  }

  .lang-switch {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .lang-switch button ,.btn{
    width: 100%;
  }
  .btn a{
    display: flex;
    flex-direction: column;
  }
  .adresse{
    text-align: left;
    padding: 0;
  }

  footer .footer {
  
  display: flex;
  flex-direction: column;
  }

  .footer .social{
    padding-bottom:10px;
    margin-top: 15px;
    text-align:center;

  }
  .footer .lang-switch{
    width: 100%;
  }

}
