/* ===== 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: 800px;
    color: white;
}

/* ===== THÈME 1: GRANDE IMAGE DE FOND ===== */
.bg.grande-img-bg {
    height: 52rem;
    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 .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-care .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: left;
  align-items:end;
  height: 34.5rem;
  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(0, 24, 55, 0.90) ;
  z-index: 1;
}

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

.petite-img-bg .entete > .container {
  justify-content: inherit;
}

.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: 23rem;
  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 : 4rem;
}

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



/* Positionnement des images bg-duo */



.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;
}



/* ===== 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;
  }
  
  .bg.petite-img-bg {
    min-height: 40vh;
  }
  
  .bg-duo {
    min-height: 60vh;
  }
  
  .bg-duo .img-1 {
    top: 5%;
    left: 5%;
    width: 200px;
    height: 150px;
  }
  
  .bg-duo .img-2 {
    bottom: 5%;
    right: 5%;
    width: 180px;
    height: 130px;
  }
  
  .entete {
    padding: 1.5rem 0 !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;
  }
  
  .bg.petite-img-bg {
    min-height: 35vh;
  }
  
  .bg-duo {
    min-height: 50vh;
  }
  
  .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;
}


