.cta__text.licencie {
    max-width: 60rem;
}

.services__cta-wrapper::before{
    display: none;
}

.services__cta-image.licencie{
    margin-bottom: 7.5rem;
}

.licencie-network {
    margin-bottom: 9.38rem;
}

.licencie-network .container {
    position: relative;
    padding: 0;
}

.licencie-network__inner {
    display: flex;
    align-items: flex-end;
    gap: 40px;
}

.licencie-network__gallery {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.licencie-network__card {
    width: 390px;
    height: 489px;
    border-radius: 24px;
    overflow: hidden;
}

.licencie-network__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.licencie-network__card--right {
    margin-top: 151px;
    margin-bottom: 0;
}

.licencie-network__content {
    flex: 1;
    color: #2b2624;
    min-width: 534px;
}

.licencie-network__content .licencie-network__title p,
.licencie-network__title {
    font: var(--h2-font);
    margin-bottom: 1.5rem;
}

.licencie-network__content p,
.licencie-network__text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.licencie-network__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.688rem 2.5rem;
    background: #fff;
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.licencie-network__cta:hover,
.licencie-network__cta:focus-visible {
    background: white;
    color: var(--color-btn-tertiary);
    border-color: var(--color-btn-tertiary);
}

.licencie-network__cta:focus-visible {
    outline: none;
}

/* Ellipses décoratives autour de la grille de 4 cards (page Louer) */
.licencie-network.ellipses{
  position: relative;
  isolation: isolate;   /* évite les fuites de z-index */
  z-index: 0;
  --ellipse-size: 47rem;
  --ellipse-color: rgba(243, 204, 135, 0.6); /* #F3CC87 à 40% */
  --ellipse-blur: 300px;

  /* variables de position : ajuste-les comme tu veux */
  --ellipse-left-top: 22rem;   /* ⬇️ Descendre/monter l’ellipse du haut */
  --ellipse-right-bottom: 0rem;
}

/* ellipse haut-gauche */
.licencie-network.ellipses::before{
  content:"";
  position:absolute;
  width:10rem;
  height:30rem;
  left:15rem;
  top:0rem;
  background:var(--ellipse-color);
  border-radius:50%;
  filter: blur(var(--ellipse-blur));
  z-index:-1;
}

/* =========================================================
   RESPONSIVE - licencie.css (desktop-first, max-width)
   Base = 2560-1920 ; correctifs en dessous | PAGES CIBLEES UNIQUEMENT
========================================================= */
@media (max-width: 1680px) {
  /* Contient la section reseau */
   .licencie-network__inner {
    gap: clamp(32px, 5vw, 40px);
  }
   .licencie-network__card {
    width: 320px;
    height: 420px;
  }
   .licencie-network__content {
    min-width: 420px;
  }
}

@media (max-width: 1280px) {
  /* Reduit l'offset vertical des images */
   .licencie-network__card--right {
    margin-top: 96px;
  }
   .licencie-network__inner {
    align-items: center;
  }
}
@media (min-width: 1200px) {
    .licencie-network .container {
        max-width: 1380px;
    }
}
@media (max-width: 1024px) {
  /* Passage en colonne unique */
   .licencie-network__inner {
    flex-direction: column;
    align-items: stretch;
  }
   .licencie-network__gallery {
    justify-content: center;
  }
   .licencie-network__content {
    min-width: 0;
  }
   .licencie-network__card--right {
    margin-top: 40px;
  }
  .licencie-network__inner {
    align-items: center;
    flex-direction: column;
  }
  .licencie-network__content {
    min-width: 80vw;
    width: 80vw;
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* Cartes sur une seule colonne */
   .licencie-network__gallery {
    padding: 0 20px;
    gap: 24px;
  }
   .licencie-network__card,
   .licencie-network__card--right {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-top: 0;
  }
  .licencie-network__card{
    border-radius: 12px;
  }
  
    .bloc__intro {
        padding: 4.5rem 0;
    }
}

@media (max-width: 640px) {
  /* Ajuste la typo et les espacements */
  .licencie-network__content .licencie-network__title p,
   .licencie-network__title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
   .licencie-network {
    margin-bottom: 5rem;
  }
  .licencie-network__gallery {
    gap: 12px;
  }
     
}

@media (max-width: 480px) {
  /* Evite tout overflow horizontal */
   .licencie-network .container {
    padding-inline: clamp(16px, 6vw, 20px);
  }
  .btn--primary {
    padding: 0.6875rem 0.5rem;
}
a.btn.btn--primary.licencie-network__cta {
      padding: 0.6875rem 1.5rem;

}
}

@media (max-width: 375px) {
  /* Compresse les marges */
   .licencie-network__cta {
    padding-inline: 2rem;
  }
}

@media (max-width: 320px) {
  /* Dernier garde-fou */
   .licencie-network__cta {
    width: 100%;
  }
    .btn--primary {
    padding: 0.6875rem 0.5rem;
}
}

/* ellipse bas-droite */
.licencie-network.ellipses::after{
  content:"";
  position:absolute;
  width:35rem;
  height:25rem;
  right:0rem;
  bottom:var(--ellipse-right-bottom);
  background:var(--ellipse-color);
  border-radius:50%;
  filter: blur(var(--ellipse-blur));
  z-index:-1;
}


@media (max-width: 1200px) {
    .licencie-network__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .licencie-network__content {
        max-width: none;
    }

    .licencie-network__gallery {
        justify-content: center;
    }

    .licencie-network__card--right {
        margin-top: 40px;
    }
}

.reseau .licencie-network .container {
    position: relative;
    padding: 0 8rem;
}

.reseau .licencie-network__inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.reseau .licencie-network__card{
    width: 560px;
    height: 489px;
    border-radius: 24px;
    overflow: hidden;
}

.reseau .licencie-network__card--right {
    margin-top: 0;
}

.reseau .licencie-network {
    margin-bottom: 8rem;
    margin-top: 8rem;
}
/* Each line as a controlled row */
.section-title-line {
  display: block;
}

/* Optional: subtle spacing between lines */
.section-title-line + .section-title-line {
  margin-top: 0.2em;            /* ajuste selon ton rendu */
}

/* Accent mark "Lp" */
.section-title-mark {
  color: #0E6A86;               /* accent */
  font-weight: 500;            /* ou 600 selon ta typo */
  letter-spacing: -0.02em;
  margin-left: 0.08em;

  /* micro-ajustement optique (optionnel) */
  position: relative;
  top: -0.02em;
}

@media only screen and (max-width:991px){
  .reseau .licencie-network {
    margin-bottom: 6rem;
    margin-top: 6rem;
}
}
@media only screen and (max-width:767px){
  .reseau .licencie-network {
    margin-bottom: 4rem;
    margin-top: 2rem;
}
}