/* Sorlinaz Immobilier — agence de transaction FICTIVE, site de démonstration réalisé par Alopeak (07/10/2026).
   Polices servies par le site (CSP font-src 'self'), aucun script en ligne, aucun style en ligne, aucun cookie. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(fonts/fraunces-latin.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/manrope-latin.woff2) format("woff2"); }

:root {
  --nuit: #13201B; --pin: #1E3129; --creme: #F4EEE3; --papier: #FBF8F2; --encre: #1B2420; --gris: #56605A;
  --trait: #DDD5C6; --laiton: #C49A5B; --laiton-fonce: #7E5A26; --blanc: #fff;
  --f-titre: "Fraunces", Georgia, serif; --f-texte: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(16px, 5vw, 64px); --large: 1240px; --rayon: 14px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--f-texte); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
.bien__photo picture, .duo__photo picture, .galerie__defile picture { height: 100%; }
.pied .marque__signe rect { fill: #2A4237; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 84px); }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 22px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--laiton); outline-offset: 3px; }
.wrap { width: min(var(--large), 100% - 2 * var(--marge)); margin-inline: auto; }
.surtitre { display: block; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton-fonce); margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Bandeau de démonstration (dans le flux, en haut : il ne couvre jamais le contenu) */
.demo-bandeau { background: var(--nuit); color: #E9E2D3; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; padding: 8px 16px; position: relative; z-index: 30; }
.demo-bandeau a { color: var(--laiton); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; font: 700 15px/1 var(--f-texte); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s; }
.btn--plein { background: var(--laiton); color: var(--nuit); }
.btn--plein:hover { background: #D6AE72; }
.btn--clair { background: rgb(255 255 255 / .12); color: var(--blanc); border-color: rgb(255 255 255 / .7); backdrop-filter: blur(6px); }
.btn--clair:hover { background: var(--blanc); color: var(--nuit); }
.btn--sombre { background: var(--nuit); color: var(--blanc); }
.btn--sombre:hover { background: var(--pin); }
.btn--contour { border-color: var(--encre); color: var(--encre); background: none; }
.btn--contour:hover { background: var(--encre); color: var(--blanc); }
.btn svg { flex: none; }

/* En-tête */
.entete { position: relative; z-index: 20; background: var(--papier); border-bottom: 1px solid var(--trait); }
.entete--sur-photo { position: absolute; left: 0; right: 0; background: none; border-bottom: 0; color: var(--blanc); }
.entete .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.marque { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--f-titre); font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.marque small { display: block; font-family: var(--f-texte); font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; opacity: .8; }
.marque__signe { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--laiton); }
.nav .btn { min-height: 44px; padding: 0 20px; }
.burger { display: none; }
.entete__tel { display: none; }
.barre-tel { display: none; }
#visite { scroll-margin-top: 16px; }
.contact-form { margin-top: 28px; max-width: 560px; }
.formulaire [data-demo-form] { display: grid; gap: 16px; }
.formulaire h2 { font-size: clamp(26px, 2.4vw, 32px); margin: 0; }
@media (max-width: 899px) {
  .entete__tel { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-left: auto; border-radius: 50%; background: var(--laiton); color: var(--nuit); }
  .barre-tel { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px var(--marge) calc(10px + env(safe-area-inset-bottom)); background: rgb(251 248 242 / .96); box-shadow: 0 -10px 30px rgb(0 0 0 / .12); }
  .barre-tel .btn { min-height: 48px; padding: 0 12px; }
  body:has(.barre-tel) .pied { padding-bottom: 110px; }
  .burger { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
  .burger span { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--papier); color: var(--encre); padding: 8px var(--marge) 20px; box-shadow: 0 18px 30px rgb(0 0 0 / .14); }
  .nav.est-ouvert { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--trait); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
}

/* Accueil : premier écran */
.heros { position: relative; min-height: min(100svh, 980px); display: grid; align-items: end; color: var(--blanc); overflow: hidden; background: var(--nuit); }
.heros__photo, .heros__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.heros__photo img { object-fit: cover; object-position: 50% 45%; animation: approche 18s ease-out both; }
@keyframes approche { from { transform: scale(1.08); } to { transform: scale(1); } }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 18 15 / .55) 0%, rgb(10 18 15 / 0) 26%, rgb(10 18 15 / 0) 45%, rgb(10 18 15 / .78) 100%); }
.heros__texte { position: relative; z-index: 1; padding-block: 140px clamp(48px, 9vh, 96px); display: grid; gap: 22px; }
.heros__texte .surtitre { color: #F6E2BF; margin: 0; text-shadow: 0 1px 14px rgb(0 0 0 / .55); }
.heros h1 { max-width: 14ch; text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.heros__chapeau { font-size: clamp(17px, 1.6vw, 20px); max-width: 44ch; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Sections */
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--creme { background: var(--creme); }
.section--nuit { background: var(--nuit); color: #ECE6DA; }
.section__tete { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__tete p { max-width: 46ch; color: var(--gris); }
.lien-fleche { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--laiton); padding-bottom: 3px; white-space: nowrap; }

/* Cartes de biens */
.grille-biens { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.bien { display: flex; flex-direction: column; background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: 0 1px 0 var(--trait), 0 18px 40px -28px rgb(19 32 27 / .45); transition: transform .35s, box-shadow .35s; }
.bien:has(a):hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--trait), 0 28px 50px -30px rgb(19 32 27 / .55); }
.bien[hidden] { display: none; }
.bien__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--creme); }
.bien__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bien:has(a):hover .bien__photo img { transform: scale(1.04); }
.bien__type { position: absolute; left: 14px; top: 14px; background: rgb(251 248 242 / .94); color: var(--encre); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.bien__corps { display: grid; gap: 8px; padding: 20px 22px 22px; align-content: start; flex: 1; grid-template-rows: auto auto auto 1fr; }
.bien__bas { align-self: end; }
.bien__lieu { font-size: 15px; color: var(--gris); }
.bien__titre { font-family: var(--f-titre); font-size: 23px; line-height: 1.2; font-weight: 500; }
.bien__titre a { text-decoration: none; }
.bien__titre a::after { content: ""; position: absolute; inset: 0; }
.bien { position: relative; }
.bien__infos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; color: var(--gris); }
.bien__bas { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--trait); }
.bien__prix { font-family: var(--f-titre); font-size: 26px; font-weight: 600; }
.bien__fictif { font-size: 13px; color: var(--gris); }
.dpe { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 6px; font-size: 13px; font-weight: 800; color: #fff; }
.dpe--A { background: #00845A; } .dpe--B { background: #2E8B3A; } .dpe--C { background: #5E9E2F; }
.dpe--D { background: #E8D21A; color: #1B2420; } .dpe--E { background: #E9A91B; color: #1B2420; }
.dpe--F { background: #D9661E; } .dpe--G { background: #C21F1F; }

/* Filtres de « Nos biens » */
.filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filtres button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--trait); background: var(--blanc); color: var(--encre); font: 600 15px/1 var(--f-texte); cursor: pointer; }
.filtres button[aria-pressed="true"] { background: var(--nuit); border-color: var(--nuit); color: var(--blanc); }
.compte { color: var(--gris); font-size: 15px; margin-bottom: 18px; }

/* Bloc photo + texte */
.duo { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.duo--inverse > :first-child { order: 2; }
.duo__photo { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; }
.duo__photo img { width: 100%; height: 100%; object-fit: cover; }
.duo__texte { display: grid; gap: 20px; justify-items: start; }
.duo__texte p { color: var(--gris); max-width: 46ch; }
.section--nuit .duo__texte p { color: #C9C3B6; }
.section--nuit .surtitre { color: var(--laiton); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: etape; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.etapes li::before { content: counter(etape); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--laiton); font-family: var(--f-titre); font-weight: 600; color: var(--laiton-fonce); }
.section--nuit .etapes li::before { color: var(--laiton); }
.etapes b { display: block; }
.secteurs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.secteurs li { padding: 9px 16px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--trait); font-size: 15px; font-weight: 600; }

/* Bandeau « joignable à toute heure » */
.joignable { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: center; }
.joignable h2 { max-width: 18ch; color: var(--blanc); }
.joignable p { color: #C9C3B6; max-width: 52ch; margin-top: 16px; }
.joignable__note { font-size: 15px; color: #C9C3B6; margin-top: 10px; }
.joignable__note a { color: var(--laiton); }
.joignable__droite { display: grid; gap: 4px; justify-items: start; }
.joignable__tel { font-family: var(--f-titre); font-size: clamp(28px, 3.4vw, 44px); color: var(--laiton); text-decoration: none; white-space: nowrap; }

/* Page intérieure : titre */
.page-tete { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 48px); }
.page-tete + .section { padding-top: clamp(32px, 4vw, 56px); }
.page-tete p { color: var(--gris); max-width: 52ch; margin-top: 18px; font-size: 18px; }
.fil-ariane { font-size: 14px; color: var(--gris); margin-bottom: 20px; }
.fil-ariane a { color: var(--gris); }

/* Fiche d'un bien */
.fiche { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.fiche > .galerie { grid-column: 1; grid-row: 1; }
.fiche > .encart { grid-column: 2; grid-row: 1 / span 2; }
.fiche__texte { grid-column: 1; grid-row: 2; display: grid; gap: 28px; min-width: 0; }
.galerie { display: grid; gap: 12px; min-width: 0; }
.galerie__defile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--rayon); scrollbar-width: none; overscroll-behavior-x: contain; }
.galerie__defile::-webkit-scrollbar { display: none; }
.galerie__defile figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 10; background: var(--creme); }
.galerie__defile img { width: 100%; height: 100%; object-fit: cover; }
.galerie__vignettes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.galerie__vignettes a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; outline-offset: 2px; opacity: .7; transition: opacity .2s; }
.galerie__vignettes a[aria-current="true"], .galerie__vignettes a:hover { opacity: 1; box-shadow: 0 0 0 2px var(--laiton); }
.galerie__vignettes img { width: 100%; height: 100%; object-fit: cover; }
.galerie__legende { font-size: 14px; color: var(--gris); }
.encart { position: sticky; top: 24px; background: var(--blanc); border-radius: var(--rayon); padding: 28px; display: grid; gap: 16px; box-shadow: 0 1px 0 var(--trait), 0 24px 50px -34px rgb(19 32 27 / .5); }
.encart__prix { font-family: var(--f-titre); font-size: 38px; font-weight: 600; line-height: 1; }
.encart .btn { width: 100%; }
.encart small { color: var(--gris); font-size: 14px; }
.caracteristiques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; margin: 0; }
.caracteristiques div { background: var(--papier); padding: 16px 18px; }
.caracteristiques dt { font-size: 13px; color: var(--gris); }
.caracteristiques dd { margin: 4px 0 0; font-weight: 700; }
.description { display: grid; gap: 16px; max-width: 64ch; }
.description h2, .fiche__texte h2 { font-size: clamp(26px, 2.4vw, 32px); margin-top: 24px; }
.nowrap { white-space: nowrap; }
.echelle-dpe { display: grid; gap: 4px; max-width: 360px; margin: 0; padding: 0; list-style: none; }
.echelle-dpe li { display: flex; align-items: center; height: 26px; padding-left: 10px; border-radius: 0 13px 13px 0; font-size: 13px; font-weight: 800; color: #fff; }
.echelle-dpe li:nth-child(1) { width: 34%; } .echelle-dpe li:nth-child(2) { width: 44%; } .echelle-dpe li:nth-child(3) { width: 54%; }
.echelle-dpe li:nth-child(4) { width: 64%; } .echelle-dpe li:nth-child(5) { width: 74%; } .echelle-dpe li:nth-child(6) { width: 84%; }
.echelle-dpe li:nth-child(7) { width: 94%; }
.echelle-dpe li.dpe--D, .echelle-dpe li.dpe--E { color: #1B2420; }
.echelle-dpe .est-actuel { box-shadow: 0 0 0 3px var(--encre); width: 100%; }

/* Estimation */
.estimer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.formulaire { background: var(--blanc); border-radius: var(--rayon); padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 1px 0 var(--trait), 0 24px 50px -34px rgb(19 32 27 / .5); display: grid; gap: 24px; }
.progression { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 700; color: var(--gris); }
.progression li { border-top: 4px solid var(--trait); padding-top: 8px; }
.progression li.est-fait, .progression li[aria-current="step"] { border-color: var(--laiton); color: var(--encre); }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; min-width: 0; }
fieldset[hidden] { display: none; }
legend { font-family: var(--f-titre); font-size: 26px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.choix label { position: relative; display: grid; place-items: center; min-height: 64px; padding: 10px; border: 1px solid var(--trait); border-radius: 12px; font-weight: 700; text-align: center; cursor: pointer; }
.choix input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choix label:has(input:checked) { border-color: var(--nuit); box-shadow: inset 0 0 0 1px var(--nuit); background: var(--creme); }
.choix label:has(input:focus-visible) { outline: 3px solid var(--laiton); outline-offset: 2px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 700; font-size: 15px; }
.champ input, .champ select { min-height: 52px; padding: 0 14px; border: 1px solid #BDB5A6; border-radius: 10px; font: 400 17px/1.2 var(--f-texte); color: var(--encre); background: var(--blanc); width: 100%; }
.champs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formulaire__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.formulaire__note { font-size: 14px; color: var(--gris); }
.erreur { color: #A12B1F; font-size: 15px; font-weight: 600; }
.erreur:empty { display: none; }
.merci { display: grid; gap: 16px; justify-items: start; }
.merci[hidden] { display: none; }
.merci__lea { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; background: var(--creme); border-radius: 12px; padding: 16px; }
.merci__lea svg { width: 46px; height: 46px; }

/* Contact */
.contact-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.contact-carte { background: var(--blanc); border-radius: var(--rayon); padding: 26px; display: grid; gap: 10px; align-content: start; box-shadow: 0 1px 0 var(--trait); }
.contact-carte a { font-weight: 700; }
.contact-grille + .wrap { margin-top: 20px; }
.contact-carte .grand { font-family: var(--f-titre); font-size: 28px; text-decoration: none; }

/* Texte courant (mentions) */
.texte { max-width: 70ch; display: grid; gap: 14px; }
.texte h2 { font-size: 24px; margin-top: 18px; }

/* Pied de page */
.pied { background: var(--nuit); color: #C9C3B6; padding-block: 64px 40px; font-size: 15px; }
.pied__haut { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgb(255 255 255 / .12); }
.pied .marque { color: var(--blanc); }
.pied__haut p { margin-top: 14px; max-width: 36ch; }
.pied h2 { font-family: var(--f-texte); font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--laiton); margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: #ECE6DA; }
.pied__bas { padding-top: 24px; font-size: 14px; }

@media (max-width: 899px) {
  .duo, .duo--inverse, .fiche, .estimer, .joignable, .pied__haut { grid-template-columns: 1fr; }
  .duo--inverse > :first-child { order: 0; }
  .encart { position: static; }
  .fiche > .galerie, .fiche > .encart, .fiche__texte { grid-column: 1; grid-row: auto; }
  .fiche > .encart { order: 1; }
  .fiche__texte { order: 2; }
  .champs-2 { grid-template-columns: 1fr; }
  .heros__texte { padding-top: 120px; }
  .heros__photo img { object-position: 64% 50%; }
  .heros::after { background: linear-gradient(180deg, rgb(10 18 15 / .55) 0%, rgb(10 18 15 / 0) 22%, rgb(10 18 15 / .15) 40%, rgb(10 18 15 / .82) 100%); }
}
@media (max-width: 560px) {
  .caracteristiques { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
  .marque { font-size: 20px; }
  .marque small { letter-spacing: .18em; }
  .heros__actions .btn { flex: 1 1 100%; }
  .galerie__vignettes { gap: 6px; }
  .bien__titre { font-size: 21px; }
}
