/* VARIABLES GLOBALES */
:root {
  --space-unit: 40px;
  --space-s: 20px;
  --space-m: 40px;
  --space-l: 80px;
  --space-xxs: 10px;
  --space-xs: var(--space-s);
  --space-sm: var(--space-m);
  --space-md: 60px;
  --space-lg: var(--space-l);
  --space-xl: 100px;
  --space-xxl: 140px;

  /* Couleurs */
  --color-bg-body: #c1af9e;
  --color-bg-light: #e2dcd2;
  --color-bg-accent: #c46e4d;
  --color-bg-dark: #3f2727;
  --color-bg-alt: #c8ac9c;
  --color-border: #c1af9e;
  --color-bg-testimonial: #efe7df;

  --color-text-dark: #3f2727;
  --color-text-light: #e2dcd2;
  --color-text-muted: #5a3a3a;

  --color-bg-hover: #d8805e;
  --color-bg-focus: #b35f44;
  --color-bg-surface: #f3efea;

  /* Rayons / ombres / transitions */
  --radius-sm: 3px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 10px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.18);

  --ease-base: 0.35s ease-in-out;
  --ease-material: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typo */
  --font-base: "Sinter", sans-serif;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;

  --font-size-xs: clamp(0.8rem, 0.9vw, 0.85rem);
  --font-size-sm: clamp(0.9rem, 1vw, 0.95rem);
  --font-size-md: clamp(1rem, 1.1vw, 1.05rem);
  --font-size-lg: clamp(1.3rem, 1.8vw, 1.5rem);
  --font-size-xl: clamp(1.8rem, 2.8vw, 2.2rem);
  --font-size-xxl: clamp(2.6rem, 4vw, 3.2rem);
  --font-size-hero: 3rem;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
}

/* RESET DE BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  background-color: var(--color-bg-body);
  background-image:
    linear-gradient(to bottom,
      transparent 0,
      transparent calc(100% - 180px),
      var(--color-bg-dark) calc(100% - 180px),
      var(--color-bg-dark) 100%
    ),
    url("img/paper-texture.avif");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, auto;
  background-position: top left, top left;
  font-family: var(--font-base);
  line-height: var(--line-height-base);
  color: var(--color-text-dark);
}

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

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

/* Hero principal */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.hero-subtitle {
  color: var(--color-text-light);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.2;
  margin-top: -1.2em;
  margin-bottom: var(--space-sm);
  text-transform: none;
  letter-spacing: 0.5px;
}

.hero-meta {
  font-size: 1.02rem;
  color: rgba(226, 220, 210, 1);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.3px;
}

.hero h1,
.hero-subtitle,
.hero-meta {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Sous-titres (H3 dans cards ou présentation) */
h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-dark);
}

/* Paragraphe */
p {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xxs);
}

/* Titres de sections */
.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: var(--space-xs);
  color: var(--color-text-dark);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--color-bg-accent);
  margin: var(--space-xs) auto 0 auto;
  border-radius: 1px;
  position: relative;
  z-index: 2;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}

.cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 30%, 400px), 1fr));
  gap: var(--space-sm);
  justify-items: center;
  margin-top: var(--space-sm);
}

.btn,
.main-nav a {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.btn {
  position: relative;
  display: inline-block;
  padding: 9px 24px;
  margin-top: 12px;
  overflow: hidden;
  z-index: 0;
  transition: color var(--ease-base), box-shadow var(--ease-base);
  box-shadow: var(--shadow-md);
}

.btn::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  transition: height var(--ease-material);
  z-index: -1;
  border-radius: var(--radius-sm);
}

.btn:hover {
  box-shadow: var(--shadow-sm);
}

.btn.default {
  background-color: #b85e3e;
  color: var(--color-text-light);
  text-shadow: 1px 1px 0 #8a3e27;
  transition: background-color var(--ease-material),
              color var(--ease-material),
              text-shadow var(--ease-material);
}

.btn.default::before {
  background-color: var(--color-bg-light);
}

.btn.default:hover::before {
  height: 100%;
}

.btn.default:hover {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  text-shadow: none;
}

.btn.light {
  background-color: var(--color-bg-accent);
  color: var(--color-text-light);
}

.btn.light::before {
  background-color: var(--color-bg-body);
}

.btn.light:hover::before {
  height: 100%;
}

.btn.light:hover {
  color: var(--color-text-dark);
}

.btn.cta {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.btn.cta::before {
  background-color: var(--color-bg-accent);
}

.btn.cta:hover::before {
  height: 100%;
}

.btn.cta:hover {
  color: var(--color-text-light);
}

.btn.cta{
  white-space: nowrap;
}

/* HERO / HEADER / NAV */

.hero-wrapper {
  width: 100%;
  background-image: url("img/hero-img.avif");
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--color-text-light);
  position: relative;
  overflow: visible;
  padding-bottom: 150px;
}

  .hero > .container {
    position: relative;
    z-index: 1;
  }
  .hero-content {
    max-width: 560px;
  }
  
@media (max-width: 720px) {
  .hero {
    position: relative;
    z-index: 1;
    min-height: 500px;
    height: auto;
    align-items: flex-start;
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .hero > .container {
    position: relative;
    z-index: 1;
  }

  .hero-content {
    max-width: 560px;
  }

  .hero-subtitle,
  .hero-meta {
    max-width: 26ch;
  }
}

#sawdust {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  display: block;
}

@media (max-width: 550px) {
  .hero-dash {
    display: none;
  }
}

@media (max-width: 768px) {
  .container{ padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .container{ padding-left: 16px; padding-right: 16px; }
}

.container-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header {
  width: 100%;
  background: transparent;
  height: 100px;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.logo {
  width: clamp(140px, 36vw, 230px);
  flex: 0 1 auto;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 50px);
  margin-left: auto;
  flex: 0 0 auto;
}

.main-nav ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.main-nav li {
  list-style: none;
  color: var(--color-text-light);
}

.main-nav a {
  position: relative;
  padding: 9px 9px;
  color: var(--color-text-light);
  overflow: hidden;
  z-index: 0;
  transition: color var(--ease-base);
}

.main-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background-color: var(--color-bg-accent);
  border-radius: var(--radius-sm);
  transition: height var(--ease-material);
  z-index: -1;
}

.main-nav a:hover::before {
  height: 100%;
}

.main-nav a:hover {
  color: var(--color-text-dark);
}

.hero {
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero .container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: block;
}

@media (max-width: 1344px) and (min-width: 769px) {
  .site-header .container,
  .hero .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .hero .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .hero .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
  color: var(--color-text-light);
  position: relative;
  z-index: 1;
}

@media (max-width: 600px) {
  .hero {
    justify-content: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .hero .btn.default {
    margin-left: auto;
    margin-right: auto;
  }
}
/* HEADER — desktop compact */
@media (max-width: 1100px) {
  .logo { width: 180px; }
  .nav-cta-group { gap: 24px; }
  .main-nav ul { gap: 8px; }
  .main-nav a { padding: 8px 8px; }
  .btn.cta { padding: 9px 18px; }
}

/* HEADER — MOBILE (≤768) */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(226, 220, 210, 0.35);
  background: rgba(226, 220, 210, 0.12);
  color: var(--color-text-light);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(63, 39, 39, 0.55);
  backdrop-filter: blur(6px);
  z-index: 999;
}

.mobile-nav-inner {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  display: grid;
  gap: 10px;
}

.mobile-nav-inner a{
  color: var(--color-text-dark);
  background: transparent;
}

.mobile-nav-inner a:hover{
  background: var(--color-bg-accent);
  color: var(--color-text-light);
}
.mobile-nav-inner a:active{
  background: var(--color-bg-accent);
  color: var(--color-text-light);
}

.site-header .btn.cta{
  white-space: nowrap;
  flex: 0 0 auto;
}
.site-header .btn { margin-top: 0; }

@media (max-width: 768px) {
  .site-header { height: 80px; }
  .main-nav { display: none; }
  .header-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .logo{
    width: 170px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .nav-cta-group{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    flex: 0 0 auto;
  }

  .nav-toggle { display: inline-flex; }

  .btn { margin-top: 0; }
  .btn.cta { transform: none; padding: 8px 14px; font-size: 0.95rem; }
}
@media (max-width: 520px) {
  .logo { width: 180px; }
  .btn.cta { padding: 8px 14px; }
}

@media (max-width: 390px) {
  .logo { width: 160px; }
  .btn.cta { padding: 7px 12px; font-size: 0.95rem; }
  .nav-cta-group { gap: 10px; }
}

body.nav-open .mobile-nav { display: block; }

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms ease-out;
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Reveal stagger (cartes / items) */
.reveal-stagger {
  opacity: calc(var(--progress, 0));
  transform: translateY(calc((1 - var(--progress, 0)) * 24px));
  transition: none;
  will-change: opacity, transform;
}

.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}

/* SECTION PRÉSENTATION */
.presentation {
  position: relative;
  margin-top: -90px;
  z-index: 3;
}

.presentation .container {
  max-width: 1280px;
  margin: calc(-1 * var(--space-lg)) auto 0;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg) var(--space-sm) var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  align-items: center;
  position: relative;
  overflow: visible;
}

/* copeau décoratif */
.presentation .container::before {
  content: "";
  position: absolute;
  bottom: calc(var(--space-unit) * -2.5);
  right: 8px;
  width: calc(var(--space-unit) * 8.5);
  height: calc(var(--space-unit) * 5.2);
  background: url("img/decor-copeau-bois.avif") no-repeat center/contain;
  z-index: 4;
  pointer-events: none;
}


/* photo et texte */
.presentation .col.texte {
  padding: 0 var(--space-md);
  align-self: start;
}

.badge-blason {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto var(--space-unit) auto;
}

.signature {
  margin-top: var(--space-sm);
  width: 230px;
}

@media (max-width: 768px) {
  .presentation .container {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: var(--space-md);
  }
  .presentation .col.texte {
    padding-left: 0;
    text-align: center;
  }
}

  @media (max-width: 600px) {
  .presentation .container::before {
    right: 6px;
    bottom: calc(var(--space-unit) * -2.9);
    width: calc(var(--space-unit) * 7.2);
    height: calc(var(--space-unit) * 4.4);
  }
}

/* --- montage polaroids --- */
.photo-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: visible;
}

.photo-stack {
  --t: 0;
  --spread: calc(var(--t) * 22px);
}

.photo-stack .photo {
  position: absolute;
  width: 65%;
  top: 50%;
  left: 50%;
  transform-origin: center center;
}

.photo-stack .photo img {
  display: block;
  width: 100%;
  border: 12px solid var(--color-bg-light);
  border-radius: 3px;
  background: linear-gradient(145deg, var(--color-bg-surface) 0%, var(--color-bg-light) 100%);
  box-shadow:
    0 calc(10px + var(--t) * 4px)
    calc(25px + var(--t) * 7px)
    rgba(63, 39, 39, calc(0.25 + var(--t) * 0.07)),

    0 2px 0 2px rgba(63, 39, 39, 0.05),

    inset 0 1px 2px rgba(255, 255, 255, 0.9),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25);

  background-image: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, transparent 40%);
  background-blend-mode: overlay;
}

.photo-stack .photo:nth-child(1) {
  transform:
    translate(calc(-85% - var(--spread)), calc(-105% - var(--spread)))
    rotate(calc(-18deg - (var(--t) * 1.6deg)));
  z-index: 3;
}
.photo-stack .photo:nth-child(2) {
  transform:
    translate(calc(5% + var(--spread)), calc(-75% - var(--spread)))
    rotate(calc(-12deg + (var(--t) * 1.3deg)));
  z-index: 4;
}

.photo-stack .photo:nth-child(3) {
  transform:
    translate(calc(-95% - var(--spread)),calc(-30% + var(--spread)))
    rotate(calc(-3deg - (var(--t) * 1deg)));
  z-index: 1;
}

.photo-stack .photo:nth-child(4) {
  transform:
    translate(calc(-35% + var(--spread)), calc(6% + var(--spread)))
    rotate(calc(-6deg + (var(--t) * 0.8deg)));
  z-index: 2;
}

@media (max-width: 900px) {
  .presentation .col.image { display: none; }

  .presentation .container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .presentation .col.texte {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .presentation .col.texte {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 1024px) and (min-width: 901px) {

  .presentation .container{
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
  }

.presentation .col.image{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
  }

  .presentation .col.texte{
    max-width: 560px;
  }
}

@media (max-width: 1280px) and (min-width: 1101px) {
  .presentation .photo-stack {
    max-width: 400px;
  }

  .presentation .photo-stack .photo:nth-child(1) {
    transform:
      translate(calc(-76% - var(--spread)), calc(-104% - var(--spread)))
      rotate(calc(-18deg - (var(--t) * 1.6deg)));
  }

  .presentation .photo-stack .photo:nth-child(2) {
    transform:
      translate(calc(-1% + var(--spread)), calc(-76% - var(--spread)))
      rotate(calc(-12deg + (var(--t) * 1.3deg)));
  }

  .presentation .photo-stack .photo:nth-child(3) {
    transform:
      translate(calc(-84% - var(--spread)), calc(-28% + var(--spread)))
      rotate(calc(-3deg - (var(--t) * 1deg)));
  }

  .presentation .photo-stack .photo:nth-child(4) {
    transform:
      translate(calc(-28% + var(--spread)), calc(4% + var(--spread)))
      rotate(calc(-6deg + (var(--t) * 0.8deg)));
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .presentation .photo-stack {
    max-width: 370px;
  }

  .presentation .photo-stack .photo:nth-child(1) {
    transform:
      translate(calc(-66% - var(--spread)), calc(-114% - var(--spread)))
      rotate(calc(-18deg - (var(--t) * 1.6deg)));
  }

  .presentation .photo-stack .photo:nth-child(2) {
    transform:
      translate(calc(-14% + var(--spread)), calc(-86% - var(--spread)))
      rotate(calc(-12deg + (var(--t) * 1.3deg)));
  }

  .presentation .photo-stack .photo:nth-child(3) {
    transform:
      translate(calc(-72% - var(--spread)), calc(-18% + var(--spread)))
      rotate(calc(-3deg - (var(--t) * 1deg)));
  }

  .presentation .photo-stack .photo:nth-child(4) {
    transform:
      translate(calc(-22% + var(--spread)), calc(16% + var(--spread)))
      rotate(calc(-6deg + (var(--t) * 0.8deg)));
  }
}

/* SECTION SERVICES */
.services {
  text-align: center;
  padding: var(--space-xxl) 0 var(--space-xxl) 0;
  position: relative;
}

.services ul {
  color: var(--color-text-dark);
  margin: 10px auto 40px;
}

.card {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 400px;
  min-height: 560px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--ease-material), box-shadow var(--ease-material);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card img:first-child {
  width: 100%;
  height: 267px;
  object-fit: cover;
  display: block;
}

.card .icon {
  position: absolute;
  top: 228px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 77px;
  z-index: 2;
}

.card .icon img {
  width: 70px;
  height: 77px;
  object-fit: contain;
}

.card h3,
.reason h3,
.presentation h2 {
  margin-top: 33px;
  font-family: var(--font-base);
  font-size: var(--font-size-lg);
  color: var(--color-text-dark);
  text-align: center;
  position: relative;
  z-index: 1;
}

.card h3::after,
.reason h3::after,
.presentation h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: var(--color-bg-accent);
  margin: 15px auto 0;
}

.card ul {
  list-style-type: disc;
  list-style-position: outside;
  margin: 0;
  padding: 0 30px 30px 45px;
  text-align: left;
  color: var(--color-text-dark);
  flex-grow: 1;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.card ul li {
  margin-bottom: 8px;
  text-indent: 0.5em;
  line-height: 1.5;
}

.card ul li.secondary {
  opacity: 0.75;
  font-size: 0.95em;
  margin-top: 4px;
}

/* filigranes */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 267px;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 -20px 25px -15px rgba(0, 0, 0, 0.35);
}

.card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 267px;
  height: calc(100% - 267px);
  width: 100%;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 60%;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.card:nth-child(1)::after { background-image: url("img/filigrane-toiture.svg"); }
.card:nth-child(2)::after { background-image: url("img/filigrane-exterieur.svg"); }
.card:nth-child(3)::after { background-image: url("img/filigrane-terrasse.svg"); }
.card:nth-child(4)::after { background-image: url("img/filigrane-interieur.svg"); }
.card:nth-child(5)::after { background-image: url("img/filigrane-sol.svg"); }
.card:nth-child(6)::after { background-image: url("img/filigrane-isolation.svg"); }

.services .cta-wrapper {
  display: flex;
  justify-content: center;
}

.decor-foret {
  position: absolute;
  width: 240px;
  height: auto;
  left: max(32px, calc((100% - 1280px) / 2));
  bottom: -8px;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 768px) {
  .decor-foret {
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    bottom: -4px;
  }
}

@media (max-width: 1344px) and (min-width: 769px) {
  .services.container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .services.container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .services.container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 720px) {
  .services .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* SECTION WHY */
.why {
  background-color: var(--color-bg-light);
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: visible;
}
.why .container {
  position: relative;
}

.why .reasons img {
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto var(--space-xs);
}
.reason {
  padding: 0 var(--space-xs);
}

.why .cta-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

  .why .reasons p {
    font-size: var(--font-size-md);
  }

.decor-parquet {
  position: absolute;
  width: 400px;
  height: auto;
  right: 0;
  bottom: -250px;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .decor-parquet {
    width: 340px;
    right: 32px;
    bottom: -210px;
  }
}

@media (max-width: 1024px) {
  .decor-parquet {
    display: none;
  }
}

@media (max-width: 919px) and (min-width: 640px) {
  .why .reasons {
    grid-template-columns: repeat(2, minmax(280px, 400px));
    justify-content: center;
  }

  .why .reason:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 639px) {
  .why .reasons {
    grid-template-columns: 1fr;
  }

  .why .reason {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }

  .why .reason p {
    max-width: 34ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* SECTION REALISATIONS */
.realisations {
  padding: var(--space-xxl) 0;
}

.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: calc(var(--space-unit) * 6);
  gap: 27px;
  grid-template-areas:
    "a b b"
    "a c d"
    "e f d"
    "g g h";
  align-items: stretch;
}

.realisations-grid .a { grid-area: a; }
.realisations-grid .b { grid-area: b; }
.realisations-grid .c { grid-area: c; }
.realisations-grid .d { grid-area: d; }
.realisations-grid .e { grid-area: e; }
.realisations-grid .f { grid-area: f; }
.realisations-grid .g { grid-area: g; }
.realisations-grid .h { grid-area: h; }

.realisations-grid > .item {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform var(--ease-material), box-shadow var(--ease-material);
}

.realisations-grid > .item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: transform var(--ease-material);
}

.realisations-grid > .item:hover {
  box-shadow: var(--shadow-lg);
}

.realisations-grid > .item:hover img {
  transform: scale(1.06);
}

@media (max-width: 1344px) and (min-width: 769px) {
  .realisations.container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .realisations.container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

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

@media (max-width: 560px) {
  .realisations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .realisations-grid {
    grid-template-areas: none;
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 45%, 1fr), 1fr));
    grid-auto-rows: minmax(calc(var(--space-unit) * 5), auto);
    gap: var(--space-sm);
  }

  .realisations-grid > .item {
    height: auto;
    grid-area: unset !important;
  }
}

/* SECTION TEMOIGNAGES */
.temoignages {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  padding: var(--space-s) 0 220px;
  z-index: 1;
}
.temoignages .section-title {
  margin-bottom: var(--space-md);
}

.temoignages-container {
  width: 100%;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
}

.nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(63, 39, 39, 0.25);
  background-color: rgba(226, 220, 210, 0.9);
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background-color var(--ease-material),
              transform var(--ease-material),
              box-shadow var(--ease-material),
              opacity var(--ease-material);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
  .nav:hover {
    background-color: var(--color-bg-accent);
    color: var(--color-text-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}

.nav:active {
  background-color: rgba(226, 220, 210, 0.9);
  color: var(--color-text-dark);
  transform: translateY(-2px);
}

.nav {
  -webkit-tap-highlight-color: transparent;
}

.nav:focus-visible {
  outline: none;
  background-color: var(--color-bg-accent);
  color: var(--color-text-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.temoignages-wrapper {
  flex: 1;
  overflow: hidden;
  padding: 0 16px;
}

.temoignages-track {
  display: flex;
  gap: 24px;
  transition: transform 220ms ease;
}

.temoignage {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  padding: 28px 32px 32px;
  border-radius: 12px;
  text-align: left;
  box-sizing: border-box;
  background-color: var(--color-bg-testimonial);
  box-shadow: var(--shadow-sm);
  transition:
  transform var(--ease-material),
  box-shadow var(--ease-material),
  background-color var(--ease-material);
}

.temoignages-track,
.temoignage {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* Grand guillemet décoratif */
.temoignage::before {
  content: "“";
  display: block;
  font-size: 54px;
  line-height: 1;
  color: #d7c6b9;
  margin-left: -2px;
  margin-bottom: 10px;
}

.temoignage:hover {
  box-shadow: var(--shadow-md);
  background-color: var(--color-bg-light);
}

.temoignage p {
  margin-bottom: var(--space-xxs);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.temoignage .auteur {
  display: block;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-top: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .temoignage:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: var(--color-bg-light);
  }
}

@media (max-width: 1344px) and (min-width: 769px) {
  .temoignages-container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .temoignages-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .temoignages-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 1100px) {
  .temoignage {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 720px) {
  .temoignages-container {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "wrapper wrapper"
      "prev next";
    gap: var(--space-sm);
    padding-left: 20px;
    padding-right: 20px;
  }

  .temoignages-wrapper {
    grid-area: wrapper;
    padding: 0;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .prev {
    grid-area: prev;
    justify-self: end;
    margin: 0;
  }

  .next {
    grid-area: next;
    justify-self: start;
    margin: 0;
  }

  .temoignage {
    flex: 0 0 100%;
  }
}

@media (max-width: 600px) {
  .temoignages-wrapper {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .temoignages-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* SECTION CONTACT */
#contact {
  position: relative;
  width: 100%;
  background-image: url("img/decor-tronc-bois.avif");
  background-position: top center;
  background-repeat: no-repeat;
  background-color: var(--color-bg-light);
  padding-top: 1px;
  padding-bottom: var(--space-xxl);
  z-index: 1;
  overflow-x: clip;
  overflow-y: visible;
}

.contact.container {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: -76px auto 0;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  padding: var(--space-md);
  max-width: 1280px;
  width: 100%;
  z-index: 5;
}

.contact .stamp {
  width: 180px;
  position: absolute;
  top: 64px;
  right: 38px;
  opacity: 1;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 12px;
  padding: 12px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-border) 0 24px,
    transparent 24px 48px
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  border-radius: 16px;
  opacity: 0.07;
}

.contact h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-dark);
}

.contact-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
  line-height: 1.45;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
  position: relative;
}

.contact-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 69%;
  width: 1px;
  background-color: var(--color-border);
  opacity: 0.16;
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: var(--color-text-dark);
}

.contact-form label {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  border: none;
  background-color: var(--color-bg-surface);
  padding: 10px 12px;
  border-radius: 4px;
  font-family: var(--font-base);
  font-size: var(--font-size-md);
  color: var(--color-text-dark);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form textarea:focus::placeholder {
  opacity: 0.3;
}

.contact-form textarea::placeholder {
  color: rgba(63, 39, 39, 0.45); 
  font-style: italic;
}

.contact-form .btn {
  margin-top: 24px;  
  display: block;
  width: 280px;              
  margin: 24px auto 0;       
  border: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  font-family: "Sinter", sans-serif;
}

.form-note {
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(63, 39, 39, 0.55);
  margin-top: 8px;
}

.contact-form .form-btn {
  align-self: flex-start;
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--ease-material);
}

.contact-form .form-btn:hover {
  background-color: var(--color-bg-focus);
}


/* COORDONNÉES */
.contact-info {
  position: relative;
  padding: calc(var(--space-sm) + 28px);
  margin-top: 50px;
  border-radius: var(--radius-md);
  color: var(--color-text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-info svg {
  width: 21px;
  height: 21px;
  color: var(--color-border);
  flex-shrink: 0;
  margin-right: 8px;
}

.contact-info p.address {
  align-items: flex-start;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.6;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.contact-info p:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--color-border) 0 2px,
    transparent 2px 6px
  );
  opacity: 1;
  pointer-events: none;
}

.contact-info h3 {
  margin-bottom: 10px;
  font-size: var(--font-size-lg);
}

.contact-info a {
  color: var(--color-text-dark);
  text-decoration: underline;
}

.contact-info p a {
  text-decoration: none;
}

.contact-info p a:hover {
  text-decoration: underline;
}

@media (max-width: 1280px) {
  #contact {
    padding-bottom: 0;
  }
}

@media (max-width: 1024px) {
  .contact .stamp {
    display: none;
  }
}

@media (max-width: 1100px) {
  .contact-wrapper::before {
    display: none;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .contact-wrapper {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .contact.container {
    top: 0;
    padding: var(--space-sm);
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-wrapper::before {
    display: none;
  }

  .contact-info {
    margin-top: 0;
    padding: var(--space-sm);
    text-align: center;
  }

  .contact-info h3 {
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
    text-align: center;
  }

  .contact-info p.address {
    align-items: center;
    justify-content: center;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form .row {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  text-align: center;
  padding: 90px 20px calc(90px + env(safe-area-inset-bottom));
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.site-footer p {
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  margin-bottom: 40px;
}

.site-footer img {
  width: 200px;
  height: auto;
  margin: 0 auto 24px auto;
  opacity: 0.95;
}

/* Forêt */
footer::after {
  content: "";
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 45px;
  background-image: url("img/decor-foret.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.14;
}

/* bouton retour haut */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(226, 220, 210, 0.55);
  border-radius: 50%;
  background-color: rgba(63, 39, 39, 0.92);
  color: var(--color-text-light);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 24px rgba(0,0,0,0.18);

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  z-index: 9999;

  transition:
    opacity 240ms ease,
    transform 320ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color var(--ease-material),
    box-shadow var(--ease-material);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top:hover svg {
  transform: translateY(-1px);
}

.back-to-top.on-dark {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

/* GLightbox — bande description */
.gslide-description {
  background-color: #e2dcd2 !important;
}

.gdesc-inner {
  background-color: #e2dcd2 !important;
  color: #3f2727 !important;
  font-family: "Sinter", sans-serif !important;
}

.gslide-title {
  color: #3f2727 !important;
  font-family: "Sinter", sans-serif !important;
  font-weight: 400 !important;
}

.gslide-desc {
  color: #3f2727 !important;
  font-family: "Sinter", sans-serif !important;
}

/* PAGE MENTIONS LÉGALES */
.legal-page .hero-wrapper {
  padding-bottom: 90px;
}

.legal-hero {
  height: auto;
  min-height: 280px;
  padding: 40px 0 30px;
}

.legal-hero-content {
  max-width: 760px;
}

.legal-main {
  padding: 0 0 var(--space-xxl);
}

.legal-section {
  margin-top: -40px;
}

.legal-card.container {
  max-width: 920px;
  margin: 0 auto;
  background-color: var(--color-bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg) var(--space-md);
  display: block;
  position: relative;
  overflow: visible;
}

.legal-content {
  padding: 0;
}

.legal-content .section-title,
.legal-content .section-subtitle {
  text-align: center;
}

.legal-block + .legal-block {
  margin-top: var(--space-md);
}

.legal-block h3 {
  margin-top: 0;
  margin-bottom: 14px;
  text-align: left;
}

.legal-block h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: var(--color-bg-accent);
  margin: 15px 0 0 0;
}

.legal-block p {
  margin-bottom: 10px;
}

.legal-block a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-cta {
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .legal-card.container {
    padding: var(--space-md);
  }

  .legal-hero {
    min-height: 240px;
    padding-top: 24px;
  }
   .legal-content,
  .legal-content p,
  .legal-content .legal-block,
  .legal-content .legal-block p {
    text-align: left;
  }
}

