/* ===== STYLES DE BASE COMMUNS ===== */
.bg,
.bg-duo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.entete {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 2rem 0;
}

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.element {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.content {
  max-width: 850px;
  color: white;
}

/* ===== THÈME 1: GRANDE IMAGE DE FOND ===== */
.bg.grande-img-bg {
  height: 52rem;
  background-image: var(--bg-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  opacity: 0;
  animation: fadeInBackground 1s ease-in forwards;
}

/* Animation du background */
@keyframes fadeInBackground {
  to {
    opacity: 1;
  }
}

.grande-img-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 7rem;
  background: var(--white);
}

.grande-img-bg::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: floatUp 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    bottom: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    bottom: 7rem;
  }
}

.grande-img-bg .voile {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #001837 0%, rgba(0, 24, 55, 0.00) 53.06%);
  z-index: 1;
}

.grande-img-bg .entete {
  padding: 4rem 0;
}

.grande-img-bg .element {
  min-height: 400px;
  text-align: center;
}

.grande-img-bg h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* Wrapper pour le titre animé */
.animated-title {
  overflow: visible;
}

/* Lignes du titre - cachées initialement */
.title-content {
  margin: 0;
  line-height: 1.1;
}

.title-line {
  display: inline;
  opacity: 0;
  transform: translateY(20px);
}

.title-line.animate {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Strong avec surlignage progressif */
.euclide-care .grande-img-bg h1 strong {
  display: inline;
  background: linear-gradient(to right, rgba(52, 160, 159, 0.90) 0%, rgba(52, 160, 159, 0.90) 0%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  padding: 0 0.2em;
}

.euclide-solution .grande-img-bg h1 strong {
  display: inline;
  background: linear-gradient(to right, rgba(158, 133, 118, 0.90) 0%, rgba(158, 133, 118, 0.90) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  padding: 0 0.2em;
}

.euclide-vaillant .grande-img-bg h1 strong {
  display: inline;
  background: linear-gradient(to right, rgba(224, 191, 0, 0.90) 0%, rgba(224, 191, 0, 0.90) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  padding: 0 0.2em;
}

.euclide-care .grande-img-bg h1 strong.highlight,
.euclide-solution .grande-img-bg h1 strong.highlight,
.euclide-vaillant .grande-img-bg h1 strong.highlight {
  animation: highlightText 0.8s ease forwards;
}

@keyframes highlightText {
  to {
    background-size: 100% 100%;
  }
}

/* Intro - cachée initialement */
.grande-img-bg .intro {
  font-size: clamp(1rem, 1.1875rem + 0.5vw, 1.5rem);
  margin-bottom: 2rem;
  opacity: 0;
  line-height: 1.4;
  transform: translateY(30px);
}

.grande-img-bg .intro.animate {
  animation: fadeInUpIntro 0.8s ease forwards;
}

@keyframes fadeInUpIntro {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}


/* ===== THÈME 2: PETITE IMAGE DE FOND ===== */

.petite-img-bg {
  justify-content: center;
  align-items: end;
  height: 36.5rem;
  background-image: var(--bg-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.petite-img-bg .voile {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 20, 41, 0.73);
  z-index: 1;
}

.petite-img-bg .entete {
  max-width: 75rem;
}

.petite-img-bg .entete>.container {
  justify-content: inherit;
  margin-top: 2rem;
  padding: 0;
}

.petite-img-bg .element {
  justify-content: center;
  max-width: 37.0625rem;

}

.petite-img-bg h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  max-width: 43rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
}

.petite-img-bg .intro {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.3;
}

/* ===== THÈME 3: BG-DUO (DEUX IMAGES DÉCALÉES) ===== */

.duo-img {
  display: flex;
  min-height: 45rem;
  background: radial-gradient(#022046, #031429);
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 4rem;
}

.duo-img_container {
  max-width: 60rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.06rem;
}

.duo-img_images {
  flex: 1 1 55%;
  display: flex;
  gap: 1.06rem;
}



/* Positionnement des images bg-duo */

.duo-img .bg-duo_arrow{
  display: none;
}

.duo-img .img-1 {
  margin-top: 4rem;
  width: 17.5rem;
  height: 23.625rem;
  flex-shrink: 0;
}

.duo-img .img-2 {
  width: 17.5rem;
  height: 23.625rem;
  flex-shrink: 0;
}



.duo-img .entete {
  position: relative;
  padding: 3rem 0;
  flex: 35%;
}

.duo-img .content {
  min-height: 350px;
  text-align: left;
  color: #CAD8E2;
  font-size: 1.1875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.75rem;
}

.duo-img .content .title-content {
  margin-bottom: 3rem;
}

/* ===== BOUTON CTA COMMUN ===== */

.cta-wrapper {
  margin-top: 2rem;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .bg.grande-img-bg {
    min-height: 70vh;
        background-image: var(--bg-mobile, var(--bg-desktop));
  }

  .bg.petite-img-bg {
    min-height: 40vh;
  }

  .bg-duo {
    min-height: 60vh;
  }

  .duo-img {
    display: block;
    background: url('image.png')  no-repeat;
    background-size: cover;
    padding: 2rem 0;
  }

    .duo-img has:(header) {
    position: absolute;
  }

   .duo-img_container {
    display: block;
    text-align: center;
  }

  .duo-img .entete .content {
    text-align: center;
  }
  .duo-img .bg-duo_arrow{
    display: block;
      animation: glissement 2s ease-in-out infinite;  }

 @keyframes glissement {
      0% {
        margin-top: 0;
        opacity: 0.6;
      }
      50% {
        margin-top: 1.5rem;
        opacity: 1;
      }
      100% {
        margin-top: 0;
        opacity: 0.6;
      }
    }

  .bg-duo .img-1 {
    top: 5%;
    left: 5%;
    width: 250px;
    height: 200px;
  }



    .bg-duo-img.img-1 {
    margin: 10rem auto 2.25rem auto;
    height: 200px;
  }

  .bg-duo-img.img-1 img {
    border-radius: 50%;
    width: 15.5rem;
height: 15.5rem;
    object-fit: cover;
  }

  .bg-duo-img.img-2 {
    display: none;
  }

  .entete {
    padding: 1.5rem 0 !important;
  }

    .bg.petite-img-bg .entete {
    padding: 1.5rem !important;
  }

  .container {
    padding: 0 1rem;
  }

  .btn-cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .bg.grande-img-bg {
    min-height: 60vh;
    background-image: none;
    background-image: var(--bg-mobile);
  }

  .bg.petite-img-bg {
    min-height: 35vh;
  }

  .bg-duo {

    min-height: 50vh;
  }

  .duo-img {
    display: block;
    min-height: 250px;
    height: 100vh;
  }

  .duo-img_container {
    display: block;
    text-align: center;
  }

  .duo-img .entete .content {
    text-align: center;
  }

  .duo-img .entete {
  position: relative;
  padding: 0;
  height: 30vh;

}


  .duo-img_images {
    display: block;
    gap: 1.06rem;
  }

  .bg-duo-img.img-1 {
    margin: 10rem auto 2.25rem auto;
    height: 200px;
  }

  .bg-duo-img.img-1 img {
    border-radius: 50%;
    width: 15.5rem;
height: 15.5rem;
    object-fit: cover;
  }

  .bg-duo-img.img-2 {
    display: none;
  }

  .bg-duo .img-1,
  .bg-duo .img-2 {
    width: 120px;
    height: 90px;
  }

  .bg-duo .img-1 {
    top: 8%;
    left: 5%;
  }

  .bg-duo .img-2 {
    bottom: 8%;
    right: 5%;
  }

  .element {
    min-height: 200px !important;
  }
}

/* ===== ANIMATIONS D'ENTRÉE ===== */

.entete {
  animation: fadeInUp 1s ease-out;
}