/* =============================================================
   SWISS INVEST LIMA — Feuille de styles principale
   Sommaire :
   1. Variables (design tokens)
   2. Réinitialisation & base
   3. Typographie
   4. Mise en page (conteneurs, grilles, sections)
   5. Composants : boutons, badges, cartes
   6. En-tête & navigation
   7. Pied de page
   8. Hero / bannières
   9. Sections spécifiques (stats, citations, process, etc.)
   10. Formulaires
   11. Bouton WhatsApp flottant
   12. Animations & révélations au défilement
   13. Utilitaires
   14. Media queries globales
   ============================================================= */

@import url('fonts.css');

/* ----------------------------------------------------------
   1. VARIABLES — design tokens
   ---------------------------------------------------------- */
:root {
  /* Couleurs de marque — inspirées des drapeaux suisse & péruvien,
     approfondies pour un rendu premium et intemporel */
  --c-red:        #9A1B2C;   /* rouge profond — couleur signature */
  --c-red-dark:   #6E1320;   /* rouge assombri — dégradés, profondeur */
  --c-red-bright: #C8202F;   /* rouge vif — interactions, accents */
  --c-red-wash:   #F7E8E9;   /* rouge très clair — fonds discrets */

  --c-ink:        #1B1C22;   /* encre — texte principal, fonds sombres */
  --c-anthracite: #24262E;   /* anthracite — sections sombres, cartes */
  --c-anthracite-2:#2E313B;  /* anthracite clair — survols sur fond sombre */
  --c-slate:      #686B74;   /* gris ardoise — texte secondaire */
  --c-slate-2:    #6C6F77;   /* gris moyen — texte tertiaire, légendes (≥5:1 sur blanc, WCAG AA) */
  --c-mist:       #E4E0D8;   /* gris-perle — séparateurs, bordures */
  --c-cream:      #F5F2EC;   /* ivoire — fonds de section alternés */
  --c-paper:      #FBFAF7;   /* presque blanc — surfaces, cartes */
  --c-white:      #FFFFFF;

  /* Alias sémantiques */
  --color-bg:           var(--c-white);
  --color-bg-alt:       var(--c-cream);
  --color-surface:      var(--c-paper);
  --color-text:         var(--c-ink);
  --color-text-soft:    var(--c-slate);
  --color-text-mute:    var(--c-slate-2);
  --color-border:       var(--c-mist);
  --color-accent:       var(--c-red);
  --color-accent-bright:var(--c-red-bright);

  /* Typographie */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --fs-xs:   0.8125rem;                              /* 13px  */
  --fs-sm:   0.9375rem;                              /* 15px  */
  --fs-base: 1rem;                                   /* 16px  */
  --fs-md:   1.125rem;                               /* 18px  */
  --fs-lg:   clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-xl:   clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-2xl:  clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --fs-3xl:  clamp(2.4rem, 1.6rem + 3vw, 3.75rem);
  --fs-4xl:  clamp(2.9rem, 1.8rem + 4.4vw, 4.75rem);

  --lh-tight:  1.12;
  --lh-snug:   1.32;
  --lh-normal: 1.6;
  --lh-loose:  1.8;

  --ls-tight: -0.02em;
  --ls-wide:  0.04em;
  --ls-wider: 0.14em;

  /* Espacements (échelle fluide) */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  0.75rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.25rem;
  --space-xl:  3.5rem;
  --space-2xl: clamp(3.5rem, 2.6rem + 4vw, 6.5rem);
  --space-3xl: clamp(5rem, 3.5rem + 6vw, 9rem);

  /* Mise en page */
  --container-max: 1280px;
  --container-narrow: 860px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(27, 28, 34, 0.06), 0 1px 1px rgba(27, 28, 34, 0.04);
  --shadow-md: 0 12px 28px -10px rgba(27, 28, 34, 0.18);
  --shadow-lg: 0 30px 60px -18px rgba(27, 28, 34, 0.28);
  --shadow-red: 0 16px 32px -12px rgba(154, 27, 44, 0.45);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 620ms;

  --header-h: 84px;
}

/* ----------------------------------------------------------
   2. RÉINITIALISATION & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { color: transparent; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
fieldset { border: 0; }

table { border-collapse: collapse; width: 100%; }

/* Sélection de texte aux couleurs de la marque */
::selection { background: var(--c-red); color: var(--c-white); }

/* Barre de défilement discrète (navigateurs WebKit) */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--c-cream); }
::-webkit-scrollbar-thumb { background: var(--c-mist); border-radius: 8px; border: 3px solid var(--c-cream); }
::-webkit-scrollbar-thumb:hover { background: var(--c-slate-2); }

/* Confort de lecture : on respecte la préférence "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Lien d'évitement pour l'accessibilité au clavier */
.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -60px;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 0.85em 1.4em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  z-index: 1000;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: var(--space-sm); outline: 2px solid var(--c-white); outline-offset: 2px; }

/* État de focus clavier visible et cohérent */
:focus-visible {
  outline: 2.5px solid var(--c-red);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn:focus-visible, .nav-link:focus-visible { outline-offset: 4px; }

/* ----------------------------------------------------------
   3. TYPOGRAPHIE
   ---------------------------------------------------------- */
h1, h2, h3, h4,
.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--c-ink);
  text-wrap: balance;
}

h1, .h1 { font-size: var(--fs-4xl); font-weight: 580; }
h2, .h2 { font-size: var(--fs-3xl); }
h3, .h3 { font-size: var(--fs-2xl); }
h4, .h4 { font-size: var(--fs-xl); font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--color-text-soft); }
p + p { margin-top: 1em; }

.lead {
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--color-text-soft);
}

.text-ink { color: var(--c-ink) !important; }
.text-soft { color: var(--color-text-soft) !important; }
.text-mute { color: var(--color-text-mute) !important; }
.text-on-dark { color: rgba(255,255,255,0.78) !important; }
.text-white { color: var(--c-white) !important; }
.text-accent { color: var(--c-red) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--c-red);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow--on-dark { color: #E8B4BB; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

blockquote {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--c-ink);
  font-weight: 500;
  text-wrap: balance;
}

strong, b { font-weight: 650; color: var(--c-ink); }

.serif { font-family: var(--font-display); }

/* ----------------------------------------------------------
   4. MISE EN PAGE
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--narrow { max-width: var(--container-narrow); }
.container--text { max-width: 740px; }

.section {
  padding-block: var(--space-2xl);
  position: relative;
}
.section--tight { padding-block: var(--space-xl); }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: linear-gradient(165deg, var(--c-ink) 0%, var(--c-anthracite) 100%);
  color: rgba(255,255,255,0.86);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-white); }
.section--dark p { color: rgba(255,255,255,0.66); }
.section--red {
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  color: rgba(255,255,255,0.92);
}
.section--red h2, .section--red h3 { color: var(--c-white); }
.section--red p { color: rgba(255,255,255,0.78); }

.section-head {
  max-width: 760px;
  margin-bottom: var(--space-xl);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head > .eyebrow { margin-bottom: var(--space-sm); }
.section-head > h2, .section-head > h3 { margin-top: var(--space-2xs); }
.section-head > .lead { margin-top: var(--space-md); }

.section-foot {
  margin-top: var(--space-xl);
  display: flex;
  justify-content: center;
}

hr.divider {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-xl);
}

/* Grilles */
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mise en page "split" : visuel + texte côte à côte */
.split {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-2xl); }
  .split--reverse .split__media { order: 2; }
  .split--reverse .split__content { order: 1; }
  .split--narrow-media { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); }
}
.split__content { max-width: 560px; }
.split--reverse .split__content { margin-left: auto; }

/* ----------------------------------------------------------
   5. COMPOSANTS — boutons, badges, cartes
   ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform var(--t-med) var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--c-red); --btn-fg: var(--c-white); border-color: var(--c-red); box-shadow: var(--shadow-red); }
.btn--primary:hover { --btn-bg: var(--c-red-bright); border-color: var(--c-red-bright); }

.btn--dark { --btn-bg: var(--c-ink); --btn-fg: var(--c-white); border-color: var(--c-ink); }
.btn--dark:hover { --btn-bg: var(--c-anthracite-2); border-color: var(--c-anthracite-2); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  border-color: currentColor;
}
.btn--outline:hover { --btn-bg: var(--c-ink); --btn-fg: var(--c-white); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: var(--c-white);
  border-color: rgba(255,255,255,0.55);
}
.btn--outline-light:hover { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); border-color: var(--c-white); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--c-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border-color: transparent;
  padding-inline: 0.4em;
  text-underline-offset: 0.3em;
}
.btn--ghost svg { width: 1.05em; height: 1.05em; flex: none; transition: transform var(--t-med) var(--ease); }
.btn--ghost:hover { --btn-fg: var(--c-red); transform: none; }
.btn--ghost:hover svg { transform: translateX(4px); }

.btn--lg { padding: 1.15em 2.4em; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

/* Badges / étiquettes */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.5em 1em;
  border-radius: var(--radius-pill);
  background: var(--c-red-wash);
  color: var(--c-red);
  border: 1px solid rgba(154,27,44,0.16);
}
.tag--dark { background: rgba(255,255,255,0.08); color: var(--c-white); border-color: rgba(255,255,255,0.18); }
.tag--mist { background: var(--c-cream); color: var(--color-text-soft); border-color: var(--color-border); }
.tag--light { background: rgba(255,255,255,0.92); color: var(--c-ink); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); }

/* Cartes génériques */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--c-red-wash);
  color: var(--c-red);
  margin-bottom: var(--space-md);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3, .card h4 { margin-bottom: var(--space-2xs); overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.card--feature h3.h4, .card--feature .h4 { font-size: var(--fs-lg); line-height: var(--lh-snug, 1.25); }
.card p:last-child { margin-bottom: 0; }

.card--feature { display: flex; flex-direction: column; height: 100%; }

/* Carte "stat" */
.stat-card {
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-align: left;
}
.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.5rem);
  line-height: 1.05;
  color: var(--c-red);
  font-weight: 600;
  overflow-wrap: break-word;
  hyphens: auto;
  letter-spacing: -0.01em;
}
.stat-card__label {
  display: block;
  margin-top: var(--space-2xs);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  line-height: var(--lh-snug);
}
.stat-card__source {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--color-text-mute);
}

/* ----------------------------------------------------------
   6. EN-TÊTE & NAVIGATION
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 30px -16px rgba(27,28,34,0.22);
}
.site-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { display: block; height: 50px; width: auto; }

.nav-desktop { display: none; }
.nav-desktop__list { display: flex; align-items: center; gap: var(--space-lg); }
.nav-link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
  padding-block: 0.4em;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--c-red);
  transition: right var(--t-med) var(--ease);
  border-radius: 2px;
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--c-red); }

.header__actions { display: flex; align-items: center; gap: var(--space-sm); }
.lang-switch { display: none; align-items: center; gap: 0.35rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; }
.lang-switch button,
.lang-switch a {
  position: relative;
  padding: 0.35em 0.55em;
  border-radius: var(--radius-sm);
  color: var(--color-text-mute);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.lang-switch button.is-active,
.lang-switch a.is-active { color: var(--c-red); background: var(--c-red-wash); }
.lang-switch button:not(.is-active):hover,
.lang-switch a:not(.is-active):hover { color: var(--c-ink); background: var(--c-cream); }

/* Bouton "menu" mobile (icône hamburger -> croix) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.nav-toggle__box { position: relative; width: 18px; height: 13px; }
.nav-toggle__line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease), top var(--t-med) var(--ease);
}
.nav-toggle__line:nth-child(1) { top: 0; }
.nav-toggle__line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle__line:nth-child(3) { top: 100%; transform: translateY(-100%); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

/* Panneau de navigation mobile (plein écran) */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 190;
  background: var(--c-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-xl) var(--container-pad) var(--space-xl);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  overflow-y: auto;
}
.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s;
}
.nav-mobile__list { display: flex; flex-direction: column; }
.nav-mobile__list a {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding-block: 0.85em;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-ink);
}
.nav-mobile__list a span { font-family: var(--font-body); font-size: var(--fs-xs); color: var(--c-red); font-weight: 700; }
.nav-mobile__list a.is-active { color: var(--c-red); }
.nav-mobile__foot { margin-top: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); }
.nav-mobile__foot .lang-switch { display: inline-flex; }
.nav-mobile__contact { font-size: var(--fs-sm); color: var(--color-text-soft); }
.nav-mobile__contact a { color: var(--c-ink); font-weight: 600; }
body.nav-open { overflow: hidden; }

/* ----------------------------------------------------------
   7. PIED DE PAGE
   ---------------------------------------------------------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.62);
  padding-block: var(--space-2xl) var(--space-lg);
}
.footer__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-lg); }
}
.footer__tagline { margin-top: var(--space-sm); max-width: 320px; color: rgba(255,255,255,0.56); font-size: var(--fs-sm); }
.footer__cities { margin-top: var(--space-md); display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--fs-sm); }
.footer__cities li { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.7); }
.footer__cities svg { width: 16px; height: 16px; color: var(--c-red-bright); flex: none; }

.footer__heading { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: var(--space-md); }
.footer__links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__links a { font-size: var(--fs-sm); color: rgba(255,255,255,0.72); transition: color var(--t-fast) var(--ease), padding var(--t-fast) var(--ease); overflow-wrap: break-word; }
.footer__links a:hover { color: var(--c-white); padding-left: 0.3em; }

.footer__social { display: flex; gap: 0.6rem; margin-top: var(--space-md); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--c-white);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.footer__social a:hover { background: var(--c-red); border-color: var(--c-red); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }

/* Variante "claire" : utilisée sur fond clair (page Contact) — icônes en rouge sur fond teinté */
.footer__social--light a {
  background: var(--c-red-wash);
  border: 1px solid var(--color-border);
  color: var(--c-red);
}
.footer__social--light a:hover { background: var(--c-red); border-color: var(--c-red); color: var(--c-white); }

.footer__bottom {
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}
.footer__bottom a { color: rgba(255,255,255,0.55); }
.footer__bottom a:hover { color: var(--c-white); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--space-md); }

/* ----------------------------------------------------------
   8. HERO / BANNIÈRES
   ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 4vw, 6rem);
  padding-bottom: clamp(4rem, 7vw, 8rem);
  background: linear-gradient(178deg, #1d1f26 0%, var(--c-ink) 38%, var(--c-red-dark) 230%);
  color: var(--c-white);
  isolation: isolate;
}
.hero::before {
  /* Texture cartographique discrète façon "lignes topographiques" */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image: url('../img/patterns/topo-lines.svg');
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 1100px;
  mix-blend-mode: screen;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 85% 8%, rgba(200,32,47,0.35), transparent 70%);
}
.hero__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-xl); }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: #F0C3C9;
  margin-bottom: var(--space-md);
}
.hero__eyebrow svg { width: 18px; height: 18px; }
.hero h1 {
  color: var(--c-white);
  font-size: var(--fs-4xl);
  max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(95deg, #fff 0%, #F3B6BD 60%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__lead {
  margin-top: var(--space-md);
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.74);
  max-width: 46ch;
  line-height: var(--lh-snug);
}
.hero__actions { margin-top: var(--space-lg); }
.hero__meta {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 0.2rem; }
.hero__meta-item strong { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--c-white); font-weight: 600; }
.hero__meta-item span { font-size: var(--fs-xs); color: rgba(255,255,255,0.56); letter-spacing: 0.02em; }

/* Carte / illustration flottante du hero */
.hero__visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #2c2f39, var(--c-ink));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card__skyline { width: 100%; height: auto; opacity: 0.92; }
.hero-card__route { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-md); }
.hero-card__city { font-family: var(--font-display); font-size: var(--fs-md); color: var(--c-white); font-weight: 600; }
.hero-card__city span { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: rgba(255,255,255,0.5); font-weight: 500; letter-spacing: 0.03em; }
.hero-card__plane { color: var(--c-red-bright); flex: none; }
.hero-card__plane svg { width: 26px; height: 26px; }
.hero-card__line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.4) 0 6px, transparent 6px 12px); }
.hero-card__badge {
  position: absolute; top: clamp(1.25rem, 2.5vw, 2rem); right: clamp(1.25rem, 2.5vw, 2rem);
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  color: var(--c-white);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.55em 1em; border-radius: var(--radius-pill);
}
.hero-card__badge svg { width: 14px; height: 14px; color: var(--c-red-bright); }

/* Bannière de page intérieure (plus compacte que le hero d'accueil) */
.page-banner {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(170deg, var(--c-ink), var(--c-anthracite));
  color: var(--c-white);
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.14;
  background-image: url('../img/patterns/topo-lines.svg');
  background-repeat: no-repeat;
  background-position: bottom -120px right -80px;
  background-size: 760px;
}
.page-banner__inner { position: relative; z-index: 1; max-width: 760px; }
.page-banner h1 { color: var(--c-white); font-size: var(--fs-3xl); }
.page-banner .lead { color: rgba(255,255,255,0.7); margin-top: var(--space-md); }
.breadcrumb { display: flex; align-items: center; gap: 0.5em; font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.45); margin-bottom: var(--space-md); }
.breadcrumb a:hover { color: var(--c-white); }
.breadcrumb svg { width: 12px; height: 12px; opacity: 0.6; }

/* ----------------------------------------------------------
   9. SECTIONS SPÉCIFIQUES
   ---------------------------------------------------------- */

/* Bandeau de chiffres-clés */
.stats { display: grid; gap: var(--space-md); grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Citation / témoignage encadré */
.quote-block {
  position: relative;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--c-paper);
  border: 1px solid var(--color-border);
}
.quote-block__mark { font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--c-red); opacity: 0.35; }
.quote-block footer { margin-top: var(--space-md); display: flex; align-items: center; gap: 0.8rem; font-size: var(--fs-sm); color: var(--color-text-soft); }
.quote-block footer strong { color: var(--c-ink); }

/* Étapes / processus numérotés */
.process { counter-reset: step; display: grid; gap: var(--space-lg); }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process__item { position: relative; padding-top: var(--space-md); border-top: 2px solid var(--color-border); }
.process__item::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--c-red);
  margin-bottom: var(--space-2xs);
  font-weight: 600;
}
.process__fee {
  margin-top: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-red);
}

/* Liste de garanties / valeurs avec coche */
.check-list { display: grid; gap: var(--space-sm); }
.check-list li { display: flex; align-items: flex-start; gap: 0.85rem; }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--c-red); margin-top: 0.15em; }
.check-list strong { display: block; color: var(--c-ink); }

/* Bandeau CTA pleine largeur */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--c-red) 0%, var(--c-red-dark) 100%);
  color: var(--c-white);
  padding: clamp(2.25rem, 5vw, 4rem);
  display: grid;
  gap: var(--space-lg);
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.16;
  background-image: url('../img/patterns/compass.svg');
  background-repeat: no-repeat;
  background-position: -60px -60px;
  background-size: 420px;
}
.cta-banner h2, .cta-banner h3 { color: var(--c-white); }
.cta-banner p { color: rgba(255,255,255,0.82); }
@media (min-width: 760px) {
  .cta-banner { grid-template-columns: 1.3fr auto; align-items: center; }
}

/* Galerie d'images en mosaïque (gestion locative, à propos…) */
.mosaic { display: grid; gap: var(--space-md); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; }
.mosaic > :nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic > :nth-child(2) { grid-column: 1 / 3; grid-row: 3 / 4; }
.mosaic > :nth-child(3) { grid-column: 1 / 2; grid-row: 4 / 5; }
.mosaic > :nth-child(4) { grid-column: 2 / 3; grid-row: 4 / 5; }
@media (min-width: 700px) {
  .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 165px; }
  .mosaic > :nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
  .mosaic > :nth-child(2) { grid-column: 3 / 5; grid-row: 1 / 2; }
  .mosaic > :nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
  .mosaic > :nth-child(4) { grid-column: 4 / 5; grid-row: 2 / 3; }
}
.mosaic figure, .mosaic .ph { border-radius: var(--radius-md); overflow: hidden; height: 100%; min-height: 0; }

/* Espace réservé visuel ("placeholder") — graphisme original signé Swiss Invest Lima,
   en attendant les futures photographies réelles des biens / lieux */
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 14% -10%, rgba(255,255,255,0.16), transparent 55%),
    linear-gradient(150deg, var(--ph-c1, var(--c-ink)) 0%, var(--ph-c2, var(--c-anthracite)) 100%);
  color: var(--c-white);
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--ph-pattern, url('../img/patterns/topo-lines.svg'));
  background-repeat: no-repeat;
  background-position: var(--ph-pos, center);
  background-size: var(--ph-size, 480px);
  opacity: var(--ph-op, 0.5);
  mix-blend-mode: soft-light;
}
.ph__content { position: relative; z-index: 1; padding: var(--space-md); width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; }
.ph__eyebrow { display: block; font-size: var(--fs-xs); letter-spacing: var(--ls-wider); text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,0.66); overflow-wrap: break-word; word-break: break-word; }
.ph__title { display: block; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; margin-top: 0.2em; line-height: 1.15; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.ph--red { --ph-c1: var(--c-red); --ph-c2: var(--c-red-dark); }
.ph--ink { --ph-c1: #2b2e37; --ph-c2: var(--c-ink); }
.ph--ratio-square { aspect-ratio: 1 / 1; }
.ph--ratio-portrait { aspect-ratio: 3 / 4; }
.ph--ratio-landscape { aspect-ratio: 16 / 10; }
.ph--ratio-wide { aspect-ratio: 21 / 9; }
.ph--sm .ph__title { font-size: var(--fs-md); line-height: 1.18; }
.ph--sm .ph__eyebrow { font-size: 0.7rem; letter-spacing: 0.06em; }
.ph--sm .ph__content { padding: var(--space-sm, 1rem); }
.ph--note {
  margin-top: var(--space-2xs);
  font-size: var(--fs-xs);
  color: var(--color-text-mute);
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.ph--note svg { width: 14px; height: 14px; flex: none; }

/* Variante "illustrée" : dessin vectoriel original affiché de façon proéminente
   (utilisée notamment pour représenter chaque quartier sur la page Quartiers).
   Le dégradé de fond (--ph-c1/--ph-c2) reste visible derrière le tracé, qui est
   transparent ; un voile en bas assure la lisibilité de la légende superposée. */
.ph--illustrated::before { content: none; }
.ph__illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ph-illu-pos, center);
}
.ph--illustrated::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(15,16,20,0.62) 0%, rgba(15,16,20,0.16) 44%, transparent 70%);
  pointer-events: none;
}

/* Carte "bien immobilier" (page Biens à vendre) */
.card--property { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--property__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-mist); }
.card--property__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--property__status { position: absolute; top: var(--space-sm); left: var(--space-sm); z-index: 2; }
.card--property__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card--property__meta { display: flex; flex-wrap: wrap; gap: 0.5em 1.1em; font-size: var(--fs-sm); color: var(--color-text-soft); margin: 0.3em 0 0; padding: 0; list-style: none; }
.card--property__meta li { display: flex; align-items: center; gap: 0.4em; }
.card--property__meta svg { width: 16px; height: 16px; color: var(--c-slate-2); flex: none; }
.card--property__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.1em 0 0; padding: 0; list-style: none; }
.card--property__tags .tag { padding: 0.4em 0.85em; font-size: 0.7rem; }
.card--property__footer { margin-top: auto; padding-top: var(--space-md); display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); border-top: 1px solid var(--color-border); }
.card--property__price-block { display: flex; flex-direction: column; gap: 0.15em; min-width: 0; }
.card--property__price { font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 600; color: var(--c-ink); }
.card--property__price-note { font-size: var(--fs-xs); color: var(--color-text-soft); line-height: var(--lh-snug); }

/* État vide élégant — page "Biens à vendre" tant qu'aucun bien n'est publié */
.empty-state {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--c-paper), var(--c-cream));
  border: 1px solid var(--color-border);
}
.empty-state::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  opacity: 0.12;
  background-image: url('../img/patterns/compass.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 640px;
}
.empty-state__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--c-red-wash); color: var(--c-red);
  margin-bottom: var(--space-md);
}
.empty-state__icon svg { width: 32px; height: 32px; }
.empty-state h2 { margin-bottom: var(--space-sm); }
.empty-state p { color: var(--color-text-soft); max-width: 56ch; margin-inline: auto; }
.empty-state p + p { margin-top: 0.6em; }
.empty-state .btn-row { justify-content: center; margin-top: var(--space-lg); }

/* ----------------------------------------------------------
   10. FORMULAIRES
   ---------------------------------------------------------- */
.form { display: grid; gap: var(--space-md); }
.form__row { display: grid; gap: var(--space-md); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.field--checkbox { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.field--checkbox label { font-weight: 500; color: var(--color-text-soft); font-size: var(--fs-sm); }
.field__hint { font-size: var(--fs-xs); color: var(--color-text-mute); }
.field__error { font-size: var(--fs-xs); color: var(--c-red); display: none; }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--c-red); }

.input, .textarea, select.input {
  width: 100%;
  padding: 0.95em 1.1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--c-paper);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--c-slate-2); }
.input:focus, .textarea:focus, select.input:focus {
  outline: none;
  border-color: var(--c-red);
  background: var(--c-white);
  box-shadow: 0 0 0 4px var(--c-red-wash);
}
.textarea { min-height: 160px; resize: vertical; }

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  flex: none;
  margin-top: 0.15em;
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  background: var(--c-paper);
  display: inline-grid;
  place-content: center;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
input[type="checkbox"]::before {
  content: "";
  width: 10px; height: 10px;
  transform: scale(0);
  transition: transform var(--t-fast) var(--ease);
  box-shadow: inset 1em 1em var(--c-white);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 46% 60%);
}
input[type="checkbox"]:checked { background: var(--c-red); border-color: var(--c-red); }
input[type="checkbox"]:checked::before { transform: scale(1); }

/* Pot de miel anti-spam (champ invisible, ignoré par les humains) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 22px; height: 22px; flex: none; margin-top: 0.1em; }
.form-status--success { background: #EAF4EC; color: #2B5233; border: 1px solid #CFE5D2; }
.form-status--error { background: var(--c-red-wash); color: var(--c-red-dark); border: 1px solid rgba(154,27,44,0.22); }

/* Cartes Google Maps (page Contact) */
.map-card { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); height: 100%; display: flex; flex-direction: column; }
.map-card__head { padding: var(--space-md) var(--space-lg); display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.map-card__head h3 { margin: 0; }
.map-card__head span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-wide); font-weight: 700; color: var(--c-slate-2); }
.map-card__frame { position: relative; aspect-ratio: 4 / 3; background: var(--c-mist); }
.map-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* Contenu juridique (Mentions légales, Politique de confidentialité) */
.legal-content { max-width: 76ch; margin-inline: auto; }
.legal-content h2 {
  font-size: var(--fs-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content p { color: var(--color-text-soft); }
.legal-content p + p { margin-top: 0.85em; }
.legal-content strong { color: var(--c-ink); }
.legal-content a { color: var(--c-red); text-decoration: underline; text-underline-offset: 0.18em; }
.legal-content a:hover { color: var(--c-red-bright); }

/* ----------------------------------------------------------
   11. BOUTON WHATSAPP FLOTTANT
   ---------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 240;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  padding: 0.85em 1.15em 0.85em 0.85em;
  box-shadow: 0 16px 40px -12px rgba(27,28,34,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease), opacity 0.3s var(--ease);
}
.whatsapp-float:hover { transform: translateY(-3px); background: var(--c-anthracite-2); box-shadow: 0 22px 46px -12px rgba(27,28,34,0.55); }
/* Masqué lors d'un défilement vers le bas — évite le chevauchement sur mobile */
.whatsapp-float.is-hidden { transform: translateY(calc(100% + 2.5rem)); opacity: 0; pointer-events: none; }
.whatsapp-float__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #25D366; color: #0b3b22; flex: none;
}
.whatsapp-float__icon svg { width: 22px; height: 22px; }
.whatsapp-float__text { display: none; flex-direction: column; line-height: 1.15; text-align: left; }
.whatsapp-float__text strong { font-size: var(--fs-sm); font-weight: 700; color: var(--c-white); }
.whatsapp-float__text span { font-size: var(--fs-xs); color: rgba(255,255,255,0.6); }
@media (min-width: 640px) { .whatsapp-float__text { display: flex; } }

/* ----------------------------------------------------------
   12. LIGHTBOX — galerie photos des biens (Tristán 21)
   ---------------------------------------------------------- */
/* Curseur sur les photos de galerie pour signaler l'interaction */
[data-gallery] .ph { cursor: zoom-in; }
[data-gallery] .ph:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Overlay */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(27,28,34,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox { animation: lb-in 0.22s ease both; }
}
@keyframes lb-in { from { opacity:0; } to { opacity:1; } }

/* Contenu */
.lightbox__inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  gap: 0.75rem;
}
.lightbox__img {
  display: block;
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 32px 64px rgba(0,0,0,0.6);
}
.lightbox__caption {
  color: rgba(255,255,255,0.8);
  font-size: var(--fs-sm);
  text-align: center;
  line-height: 1.4;
  max-width: 56ch;
}

/* Boutons navigation */
.lightbox__btn {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  color: var(--c-white); border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--t-fast);
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255,255,255,0.28); outline: none; }
.lightbox__prev { left: clamp(0.5rem, 3vw, 2rem); }
.lightbox__next { right: clamp(0.5rem, 3vw, 2rem); }
.lightbox__close {
  position: fixed; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  color: var(--c-white); border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--t-fast);
}
.lightbox__close:hover, .lightbox__close:focus-visible { background: rgba(255,255,255,0.28); outline: none; }
.lightbox__counter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
}
/* Masquer nav si une seule image */
.lightbox[data-count="1"] .lightbox__prev,
.lightbox[data-count="1"] .lightbox__next { display: none; }

/* Notification "toast" — utilisée pour les boutons de langue EN/ES (versions à venir) */
.lang-toast {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 260;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: max-content;
  max-width: min(420px, calc(100vw - 2.5rem));
  padding: 0.9em 1.15em;
  border-radius: var(--radius-md);
  background: var(--c-ink);
  color: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.lang-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s;
}
.lang-toast svg { flex: none; width: 20px; height: 20px; color: var(--c-red-bright); }
.lang-toast strong { color: var(--c-white); }

/* ----------------------------------------------------------
   12. ANIMATIONS & RÉVÉLATIONS AU DÉFILEMENT
   ---------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 760ms var(--ease), transform 760ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(154,27,44,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(154,27,44,0); }
  100% { box-shadow: 0 0 0 0 rgba(154,27,44,0); }
}
@media (prefers-reduced-motion: no-preference) {
  .float-anim { animation: float-slow 7s ease-in-out infinite; }
  .pulse-anim { animation: pulse-ring 2.6s ease-out infinite; }
}

/* ----------------------------------------------------------
   13. UTILITAIRES
   ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.flow > * + * { margin-top: var(--flow-space, 1em); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--space-sm) !important; }
.mt-md { margin-top: var(--space-md) !important; }
.mt-lg { margin-top: var(--space-lg) !important; }
.mt-xl { margin-top: var(--space-xl) !important; }
.mb-0 { margin-bottom: 0 !important; }
.gap-sm { gap: var(--space-sm) !important; }
.max-prose { max-width: 64ch; }
.relative { position: relative; }
.hide-mobile { display: none; }
.show-mobile { display: block; }
@media (min-width: 760px) {
  .hide-mobile { display: block; }
  .show-mobile { display: none; }
}
.rounded-img { border-radius: var(--radius-md); overflow: hidden; }
.icon-inline { display: inline-flex; vertical-align: -0.15em; width: 1em; height: 1em; }

.list-plain { display: grid; gap: 0.6rem; }
.link-underline { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: rgba(154,27,44,0.4); transition: text-decoration-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.link-underline:hover { color: var(--c-red); text-decoration-color: currentColor; }

.table-clean th, .table-clean td { text-align: left; padding: 0.85em 1em; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.table-clean th { font-family: var(--font-body); font-weight: 700; color: var(--c-ink); letter-spacing: 0.02em; }
.table-clean td { color: var(--color-text-soft); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); position: relative; }
/* Dégradé indicateur de défilement horizontal — masqué via JS quand le bord droit est atteint */
.table-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 3.5rem;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.98) 80%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.table-wrap.no-overflow::after,
.table-wrap.scroll-end::after { opacity: 0; }
.table-wrap .table-clean { min-width: 560px; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid var(--color-border); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------
   14. MEDIA QUERIES GLOBALES (navigation, hero…)
   ---------------------------------------------------------- */
@media (min-width: 940px) {
  .nav-desktop { display: block; }
  .nav-toggle, .nav-mobile { display: none; }
  .lang-switch { display: inline-flex; }
  .header__cta { display: inline-flex; }
}
@media (max-width: 939px) {
  .header__cta { display: none; }
}
