/* Base styles pour éviter débordement */
* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

body,
p,
span,
li,
a,
button,
input,
select,
textarea {
  font-family: "Nunito", sans-serif !important;
  font-weight: 400;
}

body {
  padding-top: 80px;
}

/* Correction conteneurs Bootstrap */
.container-fluid,
.container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

[class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

/* Navbar */
.navbar {
  background: linear-gradient(to top, #c6e6ee 100%, #01314a);
  border-bottom: #148ea4 1px solid;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  min-height: 80px;
}

.navbar a {
  color: #00000093;
}

.navbar a:hover {
  color: #000000;
}

.navbar-nav .nav-link.active {
  color: #000000 !important;
}

.logo {
  width: 80px;
  height: 50px;
  max-width: 100%;
}

.cta {
  font-size: 13px;
  border: none;
  padding: 8px 16px;
  color: #ffffff;
  background: linear-gradient(to right, #01314a 30%, #148ea4 80%);
  border-radius: 5px;
  min-width: 200px;
  height: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.109);
  color: #ffffff;
}

.hero-section {
  background: linear-gradient(to bottom, #c6e6ee 0%, #f5f4f4 100%);
  padding: 28px 0;
}

/* Images responsives  */
.illustration1,
.image1 {
  max-width: 100%;
  height: auto;
}

.illustration2 {
  position: absolute;
  top: 65%;
  right: -45px;
  transform: translateY(-50%);
  max-width: 45%;
  z-index: 2;
}

.image2 {
  position: absolute;
  bottom: 0px;
  right: -1px;
  width: 59%;
  max-width: 253px;
}

.test-section {
  background: linear-gradient(to bottom, #01314a 30%, #148ea4 80%);
  color: #ffffff;
  padding: 60px 0;
}

.right-img {
  width: 100%;
  height: auto;
  max-width: 358px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.check-icon-svg {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.icon {
  width: 20px;
  height: 20px;
}

.avant-test-img,
.after-img {
  width: 106%;
  height: auto;         
  object-fit: cover;   
}

@media (max-width: 576px) {
  .avant-test-img,
  .after-img {
    max-height: 250px;   
    width: 100%;
    object-fit: cover; 
     border-radius: 16px;   
  }
}


.icon2 {
  width: 45px;
  height: 45px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .navbar {
    min-height: 70px;
  }

  .logo {
    width: 80px;
    height: 50px;
  }

  .cta {
    font-size: 12px;
    min-width: 160px;
    height: 36px;
    padding: 6px 12px;
  }

  .hero-section h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  /* Correction des éléments positionnés absolument sur mobile */
  .illustration2 {
    width: 58%;
    top: 60%;
    right: -5%;
    display: block;
    max-width: 212px;
  }

  .image2 {
    top: 39%;
    margin: 10px auto;
    display: block;
    width: 63%;
    max-width: 156px;
  }
  @media only screen and (max-width: 768px) {
    .image2 {
      top: 51%;
      margin: 10px auto;
      display: block;
      width: 110%;
      max-width: 156px;
    }
  }
 
  @media only screen and (max-width: 430px) {
    .image2 {
      top: 29%;
      margin: 10px auto;
      display: block;
      width: 110%;
      max-width: 156px;
    }
  }

  .test-section {
    padding: 40px 0;
  }

  .test-section h2 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 30px;
  }

  .right-img {
    max-width: 280px;
    margin: 0 auto 30px auto;
    display: block;
  }

  .card-body {
    padding: 1rem;
  }

  .icon-circle {
    width: 35px !important;
    height: 35px !important;
    font-size: 12px;
  }

  /* Cache les éléments décoratifs   */
  .loupe {
    display: none;
  }
}

@media (max-width: 576px) {
  .cta {
    width: 100%;
    max-width: 280px;
    font-size: 11px;
  }

  .hero-section h1 {
    font-size: 1.4rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }

  .test-section h2 {
    font-size: 1.3rem;
  }

  .navbar-nav {
    text-align: center;
  }

  .navbar-nav .nav-item {
    margin: 5px 0;
  }

  .container,
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Ordre pour mobile dans test-section */
@media (max-width: 991.98px) {
  .mobile-image-first {
    order: -1;
    margin-bottom: 30px;
  }

  .mobile-text-second {
    order: 1;
    text-align: center;
  }
}

/* Corrections spécifiques pour les sections */
.avant-apres-section li {
  font-size: 14px;
}

@media (max-width: 768px) {
  .avant-apres-section li {
    font-size: 13px;
  }
}

/* FAQ améliorée */
.faq-section .card {
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .faq-section .card-body {
    padding: 15px;
  }

  .faq-section span {
    font-size: 14px !important;
  }
}

@media (max-width: 991.98px) {
  /* Navbar avec background blanc en responsive */
  .navbar {
    background: #ffffff !important;
    border-bottom: #e0e0e0 1px solid;
  }

  /* Menu collapse avec background blanc */
  .navbar-collapse.show {
    background-color: #ffffff !important;
    padding: 1rem 0;
  }
}

@media (max-width: 768px) {
  .monelement {
    max-width: 280px;
    margin: 0 auto 30px auto;
    display: block;
  }
}
