/*
 * dist/services-core.css - base styles pour les parcours Services/Immobilier.
 * @package child-theme
*/

/* =========================================================
   TOKENS GLOBAUX — PRIMITIVES + DESIGN + TYPO (UN SEUL :root)
   - Primitives dédupliquées (fw/ls/fs)
   - Design tokens (couleurs, rayons, containers…)
   - Tokens typo (CTA / CTA-Secondary / CTA-Stats / H2 / H3 / H5 / Article / Testi-Title)
========================================================= */
:root {
  /* -------- PRIMITIVES (dédup) -------- */
  --ls-0: 0; /* letter-spacing: 0px */
  --fs-16: 1rem; /* 18px */
  --fs-18: 1.125rem; /* 18px */
  --fs-24: 1.5rem; /* 24px */
  --fw-normal: 500; /* Semibold */
  --fw-semibold: 600; /* Semibold */
  --fw-bold: 700; /* Bold */

  /* -------- DESIGN TOKENS -------- */
  /* Couleurs */
  --color-brand: #004c66;
  --color-brand-300: #008996;
  --color-btn-tertiary: #008996;
  --color-text: #222222;
  --color-muted: #888b97;
  --color-surface: #ffffff;
  --color-surface-muted: #f5f1e8;
  --border: #d9d9d9;

  /* Rayon / Ombre */
  --radius-sm: 0.375rem; /* 6px  */
  --radius-md: 0.75rem; /* 12px */
  --radius-xl: 1.5rem; /* 24px */
  --shadow-soft: 0 0.125rem 1rem rgba(0, 0, 0, 0.06); /* 0 2px 16px */

  /* Typo base */
  --fs-body: 1.125rem; /* 18px */
  --lh-body: 1.625rem; /* 26px */

  /* Containers */
  --container-1440: 90rem; /* 1440px */
  --container-1600: 90rem; /* 1600px */

  /* Décor optionnel */
  --advice-ellipse-url: none;

  /* Featured Listings (carousel) */
  --container-max: 105rem; /* 1680px */
  --card-w: 33.375rem; /* 534px */
  --gap: 1.75rem; /* 28px  */
  --control-size: 2.75rem; /* 44px  */

  /* -------- TYPO TOKENS (composites `font:`) -------- */

  /* CTA Primary — Mulish Variable Medium 18/19 */
  --cta-font-family: "mulish-variable", "Mulish", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --cta-font-weight: 500;
  --cta-font-size: var(--fs-18);
  --cta-line-height: 1.1875rem; /* 19px */
  --cta-rollover-primary: var(--cta-font-weight) var(--cta-font-size) /
    var(--cta-line-height) var(--cta-font-family);

      /* Body — Mulish Variable Regular 18/19 */
  --body-font-family: "mulish-variable", "Mulish", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --body-font-weight: 400;
  --body-font-size: var(--fs-18);
  --body-line-height: 2rem; /* 19px */
  --body: var(--body-font-weight) var(--body-font-size) /
    var(--body-line-height) var(--body-font-family);

  /* CTA Secondary — Mulish Variable Semibold 18/normal, ls 0 */
  --cta-secondary-font-family: "mulish-variable", "Mulish", system-ui,
    -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cta-secondary-font-weight: var(--fw-semibold);
  --cta-secondary-font-size: var(--fs-18);
  --cta-secondary-line-height: normal; /* 'auto' => normal */
  --cta-secondary-letter-spacing: var(--ls-0);
  --cta-secondary-font: var(--cta-secondary-font-weight)
    var(--cta-secondary-font-size) / var(--cta-secondary-line-height)
    var(--cta-secondary-font-family);
  --footer-secondary-font: var(--cta-secondary-font-weight)
    var(--fs-16) / var(--cta-secondary-line-height)
    var(--cta-secondary-font-family);

  /* CTA-Stats — Mulish Variable Semibold 56/62, ls 0 */
  --cta-stats-font-family: "mulish-variable", "Mulish", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --cta-stats-font-weight: var(--fw-semibold);
  --cta-stats-font-size: 3.5rem; /* 56px */
  --cta-stats-line-height: 3.875rem; /* 62px */
  --cta-stats-letter-spacing: var(--ls-0);
  --cta-stats-font: var(--cta-stats-font-weight) var(--cta-stats-font-size) /
    var(--cta-stats-line-height) var(--cta-stats-font-family);

      /* H1 — Cormorant Infant “medium” 48/normal */
  --h1-font-family: "cormorant-infant";
  --h1-font-weight: 400;
  --h1-font-size: 3.5rem; /* 48px */
  --h1-line-height: normal;
  --h1-font: var(--h1-font-weight) var(--h1-font-size) / var(--h1-line-height)
    var(--h1-font-family);

  /* H2 — Cormorant Infant “medium” 48/normal */
  --h2-font-family: "cormorant-infant";
  --h2-font-weight: 400;
  --h2-font-size: 3rem; /* 48px */
  --h2-line-height: normal;
  --h2-font: var(--h2-font-weight) var(--h2-font-size) / var(--h2-line-height)
    var(--h2-font-family);

  /* H3 — Cormorant Infant “medium” 40/normal */
  --h3-font-family: "cormorant-infant";
  --h3-font-weight: 400;
  --h3-font-size: 2.5rem; /* 40px */
  --h3-line-height: normal;
  --h3-font: var(--h3-font-weight) var(--h3-font-size) / var(--h3-line-height)
    var(--h3-font-family);

    /* H4 — Cormorant Infant “medium” 40/normal */
  --h4-font-family: "cormorant-infant";
  --h4-font-weight: 400;
  --h4-font-size: 2rem; /* 32px */
  --h4-line-height: normal;
  --h4-font: var(--h4-font-weight) var(--h4-font-size) / var(--h4-line-height)
    var(--h4-font-family);

  /* H5 — Mulish Variable Bold 24/32, ls 0 */
  --h5-font-family: "mulish-variable", "Mulish", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --h5-font-weight: 400;
  --h5-font-size: var(--fs-24); /* 24px */
  --h5-line-height: 2rem; /* 32px */
  --h5-letter-spacing: var(--ls-0);
  --h5-font: var(--h5-font-weight) var(--h5-font-size) / var(--h5-line-height)
    var(--h5-font-family);

  /* Article — Mulish Variable Regular 18/26, ls 0 */
  --article-font-family: "mulish-variable", "Mulish", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --article-font-weight: 400;
  --article-font-size: var(--fs-18);
  --article-line-height: 1.625rem; /* 26px */
  --article-letter-spacing: var(--ls-0);
  --article-font: var(--article-font-weight) var(--article-font-size) /
    var(--article-line-height) var(--article-font-family);

  /* Testimonial Title — Mulish Variable Semibold 20/normal, ls 0 */
  --testi-title-font-family: "mulish-variable", "Mulish", system-ui,
    -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --testi-title-font-weight: var(--fw-semibold);
  --testi-title-font-size: 1.25rem; /* 20px */
  --testi-title-line-height: normal;
  --testi-title-letter-spacing: var(--ls-0);
  --testi-title-font: var(--testi-title-font-weight)
    var(--testi-title-font-size) / var(--testi-title-line-height)
    var(--testi-title-font-family);

        /* Label Price  — Mulish Variable Semibold 18/normal, ls 0 */
  --label-price-font-family: "mulish-variable", "Mulish", system-ui,
    -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --label-price-font-weight: var(--fw-normal);
  --label-price-font-size: 1.25rem; /* 20px */
  --label-price-line-height: normal;
  --label-price-letter-spacing: var(--ls-0);
  --label-price-font: var(--label-price-font-weight)
    var(--label-price-font-size) / var(--label-price-line-height)
    var(--label-price-font-family);

}

/* =========================================================
   RESET LÉGER & BASE TYPO (inchangé)
========================================================= */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

html,
body {
  overflow-x: clip;
} /* garde-fou global */

body {
  margin: 0;
  font-family: "cormorant-infant", serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: #fff;
}

h1,
h2,
h3 {
  text-transform: none;
}

.main-wrap,
.fw-property-documents-wrap h3 span,
.fw-property-details-wrap h3 span {
  background-color: #fff;
}


/* =========================================================
   BOUTONS
========================================================= */
.main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: var(--cta-secondary-font);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.625rem 1rem; /* 10px 16px */
  transition: all 0.2s ease;
}
.main .btn--primary {
  background: var(--color-brand);
  color: #fff;
  border: 1px solid var(--color-brand);
  padding: 0.6875rem 2.5rem; /* 11px 40px */
  font-weight: 600;
}
.main .btn--primary:hover {
  background: var(--color-brand-300);
  border-color: var(--color-brand-300);
  color: #fff;
}
.main .btn--secondary {
  background: #fff;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
  padding: 0.6875rem 2.5rem; /* 11px 40px */
}
.main .btn--secondary:hover {
  background: #fff;
  color: var(--color-brand-300);
  border: 1px solid var(--color-brand);
}
.main .btn__icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
}

/* ——— Tabs (logic refactor 2025) ——— */
.luxury__tabs,
.luxury__tabs {
  position: absolute;
  left: 50%;
  bottom: 1.625rem;
  transform: translateX(-50%);   /* Centre parfaitement */
  
  display: inline-flex;          /* Taille = contenu */
  justify-content: space-between;
  align-items: center;
  gap: 0.625rem;

  padding: 1.125rem 1.25rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 0.375rem 1.5rem rgba(0, 0, 0, 0.1);
  
  white-space: nowrap;           /* Empêche l’étirement vertical */
}

.luxury__tab,
.luxury__tabs-link {
  min-height: 2.4375rem; /* 39px */
  padding: 0.0625rem clamp(1rem, 4.5vw, 1.5rem); /* 1px 16→53.5px */
  border-radius: var(--radius-sm); /* 🔒 conserve */
  border: 0;
  background: #fff;
  color: var(--color-text);
  font: var(--cta-rollover-primary);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
    line-height: 2rem;
}
.luxury__tab:hover,
.luxury__tabs-link:hover {
  background: #f6f6f6;
}
.luxury__tab.is-active,
.luxury__tabs-link.is-active {
  background: var(--color-brand);
  color: #fff;
}

/* =========================================================
   FEATURED LISTINGS — CAROUSEL (Swiper)
   - Correctif overflow pour supprimer le décalage.
========================================================= */
.featured-listings {
  padding: 3.25rem 0 6.25rem;
  background: #fff;
  --bs-card-border-width: 0;
  overflow: hidden; /* n'élargit jamais la page */
}

/* Titre + commandes */
.featured-listings h2 {
  font: var(--h2-font);
  color: #222;
}
.swiper-slide.card {
  border: 0;
}


/* Carte */
.bleed-right .card {
  display: flex;
  flex-direction: column;
  border: 0;
}
.card-media {
  position: relative;
  height: 27rem;
  border-radius: 1.5rem; /* 24px */
  overflow: hidden;
  margin-bottom: 1.25rem; /* 20px */
  cursor: pointer;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  border: 1px solid #c2ac85;
  border-radius: 0.375rem;
  padding: 1rem;
  line-height: 0;
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  color: #ceae7e;
}

/* Infos */
.card-info p {
  margin: 0;
}
/* .card-info p:not(.details):not(.price) {
  min-height: 3em;
} */
.card-info .details {
  font-size: 0.925rem;
  font-weight: var(--fw-normal);
  color: #ceae7e;
  margin-top: 0.625rem;
}
.card-info .price {
  font: var(--label-price-font);
}

/* =========================================================
   TITRE SECTION GÉNÉRIQUE
========================================================= */
.section-title {
  margin: 0 0 2rem;
  color: var(--color-text);
  text-align: center;
  font: var(--h2-font);
}



.process {
  grid-template-columns: 1fr 1fr;
}
  .process__content {
    padding: 4.5rem 0;
  }

/* =========================================================
   BREAKPOINTS — DESKTOP FIRST 2025
   Basés sur les tailles Chrome (320 → 2560px)
   ---------------------------------------------------------
   xxxl: 2560px+  → écrans 4K / ultra-wide
   xxl: 1920px+   → grands écrans
   xl: 1440px+    → laptops / desktops standards
   lg: ≤1024px    → tablettes paysage
   md: ≤768px     → tablettes portrait
   sm: ≤425px     → grands mobiles
   xs: ≤375px     → petits mobiles
   xxs: ≤320px    → très petits écrans anciens
========================================================= */

/* =================================================================
   MEDIA QUERIES — DU PLUS GRAND AU PLUS PETIT ÉCRAN — DESKTOP FIRST
==================================================================== */

/* ≤ 1440px — Laptops classiques */


/* Listing card details type */
.card .details .details-type {
  color: #222;
  text-transform: uppercase;
}
