/*
 * dist/services-responsive.css - responsive overrides pour les parcours Services/Immobilier.
 */
@media (max-width: 1680px) {
  :root {
  /* -------- PRIMITIVES (dédup) -------- */
  --ls-0: 0;
  --fs-18: 1rem;      /* 14.4px */
  --fs-24: 1.15rem;      /* 19.2px */
  --fw-semibold: 600;
  --fw-bold: 700;

  /* -------- DESIGN TOKENS -------- */
  /* Typo base */
  --fs-body: 1.1rem;    /* 14.4px */
  --lh-body: 1.6rem;    /* 20.8px */

  /* CTA Primary — 14.4 / 15.2 */
  --cta-font-size: var(--fs-18);
  --cta-line-height: 1.1rem; /* 15.2px */

  /* Body — 14.4 / 25.6 */
  --body-font-size: var(--fs-18);
  --body-line-height: 1.6rem; /* 25.6px */

  /* CTA Secondary — 14.4 / normal */
  --cta-secondary-font-size: var(--fs-18);

  /* CTA Stats — 44.8 / 49.6 */
  --cta-stats-font-size: 2.8rem;     /* 44.8px */
  --cta-stats-line-height: 3.1rem;   /* 49.6px */

  /* H1 — 38.4 / normal */
  --h1-font-size: 3.0rem; /* 38.4px */

  /* H2 — 38.4 / normal */
  --h2-font-size: 2.4rem; /* 38.4px */

  /* H3 — 32 / normal */
  --h3-font-size: 2.0rem; /* 32px */

  /* H4 — 25.6 / normal */
  --h4-font-size: 1.6rem; /* 25.6px */

  /* H5 — 19.2 / 25.6 */
  --h5-font-size: var(--fs-24); 
  --h5-line-height: 1.6rem; /* 25.6px */

  /* Article — 14.4 / 20.8 */
  --article-font-size: var(--fs-18);
  --article-line-height: 1.3rem; /* 20.8px */

  /* Testimonial Title — 16 / normal */
  --testi-title-font-size: 1rem; /* 16px */

  /* Label Price — 16 / normal */
  --label-price-font-size: 1rem; /* 16px */
}

  /* KPIs / STATS */
  .services__stats div.container--1600 {
    max-width: 1280px;
  }
  .stats {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .featured-listings .container {
    margin: 0 7.5rem;
  }
  .featured-listings .container .header {
    padding: 0;
  }
  /* empêche la dernière slide d’être coupée à droite */
  .featured-listings .bleed-right {
    /* width: calc(100vw - 7.5rem); */
  }

  /* PROCESS */


  /* CTA IMAGE LARGE */
  .services__cta-wrapper {
    max-width: 1170px;
    margin: 0 auto;
  }
  .services__cta-wrapper .services__cta-image {
    margin: 5rem auto 3.5rem;
  }

  /* ARTICLES / CONSEILS */
  .advice__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    /* gap: 1.75rem; */
    width: 100%;
    margin: 0 auto;
  }
  .advice__card {
    display: flex;
    flex-direction: column;
    /* width: auto; */
    max-width: 30%;
  }
  .advice__card img {
    width: 100%;
    object-fit: cover;
  }
  div.center {
    margin-top: 3rem;
  }

  /* NEWSLETTER (refactor 2025) */
  .newsletter__inner {
    padding: 0;
  }
}

/* ≤ 1024px — Tablettes paysage */
@media (max-width: 1024px) {
  /* Intro */
  .bloc__intro > .container--1600 {
    max-width: 980px;
  }
  .bloc__intro > .container--1600 > .intro__inner {
    min-width: 0;
  }

  /* KPIs / STATS */
  .services__stats .stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    text-align: center;
  }
  .services__stats .stat--sep {
    display: none;
  }

  /* LISTINGS / SWIPER */
  :root {
    --card-w: 23.5rem; /* 376px */
    --gap: 1.75rem;
  }
  .featured-listings .container {
    padding: 0 1rem;
    margin: 0;
  }
  .featured-listings .header {
    align-items: flex-start;
  }
  .featured-listings h2 {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
  }
  /* empêche la dernière slide d’être coupée à droite */
  .featured-listings .bleed-right {
    width: calc(100vw - 4.5rem - 1rem);
  }
  .card-media {
    height: 26rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
  }
  .card-info p {
    font-size: 1rem;
  }
  .card-info .details {
    font-size: 1rem;
    margin-top: 0.5rem;
  }
  .card-info .price {
    font-size: 1.5rem;
    margin-top: 0.5rem;
  }

  /* CTA IMAGE LARGE */
  .services__cta-wrapper {
    max-width: 980px;
    margin: 0 1.5rem;
  }
  .services__cta-wrapper .services__cta-image {
    margin: 5rem auto 3.5rem;
  }

  /* ARTICLES / CONSEILS */
  .advice__grid {
    width: 97%;
    justify-content: center;
    gap: 1em;
  }
  .advice__card img {
    width: 100%;
    object-fit: cover;
  }
  div.center {
    margin-top: 3rem;
  }

}

/* ≤ 768px — Tablettes portrait */
@media (max-width: 768px) {
  .biens .featured-listings .swiper-wrapper .swiper-slide {
    width: min(80vw, 20rem);
    max-width: min(80vw, 20rem);
    flex: 0 0 min(80vw, 20rem);
  }
  
  /* Intro */
  .bloc__intro > .container--1600 {
    max-width: 720px;
  }

  /* KPIs / STATS */
  .services__stats div.container--1600 {
    max-width: 1170px;
  }

  /* LISTINGS / SWIPER */
  :root {
    --card-w: 16.6875rem; /* 267px */
    --gap: 1rem;
  }
  .featured-listings .container {
    padding: 0 1rem;
    margin: 0;
    padding-right: 0;
  }
  .featured-listings .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
  }
  /* empêche la dernière slide d’être coupée à droite */
  .featured-listings .bleed-right {
    /* width: calc(100vw - 1rem);
    margin-left: 0; */
    width: 100%;
    margin-left: 0;
  }
  .luxury__cards-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: clamp(12px, 4vw, 24px);
    width: 100vw;
    max-width: none;
    padding: 0 clamp(16px, 5vw, 36px) 1.25rem;
    margin: 4rem 0 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    scroll-padding-left: clamp(16px, 5vw, 36px);
    scroll-padding-right: clamp(16px, 5vw, 36px);
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .luxury__cards-grid::-webkit-scrollbar {
    display: none;
  }
  .luxury__cards-grid .luxury__card {
    will-change: auto;
    transition: none;
    flex: 0 0 auto;
    width: min(78vw, 360px);
    height: auto;
    margin: 0;
    scroll-snap-align: start;
  }
  .swiper-wrapper .swiper-slide{
    width: 70vw;
  }
  .card-media {
    height: 25rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
  } /* 303px */
  .card-info .details {
    font-size: 0.875rem;
    margin-top: 0.375rem;
  }
  .card-info .price {
    font-size: 1.25rem;
    margin-top: 0.625rem;
  }
  div#swiper-wrapper {
    transform: translate3d(0px, 0px, 0px) !important;
  }

  /* PROCESS */
  
  .luxury__process {
    padding: 0;
  }
  .luxury__process .process {
    max-width: 980px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }
  .luxury__process .process__media {
    display: none;
  }
  .luxury__process .process__content {
    background: transparent;
    justify-content: center;
  }
  .luxury__process .process__inner {
    max-width: 100%;
    padding: 0;
  }
  .process__inner {
    width: 100%;
    scale: 1;
    }
  .luxury__process .process__title {
    padding: 0;
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 3vw, 2.375rem);
    line-height: 1.25;
  }
  .luxury__process .process__intro {
    padding: 0;
    margin: 0 0 2rem;
    font-size: 1.0625rem;
    line-height: 1.8;
    max-width: 32rem;
  }
  .luxury__process .acc {
    gap: 1.5rem;
  }
  .luxury__process .acc__item {
    border: none;
  }
  .luxury__process .acc__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 0;
  }
  .luxury__process .acc__summary::after {
    content: "+";
    position: static;
    transform: none;
    background: transparent;
    color: var(--color-brand);
    font-size: 1.5rem;
    line-height: 1;
    margin-right: 1rem;
  }
  .luxury__process .acc__item[open] .acc__summary::after {
    content: "–";
  }
  .luxury__process .acc__panel {
    padding: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 28rem;
  }
  .luxury__process div.acc .borderline {
    display: block;
    margin: 0;
    border-color: rgba(0, 0, 0, 0.12);
  }

  /* ARTICLES / CONSEILS */
  .luxury__advice .advice__grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 1.5rem;
    /* max-width: 720px; */
  }

  /* NEWSLETTER (refactor 2025) */
  .newsletter__title,
  .newsletter__subtitle {
    line-height: clamp(2.25rem, 6.5vw, 2.75rem);
    font-size: 2.875rem;
  }
  .newsletter__headlines {
    margin-bottom: 2rem;
  }
}

@media (max-width: 1024px) {
  .luxury__tabs,
  .luxury__tabs {
	flex-direction: column-reverse;	
	background: transparent;
	align-items: baseline;
	box-shadow: none;
	}
  .luxury__tabs,
  .luxury__tabs {
    max-inline-size: 25rem;
    transform: translateX(0px);
    margin-right: auto;
    left: 2rem;
  } /* 400px */
  .luxury__tab,
  .luxury__tabs-link {
    padding-inline: 1.5rem;
  }
}
/* ≤ 425px — Grands mobiles */
@media (max-width: 440px) {
  /* Tabs (refactor 2025) */

  /* Intro */
  .intro__text {
    padding: 0 3.375rem;
  }

  /* KPIs / STATS */
  .services__stats div.container--1600 {
    max-width: 90%;
  }
  .services__stats .stats {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
    justify-items: center;
  }
  .services__stats .stat {
    max-width: 400px;
  }
  .services__stats .stat--sep {
    display: none;
  }

  /* LISTINGS / SWIPER */
  .featured-listings .container {
    margin: 0;
  }
  .featured-listings .bleed-right {
    width: calc(100vw - 1rem);
  }

  /* Process / Intro spacing */
  .bloc__intro {
    padding: 4.5rem 0 3.5rem;
  }
  .section-title {
    margin: 2.25rem 0 2rem;
  }
  .luxury__process .acc__summary {
    font-size: 1.25rem;
  }

  /* ARTICLES / CONSEILS */
  .luxury__advice {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    padding-block: 3rem;
  }
  .luxury__advice .advice__inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
  .luxury__advice .advice__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
  }
  .luxury__advice .advice__card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .luxury__advice .advice__card img {
    width: 100%;
    display: block;
    border-radius: 0.8rem;
  }
  .luxury__advice .center {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .luxury__advice .center a {
    margin: 0 auto;
  }

  /* TESTIMONIALS compact */
  .testimonials {
    background: #f8f4ec;
    padding: 40px 0 106px;
  }
  .testimonials__title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 16px 16px;
    text-align: center;
    font-weight: 500;
  }
  .testimonials__rows {
    overflow: hidden;
    padding: 0 12px;
    gap: 0;
  }
  .testimonials__row {
    gap: 16px;
    overflow: visible;
    will-change: transform;
  }
  .testimonials__row.row-2 {
    display: none;
  }
  .testimonials .testimonial__card {
    flex: 0 0 267px;
    max-width: 267px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }
  .testimonial__header {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 10px;
    row-gap: 2px;
    align-items: center;
    align-content: start;
  }
  .testimonial__avatar {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }
  .testimonial__name {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font: 600 16px/20px Montserrat, sans-serif;
    color: #222;
  }
  .testimonial__rating {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
  }
  .star-icon {
    width: 14px;
    height: 14px;
  }
  .testimonial__line {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #ddd;
  }
  .testimonial__review {
    margin: 0;
    color: #444;
    font-size: 1rem;
    font-weight: 300;
  }

  /* NEWSLETTER (refactor 2025) */
  .newsletter {
    width: 100%;
    margin-top: -6rem;
  }
  .newsletter__box {
    padding: 1.5rem;
  } /* 🔒 radius non modifié */
  .newsletter__headlines {
    text-align: left;
    margin-bottom: 1.5rem;
  }
  .newsletter__title,
  .newsletter__subtitle {
    margin-bottom: 0.3rem;
    font-size: 1em;
    line-height: 1.5em;
  }
  .newsletter__disclaimer {
    font-size: 0.5rem;
  }
  .btn--primary{
    padding: 0.625rem 1rem;
  }
}

/* ≤ 375px — Petits mobiles (iPhone 13 Mini, etc.) */
@media (max-width: 390px) {
  .btn--primary {
    padding: 0.6875rem 0.75rem;
  }
  .intro__text {
    padding: 0 1.375rem;
  }
  .intro__cta {
    font-size: 1rem;
  }
  .luxury__tab,
  .luxury__tabs-link {
    padding-inline: 1rem;
  }
}

/* ≤ 320px — Très petits écrans (anciens Android) */
@media (max-width: 344px) {
  /* Tabs (refactor 2025) */
  .luxury__tab,
  .luxury__tabs-link {
    padding-inline: 0.5rem;
  }
  .luxury__tabs,
  .luxury__tabs {
    max-inline-size: 18.75rem;
  } /* 300px */
  .btn--primary {
    padding: 0.6875rem 0.55rem;
  }
  .btn {
    font-size: 0.875rem;
  }
  .intro__text {
    padding: 0 0.5rem;
  }
  .card-media {
        width: calc(100vw - 2rem);
    }
}

/* Empêche la colonne image de se replier et donc le zoom visuel */
/* Donne une hauteur fixe au container beige */
.luxury__process {
  min-height: 46rem; /* ou 50rem selon maquette */
  display: flex;
}

/* La grille interne en flex */
.luxury__process .process {
  display: flex;
  width: 100%;
}

/* Colonne image : remplit toute la hauteur */
.luxury__process .process__media {
  flex: 0 0 50%;
  height: 100%;
}
.luxury__process .process__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Colonne droite : scroll interne si accordéon trop long */
.luxury__process .process__content {
  flex: 1;
  overflow-y: auto;
  padding: 4.5rem 0 0 0;
}



@media (max-width: 1024px) {
 .luxury__advice .advice__grid {
     margin-bottom: 1.25rem !important;
  }
}




