/* ==========================================================================
   HD Carrelage — feuille de style
   Palette : pierre bleue belge + orange HD sur fond porcelaine.
   Signature : la mosaïque « moulinet » du logo, reprise en grand dans le hero
   et le calepinage des services (joints = var(--joint-w)).
   ========================================================================== */

:root {
  --porcelaine: #f5f6f3;
  --blanc: #ffffff;
  --ciment: #e9ece8;
  --joint: #cfd5d1;
  --gres: #939da2;
  --ardoise: #4a555c;
  --pierre: #1f2a33;
  --pierre-2: #2a3741;
  --encre: #151a1e;
  --orange: #ef8a17;
  --orange-vif: #f59a2e;
  --orange-texte: #a95500;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-texte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --joint-w: 6px;
  --rayon: 3px;
  --wrap: 1240px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 640px) {
  :root { --joint-w: 4px; --header-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--porcelaine);
  color: var(--encre);
  font-family: var(--f-texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--orange); color: var(--encre); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--encre); color: var(--blanc); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gouttiere); }

/* ---------- Typographie ---------- */
.display-xl {
  font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.5rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: .98;
  letter-spacing: -0.025em;
}
.display-l {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 780;
  font-stretch: 118%;
  line-height: 1.02;
}
.display-m {
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem);
  font-weight: 720;
  font-stretch: 112%;
  line-height: 1.1;
}
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: var(--ardoise); max-width: 60ch; }
.mono, .eyebrow, .spec {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
}
.eyebrow { display: inline-flex; align-items: center; gap: .6em; color: var(--orange-texte); }
.eyebrow::before { content: ""; width: .62em; height: .62em; background: var(--orange); flex: none; }
.on-dark .eyebrow { color: var(--orange-vif); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .8em 1.35em;
  border: 2px solid transparent; border-radius: var(--rayon);
  font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--encre); }
.btn--primary:hover { background: var(--orange-vif); }
.btn--ghost { border-color: var(--encre); color: var(--encre); background: transparent; }
.btn--ghost:hover { background: var(--encre); color: var(--blanc); }
.btn--light { border-color: rgba(255,255,255,.55); color: var(--blanc); }
.btn--light:hover { background: var(--blanc); color: var(--pierre); border-color: var(--blanc); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--f-display); font-weight: 700; font-stretch: 108%;
  color: var(--encre); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--blanc); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pierre); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--f-display); font-weight: 800; font-stretch: 115%; font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.brand__name b { color: var(--orange-texte); font-weight: 800; }
.mark-g { fill: var(--pierre); }
.mark-o { fill: var(--orange); }
.on-dark .brand { color: var(--blanc); }
.on-dark .brand__name b { color: var(--orange-vif); }
.on-dark .mark-g { fill: #56636d; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 243, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--joint); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); max-width: 1400px; }
.site-header .brand { margin-right: auto; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--rayon);
  font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--encre);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--ciment); }
.nav__link[aria-current="page"], .nav__link.is-active { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav__link--strong { font-weight: 750; }
.nav__caret { width: 10px; height: 10px; transition: transform .2s; }
.nav__sub {
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 290px;
  list-style: none; padding: 8px; background: var(--blanc);
  border: 1px solid var(--joint); border-radius: var(--rayon);
  box-shadow: 0 18px 40px -18px rgba(21, 26, 30, .35);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }
.nav__sub a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: 2px; text-decoration: none; font-weight: 550; }
.nav__sub a:hover { background: var(--ciment); }
.nav__sub .nav__sub-all { margin-top: 4px; border-top: 1px solid var(--ciment); padding-top: 12px; color: var(--orange-texte); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-weight: 500; font-size: .92rem; text-decoration: none; padding: 10px 8px; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--orange-texte); }
.header-cta { min-height: 44px; padding: .6em 1.05em; font-size: .95rem; white-space: nowrap; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--joint); border-radius: var(--rayon); background: var(--blanc); cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--encre); position: relative; transition: transform .25s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1340px) {
  .header-phone span { display: none; }
}
@media (max-width: 1060px) {
  /* backdrop-filter créerait un bloc conteneur pour le menu en position fixe */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--porcelaine); }
  .burger { display: inline-flex; }
  .header-phone, .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    display: block; overflow-y: auto; padding: 16px var(--gouttiere) 120px;
    background: var(--porcelaine);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--joint); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.15rem; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; }
  .nav__link:hover, .nav__item:focus-within > .nav__link { background: none; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--orange-texte); }
  .nav__caret { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; min-width: 0; background: none; }
  .nav__sub a { padding: 9px 4px; color: var(--ardoise); }
  .nav__mobile-cta { display: grid !important; }
}
.nav__mobile-cta { display: none; gap: 10px; margin-top: 24px; }
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--ciment { background: var(--ciment); }
.section--pierre { background: var(--pierre); color: #e9edee; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 24px 64px; }
.section-head p { color: var(--ardoise); font-size: 1.08rem; max-width: 58ch; }
.on-dark .section-head p, .section--pierre p { color: #c3cbcf; }
.section--pierre h2, .section--pierre h3 { color: var(--blanc); }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 72px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__text { display: grid; gap: 26px; align-content: center; }
.hero__title .l2 { display: block; font-size: .56em; font-stretch: 112%; font-weight: 700; letter-spacing: -0.01em; color: var(--ardoise); margin-top: .35em; line-height: 1.12; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__specs { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ardoise); list-style: none; }
.hero__specs li { display: inline-flex; align-items: center; gap: 8px; }
.hero__specs li::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--orange); }
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mosaic { max-width: 560px; }
}

/* La mosaïque « moulinet » : exactement la géométrie du logo */
.mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: var(--joint-w);
  aspect-ratio: 1 / 1;
  padding: var(--joint-w);
  background: var(--joint);
  border-radius: var(--rayon);
}
.mosaic__tile { position: relative; overflow: hidden; background: var(--ciment); }
.mosaic__tile picture, .mosaic__tile img { width: 100%; height: 100%; }
.mosaic__tile img { object-fit: cover; }
.mosaic__tile--top { grid-column: 1 / 4; grid-row: 1 / 2; }
.mosaic__tile--right { grid-column: 4 / 5; grid-row: 1 / 4; }
.mosaic__tile--center { grid-column: 2 / 4; grid-row: 2 / 4; }
.mosaic__tile--left { grid-column: 1 / 2; grid-row: 2 / 5; }
.mosaic__tile--bottom { grid-column: 2 / 5; grid-row: 4 / 5; }
.mosaic__tile--orange { background: var(--orange); color: var(--encre); }
.mosaic__left-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-mono); font-size: clamp(.62rem, .45rem + .5vw, .8rem); letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.mosaic__cta {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 clamp(12px, 2.4vw, 28px); text-decoration: none; color: var(--encre);
  transition: background-color .2s var(--ease);
}
.mosaic__cta:hover { background: var(--orange-vif); }
.mosaic__cta strong { display: block; font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: clamp(.95rem, .6rem + 1.4vw, 1.55rem); line-height: 1.05; letter-spacing: -0.015em; }
.mosaic__cta-text { display: block; }
.mosaic__cta-sub { display: block; font-family: var(--f-mono); font-size: clamp(.62rem, .5rem + .4vw, .8rem); letter-spacing: .05em; margin-top: 4px; }
.mosaic__cta svg { width: clamp(22px, 3vw, 34px); height: clamp(22px, 3vw, 34px); flex: none; transition: transform .2s var(--ease); }
.mosaic__cta:hover svg { transform: translateX(4px); }
.mosaic__caption {
  position: absolute; left: 10px; bottom: 10px;
  padding: 5px 8px; background: rgba(21, 26, 30, .72); color: var(--blanc);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase;
}
@media (max-width: 480px) { .mosaic__cta-sub, .mosaic__caption { display: none; } }

/* Pose des carreaux au chargement : centre, puis le moulinet tourne */
@media (prefers-reduced-motion: no-preference) {
  .mosaic__tile { animation: poser .7s var(--ease) both; }
  .mosaic__tile--center { animation-delay: .05s; }
  .mosaic__tile--top { animation-delay: .17s; }
  .mosaic__tile--right { animation-delay: .29s; }
  .mosaic__tile--bottom { animation-delay: .41s; }
  .mosaic__tile--left { animation-delay: .53s; }
  @keyframes poser {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Bandeau de spécialités ---------- */
.ribbon { background: var(--pierre); color: #dfe5e7; }
.ribbon__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-block: 18px; list-style: none; }
.ribbon__list li { display: inline-flex; align-items: center; gap: 10px; }
.ribbon__list li::before { content: "+"; color: var(--orange-vif); font-weight: 700; font-family: var(--f-mono); }
.ribbon__list a { text-decoration: none; }
@media (max-width: 640px) { .ribbon__list { display: grid; grid-template-columns: 1fr 1fr; } }
.ribbon__list a:hover { color: var(--blanc); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }

/* ---------- Calepinage des services carrelage ---------- */
.opus {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: var(--joint-w);
  padding: var(--joint-w);
  background: var(--joint);
  border-radius: var(--rayon);
}
.opus__tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 240px; overflow: hidden; background: var(--pierre); color: var(--blanc);
  text-decoration: none; isolation: isolate;
}
.opus__tile picture { position: absolute; inset: 0; z-index: -2; }
.opus__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.opus__tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(21,26,30,0) 15%, rgba(21,26,30,.5) 50%, rgba(21,26,30,.9) 100%); }
.opus__tile:hover img { transform: scale(1.035); }
.opus__body { display: grid; gap: 8px; padding: clamp(18px, 2.4vw, 28px); }
.opus__body h3 { font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); font-weight: 780; font-stretch: 115%; }
.opus__body p { color: #d6dde0; font-size: .98rem; max-width: 46ch; }
.opus__spec { color: var(--orange-vif); }
.opus__more { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; font-size: .95rem; }
.opus__more::after { content: "→"; transition: transform .2s var(--ease); }
.opus__tile:hover .opus__more::after { transform: translateX(4px); }
.opus__tile--a { grid-column: span 7; grid-row: span 2; min-height: 460px; }
.opus__tile--b { grid-column: span 5; }
.opus__tile--c { grid-column: span 5; }
.opus__tile--d { grid-column: span 4; }
.opus__tile--e { grid-column: span 4; }
.opus__tile--f { grid-column: span 4; }
.opus__tile--g { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; background: var(--orange); color: var(--encre); }
.opus__tile--g::after { display: none; }
.opus__tile--g .opus__body p { color: var(--encre); }
.opus__tile--g .opus__spec { color: var(--encre); }
.opus__tile--g .opus__body { grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 28px; }
.opus__tile--g .opus__go { padding-right: clamp(18px, 2.4vw, 28px); font-family: var(--f-display); font-weight: 800; font-stretch: 112%; white-space: nowrap; }
@media (max-width: 1000px) {
  .opus__tile--a { grid-column: span 12; min-height: 380px; }
  .opus__tile--b, .opus__tile--c { grid-column: span 6; }
  .opus__tile--d, .opus__tile--e, .opus__tile--f { grid-column: span 6; }
  .opus__tile--f { grid-column: span 12; }
}
@media (max-width: 640px) {
  .opus { grid-template-columns: 1fr; }
  .opus__tile--a, .opus__tile--b, .opus__tile--c, .opus__tile--d, .opus__tile--e, .opus__tile--f, .opus__tile--g { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
  .opus__tile--a { min-height: 340px; }
  .opus__tile--g { min-height: 0; flex-direction: column; align-items: flex-start; }
  .opus__tile--g .opus__body { grid-template-columns: 1fr; }
  .opus__tile--g .opus__go { padding: 0 18px 18px; }
}

/* ---------- Parachèvement (services secondaires) ---------- */
.finish-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.finish-intro > .stack-l { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 940px) { .finish-intro > .stack-l { position: static; } }
.finish-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--joint-w); background: var(--joint); padding: var(--joint-w); border-radius: var(--rayon); }
.finish-card { display: grid; grid-template-rows: auto 1fr; background: var(--porcelaine); text-decoration: none; transition: background-color .2s; }
.finish-card > div { padding: 16px 18px 20px; }
.finish-card:hover { background: var(--blanc); }
.finish-card picture { overflow: hidden; }
.finish-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.finish-card:hover img { transform: scale(1.03); }
.finish-card h3 { font-size: 1.15rem; font-weight: 750; font-stretch: 110%; margin-bottom: 6px; }
.finish-card p { font-size: .93rem; color: var(--ardoise); line-height: 1.45; }
@media (max-width: 940px) { .finish-intro { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .finish-list { grid-template-columns: 1fr; } }

/* ---------- Méthode (étapes réelles d'un chantier) ---------- */
.method { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.method__figure { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; }
.method__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); }
.method__figure figcaption { margin-top: 12px; color: var(--gres); }
.steps-list { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.14); }
.steps-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.steps-list li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: .9rem; color: var(--orange-vif); padding-top: 4px; }
.steps-list h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 112%; margin-bottom: 8px; }
.steps-list p { color: #c3cbcf; max-width: 56ch; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; } .method__figure { position: static; } .method__figure img { aspect-ratio: 16 / 10; } }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; scrollbar-color: var(--gres) transparent; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rayon); background: var(--ciment); }
.gallery figcaption { display: grid; gap: 2px; margin-top: 12px; }
.gallery figcaption strong { font-family: var(--f-display); font-stretch: 110%; font-weight: 720; font-size: 1.05rem; }
.gallery figcaption span { color: var(--ardoise); }
.gallery-nav { display: flex; gap: 8px; }
.gallery-nav button { width: 48px; height: 48px; border: 2px solid var(--encre); border-radius: var(--rayon); background: none; cursor: pointer; display: grid; place-items: center; }
.gallery-nav button:hover { background: var(--encre); color: var(--blanc); }
.gallery-nav svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .gallery { grid-auto-columns: 78%; } }
.note { color: var(--ardoise); font-size: .92rem; }
.note a { color: var(--orange-texte); font-weight: 600; }

.grid-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-gallery figure { margin: 0; }
.grid-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.grid-gallery figcaption { display: grid; gap: 2px; margin-top: 10px; }
.grid-gallery figcaption strong { font-family: var(--f-display); font-stretch: 110%; font-weight: 720; }
.grid-gallery figcaption span { color: var(--ardoise); }
@media (max-width: 900px) { .grid-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-gallery { grid-template-columns: 1fr; } }

/* ---------- Zone d'intervention ---------- */
.zone { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.communes { columns: 3 150px; column-gap: 24px; list-style: none; margin-top: 8px; }
.communes li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--joint); display: flex; align-items: center; gap: 10px; }
.communes li::before { content: ""; width: 7px; height: 7px; background: var(--gres); flex: none; }
.communes li.is-base { font-weight: 700; }
.communes li.is-base::before { background: var(--orange); }
.address-card { background: var(--pierre); color: #dfe5e7; padding: clamp(24px, 3vw, 36px); border-radius: var(--rayon); display: grid; gap: 18px; }
.address-card h2, .address-card h3 { color: var(--blanc); font-size: 1.35rem; font-stretch: 112%; font-weight: 750; }
.address-card address { font-style: normal; line-height: 1.7; }
.address-card a { color: var(--blanc); }
.address-card .spec { color: var(--gres); }
.contact-lines { display: grid; gap: 12px; list-style: none; }
.contact-lines a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.contact-lines a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.contact-lines svg { width: 20px; height: 20px; color: var(--orange-vif); flex: none; }
@media (max-width: 900px) { .zone { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 2px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--joint); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.5rem; font-weight: 400; color: var(--orange-texte); transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange-texte); }
.faq__answer { padding: 0 0 24px; max-width: 70ch; color: var(--ardoise); }
.faq__answer p + p { margin-top: .8em; }
.faq__answer a { color: var(--orange-texte); font-weight: 600; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-layout .section-head { position: static; } }

/* ---------- Bandeau d'appel ---------- */
.cta-band { background: var(--orange); color: var(--encre); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px 48px; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.cta-band h2 { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.2rem); font-weight: 800; font-stretch: 122%; letter-spacing: -0.025em; }
.cta-band p { margin-top: 14px; font-size: 1.1rem; max-width: 54ch; }
.cta-band__actions { display: grid; gap: 12px; min-width: 280px; }
.cta-band .btn--dark { background: var(--encre); color: var(--blanc); }
.cta-band .btn--dark:hover { background: var(--pierre-2); }
.cta-band .btn--ghost { border-color: var(--encre); }
@media (max-width: 800px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { min-width: 0; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--encre); color: #b9c2c6; padding-top: clamp(56px, 7vw, 88px); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.footer-grid h2 { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--gres); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--blanc); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.footer-about { display: grid; gap: 18px; align-content: start; }
.footer-about address { font-style: normal; line-height: 1.75; }
.footer-about p { max-width: 38ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 28px; border-top: 1px solid #2b3238; font-size: .85rem; color: #8b969b; }
.footer-bottom a { color: #b9c2c6; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #39424a; border-radius: var(--rayon); }
.social a:hover { border-color: var(--orange); color: var(--blanc); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barre d'action mobile ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--joint-w);
    padding: var(--joint-w); padding-bottom: calc(var(--joint-w) + env(safe-area-inset-bottom));
    background: var(--joint);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mbar.is-visible { transform: none; }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; text-decoration: none; font-family: var(--f-display); font-weight: 750; font-stretch: 108%; }
  .mbar svg { width: 18px; height: 18px; }
  .mbar__call { background: var(--pierre); color: var(--blanc); }
  .mbar__quote { background: var(--orange); color: var(--encre); }
  body { padding-bottom: 72px; }
}

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.breadcrumb { padding-top: 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ardoise); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--gres); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-texte); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--encre); }

.page-hero { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 72px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero__text { display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.35rem); font-weight: 800; font-stretch: 122%; letter-spacing: -0.025em; line-height: 1; }
.page-hero__media { position: relative; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); }
.page-hero__media::before { content: ""; position: absolute; right: calc(-1 * var(--joint-w) - 14px); bottom: calc(-1 * var(--joint-w) - 14px); width: 28%; height: 34%; background: var(--orange); z-index: -1; border-radius: var(--rayon); }
.page-hero--simple .page-hero__grid { grid-template-columns: minmax(0, 860px); }
@media (max-width: 900px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__media::before { right: -8px; bottom: -8px; }
}

/* Fiche technique */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--joint-w); background: var(--joint); padding: var(--joint-w); border-radius: var(--rayon); margin: 0; }
.facts div:last-child:nth-child(3n+2) { grid-column: span 2; }
.facts div:last-child:nth-child(3n+1) { grid-column: span 3; }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:last-child:nth-child(n) { grid-column: auto; }
  .facts div:last-child:nth-child(2n+1) { grid-column: span 2; }
}
.facts div { background: var(--blanc); padding: 16px 18px; display: grid; gap: 6px; align-content: start; }
.facts dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-texte); font-weight: 500; }
.facts dd { margin: 0; font-weight: 650; line-height: 1.35; }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 1000px) { .page-body { grid-template-columns: 1fr; } }

/* Contenu rédactionnel */
.prose { max-width: 72ch; }
.prose section + section { margin-top: clamp(40px, 5vw, 64px); }
.prose h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); font-weight: 780; font-stretch: 116%; margin-bottom: 18px; }
.prose h3 { font-size: 1.2rem; font-weight: 720; font-stretch: 110%; margin: 28px 0 10px; }
.prose p { margin: 0 0 1em; color: #2c353b; }
.prose a { color: var(--orange-texte); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--encre); text-decoration-color: var(--orange); }
.prose strong { color: var(--encre); }
.prose ul { list-style: none; margin: 0 0 1.2em; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 28px; color: #2c353b; }
/* Puce = croisillon de carreleur */
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .52em; width: 12px; height: 12px;
  background: linear-gradient(var(--orange), var(--orange)) center / 12px 3px no-repeat, linear-gradient(var(--orange), var(--orange)) center / 3px 12px no-repeat; }
.prose ol.steps { list-style: none; counter-reset: s; margin: 8px 0 1.4em; display: grid; gap: 0; border-top: 1px solid var(--joint); }
.prose ol.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--joint); color: #2c353b; }
.prose ol.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); color: var(--orange-texte); font-size: .9rem; padding-top: 2px; }
.prose ol.steps strong { display: block; font-family: var(--f-display); font-stretch: 108%; }
.prose .callout { margin: 28px 0; padding: 20px 22px 20px 24px; background: var(--ciment); border-left: 5px solid var(--orange); }
.prose .callout p { margin: 0; }
.prose .callout p + p { margin-top: .6em; }
.table-wrap { overflow-x: auto; margin: 8px 0 1.4em; }
.prose table.compare { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 540px; }
.prose table.compare th, .prose table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--joint); vertical-align: top; }
.prose table.compare thead th { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--ardoise); border-bottom: 2px solid var(--encre); }
.prose table.compare tbody th { font-weight: 700; }
.prose figure { margin: 32px 0; }
.prose figure img { width: 100%; border-radius: var(--rayon); aspect-ratio: 3 / 2; object-fit: cover; }
.prose figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ardoise); }

/* Carte latérale */
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; padding: 26px; background: var(--pierre); color: #dfe5e7; border-radius: var(--rayon); }
.aside-card h2 { color: var(--blanc); font-size: 1.4rem; font-weight: 780; font-stretch: 115%; }
.aside-card p { color: #c3cbcf; font-size: .98rem; }
.aside-card .contact-lines a { color: var(--blanc); }
.aside-card .brand__mark { width: 30px; height: 30px; }
@media (max-width: 1000px) { .aside-card { position: static; } }

/* Services liés */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--joint-w); background: var(--joint); padding: var(--joint-w); border-radius: var(--rayon); }
.related a { display: grid; grid-template-rows: auto 1fr; background: var(--porcelaine); text-decoration: none; transition: background-color .2s; }
.related a:hover { background: var(--blanc); }
.related img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.related div { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.related h3 { font-size: 1.15rem; font-weight: 750; font-stretch: 110%; }
.related p { color: var(--ardoise); font-size: .93rem; }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }

/* Hubs : liste de services en cartes */
.service-rows { display: grid; gap: var(--joint-w); background: var(--joint); padding: var(--joint-w); border-radius: var(--rayon); }
.service-row { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 14px; padding-right: 28px; background: var(--porcelaine); text-decoration: none; transition: background-color .2s; }
.service-row:hover { background: var(--blanc); }
.service-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-row h2, .service-row h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); font-weight: 780; font-stretch: 115%; margin: 6px 0 8px; }
.service-row p { color: var(--ardoise); max-width: 62ch; }
.service-row .spec { color: var(--orange-texte); }
.service-row__go { font-family: var(--f-display); font-weight: 750; white-space: nowrap; border-bottom: 2px solid var(--orange); }
@media (max-width: 860px) { .service-row { grid-template-columns: 1fr; padding-right: 14px; gap: 14px; } .service-row__go { justify-self: start; margin: 0 6px 8px; } .service-row > div { padding: 0 6px; } }

/* ---------- Formulaire ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; padding: clamp(22px, 3vw, 36px); background: var(--blanc); border: 1px solid var(--joint); border-radius: var(--rayon); }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field .label { font-weight: 650; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ardoise); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--encre);
  background: var(--porcelaine); border: 1.5px solid var(--joint); border-radius: var(--rayon);
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gres); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--encre); background: var(--blanc); box-shadow: 0 0 0 3px rgba(239, 138, 23, .35); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .93rem; color: var(--ardoise); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.check a { color: var(--orange-texte); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form__foot .note { max-width: 40ch; }
.alert { grid-column: 1 / -1; padding: 14px 16px; border-left: 5px solid #b3261e; background: #fbeceb; color: #5c1410; font-weight: 600; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */
.mt-l { margin-top: 28px; }
.mb-s { margin-bottom: 18px; }
.mb-m { margin-bottom: 24px; }
.pt-0 { padding-top: 0; }
.stack-l > * + * { margin-top: 28px; }
.center-text { text-align: center; }
.page-404 { min-height: 60vh; display: grid; align-content: center; gap: 22px; }
.legal h2 { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .mbar, .cta-band, .site-footer, .aside-card { display: none !important; }
  body { background: #fff; }
}
.opus__spec-dark { color: var(--orange-texte); margin-bottom: 6px; }

/* Libellés techniques dans les cartes : priment sur les styles de paragraphe */
.opus__body .opus__spec { color: var(--orange-vif); font-size: .74rem; }
.opus__tile--g .opus__body .opus__spec { color: var(--encre); }
.finish-card .spec, .related .spec { color: var(--orange-texte); font-size: .72rem; }
