@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,300;0,400;0,500;0,600;1,100;1,300&display=swap");
* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  -webkit-transition: .2s linear;
  transition: .2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

html::-webkit-scrollbar {
  width: 0.5rem;
}

html::-webkit-scrollbar-track {
  background: #fff;
}

html::-webkit-scrollbar-thumb {
  background: #ed7327;
}

section {
  padding:3rem 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.btn{
  margin-top: 1rem;
  display: inline-block;
  background-color: #ed7327bb;
  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 1.7rem;
  padding: 1rem 3rem;
}

.btn:hover {
  background: #ed7327;
  color: #fff;
}

.heading {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 4rem;
  color: #ed7327;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; 
}

.header .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.header .logo img {
  height: 50px; /* ✅ ajuste la hauteur comme tu veux (ex : 30px, 40px) */
  width: auto; /* conserve les proportions */
}


.header.active{
  background: #fff;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.header .navbar a.active {
  color: #ed7327;
  font-weight: bold;
  border-bottom: 2px solid #ed7327;
}


.header.active .navbar a {
  color: #333; /* ou une autre couleur foncée lisible */
}

.header.active .navbar a:hover {
  color: #ed7327bb; /* ou une couleur accentuée */
}


.header .logo {
  margin-right: auto;
  font-size: 2.5rem;
  color: #fff;
  font-weight: bolder;
}

.header .navbar a {
  margin-left: 2rem;
  font-size: 1.7rem;
  color: #ffff;
  text-transform: none;
}

.header .navbar a:hover {
  color: #ed7327bb;
}

.header .navbar #nav-close {
  font-size: 5rem;
  cursor: pointer;
  color: #ed7327;
  display: none;
}

.header .icons a,
.header .icons div {
  font-size: 2.3rem;
  margin-left: 2rem;
  cursor: pointer;
  color: #ed7327bb;
}

.header .icons a:hover,
.header .icons div:hover {
  color: #ed7327;
}

.header #menu-btn {
  display: none;
}

.home .box{
  min-height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.home .box .content{
  width: 50rem;
}

.home .box .content span {
  font-size: 4rem;
  color: #ffffff;
  text-transform: none;
}

.home .box .content h3 {
  font-size: 6rem;
  color: #fff;
  padding-top: .5rem;
  text-transform: uppercase;
}

.home .box .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.home .box .content {
  position: relative;
  z-index: 1;
}

.auto-container{
  background: #eee;
}

.auto-container h1{
  text-transform: none;
}

.auto .intro-text {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-size: 1.6rem;
  line-height: 1.8;
  color: #003366;
  text-align: center;
  padding: 0 1rem;
  font-weight: 400;
  text-transform: none;
}

.auto .box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.auto .box-container .box {
  flex: 1 1 32rem;
  max-width: 32rem;
}


.auto .box-container .box {
  text-align: center;
  background: #fff;
  border: 0.2rem solid #333;
  -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
          box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  border-radius: .5rem;
}

.auto .box-container .box .content > * {
  text-transform: none;
}

.auto .box-container .box:hover {
  background: #e06112b2;
}

.auto .box-container .box:hover .content > * {
  color: #fff;
}

.auto .box-container .box .image {
  height: 20rem; /* 🔽 réduit la taille globale de l’image */
  padding: 1rem;
  padding-bottom: 0;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auto .box-container .box .image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain; /* 🔁 affiche l’image sans la couper */
  border-radius: .5rem;
}

.auto .box-container .box .content {
  padding: 2rem;
}

.auto .box-container .box .content h3 {
  font-size: 2rem;
  color: #003366;
}

.auto .box-container .box .content p {
  font-size: 1.5rem;
  color: #003366;
  padding: 1rem 0;
  line-height: 2;
}

.auto .box-container .box .content a {
  font-size: 2rem;
  color: #003366;
}  

.footer {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.5))), url(../images/footerauto.jpg) no-repeat;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/footerauto.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.footer .box-container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(25rem, 1fr))[auto-fit];
      grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 1.5rem;
}

.footer .box-container .box h3 {
  font-size: 2rem;
  padding: 1.5rem 0;
  color: #fff;
}

.footer .box-container .box a {
  display: block;
  font-size: 1.4rem;
  color: #fff;
  padding: 1rem 0;
  text-transform: none;
}

.footer .box-container .box a i {
  color: #ed7327;
  padding-right: .5rem;
}

.footer .box-container .box a:hover {
  color: #ed7327bb;
  padding-right: 2rem;
}

.footer .box-container .box a:hover i {
  padding-right: 2rem;
}

.footer .credit{
  border-top: .1rem solid #fff;
  text-align: center;
  margin-top: 2.5rem;
  padding: 1rem;
  padding-top: 2.5rem;
  font-size: 2rem;
  color: #fff;
}

.footer .credit span {
  color: #ed7327bb;
}

.footer .legal-button{
  display: block;
  width: fit-content;
  margin: 10px auto 0;
  padding: 3px 7px;
  border-radius: 5px;
  background: #ed732794;
  color: #fff;
  font-weight: 300;
  transition: .3s;
}

.footer .legal-button:hover{
  background: #e49869;
}

@media (max-width: 991px) {
  html {
    font-size: 55%;
    scroll-padding-top: 7rem;
  }
  .home .box {
    padding: 2rem;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background-position: right !important;
  }
  .home .box.second {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    background-position: left !important;
  }
  .home .box .content {
    text-align: center;
  }
  .home .box .content span {
    font-size: 3rem;
  }
  .home .box .content h3 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .header #menu-btn {
    display: inline-block;
  }
  .header .navbar {
    position: fixed;
    top: 0;
    left: -110%;
    background: #fff;
    z-index: 10000;
    width: 35rem;
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-flow: column;
            flex-flow: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  .header .navbar.active {
    left: 0;
    -webkit-box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.8);
            box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.8);
  }
  .header .navbar a {
    margin: 1rem 0;
    font-size: 3rem;
    color: #003366;
  }
  .header .navbar #nav-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 2rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  .heading {
    font-size: 3rem;
  }
}