* {
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
  }
  .fil{
    display: flex;
    height: 55vh;
    animation-duration: 20s;
    animation-name: test1;
    animation-iteration-count: infinite;
  }

  #defiler{
    width: 400px;
    overflow: hidden;
    border: 2px solid red;
  }
  @keyframes  test1 {
     
        0%{
            transform: translateX(0);
        }
        15%{
            transform: translateX(0);
    
        }
        35%{
            transform: translateX(-200px);
        }
        50%{
            transform: translateX(-500px);
        }
    
        70%{
            transform: translateX(-800px);
        }
    
        90%{
            transform: translateX(-1000px);
    
        }
        100%{
            transform: translateX(-1150px);
  
        }
        
    
    }
  
  .ani{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    
    
  }
  .cent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  .cent img {
   max-width: 100%;
   height: auto;
  }


  h1 {
    text-align: center;
    color: #c00;
  }
  h2 {
    color: #c00;
    text-align: center;
  }
  p {
    margin: 0 0 20px;
    text-align: center;
  }
  .section {
    margin: 50px 0;
  }
  .section h2 {
    margin-bottom: 20px;
  }
  @media(max-width:400px){
    .tcontainer {
      padding: 0 10px;
    }
  }














  :root {
    --mainWhite: #f2fdff;
    --mainBlue: #3e92cc;
  }
  .max-height {
    min-height: 100vh;
  }
  body {
    background: var(--mainWhite);
  }
  .img-container {
    min-height: 40vh;
    background: url("../img/contBcg-0.jpeg") center/cover no-repeat;
    border: 0.5rem solid red;
    border-radius: 0.5rem;
    position: relative;
    background-size: 400px 400px;
    margin-left: 30%;
  }

  .img-containerto {
    min-height: 40vh;
    background: url("../img/contBcg-0.jpeg") center/cover no-repeat;
    border: 0.5rem solid red;
    border-radius: 0.5rem;
    position: relative;
    background-size: 400px 400px;
    margin-left: 30%;
  }

  .img-containerte {
    min-height: 40vh;
    background: url("../img/contBcg-0.jpeg") center/cover no-repeat;
    border: 0.5rem solid red;
    border-radius: 0.5rem;
    position: relative;
    background-size: 400px 400px;
    margin-left: 30%;
  }
  @media screen and (min-width: 768px) {
    .img-container {
      min-height: 40vh;
      max-width: 50vh;
    }

    .img-containerto {
      min-height: 40vh;
      max-width: 50vh;
    }

    .img-containerte {
      min-height: 40vh;
      max-width: 50vh;
    }
    
  }
  
  .btn-left {
    position: absolute;
    top: 50%;
    left: 0;
    background: red;
    color: var(--mainWhite) !important;
    transform: translate(-50%, -50%);
    border: 0.2rem solid red;
    font-size: 1.2rem;
  }
  .btn-left:hover {
    border-color: red;
    background: var(--mainWhite);
    color: red !important;
  }
  .btn-right {
    position: absolute;
    top: 50%;
    right: 0;
    background: red;
    color: var(--mainWhite) !important;
    font-size: 1.2rem;
    transform: translate(50%, -50%);
    border: 0.2rem solid red;
  }
  .btn-right:hover {
    border-color: red;
    background: red;
    color: red !important;
  }
  

  

  .fil {
    display: flex;
    height: 55vh;
    animation-duration: 20s;
    animation-name: test1;
    animation-iteration-count: infinite;
}

#defiler {
    width: 400px;
    overflow: hidden;
    border: 2px solid red;
}

@keyframes test1 {
    0% {
        transform: translateX(0);
    }
    15% {
        transform: translateX(0);
    }
    35% {
        transform: translateX(-200px);
    }
    50% {
        transform: translateX(-500px);
    }
    70% {
        transform: translateX(-800px);
    }
    90% {
        transform: translateX(-1000px);
    }
    100% {
        transform: translateX(-1150px);
    }
}

/* Adaptation pour les écrans ≤ 768px */
@media (max-width: 768px) {
    #defiler {
        width: 90%;
        max-width: 350px;
    }

    @keyframes test1 {
        0% {
            transform: translateX(0);
        }
        15% {
            transform: translateX(0);
        }
        35% {
            transform: translateX(-150px);
        }
        50% {
            transform: translateX(-400px);
        }
        70% {
            transform: translateX(-650px);
        }
        90% {
            transform: translateX(-850px);
        }
        100% {
            transform: translateX(-1000px);
        }
    }
}

/* Adaptation pour les écrans ≤ 450px */
@media (max-width: 450px) {
    #defiler {
        width: 100%;
        max-width: 300px;
    }

    @keyframes test1 {
        0% {
            transform: translateX(0);
        }
        15% {
            transform: translateX(0);
        }
        35% {
            transform: translateX(-100px);
        }
        50% {
            transform: translateX(-300px);
        }
        70% {
            transform: translateX(-500px);
        }
        90% {
            transform: translateX(-700px);
        }
        100% {
            transform: translateX(-850px);
        }
    }
}

/* Adaptation pour les écrans ≤ 350px */
@media (max-width: 350px) {
    #defiler {
        width: 100%;
        max-width: 250px;
    }

    @keyframes test1 {
        0% {
            transform: translateX(0);
        }
        15% {
            transform: translateX(0);
        }
        35% {
            transform: translateX(-80px);
        }
        50% {
            transform: translateX(-200px);
        }
        70% {
            transform: translateX(-350px);
        }
        90% {
            transform: translateX(-500px);
        }
        100% {
            transform: translateX(-600px);
        }
    }
}

.ani {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #c00;
  padding: 15px 20px;
  color: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ffd700;
}

/* Burger menu (Caché par défaut) */
.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 768px) {
  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 0;
      background-color: #c00;
      width: 100%;
      text-align: center;
  }

  .nav-links.active {
      display: flex;
  }

  .nav-links li {
      padding: 10px 0;
  }

  .burger {
      display: block;
  }
}

@media (max-width: 450px) {
  .navbar {
      padding: 10px 15px;
  }

  .logo {
      font-size: 1.2rem;
  }

  .burger {
      font-size: 1.8rem;
  }
}

@media (max-width: 350px) {
  .logo {
      font-size: 1rem;
  }

  .burger {
      font-size: 1.6rem;
  }
}

/* Style du logo */
.logo {
  width: 80px; /* Taille par défaut */
  height: 60px; /* Conserver les proportions */
  display: flex; /* Empêche les marges indésirables */
  transition: transform 0.3s ease-in-out;
  border-radius: 50%
}

/* Effet au survol */
.logo:hover {
  transform: scale(1.1); /* Agrandissement léger */
}

/* Responsive pour tablettes */
@media (max-width: 768px) {
  .logo {
    width: 70px;
    height: 55px;
  }
}

/* Responsive pour mobiles */
@media (max-width: 450px) {
  .logo {
    width: 60px;
    height: 50px;
  }
}

/* Responsive pour très petits écrans */
@media (max-width: 350px) {
  .logo {
    width: 50px;
    height: 45px;
  }
}

