body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #fff;
  scroll-behavior: smooth;
}

.main-layout {
  min-height: 100vh;
  display: flex;
  position: relative;
  z-index: 0;
  overflow: visible;
}
.main-layout-bg {
  display: none;
}


.left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 100px;
  position: relative;
  z-index: 1;
}

.main-title {
  font-family: "Unbounded", sans-serif;
  font-weight: bold;
  margin-bottom: 38px;
  line-height: 1.08;
  text-align: left;
}

.main-title .title-big {
  display: block;
  font-size: clamp(3.2rem, 7vw, 5.2rem);
  margin-bottom: 0.18em;
  letter-spacing: 0.01em;
}

.main-title .title-small {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin-bottom: 0.08em;
  letter-spacing: 0.02em;
}

.bold {
  font-weight: bold;
}

.button-group {
  display: flex;
  gap: 8px;
}

/* Mobile features - cachées par défaut sur desktop */
.mobile-features {
  display: none;
}

.btn {
  display: inline-block;
  padding: 16px 30px;
  font-weight: bold;
  border: none;
  text-decoration: none;
  color: #fff;
   font-size: clamp(1rem, 2vw + 0.5rem, 1.7rem);
  padding: clamp(10px, 1.5vw + 8px, 18px) clamp(16px, 2.5vw + 10px, 30px);
      box-shadow: #ffffff00 0px 0px;
        transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn.contact {
  background: #0a2c7c;
}

.btn.tarifs {
  background: #009fe3;
}

.btn:hover {
    transform: translateY(2px);
        box-shadow: #1f293733 4px 4px;
}

/* Responsive title and button scaling using clamp for smoother scaling */
.left-section h1 {
  font-size: clamp(2rem, 4vw + 1rem, 4.5rem);
}



.right-section {
  flex: 1;
  position: relative;
  z-index: 2;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.right-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0a2c7c;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
  z-index: 1;
}



.car-image {
  position: absolute;
  right: 50px;
  bottom: 50px;
  width: 48vw;
  max-width: 900px;
  min-width: 320px;
  z-index: 10;
  pointer-events: none;
  mix-blend-mode: normal;
}

@media (max-width: 1200px) {
  .left-section h1 {
    font-size: 3rem;
  }

  .btn {
    font-size: 1.3rem;
    padding: 12px 20px;
  }

  .btn::before {
    display: none;
  }

  .car-image {
    max-width: 600px;
    min-width: 200px;
    width: 40vw;
  }

  .left-section {
    padding-left: 40px;
  }
}

@media (max-width: 900px) {

  .main-layout-bg {
  top: 0;
  left: 0;
  right: 0;
  min-height: 100vh;
  display: flex;
  position: absolute;
  z-index: 1;
  overflow: visible;
}

  .main-layout {
    flex-direction: column;
    min-height: 100vh;
    position: relative;
  }

  .main-layout::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
     url(../../img/bg/bg-mobile-right-bottom.svg),
      url(../../img/bg/bg-mobile-left-bottom.svg);
    background-position: bottom left, bottom left;
    background-repeat: no-repeat;
    background-size: contain, contain;
    pointer-events: none;
    z-index: 0;
  }

  .left-section {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    align-items: center;
    justify-content: start;
    padding-top: 150px;
    max-width: 100%;
  }

  .right-section {
    display: none;
  }

  .left-section h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
  }

  .car-image {
    display: none;
  }

  .button-group {
    max-width: 100%;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
  }

  .btn {
    width: 140px;
    padding: 22px 40px;
    font-size: 1.4rem;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(10, 44, 124, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
  }

  .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
  }

  .btn:active::before {
    width: 300px;
    height: 300px;
  }

  .btn:active {
    transform: scale(0.96);
  }

  /* Cacher la section mobile features */
  .mobile-features {
    display: none;
  }
}

@media (max-width: 600px) {
  .left-section h1 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 1.3rem;
    padding: 20px 35px;
  }

  .car-image {
    display: none;
  }
}
/* Section Permis de conduire */
.permis-section {
  padding: 80px 150px;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 60px;
  text-align: left;
  color: #111;
  text-decoration: underline;
  text-decoration-color: #009CDF;
  text-decoration-thickness: 12px;
  text-underline-offset: 8px;
  line-height: 1.5;
}


.permis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.permis-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

/* Cartes impaires (colonne de gauche) : image à gauche, texte à gauche */
.permis-card:nth-child(odd) {
  flex-direction: row;
}
.permis-card:nth-child(odd) .permis-label {
  align-items: flex-start;
  text-align: left;
  padding-left: 18px;
  padding-right: 0;
}

/* Cartes paires (colonne de droite) : image à droite, texte à droite */
.permis-card:nth-child(even) {
  flex-direction: row-reverse;
}
.permis-card:nth-child(even) .permis-label {
  align-items: flex-end;
  text-align: right;
  padding-right: 18px;
  padding-left: 0;
}

.permis-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 140px;
}
.permis-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.permis-card img {
  width: 50%;
  height: 100%;
  object-fit: contain;  
  display: block;
  flex-shrink: 0;
}

.permis-label {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
}

.permis-label span {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: bold;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Responsive pour tablettes */
@media (max-width: 1300px) {
  .permis-section {
    padding: 60px 40px;
  }
  .permis-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .permis-card {
    height: 120px;
  }
  .permis-label span {
    font-size: clamp(1.3rem, 2vw, 1.2rem);
  }
}
@media (max-width: 1000px){
  .permis-label span {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }
}



/* Responsive pour mobile */
@media (max-width: 768px) {
  .permis-section {
    padding: 50px 30px;
  }
  .permis-title {
    margin-bottom: 40px;
    text-align: center;
  }
  .permis-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .permis-card {
    height: 100px;
    flex-direction: row !important;
  }
  .permis-label {
    align-items: flex-start !important;
    text-align: left !important;
    padding-left: 18px !important;
    padding-right: 0 !important;
  }
  .permis-label span {
    font-size: 1.3rem;
  }
    .permis-card img {
    padding-left: 2%;
  width: 45%;
}
}

/* Tres petits ecrans */
@media (max-width: 480px) {
  .permis-section {
    padding: 40px 30px;
  }
  .permis-title {
    margin-bottom: 30px;
  }
  .permis-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .permis-card {
    height: 90px;
  }
  .permis-label span {
    font-size: 1rem;
  }
  .permis-card img {
    padding-left: 5%;
  width: 40%;
}
}
@media (max-width: 400px){
    .permis-label span {
    font-size: 0.8rem;
  }
   .permis-section {
    padding: 40px 15px;
  }
}
a {
  text-decoration: none;
}



