/* =========================================================================
   Juvaimmo — feuille de style du site public
   Charte : terre cuite, bois clair, lin. Fraunces (titres) + Inter (texte).
   ========================================================================= */

/* ------------------------------------------------------------------ polices */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2-variations');
  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: 'InterVar';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2-variations');
  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;
}
@font-face {
  font-family: 'InterVar';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2-variations');
  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;
}

/* ------------------------------------------------------------------ jetons */

:root {
  /* couleurs */
  --lin: #fbf7f2;
  --sable: #f4ede4;
  --sable-fonce: #e9dccb;
  --blanc: #ffffff;
  --encre: #2a211c;
  --encre-2: #6b5d53;
  --encre-3: #96877a;
  --terre: #a8482a;
  --terre-fonce: #8b3a21;
  --terre-claire: #f6e4dc;
  --foret: #3e4a3a;
  --foret-claire: #e8ece5;
  --laiton: #a9803f;
  --ligne: #e5dacb;
  --ligne-forte: #d6c6b1;

  /* typographie */
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'InterVar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;

  /* mesures */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
  --largeur: 1220px;

  --ombre-1: 0 1px 2px rgba(42, 33, 28, 0.04), 0 4px 14px rgba(42, 33, 28, 0.05);
  --ombre-2: 0 2px 6px rgba(42, 33, 28, 0.06), 0 18px 40px rgba(42, 33, 28, 0.09);
  --ombre-3: 0 30px 70px rgba(42, 33, 28, 0.18);

  --transition: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- réinit */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--lin);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--terre);
  text-decoration-color: color-mix(in srgb, var(--terre) 35%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--terre-fonce);
  text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 40;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

hr {
  border: 0;
  border-top: 1px solid var(--ligne);
  margin: 3rem 0;
}

::selection {
  background: var(--terre-claire);
  color: var(--terre-fonce);
}

:focus-visible {
  outline: 2px solid var(--terre);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--encre);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
}
.saut-contenu:focus {
  left: 0;
}

.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;
}

/* ----------------------------------------------------------- structure */

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.conteneur--etroit { max-width: 780px; }
.conteneur--moyen { max-width: 980px; }

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.section--serre { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--sable { background: var(--sable); }
.section--encre { background: var(--encre); color: var(--lin); }
.section--encre h2,
.section--encre h3 { color: var(--lin); }

.entete-section {
  max-width: 660px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.entete-section--centre {
  margin-inline: auto;
  text-align: center;
}

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terre);
  margin: 0 0 1rem;
}
.surtitre::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
}
.entete-section--centre .surtitre::after {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
}
.section--encre .surtitre { color: #dfa78d; }

.chapeau {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--encre-2);
  line-height: 1.75;
  max-width: 62ch;
}
.section--encre .chapeau { color: #c8bbaf; }

.grille {
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 2rem);
}
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ----------------------------------------------------------- boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primaire {
  background: var(--terre);
  color: #fff;
}
.btn--primaire:hover {
  background: var(--terre-fonce);
  color: #fff;
}

.btn--secondaire {
  background: transparent;
  color: var(--encre);
  border-color: var(--ligne-forte);
}
.btn--secondaire:hover {
  background: var(--blanc);
  border-color: var(--encre);
  color: var(--encre);
}

.btn--clair {
  background: var(--lin);
  color: var(--encre);
}
.btn--clair:hover { background: #fff; color: var(--encre); }

.btn--fantome {
  background: transparent;
  color: var(--lin);
  border-color: rgba(251, 247, 242, 0.35);
}
.btn--fantome:hover {
  background: rgba(251, 247, 242, 0.12);
  color: #fff;
  border-color: rgba(251, 247, 242, 0.6);
}

.btn--bloc { width: 100%; }

/* sur petit écran, un libellé long doit pouvoir passer à la ligne
   plutôt que de faire déborder la page */
@media (max-width: 560px) {
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }
}
.btn--petit { padding: 0.65rem 1.15rem; min-height: 40px; font-size: 0.875rem; }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.lien-fleche svg { transition: transform var(--transition); }
.lien-fleche:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------- en-tête */

.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--lin) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition);
}
.entete.est-collee {
  border-bottom-color: var(--ligne);
  box-shadow: 0 6px 24px rgba(42, 33, 28, 0.05);
}

.entete__interieur {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}

.entete__logo img { height: 42px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-full);
  color: var(--encre);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav a:hover { background: var(--sable); }
.nav a[aria-current='page'] {
  color: var(--terre);
  background: var(--terre-claire);
}

.entete__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.entete__tel {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--encre);
  text-decoration: none;
}
.entete__tel:hover { color: var(--terre); }

@media (min-width: 961px) {
  .nav .btn { display: none; }
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-full);
  cursor: pointer;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--encre);
  position: relative;
  transition: var(--transition);
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--encre);
  transition: var(--transition);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded='true'] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: flex; }
  .entete__actions { display: none; }
  .nav {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--lin);
    border-bottom: 1px solid var(--ligne);
    padding: 1rem var(--gouttiere) 2rem;
    box-shadow: var(--ombre-2);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }
  .nav.est-ouvert {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: 0.9rem 0.5rem;
    border-radius: var(--r-sm);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--ligne);
  }
  .nav .btn {
    margin-top: 1rem;
    border-bottom: 0;
  }
}

/* -------------------------------------------------------------- héros */

.heros {
  position: relative;
  isolation: isolate;
  color: var(--lin);
  min-height: min(78vh, 660px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}
.heros__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.heros__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.heros::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(28, 21, 17, 0.72) 0%, rgba(28, 21, 17, 0.35) 55%, rgba(28, 21, 17, 0.1) 100%),
    linear-gradient(180deg, rgba(28, 21, 17, 0.5) 0%, rgba(28, 21, 17, 0.28) 45%, rgba(28, 21, 17, 0.85) 100%);
}
.heros__contenu { max-width: 720px; }
.heros h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 1rem;
}
.heros__accroche {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin-bottom: 2rem;
}
.heros__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.heros__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(251, 247, 242, 0.14);
  border: 1px solid rgba(251, 247, 242, 0.28);
  color: #fff;
  border-radius: var(--r-full);
  padding: 0.42rem 1rem 0.42rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}
.heros__badge b {
  background: var(--terre);
  color: #fff;
  border-radius: var(--r-full);
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
}

/* bandeau de chiffres sous le héros */
.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--ligne);
}
.chiffres__item {
  padding: clamp(1.5rem, 3vw, 2.4rem) 1.25rem;
  border-right: 1px solid var(--ligne);
  text-align: center;
}
.chiffres__item:last-child { border-right: 0; }
.chiffres__valeur {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 40;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--terre);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.chiffres__libelle {
  font-size: 0.83rem;
  color: var(--encre-2);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------- barre de recherche */

.recherche {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  box-shadow: var(--ombre-1);
  padding: 1.1rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
}
.recherche--flottante {
  margin-top: -3.25rem;
  position: relative;
  z-index: 5;
  box-shadow: var(--ombre-2);
}
.recherche .champ { margin: 0; }
.recherche .btn { min-height: 46px; }

/* --------------------------------------------------------- formulaires */

.champ { margin-bottom: 1.15rem; }
.champ > label,
.legende {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--encre);
  margin-bottom: 0.4rem;
}
.champ__aide {
  display: block;
  font-size: 0.8rem;
  color: var(--encre-3);
  font-weight: 400;
  margin-top: 0.3rem;
}
.requis { color: var(--terre); }

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='date'],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--encre);
  background: var(--blanc);
  border: 1px solid var(--ligne-forte);
  border-radius: var(--r-sm);
  padding: 0.72rem 0.9rem;
  min-height: 46px;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.65; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%236B5D53' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--terre);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--terre) 16%, transparent);
}

input::placeholder,
textarea::placeholder { color: var(--encre-3); }

.champ--erreur input,
.champ--erreur select,
.champ--erreur textarea {
  border-color: #b3261e;
  background: #fdf5f4;
}
.erreur-champ {
  display: block;
  color: #97231c;
  font-size: 0.82rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.case {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--encre-2);
  line-height: 1.55;
  cursor: pointer;
}
.case input[type='checkbox'] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--terre);
  flex: none;
  padding: 0;
}

.pot-de-miel {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.5rem;
}

/* ----------------------------------------------------------- messages */

.alerte {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--r-sm);
  border: 1px solid;
  font-size: 0.93rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.alerte svg { flex: none; margin-top: 2px; }
.alerte--success { background: #edf6ee; border-color: #bcd9bf; color: #23492a; }
.alerte--error { background: #fdf1f0; border-color: #eabab5; color: #8c2019; }
.alerte--warning { background: #fdf5e8; border-color: #e8d3a6; color: #7a5514; }
.alerte--info { background: var(--terre-claire); border-color: #e6c3b4; color: var(--terre-fonce); }

/* ------------------------------------------------------- carte de bien */

.carte-bien {
  display: flex;
  flex-direction: column;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  height: 100%;
}
.carte-bien:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-2);
  border-color: var(--ligne-forte);
}
.carte-bien__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--sable);
  overflow: hidden;
}
.carte-bien__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.carte-bien:hover .carte-bien__media img { transform: scale(1.045); }

.etiquettes {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.etiquette {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.94);
  color: var(--encre);
  backdrop-filter: blur(4px);
}
.etiquette--terre { background: var(--terre); color: #fff; }
.etiquette--foret { background: var(--foret); color: #fff; }
.etiquette--sourd { background: rgba(42, 33, 28, 0.82); color: #fff; }

.compteur-photos {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(30, 23, 19, 0.6);
  border-radius: var(--r-full);
  padding: 0.28rem 0.65rem;
  backdrop-filter: blur(4px);
}

.carte-bien__corps {
  padding: 1.3rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.carte-bien__lieu {
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 0.45rem;
}
.carte-bien__titre {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 40;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}
.carte-bien__titre a {
  color: var(--encre);
  text-decoration: none;
}
.carte-bien__titre a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.carte-bien { position: relative; }
.carte-bien__titre a:hover { color: var(--terre); }

.carte-bien__resume {
  font-size: 0.9rem;
  color: var(--encre-2);
  margin: 0 0 1.1rem;
  line-height: 1.6;
}

.caracteristiques {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
  font-size: 0.86rem;
  color: var(--encre-2);
}
.caracteristiques li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.caracteristiques svg { color: var(--encre-3); flex: none; }

.carte-bien__pied {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ligne);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.prix {
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 40;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--terre);
  letter-spacing: -0.01em;
}
.prix--petit { font-size: 1.05rem; }
.reference {
  font-size: 0.78rem;
  color: var(--encre-3);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------- pagination */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--ligne);
  background: var(--blanc);
  color: var(--encre);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--encre); }
.pagination .est-actif {
  background: var(--terre);
  border-color: var(--terre);
  color: #fff;
  font-weight: 600;
}
.pagination .est-inactif { opacity: 0.4; pointer-events: none; }

/* ------------------------------------------------------- fiche du bien */

.fiche-entete {
  padding-block: clamp(1.75rem, 3vw, 2.5rem) 0;
}
.fil-ariane {
  font-size: 0.83rem;
  color: var(--encre-3);
  margin-bottom: 1.25rem;
}
.fil-ariane a { color: var(--encre-2); text-decoration: none; }
.fil-ariane a:hover { color: var(--terre); }
.fil-ariane span { margin-inline: 0.45rem; }

.fiche-titre {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.fiche-titre h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  margin: 0.35rem 0 0.5rem;
}
.fiche-titre__lieu {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--encre-2);
  font-size: 0.98rem;
}
.fiche-titre__prix { text-align: right; }
.fiche-titre__prix .prix { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.fiche-titre__prix small {
  display: block;
  color: var(--encre-3);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

/* galerie */
.galerie {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.galerie__principale,
.galerie__vignette {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--sable);
  cursor: zoom-in;
  overflow: hidden;
  display: block;
  width: 100%;
}
.galerie__principale { aspect-ratio: 3 / 2; }
.galerie__cote {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.galerie__vignette { aspect-ratio: 3 / 2; height: 100%; }
.galerie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease, filter var(--transition);
}
.galerie button:hover img { transform: scale(1.03); }
.galerie__plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background: rgba(30, 23, 19, 0.55);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(2px);
}
@media (max-width: 720px) {
  .galerie { grid-template-columns: 1fr; }
  .galerie__cote { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}

/* visionneuse */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(24, 18, 15, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.visionneuse[open],
.visionneuse.est-ouverte { display: flex; }
.visionneuse img {
  max-width: min(1200px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-sm);
}
.visionneuse__fermer,
.visionneuse__nav {
  position: absolute;
  background: rgba(251, 247, 242, 0.12);
  border: 1px solid rgba(251, 247, 242, 0.25);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.visionneuse__fermer:hover,
.visionneuse__nav:hover { background: rgba(251, 247, 242, 0.25); }
.visionneuse__fermer { top: 1.5rem; right: 1.5rem; }
.visionneuse__nav--prec { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.visionneuse__nav--suiv { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.visionneuse__compteur {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}
.visionneuse__legende {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.92rem;
  max-width: 60ch;
  text-align: center;
}

/* corps de la fiche */
.fiche-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 980px) {
  .fiche-grille { grid-template-columns: 1fr; }
}

.bloc {
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}
.bloc h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin-bottom: 1.1rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  overflow: hidden;
}
.specs > div {
  background: var(--blanc);
  padding: 1.05rem 1.15rem;
}
.specs dt {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.specs dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--encre);
}

.liste-atouts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem 1.5rem;
}
.liste-atouts li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--encre-2);
}
.liste-atouts svg { color: var(--terre); flex: none; margin-top: 3px; }

.cadre-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--encre);
  margin-bottom: 1rem;
}
.cadre-video iframe,
.cadre-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* panneau latéral */
.panneau {
  position: sticky;
  top: 100px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--ombre-1);
}
.panneau h2 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.panneau__intro {
  font-size: 0.9rem;
  color: var(--encre-2);
  margin-bottom: 1.35rem;
}
.conseiller {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  background: var(--sable);
  border-radius: var(--r-sm);
  margin-bottom: 1.35rem;
}
.conseiller .monogramme--mini {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
  color: var(--lin); /* le sélecteur .conseiller span l'emporterait sinon */
}
.conseiller strong { display: block; font-size: 0.95rem; }
.conseiller span { font-size: 0.82rem; color: var(--encre-2); }

/* ------------------------------------------------------------ contenus */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.duo__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--ombre-2);
}
.duo__media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: auto; }
.duo--inverse .duo__media { order: 2; }
@media (max-width: 760px) {
  .duo--inverse .duo__media { order: 0; }
}

.carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: 1.85rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte--survol:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-2);
}
.carte h3 { margin-bottom: 0.55rem; }
.carte p { color: var(--encre-2); font-size: 0.95rem; margin-bottom: 0; }

.pastille {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--terre-claire);
  color: var(--terre);
  display: grid;
  place-content: center;
  margin-bottom: 1.1rem;
}
.pastille--foret { background: var(--foret-claire); color: var(--foret); }

.etapes {
  counter-reset: etape;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.75rem;
}
.etapes li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.etapes li::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 40;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--terre);
  background: var(--terre-claire);
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  display: grid;
  place-content: center;
}
.etapes h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.etapes p { color: var(--encre-2); font-size: 0.95rem; margin: 0; }

/* témoignages */
.avis {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: 1.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.avis blockquote {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 40;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--encre);
  flex: 1;
}
.avis__auteur { display: flex; align-items: center; gap: 0.85rem; }
.avis__initiales {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--terre-claire);
  color: var(--terre-fonce);
  display: grid;
  place-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex: none;
}
.avis__auteur strong { display: block; font-size: 0.92rem; }
.avis__auteur span { font-size: 0.82rem; color: var(--encre-3); }
.etoiles { color: var(--laiton); display: flex; gap: 2px; margin-bottom: 1rem; }

/* équipe : une personne mise en avant, une seconde en appui */
.equipe {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
@media (max-width: 860px) {
  .equipe { grid-template-columns: 1fr; }
}

.equipe__principal {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--ombre-1);
}
@media (max-width: 560px) {
  .equipe__principal { grid-template-columns: 1fr; }
}
.equipe__principal h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 1rem;
}
.equipe__principal p { color: var(--encre-2); font-size: 0.97rem; }

.equipe__second {
  background: var(--sable);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  height: 100%;
}
.equipe__second h3 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.equipe__second p { color: var(--encre-2); font-size: 0.92rem; margin: 0; }

.equipe__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terre);
  margin: 0 0 0.4rem;
}

.equipe__contact {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  font-size: 0.95rem;
}
.equipe__contact li { display: inline-flex; align-items: center; gap: 0.5rem; }
.equipe__contact svg { color: var(--terre); flex: none; }
.equipe__contact a { color: var(--encre); text-decoration: none; font-weight: 500; }
.equipe__contact a:hover { color: var(--terre); }

/* monogramme : à remplacer par une photo dès que vous en avez une */
.monogramme {
  width: 132px;
  height: 132px;
  border-radius: var(--r-full);
  background: var(--terre);
  color: var(--lin);
  display: grid;
  place-content: center;
  font-family: var(--serif);
  font-variation-settings: 'SOFT' 40;
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}
.monogramme--petit {
  width: 62px;
  height: 62px;
  font-size: 1.6rem;
  background: var(--foret);
  margin-bottom: 1.1rem;
}
.monogramme--mini {
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  flex: none;
}

/* appel à l'action */
.appel {
  position: relative;
  isolation: isolate;
  color: var(--lin);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.appel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.appel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(42, 33, 28, 0.82), rgba(122, 52, 30, 0.6));
}
.appel h2 { color: #fff; }
.appel p { color: rgba(255, 255, 255, 0.86); max-width: 56ch; margin-inline: auto; }
.appel__actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* bloc contact */
.coordonnees {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.35rem;
}
.coordonnees li { display: flex; gap: 0.95rem; align-items: flex-start; }
.coordonnees svg { color: var(--terre); flex: none; margin-top: 3px; }
.coordonnees strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.coordonnees a { color: var(--encre); text-decoration: none; }
.coordonnees a:hover { color: var(--terre); }

/* prose (mentions légales…) */
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.15rem; }
.prose p,
.prose li { color: var(--encre-2); }
.prose li { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------- pied */

.pied {
  background: var(--encre);
  color: #c8bbaf;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.93rem;
}
.pied a { color: #e4d8cc; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(251, 247, 242, 0.13);
}
@media (max-width: 900px) {
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .pied__grille { grid-template-columns: 1fr; }
}
.pied__logo img { height: 46px; margin-bottom: 1.25rem; }
.pied h3 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
  font-weight: 600;
}
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.pied__bas {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9c8d80;
}
.pied__reseaux { display: flex; gap: 0.65rem; }
.pied__reseaux a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(251, 247, 242, 0.18);
  border-radius: var(--r-full);
  display: grid;
  place-content: center;
  transition: var(--transition);
}
.pied__reseaux a:hover {
  background: var(--terre);
  border-color: var(--terre);
}

/* ------------------------------------------------------------ divers */

.vide {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  border: 1px dashed var(--ligne-forte);
  border-radius: var(--r-md);
  background: var(--blanc);
}
.vide h3 { margin-bottom: 0.5rem; }
.vide p { color: var(--encre-2); }

.marqueur {
  background: linear-gradient(180deg, transparent 62%, var(--terre-claire) 62%);
  padding-inline: 0.1em;
}

/* Sans JavaScript, le contenu reste visible : l'opacité n'est retirée que si
   le script d'amorçage a pu ajouter la classe « js » sur <html>. */
.js .apparait {
  opacity: 0;
  transform: translateY(18px);
}
.js .apparait.est-visible {
  opacity: 1;
  transform: none;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .apparait { opacity: 1; transform: none; }
}

@media print {
  .entete, .pied, .panneau, .btn, .visionneuse { display: none !important; }
  body { background: #fff; }
}
