/* FPG PLOMBERIE — rénovation intérieure Paris 5 */
:root {
  --ink: #0a0a0a;
  --ink-elevated: #141414;
  --paper: #f6f3ec;
  --paper-deep: #ebe6dc;
  --white: #fffdf9;
  --gold: #c4a35a;
  --gold-bright: #dbc88a;
  --gold-dim: #8a7340;
  --red: #5c1818;
  --text: #1c1c1c;
  --text-muted: #4a4844;
  --line: rgba(10, 10, 10, 0.12);
  --line-gold: rgba(196, 163, 90, 0.45);
  --font-display: "Libre Caslon Display", "Times New Roman", serif;
  --font-body: "Karla", system-ui, sans-serif;
  --space: clamp(1rem, 2.5vw, 1.5rem);
  --container: min(1120px, 100% - 2rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 1rem);
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--gold-dim);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.eyebrow--light {
  color: var(--gold-bright);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
}

.lede {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 38em;
}

.lede--inv {
  color: rgba(255, 253, 249, 0.78);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

a.btn,
a.btn:hover,
a.btn:focus,
a.btn:focus-visible {
  text-decoration: none;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 253, 249, 0.45);
}

.btn--outline-light:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn--outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--call {
  background: var(--ink);
  color: var(--gold-bright);
  border-color: var(--ink);
}

.btn--call:hover {
  background: var(--ink-elevated);
  color: var(--white);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 1rem 1.5rem;
  font-size: 0.8125rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: max(1rem, calc((100% - 1120px) / 2));
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 163, 90, 0.15);
  transition: background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.94);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--white);
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.brand__name span {
  color: var(--gold);
}

.brand__tag {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.55);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-phone {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-bright);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.header-phone--mobile {
  display: inline;
  font-size: 0.6875rem;
  padding: 0.35rem 0;
}

@media (min-width: 720px) {
  .header-phone {
    display: inline;
  }

  .header-phone--mobile {
    display: none;
  }
}

@media (max-width: 479px) {
  .brand__tag {
    display: none;
  }
  .header-actions .btn--gold {
    padding-inline: 0.85rem;
    font-size: 0.6875rem;
  }
}

/* Hero */
#main {
  display: block;
  width: 100%;
}

.hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.75) 42%,
    rgba(10, 10, 10, 0.35) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 6vh, 4rem) 1rem clamp(2.5rem, 8vh, 4.5rem);
  box-sizing: border-box;
}

@media (min-width: 1160px) {
  .hero__inner {
    padding-left: calc((100% - 1120px) / 2);
    padding-right: calc((100% - 1120px) / 2);
  }
}

.hero__content {
  display: block;
  width: 100%;
  max-width: 40rem;
}

.hero__rule {
  display: block;
  width: 4.5rem;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  display: block;
  margin: 0 0 1rem;
  color: var(--white);
  width: auto;
  max-width: none;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.12;
}

.hero__intro {
  display: block;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 253, 249, 0.82);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 719px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 1.25rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(196, 163, 90, 0.25);
}

.hero__trust li {
  font-size: 0.8125rem;
  color: rgba(255, 253, 249, 0.7);
  white-space: nowrap;
}

@media (max-width: 599px) {
  .hero__trust li {
    white-space: normal;
    width: 100%;
  }
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.section--paper {
  background: var(--paper);
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--dark .lede {
  color: rgba(255, 253, 249, 0.72);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 40rem;
}

.section-head--row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .section-head--row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

/* Ensemble — prestations éditoriales */
.ensemble {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.ensemble__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.ensemble__item:last-child {
  border-bottom: 0;
}

.ensemble__index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-dim);
  line-height: 1;
}

.ensemble__title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.ensemble__aside {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--ink);
  color: var(--white);
}

.ensemble__aside p {
  margin: 0 0 1rem;
  color: rgba(255, 253, 249, 0.78);
}

@media (min-width: 900px) {
  .ensemble-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
  .ensemble__aside {
    margin-top: 0;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* Aménagement */
.split-dark {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .split-dark {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.amenagement-list {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.amenagement-list li {
  padding-left: 1.25rem;
  position: relative;
  color: rgba(255, 253, 249, 0.85);
  font-size: 0.9875rem;
}

.amenagement-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 1px;
  background: var(--gold);
}

.amenagement-visual {
  position: relative;
  min-height: 22rem;
  border: 1px solid rgba(196, 163, 90, 0.25);
}

.amenagement-visual img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.amenagement-visual__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(10, 10, 10, 0.75);
  color: rgba(255, 253, 249, 0.55);
}

/* Piliers */
.piliers {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pilier {
  display: grid;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pilier {
    grid-template-columns: 6rem 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
  }
}

.pilier__num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
}

.pilier__label {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 600;
}

.pilier h3 {
  margin-bottom: 0.5rem;
}

.pilier p {
  margin: 0;
  color: var(--text-muted);
  max-width: 28em;
}

/* Salle de bain */
.bath-block {
  display: grid;
  background: var(--ink);
  color: var(--white);
}

@media (min-width: 900px) {
  .bath-block {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 28rem;
  }
}

.bath-block__media {
  position: relative;
  min-height: 16rem;
}

.bath-block__media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

.bath-block__body {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bath-list {
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 253, 249, 0.75);
}

.bath-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.bath-list li + li::before {
  content: "·";
  color: var(--gold-dim);
}

/* Réalisations placeholders */
.gallery-editorial {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .gallery-editorial {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
  }
  .gallery-editorial__a {
    grid-row: span 2;
  }
}

.gallery-slot {
  position: relative;
  min-height: 14rem;
  background: var(--paper-deep);
  border: 1px dashed var(--line);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-slot--tall {
  min-height: 20rem;
}

.gallery-slot__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Process */
.process {
  counter-reset: step;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.process__step {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
}

.process__step:last-child {
  border-bottom: 0;
}

.process__step h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.process__step h3::before {
  counter-increment: step;
  content: counter(step) ". ";
  color: var(--gold-dim);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.process__step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9875rem;
}

@media (min-width: 768px) {
  .process {
    grid-template-columns: repeat(3, 1fr);
  }
  .process__step {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .process__step:last-child {
    border-right: 0;
  }
}

/* Réassurance band */
.reassurance-band {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reassurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reassurance-grid li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1rem;
}

.reassurance-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}

/* Avis slot (vide) */
.avis-slot {
  padding: 2.5rem;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--white);
}

.avis-slot[hidden] {
  display: none;
}

/* Finale + form */
.finale {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(4rem, 10vw, 6.5rem);
}

.finale-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .finale-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.finale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.form-panel {
  background: var(--white);
  color: var(--text);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border: 1px solid var(--line-gold);
}

.form-panel h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin-bottom: 0.5rem;
}

.form-panel .lede {
  margin-bottom: 1.5rem;
  font-size: 0.9875rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .span-2 {
    grid-column: span 2;
  }
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input,
select,
textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--text);
  border-radius: 0;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* Mid CTA */
.mid-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.mid-cta--dark {
  border-top-color: rgba(196, 163, 90, 0.2);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 253, 249, 0.55);
  padding: 1.5rem max(1rem, calc((100% - 1120px) / 2));
  font-size: 0.8125rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-bar a {
  color: var(--gold-bright);
  text-decoration: none;
}

.footer-bar a:hover {
  color: var(--white);
}

/* Float call */
.float-call {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.float-call__num {
  display: none;
}

@media (min-width: 480px) {
  .float-call__num {
    display: inline;
  }
}

body.has-footer-visible .float-call {
  bottom: 5rem;
}

/* Reveal — visible by default; anim only when JS is active */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

html.js .reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Legal pages */
.is-legal .page-hero,
.page-merci .page-hero {
  padding: calc(var(--header-h) + 3rem) 1rem 2rem;
  max-width: 40rem;
  margin-inline: auto;
}

.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  font-size: 0.9375rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.merci-box {
  max-width: 32rem;
  margin: 0 auto 4rem;
  padding: 0 1rem;
  text-align: center;
}

.merci-box .hero-actions {
  justify-content: center;
}
