:root {
  --ink: #182923;
  --paper: #f7f8f4;
  --night: #111a17;
  --lime: #dcf3a4;
  --line: #dce3da;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .3em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #83a857; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: var(--night); color: white; }
.home .site-header { position: absolute; inset: 0 0 auto; z-index: 2; background: transparent; }
.nav { min-height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; }
.nav nav { display: flex; gap: clamp(18px, 3vw, 41px); }
.nav nav a { text-decoration: none; font-size: .94rem; color: #f0f3ee; }
.nav nav a:hover { text-decoration: underline; }
.brand { display: inline-flex; gap: 9px; align-items: center; justify-self: start; text-decoration: none; font-size: 1.14rem; font-weight: 720; letter-spacing: -.05em; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 35px; border: 1px solid var(--lime); border-radius: 5px 5px 12px 5px; color: var(--lime); font-size: 1rem; letter-spacing: -.065em; font-weight: 850; }
.nav > .button { justify-self: end; white-space: nowrap; font-size: .9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 99px; background: var(--lime); color: #19231a; text-decoration: none; font: inherit; font-weight: 750; padding: 13px 22px; cursor: pointer; }
.button:hover { background: #effacb; }
.button:disabled { opacity: .64; cursor: default; }
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(610px, 88svh, 870px); background: var(--night); color: white; text-align: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; z-index: -1; background: url(mosaique.jpg) center/cover no-repeat; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#111a17d9 0%, transparent 36%, transparent 70%, #111a17f0 100%), radial-gradient(ellipse at center, #101916f7 4%, #101916e8 37%, #10191660 100%); }
.intro { padding: 139px 0 100px; }
.eyebrow { color: #4f663b; font-weight: 750; text-transform: uppercase; font-size: .875rem; letter-spacing: .14em; margin: 0 0 18px; }
.hero .eyebrow, .proof .eyebrow { color: var(--lime); }
h1, h2, h3 { line-height: 1.07; letter-spacing: -.046em; margin: 0; }
h1 { font-size: clamp(2.8rem, 5.85vw, 5.75rem); }
.hero h1 em { display: inline-block; color: var(--lime); font-size: .77em; font-weight: 650; letter-spacing: -.058em; }
.hero .intro > p:not(.eyebrow) { max-width: 46ch; margin: 25px auto 30px; color: #edf2ea; font-size: clamp(1.03rem, 2vw, 1.19rem); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 26px; }
.hero-actions > a:last-child { font-weight: 650; }
.photo-note { position: absolute; right: 20px; bottom: 13px; color: #dce6da; font-size: .83rem; }
.section { padding-block: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); }
h3 { font-size: 1.42rem; }
.grid, .proof { display: grid; gap: 20px; }
.grid { grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
.grid article, .proof section, form { padding: clamp(23px, 3vw, 40px); border-radius: 15px; }
.grid article { background: white; border: 1px solid var(--line); }
.grid p, .proof p:last-child { margin-bottom: 0; }
.band { background: var(--night); color: white; }
.proof { grid-template-columns: 1fr 1fr; }
.proof section { background: #1d2a23; border: 1px solid #304137; }
.proof section p:last-child { color: #dce7de; }
.bottom, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
footer { border-top: 1px solid var(--line); padding-block: 23px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(25px, 7vw, 100px); }
form { background: white; border: 1px solid var(--line); }
label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 650; }
input, textarea { width: 100%; border: 1px solid #a5b2a4; border-radius: 6px; background: white; padding: 10px; font: inherit; color: inherit; }
textarea { resize: vertical; }
.notice, #status { font-size: .9rem; }
@media (max-width: 800px) {
  .nav { grid-template-columns: 1fr auto; row-gap: 11px; padding-block: 15px; }
  .nav nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; }
  .intro { padding-top: 163px; }
}
@media (max-width: 610px) {
  .wrap { width: calc(100% - 32px); }
  .nav { column-gap: 10px; }
  .nav nav { gap: 17px; }
  .nav nav a { font-size: .84rem; }
  .nav > .button { font-size: .81rem; padding: 10px 13px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 33px; height: 31px; }
  .hero-actions { flex-direction: column; gap: 17px; }
  .grid, .proof, .contact { grid-template-columns: 1fr; }
  .bottom { align-items: flex-start; flex-direction: column; }
}

/* En-tête clair, panneau d’accueil photographique et sections éditoriales. */
:root {
  --paper: #faf9f6;
  --night: #1b241e;
  --ink: #232a23;
  --lime: #e4eccf;
  --line: #e5e3db;
}
.site-header, .home .site-header {
  position: sticky;
  inset: 0 0 auto;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 #232a231a;
}
.nav { min-height: 79px; }
.nav nav a { color: #414940; }
.brand-mark { background: var(--night); color: #f0f4e7; border: 0; }
.nav > .button, .bottom .button, form .button { background: var(--night); color: white; }
.nav > .button:hover, .bottom .button:hover, form .button:hover { background: #37463a; }
.hero {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
  min-height: clamp(500px, 67svh, 690px);
  border-radius: 24px;
}
.hero-image { background-image: url(interieur.jpg); background-position: center 53%; }
.hero-image::after {
  background: radial-gradient(ellipse at 50% 39%, #172219dc 8%, #17221992 51%, #1722194f 100%), linear-gradient(0deg, #19231eba, transparent 75%);
}
.intro { padding: 75px 0 83px; }
.hero h1 { font-size: clamp(2.55rem, 6.4vw, 6.1rem); letter-spacing: -.065em; }
.hero h1 em { font-size: .97em; font-style: normal; font-weight: inherit; }
.hero .eyebrow { color: #f3f5eb; }
.hero .intro > p:not(.eyebrow) { max-width: 47ch; }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 25px; align-items: end; }
.section-head p { margin: 0; max-width: 44ch; color: #4e594d; }
.grid article { background: #fffefa; border-radius: 12px; }
.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; padding-block: 0; overflow: hidden; border-radius: 19px; background: #e9eadd; }
.showcase figure { position: relative; margin: 0; min-height: 310px; }
.showcase img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.showcase figcaption { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 4px; background: var(--paper); font-size: .83rem; }
.showcase-copy { align-self: center; padding: clamp(27px, 5vw, 72px); }
.showcase-copy p:last-child, .reviews p { color: #4e594d; }
.reviews { padding-bottom: 40px; }
.bottom { border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .nav { min-height: 96px; }
  .hero { width: calc(100% - 24px); }
  .intro { padding: 64px 0 78px; }
}
@media (max-width: 610px) {
  .hero { border-radius: 15px; }
  .section-head, .showcase { grid-template-columns: 1fr; }
  .showcase figure { min-height: 235px; }
}

#avis {
  padding-block: clamp(50px, 8vw, 112px);
  background: radial-gradient(ellipse at 97% 0%, #66473555, transparent 45%), #18221c;
  color: #faf9f4;
}
.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  grid-template-areas: "heading review" "controls review";
  gap: 26px clamp(28px, 7vw, 100px);
  align-content: center;
}
.reviews-heading { grid-area: heading; align-self: end; }
.reviews-heading h2 { font-size: clamp(2.65rem, 5.8vw, 5rem); }
.reviews-heading em { color: #dce9bd; font-style: normal; }
.review-badge { display: inline-block; margin: 0 0 23px; padding: 8px 15px; border-radius: 8px; background: #faf9f4; color: #252f26 !important; font-weight: 700; font-size: .9rem; }
.review { grid-area: review; align-self: center; }
.review-stars { color: #f9c365 !important; margin: 0 0 17px; letter-spacing: .175em; }
.review blockquote { margin: 0; font-size: clamp(1.55rem, 3vw, 2.65rem); font-weight: 620; letter-spacing: -.035em; line-height: 1.23; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 25px; }
.review-meta p { margin: 2px 0 0; color: #cbd5c8; font-size: .92rem; }
.review-link, .review-controls button { background: #faf9f4; color: #222e24; border: 0; border-radius: 999px; }
.review-link { padding: 9px 15px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.review-controls { grid-area: controls; display: flex; align-items: center; gap: 15px; }
.review-controls[hidden] { display: none; }
.review-controls button { width: 44px; height: 44px; cursor: pointer; font: 1.28rem system-ui, sans-serif; }
.review-controls button:hover, .review-link:hover { background: #dce9bd; }
@media (max-width: 700px) {
  .reviews-layout { grid-template-columns: 1fr; grid-template-areas: "heading" "review" "controls"; gap: 25px; }
  .reviews-heading h2 br { display: none; }
}

.projects {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.8fr);
  gap: clamp(25px, 5vw, 70px);
  align-items: center;
}
.projects-heading > p:last-of-type, .project > p { color: #4e594d; }
.project-controls { display: flex; align-items: center; gap: 15px; margin-top: 23px; }
.project-controls[hidden] { display: none; }
.project-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; color: var(--ink); font: 1.28rem system-ui, sans-serif; }
.project-controls button:hover { background: var(--lime); }
.project-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(7px, 1.3vw, 16px); margin-bottom: 20px; }
.project-photos figure { position: relative; margin: 0; overflow: hidden; border-radius: 13px; background: #e9eadd; }
.project-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.project-photos figcaption { position: absolute; top: 9px; left: 9px; padding: 4px 9px; border-radius: 5px; background: #fffefa; color: var(--ink); font-size: .83rem; font-weight: 750; }
.project-photos figure:last-child figcaption { background: var(--lime); }
.project > p { margin: .4em 0 0; }
@media (max-width: 750px) {
  .projects { grid-template-columns: 1fr; }
  .project-photos figure { border-radius: 8px; }
}

/* Laisser les titres visibles sous le menu lors de la navigation. */
html { scroll-padding-top: 95px; }
@media (max-width: 800px) {
  html { scroll-padding-top: 134px; }
}

/* Navigation intégrée à la photo d’accueil. */
.site-header, .home .site-header {
  color: #fff;
  background: #1b241e;
  box-shadow: none;
  transition: background-color .22s ease, box-shadow .22s ease;
}
.home .site-header { margin-bottom: -79px; background: transparent; }
.home .site-header.is-scrolled { background: #1b241e; box-shadow: 0 5px 22px #111a1740; }
.site-header .nav nav a, .nav-services summary { color: #f8faf4; }
.site-header .brand-mark { border: 1px solid #e4eccf; background: transparent; }
.site-header .nav > .button { background: #e4eccf; color: #19231a; }
.site-header .nav > .button:hover { background: #f1f6e5; }
.home .hero { width: 100%; border-radius: 0; }
.home .hero-image::after { box-shadow: inset 0 125px 90px -75px #111a17eb; }
.home .intro { padding-top: 145px; }
.nav-services { position: relative; }
.nav-services summary { cursor: pointer; list-style: none; font-size: .94rem; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after { content: '+'; display: inline-block; margin-left: .5em; color: #e4eccf; }
.nav-services[open] summary::after { content: '−'; }
.nav-panel {
  position: absolute;
  top: calc(100% + 13px);
  left: -13px;
  min-width: 225px;
  padding: 8px;
  background: #263329;
  border: 1px solid #4a5749;
  border-radius: 12px;
  box-shadow: 0 8px 24px #111a1755;
}
.nav-panel a { display: block; padding: 10px 12px; border-radius: 6px; }
.nav-panel a:hover { background: #3b4b3d; }
@media (max-width: 800px) {
  .home .site-header { margin-bottom: -96px; }
  .home .intro { padding-top: 155px; }
  .nav-panel { left: 0; }
}
@media (max-width: 610px) {
  .nav-services summary { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .home .site-header { transition: none; }
}

/* Signature typographique SG Rénovation. */
.site-header .brand { gap: .29em; font-weight: 450; letter-spacing: -.045em; }
.site-header .brand-mark {
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  color: inherit;
  font-size: 1.58em;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.09em;
}

/* Prestations */
.services {
  background: radial-gradient(ellipse at 7% 22%, #e8dac5 0%, transparent 55%),
              radial-gradient(ellipse at 91% 40%, #e8eddf 0%, transparent 54%),
              #f6f2eb;
}
.services-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  padding-block: clamp(52px, 8vw, 110px);
}
.service-visual { position: relative; padding: 0 12px 42px 0; }
.service-visual figure {
  position: relative;
  overflow: hidden;
  border: 6px solid #fffefa;
  border-radius: 22px;
  margin: 0;
  background: #ddd4c3;
  transform: rotate(-2deg);
  box-shadow: 0 24px 64px #3d35272b;
}
.service-visual img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.service-visual figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--paper); padding: 4px 8px; border-radius: 5px; font-size: .82rem; }
.scope-sheet {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px 20px;
  box-shadow: 0 15px 30px #3d352723;
}
.scope-sheet span { display: block; color: #4f663b; font-size: .83rem; font-weight: 700; }
.scope-sheet strong { display: block; margin-top: 3px; }
.scope-sheet p { margin: 4px 0 0; font-size: .9rem; color: #4e594d; }
.service-copy h2 { font-size: clamp(2.35rem, 4.4vw, 4.1rem); }
.service-lead { color: #4e594d; margin: 17px 0 20px; }
.service-list article { padding: 13px 0; border-top: 1px solid #d4d8ca; }
.service-list h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.service-list p { margin: 4px 0 0; color: #4e594d; }
.service-action { margin-top: 14px; background: var(--night); color: white; }
.service-action:hover { background: #37463a; }
@media (max-width: 780px) {
  .services-editorial { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .service-visual { max-width: 570px; }
  .service-visual img { aspect-ratio: 4 / 3; }
}
@media (max-width: 400px) {
  .scope-sheet { max-width: 86%; padding: 10px 12px; }
  .service-visual figcaption { bottom: auto; top: 10px; }
}

@media (min-width: 701px) {
  .reviews-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
    grid-template-areas: "review heading" "review controls";
  }
}
