/* SR-Immob, site public. Fidèle à la maquette « V2 · Accueil » validée le 19.11.2026.
   Bleu du logo pour l'action, orange réservé à la coche du logo (retour de l'agence : « pas d'orange »). */

@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("../fonts/hanken-grotesk-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/hanken-grotesk-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url("../fonts/hanken-grotesk-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/hanken-grotesk-latin-700.woff2") format("woff2"); }

:root {
  --bleu: #16498c;
  --bleu-fonce: #0f3466;
  --encre: #172033;
  --gris: #48556a;
  --gris-clair: #98a2b3;
  --fond: #ffffff;
  --teinte: #f2f5fa;
  --teinte-2: #e6ecf5;
  --vert: #1f9d55;
  --marge: clamp(16px, 3.4vw, 48px);
  --section: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-family: "Hanken Grotesk", system-ui, sans-serif; color: var(--encre); background: var(--fond); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--bleu); }
a:hover { color: var(--bleu-fonce); }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }
::selection { background: var(--bleu); color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

.cadre { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--marge); }
.titre-section { font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.025em; color: var(--bleu); }
.discret { color: var(--gris); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Boutons : l'action pleine en bleu, la sélection en variante claire. */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; white-space: nowrap; }
.bouton:hover { transform: translateY(-1px); }
.bouton:active { transform: translateY(0); }
.bouton-plein { background: var(--bleu); color: #fff; }
.bouton-plein:hover { background: var(--bleu-fonce); color: #fff; }
.bouton-clair { background: #fff; color: var(--bleu); }
.bouton-clair:hover { color: var(--bleu-fonce); }
.bouton-grand { padding: 14px 24px; font-size: 16px; }
.bouton[disabled] { cursor: not-allowed; transform: none; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; background: #fff; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bleu); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.marque svg { width: 44px; height: 30px; flex: none; }
.navigation { display: flex; gap: 32px; font-size: 16px; font-weight: 500; }
.navigation a { color: var(--encre); text-decoration: none; }
.navigation a:hover, .navigation a[aria-current="page"] { color: var(--bleu); }
.entete-droite { display: flex; align-items: center; gap: 16px; }
.joignable { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gris); white-space: nowrap; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--gris-clair); display: inline-block; flex: none; }
.point.ouvert { background: var(--vert); }
.menu-mobile { display: none; }

/* Accueil : photo de Moudon */
.ouverture { position: relative; height: calc(100svh - 72px); max-height: 640px; min-height: 500px; overflow: hidden; background: var(--bleu-fonce); }
.ouverture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; animation: derive 24s ease-out both; }
.ouverture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,44,0) 30%, rgba(10,22,44,.66) 100%); }
.ouverture .cadre { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.ouverture h1 { color: #fff; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.03em; max-width: 760px; }
.ouverture p { color: #fff; font-size: clamp(17px, 1.3vw, 19px); max-width: 560px; }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@keyframes derive { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Annonces compactes */
.annonces { padding: var(--section) 0 96px; }
.entete-section { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: 36px; }
.entete-section p { max-width: 460px; }
.grille-annonces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 24px; }
.carte-annonce { display: grid; grid-template-columns: 1fr; background: var(--teinte); overflow: hidden; transition: transform .2s ease; }
@media (min-width: 640px) { .carte-annonce { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); } }
.carte-annonce:hover { transform: translateY(-3px); }
.carte-annonce .image { overflow: hidden; min-height: 260px; display: block; }
.carte-annonce .image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte-annonce:hover .image img { transform: scale(1.03); }
.carte-annonce .texte { padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; }
.carte-annonce .lieu { font-size: 15px; font-weight: 500; color: var(--bleu); }
.carte-annonce h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.carte-annonce h3 a { color: inherit; text-decoration: none; }
.carte-annonce .resume { font-size: 16px; margin-top: 8px; }
.prix { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prix strong { font-size: 24px; font-weight: 600; color: var(--bleu); }
.boutons { display: flex; gap: 10px; flex-wrap: wrap; }
.vide { background: var(--teinte); padding: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.vide p { font-size: 18px; max-width: 640px; }

/* Services, sur le seul bandeau bleu */
.services { background: var(--bleu); color: #fff; padding: var(--section) 0; }
.services .cadre { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.services .intro { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.services .intro p { max-width: 440px; }
.services .titre-section { color: #fff; }
.services .liste { flex: 1.6 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px 36px; }
.services .liste div { display: flex; flex-direction: column; gap: 10px; }
.services .liste h3 { font-size: 20px; }
.services .liste p { font-size: 16px; }
.services svg { width: 30px; height: 22px; }

/* Contact et carte */
.contact { padding: var(--section) 0; }
.contact .cadre { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: stretch; }
.contact .infos { flex: 1 1 340px; display: flex; flex-direction: column; gap: 22px; }
.contact .etat { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.contact .etat .point { width: 10px; height: 10px; }
.carte { flex: 1.6 1 560px; min-height: 340px; position: relative; overflow: hidden; background: var(--teinte-2); }
.carte .tuiles { position: absolute; display: grid; grid-template-columns: repeat(5, 256px); left: calc(50% - var(--px)); top: calc(50% - var(--py)); filter: saturate(.55) contrast(.95); }
.carte .tuiles img { width: 256px; height: 256px; }
.carte .repere { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.carte .etiquette { background: #fff; color: var(--encre); font-size: 14px; line-height: 1.35; padding: 8px 12px; border-radius: 4px; box-shadow: 0 4px 16px rgba(23,32,51,.18); margin-bottom: 6px; white-space: nowrap; }
.carte .etiquette strong { color: var(--bleu); }
.carte .epingle { width: 18px; height: 18px; border-radius: 50%; background: var(--bleu); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(23,32,51,.3); transform: translateY(9px); }
.carte .attribution { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); font-size: 12px; padding: 2px 8px; color: var(--encre); }
.carte .ouvrir { position: absolute; left: 12px; bottom: 12px; }

/* Pied */
.pied { background: var(--teinte); padding: 36px 0; font-size: 14px; }
.pied .cadre { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.pied .marque { font-size: 16px; }
.pied .marque svg { width: 36px; height: 24px; }
.pied a { color: var(--encre); }

/* Fiche d'annonce, modèle NAEF : photos défilantes, puis l'essentiel en une page */
.galerie { position: relative; background: var(--encre); }
.galerie .defilement { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(46svh, 440px); min-height: 260px; }
.galerie .defilement::-webkit-scrollbar { display: none; }
.galerie figure { margin: 0; flex: 0 0 100%; scroll-snap-align: start; height: 100%; }
.galerie figure img { width: 100%; height: 100%; object-fit: cover; }
.galerie .fleches { position: absolute; right: var(--marge); bottom: 20px; display: flex; gap: 8px; }
.galerie .fleches button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--bleu); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.galerie .compteur { position: absolute; left: var(--marge); bottom: 24px; color: #fff; background: rgba(15,52,102,.75); font-size: 14px; padding: 4px 10px; border-radius: 999px; }
.galerie.sans-photo { height: 160px; background: var(--teinte); }
.fiche { padding: 48px 0 var(--section); }
.fiche .cadre { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.fiche .principal { flex: 1.7 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.fiche .fil { font-size: 14px; color: var(--gris); }
.fiche .fil a { color: var(--gris); }
.fiche h1 { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
.fiche .sous-titre { font-size: 18px; color: var(--bleu); font-weight: 500; }
.caracteristiques { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px; background: #fff; }
.caracteristiques div { background: var(--teinte); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.caracteristiques dt { font-size: 13px; color: var(--gris); }
.caracteristiques dd { margin: 0; font-weight: 600; }
.fiche .description { font-size: 17px; line-height: 1.65; white-space: pre-line; max-width: 72ch; }
.equipements { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.equipements li { background: var(--teinte); color: var(--bleu); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 500; }
.encart { flex: 1 1 320px; position: sticky; top: 96px; background: var(--bleu); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.encart .montant { font-size: 30px; font-weight: 600; }
.encart .discret { color: #c9d8ee; }
.encart a:not(.bouton) { color: #fff; }
.encart .conseiller { display: flex; align-items: center; gap: 12px; }
.encart .conseiller span.pastille { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.encart .conseiller svg { width: 28px; height: 20px; }
.encart .conseiller .portrait { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.encart form { display: flex; flex-direction: column; gap: 10px; }
.encart label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.encart input, .encart textarea { font: inherit; font-size: 15px; border: 0; border-radius: 6px; padding: 10px 12px; color: var(--encre); }
.encart .message-ok { background: #fff; color: var(--encre); padding: 14px; border-radius: 4px; }
.erreurs { background: #fbe9e9; color: #9b2c2c; padding: 12px 14px; border-radius: 4px; font-size: 15px; }
.erreurs ul { margin: 6px 0 0; padding-left: 18px; }

/* Proposer une visite */
.visite { padding: 48px 0 96px; }
.visite .cadre { display: flex; flex-direction: column; gap: 40px; }
.visite .tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.visite h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; color: var(--bleu); }
.visite .tete p { max-width: 520px; }
.visite .colonnes { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.visite .etapes { flex: 1.75 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.bloc { background: var(--teinte); padding: 28px; border-radius: 4px; display: flex; flex-direction: column; gap: 18px; border: 0; margin: 0; min-width: 0; }
.bloc legend, .bloc h2 { font-size: 21px; font-weight: 600; padding: 0; float: left; width: 100%; }
.bloc .ligne-titre { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.choix-biens { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; clear: both; }
.choix-bien { position: relative; display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 4px; padding: 10px; cursor: pointer; transition: box-shadow .15s ease, transform .12s ease; }
.choix-bien:hover { transform: translateY(-1px); }
.choix-bien input { position: absolute; opacity: 0; pointer-events: none; }
.choix-bien img { width: 104px; height: 78px; object-fit: cover; border-radius: 2px; flex: none; }
.choix-bien .t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.choix-bien .t strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.choix-bien .t span { font-size: 14px; color: var(--gris); }
.coche { width: 24px; height: 24px; border-radius: 50%; background: #d5ddea; display: flex; align-items: center; justify-content: center; flex: none; }
.choix-bien:has(input:checked) { box-shadow: inset 0 0 0 2px var(--bleu); }
.choix-bien:has(input:checked) .coche { background: var(--bleu); }
.choix-bien:has(input:focus-visible) { outline: 2px solid var(--bleu); outline-offset: 2px; }
.jours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; clear: both; }
.pastille-choix { position: relative; }
.pastille-choix input { position: absolute; opacity: 0; pointer-events: none; }
.pastille-choix span { display: flex; cursor: pointer; background: #fff; color: var(--encre); border-radius: 6px; transition: background-color .15s ease, color .15s ease; }
.pastille-choix input:checked + span { background: var(--bleu); color: #fff; }
.pastille-choix input:focus-visible + span { outline: 2px solid var(--bleu); outline-offset: 2px; }
.pastille-choix input:disabled + span { background: #e6ebf2; color: #8a96a8; text-decoration: line-through; cursor: not-allowed; }
.jour span { flex: none; width: 76px; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0 12px; font-size: 13px; }
.jour span b { font-size: 24px; font-weight: 600; line-height: 1.15; }
.moments { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; }
.moments .pastille-choix span { border-radius: 999px; padding: 10px 20px; font-size: 15px; font-weight: 600; background: transparent; }
.heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.heure span { justify-content: center; padding: 12px 0; font-size: 15px; font-weight: 600; }
.heures[hidden] { display: none; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 16px; clear: both; }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.champ input, .champ textarea { font: inherit; font-size: 16px; color: var(--encre); background: #fff; border: 1px solid #c9d3e2; border-radius: 8px; padding: 12px 14px; width: 100%; }
.champ input:focus, .champ textarea:focus { outline: 2px solid var(--bleu); outline-offset: 1px; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.recap { flex: 1 1 320px; position: sticky; top: 96px; background: var(--bleu); color: #fff; padding: 28px; border-radius: 4px; display: flex; flex-direction: column; gap: 20px; }
.recap h2 { font-size: 22px; }
.recap .biens-choisis { display: flex; flex-direction: column; gap: 10px; }
.recap .bien { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.recap .bien img { width: 56px; height: 42px; object-fit: cover; border-radius: 2px; }
.recap .bien span span, .recap .pale { color: #c9d8ee; }
.recap .quand { font-size: 19px; font-weight: 600; }
.recap .note { font-size: 15px; color: #e3ebf6; }
.recap .bouton[disabled] { background: #3f6aa6; color: #c9d8ee; }
.recap .bouton:not([disabled]) { background: #fff; color: var(--bleu); }

/* Pages de texte */
.texte-page { padding: 56px 0 var(--section); }
.texte-page .cadre { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.texte-page h1 { color: var(--bleu); font-size: clamp(30px, 3vw, 42px); }
.texte-page h2 { font-size: 21px; margin-top: 16px; }

/* Entrées au défilement : le contenu reste visible si le script ne tourne pas. */
.js .apparait { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delai, 0ms); }
.js .apparait.vu { opacity: 1; transform: none; }

@media (max-width: 1100px) { .joignable { display: none; } }
@media (max-width: 860px) {
  :root { --section: 64px; }
  .navigation { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { list-style: none; cursor: pointer; padding: 10px 14px; border-radius: 999px; background: var(--teinte); font-weight: 600; font-size: 15px; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile nav { position: absolute; right: 0; top: 52px; background: #fff; box-shadow: 0 12px 32px rgba(23,32,51,.16); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; min-width: 240px; }
  .menu-mobile nav a { padding: 12px 14px; color: var(--encre); text-decoration: none; border-radius: 6px; }
  .menu-mobile nav a:hover { background: var(--teinte); }
  .entete .bouton { display: none; }
  .encart, .recap { position: static; }
  .carte-annonce .texte { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .apparait { opacity: 1; transform: none; }
}
