/* Feuille de style partagée : pages FR et EN
   Direction : blanc, bleu marine, typographie sans-serif, images arrondies. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --ink: #111827;
  --muted: #5b6472;
  --line: #e5e7eb;
  --accent: #b48053;        /* fond des boutons, filets, puces */
  --accent-hover: #9c6b43;
  --accent-text: #8f5f36;   /* version foncée : petits titres et texte sur blanc */
  --accent-soft: #f6eee7;
  --dark: #ffffff;        /* en-tête et bandeaux : blancs */
  --dark-ink: #111827;
  --dark-muted: #5b6472;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px;
  --max: 1160px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* En-tête */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: var(--accent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--accent-hover);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: rgba(17, 24, 39, .78);
  padding: 6px 0;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s ease, color .2s;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] {
  color: var(--ink);
  background-size: 100% 1.5px;
}
.nav .cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0;
  background-image: none;
  transition: background .2s;
}
.nav .cta:hover { background: #000; color: #fff; }
.lang { display: flex; gap: 10px; font-size: 13px; font-weight: 500; }
.lang a { color: rgba(17, 24, 39, .75); text-decoration: none; background: none; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(17, 24, 39, .35);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
}

/* Sections */
main { padding-top: var(--header-h); }
section { padding: 80px 0; }
.band-dark { background: var(--dark); color: var(--dark-ink); }
.band-alt { background: var(--bg-alt); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}
h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  text-decoration: none;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: 0;
  border: 1px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--line); color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 72px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 650;
  max-width: 900px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 36px 0 48px;
}
.price { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.fees { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 580px; object-fit: cover; }

/* Carrousel de la photo d'accueil : une image visible, flèches pour défiler */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { margin: 0; flex: 0 0 100%; scroll-snap-align: start; }
.slide img { width: 100%; height: 560px; object-fit: cover; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 0;
  border: 1px solid rgba(17, 24, 39, .12);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.slider-btn:hover { background: var(--ink); color: #fff; }
.slider-btn.prev { left: 18px; }
.slider-btn.next { right: 18px; }

/* Résumé */
.summary {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.summary strong { color: var(--ink); font-weight: 600; }
#resume .wrap, #summary .wrap { text-align: center; }
#resume .summary, #summary .summary { margin: 0 auto; }

/* Chiffres clés : quatre colonnes, sans cadres */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li { padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.facts strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.facts span { font-size: 14px; color: var(--muted); }

/* Texte courant */
.prose { max-width: 680px; font-size: 17px; }
.prose p { margin: 0 0 18px; }

/* Blocs texte + image, alternés */
.block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.block + .block { margin-top: 56px; }
.block-text h2 { margin-bottom: 18px; }
.block-text p { margin: 0 0 16px; font-size: 16px; color: var(--muted); max-width: 480px; }
.block-img { margin: 0; border-radius: var(--radius); overflow: hidden; }
.block-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform .8s ease;
}
.block-img:hover img { transform: scale(1.03); }
.block.reverse .block-text { order: 2; }
.block.reverse .block-img { order: 1; }

/* Duo : deux colonnes alignées, image puis texte (remplace l'alternance) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.duo-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform .8s ease;
}
.duo-item img:hover { transform: scale(1.02); }
.duo-item .eyebrow { margin-top: 28px; }
.duo-item h3 { font-size: 22px; margin-bottom: 12px; }
.duo-item p { margin: 0 0 12px; font-size: 16px; color: var(--muted); max-width: 460px; }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; gap: 56px; }
  .duo-item img { height: 300px; }
}

/* Galerie : grille régulière, coins arrondis */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .6s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* Liste de prestations */
.features {
  columns: 2;
  column-gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  break-inside: avoid;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -2px;
  background: var(--accent);
}

/* Quartier */
.location p { margin: 0 0 16px; max-width: 680px; color: var(--muted); }

/* Questions : accordéon en <details> (accessible, indexable) */
.faq-list { max-width: 760px; }
.faq-list h3 { font-size: 18px; margin: 0; }
.faq-list h3 { padding: 20px 0; border-top: 1px solid var(--line); cursor: default; }
.faq-list p { margin: 0 0 8px; font-size: 16px; color: var(--muted); padding-bottom: 20px; }

/* Section FAQ centrée, questions cliquables (details / summary) */
.faq-section .wrap { text-align: center; }
.faq-section h2 { margin-bottom: 40px; }
.faq-list { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent-text);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item p { margin: 0 0 24px; font-size: 16px; color: var(--muted); }

/* Efficacité énergétique : échelle A à G, classe en surbrillance */
.dpe-head { text-align: center; margin-bottom: 40px; }
.dpe-head h2 { margin-bottom: 0; }
.dpe-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 44px 48px; }
.dpe-values { order: -1; }
.dpe-row {
  display: flex;
  align-items: center;
  height: 32px;
  margin-bottom: 5px;
  padding: 0 12px;
  background: var(--c);
  width: var(--w);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  color: var(--t, #1f1d1a);
  font-size: 14px;
  font-weight: 600;
}
.dpe-row.is-current { outline: 2px solid var(--ink); outline-offset: 3px; }
.dpe-grid + .dpe-grid { margin-top: 32px; }
.dpe-values strong { display: block; font-size: 36px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.dpe-values span { font-size: 14px; color: var(--muted); }
.dpe-values > div + div { margin-top: 28px; }
.dpe-note { font-size: 13px; color: var(--muted); margin: 28px 0 0; max-width: 360px; }
@media (max-width: 860px) {
  .dpe-grid { grid-template-columns: 1fr; gap: 32px; padding: 28px 24px; }
}

/* Sommaire : liste libellé / valeur, deux colonnes, lignes alternées */
#energie h2, #energy h2 { text-align: center; margin-bottom: 40px; }
.spec-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
}
/* Lignes alternées par rangée (deux colonnes) */
.spec-list li:nth-child(4n+1), .spec-list li:nth-child(4n+2) { background: var(--bg-alt); }

/* Sommaire sur fond couleur d'accent, lignes translucides */
#energie, #energy { background: #f3eee6; color: var(--ink); }
#energie h2, #energy h2 { color: var(--ink); }
#energie .spec-list li, #energy .spec-list li { border-bottom: 0; }
#energie .spec-list li:nth-child(4n+1), #energie .spec-list li:nth-child(4n+2),
#energy .spec-list li:nth-child(4n+1), #energy .spec-list li:nth-child(4n+2) { background: rgba(17, 24, 39, .06); }
#energie .spec-list span, #energy .spec-list span { color: rgba(17, 24, 39, .8); }
#energie .spec-list strong, #energy .spec-list strong { color: var(--ink); }
.spec-list span { color: var(--muted); }
.spec-list strong { font-weight: 500; color: var(--ink); text-align: right; }
@media (max-width: 640px) {
  .spec-list { grid-template-columns: 1fr; }
}

/* Visite */
.visit p { max-width: 620px; margin: 0 0 28px; font-size: 16px; color: var(--muted); }

/* Blocs de couleur : les sections « band-alt » prennent la couleur d'accent,
   alternées avec le blanc. Textes en anthracite pour la lisibilité. */
.band-alt { background: var(--bg-alt); color: var(--ink); }
.band-alt h2, .band-alt h3, .band-alt .name, .band-alt .summary strong { color: var(--ink); }
.band-alt p, .band-alt .summary, .band-alt .info, .band-alt .block-text p,
.band-alt .faq-item p, .band-alt .facts span, .band-alt .location p { color: rgba(17, 24, 39, .82); }
.band-alt .eyebrow { color: var(--accent-text); }
.faq-item summary { color: var(--ink); }
.band-alt .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.band-alt .btn:hover { background: #000; border-color: #000; }
.band-alt .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.band-alt .btn-ghost:hover { background: var(--ink); color: #fff; }
.band-alt .features li,
.band-alt .faq-item,
.band-alt .faq-item:last-child { border-color: rgba(17, 24, 39, .25); }
.band-alt .spec-list span { color: rgba(17, 24, 39, .75); }
.band-alt .faq-item summary::after { color: var(--ink); }
.band-alt .faq-item summary:hover { color: #fff; }
.band-alt .map-note { color: rgba(17, 24, 39, .75); }

/* Bloc visite sur photo de fond, assombrie pour lire le texte */
.visit-bg { background-color: var(--ink); background-size: cover; background-position: center; }
.visit-bg .eyebrow { color: #e9d3b5; }
.visit-bg h2 { color: #fff; }
.visit-bg p { color: rgba(255, 255, 255, .88); }
.visit-bg .btn { background: var(--accent); color: var(--ink); }

/* Agence */
.agency {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.agency .name { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.agency .info { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* Carte */
.map { margin-top: 48px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-zone { height: 320px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.loc-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.loc-head h2 { margin-bottom: 18px; }
.loc-head p { margin: 0; font-size: 17px; color: var(--muted); }
#quartier .map-note, #location .map-note { text-align: center; }
.map-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Pied de page */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 32px 0 40px;
  font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink); text-underline-offset: 3px; }

/* Tablette */
@media (max-width: 1240px) {
  .nav { gap: 22px; }
}

/* Menu repliable */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--accent);
    padding: 8px 20px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); background: none; }
  .nav .cta { margin-top: 16px; text-align: center; border-bottom: 0; }
  .nav .lang { padding: 16px 0 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .block { grid-template-columns: 1fr; gap: 32px; }
  .block + .block { margin-top: 56px; }
  .block.reverse .block-text, .block.reverse .block-img { order: initial; }
  .block-img img { height: 340px; }
  .hero-photo img, .slide img { height: 360px; }
  .features { columns: 1; }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .wrap { width: calc(100% - 32px); }
  .hero-meta { margin-bottom: 36px; }
  .btn { width: 100%; text-align: center; }
  .hero-cta .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
  .map iframe { height: 300px; }
  .slide img { height: 260px; }
  .block-img img { height: 240px; }
  .duo-item img { height: 220px; }
  .map-zone { height: 260px; }
  .slider-btn { width: 40px; height: 40px; font-size: 20px; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
  .spec-list li { padding: 14px 16px; font-size: 15px; }
  .dpe-grid { padding: 24px 18px; }
  .facts strong { font-size: 22px; }
  .faq-item summary { font-size: 16px; }
  .agency .name { font-size: 18px; }
}

/* Tablette : pas de débordement horizontal */
html, body { overflow-x: hidden; }

/* Menu burger : trois barres, panneau blanc et lisible sur mobile */
.menu-toggle {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 1100px) {
  .menu-toggle { display: flex; }
  .nav { background: #fff; padding: 12px 28px 40px; border-bottom: 1px solid var(--line); }
  .nav a { font-size: 20px; font-weight: 500; letter-spacing: 0; padding: 20px 0; color: var(--ink); }
  .nav .cta { display: block; font-size: 16px; padding: 18px; margin-top: 28px; background: var(--ink); color: #fff; text-align: center; border-bottom: 0; }
  .nav .lang { padding-top: 28px; font-size: 16px; }
  .nav .lang a { font-size: 16px; padding: 0; }
}
/* Deuxième CTA du menu : contour seulement */
.nav .cta-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.nav .cta-ghost:hover { background: var(--ink); color: #fff; }
@media (max-width: 1100px) {
  .nav .cta-ghost { margin-top: 12px; }
}

/* Carte : reste sous l'en-tête et le menu, et ne bloque plus le défilement sur mobile */
.map-zone { position: relative; z-index: 0; isolation: isolate; }
