/* CapFin Immobilier — feuille de style */

@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/questrial-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/questrial-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blanc: #FFFFFF;
  --sable: #D6C9AE;
  --sable-clair: #F3EFE6;
  --or: #B08D57;
  --or-fonce: #96763F;
  --nuit: #1E2A32;
  --encre: #2B2B2B;
  --gris: #6B6B6B;
  --largeur: 1120px;
  --texte: 720px;
  --rayon: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Questrial", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--encre);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--or-fonce); text-underline-offset: 3px; }
a:hover { color: var(--nuit); }

h1, h2, h3, h4 {
  font-family: "Questrial", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--nuit);
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.texte { max-width: var(--texte); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--nuit); color: var(--blanc);
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: var(--sable);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: flex-start;
  min-height: 96px; gap: clamp(1.5rem, 4vw, 3.5rem); padding: .6rem 0;
}
.logo {
  display: inline-flex; flex-direction: column; align-items: center; gap: .2rem;
  text-decoration: none; color: var(--nuit); line-height: 1.1;
}
.logo img { width: 62px; height: 62px; }
.logo span { font-size: 1.15rem; }

.menu { display: flex; gap: clamp(1rem, 2.3vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.menu a {
  text-decoration: none; color: var(--nuit); font-size: clamp(.95rem, 1.5vw, 1.05rem); letter-spacing: .03em;
  padding: .4rem 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.menu a:hover { color: var(--or-fonce); }
.menu a[aria-current="page"] { border-bottom-color: var(--nuit); }

.burger, .menu-fermer { display: none; }
.burger {
  background: none; border: 0; color: var(--nuit); cursor: pointer; padding: .7rem .5rem;
  margin-left: auto; width: 48px; height: 48px;
  flex-direction: column; justify-content: center; align-items: stretch; gap: 6px;
}
.burger span { display: block; height: 2px; background: var(--nuit); border-radius: 2px; }
.menu-fermer {
  position: fixed; z-index: 101; top: 1rem; right: 1rem; width: 48px; height: 48px; padding: 10px;
  background: none; border: 0; color: var(--nuit); cursor: pointer;
}
.menu-fermer svg { width: 100%; height: 100%; }

@media (max-width: 820px) {
  .entete .conteneur { gap: 0; min-height: 76px; }
  .logo { flex-direction: row; gap: .7rem; }
  .logo img { width: 48px; height: 48px; }
  .logo span { font-size: 1.15rem; white-space: nowrap; }
  .burger { display: flex; }
  .entete nav { position: static; }
  .menu {
    display: none; position: fixed; inset: 0; z-index: 100; overflow-y: auto;
    flex-direction: column; justify-content: center; align-items: center; gap: 0;
    background: var(--blanc); padding: 5rem 1.25rem 3rem; text-align: center;
  }
  .menu.ouvert { display: flex; }
  .menu.ouvert ~ .menu-fermer { display: block; }
  .menu a { display: block; padding: 1rem 0; border-bottom: 0; font-size: 1.6rem; letter-spacing: .02em; }
  .menu a[aria-current="page"] { border-bottom: 0; color: var(--or-fonce); }
  html.menu-ouvert, html.menu-ouvert body { overflow: hidden; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-block; font: inherit; font-size: .98rem; letter-spacing: .02em;
  padding: .95rem 1.8rem; border: 1px solid var(--or); background: var(--or);
  color: var(--blanc); text-decoration: none; cursor: pointer; border-radius: var(--rayon);
  transition: background .2s, color .2s, border-color .2s;
}
.bouton:hover { background: var(--or-fonce); border-color: var(--or-fonce); color: var(--blanc); }
.bouton.contour { background: transparent; color: var(--blanc); border-color: rgba(255,255,255,.55); }
.bouton.contour:hover { background: var(--blanc); color: var(--nuit); border-color: var(--blanc); }
.bouton.contour-sombre { background: transparent; color: var(--nuit); border-color: var(--nuit); }
.bouton.contour-sombre:hover { background: var(--nuit); color: var(--blanc); }

.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* ---------- Bandeaux ---------- */
.hero {
  background: var(--nuit); color: var(--blanc);
  padding: clamp(4rem, 11vw, 8rem) 0;
}
.hero h1 { color: var(--blanc); margin-bottom: .25em; }
.hero .surtitre { color: var(--sable); }
.hero .accroche {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--sable); margin-bottom: 1.6rem;
}
.hero p { color: #E7E2D6; max-width: 640px; }
.hero .communes { color: var(--sable); letter-spacing: .02em; }

.surtitre {
  display: block; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--or); margin-bottom: 1rem;
}

.entete-page {
  background: var(--sable-clair); padding: clamp(1.6rem, 3.6vw, 2.8rem) 0 clamp(1.4rem, 3vw, 2.3rem);
  border-bottom: 1px solid var(--sable);
}
.entete-page h1 { margin-bottom: 0; max-width: 18ch; }
.entete-page.large h1 { max-width: 26ch; }

section.bloc { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.bloc.sable { background: var(--sable-clair); }
section.bloc.nuit { background: var(--nuit); color: var(--blanc); }
section.bloc.nuit h2, section.bloc.nuit h3 { color: var(--blanc); }

.filet { width: 56px; height: 2px; background: var(--or); border: 0; margin: 0 0 1.6rem; }

/* ---------- Cartes ---------- */
.cartes { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); margin-top: 2.2rem; }
.carte { background: var(--blanc); border-top: 2px solid var(--or); padding: 1.9rem 1.7rem 1.6rem; }
section.bloc.sable .carte { box-shadow: 0 1px 0 rgba(30,42,50,.06); }
.carte h3 { margin-bottom: .5rem; }
.carte p { margin: 0; color: var(--gris); }
@media (max-width: 820px) { .cartes { grid-template-columns: 1fr; } }

.citation {
  font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--nuit); text-align: center;
  max-width: 24ch; margin: 0 auto; line-height: 1.3;
}
.citation::before { content: ""; display: block; width: 56px; height: 2px; background: var(--or); margin: 0 auto 1.6rem; }

.communes-liste { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.communes-liste li {
  border: 1px solid var(--sable); padding: .45rem 1.1rem; color: var(--nuit); background: var(--blanc);
}

/* ---------- Listes ---------- */
.liste-points { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.liste-points li {
  position: relative; padding: .75rem 0 .75rem 1.9rem; border-bottom: 1px solid var(--sable);
}
.liste-points li::before {
  content: ""; position: absolute; left: 0; top: 1.3rem; width: 10px; height: 2px; background: var(--or);
}

/* ---------- À propos ---------- */
.profil { display: grid; grid-template-columns: 1fr 260px; gap: 3rem; align-items: start; }
.profil img { width: 100%; border-radius: var(--rayon); }
.profil .cadre-photo {
  aspect-ratio: 221 / 249; background: var(--sable); display: flex; align-items: center; justify-content: center;
  color: var(--gris); font-size: .9rem; text-align: center; padding: 1rem;
}
@media (max-width: 820px) { .profil { grid-template-columns: 1fr; } .profil figure { order: -1; max-width: 240px; } }
.profil figure { margin: 0; }

/* ---------- Contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3.5rem; align-items: start; }
@media (max-width: 820px) { .contact-grille { grid-template-columns: 1fr; gap: 2rem; } }
.coordonnees { font-style: normal; }
.coordonnees a { color: var(--nuit); }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; gap: 1.1rem; }
.formulaire .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .formulaire .duo { grid-template-columns: 1fr; } }
.champ label { display: block; font-size: .88rem; color: var(--gris); margin-bottom: .35rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; font: inherit; color: var(--encre); background: var(--blanc);
  border: 1px solid #C9C2B2; padding: .8rem .9rem; border-radius: var(--rayon);
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--or); outline: 2px solid rgba(176,141,87,.3); }
.mention { font-size: .88rem; color: var(--gris); margin: 0; }
.piege { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alerte { padding: 1.2rem 1.4rem; border-left: 3px solid var(--or); background: var(--sable-clair); }
.alerte.erreur { border-left-color: #9B3B30; background: #F8ECEA; }
.alerte p:last-child { margin-bottom: 0; }

/* ---------- Honoraires ---------- */
.tableau-wrap { overflow-x: auto; margin: 1.2rem 0 .8rem; }
table.bareme { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 1rem; }
table.bareme th, table.bareme td { padding: .85rem 1rem; text-align: center; border-bottom: 1px solid var(--sable); }
table.bareme thead th { background: var(--nuit); color: var(--blanc); font-weight: 400; }
table.bareme th:first-child, table.bareme td:first-child { text-align: left; }
table.bareme tbody th { font-weight: 400; color: var(--nuit); }
.note { font-size: .88rem; color: var(--gris); }

/* ---------- Pages légales ---------- */
.legal h2 { font-size: 1.25rem; margin-top: 2.2rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }

/* ---------- Nos biens ---------- */
.filtres {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 1rem; align-items: end;
  background: var(--sable-clair); padding: 1.4rem; border: 1px solid var(--sable);
}
@media (max-width: 900px) { .filtres { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filtres { grid-template-columns: 1fr; } }

.grille-biens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin-top: 2rem; }
@media (max-width: 960px) { .grille-biens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grille-biens { grid-template-columns: 1fr; } }
.bien { background: var(--blanc); border: 1px solid var(--sable); }
.bien a { color: inherit; text-decoration: none; display: block; }
.bien .photo { aspect-ratio: 4 / 3; background: var(--sable); overflow: hidden; }
.bien .photo img { width: 100%; height: 100%; object-fit: cover; }
.bien .corps { padding: 1.2rem 1.3rem 1.4rem; }
.bien .lieu { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.bien h3 { margin: .35rem 0 .6rem; }
.bien .prix { color: var(--or-fonce); font-size: 1.25rem; }
.bien .caracs { color: var(--gris); font-size: .92rem; margin-top: .4rem; }
.vide { text-align: center; padding: 3.5rem 1rem; color: var(--gris); }

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: #CFC9BA; padding: 3rem 0 2rem; margin-top: 0; }
.pied a { color: #CFC9BA; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied .haut {
  display: flex; flex-wrap: wrap; gap: 2rem 4rem; justify-content: space-between;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(214,201,174,.25);
}
.pied .logo { color: var(--blanc); }
.pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.pied .bas { padding-top: 1.4rem; font-size: .88rem; color: #A8A292; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =====================================================================
   Thème d'après l'accueil Wix : en-tête beige, accueil centré blanc,
   boutons marine, bandes beiges, pied de page clair.
   ===================================================================== */

/* Boutons marine */
.bouton { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.bouton:hover { background: var(--or-fonce); border-color: var(--or-fonce); }
.bouton.contour { background: transparent; color: var(--nuit); border-color: var(--nuit); }
.bouton.contour:hover { background: var(--nuit); color: var(--blanc); border-color: var(--nuit); }

/* Hero centré sur fond blanc */
.hero { background: var(--blanc); color: var(--encre); text-align: center; padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hero h1 { color: var(--nuit); font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .3em; }
.hero .accroche { color: var(--or); font-size: clamp(1.5rem, 3.6vw, 2.6rem); margin: 0 0 2.2rem; }
.hero p { color: var(--encre); margin-inline: auto; max-width: 640px; }
.hero .communes { color: var(--encre); }
.hero .actions { justify-content: center; }
.hero .surtitre { display: none; }

/* Bandes beiges */
section.bloc.sable, .entete-page { background: var(--sable); }
.entete-page { border-bottom: 0; text-align: center; }
.entete-page h1, .entete-page.large h1 { max-width: none; margin-inline: auto; }
.entete-page p { text-align: center; }

/* Sections d'accueil centrées */
.centre { text-align: center; }
.centre .actions { justify-content: center; }
.centre .surtitre { display: none; }
.centre .communes-liste { justify-content: center; }
.centre .communes-liste li { background: transparent; border-color: rgba(30,42,50,.35); }

/* « Une autre manière de vendre » : trois colonnes sans cartes */
.cartes { gap: 2.5rem; }
.carte { background: transparent; border-top: 0; padding: 0; text-align: center; }
.carte h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.carte p { color: var(--encre); }
.hr-or { display: none; }

.citation::before { display: none; }
.citation { max-width: 30ch; }

/* Pied de page clair et centré */
.pied { background: var(--blanc); color: var(--encre); text-align: center; padding: 2.8rem 0 2rem; }
.pied a { color: var(--encre); }
.pied a:hover { color: var(--or-fonce); }
.pied .haut { display: block; border-bottom: 0; padding-bottom: 1rem; }
.pied-nom { font-size: 1.25rem; text-decoration: none; color: var(--nuit); }
.pied-coord { margin: .5rem 0 0; color: var(--gris); }
.pied ul { justify-content: center; gap: .5rem 3rem; }
.pied .bas { color: var(--gris); border-top: 0; }

/* Corrections accueil */
.hero .accroche { font-size: clamp(1.6rem, 4vw, 2.8rem); max-width: none; margin: 0 0 2rem; line-height: 1.2; }
.hero p:not(.accroche) { margin-inline: auto; margin-bottom: 1.2em; }
section.bloc.sable .carte { box-shadow: none; }
strong, b { font-weight: 400; color: var(--nuit); }

/* Secteur d'activité : texte simple, sans cases cliquables */
.secteur-zone { font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--encre); margin: 2.2rem 0 .4rem; }
.secteur-villes { font-size: clamp(1.05rem, 2.2vw, 1.5rem); color: var(--encre); margin: 0; }
