/* ==========================================================================
   SG RENOV — Provence artisanale
   Palette : terracotta #C4552D · ocre #E0A458 · crème #FAF5EE · brun #3B2E25
   Typo : Fraunces (titres) · Work Sans (texte)
   Signature : le motif « lamelles de volets »
   ========================================================================== */

:root {
  --cream: #FAF5EE;
  --cream-deep: #F3E9DB;
  --terracotta: #C4552D;
  --terracotta-dark: #A8431F;
  --ocre: #E0A458;
  --brun: #3B2E25;
  --brun-soft: #6B584A;
  --taupe: #7A6452;
  --olive: #7C8B5E;
  --wa: #1FA855;
  --wa-dark: #178A45;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --container: 1160px;
  --shadow: 0 10px 30px rgba(59, 46, 37, .08);

  /* motif lamelles de volets */
  --slats: repeating-linear-gradient(
    to bottom,
    transparent 0 6px,
    rgba(196, 85, 45, .16) 6px 8px
  );
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--brun);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--terracotta); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brun);
  color: var(--cream);
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Typographie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--brun);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--ocre); }

.section { padding: 88px 0; }

.section__title {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 18px;
}

.section__intro {
  max-width: 560px;
  color: var(--brun-soft);
  margin-bottom: 48px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }

.btn--wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 168, 85, .35);
}
.btn--wa:hover { background: var(--wa-dark); }

.btn--ghost {
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
  background: transparent;
}
.btn--ghost:hover { background: rgba(196, 85, 45, .08); }

.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--xl { padding: 18px 36px; font-size: 18px; }
.btn--nav { padding: 10px 20px; font-size: 15px; }

.icon-wa { width: 21px; height: 21px; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.is-scrolled {
  border-bottom-color: rgba(59, 46, 37, .08);
  box-shadow: 0 4px 18px rgba(59, 46, 37, .06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__tile { width: 46px; height: 46px; border-radius: 11px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--brun);
  letter-spacing: .3px;
}
.brand__tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--taupe);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav > a:not(.btn) {
  text-decoration: none;
  color: var(--brun);
  font-weight: 500;
  font-size: 15.5px;
  position: relative;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--terracotta);
  transition: right .2s ease;
}
.nav > a:not(.btn):hover::after { right: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.burger span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brun);
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(224, 164, 88, .18), transparent 60%),
    var(--cream);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 48px;
  padding-block: 84px 72px;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero__sub {
  font-size: 18px;
  color: var(--brun-soft);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.hero__reassure {
  font-size: 13.5px;
  color: var(--taupe);
}

/* ---------- Carrousel de scènes métiers ---------- */
.hero__art { position: relative; }

.scenes {
  position: relative;
  aspect-ratio: 560 / 520;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
}

.facade {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 40px rgba(59, 46, 37, .14));
}

.scene__chip {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(59, 46, 37, .85);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  border-radius: 999px;
  padding: 6px 16px;
  white-space: nowrap;
}

.scene-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}
.scene-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 2px solid var(--terracotta);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.scene-dot.is-active {
  width: 26px;
  background: var(--terracotta);
}
.scene-dot:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; }

/* — Scène 1 : volets (rotation 2D via scaleX) — */
.volet { transform-box: fill-box; }
.volet--l { transform-origin: right center; }
.volet--r { transform-origin: left center; }
@keyframes volet-open {
  from { transform: scaleX(-1); }
  to   { transform: scaleX(1); }
}
.scene.is-active .volet--l { animation: volet-open 1.4s cubic-bezier(.34, 1.3, .5, 1) .5s both; }
.scene.is-active .volet--r { animation: volet-open 1.4s cubic-bezier(.34, 1.3, .5, 1) .65s both; }

/* — Scène 2 : peinture — */
.paint-stripe { transform-box: fill-box; transform-origin: center top; }
@keyframes kf-paint { from { transform: scaleY(.12); } }
.roller-g { transform-box: fill-box; }
@keyframes kf-roller { from { transform: translateY(-262px); } }
.scene.is-active .paint-stripe { animation: kf-paint 2.6s cubic-bezier(.5, 0, .4, 1) .4s both; }
.scene.is-active .roller-g { animation: kf-roller 2.6s cubic-bezier(.5, 0, .4, 1) .4s both; }

/* — Scène 3 : maçonnerie — */
.brick { transform-box: fill-box; }
@keyframes kf-brick {
  from { opacity: 0; transform: translateY(-32px); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: translateY(0); }
}
.scene.is-active .brick { animation: kf-brick .5s cubic-bezier(.3, 1.2, .5, 1) var(--d, 0s) both; }
.trowel { transform-box: fill-box; transform-origin: center; }
@keyframes kf-trowel { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-13deg) translateY(-6px); } }
.scene.is-active .trowel { animation: kf-trowel 1.8s ease-in-out infinite; }

/* — Scène 4 : carrelage — */
.tile { transform-box: fill-box; transform-origin: center; }
@keyframes kf-tile { from { opacity: 0; transform: scale(0); } }
.scene.is-active .tile { animation: kf-tile .55s cubic-bezier(.3, 1.4, .5, 1) var(--d, 0s) both; }

/* — Scène 5 : montage mobilier — */
.plank { transform-box: fill-box; }
@keyframes kf-plank { from { opacity: 0; transform: translateX(-110px); } }
.scene.is-active .plank { animation: kf-plank .7s cubic-bezier(.3, 1.2, .5, 1) var(--d, 0s) both; }
@keyframes kf-deco { from { opacity: 0; transform: translateY(10px); } }
.deco { transform-box: fill-box; }
.scene.is-active .deco { animation: kf-deco .8s ease 1.7s both; }
.allen { transform-box: fill-box; transform-origin: center; }
@keyframes kf-allen { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-75deg); } }
.scene.is-active .allen { animation: kf-allen 1.5s ease-in-out infinite; }

/* — Scène 6 : jardinage — */
.lav > g { transform-box: fill-box; transform-origin: center bottom; }
@keyframes kf-lav { from { opacity: 0; transform: scale(.15); } }
.scene.is-active .lav > g { animation: kf-lav .9s cubic-bezier(.3, 1.2, .5, 1) var(--d, 0s) both; }
.shears__blade { transform-box: fill-box; transform-origin: center; }
@keyframes kf-snip { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(16deg); } }
.scene.is-active .shears__blade { animation: kf-snip 1.1s ease-in-out infinite; }
.drop { transform-box: fill-box; }
@keyframes kf-drop {
  from { opacity: 0; transform: translateY(0); }
  25%  { opacity: 1; }
  to   { opacity: 0; transform: translateY(34px); }
}
.scene.is-active .drop { animation: kf-drop 1.1s linear var(--d, 0s) infinite; }

/* ---------- Services ---------- */
.services { background: var(--cream); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid rgba(59, 46, 37, .07);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--cream-deep);
  color: var(--terracotta);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; }

.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
  color: var(--brun-soft);
}

/* Carte spécialité : volets */
.card--featured {
  background: linear-gradient(160deg, #FBEFE4, #F7E3CF);
  border: 1.5px solid rgba(196, 85, 45, .35);
}
.card--featured::before {
  /* signature : lamelles de volet en filigrane */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--slats);
  opacity: .30;
  pointer-events: none;
  mask-image: linear-gradient(105deg, transparent 55%, #000 92%);
  -webkit-mask-image: linear-gradient(105deg, transparent 55%, #000 92%);
}
.card--featured .card__icon {
  background: var(--terracotta);
  color: var(--cream);
}

.card__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--terracotta);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ---------- Bandeau types de biens ---------- */
.band {
  background: var(--brun);
  color: var(--cream);
  padding: 44px 0;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 10px,
    rgba(250, 245, 238, .04) 10px 13px
  );
  pointer-events: none;
}

.band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  position: relative;
}

.band__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ocre);
}

.band__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.band__list li {
  border: 1px solid rgba(250, 245, 238, .35);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 15px;
  font-weight: 500;
}

.band__note {
  margin-left: auto;
  font-size: 14px;
  color: rgba(250, 245, 238, .75);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- Pourquoi ---------- */
.why { background: var(--cream-deep); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 42px;
}

.why__item {
  border-top: 3px solid var(--terracotta);
  padding-top: 18px;
}
.why__num {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}
.why__item p {
  font-size: 14.5px;
  color: var(--brun-soft);
}

/* ---------- Zone ---------- */
.zone__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.zone__map svg { width: 100%; max-width: 430px; height: auto; margin-inline: auto; }

.zone__content > p { max-width: 480px; color: var(--brun-soft); }

.zone__note {
  margin-top: 14px;
  margin-bottom: 26px;
  font-weight: 500;
  color: var(--brun) !important;
}

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }

.contact__card {
  background: var(--brun);
  color: var(--cream);
  border-radius: 24px;
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.contact__card::before {
  /* lamelles en filigrane, coin supérieur droit */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 10px,
    rgba(224, 164, 88, .07) 10px 13px
  );
  mask-image: linear-gradient(115deg, transparent 45%, #000 90%);
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 90%);
  pointer-events: none;
}

.contact__card h2 {
  color: var(--cream);
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
}
.contact__sub {
  color: rgba(250, 245, 238, .8);
  max-width: 440px;
  margin-bottom: 30px;
}
.contact__phone {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(250, 245, 238, .75);
}
.contact__phone a { color: var(--ocre); font-weight: 600; text-decoration: none; }
.contact__phone a:hover { text-decoration: underline; }

.contact__aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  border-left: 1px solid rgba(250, 245, 238, .18);
  padding-left: 48px;
  position: relative;
}

.contact__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ocre);
  margin-bottom: 3px;
}
.contact__row a { color: var(--cream); }
.contact__row p { color: rgba(250, 245, 238, .9); }

/* ---------- Footer ---------- */
.footer {
  padding: 34px 0 90px;
  text-align: center;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.footer__brand span { font-weight: 500; font-style: italic; color: var(--taupe); font-size: 16px; }
.footer__meta { font-size: 14px; color: var(--brun-soft); margin-top: 6px; }
.footer__meta a { color: var(--terracotta); text-decoration: none; }
.footer__meta a:hover { text-decoration: underline; }
.footer__copy { font-size: 12.5px; color: var(--taupe); margin-top: 12px; }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(31, 168, 85, .45);
  transition: transform .18s ease, background .18s ease;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-float:focus-visible { outline: 3px solid var(--brun); outline-offset: 3px; }

/* ---------- Reveal au scroll (uniquement si JS actif) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene *, .scene.is-active * { animation: none !important; }
  .scene { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .wa-float { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .section { padding: 64px 0; }

  /* nav mobile */
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--cream);
    border-bottom: 1px solid rgba(59, 46, 37, .1);
    box-shadow: 0 18px 30px rgba(59, 46, 37, .12);
    padding: 10px 24px 22px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) {
    padding: 12px 0;
    font-size: 17px;
    width: 100%;
  }
  .nav .btn--nav { margin-top: 10px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 52px 56px;
  }
  .hero__art { max-width: 460px; }

  .zone__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .zone__map { order: 2; }

  .contact__card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
    gap: 36px;
  }
  .contact__aside {
    border-left: none;
    border-top: 1px solid rgba(250, 245, 238, .18);
    padding-left: 0;
    padding-top: 32px;
  }

  .band__note { margin-left: 0; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; gap: 20px; }
  .brand__tag { display: none; }
  .btn--xl { padding: 16px 26px; font-size: 16px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
