/* =============================================================================
   CISSKO IMMOBILIER — styles.css
   Feuille de style unique partagée par toutes les pages.
   -----------------------------------------------------------------------------
   SOMMAIRE
     1. Variables (couleurs de marque, type, espacements)
     2. Reset & base
     3. Typographie & utilitaires
     4. Boutons
     5. En-tête / navigation (sticky + menu mobile)
     6. Composants transverses (eyebrow, sections, cartes)
     7. Hero (carrousel)
     8. Accueil : catégories, étapes, panneau expert
     9. Listings : filtres
    10. Projets : portfolio + lightbox
    11. Pied de page
    12. WhatsApp flottant
    13. Animations & responsive
   ============================================================================ */


/* =============================================================================
   1. VARIABLES — Identité de marque Cissko (ne pas changer sans raison)
   ============================================================================ */
:root {
  /* Couleurs */
  --navy:        #062187;  /* bleu marine profond — principal, fonds sombres */
  --navy-700:    #0a2da3;  /* navy un peu plus clair pour dégradés */
  --royal:       #6390F6;  /* bleu royal — accents, liens, survols */
  --royal-soft:  #9DB8FB;  /* royal clair — texte secondaire sur navy */
  --amber:       #F2B705;  /* or/ambre — CTA, badges (avec parcimonie) */
  --amber-600:   #d9a304;  /* ambre survol */
  --white:       #FFFFFF;
  --gray-50:     #F5F7FA;  /* fond de sections clair */
  --gray-100:    #eef1f6;
  --gray-200:    #e2e8f0;
  --ink:         #1a2340;  /* texte titres */
  --gray-text:   #4A5568;  /* texte courant */
  --gray-mute:   #6b7488;  /* texte discret */

  /* Dégradé signature navy -> royal */
  --grad-navy: linear-gradient(135deg, var(--navy) 0%, #123bb8 55%, var(--royal) 130%);

  /* Typo */
  --font-display: "Sora", "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;  /* grands titres — émotion */

  /* Rayons & ombres */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(6, 33, 135, 0.06);
  --shadow-md: 0 14px 34px rgba(6, 33, 135, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 33, 135, 0.16);

  /* Mise en page */
  --container: 1600px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --header-h: 74px;

  --t-fast: .18s ease;
  --t: .3s cubic-bezier(.2, .7, .2, 1);
}


/* =============================================================================
   2. RESET & BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light dark; }

body {
  font-family: var(--font-body);
  color: var(--gray-text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Décalage des ancres pour ne pas passer sous le header sticky */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

img, svg { display: block; max-width: 100%; }
/* Protection légère des images : gêne le glisser et l'appui long « Enregistrer ».
   (Le clic droit est bloqué dans script.js. Aucune page web ne peut empêcher une
   capture d'écran — le filigrane reste la seule vraie protection.) */
img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
/* Filigrane logo Cissko, posé en surimpression sur les photos (voir poseFiligrane() dans script.js) */
.wm-badge {
  position: absolute; inset: 0; pointer-events: none; z-index: 4;
  background: url("img/logo-cissko-blanc.svg") no-repeat right 12px bottom 12px;
  background-size: clamp(90px, 22%, 160px);
  opacity: .5;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45));
}
img { height: auto; }
a { color: var(--royal); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--navy); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* Empêche le scroll quand le menu mobile / la lightbox sont ouverts */
body.nav-open { overflow: hidden; }

/* Focus clavier visible partout (accessibilité) */
:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 2px;
  border-radius: 4px;
}


/* =============================================================================
   3. TYPOGRAPHIE & UTILITAIRES
   ============================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
/* Grands titres émotionnels en serif Fraunces (les petits titres gardent Sora) */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }

/* Mot mis en valeur dans un titre : serif italique doré (élément signature) */
.hl { color: var(--amber); font-style: italic; font-weight: 600; }

p { text-wrap: pretty; }

.container {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--gray { background: var(--gray-50); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--gray-text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Eyebrow : ÉLÉMENT SIGNATURE (petit marqueur ambre + libellé) --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--amber);
  border-radius: 3px;
  transform: rotate(45deg);
  flex: none;
}
.eyebrow--light { color: var(--royal-soft); }

/* En-tête de section centré */
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head p { margin-top: .75rem; }

/* Lien "Voir tout" avec flèche */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
}
.link-arrow svg { width: 18px; height: 18px; fill: currentColor; transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--royal); }
.link-arrow:hover svg { transform: translateX(4px); }


/* =============================================================================
   4. BOUTONS
   ============================================================================ */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast), color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary {           /* CTA principal — ambre */
  --btn-bg: var(--amber);
  --btn-fg: #2a1d00;
  box-shadow: 0 8px 22px rgba(242, 183, 5, .32);
}
.btn--primary:hover { --btn-bg: var(--amber-600); box-shadow: 0 12px 28px rgba(242, 183, 5, .42); }

.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--navy:hover { --btn-bg: var(--navy-700); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  box-shadow: inset 0 0 0 2px var(--gray-200);
}
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--white); box-shadow: inset 0 0 0 2px var(--navy); }

.btn--ghost-light {       /* sur fond sombre */
  --btn-bg: rgba(255,255,255,.10);
  --btn-fg: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4);
}
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.2); }

.btn--sm { padding: .6rem 1.05rem; font-size: .85rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }


/* =============================================================================
   5. EN-TÊTE / NAVIGATION
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-100);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
/* Logo (lockup : marque SVG + mot « CISSKO IMMOBILIER » en Poppins) */
.nav__logo { color: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: "Poppins", var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .005em; color: currentColor; }
.brand__sub { font-family: "Poppins", var(--font-display); font-weight: 500; font-size: .58rem; letter-spacing: .3em; color: currentColor; margin-top: 4px; }
/* Variante pied de page (fond navy) */
.footer__brand .brand { color: var(--white); margin-bottom: 1rem; }
.footer__brand .brand:hover { color: var(--white); }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  position: relative;
  padding-block: .4rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--amber);
  transition: width var(--t);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after,
.nav__links a.is-current::after { width: 100%; }
.nav__links a.is-current { color: var(--navy); }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: "";
  display: block;
  width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.nav__toggle span::before { position: absolute; transform: translateY(-7px); }
.nav__toggle span::after  { position: absolute; transform: translateY(7px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }


/* =============================================================================
   6. COMPOSANTS TRANSVERSES — Cartes de biens
   ============================================================================ */
.grid {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
  grid-template-columns: 1fr;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--gray-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media img.is-placeholder { object-fit: cover; }

.badge-statut {
  position: absolute; top: 14px; left: 14px;
  padding: .35rem .8rem;
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.badge-statut.is-a-vendre { background: var(--navy); }
.badge-statut.is-a-louer  { background: var(--royal); }
.badge-statut.is-vendu, .badge-statut.is-loue { background: var(--gray-mute); }

.badge-promo {
  position: absolute; top: 14px; right: 14px;
  padding: .35rem .75rem;
  font-family: var(--font-display); font-weight: 800; font-size: .72rem;
  color: #2a1d00; background: var(--amber);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 16px rgba(242,183,5,.4);
}

.card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem; flex: 1; }
.card__type {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--royal); font-family: var(--font-display);
}
.card__title { color: var(--ink); }
.card__loc { display: flex; align-items: center; gap: .4rem; color: var(--gray-mute); font-size: .92rem; }
.card__loc svg { width: 17px; height: 17px; fill: var(--royal); flex: none; }
.card__desc { font-size: .92rem; color: var(--gray-text); }

.card__specs {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem;
  padding-block: .7rem; margin-top: auto;
  border-top: 1px solid var(--gray-100);
}
.card__specs li { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--gray-text); font-weight: 600; }
.card__specs svg { width: 18px; height: 18px; fill: var(--royal); }

.card__footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .4rem; }
.card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--navy); }


/* =============================================================================
   7. HERO (carrousel)
   ============================================================================ */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero__viewport { position: relative; height: clamp(560px, 86vh, 820px); }

.hero__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  display: grid; align-items: center;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
/* Ken-burns : zoom lent sur l'image du slide actif (vie + immersion) */
.hero__slide.is-active .hero__bg img { animation: hero-kenburns 16s ease-out both; }
@keyframes hero-kenburns { from { transform: scale(1.06); } to { transform: scale(1.16); } }
/* Overlay : navy pour la lisibilité + halo doré « heure dorée » en bas à gauche */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 95% at 12% 105%, rgba(242,183,5,.20), transparent 52%),
    linear-gradient(90deg, rgba(6,33,135,.90) 0%, rgba(6,33,135,.60) 42%, rgba(6,33,135,.14) 100%),
    linear-gradient(0deg, rgba(4,16,72,.60), rgba(6,33,135,0) 48%);
}

.hero__inner { position: relative; z-index: 2; padding-block: 2rem; }
.hero__content { max-width: 660px; color: var(--white); }
/* Titre du héro : plus grand sur desktop (plafond relevé), un peu plus petit
   sur mobile (plancher abaissé) que les autres h1. */
.hero__content h1 { color: var(--white); font-size: clamp(2.15rem, 6.2vw, 5.4rem); line-height: 1.03; }
.hero__content .eyebrow { color: var(--amber); }
.hero__content p { color: #dbe4ff; font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 1rem; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* Stat de confiance sous le CTA */
.hero__trust { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; color: #cdd9ff; font-size: .9rem; }
.hero__trust strong { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; }

/* Flèches */
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: var(--white);
  backdrop-filter: blur(4px);
  transition: background var(--t-fast), transform var(--t-fast);
}
.hero__arrow:hover { background: var(--amber); color: #2a1d00; border-color: var(--amber); }
.hero__arrow svg { width: 22px; height: 22px; fill: currentColor; }
.hero__arrow--prev { left: clamp(.6rem, 2vw, 1.5rem); }
.hero__arrow--next { right: clamp(.6rem, 2vw, 1.5rem); }

/* Points */
.hero__dots { position: absolute; z-index: 3; bottom: 1.5rem; left: 0; right: 0; display: flex; justify-content: center; gap: .55rem; }
.hero__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all var(--t); }
.hero__dot.is-active { background: var(--amber); width: 30px; border-radius: var(--r-pill); }

/* Entrée orchestrée du contenu (rejouée à chaque slide qui devient actif) */
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__slide.is-active .hero__slogan,
.hero__slide.is-active .hero__content h1,
.hero__slide.is-active .hero__content p,
.hero__slide.is-active .hero__cta,
.hero__slide.is-active .hero__trust {
  animation: hero-rise .75s cubic-bezier(.2,.7,.2,1) both;
}
.hero__slide.is-active .hero__content h1 { animation-delay: .07s; }
.hero__slide.is-active .hero__content p  { animation-delay: .15s; }
.hero__slide.is-active .hero__cta        { animation-delay: .23s; }
.hero__slide.is-active .hero__trust      { animation-delay: .31s; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg img,
  .hero__slide.is-active .hero__bg img,
  .hero__slide.is-active .hero__slogan,
  .hero__slide.is-active .hero__content h1,
  .hero__slide.is-active .hero__content p,
  .hero__slide.is-active .hero__cta,
  .hero__slide.is-active .hero__trust { animation: none; transform: none; }
}


/* =============================================================================
   8. ACCUEIL — Catégories, étapes, panneau expert
   ============================================================================ */

/* --- Catégories cliquables --- */
.cats { display: grid; gap: clamp(1.2rem, 2.5vw, 1.6rem); grid-template-columns: 1fr; }
.cat {
  position: relative;
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.8rem;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.cat::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad-navy); transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.cat:hover::before { transform: scaleX(1); }
.cat__icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: rgba(99,144,246,.12); color: var(--navy);
}
.cat__icon svg { width: 30px; height: 30px; fill: var(--navy); }
.cat h3 { color: var(--ink); }
.cat p { font-size: .95rem; }
.cat .link-arrow { margin-top: .4rem; }

/* --- Bandeau "Voir tout" au-dessus de la grille vedette --- */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.row-head .section__head { margin-bottom: 0; }

/* --- Étapes "Comment chercher" --- */
.steps { display: grid; gap: clamp(1.4rem, 3vw, 2rem); grid-template-columns: 1fr; counter-reset: step; list-style: none; }
.step { position: relative; padding-left: 4.2rem; }
.step__num {
  counter-increment: step;
  position: absolute; left: 0; top: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--white); background: var(--grad-navy);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.step__num::before { content: counter(step, decimal-leading-zero); }
.step__icon { display: inline-flex; margin-bottom: .35rem; }
.step__icon svg { width: 26px; height: 26px; fill: var(--royal); }
.step h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: .25rem; }
.step p { font-size: .93rem; }

/* --- Panneau "Parler à un expert" --- */
.expert { position: relative; background: var(--grad-navy); color: var(--white); overflow: hidden; }
.expert::before {           /* halo décoratif discret */
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(99,144,246,.45), transparent 70%);
  pointer-events: none;
}
.expert .container { position: relative; z-index: 1; }
.expert__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }
.expert h2 { color: var(--white); }
.expert .eyebrow { color: var(--amber); }
.expert__intro p { color: #d7e0ff; margin-top: 1rem; max-width: 460px; }
.expert__contacts { margin-top: 1.8rem; display: grid; gap: 1rem; }
.expert__contact { display: flex; align-items: center; gap: .9rem; }
.expert__contact svg { width: 22px; height: 22px; fill: var(--amber); flex: none; }
.expert__contact span { color: #eef2ff; }
.expert__contact strong { display: block; font-family: var(--font-display); color: var(--white); }

/* --- Formulaires --- */
.form-card {
  background: var(--white);
  color: var(--gray-text);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { color: var(--ink); margin-bottom: 1.2rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.field label .req { color: var(--royal); }
.field input, .field select, .field textarea {
  padding: .8rem .95rem;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--royal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(99,144,246,.15);
}
.form-card .btn { margin-top: .4rem; }

/* Message de confirmation / erreur */
.form__status {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: .92rem;
}
.form__status.is-success { background: rgba(34,197,94,.12); color: #15803d; border: 1px solid rgba(34,197,94,.3); }
.form__status.is-error   { background: rgba(239,68,68,.10); color: #b91c1c; border: 1px solid rgba(239,68,68,.3); }

/* Bloc rappel (encart dans le formulaire) */
.callback {
  margin-top: 1.6rem; padding-top: 1.6rem;
  border-top: 1px dashed var(--gray-200);
}
.callback h4 { font-family: var(--font-display); color: var(--ink); font-size: 1.02rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.callback h4 svg { width: 20px; height: 20px; fill: var(--royal); }


/* =============================================================================
   9. LISTINGS — En-tête de page + filtres
   ============================================================================ */
.page-hero {
  background: var(--grad-navy); color: var(--white);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(242,183,5,.18), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero .eyebrow { color: var(--amber); }
.page-hero p { color: #d7e0ff; margin-top: .9rem; max-width: 56ch; }

/* Illustration animée en fond du bandeau « Louer » (calque dédié, ajouté seulement
   sur location.html). Se fond dans le bleu via « luminosity » et défile lentement.
   Réglages faciles : opacity (intensité), 55s (vitesse), background-size (zoom). */
.page-hero__art {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("img/illustration-louer.jpg") repeat-x 0 center;
  background-size: auto 140%;
  mix-blend-mode: luminosity;
  opacity: .4;
  animation: page-hero-pan 55s linear infinite;
}
@keyframes page-hero-pan { to { background-position-x: -1000px; } }
@media (prefers-reduced-motion: reduce) { .page-hero__art { animation: none; } }

/* Fil d'Ariane simple */
.crumbs { display: flex; gap: .5rem; font-size: .85rem; color: var(--royal-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--royal-soft); }
.crumbs a:hover { color: var(--white); }

/* Barre de filtres */
.filters {
  position: sticky; top: var(--header-h); z-index: 50;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  margin-top: -2.5rem;            /* chevauche le bas du page-hero */
  display: grid; gap: .8rem;
  grid-template-columns: 1fr;
}
.filters__field { display: flex; flex-direction: column; gap: .3rem; }
.filters__field label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-mute); font-family: var(--font-display); }
.filters select {
  padding: .7rem .9rem; border: 1.5px solid var(--gray-200); border-radius: var(--r-sm);
  background: var(--gray-50); width: 100%;
}
.filters select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(99,144,246,.15); }
.filters__actions { display: flex; align-items: end; }
.filters__actions .btn { width: 100%; }

.listing-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: clamp(1.6rem,3vw,2.2rem) 0 1.2rem; }
.listing-bar .count { font-family: var(--font-display); font-weight: 700; color: var(--navy); }

.empty {
  text-align: center; padding: 3rem 1rem; color: var(--gray-mute);
  background: var(--gray-50); border-radius: var(--r-lg); border: 1px dashed var(--gray-200);
}
.empty strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.1rem; margin-bottom: .3rem; }


/* =============================================================================
   10. PROJETS — Portfolio + lightbox
   ============================================================================ */
.projets-grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); grid-template-columns: 1fr; }
.projet-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.projet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.projet-card__media { position: relative; aspect-ratio: 16 / 11; width: 100%; padding: 0; background: var(--gray-100); cursor: zoom-in; display: block; }
.projet-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.projet-card:hover .projet-card__media img { transform: scale(1.05); }
.projet-card__zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: rgba(6,33,135,.78); border-radius: 50%;
  opacity: 0; transform: translateY(6px); transition: all var(--t);
}
.projet-card__zoom svg { width: 20px; height: 20px; fill: var(--white); }
.projet-card:hover .projet-card__zoom { opacity: 1; transform: translateY(0); }
.projet-card__body { padding: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.projet-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--r-pill);
}
.tag--type { background: rgba(99,144,246,.14); color: var(--navy); }
.tag--annee { background: rgba(242,183,5,.18); color: #8a6a00; }
.projet-card__title { color: var(--ink); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center;
  background: rgba(6,33,135,.92);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: grid; animation: fade .25s ease; }
.lightbox__fig { max-width: 1000px; width: 100%; }
.lightbox__fig img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--r-md); }
.lightbox__fig figcaption { color: var(--white); text-align: center; margin-top: 1rem; font-family: var(--font-display); font-weight: 600; }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1;
  color: var(--white); background: rgba(255,255,255,.12); border-radius: 50%;
  transition: background var(--t-fast);
}
.lightbox__close:hover { background: var(--amber); color: #2a1d00; }


/* =============================================================================
   11. PIED DE PAGE
   ============================================================================ */

/* Bandeau CTA final (réutilisable bas de page listings/projets) */
.cta-band { background: var(--gray-50); }
.cta-band__inner {
  background: var(--grad-navy); color: var(--white);
  border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3.2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); max-width: 22ch; }
.cta-band p { color: #d7e0ff; margin-top: .6rem; max-width: 46ch; }

.site-footer { background: var(--navy); color: #c8d3f5; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__grid {
  display: grid; gap: 2.2rem; grid-template-columns: 1fr;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand img { height: 46px; margin-bottom: 1rem; }
.footer__brand p { color: #aebbe6; font-size: .95rem; max-width: 32ch; }
.site-footer h4 { color: var(--white); font-family: var(--font-display); font-size: 1rem; margin-bottom: 1rem; }
.footer__links a { display: block; color: #c8d3f5; padding: .3rem 0; }
.footer__links a:hover { color: var(--amber); }
.footer__contact li { display: flex; gap: .6rem; padding: .35rem 0; color: #c8d3f5; }
.footer__contact svg { width: 19px; height: 19px; fill: var(--royal-soft); flex: none; margin-top: 3px; }

/* Réseaux sociaux */
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.10); transition: background var(--t-fast), transform var(--t-fast);
}
.socials a:hover { background: var(--amber); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; fill: var(--white); }

/* Newsletter */
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input {
  flex: 1; padding: .7rem .9rem; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: var(--white);
}
.newsletter input::placeholder { color: #93a3d6; }
.newsletter input:focus { outline: none; border-color: var(--amber); }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem; font-size: .86rem; color: #93a3d6;
}
.footer__bottom a { color: #93a3d6; }
.footer__bottom a:hover { color: var(--amber); }


/* =============================================================================
   12. BOUTON FLOTTANT WHATSAPP
   ============================================================================ */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
  transition: transform var(--t-fast);
}
/* Anneau pulsé : attire discrètement l'attention vers le contact WhatsApp */
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 50%; background: #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .whatsapp-float::before { animation: none; } }


/* =============================================================================
   12b. LECTEUR MUSIQUE FLOTTANT
   Pop-up en bas à gauche (le WhatsApp est à droite). La musique ne démarre
   QUE sur clic du visiteur — aucun autoplay.
   ============================================================================ */
.music-pop {
  position: fixed; left: 18px; bottom: 18px; z-index: 88;
  display: flex; align-items: center; gap: 12px;
  max-width: min(80vw, 290px);
  padding: 10px 14px 10px 10px;
  background: #fff; color: #062187;
  border-radius: 999px;
  border: 1px solid rgba(6,33,135,.10);
  box-shadow: 0 12px 30px rgba(6,33,135,.22);
  transform: translateY(150%); opacity: 0;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s;
}
.music-pop.is-shown { transform: none; opacity: 1; }

.music-pop__play {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: #062187; color: #fff; border: 0;
  transition: transform var(--t-fast, .2s);
}
.music-pop__play:hover { transform: scale(1.08); }
.music-pop__play svg { width: 22px; height: 22px; fill: currentColor; }
.music-pop .ico-pause { display: none; }
.music-pop.is-playing .ico-play  { display: none; }
.music-pop.is-playing .ico-pause { display: block; }
.music-pop.is-playing .music-pop__play { animation: musicPulse 1.6s ease-in-out infinite; }
@keyframes musicPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(6,33,135,0); }
  50%     { box-shadow: 0 0 0 7px rgba(6,33,135,.14); }
}

.music-pop__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.music-pop__text strong { font-size: .92rem; font-weight: 700; }
.music-pop__status {
  font-size: .78rem; opacity: .72;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.music-pop__close {
  position: absolute; top: -8px; right: -8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #062187; color: #fff; border: 2px solid #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.20);
}
.music-pop__close:hover { background: #0a2ba8; }

@media (max-width: 560px) {
  .music-pop { left: 12px; bottom: 12px; max-width: 66vw; padding: 8px 12px 8px 8px; gap: 9px; }
  .music-pop__play { width: 40px; height: 40px; }
  .music-pop__play svg { width: 20px; height: 20px; }
  .music-pop__text strong { font-size: .84rem; }
  .music-pop__status { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  .music-pop { transform: none; transition: opacity .3s; }
  .music-pop.is-playing .music-pop__play { animation: none; }
}


/* =============================================================================
   13. ANIMATIONS & RESPONSIVE
   ============================================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --- Tablette --- */
@media (min-width: 640px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .projets-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* --- Desktop --- */
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .expert__grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .filters { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (min-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .projets-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Mobile : menu hamburger plein écran --- */
@media (max-width: 899px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    padding: 1rem 1.4rem 1.6rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t), opacity var(--t);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__links a { padding: .9rem .2rem; border-bottom: 1px solid var(--gray-100); }
  .nav__links a::after { display: none; }
  .nav__menu .btn { margin-top: 1rem; width: 100%; }
}

/* --- Respect des préférences d'accessibilité --- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =============================================================================
   14. AJOUTS — barre d'infos, slogan, section ambre, logo, détail bien, gérance
   ============================================================================ */

/* Barre d'infos (horaires + téléphone) au-dessus de l'en-tête */
.topbar { background: var(--navy); color: #cdd9ff; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--amber); flex: none; }
.topbar__item a { color: #cdd9ff; }
.topbar__item a:hover { color: var(--amber); }
@media (max-width: 560px) {
  .topbar__inner { justify-content: center; }
  .topbar__phone { display: none; }
}

/* Logo image (header + pied de page) */
.nav__logo img { height: 38px; width: auto; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; }

/* Slogan persistant du hero */
.hero__slogan { display: inline-block; font-family: var(--font-display); font-weight: 600; color: var(--amber); font-size: clamp(.8rem, 1.5vw, 1rem); letter-spacing: .02em; margin-bottom: .7rem; }

/* Section « Mode d'emploi » sur fond ambre (couleur des boutons) */
.section--amber { background: var(--amber); }
.section--amber .eyebrow { color: var(--navy); }
.section--amber .eyebrow::before { background: var(--navy); }
.section--amber h2 { color: var(--navy); }
.section--amber .lead { color: #4a3a05; }
.section--amber .step h3 { color: var(--navy); }
.section--amber .step p { color: #4a3a05; }
.section--amber .step__icon svg { fill: var(--navy); }

/* Catégories : accueillir 4 cartes */
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cats { grid-template-columns: repeat(3, 1fr); } }

/* Carte : média cliquable + compteur de photos + titre-lien */
.card__media { display: block; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--royal); }
.card__photos { position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .55rem; border-radius: var(--r-pill); background: rgba(6,33,135,.82); color: #fff; font-size: .78rem; font-weight: 700; font-family: var(--font-display); }
.card__photos svg { width: 15px; height: 15px; fill: #fff; }

/* Section Gérance immobilière */
.gerance__grid { display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); grid-template-columns: 1fr; align-items: center; }
.gerance__services { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
.gerance__service { display: flex; gap: .9rem; align-items: flex-start; }
.gerance__service svg { width: 26px; height: 26px; fill: var(--royal); flex: none; margin-top: 2px; }
.gerance__service h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: .15rem; }
.gerance__service p { font-size: .92rem; }
.gerance__cta-text { margin-top: 1.9rem; margin-bottom: 1rem; color: var(--ink); font-weight: 500; max-width: 46ch; }
.gerance__card { background: var(--grad-navy); color: #fff; border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); }
.gerance__card h3 { color: #fff; margin-bottom: .6rem; }
.gerance__card p { color: #d7e0ff; margin-bottom: 1.2rem; }
.gerance__card .btn { width: 100%; }
@media (min-width: 900px) { .gerance__grid { grid-template-columns: 1fr 1fr; } .gerance__services { grid-template-columns: 1fr 1fr; } .gerance__grid .team-photo { order: -1; } }

/* =============================================================================
   SECTION CONSTRUCTION (« Cissko bâtit ») — dégradé #95aefc vers bleu foncé
   ============================================================================ */
.build { background: #95aefc; position: relative; overflow: hidden; }
.build__head { max-width: 820px; margin: 0 auto; text-align: center; }
.build__head .eyebrow { justify-content: center; color: var(--navy); font-size: .95rem; letter-spacing: .2em; }
.build__head h2 { color: var(--navy); font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.05; }
.build .hl {
  color: var(--navy); font-style: italic;
  background: linear-gradient(transparent 56%, rgba(255,255,255,.92) 0);
  padding: 0 .06em;
}
.build__head p { color: #10225f; margin-top: 1.1rem; font-size: clamp(1rem, 1.4vw, 1.12rem); }

/* Galerie : photos plus grandes (1 photo mise en avant + mosaïque sur desktop) */
.build__gallery {
  margin: clamp(1.8rem, 4vw, 2.8rem) 0;
  display: grid; gap: clamp(.5rem, 1.2vw, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.build__gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: var(--r-md); position: relative;
  box-shadow: var(--shadow-lg);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
.build__gallery img:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); z-index: 2; }

/* Prestations : sans carte blanche — icône bleu foncé sur pastille, texte clair */
.build__services {
  display: grid; gap: clamp(1.6rem, 3.5vw, 2.4rem);
  grid-template-columns: 1fr;
  max-width: 1000px; margin: 0 auto;
}
.build__service { text-align: center; }
/* Prestations : apparition franche, l'une après l'autre */
.build__services .build__service { opacity: 0; transform: translateY(48px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.build__services .build__service.is-visible { opacity: 1; transform: none; }
.build__service svg {
  fill: #fff; background: var(--navy); border-radius: 50%;
  width: 30px; height: 30px; padding: 12px; box-sizing: content-box;
  margin: 0 auto .9rem;
  box-shadow: 0 10px 24px rgba(6, 33, 135, .22);
}
.build__service h3 { color: var(--navy); font-size: 1.18rem; margin-bottom: .35rem; }
.build__service p { color: #223163; font-size: .96rem; }
.build__services .build__service:nth-child(1) { transition-delay: .05s; }
.build__services .build__service:nth-child(2) { transition-delay: .28s; }
.build__services .build__service:nth-child(3) { transition-delay: .5s; }

.build__cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) {
  .build__gallery { grid-template-columns: repeat(4, 1fr); }
  .build__gallery img:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }
  .build__services { grid-template-columns: repeat(3, 1fr); }
}

/* Photo d'équipe (section Gérance) — cadre + révélation au défilement */
.team-photo {
  margin-top: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  background: var(--grad-navy);
  min-height: clamp(220px, 38vw, 360px);
}
.team-photo img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.08);
  transition: transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.team-photo.is-visible img { transform: scale(1); }
.team-photo figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(1.2rem, 4vw, 2.4rem); padding-top: 4rem;
  background: linear-gradient(0deg, rgba(4,16,72,.88), rgba(6,33,135,.30) 55%, transparent 100%);
  color: var(--white);
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  line-height: 1.25; letter-spacing: -.01em;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease .25s, transform .8s cubic-bezier(.2, .7, .2, 1) .25s;
}
.team-photo.is-visible figcaption { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .team-photo img, .team-photo.is-visible img { transform: none; transition: none; }
  .team-photo figcaption { transition: none; }
}

/* Sous-page détail d'un bien (bien.html) */
.detail { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; margin-top: 1.5rem; }
.detail__main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray-100); box-shadow: var(--shadow-md); cursor: zoom-in; }
.detail__main img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: .7rem; }
.detail__thumb { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--gray-100); padding: 0; border: 2px solid transparent; transition: border-color var(--t-fast); }
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumb.is-active { border-color: var(--amber); }
.detail__info { align-self: start; }
.detail__info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .3rem 0 .5rem; }
.detail__loc { display: flex; align-items: center; gap: .4rem; color: var(--gray-mute); margin-bottom: .8rem; }
.detail__loc svg { width: 18px; height: 18px; fill: var(--royal); }
.detail__price { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); margin-bottom: 1rem; }
.detail__specs { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; padding: 1rem 0; border-block: 1px solid var(--gray-100); margin-bottom: 1rem; list-style: none; }
.detail__specs li { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--gray-text); }
.detail__specs svg { width: 20px; height: 20px; fill: var(--royal); }
.detail__desc { margin-bottom: 1.4rem; }
.detail__cta-row { display: flex; gap: .7rem; margin-top: .7rem; }
.detail__cta-row .btn { flex: 1; }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .detail__info { position: sticky; top: calc(var(--header-h) + 16px); }
}


/* =============================================================================
   15. NAVIGATION « TUBELIGHT » — pilule liquid-glass + lampe animée
   ============================================================================ */

/* Icône lucide-like dans chaque lien (visible surtout sur mobile) */
.nav__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__lamp { display: none; }

/* --- DESKTOP : la pilule en verre + la lampe coulissante --- */
@media (min-width: 900px) {
  .nav__links {
    position: relative;
    gap: .15rem;
    padding: .35rem;
    border-radius: var(--r-pill);
    /* Effet liquid glass */
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.2));
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 8px 26px rgba(6,33,135,.14), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 6px rgba(6,33,135,.05);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    overflow: visible;
  }
  .nav__links a {
    position: relative;
    z-index: 1;
    padding: .5rem 1.05rem;
    border-radius: var(--r-pill);
    color: var(--ink);
    transition: color var(--t-fast);
  }
  .nav__links a::after { display: none; }            /* on remplace le soulignement par la lampe */
  .nav__links a:hover,
  .nav__links a.is-current { color: var(--navy); }
  .nav__icon { display: none; }                       /* desktop : texte uniquement (comme le composant) */

  .nav__lamp {
    display: block;
    position: absolute;
    top: .35rem; bottom: .35rem;
    left: 0; width: 0;
    border-radius: var(--r-pill);
    background: rgba(99,144,246,.16);
    box-shadow: inset 0 0 0 1px rgba(99,144,246,.28), 0 2px 10px rgba(99,144,246,.18);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: left .4s cubic-bezier(.2,.8,.2,1), width .4s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
  }
  .nav__lamp.is-on { opacity: 1; }
  /* Le « néon » ambre qui éclaire l'onglet actif */
  .nav__lamp-glow {
    position: absolute;
    top: -5px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 4px;
    background: var(--amber);
    border-radius: 0 0 9px 9px;
    box-shadow: 0 0 14px 3px rgba(242,183,5,.7), 0 0 28px 9px rgba(242,183,5,.4), 0 0 44px 14px rgba(242,183,5,.2);
  }
}

/* --- MOBILE : icônes affichées dans le menu déroulant --- */
@media (max-width: 899px) {
  .nav__icon { display: inline-flex; align-items: center; width: 22px; height: 22px; margin-right: .8rem; color: var(--royal); }
  .nav__links a { display: flex; align-items: center; }
}


/* =============================================================================
   16. ANIMATIONS AU DÉFILEMENT renforcées (accueil)
   ============================================================================ */
.reveal { transform: translateY(30px); }
.reveal--scale { transform: translateY(30px) scale(.96); }
.reveal--scale.is-visible { transform: none; }

/* Apparition en cascade des grilles (cartes, catégories, étapes, services, promesses) */
.cats .cat:nth-child(2), .grid .card:nth-child(2), .steps .step:nth-child(2), .gerance__service:nth-child(2), .why__grid .why__card:nth-child(2) { transition-delay: .09s; }
.cats .cat:nth-child(3), .grid .card:nth-child(3), .steps .step:nth-child(3), .gerance__service:nth-child(3), .why__grid .why__card:nth-child(3) { transition-delay: .18s; }
.cats .cat:nth-child(4), .grid .card:nth-child(4), .steps .step:nth-child(4), .gerance__service:nth-child(4), .why__grid .why__card:nth-child(4) { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  .nav__lamp { transition: none; }
}


/* =============================================================================
   17. EFFET LIQUID GLASS AU SURVOL DES CARTES + carte Google Maps
   ============================================================================ */

/* Badges au-dessus de l'effet verre */
.badge-statut, .badge-promo, .card__photos { z-index: 4; }

/* Voile « liquid glass » qui apparaît au survol de la carte */
.card__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(160deg, rgba(99,144,246,.22), rgba(6,33,135,.45));
  -webkit-backdrop-filter: blur(3px) saturate(150%); backdrop-filter: blur(3px) saturate(150%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.card__media::after {
  content: "Voir le bien ›"; position: absolute; z-index: 3; left: 50%; top: 50%;
  transform: translate(-50%, -42%) scale(.95);
  padding: .62rem 1.2rem; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: #fff; white-space: nowrap;
  background: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 26px rgba(6,33,135,.38);
  opacity: 0; transition: opacity .35s ease, transform .4s cubic-bezier(.2,.8,.2,1); pointer-events: none;
}
.card:hover .card__media::before { opacity: 1; }
.card:hover .card__media::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* Carte Google Maps en pied de page */
.footer__map { margin-top: 2rem; }
.footer__map iframe { width: 100%; height: 260px; border: 0; border-radius: var(--r-md); display: block; }
.footer__map-link { display: inline-block; margin-top: .7rem; color: #c8d3f5; font-weight: 600; font-size: .9rem; font-family: var(--font-display); }
.footer__map-link:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .card__media::before, .card__media::after { transition: none; }
}


/* =============================================================================
   18. LIQUID GLASS — cartes, grilles, filtres, gérance (sur fond décoré)
   ============================================================================ */

/* Décor des sections : dégradé doux + halos colorés pour révéler le verre.
   .section--glass clippe ses halos ; .section--glass-soft est sans overflow
   (pour les pages avec barre de filtres « sticky »). */
.section--glass, .section--glass-soft {
  position: relative;
  background: linear-gradient(180deg, #e7edfb 0%, #f2f5fd 55%, #f4f7fd 100%);
}
.section--glass { overflow: hidden; }
.section--glass > .container { position: relative; z-index: 1; }
.section--glass::before, .section--glass::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0;
}
.section--glass::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(99,144,246,.55), transparent 70%); top: -150px; left: -120px; }
.section--glass::after  { width: 460px; height: 460px; background: radial-gradient(circle, rgba(242,183,5,.38), transparent 70%); bottom: -160px; right: -110px; }

/* Matériau « liquid glass » appliqué à toutes les surfaces de cartes */
.card, .cat, .projet-card, .filters, .why__card {
  background: linear-gradient(155deg, rgba(255,255,255,.82), rgba(255,255,255,.62));
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 16px 38px rgba(6,33,135,.14), inset 0 1px 0 rgba(255,255,255,.95);
}
/* Le corps des cartes reste bien lisible au-dessus du verre */
.card__body, .projet-card__body { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.75)); }

/* Encart Gérance : reflet « verre » sur le fond navy */
.gerance__card { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 22px 50px rgba(6,33,135,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.gerance__card > * { position: relative; z-index: 1; }
.gerance__card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(150deg, rgba(255,255,255,.25), transparent 55%); pointer-events: none; }


/* =============================================================================
   19. LIQUID GLASS sur les panneaux navy (en-têtes de page + bandeaux CTA + expert)
   ============================================================================ */
.page-hero, .cta-band__inner, .expert {
  background:
    linear-gradient(125deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 34%, rgba(255,255,255,0) 66%, rgba(255,255,255,.07) 100%),
    var(--grad-navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.cta-band__inner { border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.22); }
.cta-band__inner > * { position: relative; z-index: 1; }

/* Orbe lumineux flou de l'en-tête de page (profondeur « verre ») */
.page-hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 460px; height: 460px; border-radius: 50%; top: -180px; left: -130px;
  background: radial-gradient(circle, rgba(99,144,246,.6), transparent 70%);
  filter: blur(34px);
}


/* =============================================================================
   20. BORDURE LUMINEUSE ANIMÉE (anneau conique rotatif — couleurs Cissko)
   - Bandeaux CTA  : anneau TOUJOURS animé (point focal de la page).
   - Boutons prim. : anneau révélé au SURVOL / focus clavier (« s'illumine »),
                     animation en pause au repos pour ménager le CPU.
   ============================================================================ */
@property --cissko-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes cissko-spin { to { --cissko-angle: 360deg; } }

.cta-band__inner, .btn--primary:not(.btn--sm) { position: relative; }

/* Gradient conique partagé (halo + anneau), masqué pour ne garder que le liseré */
.cta-band__inner::before, .cta-band__inner::after,
.btn--primary:not(.btn--sm)::before, .btn--primary:not(.btn--sm)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--cissko-angle, 0deg), #062187, #6390F6 20%, #F2B705 45%, #6390F6 70%, #062187 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: cissko-spin 5s linear infinite;
}
/* Halo flou (la lueur) */
.cta-band__inner::before,
.btn--primary:not(.btn--sm)::before { padding: 3px; z-index: 0; filter: blur(5px); opacity: .9; }
/* Anneau net (la bordure) */
.cta-band__inner::after,
.btn--primary:not(.btn--sm)::after { padding: 2px; z-index: 1; }

/* Boutons : liseré invisible et figé au repos, révélé + relancé au survol/focus */
.btn--primary:not(.btn--sm)::before,
.btn--primary:not(.btn--sm)::after {
  opacity: 0; animation-play-state: paused; transition: opacity var(--t);
}
.btn--primary:not(.btn--sm):hover::after,
.btn--primary:not(.btn--sm):focus-visible::after { opacity: 1; animation-play-state: running; }
.btn--primary:not(.btn--sm):hover::before,
.btn--primary:not(.btn--sm):focus-visible::before { opacity: .9; animation-play-state: running; }

/* Le texte du bouton reste au-dessus de l'anneau */
.btn { z-index: 0; }
.btn > * { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .cta-band__inner::before, .cta-band__inner::after,
  .btn--primary:not(.btn--sm)::before, .btn--primary:not(.btn--sm)::after { animation: none; }
}


/* =============================================================================
   21. ACCUEIL — refonte émotionnelle (indice de défilement, compteurs,
       micro-animations catégories, timeline des étapes, section « Pourquoi »)
   ============================================================================ */

/* --- Héro : indice de défilement « souris » animé --- */
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 3.4rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  color: #dbe4ff;
  transition: opacity var(--t), transform var(--t);
}
.hero__scroll:hover { color: var(--white); }
.hero__scroll.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(10px); }
.hero__scroll-label {
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase;
}
.hero__scroll-mouse {
  width: 24px; height: 38px; border-radius: var(--r-pill);
  border: 2px solid rgba(255,255,255,.55);
  display: grid; justify-items: center; padding-top: 6px;
}
.hero__scroll-wheel {
  width: 4px; height: 8px; border-radius: var(--r-pill);
  background: var(--amber);
  animation: hero-scroll-wheel 1.7s cubic-bezier(.2,.7,.2,1) infinite;
}
@keyframes hero-scroll-wheel {
  0%   { opacity: 0; transform: translateY(-4px); }
  35%  { opacity: 1; }
  70%  { opacity: 1; transform: translateY(9px); }
  100% { opacity: 0; transform: translateY(12px); }
}
@media (max-width: 560px) { .hero__scroll-label { display: none; } .hero__scroll { bottom: 3rem; } }

/* --- Catégories : l'icône s'illumine et pivote au survol de la carte --- */
.cat__icon { transition: background var(--t), transform var(--t), box-shadow var(--t); }
.cat__icon svg { transition: transform var(--t), fill var(--t); }
.cat:hover .cat__icon {
  background: rgba(242,183,5,.20);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(242,183,5,.28);
}
.cat:hover .cat__icon svg { transform: scale(1.12) rotate(-6deg); }

/* --- Section « Pourquoi Cissko » : promesses centrées + icône cerclée --- */
.why__grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); grid-template-columns: 1fr; }
.why__card {
  text-align: center;
  padding: clamp(1.8rem, 3vw, 2.4rem) clamp(1.4rem, 2.5vw, 1.9rem);
  border-radius: var(--r-lg);
  transition: transform var(--t), box-shadow var(--t);
}
.why__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.why__icon {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1rem;
  background: radial-gradient(circle at 32% 28%, rgba(242,183,5,.30), rgba(99,144,246,.16) 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform var(--t);
}
.why__icon svg { width: 32px; height: 32px; fill: var(--navy); }
.why__card:hover .why__icon { transform: translateY(-4px) scale(1.08) rotate(-4deg); }
.why__card h3 { color: var(--ink); margin-bottom: .4rem; }
.why__card p { font-size: .95rem; }
@media (min-width: 768px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }

/* --- « Comment chercher » : timeline qui se trace au défilement (desktop) --- */
@media (min-width: 900px) {
  .steps { position: relative; }
  .steps::before {
    content: ""; position: absolute; z-index: 0;
    top: 26px;                 /* centre vertical des pastilles 52px */
    left: 12.5%; right: 12.5%; /* centre de la 1re à la 4e colonne */
    height: 3px; border-radius: var(--r-pill);
    background: rgba(6,33,135,.22);
    transform: scaleX(0); transform-origin: left;
    transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  }
  .steps.is-drawn::before { transform: scaleX(1); }
  /* Pastilles centrées au-dessus du texte pour porter la ligne */
  .step { padding-left: 0; text-align: center; }
  .step__num { position: relative; z-index: 1; margin: 0 auto .9rem; }
  .step__icon { justify-content: center; }
}
/* Sur fond ambre, la ligne reprend le navy de marque */
.section--amber .steps::before { background: rgba(6,33,135,.30); }

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-wheel { animation: none; }
  .steps::before { transition: none; }
}


/* =============================================================================
   22. HARMONISATION DES PAGES INTÉRIEURES + PAGES LÉGALES
   ============================================================================ */

/* Entrée animée des en-têtes de page (Louer / Acheter / Projets) — même chaleur
   que le héro d'accueil : le fil d'Ariane, l'eyebrow, le titre et le texte montent. */
@keyframes page-hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.page-hero .crumbs,
.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  animation: page-hero-rise .7s cubic-bezier(.2,.7,.2,1) both;
}
.page-hero .eyebrow { animation-delay: .05s; }
.page-hero h1       { animation-delay: .12s; }
.page-hero p        { animation-delay: .20s; }

/* Pages légales (Mentions légales, Politique de confidentialité) — texte lisible */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2rem; margin-bottom: .6rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { color: var(--ink); font-size: 1.1rem; margin-top: 1.4rem; margin-bottom: .3rem; }
.legal p, .legal li { color: var(--gray-text); }
.legal p { margin-bottom: .9rem; }
.legal ul { margin: 0 0 .9rem 0; display: grid; gap: .4rem; }
.legal li { position: relative; padding-left: 1.4rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--amber); border-radius: 2px; transform: rotate(45deg); }
.legal a { font-weight: 600; }
.legal__note {
  margin-bottom: 2rem; padding: 1rem 1.2rem;
  background: rgba(242,183,5,.12); border: 1px solid rgba(242,183,5,.4);
  border-radius: var(--r-md); color: #5a4502; font-size: .92rem;
}
.legal__update { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--gray-200); color: var(--gray-mute); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  .page-hero .crumbs, .page-hero .eyebrow, .page-hero h1, .page-hero p { animation: none; }
}


/* =============================================================================
   23. MENU MOBILE — reprend le design « tubelight » du desktop
   -----------------------------------------------------------------------------
   Même langage visuel que la barre desktop : pilule en verre dépoli, onglets
   en pastille (texte seul), page courante éclairée par la « lampe » bleu royal
   + le néon ambre au-dessus. Disposé en colonne (5 onglets côte à côte ne
   tiennent pas sur un écran de téléphone).
   ============================================================================ */
@media (max-width: 899px) {
  /* Le panneau prend un fond clair légèrement teinté pour révéler le verre */
  .nav__menu { background: linear-gradient(180deg, #e9eefb 0%, #f5f7fd 100%); }

  /* .nav__links = la pilule en verre dépoli (comme le desktop), en colonne.
     Onglets alignés à gauche (icônes + libellés démarrent au même bord). */
  .nav__links {
    align-items: flex-start;
    gap: .3rem;
    padding: .5rem;
    border-radius: 28px;
    overflow: visible;
    background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.22));
    border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 10px 28px rgba(6,33,135,.14), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 6px rgba(6,33,135,.05);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
  }

  /* Chaque onglet = une pastille centrée (icône + libellé) */
  .nav__links a {
    position: relative;
    display: inline-flex; align-items: center; justify-content: flex-start; gap: .6rem;
    padding: .62rem 1.4rem;
    border: 0; border-bottom: 0;
    border-radius: var(--r-pill);
    font-family: var(--font-display); font-weight: 600; font-size: 1rem;
    color: var(--ink);
    transition: color var(--t-fast), background var(--t-fast);
  }
  .nav__links a:hover { color: var(--navy); background: rgba(99,144,246,.10); }

  /* Icône à gauche du libellé — plus lisible au doigt. Petite icône bleu royal
     en filet (pas de chip), navy quand l'onglet est actif. Chevron masqué. */
  .nav__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; margin: 0; flex: none;
    background: none; border-radius: 0;
    color: var(--royal);
    transition: color var(--t-fast);
  }
  .nav__links a::after { display: none; }

  /* Page courante = la « lampe » bleu royal + le néon ambre au-dessus */
  .nav__links a.is-current {
    color: var(--navy);
    background: rgba(99,144,246,.16);
    box-shadow: inset 0 0 0 1px rgba(99,144,246,.28), 0 2px 10px rgba(99,144,246,.18);
  }
  .nav__links a.is-current .nav__icon { color: var(--navy); }
  .nav__links a.is-current::before {
    content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    width: 34px; height: 4px; background: var(--amber); border-radius: 0 0 9px 9px;
    box-shadow: 0 0 14px 3px rgba(242,183,5,.7), 0 0 28px 9px rgba(242,183,5,.4), 0 0 44px 14px rgba(242,183,5,.2);
  }

  /* Bouton CTA sous la pilule */
  .nav__menu .btn { margin-top: 1.1rem; box-shadow: 0 8px 22px rgba(242,183,5,.28); }

  /* Apparition en cascade des onglets à l'ouverture */
  .nav__menu.is-open .nav__links a,
  .nav__menu.is-open > .btn { animation: nav-item-in .42s cubic-bezier(.2,.7,.2,1) both; }
  .nav__links li:nth-child(1) a { animation-delay: .04s; }
  .nav__links li:nth-child(2) a { animation-delay: .09s; }
  .nav__links li:nth-child(3) a { animation-delay: .14s; }
  .nav__links li:nth-child(4) a { animation-delay: .19s; }
  .nav__links li:nth-child(5) a { animation-delay: .24s; }
  .nav__menu.is-open > .btn { animation-delay: .29s; }
}
@keyframes nav-item-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .nav__menu.is-open .nav__links a,
  .nav__menu.is-open > .btn { animation: none; }
}


/* =============================================================================
   24. HÉRO SUR MOBILE — rendre la photo bien visible
   -----------------------------------------------------------------------------
   Sur desktop, le texte est à gauche et le voile navy y est très dense (le reste
   de la photo respire à droite). Sur mobile, le texte prend toute la largeur :
   ce même voile noierait la photo. On ancre donc le contenu en bas avec un voile
   dégradé — sombre en bas (lisibilité du texte), clair en haut (photo + sujets
   visibles).
   ============================================================================ */
@media (max-width: 899px) {
  /* Contenu ancré en bas : le haut de la photo (les personnes) reste dégagé */
  .hero__slide { align-items: end; }
  .hero__inner { padding-block: 1.6rem 3.6rem; }

  /* Voile plus léger et vertical : sombre en bas, quasi transparent en haut */
  .hero__bg::after {
    background:
      radial-gradient(130% 70% at 50% 116%, rgba(242,183,5,.18), transparent 55%),
      linear-gradient(0deg, rgba(4,16,72,.90) 2%, rgba(6,33,135,.62) 30%, rgba(6,33,135,.10) 64%, rgba(6,33,135,.18) 100%);
  }

  /* Cadrage horizontal par slide : sur mobile, cover n'affiche que le centre en
     largeur. Comme les personnes sont à droite des photos, on décale le cadrage
     vers la droite pour les ramener au milieu de l'écran (la hauteur, elle, est
     entièrement visible — pas de rognage vertical). */
  .hero__slide:nth-child(1) .hero__bg img { object-position: 58% 50%; } /* famille */
  .hero__slide:nth-child(2) .hero__bg img { object-position: 72% 50%; } /* conseiller + terrain */
  .hero__slide:nth-child(3) .hero__bg img { object-position: 73% 50%; } /* remise des clés */

  /* L'indice de défilement chevaucherait le contenu ancré en bas — masqué ici */
  .hero__scroll { display: none; }
}


/* =============================================================================
   25. ANIMATIONS SUPPLÉMENTAIRES — titres de section
   ============================================================================ */
/* Soulignement ambre qui se trace sous les titres de section au défilement */
.section__head h2::after {
  content: ""; display: block; height: 4px; width: 56px; margin-top: .8rem;
  border-radius: var(--r-pill); background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s cubic-bezier(.2,.7,.2,1) .15s;
}
.section__head--center h2::after { margin-inline: auto; transform-origin: center; }
.section__head.is-visible h2::after,
.section__head:not(.reveal) h2::after { transform: scaleX(1); }
/* Sur fond ambre, le trait reprend le navy de marque */
.section--amber .section__head h2::after { background: var(--navy); }

/* Le marqueur ambre de l'eyebrow « pope » quand la section entre à l'écran */
.section__head.is-visible .eyebrow::before { animation: eyebrow-pop .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes eyebrow-pop {
  0%   { transform: rotate(45deg) scale(0); }
  55%  { transform: rotate(225deg) scale(1.25); }
  100% { transform: rotate(45deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .section__head h2::after { transition: none; transform: scaleX(1); }
  .section__head.is-visible .eyebrow::before { animation: none; }
}


/* =============================================================================
   26. THÈME CLAIR / SOMBRE — auto (système) + bouton de bascule (cookie)
   -----------------------------------------------------------------------------
   Un script en <head> pose html[data-theme="light|dark"] AVANT l'affichage
   (cookie « theme » si présent, sinon réglage système) → pas de clignotement.
   Le bouton (injecté en JS dans la barre d'infos) bascule la valeur et la
   mémorise dans le cookie. On éclaircit les neutres via variables ; le blanc
   reste blanc (texte sur navy). Les panneaux navy restent sombres.
   ============================================================================ */
html[data-theme="dark"] {
  --ink:       #eef2ff;
  --gray-text: #b9c2dd;
  --gray-mute: #8b95b4;
  --gray-50:   #131c33;
  --gray-100:  #1e2945;
  --gray-200:  #2b3858;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.30);
  --shadow-md: 0 14px 34px rgba(0,0,0,.42);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
}
html[data-theme="dark"] body { background: #0b1226; }

html[data-theme="dark"] .site-header { background: rgba(11,18,38,.85); border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .nav__logo img { filter: brightness(0) invert(1); }

html[data-theme="dark"] .section--glass,
html[data-theme="dark"] .section--glass-soft {
  background: linear-gradient(180deg, #0e1730 0%, #0b1226 60%, #0b1226 100%);
}
html[data-theme="dark"] .section--gray { background: #0e1730; }
html[data-theme="dark"] .section--glass::before { opacity: .45; }
html[data-theme="dark"] .section--glass::after  { opacity: .45; }

html[data-theme="dark"] .card,
html[data-theme="dark"] .cat,
html[data-theme="dark"] .projet-card,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .why__card {
  background: linear-gradient(155deg, rgba(36,48,82,.78), rgba(20,28,52,.62));
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 16px 38px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}
html[data-theme="dark"] .card__body,
html[data-theme="dark"] .projet-card__body { background: linear-gradient(180deg, rgba(20,28,52,.25), rgba(20,28,52,.55)); }
html[data-theme="dark"] .card__media { background: #1a2440; }

html[data-theme="dark"] .form-card { background: #111a32; }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea { color: var(--ink); }
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus { background: #0b1226; }

html[data-theme="dark"] a:hover { color: var(--royal-soft); }
html[data-theme="dark"] .link-arrow { color: var(--royal); }
html[data-theme="dark"] .link-arrow:hover { color: var(--royal-soft); }
html[data-theme="dark"] .card__price,
html[data-theme="dark"] .detail__price,
html[data-theme="dark"] .listing-bar .count { color: var(--royal-soft); }
html[data-theme="dark"] .cat__icon { background: rgba(99,144,246,.18); color: var(--royal-soft); }
html[data-theme="dark"] .cat__icon svg { fill: var(--royal-soft); }
html[data-theme="dark"] .tag--type { background: rgba(99,144,246,.20); color: var(--royal-soft); }
html[data-theme="dark"] .why__icon svg { fill: var(--royal-soft); }
html[data-theme="dark"] .nav__toggle span,
html[data-theme="dark"] .nav__toggle span::before,
html[data-theme="dark"] .nav__toggle span::after { background: #fff; }
html[data-theme="dark"] .btn--outline { --btn-fg: var(--royal-soft); }
html[data-theme="dark"] .btn--outline:hover { --btn-fg: #fff; }

html[data-theme="dark"] .nav__links a { color: var(--ink); }
html[data-theme="dark"] .nav__links a:hover,
html[data-theme="dark"] .nav__links a.is-current { color: #fff; }

html[data-theme="dark"] .nav__links {
  background: linear-gradient(180deg, rgba(40,52,86,.65), rgba(20,28,52,.4));
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 8px 26px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}

html[data-theme="dark"] .music-pop { background: #131c33; color: var(--ink); border-color: rgba(255,255,255,.10); }
html[data-theme="dark"] .music-pop__play { background: var(--royal); color: #0b1226; }

html[data-theme="dark"] .site-footer { background: #070d1d; }

@media (max-width: 899px) {
  html[data-theme="dark"] .nav__menu { background: linear-gradient(180deg, #0e1730 0%, #0b1226 100%); }
}

/* --- Bouton de bascule clair/sombre (injecté dans la barre d'infos) --- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  color: #cdd9ff; background: rgba(255,255,255,.08);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.theme-toggle:hover { color: var(--amber); background: rgba(255,255,255,.16); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun  { display: block; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.topbar__phone { margin-left: auto; }

/* Invite « mode sombre ? » — proposée (jamais imposée). En bas-centre, au-dessus
   des deux boutons flottants (WhatsApp à droite, lecteur à gauche). */
.theme-suggest {
  position: fixed; z-index: 92;
  left: 50%; bottom: 88px; transform: translate(-50%, 14px);
  width: min(340px, calc(100vw - 2rem));
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .9rem 1rem;
  background: var(--grad-navy); color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1);
}
.theme-suggest.is-in { opacity: 1; transform: translate(-50%, 0); }
.theme-suggest > svg { width: 22px; height: 22px; flex: none; fill: var(--amber); margin-top: 1px; }
.theme-suggest__body { flex: 1; }
.theme-suggest p { font-size: .92rem; line-height: 1.35; }
.theme-suggest strong { color: var(--amber); font-weight: 600; }
.theme-suggest__actions { display: flex; gap: .5rem; margin-top: .65rem; }
.theme-suggest button {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  padding: .42rem .85rem; border-radius: var(--r-pill); border: none; cursor: pointer;
  transition: background var(--t-fast);
}
.theme-suggest__yes { background: var(--amber); color: #2a1d00; }
.theme-suggest__yes:hover { background: var(--amber-600); }
.theme-suggest__no { background: rgba(255, 255, 255, .12); color: #fff; }
.theme-suggest__no:hover { background: rgba(255, 255, 255, .22); }
@media (prefers-reduced-motion: reduce) {
  .theme-suggest { transition: opacity .3s ease; transform: translate(-50%, 0); }
}
