/* Immo4Now — feuille de style commune
   Palette d’origine : bleu #52bad5, gris #b3b3b3, fond #f2f2f2. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin.woff2") format("woff2");
}
/* Lettres accentuées d’Europe centrale (ł, ő, ș, č…) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  /* Palette d'origine d'immo4now */
  --sky: #52bad5;        /* bleu des bandeaux */
  --sky-dark: #2c9ab7;   /* bleu foncé (bordures, survol) */
  --grey: #b3b3b3;       /* gris du bandeau titre */
  --page: #f2f2f2;       /* fond de page */
  --paper: #ffffff;
  --ink: #3a3a3a;        /* texte principal */
  --mute: #5f5f5f;
  --link: #1b6f86;
  --deep: #12343d;       /* texte sur fond bleu */
  --rule: #d4d4d4;

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --measure: 68ch;
  --wrap: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--sky); color: var(--deep); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- En-tête ---------- */

.site-header { background: var(--sky); color: var(--deep); border-bottom: 4px solid var(--sky-dark); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1rem;
}

.wordmark {
  font-weight: 800; font-stretch: 75%; font-size: 1.6rem; letter-spacing: .02em;
  color: #535353; text-decoration: none; line-height: 1;
}
.wordmark b { color: #000; font-weight: 800; font-style: italic; }
.wordmark i { color: #fff; font-style: normal; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a {
  color: var(--deep); text-decoration: none; font-size: .95rem; font-weight: 550;
  padding-block: .35rem; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--deep); }
.site-nav a[aria-current="page"] { border-bottom-color: #fff; }

/* ---------- Hero ---------- */

.hero { background: var(--grey); color: #262626; position: relative; }
.hero .wrap { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem); }

.hero h1 {
  font-weight: 750; font-stretch: 68%;
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  line-height: 1; letter-spacing: -.005em;
  margin: 0 0 1.25rem; max-width: 22ch;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55;
  max-width: 58ch; margin: 0; color: #2e2e2e;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.crumbs { font-size: .9rem; margin: 0 0 1.25rem; color: #333; }
.crumbs a { color: #262626; }

/* La signature du site : une rue de façades à pignons, découpée dans la chaux. */
.skyline { display: block; margin-bottom: -1px; width: 100%; height: clamp(48px, 8vw, 110px); color: var(--page); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block; font: inherit; font-weight: 650; font-size: 1rem;
  padding: .8rem 1.3rem; border-radius: 3px; text-decoration: none;
  border: 2px solid var(--sky); background: var(--sky); color: var(--deep);
}
.btn:hover { background: #6fc8df; border-color: #6fc8df; }
.btn.ghost { background: #fff; color: #262626; border-color: #fff; }
.btn.ghost:hover { background: var(--page); border-color: var(--page); }
.btn.dark { background: var(--sky); border-color: var(--sky); color: var(--deep); }
.btn.dark:hover { background: #6fc8df; border-color: #6fc8df; }

/* ---------- Contenu ---------- */

main { padding-block: clamp(2rem, 5vw, 4rem); }

.section + .section { margin-top: clamp(3rem, 7vw, 5rem); }

h2 {
  font-weight: 750; font-stretch: 80%; font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.1; margin: 0 0 1.25rem;
}
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; margin: 0 0 .4rem; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }

.intro { font-size: 1.2rem; line-height: 1.55; max-width: 60ch; }

/* Liste de services : des rangées séparées comme des joints de pierre */
.rows { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--sky); }
.rows > li {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: .5rem 3rem; padding-block: 1.75rem; border-bottom: 1px solid var(--rule);
}
.rows h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-stretch: 85%; font-weight: 700; margin: 0; }
.rows p { margin: 0 0 .75rem; max-width: 60ch; }
.rows .more { font-weight: 650; }

/* Fiche annonce */
.listing {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--paper); border-radius: 4px; overflow: hidden; max-width: 920px;
}
.listing img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.listing .body { padding: clamp(1.25rem, 3vw, 2.25rem); align-self: center; }
.listing .place { color: var(--mute); font-size: .95rem; margin: 0 0 .35rem; }
.listing h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .75rem; }

.figure { margin: 0 0 2rem; max-width: 920px; }
.figure img { border-radius: 4px; }
.figure figcaption { font-size: .9rem; color: var(--mute); margin-top: .5rem; }

.fb-posts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.fb-posts .fb-post { background: var(--paper); padding: 1rem; border-radius: 4px; }
.fb-posts blockquote { margin: 0; }

/* Partenaire (SofieFlat, Ouvertis) */
.partner {
  display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  background: var(--paper); padding: 1.5rem clamp(1.25rem, 3vw, 2rem); border-left: 6px solid var(--sky);
  margin-bottom: 2.5rem; max-width: 920px;
}
.partner img { width: auto; max-height: 90px; }
.partner p { margin: 0; max-width: 46ch; }

.facts { list-style: none; padding: 0; margin: 0 0 1rem; max-width: var(--measure); }
.facts li { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.facts strong { display: block; }

/* Sélecteur de langue */
.langs { margin: 0 0 2rem; font-size: .95rem; }
.langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.langs a {
  display: inline-block; padding: .3rem .7rem; border: 1px solid var(--rule); border-radius: 3px;
  text-decoration: none; color: var(--ink); background: var(--paper);
}
.langs a:hover { border-color: var(--sky-dark); }
.langs a[aria-current="true"] { background: var(--sky); color: var(--deep); border-color: var(--sky); }

/* ---------- Pied de page / contact ---------- */

.site-footer { background: var(--grey); color: #262626; margin-top: clamp(2rem, 5vw, 4rem); }
.site-footer .wrap { padding-block: clamp(2.5rem, 6vw, 4rem) 2.5rem; }
.site-footer h2 { color: #262626; }
.site-footer .pitch { max-width: 52ch; color: #2e2e2e; margin: 0 0 2rem; }

.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.contact a {
  display: flex; align-items: center; gap: .8rem; height: 100%;
  padding: 1.1rem 1.2rem; background: var(--paper); color: #262626; text-decoration: none;
}
.contact a:hover { background: var(--page); }
.contact svg { width: 22px; height: 22px; flex: none; color: var(--sky-dark); }
.contact span { display: flex; flex-direction: column; line-height: 1.3; }
.contact small { color: var(--mute); font-size: .85rem; }

.legal { background: var(--sky); color: var(--deep); font-size: .9rem; border-top: 4px solid var(--sky-dark); }
.legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1rem; }
.legal a { color: var(--deep); }

/* Mosaïque de photos de la page d'accueil */
.mosaic { margin: 0; background: var(--paper); padding: clamp(.4rem, 1.2vw, .9rem); border-radius: 4px; }
.mosaic img { width: 100%; border-radius: 2px; }

/* ---------- Petits écrans ---------- */

@media (max-width: 760px) {
  .rows > li { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr; }
  .site-nav ul { gap: .25rem 1.1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .skyline path { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; transform-origin: bottom; }
  @keyframes rise { from { transform: scaleY(.6); } to { transform: scaleY(1); } }
}

@media print {
  .site-header, .skyline, .site-nav, .actions { display: none; }
  body { background: #fff; }
}

/* Sélecteur FR | EN dans l'en-tête */
.site-header .wrap { flex-wrap: wrap; }
.site-nav { margin-left: auto; }
.lang-switch { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.lang-switch a {
  display: inline-block; min-width: 2.4rem; text-align: center; padding: .3rem .5rem; font-size: .85rem; font-weight: 650;
  color: var(--deep); text-decoration: none; border: 1px solid rgba(18, 52, 61, .35); border-radius: 3px;
}
.lang-switch a:hover { border-color: var(--deep); }
.lang-switch a[aria-current="true"] { background: #fff; border-color: #fff; }
@media (max-width: 760px) {
  .site-nav { order: 3; margin-left: 0; flex-basis: 100%; }
}

/* ---------- Guides ---------- */
.guide .meta { color: var(--mute); font-size: .95rem; margin: 0 0 1.5rem; }
.guide h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
.guide ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.guide li { margin-bottom: .35rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.guide table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: .98rem; }
.guide caption { text-align: left; font-size: .9rem; color: var(--mute); padding-bottom: .5rem; }
.guide th, .guide td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); }
.guide thead th { background: var(--sky); color: var(--deep); }
.keypoints { background: var(--paper); border-left: 6px solid var(--sky); padding: 1.25rem 1.5rem .5rem; margin: 2.5rem 0; }
.keypoints h2 { margin-top: 0; font-size: 1.35rem; }
.sources { margin-top: 2.5rem; font-size: .95rem; }
.sources h2, .related h2 { font-size: 1.3rem; }
.note { font-size: .92rem; color: var(--mute); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2rem; max-width: var(--measure); }
.related ul { list-style: none; padding: 0; }
.related li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.rows h3 a { color: inherit; text-decoration: none; }
.rows h3 a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .guide table { min-width: 560px; font-size: .92rem; }
  .table-wrap { margin-inline: -1.25rem; padding-inline: 1.25rem; }
}

/* ---------- Photos et effets ---------- */

.hero.has-photo { overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Voile gris de la charte : le texte reste lisible, la photo respire à droite */
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(179,179,179,.97) 0%, rgba(179,179,179,.92) 42%, rgba(179,179,179,.5) 78%, rgba(179,179,179,.3) 100%);
}
.hero .skyline { position: relative; }

.rows > li.t { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 6fr); align-items: start; }
.thumb { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 7 / 5; background: var(--grey); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 760px) {
  .hero-photo::after { background: rgba(179,179,179,.9); }
  .rows > li.t { grid-template-columns: 1fr; }
  .thumb { aspect-ratio: 16 / 9; max-width: 520px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Ken Burns lent sur le bandeau */
  .hero-photo img { animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 70% 45%; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
  /* Zoom au survol des vignettes */
  .thumb img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
  .rows > li.t:hover .thumb img, .thumb:focus-visible img { transform: scale(1.07); }
  /* Apparition au défilement (activée par script seulement) */
  .rv main .section, .rv .rows > li, .rv .partner, .rv .listing {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .rv main .section.in, .rv .rows > li.in, .rv .partner.in, .rv .listing.in { opacity: 1; transform: none; }
}

@media print {
  .hero-photo, .thumb { display: none; }
  .rv main .section, .rv .rows > li { opacity: 1 !important; transform: none !important; }
}
