/* ════════════════════════════════════════════════════════════════
   M Conciergerie · socle commun « Direction B » (novembre 2026)
   Chargé par toutes les pages : police, couleurs, titres en deux
   graisses, boutons, verre dépoli, en-tête, pied de page, barre de
   contact mobile, apparition des blocs.
   La page d'accueil ajoute page-accueil.css, les autres pages pages.css.
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Josefin M';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('/fonts/josefin-sans-latin.woff2') format('woff2');
}

:root {
  --ground: #EFEBE4; --ground-2: #E9E4DC; --paper: #FAF8F4; --cream: #FBF8F3;
  --ink: #1A1612; --ink-2: #33271D; --ink-3: #4A3B2E; --muted: #5A4A3C;
  --terra: #A0441A; --terra-d: #8A3A15;
  --line: rgba(26, 22, 18, .18);
  --a1: #EDB48E; --a2: #BFD3A6; --a3: #A9D0D6; --a4: #EFD58C;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --font: 'Josefin M', 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-weight: 300; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: var(--terra-d); text-underline-offset: 4px; }
a:hover { color: #5C1C04; }
button { font: inherit; color: inherit; cursor: pointer; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--terra-d); outline-offset: 3px; }
[id] { scroll-margin-top: 92px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); }
.skip:focus { left: 8px; color: var(--cream); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.wrap-wide { max-width: 1320px; }
.sec { padding-top: 120px; padding-bottom: 120px; }
.bg, .bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg img { object-fit: cover; }

/* Titres en deux graisses */
.h2 { text-transform: uppercase; line-height: 1; font-weight: 200; }
.h-thin { display: block; font-weight: 200; }
.h-heavy { display: block; font-weight: 700; letter-spacing: -.02em; }
.h2 .h-thin, .h2 .h-heavy { font-size: clamp(32px, 4.4vw, 64px); }
.h-kicker { display: block; margin-bottom: 20px; font-size: 13px; font-weight: 400; letter-spacing: .22em; line-height: 1.4; }
.eyebrow { font-size: 13px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow-h { font-size: 13px; font-weight: 600; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; color: var(--ink-3); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 3px 26px 0; border: 0; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.btn svg { flex: none; margin-top: -3px; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3A2A1E; color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #FFFFFF; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(26, 22, 18, .22); }
.btn-ghost:hover { background: rgba(26, 22, 18, .08); color: var(--ink); }
.btn-terra { background: var(--terra); color: #FFFFFF; }
.btn-terra:hover { background: #7A2608; color: #FFFFFF; }
.btn-row { justify-content: space-between; }

.glass { background: rgba(251, 248, 243, .76); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 24px 60px -28px rgba(26, 13, 5, .6); }

/* ───────────── En-tête ───────────── */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 22px 40px; transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease; }
.brand { color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: .42em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; padding-top: 3px; transition: color .35s ease; }
.brand:hover { color: #FFFFFF; }
.top-links { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(251, 248, 243, .72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 18px 40px -22px rgba(26, 13, 5, .5); font-size: 13px; font-weight: 400; letter-spacing: .08em; transition: background-color .35s ease, box-shadow .35s ease; }
.top-links a { padding: 14px 20px 11px; border-radius: 999px; color: var(--ink); text-decoration: none; line-height: 1; transition: background-color .25s ease; }
.top-links a:hover, .top-links a[aria-current] { background: #FFFFFF; color: var(--ink); }
/* pages sans photo derrière l'en-tête (articles, pages légales) : nom et bouton en encre */
.top-plain .brand, .top-plain .brand:hover { color: var(--ink); }
.top-plain .top-links { background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.top-plain .top-cta { background: var(--ink); color: var(--cream); }
.top-plain .top-cta:hover { background: #3A2A1E; color: var(--cream); }
@media (min-width: 821px) {
  .top.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(239, 235, 228, .84); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 1px 0 rgba(26, 22, 18, .08); }
  .top.is-scrolled .brand { color: var(--ink); }
  .top.is-scrolled .top-links { background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .top.is-scrolled .top-cta { background: var(--ink); color: var(--cream); }
  .top.is-scrolled .top-cta:hover { background: #3A2A1E; }
}

/* ───────────── Pied de page ───────────── */
.foot { background: var(--ink); color: var(--ground); font-size: 14.5px; font-weight: 400; }
.foot .wrap { padding-top: 88px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 64px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 48px 56px; }
.foot-about { flex: 1.3 1 250px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-brand { font-weight: 600; font-size: 15px; letter-spacing: .42em; text-transform: uppercase; }
.foot-about p { max-width: 290px; margin-bottom: 6px; color: #CFC5B8; }
.foot-nav { min-width: 0; }
.foot-nav-services { flex: 2 1 340px; }
.foot-nav-zones { flex: 1 1 170px; }
.foot-nav-res { flex: 1 1 220px; }
.foot-h { margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #F5C89A; }
.foot-nav-services ul { columns: 2 150px; column-gap: 32px; }
.foot-nav li { break-inside: avoid; }
.foot a { color: var(--ground); text-decoration: none; opacity: .86; transition: opacity .2s ease, color .2s ease; }
.foot a:hover { opacity: 1; color: #F5C89A; }
.foot-nav a { display: block; padding: 6px 0; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(239, 235, 228, .16); font-size: 13.5px; color: #CFC5B8; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ───────────── Barre de contact (mobile) ───────────── */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 40; display: none; align-items: center; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(26, 22, 18, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); white-space: nowrap; transform: translate(-50%, 150%); transition: transform .45s var(--ease); }
.dock a { padding: 15px 16px 11px; border-radius: 999px; color: var(--cream); text-decoration: none; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.dock a:first-child { background: var(--cream); color: var(--ink); }
.dock.is-visible { transform: translate(-50%, 0); }

/* ───────────── Apparition au défilement ───────────── */
.js-rv [data-rv] { opacity: 0; transform: translate3d(0, 22px, 0); }
.js-rv [data-rv].in { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }

/* ───────────── Écrans moyens et mobiles ───────────── */
@media (min-width: 821px) and (max-width: 1020px) {
  .top { padding-left: 24px; padding-right: 24px; gap: 14px; }
  .brand { font-size: 14px; letter-spacing: .3em; }
  .top-links a { padding-left: 14px; padding-right: 14px; }
  .top-cta { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 820px) {
  [id] { scroll-margin-top: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .sec { padding-top: 80px; padding-bottom: 80px; }
  .btn { white-space: normal; text-align: center; line-height: 1.35; padding-top: 12px; padding-bottom: 9px; }
  .top { position: absolute; flex-wrap: wrap; padding: 16px 20px; }
  .brand { font-size: 13px; letter-spacing: .32em; }
  .top-cta { min-height: 42px; padding: 2px 16px 0; font-size: 11px; letter-spacing: .12em; }
  .top-links { order: 3; width: 100%; justify-content: space-between; font-size: 12.5px; letter-spacing: .04em; }
  .top-links a { padding: 13px 12px 10px; }
  .foot .wrap { padding-top: 64px; padding-bottom: 96px; gap: 48px; }
  .dock { display: flex; }
}
@media (max-width: 560px) {
  /* le bouton du haut laisse la place au nom : « Estimer ma villa » reste dans la barre flottante */
  .top-cta { display: none; }
  .top { justify-content: center; }
}
@media (max-width: 420px) {
  .top-links a { padding-left: 9px; padding-right: 9px; }
}

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