/* Rivage & Sel — compléments à la charte. Aucune couleur ni police nouvelles :
   tout est dérivé des variables de styles/brand.css. */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: var(--bg); padding: .75rem 1.25rem; border-radius: 12px;
}
.skip:focus { left: 1rem; top: 1rem; }

:root { --vignette: rgba(30, 42, 46, 0.06); }

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3);
  padding-block: .8rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; flex: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 14px;
  color: var(--accent); background: var(--surface);
  border: 1px solid var(--border); flex: none;
}
.brand__mark svg { width: 26px; height: 26px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.08rem; letter-spacing: -.01em;
}
.brand__txt em {
  font-style: normal; font-size: .72rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em; margin-top: .15rem;
}
.nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .35rem 1.35rem; margin-inline: auto; min-width: 0;
}
.nav a {
  font-size: .92rem; text-decoration: none; color: var(--muted);
  padding-block: .35rem; border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); border-bottom-color: var(--accent); }
.topbar__cta { display: flex; align-items: center; gap: .9rem; flex: none; }
.topbar__tel {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.topbar__tel .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.btn--sm { padding: .62rem 1.05rem; font-size: .88rem; border-radius: 14px; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  padding: 0; place-items: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); }
.mobilenav {
  border-top: 1px solid var(--border); background: var(--surface);
  display: flex; flex-direction: column; padding: var(--space-2) var(--space-3) var(--space-3);
}
.mobilenav a { padding: .7rem 0; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobilenav__tel { font-weight: 700; color: var(--accent); border: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: var(--space-4) var(--space-5); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% 40% 30% -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: .82fr 1.18fr;
  gap: var(--space-4); align-items: start;
}
.hero__media { margin: 0; position: relative; }
.hero__media img {
  width: 100%; height: clamp(320px, 58vh, 620px); object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border);
  filter: saturate(.94) contrast(1.02);
}
.hero__media figcaption {
  margin-top: .7rem; font-size: .78rem; color: var(--muted);
  letter-spacing: .02em; text-transform: uppercase;
}
.eyebrow {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); font-weight: 700; margin-bottom: var(--space-2);
}
.hero h1 { margin-bottom: var(--space-2); }
.hero__accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero__lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: var(--space-3); }
.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2); margin: 0; padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
.hero__facts dt {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .13em;
  color: var(--muted); margin-bottom: .35rem;
}
.hero__facts dd { margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.hero__facts a { text-decoration: none; color: var(--accent); }
.hero__rule {
  height: 3px; background: var(--accent); width: min(180px, 30%);
  margin: var(--space-4) auto 0; border-radius: 2px;
}

/* Le menu passe en version mobile dès que la barre manque de place,
   pour ne jamais déborder ni casser sur deux lignes. */
@media (max-width: 1024px) {
  .topbar__inner { flex-wrap: nowrap; }
  .nav { display: none; }
  .brand__txt em { display: none; }
  .topbar__tel { display: none; }
  .topbar__cta { margin-left: auto; }
  .burger { display: grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media img { height: 300px; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1025px) {
  .burger, .mobilenav { display: none; }
}

/* ---------- Blocs complémentaires ---------- */
.italic-accent { color: var(--accent); font-style: italic; font-weight: 400; }
.section--surface { background: var(--surface); border-block: 1px solid var(--border); }
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.section__head h2 { margin-bottom: 0; max-width: 22ch; }
.section__note { max-width: 38ch; margin: 0; font-size: .92rem; }
.link-arrow {
  font-weight: 600; font-size: .9rem; text-decoration: none;
  color: var(--accent); white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; }

/* Chiffres clés */
.band { background: var(--text); color: var(--bg); padding-block: var(--space-4); }
.band__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.band__item { display: flex; flex-direction: column; gap: .3rem; border-left: 1px solid rgba(243, 238, 230, .22); padding-left: var(--space-2); }
.band__value { font-family: var(--font-heading); font-size: var(--step-3); line-height: 1; font-weight: 600; }
.band__unit { font-size: .9rem; margin-left: .2rem; color: var(--bg); opacity: .7; }
.band__label { font-size: .84rem; color: rgba(243, 238, 230, .74); max-width: 18ch; line-height: 1.35; }

/* Méthode */
.method { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-5); align-items: start; }
.method__aside h2 { max-width: 16ch; }
.method__media { margin: var(--space-3) 0 0; }
.method__media img { width: 100%; height: 210px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); filter: saturate(.92); }
.method__media figcaption { margin-top: .55rem; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps__item {
  display: grid; grid-template-columns: 3.1rem 1fr; gap: var(--space-2);
  padding-block: var(--space-3); border-top: 1px solid var(--border);
}
.steps__item:first-child { border-top: 0; padding-top: 0; }
.steps__n {
  font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent);
  line-height: 1; font-weight: 500;
}
.steps__item h3 { font-size: var(--step-1); margin-bottom: .35rem; }
.steps__item p { margin: 0; font-size: .94rem; }

/* Cartes de biens */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; }
.card__media img { width: 100%; height: 214px; object-fit: cover; }
.card__tag {
  position: absolute; left: .8rem; bottom: .8rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: .28rem .7rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
}
.card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card__meta { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; }
.card__body h3 { font-size: var(--step-1); margin: 0; }
.card__desc { margin: 0; font-size: .9rem; flex: 1; }
.card__foot {
  display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline;
  border-top: 1px solid var(--border); padding-top: .8rem; margin-top: .4rem;
}
.card__price { font-family: var(--font-heading); font-size: 1.24rem; font-weight: 600; }
.card__specs { font-size: .8rem; color: var(--muted); }

/* Honoraires */
.fees { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.fees__row {
  display: grid; grid-template-columns: 1fr 190px; gap: var(--space-3);
  align-items: center; padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.fees__main h3 { font-size: var(--step-1); margin-bottom: .25rem; }
.fees__main p { margin: 0; font-size: .92rem; }
.fees__price { text-align: right; display: flex; flex-direction: column; gap: .1rem; }
.fees__price strong { font-family: var(--font-heading); font-size: 1.22rem; color: var(--accent); }
.fees__price span { font-size: .78rem; }

/* Quartiers */
.quartiers__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: center; }
.quartiers__grid h2 { max-width: 18ch; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 999px; padding: .5rem 1.05rem;
  font-size: .92rem; font-weight: 600;
}
.chips li:nth-child(3n + 1) { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--accent); }

/* Témoignages */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.quote {
  margin: 0; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-3);
  display: flex; flex-direction: column; gap: .6rem;
}
.quote blockquote {
  margin: 0; font-family: var(--font-heading); font-size: var(--step-1);
  line-height: 1.28; letter-spacing: -.01em;
}
.quote p { margin: 0; font-size: .92rem; flex: 1; }
.quote figcaption { display: flex; flex-direction: column; gap: .1rem; border-top: 1px solid var(--border); padding-top: .7rem; font-size: .84rem; }
.quote figcaption strong { font-size: .92rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-5); align-items: start; }
.faq__aside h2 { max-width: 16ch; }
.faq__list { display: grid; gap: .1rem; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); padding-block: .35rem; }
.faq__item summary {
  cursor: pointer; font-family: var(--font-heading); font-size: 1.06rem;
  padding-block: .75rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-family: var(--font-body); font-weight: 700; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 .8rem; font-size: .93rem; max-width: 60ch; }

/* Rendez-vous */
.rdv { background: var(--accent); color: var(--bg); padding-block: var(--space-5); }
.eyebrow--light { color: rgba(243, 238, 230, .78); }
.rdv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.rdv h2 { color: var(--bg); max-width: 16ch; }
.rdv__accent { font-style: italic; font-weight: 400; color: rgba(243, 238, 230, .8); }
.rdv__text p { color: rgba(243, 238, 230, .84); max-width: 44ch; }
.rdv__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-3) 0 0; border-top: 1px solid rgba(243, 238, 230, .28); padding-top: var(--space-2); }
.rdv__facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; color: rgba(243, 238, 230, .68); margin-bottom: .3rem; }
.rdv__facts dd { margin: 0; font-size: .9rem; font-weight: 600; }
.rdv__facts a { color: var(--bg); }
.rdv__form {
  background: var(--surface); color: var(--text);
  border-radius: var(--radius); padding: var(--space-3);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: .3rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: .68rem .8rem; width: 100%;
}
.field textarea { resize: vertical; }
.rdv__legal { margin: .1rem 0 0; font-size: .76rem; }

/* Footer */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding-block: var(--space-4); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-3); align-items: start; }
.footer__brand { font-family: var(--font-heading); font-size: 1.15rem; display: block; margin-bottom: .5rem; }
.footer p { font-size: .82rem; margin: 0; max-width: 44ch; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.footer__nav a { text-decoration: none; color: var(--muted); }
.footer__nav a:hover { color: var(--text); }
.footer__contact a { text-decoration: none; font-weight: 600; }
.footer__contact span { font-size: .82rem; }

@media (max-width: 900px) {
  .section { padding-block: var(--space-4); }
  .brand__txt strong { font-size: 1rem; }
  .btn--sm { padding: .55rem .85rem; font-size: .82rem; }
  .band__grid { grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-2); }
  .method, .quartiers__grid, .faq, .rdv__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .cards, .quotes { grid-template-columns: 1fr; }
  .fees__row { grid-template-columns: 1fr; gap: .5rem; }
  .fees__price { text-align: left; flex-direction: row; align-items: baseline; gap: .5rem; }
  .rdv__form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .rdv__facts { grid-template-columns: 1fr 1fr; }
}


/* ---------- Page catalogue ---------- */
.section--tight { padding-block: var(--space-3) var(--space-5); }
.page-head { padding-block: var(--space-4) var(--space-3); border-bottom: 1px solid var(--border); }
.page-head h1 { max-width: 24ch; }
.page-head__lede { font-size: var(--step-1); max-width: 56ch; margin: 0; line-height: 1.45; }

.filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--border);
}
.filters__group { display: flex; gap: .45rem; }
.chip {
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  padding: .55rem 1.05rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover { color: var(--text); }
.chip.is-active {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.filters__field { display: flex; flex-direction: column; gap: .3rem; }
.filters__field span {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700;
}
.filters__field select {
  font-family: var(--font-body); font-size: .92rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: .55rem .75rem; min-width: 11rem;
}
.filters__reset {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: .86rem; font-weight: 600;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
  padding-block: .7rem;
}
.filters__reset:hover { color: var(--text); }
.filters__count { font-size: .86rem; margin: var(--space-2) 0 var(--space-3); }

.listing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.listing__empty { border: 1px dashed var(--border); border-radius: var(--radius); padding: var(--space-3); font-size: .94rem; }
.card__more { border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .2rem; }
.card__more summary {
  cursor: pointer; font-size: .84rem; font-weight: 700;
  color: var(--accent); list-style: none;
}
.card__more summary::-webkit-details-marker { display: none; }
.card__more summary::before { content: "＋ "; }
.card__more[open] summary::before { content: "－ "; }
.card__more p { margin: .6rem 0 0; font-size: .88rem; line-height: 1.5; }
.card__contact { border-top: 1px solid var(--border); padding-top: .55rem; font-size: .84rem; }
.card__contact a { color: var(--accent); text-decoration: none; }
.rdv__form--static { gap: var(--space-2); }
.rdv__form--static p { margin: 0; font-size: .9rem; line-height: 1.5; }
.rdv__form--static .btn { justify-content: center; }

@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .filters__reset { margin-left: 0; }
  .filters__field, .filters__field select { width: 100%; }
}

/* ---------- Page contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--space-4); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.contact-list li { padding-block: var(--space-2); border-bottom: 1px solid var(--border); }
.contact-list__label {
  display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .13em; color: var(--accent); font-weight: 700; margin-bottom: .35rem;
}
.contact-list p { margin: 0; font-size: .95rem; line-height: 1.45; }
.contact-list p a { font-weight: 600; text-decoration: none; }
.contact-list p a:hover { text-decoration: underline; }
.contact-list__note { font-size: .82rem; margin-top: .25rem !important; }
.contact-figure { margin: var(--space-3) 0 0; }
.contact-figure img {
  width: 100%; height: 220px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--border); filter: saturate(.94);
}
.contact-figure figcaption {
  margin-top: .55rem; font-size: .76rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--space-3);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
  box-shadow: var(--shadow);
}
.contact-form__legal { font-size: .76rem; margin: 0; }

.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.agent {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--space-3); display: flex; flex-direction: column; gap: .35rem;
}
.agent__initials {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: .4rem;
  border-radius: 14px; background: var(--accent); color: var(--bg);
  font-family: var(--font-heading); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
}
.agent h3 { font-size: var(--step-1); margin: 0; }
.agent p { margin: 0; font-size: .88rem; flex: 1; }
.agent__links {
  display: flex; flex-direction: column; gap: .2rem;
  border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .5rem;
  font-size: .86rem;
}
.agent__links a { text-decoration: none; color: var(--accent); font-weight: 600; }
.agent__links a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .contact-grid, .agents { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}
