/*
Theme Name: Biens avec Travaux
Theme URI: https://biensavectravaux.fr
Author: Biens avec Travaux
Description: Theme child de Twenty Twenty-Five pour la marketplace de biens à rénover. Design system Biens avec travaux (charte 26/08/2026) : ardoise + jaune chantier, Montserrat.
Template: twentytwentyfive
Version: 0.5
License: GPL-2.0
Text Domain: bat
*/

/* ==== Tokens — design system Biens avec travaux ==== */
:root {
  --bat-slate:     #232D35;
  --bat-slate-800: #2E3A44;
  --bat-slate-600: #4B5865;
  --bat-slate-400: #8A95A0;
  --bat-slate-200: #D7DCE1;
  --bat-slate-050: #F1F3F5;
  --bat-yellow:     #F8AF15;
  --bat-yellow-600: #D9930A;
  --bat-yellow-200: #FDE3A8;
  --bat-yellow-050: #FEF6E4;
  --bat-paper: #FDFDFD;

  --c-success: #2E7D5B;
  --c-error:   #C0492F;

  --bg: var(--bat-paper);
  --ink: var(--bat-slate);
  --accent: var(--bat-yellow);
  --white: #FFFFFF;
  --line: var(--bat-slate-200);
  --line-strong: #87929E;
  --muted: var(--bat-slate-600);
  --faint: var(--bat-slate-400);

  --radius: 8px;
  --radius-card: 12px;
  --radius-sm: 4px;
  --maxw: 1120px;
  --font-title: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .25s;
  --shadow-sm: 0 1px 2px rgba(35, 45, 53, .07);
  --shadow-md: 0 6px 24px rgba(35, 45, 53, .11);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--bat-yellow-600); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Mot accentué façon logo */
.mark {
  background: var(--bat-yellow);
  color: var(--bat-slate);
  border-radius: 4px;
  padding: 0 .18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Surtitre */
.label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 253, 253, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.site-logo a { display: inline-flex; align-items: center; }
.site-logo img { height: 48px; width: auto; display: block; }
.site-logo a:hover { opacity: .88; }
.site-nav ul { display: flex; gap: 28px; list-style: none; align-items: center; }
.site-nav a { font-size: 14px; font-weight: 500; color: var(--ink); transition: color var(--dur) var(--ease); }
.site-nav a:hover { color: var(--bat-yellow-600); }
.site-nav .nav-cta a {
  background: var(--bat-yellow); color: var(--bat-slate);
  font-weight: 700; padding: 9px 18px; border-radius: var(--radius);
  transition: background var(--dur) var(--ease);
}
.site-nav .nav-cta a:hover { background: var(--bat-yellow-600); color: var(--bat-slate); }
.site-nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 20px; color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-size: 15px; font-weight: 700;
  border: 1px solid var(--bat-yellow); border-radius: var(--radius);
  background: var(--bat-yellow); color: var(--bat-slate); cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  font-family: var(--font-body); text-align: center; text-transform: none;
}
.btn:hover { background: var(--bat-yellow-600); border-color: var(--bat-yellow-600); color: var(--bat-slate); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--bat-slate); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bat-slate-050); color: var(--ink); border-color: var(--bat-slate); transform: translateY(-2px); }
.btn--block { display: flex; width: 100%; }

/* Sur aplat ardoise */
.on-brand { background: var(--bat-slate); color: var(--bat-paper); }
.on-brand h2, .on-brand h3 { color: var(--bat-paper); }
.on-brand .btn:focus-visible { outline-color: var(--bat-paper); }

/* Hero */
.hero { padding: 150px 0 72px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 20px;
  max-width: 720px;
}
.hero p { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero illustré : texte à gauche, carte de France cliquable à droite */
.hero--illustre {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  grid-template-areas: "texte carte" "recherche recherche" "chips chips";
  align-items: center;
  column-gap: 48px;
}
.hero--illustre .hero__texte { grid-area: texte; }
.hero--illustre .hero__carte { grid-area: carte; }
.hero--illustre .search-card { grid-area: recherche; max-width: none; margin-top: 40px; }
.hero--illustre .chips { grid-area: chips; }
.hero--illustre h1 { max-width: none; }
.hero--illustre .hero__texte p { margin-bottom: 0; }
.hero__aide { font-size: 14px; color: var(--faint); margin-top: 14px; }

/* Carte des régions */
.carte { position: relative; }
.carte__svg { width: 100%; height: auto; display: block; overflow: visible; }
.carte__region path {
  fill: var(--bat-slate-050);
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linejoin: round;
  transition: fill var(--dur) var(--ease);
  cursor: pointer;
}
/* Régions où au moins un bien est en ligne */
.carte__region.a-des-biens path { fill: var(--bat-yellow-200); }
.carte__region:hover path,
.carte__region:focus-visible path { fill: var(--bat-yellow); }
.carte__region:focus-visible { outline: none; }
.carte__region:focus-visible path { stroke: var(--bat-slate); stroke-width: 3; }
.carte__region.est-active path { fill: var(--bat-yellow-600); }

.carte__bulle {
  position: absolute; z-index: 3; pointer-events: none;
  transform: translate(-50%, -125%);
  background: var(--bat-slate); color: var(--bat-paper);
  font-size: 13px; font-weight: 600; line-height: 1.35;
  padding: 7px 12px; border-radius: var(--radius);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.carte__bulle::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--bat-slate);
}
.carte__bulle span { display: block; font-weight: 500; color: var(--bat-yellow); }

/* Bandeau de repères sous le hero */
.preuve {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 8px; padding-bottom: 40px;
}
.preuve__item { display: flex; flex-direction: column; gap: 2px; }
.preuve__item strong {
  font-family: var(--font-title); font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1;
}
.preuve__item span { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .hero--illustre {
    grid-template-columns: 1fr;
    grid-template-areas: "texte" "carte" "recherche" "chips";
    row-gap: 32px;
  }
  .hero--illustre .search-card { margin-top: 0; }
  .carte { max-width: 420px; margin: 0 auto; }
  .preuve { grid-template-columns: repeat(2, 1fr); }
}

/* Barre de recherche du hero (façon portail immo) */
.search-card {
  display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-md);
  padding: 16px; margin-bottom: 20px; max-width: 880px;
}
.search-card__field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.search-card__field--grow { flex: 1 1 220px; }
.search-card__field label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
}
.search-card__field input, .search-card__field select {
  border: 0; background: transparent; font-family: var(--font-body);
  font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 0;
  border-bottom: 2px solid transparent; min-width: 0;
}
.search-card__field input:focus, .search-card__field select:focus {
  outline: none; border-bottom-color: var(--bat-yellow);
}
.search-card__field input::placeholder { color: var(--faint); font-weight: 400; }
.search-card__field + .search-card__field { border-left: 1px solid var(--line); padding-left: 14px; }
.search-card__btn { align-self: center; padding: 13px 28px; }

/* Raccourcis catégories */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill, 999px);
  font-size: 13px; font-weight: 700; color: var(--ink); background: var(--white);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.chip:hover { border-color: var(--bat-slate); color: var(--ink); transform: translateY(-2px); }
.chip--accent { background: var(--bat-yellow-050); border-color: var(--bat-yellow-600); }
.chip--accent:hover { background: var(--bat-yellow-200); border-color: var(--bat-yellow-600); }
.anim-d3 { animation-delay: .36s; }

/* Étapes — bande ardoise « comment ça marche » */
.steps { padding: 84px 0; }
.steps__entete { max-width: 620px; margin-bottom: 48px; }
.steps__entete h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin-bottom: 14px; }
.steps__entete p { color: var(--bat-slate-200); font-size: 17px; }

.steps__grid {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; counter-reset: etape;
}
.step {
  position: relative; padding: 30px 26px 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-card);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .08); border-color: rgba(248, 175, 21, .5); transform: translateY(-3px); }

/* Trait de liaison entre les étapes */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -20px; width: 20px;
  border-top: 2px dashed rgba(255, 255, 255, .22);
}

.step__num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-title); font-size: 44px; font-weight: 800;
  line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(248, 175, 21, .55);
}
.step__icone { width: 34px; height: 34px; color: var(--bat-yellow); margin-bottom: 20px; display: block; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--bat-paper); }
.step p { color: var(--bat-slate-200); font-size: 15px; line-height: 1.6; }

.steps__pied { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.steps__pied span { font-size: 14px; color: var(--bat-slate-400); }

@media (max-width: 860px) {
  .steps__grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}

/* Dernières annonces (accueil) */
.recentes { padding: 72px 0; border-top: 1px solid var(--line); }
.recentes__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.recentes__head h2 { font-size: 28px; }
.recentes__head a { font-size: 14px; font-weight: 700; }

/* Bandeau de confirmation (alerte activée / supprimée) */
.bandeau-info {
  margin-top: 88px; padding: 14px 20px;
  background: var(--bat-yellow-050); border: 1px solid var(--bat-yellow);
  border-radius: var(--radius); font-size: 15px; font-weight: 600;
}

/* Bande alerte email */
.alerte-band {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 48px; align-items: start;
  padding-top: 72px; padding-bottom: 72px;
  border-top: 1px solid var(--line);
}
.alerte-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
.alerte-band p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.alerte-band__form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-md); padding: 26px;
}
.alerte-band__form .bat-form p { margin-bottom: .9em; }
.alerte-band__form .bat-form label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.alerte-band__form .bat-form input:not([type=checkbox]),
.alerte-band__form .bat-form select {
  max-width: none; margin-top: 5px;
  border-color: var(--line-strong); border-radius: var(--radius); padding: 11px 13px;
}
.alerte-band__form .bat-form label.bat-rgpd { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.5; }
.alerte-band__form .bat-form button {
  background: var(--bat-yellow); color: var(--bat-slate); width: 100%;
  padding: 13px 24px; font-weight: 700; border-radius: var(--radius);
}
.bat-alerte__champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

@media (max-width: 860px) {
  .alerte-band { grid-template-columns: 1fr; gap: 28px; }
  .bat-alerte__champs { grid-template-columns: 1fr; }
}

/* Bloc alerte au fil des résultats (page annonces) */
.alerte-inline {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 44px; align-items: start;
  margin: 8px 0 72px; padding: 34px;
  background: var(--bat-slate-050); border-radius: var(--radius-card);
}
.alerte-inline h2 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 12px; }
.alerte-inline p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.alerte-inline__form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: 22px;
}
.alerte-inline__form .bat-form p { margin-bottom: .8em; }
.alerte-inline__form .bat-form label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.alerte-inline__form .bat-form input:not([type=checkbox]),
.alerte-inline__form .bat-form select {
  max-width: none; margin-top: 5px; padding: 10px 12px;
  border-color: var(--line-strong); border-radius: var(--radius);
}
.alerte-inline__form .bat-form label.bat-rgpd { font-size: 12.5px; text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.5; }
.alerte-inline__form .bat-form button {
  width: 100%; background: var(--bat-yellow); color: var(--bat-slate);
  padding: 12px 24px; font-weight: 700; border-radius: var(--radius);
}

@media (max-width: 860px) {
  .alerte-inline { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}

.alerte-band__form .bat-form label.bat-rgpd,
.alerte-inline__form .bat-form label.bat-rgpd {
  display: flex; align-items: flex-start; gap: 9px;
}
.alerte-band__form .bat-rgpd input,
.alerte-inline__form .bat-rgpd input { margin-top: 3px; flex: 0 0 auto; }

/* Bande CTA */
.cta-band { padding: 64px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; max-width: 560px; }
.cta-band p { color: var(--bat-slate-200); font-size: 15px; margin-top: 8px; max-width: 560px; }

/* Pages annonces */
.annonces-head { padding: 130px 0 24px; }
.annonces-head h1 { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: 12px; }
.annonces-head .sub { color: var(--muted); font-size: 17px; max-width: 560px; }
.barre-filtres {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); padding: 16px 20px; margin: 28px 0 32px;
}
.barre-filtres__compte { font-size: 14px; color: var(--muted); white-space: nowrap; }
.barre-filtres__compte strong { font-size: 17px; font-weight: 800; color: var(--ink); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.filters input, .filters select {
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); font-family: var(--font-body); font-size: 14px; color: var(--ink);
}
.filters input:focus, .filters select:focus { outline: 2px solid var(--bat-yellow); outline-offset: 1px; border-color: var(--bat-yellow-600); }

/* Curseur « Budget max » (barre de filtres + recherche accueil) : libre de
   0 a 10 M€, 0 et max = tous les budgets. */
.filters-budget { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; min-width: 300px; }
.filters-budget label { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.filters-budget input[type="range"] {
  flex: 1 1 120px; width: 120px; min-width: 110px;
  padding: 0; border: 0; background: transparent; accent-color: var(--bat-yellow);
}
.filters-budget output { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; min-width: 98px; text-align: right; }

.search-card__field--budget { min-width: 190px; }
.search-card__field--budget input[type="range"] {
  padding: 8px 0 2px; border: 0; border-bottom: 0; background: transparent; accent-color: var(--bat-yellow);
}
.search-card__field--budget output { font-size: 13px; font-weight: 700; color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-bottom: 72px; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(35, 45, 53, .16); border-color: var(--bat-slate-200); }
.card__media { position: relative; display: block; aspect-ratio: 4/3; background: var(--bat-slate-050); overflow: hidden; }
.card__badges {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start;
}
.card__badge {
  background: var(--bat-yellow); color: var(--bat-slate);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 999px; width: fit-content;
}
.card__badge--annonceur {
  background: var(--bat-slate); color: #fff;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__type {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.card__title { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--bat-yellow-600); }
.card__loc { font-size: 14px; color: var(--muted); font-weight: 500; }
.card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.card__price { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card__surface { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { text-align: center; padding: 72px 24px; }
.empty h2 { font-size: 24px; margin-bottom: 12px; }
.empty p { color: var(--muted); margin-bottom: 24px; }

/* ===== Fiche annonce ===== */
.fiche { padding: 120px 0 72px; }

.fil { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.fil a { color: var(--muted); font-weight: 600; }
.fil a:hover { color: var(--ink); }

/* Galerie */
.galerie { margin-bottom: 40px; }
.galerie__principale {
  position: relative; margin: 0; border-radius: var(--radius-card); overflow: hidden;
  background: var(--bat-slate-050); aspect-ratio: 16/10; box-shadow: var(--shadow-md);
}
.galerie__principale img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--bat-yellow); color: var(--bat-slate);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 999px;
}
.galerie__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--bat-slate);
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: background var(--dur) var(--ease);
}
.galerie__nav:hover { background: var(--white); }
.galerie__nav--prev { left: 16px; }
.galerie__nav--next { right: 16px; }
.galerie__compteur {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(35, 45, 53, .82); color: var(--white);
  font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.galerie__vignettes { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.galerie__vignette {
  flex: 0 0 108px; padding: 0; border: 2px solid transparent; border-radius: var(--radius);
  background: none; cursor: pointer; overflow: hidden; line-height: 0;
  transition: border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
  opacity: .68;
}
.galerie__vignette img { width: 100%; height: 74px; object-fit: cover; display: block; }
.galerie__vignette:hover { opacity: 1; }
.galerie__vignette.est-active { border-color: var(--bat-yellow); opacity: 1; }

/* Corps : contenu + colonne latérale */
.fiche__corps { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 48px; align-items: start; }
.fiche__entete { margin-bottom: 28px; }
.fiche__type {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--bat-slate);
  background: var(--bat-yellow-200); border-radius: var(--radius-sm);
  padding: 4px 10px; margin-bottom: 14px;
}
.fiche__annonceur {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #fff;
  background: var(--bat-slate); border-radius: var(--radius-sm);
  padding: 4px 10px; margin-bottom: 14px; margin-left: 6px;
}
.fiche__principal h1 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.2; margin-bottom: 10px; }
.fiche__lieu { font-size: 16px; color: var(--muted); font-weight: 500; }

.fiche__pas-agences {
  display: flex; align-items: center; gap: 10px;
  background: var(--bat-yellow-050); border: 1px solid var(--bat-yellow-200);
  border-left: 4px solid var(--bat-yellow);
  border-radius: var(--radius-card);
  padding: 12px 16px; margin: 0 0 24px;
  font-size: 14.5px; line-height: 1.5; color: var(--bat-slate);
}
.fiche__pas-agences svg { flex: 0 0 auto; color: var(--bat-yellow-600); }
.fiche__pas-agences strong { font-weight: 700; }

.carac {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden; margin-bottom: 36px;
}
.carac li { background: var(--white); padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; }
/* Éviter les cases grises vides : le dernier élément comble toujours sa ligne */
.carac li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.carac li:last-child:nth-child(3n+2) { grid-column: span 2; }
@media (max-width: 640px) {
  .carac { grid-template-columns: repeat(2, 1fr); }
  .carac li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.carac__val { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.carac__cle { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }

.fiche__desc h2 { font-size: 21px; margin-bottom: 14px; }
.fiche__desc { font-size: 16px; line-height: 1.75; }
.fiche__desc p { margin-bottom: 1em; }

/* Travaux à prévoir */
.travaux { margin: 36px 0; }
.travaux h2 { font-size: 21px; margin-bottom: 14px; }
.travaux__liste {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.travaux__liste li {
  background: var(--bat-yellow-200); color: var(--bat-slate);
  font-size: 13.5px; font-weight: 700;
  padding: 7px 13px; border-radius: 999px;
}
.travaux__estimation { font-size: 15px; color: var(--muted); margin-top: 14px; }
.travaux__estimation strong { color: var(--ink); }

/* Dépôt : cases à cocher et radios du formulaire bat-core */
.form-section .bat-depot .bat-choix label,
.form-section .bat-depot .bat-radio-ligne label {
  font-size: 14.5px; font-weight: 500; text-transform: none; letter-spacing: 0;
  color: var(--ink);
}
.form-section .bat-depot .bat-choix input,
.form-section .bat-depot .bat-radio-ligne input {
  width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--bat-yellow-600);
}
.form-section .bat-depot .bat-label-groupe {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin: 1.4em 0 .5em;
}
.form-section .bat-depot .bat-precision { color: var(--muted); font-size: 13.5px; margin-top: -.5em; }

/* Encart prix + contact */
.fiche__aside { position: sticky; top: 96px; }
.encart {
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--white); padding: 26px; box-shadow: var(--shadow-md);
}
.encart__prix { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.encart__sous { font-size: 14px; color: var(--muted); margin-top: 4px; }
.encart__note {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  margin: 18px 0; padding-top: 18px; border-top: 1px solid var(--line);
}
.encart .champ { margin-bottom: 14px; }
.encart .champ label {
  display: block; font-size: 11px; font-weight: 800; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
}
.encart .champ input, .encart .champ textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); font-family: var(--font-body); font-size: 15px; color: var(--ink);
}
.encart .champ input:focus, .encart .champ textarea:focus {
  outline: 2px solid var(--bat-yellow); outline-offset: 1px; border-color: var(--bat-yellow-600);
}
.encart .champ textarea { resize: vertical; }
.encart .bat-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.encart .form-msg { margin: 14px 0 0; }

.fiche__signal { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.fiche__signal a { font-weight: 700; text-decoration: underline; }

.fiche__suite { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.fiche__suite h2 { font-size: 24px; margin-bottom: 24px; }

@media (max-width: 900px) {
  .fiche__corps { grid-template-columns: 1fr; gap: 32px; }
  .fiche__aside { position: static; }
  .galerie__principale { aspect-ratio: 4/3; }
}

/* Forms */
.form-section { padding: 130px 0 72px; max-width: 680px; }
.form-section h1 { font-size: clamp(28px, 4.5vw, 38px); margin-bottom: 12px; }
.form-section .sub { color: var(--muted); font-size: 16px; margin-bottom: 32px; max-width: 560px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); font-family: var(--font-body); font-size: 16px; color: var(--ink);
  transition: border-color var(--dur) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: 2px solid var(--bat-yellow); outline-offset: 1px; border-color: var(--bat-yellow-600); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input[type="file"] { padding: 10px; background: var(--bat-slate-050); border-style: dashed; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-msg { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; font-weight: 500; display: none; }
.form-msg.ok { background: #E9F3EE; color: var(--c-success); display: block; }
.form-msg.err { background: #F9EAE6; color: var(--c-error); display: block; }
.form-help { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Contact (single) */
.contact-box {
  max-width: 680px; border-radius: var(--radius-card);
  background: var(--bat-slate); color: var(--bat-paper); padding: 32px; margin-bottom: 40px;
}
.contact-box h2 { font-size: 22px; margin-bottom: 8px; color: var(--bat-paper); }
.contact-box p { color: var(--bat-slate-200); font-size: 14px; margin-bottom: 20px; }
.contact-box .form-group label { color: var(--bat-slate-200); }
.contact-box .btn:focus-visible { outline-color: var(--bat-paper); }
.contact-form { display: none; }
.contact-form.open { display: block; }

/* Contenu des pages simples (mentions, CGU, RGPD) */
.page-content { padding: 130px 0 72px; max-width: 720px; }
.page-content h1 { font-size: clamp(28px, 4.5vw, 38px); margin-bottom: 24px; }
.page-content h2 { font-size: 22px; margin: 32px 0 12px; }
.page-content h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.page-content p, .page-content ul, .page-content ol { margin-bottom: 14px; color: var(--ink); }
.page-content ul, .page-content ol { padding-left: 22px; }
.page-content a { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--bat-slate); color: var(--bat-paper); padding: 44px 0; margin-top: 0; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer__brand {
  font-family: var(--font-title); font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--bat-paper);
}
.site-footer__copy { font-size: 13px; color: var(--bat-slate-400); }
.site-footer__links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.site-footer__links a { font-size: 13px; color: var(--bat-slate-200); }
.site-footer__links a:hover { color: var(--bat-yellow); }

/* ==== Animations ==== */

/* Entrée du hero */
@keyframes bat-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.anim-up { animation: bat-up .7s var(--ease) both; }
.anim-d1 { animation-delay: .12s; }
.anim-d2 { animation-delay: .24s; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }

/* Rotation du mot du hero — largeur figée sur le mot le plus long, zéro reflow */
.rotator { display: inline-grid; white-space: nowrap; text-align: center; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; }
.rotator__ghost { visibility: hidden; }
.rotator__word { display: inline-block; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.rotator__word.is-out { opacity: 0; transform: translateY(-14px); }
.rotator__word.is-in { opacity: 0; transform: translateY(14px); transition: none; }

/* Bandeau défilant */
.ticker { background: var(--bat-yellow); overflow: hidden; padding: 13px 0; }
.ticker__track { display: flex; width: max-content; animation: bat-ticker 36s linear infinite; }
.ticker__seq {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--bat-slate); white-space: nowrap; padding-right: .5em;
}
@keyframes bat-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Étapes : pastille qui s'anime à l'apparition */
.step .step__num { transform: scale(.6); opacity: 0; transition: transform .5s var(--ease) .15s, opacity .5s var(--ease) .15s; }
.step.in .step__num { transform: scale(1); opacity: 1; }

/* Header au scroll */
.site-header { transition: box-shadow var(--dur) var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

@media (prefers-reduced-motion: reduce) {
  .anim-up, .ticker__track { animation: none; }
  .reveal, .step .step__num { opacity: 1; transform: none; transition: none; }
}

/* Cartes d'exemple */
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid > .reveal > .card { height: 100%; }
.card--demo { cursor: default; }
.card__media--illu {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: var(--bat-slate-050); padding: 18px;
}
.card__media--illu svg { width: 78%; height: auto; }
.card--demo:hover .card__media--illu svg { transform: scale(1.03); transition: transform var(--dur) var(--ease); }
.card--demo .card__badge {
  background: var(--bat-slate); color: var(--bat-paper);
  letter-spacing: 0.12em; padding: 4px 10px; border-radius: var(--radius-sm);
}
.recentes__note { margin: -44px 0 72px; font-size: 15px; color: var(--muted); }
.recentes__note a { font-weight: 700; text-decoration: underline; }

/* Pagination */
.pagination { margin: -40px 0 72px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.pagination .page-numbers.current { background: var(--bat-yellow); border-color: var(--bat-yellow); color: var(--bat-slate); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--bat-slate); color: var(--ink); }

/* Loading */
.loading { text-align: center; padding: 60px; color: var(--muted); font-size: 14px; }

/* bat-core (formulaires et grilles du plugin) */
.bat-form button { background: var(--bat-yellow); color: var(--bat-slate); font-weight: 700; border-radius: var(--radius); }
.bat-form button:hover { background: var(--bat-yellow-600); }
.bat-retour { background: #E9F3EE; color: var(--c-success); }
.bat-retour.bat-erreur { background: #F9EAE6; color: var(--c-error); }

/* Responsive */
@media (max-width: 860px) {
  .steps__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 16px; align-items: flex-start; }
  .site-nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 56px; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
}

/* ===== Actualités / articles ===== */
.articles-head { padding: 130px 0 12px; }
.articles-head .label { margin-bottom: 10px; }
.articles-head h1 { font-size: clamp(30px, 4.5vw, 40px); margin-bottom: 12px; }
.articles-head .sub { color: var(--muted); font-size: 17px; max-width: 560px; }

/* Carte article */
.card--article .card__media { aspect-ratio: 16/10; }
.card--article .card__body { gap: 8px; }
.card__excerpt { font-size: 14px; color: var(--muted); line-height: 1.55; }
.card__date { font-size: 13px; color: var(--faint); font-weight: 500; }
.card__lire { font-size: 13px; font-weight: 700; color: var(--bat-yellow-600); }

/* Article */
.article { padding: 120px 0 56px; }
.article__head { max-width: 780px; margin: 0 auto 32px; }
.article__head .fil { margin-bottom: 22px; }
.article__meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.article__cat {
  display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--bat-slate); background: var(--bat-yellow-200);
  border-radius: var(--radius-sm); padding: 3px 9px;
}
.article__title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.article__lead { font-size: 18px; color: var(--muted); line-height: 1.6; }
.article__cover { margin: 0 0 40px; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-md); }
.article__cover img { width: 100%; }
.article__content { max-width: 720px; margin: 0 auto; font-size: 16px; line-height: 1.75; }
.article__content h2 { font-size: 23px; margin: 38px 0 14px; }
.article__content h3 { font-size: 18px; margin: 28px 0 10px; }
.article__content p { margin-bottom: 16px; }
.article__content a { color: var(--bat-yellow-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article__content a:hover { color: var(--bat-slate); }
.article__content ul, .article__content ol { margin: 0 0 16px; padding-left: 22px; }
.article__content li { margin-bottom: 8px; }
.article__content blockquote {
  margin: 24px 0; padding: 18px 22px; background: var(--bat-yellow-050);
  border-left: 4px solid var(--bat-yellow); border-radius: var(--radius);
  font-weight: 500;
}
.article__content img { border-radius: var(--radius); }
.article__content figure { margin: 24px 0; }
.article__content figcaption { font-size: 13px; color: var(--faint); text-align: center; margin-top: 8px; }
.article__content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.article__content th, .article__content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article__content th { background: var(--bat-slate-050); font-weight: 700; }

/* CTA fin d'article */
.article__cta {
  max-width: 720px; margin: 56px auto 0; padding: 30px 32px;
  background: var(--bat-slate); color: var(--bat-paper); border-radius: var(--radius-card);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.article__cta h2 { font-size: 20px; color: var(--bat-paper); margin-bottom: 6px; }
.article__cta p { font-size: 14px; color: var(--bat-slate-200); }
.article__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.article__cta .btn--ghost { color: var(--bat-paper); border-color: rgba(255, 255, 255, .35); background: transparent; }
.article__cta .btn--ghost:hover { border-color: var(--bat-paper); color: var(--bat-paper); background: rgba(255, 255, 255, .06); transform: translateY(-2px); }

/* À lire aussi */
.article__suite { padding: 8px 24px 72px; }
.article__suite h2 { font-size: 24px; margin-bottom: 24px; }

@media (max-width: 860px) {
  .article { padding: 100px 0 40px; }
  .article__cta { flex-direction: column; align-items: flex-start; }
}

/* Gouttiere horizontale reaffirmee (fix 2026-10-06) : les sections qui portent
   aussi .wrap (hero, fiche, form-section, pages simples) posent un shorthand
   `padding: Xpx 0` DECLARE APRES .wrap, ce qui remettait le padding horizontal
   a 0 : texte colle aux bords des que l'ecran est plus etroit que le max-width
   (mobile, tablette). Longhands en fin de feuille : meme specificite, plus tard
   = gagne, sans toucher aux verticaux. */
.wrap { padding-left: 24px; padding-right: 24px; }

/* Cartes : photo en couleur par defaut. Seul le bien « Vendu » est en noir et
   blanc et repasse en couleur au survol (traitement issu des cartes de
   biensatypiques.com, restreint au statut vendu).
   Le filtre porte sur la PHOTO uniquement : badges, prix et textes restent
   conformes a la charte (jaune/ardoise) en toutes circonstances. */
.card--vendu .card__media img { filter: saturate(0); transition: filter .45s ease; }
.card--vendu:hover .card__media img,
.card--vendu:focus-within .card__media img { filter: saturate(1); }
.card__badge--vendu { background: var(--bat-slate); color: var(--bat-yellow); }
.card--vendu .card__price { font-size: 15px; line-height: 1.3; flex: 1 1 auto; }

/* Fiche d'un bien vendu : bandeau ardoise sous le titre, encart sans contact */
.fiche__vendu { display: flex; align-items: center; gap: 10px; background: var(--bat-slate); color: var(--bat-paper); border-left: 4px solid var(--bat-yellow); border-radius: 8px; padding: 14px 18px; margin: 0 0 24px; font-size: .95em; }
.fiche__vendu strong { color: var(--bat-yellow); }
.fiche__vendu svg { flex: none; }
.encart__vendu { color: var(--ink); font-weight: 600; padding: 12px 0 4px; margin: 0; }
