/* RM Agencement, version 2 "classe" aux couleurs du logo (bleu nuit + sable)
   Design read : site d'entreprise de rénovation haut de gamme (92 / 95) pour particuliers,
   langage sobre et luxueux, noir / blanc cassé / taupe, grandes photos, beaucoup d'air.
   Thème unique assumé (alternance de bandes claires et sombres), pas de mode sombre séparé.
   Formes : angles droits partout. Seule exception : boutons ronds du carrousel. */

@font-face { font-family: "Jost RM"; src: url("fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant RM"; src: url("fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant RM"; src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  /* Mise en page : photo plein écran, puis bandes alternées claires / sombres, contenu centré sur 1240px */
  --paper: #f5f3ef;
  --white: #fbfaf8;
  --ink: #141a24;
  --char: #142744;
  --stone: #9a8565;
  --muted: #5d5852;
  --muted-d: #aeb8c8;
  --line: #ddd8d0;
  --line-d: #2a3d5c;

  --sans: "Jost RM", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant RM", "Cormorant Garamond", Garamond, "Times New Roman", serif;

  --gutter: clamp(16px, 5vw, 64px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 350; font-size: 1.05rem; line-height: 1.7; letter-spacing: 0.005em;
  overflow-x: clip;
}
img { max-width: 100%; display: block; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 400; }
em, .it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h1 em, h2 em { font-size: 1.12em; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 56ch; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.stack { display: grid; gap: 20px; }
.label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); }
.rule { width: 56px; height: 1px; background: var(--stone); border: 0; margin: 0; }
.center .rule { margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--white); padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--stone); outline-offset: 4px; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

/* Bandes sombres */
.dark { background: var(--char); color: #eeebe6; }
.dark .lead, .dark .muted { color: var(--muted-d); }
.dark .label { color: #c7b08a; }
.dark .rule { background: var(--muted-d); }

/* Boutons : rectangles, texte en capitales espacées */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 30px; border: 1px solid currentColor; border-radius: 0;
  font: 500 0.8rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; background: transparent; color: inherit;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn .ic { width: 1.05em; height: 1.05em; transition: transform 0.4s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.dark .btn-solid, .hero-full .btn-solid, .page-hero .btn-solid { background: var(--white); border-color: var(--white); color: var(--ink); }
.dark .btn-solid:hover, .hero-full .btn-solid:hover, .page-hero .btn-solid:hover { background: transparent; color: var(--white); }
.dark .btn-line:hover, .hero-full .btn-line:hover, .page-hero .btn-line:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 34px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; }
.tan { color: #c7b08a; }
.brand-name { white-space: nowrap; font-size: 0.84rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { white-space: nowrap; text-decoration: none; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; padding-block: 6px; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: currentColor; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.06em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav .btn { padding: 12px 20px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn .ic { width: 28px; height: 28px; }
.mobile-menu { display: none; }
/* Accueil : en-tête transparent posé sur la photo */
.home .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-color: rgba(251, 250, 248, 0.22); color: var(--white); }
@media (max-width: 1180px) { .nav-tel span { display: none; } .nav-links { gap: 22px; } }
@media (max-width: 1020px) {
  .nav-links, .nav .btn, .nav-tel { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu[data-open="true"] { display: grid; gap: 2px; padding: 8px var(--gutter) 28px; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
  .mobile-menu a { text-decoration: none; font-size: 1.5rem; font-weight: 300; padding-block: 8px; }
  .mobile-menu .btn { margin-top: 14px; font-size: 0.8rem; font-weight: 500; }
}

/* Grande photo d'accueil */
.hero-full { position: relative; min-height: min(100svh, 940px); display: grid; place-items: center; color: var(--white); isolation: isolate; overflow: hidden; }
.hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-full::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,22,40,0.62) 0%, rgba(12,22,40,0.38) 42%, rgba(12,22,40,0.7) 100%); }
.hero-inner { text-align: center; display: grid; gap: 22px; justify-items: center; padding: calc(var(--header-h) + 40px) var(--gutter) 64px; max-width: 980px; }
.hero-brand { font-size: clamp(1.6rem, 5vw, 4.4rem); font-weight: 300; letter-spacing: 0.26em; margin-right: -0.26em; white-space: nowrap; text-transform: uppercase; line-height: 1.05; }
.hero-full h1 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 400; letter-spacing: 0.04em; }
.hero-full h1 em { font-size: 1.3em; }
.hero-full .lead { color: rgba(251, 250, 248, 0.86); }
.hero-full .btn-row { justify-content: center; margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-full > img, .page-hero > img { animation: settle 2.4s var(--ease) both; }
  .rise { animation: rise 1.1s var(--ease) both; }
  .rise.d1 { animation-delay: 0.15s; } .rise.d2 { animation-delay: 0.3s; } .rise.d3 { animation-delay: 0.45s; }
}
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes rise { from { transform: translateY(16px); opacity: 0.001; } to { transform: none; opacity: 1; } }

/* Bandeau photo des pages intérieures */
.page-hero { position: relative; min-height: clamp(400px, 60vh, 580px); display: flex; align-items: flex-end; color: var(--white); isolation: isolate; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,22,40,0.25) 0%, rgba(12,22,40,0.8) 100%); }
.page-hero .wrap { width: 100%; padding-block: 56px; display: grid; gap: 20px; }
.page-hero .lead { color: rgba(251, 250, 248, 0.88); }
.page-hero .btn-row { margin-top: 6px; }
.page-plain { padding-block: clamp(56px, 8vw, 104px) 32px; }

.crumbs { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* L'entreprise */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-text { display: grid; gap: 22px; min-width: 0; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 44px; margin-top: 12px; padding-top: 26px; border-top: 1px solid var(--line-d); }
.facts strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.3rem; line-height: 1.1; color: #d9c7a6; }
.facts span { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-d); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about img { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Galerie de réalisations */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 44px) / 3)); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel figure { margin: 0; scroll-snap-align: start; display: grid; gap: 14px; }
.carousel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.carousel figcaption { font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-d); }
.car-nav { display: flex; gap: 12px; }
.car-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.car-nav button[data-car="-1"] .ic { transform: rotate(180deg); }
.car-nav button:hover { background: var(--white); color: var(--ink); }
@media (max-width: 760px) { .carousel { grid-auto-columns: 80%; } }

/* Bandeau des métiers (un seul par page) */
.marquee { overflow: hidden; padding-block: clamp(44px, 6vw, 76px); background: var(--white); border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3.4vw, 2.9rem); white-space: nowrap; padding-inline: 0.55em; display: inline-flex; align-items: center; gap: 1.1em; }
.marquee-track span::after { content: ""; width: 5px; height: 5px; background: var(--stone); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 55s linear infinite; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Prestations */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 56px; }
.card { text-decoration: none; display: grid; gap: 16px; align-content: start; min-width: 0; }
.card .ph { overflow: hidden; }
.card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .link-arrow { justify-self: start; margin-top: 4px; }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .card img { aspect-ratio: 4 / 3; } }

/* Avant / après */
.ba { display: grid; grid-template-columns: 0.75fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.ba-text { display: grid; gap: 20px; min-width: 0; }
.compare { position: relative; overflow: hidden; aspect-ratio: 16 / 10; user-select: none; --pos: 50%; min-width: 0; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--white); pointer-events: none; }
.compare .handle::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--white); background: rgba(18, 17, 16, 0.45); color: var(--white); display: grid; place-items: center; font: 400 1.4rem/1 var(--serif); }
.compare .lbl { position: absolute; top: 18px; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.compare .lbl-l { left: 20px; } .compare .lbl-r { right: 20px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input[type="range"]:focus-visible + .handle::after { outline: 2px solid var(--white); outline-offset: 4px; }
@media (max-width: 860px) { .ba { grid-template-columns: 1fr; } }

/* Méthode */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 30px 26px 0 0; border-top: 1px solid var(--line-d); display: grid; gap: 12px; align-content: start; min-width: 0; }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: #d9c7a6; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted-d); font-size: 0.95rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 0 28px; } .steps li { padding-bottom: 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Engagements */
.why-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; }
.why-item { display: grid; gap: 12px; align-content: start; padding-top: 24px; border-top: 1px solid var(--line); min-width: 0; }
.why-item .ic { width: 28px; height: 28px; color: var(--stone); }
.why-item h3 { font-size: 1.15rem; }
.why-item p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 980px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-list { grid-template-columns: 1fr; } }

/* Zones */
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: 56px; }
.zone { display: grid; gap: 14px; align-content: start; min-width: 0; }
.zone-num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(5rem, 11vw, 9rem); line-height: 1; color: var(--stone); margin-bottom: 4px; }
.zone h2, .zone h3 { font-size: 1.5rem; font-weight: 300; }
.towns { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--muted); font-size: 0.97rem; }
.towns li:not(:last-child)::after { content: "/"; margin-inline: 10px; color: #c4bdb3; }
@media (max-width: 760px) { .zones { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 24px 0; font-size: 1.1rem; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 0.4s var(--ease); color: var(--stone); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 64ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Appel final */
.cta-final { text-align: center; display: grid; gap: 24px; justify-items: center; }
.cta-final h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.cta-final .btn-row { justify-content: center; margin-top: 8px; }

/* Pages prestations */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; list-style: none; margin: 48px 0 0; padding: 0; }
.svc-list li { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.svc-list .ic { color: var(--stone); width: 24px; height: 24px; margin-top: 4px; grid-row: span 2; }
.svc-list strong { font-weight: 500; }
.svc-list span { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }
.note { border-left: 1px solid var(--stone); padding: 6px 0 6px 26px; margin-top: 44px; max-width: 62ch; font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.45; }
.locals { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.duo { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; }
.duo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.related .card img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .related { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 28px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #a9a197; border-radius: 0; padding: 10px 0; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field .help { font-size: 0.86rem; color: var(--muted); }
.field .err { font-size: 0.86rem; color: #a3261b; }
.form .btn-row { margin-top: 6px; }
.form-status { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.coords { display: grid; gap: 28px; padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px solid var(--line); min-width: 0; }
.coord { display: grid; gap: 4px; }
.coord strong { font-weight: 400; font-size: 1.1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.coord a { text-decoration: none; }
.coord a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 18px; }
.prose a { color: var(--ink); }

/* Pied de page */
.site-footer { background: var(--char); color: #e9e5df; padding-block: 80px 40px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot h3 { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-d); font-weight: 500; margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot address { font-style: normal; display: grid; gap: 6px; color: var(--muted-d); }
.foot .muted { color: var(--muted-d); max-width: 34ch; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-d); color: var(--muted-d); font-size: 0.85rem; letter-spacing: 0.04em; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* Barre d'action mobile */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--char); color: var(--white); }
  .mobile-bar .btn { border: 0; padding: 18px 10px; }
  .mobile-bar .btn + .btn { background: var(--white); color: var(--ink); }
  body { padding-bottom: 56px; }
}

/* Photos qui se resserrent au défilement (contenu visible au repos) */
.zoom-wrap { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .zoom-in { animation: zoom-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes zoom-in { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.hero-inner { text-shadow: 0 2px 18px rgba(8, 14, 28, 0.55); }

/* ===== Version 3 : effets de la vidéo (21st.dev) et nouveaux blocs ===== */
.bg-white { background: var(--white); }
.signature span { display: block; font-family: var(--sans); font-style: normal; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-d); margin-top: 4px; }
.about-text p:not(.lead):not(.signature) { color: #d5dae3; }
.about-text p { max-width: 62ch; }

/* Hero : la photo s'agrandit au défilement (inspiré de « Scroll Expansion Hero », 21st.dev) */
.xhero { position: relative; height: 240vh; background: var(--char); }
.xhero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--white); --p: 0; }
.xhero-bg { position: absolute; inset: 0; opacity: calc(1 - var(--p)); }
.xhero-bg img { width: 100%; height: 100%; object-fit: cover; }
.xhero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(14, 26, 48, 0.5); }
.xhero-media { --w0: min(340px, 62vw); --h0: min(440px, 50vh); position: absolute; left: 50%; top: 50%; z-index: 1;
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--p)); height: calc(var(--h0) + (100vh - var(--h0)) * var(--p));
  transform: translate(-50%, -50%); overflow: hidden; box-shadow: 0 30px 80px rgba(5, 10, 20, 0.45); }
.xhero-media > img { width: 100%; height: 100%; object-fit: cover; }
.xhero-media::after { content: ""; position: absolute; inset: 0; background: rgba(14, 26, 48, calc(0.2 + 0.35 * var(--p))); }
.xhero-title { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 0.35em; pointer-events: none;
  font-size: clamp(2.3rem, 7.2vw, 6.4rem); font-weight: 300; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1;
  opacity: calc(1 - var(--p) * 1.3); text-shadow: 0 4px 30px rgba(5, 10, 20, 0.5); }
.xw-l { transform: translateX(calc(var(--p) * -55vw)); }
.xw-r { transform: translateX(calc(var(--p) * 55vw)); }
.xhero-sub { position: absolute; left: 0; right: 0; bottom: 11vh; z-index: 2; text-align: center; padding-inline: var(--gutter);
  font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 400; letter-spacing: 0.03em; opacity: calc(1 - var(--p) * 2.2); text-shadow: 0 2px 16px rgba(5, 10, 20, 0.6); }
.xhero-hint { display: none; }
.xhero-end { position: absolute; left: 0; right: 0; bottom: 14vh; z-index: 3; display: grid; justify-items: center; gap: 22px; padding-inline: var(--gutter); text-align: center;
  opacity: clamp(0, calc((var(--p) - 0.78) * 5), 1); visibility: hidden; }
.xhero-sticky.done .xhero-end { visibility: visible; }
.xhero-end .lead { color: var(--white); font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-family: var(--serif); font-style: italic; }
.xhero-end .btn-row { justify-content: center; }
.home .site-header { z-index: 25; }
@media (prefers-reduced-motion: reduce) { .xhero { height: auto; } .xhero-sticky { position: relative; } }

/* Galerie zoom parallaxe (inspirée de « Zoom Parallax », 21st.dev) */
.zp-intro { padding-block: clamp(72px, 10vw, 140px) 40px; }
.zp { position: relative; height: 300vh; }
.zp-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --p: 0; }
.zp-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: scale(calc(1 + (var(--s) - 1) * var(--p))); will-change: transform; }
.zp-img { position: relative; width: 25vw; height: 25vh; }
.zp-img img { width: 100%; height: 100%; object-fit: cover; }
.zp-0 { --s: 4; } .zp-1 { --s: 5; } .zp-2 { --s: 6; } .zp-3 { --s: 5; } .zp-4 { --s: 6; } .zp-5 { --s: 8; } .zp-6 { --s: 9; }
.zp-1 .zp-img { top: -30vh; left: 5vw; width: 35vw; height: 30vh; }
.zp-2 .zp-img { top: -10vh; left: -25vw; width: 20vw; height: 45vh; }
.zp-3 .zp-img { left: 27.5vw; width: 25vw; height: 25vh; }
.zp-4 .zp-img { top: 27.5vh; left: 5vw; width: 20vw; height: 25vh; }
.zp-5 .zp-img { top: 27.5vh; left: -22.5vw; width: 30vw; height: 25vh; }
.zp-6 .zp-img { top: 22.5vh; left: 25vw; width: 15vw; height: 15vh; }
@media (prefers-reduced-motion: reduce) { .zp { height: auto; } .zp-sticky { position: relative; height: 80vh; } }

/* Avant / pendant / après */
.apa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; }
.apa-item { margin: 0; display: grid; gap: 18px; align-content: start; min-width: 0; }
.apa-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.apa-lbl { display: block; font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--stone); margin-bottom: 8px; }
.dark .apa-lbl { color: #d9c7a6; }
.apa-item p { color: var(--muted); max-width: 40ch; }
.dark .apa-item p { color: var(--muted-d); }
@media (max-width: 860px) { .apa { grid-template-columns: 1fr; } .apa-item img { aspect-ratio: 4 / 3; } }

/* Galerie de chantiers */
.grid-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.grid-gal figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.grid-gal img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.grid-gal figcaption { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .grid-gal { grid-template-columns: 1fr 1fr; } }

/* Avis */
.rev-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.rating { display: grid; justify-items: end; gap: 4px; text-decoration: none; }
.rating strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--char); }
.rating > span:last-child { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: #b8975e; }
.stars .ic { width: 16px; height: 16px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 48px; }
.reviews-all { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.review blockquote { margin: 0; font-size: 1.02rem; line-height: 1.7; }
.review figcaption { font-weight: 500; display: grid; gap: 2px; }
.review figcaption span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
@media (max-width: 960px) { .reviews, .reviews-all { grid-template-columns: 1fr; } .rating { justify-items: start; } }

/* Carte Île-de-France */
.map-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: 48px; }
.idf { width: 100%; height: auto; background: var(--white); border: 1px solid var(--line); }
.idf .dep { fill: #ece7de; stroke: #fbfaf8; stroke-width: 1.2; transition: fill 0.3s; }
.idf .dep.on { fill: #22385c; }
.idf .dep:hover { fill: #d9cfbf; }
.idf .dep.on:hover { fill: #2c4673; }
.idf .dep-lbl { font: 400 13px var(--serif); font-style: italic; fill: #8c8379; pointer-events: none; }
.idf .dep-lbl.on { fill: #d9c7a6; }
.idf .pin { cursor: pointer; outline: none; }
.idf .pin .dot { fill: #c7b08a; stroke: #fbfaf8; stroke-width: 1.5; transition: transform 0.3s var(--ease); }
.idf .pin.base .dot { fill: #fbfaf8; stroke: #c7b08a; stroke-width: 2.5; }
.idf .pin .halo { fill: #c7b08a; opacity: 0; transform-box: fill-box; transform-origin: center; }
.idf .pin:hover .dot, .idf .pin:focus .dot, .idf .pin.active .dot { transform: scale(1.5); }
@media (prefers-reduced-motion: no-preference) { .idf .pin .halo { animation: halo 2.6s ease-out infinite; transform-origin: center; } }
@keyframes halo { 0% { opacity: 0.5; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.2); } }
.map-tip { font-family: var(--serif); font-style: italic; font-size: 1.35rem; min-height: 3.2em; margin-bottom: 18px; }
.map-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.map-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding 0.3s var(--ease); }
.map-list li span { color: var(--muted); font-size: 0.92rem; }
.map-list li.active, .map-list li:hover { padding-left: 10px; }
.map-list li.active strong { color: #9a8565; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } }

/* Réseaux */
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line-d); border-radius: 50%; display: grid; place-items: center; color: #e9e5df; transition: background-color 0.3s, color 0.3s; }
.socials a:hover { background: #c7b08a; color: var(--char); }

/* Boutons flottants : WhatsApp et assistant */
.fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; gap: 12px; justify-items: end; }
.fab-wa { width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.fab-wa .ic { width: 28px; height: 28px; }
.fab-chat { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--char); color: var(--white); padding: 14px 20px; border-radius: 999px; font: 500 0.78rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.fab-chat .ic { width: 22px; height: 22px; color: #c7b08a; }
@media (max-width: 760px) { .fab { bottom: calc(70px + env(safe-area-inset-bottom, 0px)); right: 14px; } .fab-chat span { display: none; } .fab-chat { padding: 16px; } }

.chat { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: min(390px, calc(100vw - 28px)); height: min(600px, calc(100vh - 40px));
  background: var(--white); color: var(--ink); display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(5, 10, 20, 0.35); border: 1px solid var(--line); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--char); color: var(--white); }
.chat-head img { border-radius: 50%; }
.chat-head div { display: grid; line-height: 1.3; flex: 1; }
.chat-head span { font-size: 0.75rem; color: var(--muted-d); }
.chat-head button { background: none; border: 0; color: var(--white); cursor: pointer; padding: 6px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 85%; padding: 10px 14px; font-size: 0.97rem; line-height: 1.5; }
.msg.bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--char); color: var(--white); align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .chips a { border: 1px solid var(--char); background: transparent; color: var(--char); padding: 8px 14px; font: 500 0.88rem var(--sans); cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.chips button:hover, .chips a:hover { background: var(--char); color: var(--white); }
.chat-input { display: flex; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 0; padding: 14px 16px; font: inherit; background: var(--white); color: var(--ink); min-width: 0; }
.chat-input input:focus { outline: none; }
.chat-input button { border: 0; background: var(--char); color: var(--white); padding: 0 18px; cursor: pointer; }
@media (max-width: 760px) { .chat { right: 14px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); height: min(560px, calc(100vh - 100px)); } }

.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; }
@media (max-width: 760px) {
  .xhero-title { font-size: 8.4vw; letter-spacing: 0.12em; gap: 0.25em; }
  .xhero-sub { bottom: 24vh; font-size: 0.98rem; }
  .xhero-end { bottom: 20vh; }
}

/* Accueil : le menu reste visible, et prend un fond bleu nuit après la grande photo */
.home .site-header { position: fixed; transition: background-color 0.4s var(--ease), border-color 0.4s; }
.home .site-header.solid { background: var(--char); border-color: transparent; }
.home .mobile-menu[data-open="true"] { background: var(--char); color: var(--white); border-color: var(--line-d); }

/* Partenaires et fournisseurs */
.partners { background: var(--paper); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.partners .label { display: inline-block; margin-bottom: clamp(18px, 3vw, 28px); }
.partners-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track { display: flex; width: max-content; }
.partners-set { display: flex; }
.partners-set span { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--char); opacity: 0.78; white-space: nowrap; padding-right: clamp(22px, 3.2vw, 44px); display: inline-flex; align-items: center; gap: clamp(22px, 3.2vw, 44px); letter-spacing: 0.01em; }
.partners-set span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #c7b08a; }
@media (prefers-reduced-motion: no-preference) { .partners-track { animation: marquee 40s linear infinite; } }
