/* Chapitres visuels sous le hero. */
main > section:not(.hero) h2 em, [data-profile-panel] > section h2 em { color: #98633c; }
.section-heading > p:last-child,
.method-intro > p,
.commitment-title > p:last-child,
.faq-grid > div:first-child > p:last-child,
.contact-intro > p:not(.eyebrow),
.comparison-head > p,
.about .lead-copy {
  font-size: var(--section-copy-size);
  line-height: 1.65;
}
.proof { overflow: visible; margin-top: -2px; padding-bottom: 0; }
#realisations { scroll-margin-top: 1rem; }
.proof-intro { display: block; margin-bottom: 4rem; }
.proof-intro h2 { max-width: none; font-size: var(--section-title-size); line-height: 1.02; text-align: center; }
.proof-intro h2 em { display: inline; }
.proof-copy { display: block; width: 100%; max-width: none; margin-top: 2rem; }
.proof-copy p { font-size: var(--section-copy-size); line-height: 1.65; margin-bottom: 1.25rem; }
.proof-gallery { display: grid; width: min(90%, 1440px); height: auto; margin: 0 auto; grid-template-columns: 1fr; grid-template-rows: auto; gap: 1.5rem; }
.proof-gallery figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; background: var(--ink); }
.proof-gallery img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--photo-scale, 1)); transition: none; }
.proof-gallery figure:hover img { transform: scale(var(--photo-scale, 1)); }
.proof-gallery figcaption { position: absolute; inset: auto 0 0; color: white; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; min-height: 75%; padding: 3rem 5%; background: linear-gradient(transparent, rgba(4,13,17,.88)); }
.proof-gallery figcaption .gallery-index { color: #eee4da; font-size: .65rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.proof-gallery figcaption strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 4.9vw, 5.2rem); line-height: 1.05; letter-spacing: -.035em; }
.proof-gallery figcaption em { color: #dfbd9a; }
.proof-gallery figcaption > span:last-child { color: #f1eee8; font-size: .85rem; max-width: 30rem; }
.proof-outro { padding: 2rem 0 6rem; }
.proof-outro p { margin: 0; font-size: clamp(1.2rem, 2.3vw, 2.2rem); line-height: 1.5; letter-spacing: -.045em; text-align: right; }
.proof-outro strong { color: var(--ink); font-weight: 600; }
.section-transition {
  --divider-from: var(--paper);
  --divider-to: var(--sand);
  display: block;
  width: 100%;
  height: clamp(5rem, 7vw, 7rem);
  margin: -2px 0 -4px;
  overflow: visible;
  background: var(--divider-from);
  color: var(--divider-to);
  fill: currentColor;
}
body[data-profile="professionnel"] .section-transition { --divider-from: var(--ink); }
.projects { position: relative; padding-block: 6rem; overflow: hidden; background: var(--sand); }
.projects .section-heading { grid-template-columns: 1.2fr .65fr; gap: 2rem 8%; }
.projects .section-heading h2 { grid-column: 1 / -1; width: 100%; max-width: none; font-size: var(--section-title-size); }
.scenario-list { display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 0; margin: 0; padding: 0; overflow: visible; }
.scenario:nth-child(n) { grid-column: auto; grid-row: auto; }
.scenario { display: grid; grid-template-columns: 1fr; align-items: start; gap: .6rem 1rem; width: auto; height: auto; min-height: 0; padding: 1.8rem 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); overflow: visible; }
.scenario:last-child { border-bottom: 1px solid var(--line); }
.scenario::before { display: none; }
.scenario::after { display: none; }
.scenario h3 { display: flex; align-items: center; gap: clamp(.8rem, 1.4vw, 1.35rem); max-width: none; margin: 0; font-family: var(--sans); font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.8rem); letter-spacing: -.055em; line-height: 1.2; }
.scenario-icon { width: clamp(1.65rem, 2.4vw, 2.35rem); height: clamp(1.65rem, 2.4vw, 2.35rem); flex: 0 0 auto; color: #98633c; }
.scenario p { max-width: 34rem; color: #575c5c; font-size: var(--section-copy-size); line-height: 1.65; }
.membrane { background: var(--ivory); overflow: clip; }
.membrane-heading { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.membrane-heading h2 { max-width: none; }
.membrane-heading > p { max-width: none; margin-bottom: 0; font-size: var(--section-copy-size); line-height: 1.75; }
.membrane-layout { align-items: center; gap: 7%; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.material-diagram { min-width: 0; margin: 0; padding: clamp(1rem, 2.5vw, 2.5rem); border: 1px solid #a9784f30; background: #f8f6f180; }
.material-diagram img { height: auto; margin-bottom: 1.25rem; }
.material-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); counter-reset: material; list-style: none; font-size: .7rem; line-height: 1.6; }
.material-legend li { counter-increment: material; }
.material-legend li::before { display: block; margin-bottom: .45rem; content: counter(material, decimal-leading-zero); color: #865733; font-size: .65rem; }
.membrane-features article { padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.membrane-features article:first-child { padding-top: 0; }
.membrane-features article:last-child { padding-bottom: 0; border: 0; }
.membrane-features h3 { margin-bottom: .7rem; font-family: var(--sans); font-size: 1.15rem; font-weight: 600; letter-spacing: -.025em; }
.membrane-features p { margin: 0; font-size: var(--section-copy-size); line-height: 1.75; }
.comparison { box-shadow: none; border-top: 1px solid var(--line); background: transparent; padding-inline: 0; }
.comparison-head { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
.comparison-head h3 { width: 100%; max-width: none; font-size: var(--section-title-size); line-height: 1.02; letter-spacing: -.035em; }
.membrane > .comparison { padding-top: clamp(3rem, 6vw, 6rem); }
.comparison-head h3 em { color: #98633c; font-weight: 400; }
.pro-scope .comparison-head h3 em { color: var(--copper-light); }
.comparison-head p { width: 100%; max-width: none; }
.comparison thead th:last-child, .comparison td:last-child { background: #a9784f0d; }
.comparison thead th { color: #865733; }
/* Les finitions constituent une section pleine largeur indépendante. */
.pro-finishes { background: var(--sand); color: var(--ink); }
body[data-profile="professionnel"] .pro-finishes .comparison { margin-top: 0; padding: 0; border: 0; background: transparent; }
.pro-finishes .comparison-head h2 { margin-bottom: 0; }
body[data-profile="professionnel"] .pro-finishes p,
body[data-profile="professionnel"] .pro-finishes .comparison td { color: var(--slate); }
body[data-profile="professionnel"] .pro-finishes .comparison th,
body[data-profile="professionnel"] .pro-finishes .comparison td { border-color: var(--line); }
.table-scroll { border-bottom: 1px solid var(--line); }
body[data-profile="professionnel"] .proof-outro strong { color: var(--ivory); }
body[data-profile="professionnel"] .proof h2 em { color: var(--copper-light); }
@media (max-width: 767px), (min-width: 1024px) {
  .proof-gallery figure { position: sticky; top: 6rem; }
  .proof-gallery figure::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .82) 46%, rgba(0, 0, 0, .2) 100%);
    content: "";
    opacity: var(--cover-progress, 0);
    pointer-events: none;
    will-change: opacity;
  }
  .proof-gallery figcaption { z-index: 2; }
}
@media (min-width: 1024px) {
  .membrane-heading h2 { white-space: nowrap; font-size: clamp(2rem, 3.9vw, 4rem); }
  .proof-gallery { width: min(80%, 1440px, calc((100svh - 8rem) * 4 / 3)); gap: 14svh; padding-bottom: 3rem; }
  .proof-gallery figcaption { padding: 4rem 6%; }
  .proof-intro { position: relative; }
  .proof-intro h2 { white-space: nowrap; }
  .proof-copy { margin-top: 2.5rem; }
  .proof-copy p { max-width: 65rem; margin-inline: auto; font-size: var(--section-copy-size); text-align: center; }
  .projects .section-heading h2 { font-size: var(--section-title-size); text-wrap: nowrap; white-space: nowrap; }
  .pro-needs .section-heading h2 { white-space: normal; }
  .pro-scope .section-heading { grid-template-columns: 1fr; }
  .pro-scope .section-heading h2,
  .comparison-head h3 { width: 100%; max-width: none; white-space: nowrap; }
  .pro-scope .section-heading > p:last-child { width: 100%; max-width: none; }
  .projects .section-heading > p:last-child {
    grid-column: 1 / -1; max-width: none; margin: 0;
    font-size: var(--section-copy-size); text-align: left; white-space: normal;
  }
  .scenario { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem; padding-block: 2.5rem; }
  .scenario p { grid-column: 2; }
  .scenario h3 { transition: transform .35s var(--ease), color .35s; }
  .scenario:hover h3 { transform: translateX(.5rem); color: #865733; }
}
@media (max-width: 1023px) {
  .projects .section-heading { grid-template-columns: 1fr; }
  .membrane-layout { grid-template-columns: 1fr; gap: 4rem; }
  .material-diagram { width: 100%; max-width: 38rem; margin-inline: auto; }
}
@media (max-width: 767px) {
  .proof-intro h2 { font-size: var(--section-title-size); }
  .proof-copy { margin-left: 0; }
  .proof-gallery { width: min(90%, calc((100svh - 6.5rem) * 4 / 3)); gap: 10svh; padding-bottom: 2rem; }
  .proof-gallery figure { top: 5.25rem; }
  .proof-gallery figcaption { gap: .5rem; padding: 1.1rem; }
  .proof-gallery figcaption strong { font-size: clamp(1.3rem, 5.8vw, 2.5rem); }
  .proof-gallery figcaption .gallery-index { font-size: .55rem; }
  .proof-gallery figcaption > span:last-child { font-size: .72rem; line-height: 1.45; }
  .proof-outro { padding-block: 3rem 4.5rem; }
  .projects { padding-block: 4.5rem; }
  .projects .section-heading { gap: 1.5rem; margin-bottom: 2.5rem; }
  .scenario h3 { font-size: 1.6rem; }
  .material-legend { gap: .5rem; font-size: .65rem; }
  .membrane-features h3 { font-size: 1.1rem; }
  .comparison { width: 90%; margin-top: 4rem; padding: 2rem 0 0; }
  .comparison-head { gap: 1rem; }
  .table-scroll { margin: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-gallery figure:nth-child(n) { position: relative; top: auto; }
  .proof-gallery figure::after { display: none; }
  .proof-gallery img { transform: none; }
}

@media (max-width: 767px) {
  .comparison .table-scroll { margin: 0; padding: 0; overflow: visible; }
  .comparison table, .comparison tbody { display: block; min-width: 0; }
  .comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .comparison tbody tr { display: block; padding-block: 1.25rem; border-top: 1px solid var(--line); }
  .comparison tbody th, .comparison td { display: block; width: 100%; padding: 0; border: 0; }
  .comparison tbody th { margin-bottom: .65rem; font-size: .85rem; }
  .comparison td + td { margin-top: .55rem; }
  .comparison td:last-child { background: transparent; }
  body[data-profile="professionnel"] .pro-finishes .comparison tbody tr { border-color: var(--line); }
}
