/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #141414;
  --bg-darker: #0C0C0C;
  --bg-light: #F7F4F0;
  --bg-warm: #EDE8E1;
  --accent: #C4956A;
  --accent-light: #D4A97A;
  --accent-dark: #A07A55;
  --text-light: #FAFAF8;
  --text-dark: #1A1A1A;
  --text-muted: #8A8A8A;
  --text-muted-light: #B0B0B0;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-light: rgba(0, 0, 0, 0.08);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-light);
  background: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-muted-light);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: block;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1001;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--bg-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted-light);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.btn-devis {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-devis:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
}

/* ===== EXPANSION HERO ===== */
.expansion-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('attached_assets/IMG_2976_1776408728897.webp') center/cover no-repeat;
}

.expansion-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.6);
  will-change: opacity;
}

.expansion-media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  width: 340px;
  height: 440px;
  will-change: width, height, border-radius, box-shadow;
}

.expansion-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.expansion-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.45);
  pointer-events: none;
  will-change: opacity;
}

.expansion-titles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  mix-blend-mode: difference;
  pointer-events: none;
  width: 100%;
}

.expansion-title-line {
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  font-weight: 800;
  color: #E8DDD0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  will-change: transform;
}

.expansion-accent {
  color: var(--accent-light);
}

.expansion-content {
  position: absolute;
  bottom: 5rem;
  left: 0;
  right: 0;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.expansion-content.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.expansion-content .lead {
  max-width: 600px;
  margin-bottom: 2rem;
}

.expansion-hint {
  position: absolute;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  will-change: opacity;
}

.expansion-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.expansion-hint-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

#page-content {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#page-content.visible {
  opacity: 1;
}

@media (max-width: 768px) {
  .expansion-media {
    width: 260px;
    height: 320px;
  }

  .expansion-content {
    bottom: 3rem;
  }
}

/* ===== HERO (legacy) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(12, 12, 12, 0.2) 0%,
      rgba(12, 12, 12, 0.4) 50%,
      rgba(20, 20, 20, 1) 100%),
    url('https://images.unsplash.com/photo-1572331165267-854da2b021b1?w=1920&q=80') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content .lead {
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.5;
    transform: scaleY(0.6);
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 7rem 0;
}

.section-dark {
  background: var(--bg-dark);
}

.section-darker {
  background: var(--bg-darker);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-light .section-label {
  color: var(--accent-dark);
}

.section-light p.lead {
  color: #666;
}

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ===== EXPERTISE SECTION ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.expertise-card {
  padding: 2.5rem;
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-card:hover {
  border-color: rgba(196, 149, 106, 0.3);
  transform: translateY(-4px);
}

.expertise-icon {
  width: 52px;
  height: 52px;
  background: rgba(196, 149, 106, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.expertise-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.expertise-card p {
  color: var(--text-muted-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== RENOVATION / AVANT-APRES ===== */
.renovation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.renovation-text h2 {
  margin-bottom: 1.5rem;
}

.renovation-text p {
  color: var(--text-muted-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.renovation-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.renovation-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted-light);
}

.renovation-feature .check {
  width: 28px;
  height: 28px;
  background: rgba(196, 149, 106, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: col-resize;
  user-select: none;
}

.ba-slider .ba-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.ba-slider .ba-before {
  background:
    linear-gradient(135deg, #8B7355 0%, #6B5B45 50%, #5A4A38 100%);
  z-index: 1;
}

.ba-slider .ba-before::after {
  content: 'AVANT';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  z-index: 5;
}

.ba-slider .ba-after {
  background:
    linear-gradient(135deg, #A8D5E2 0%, #7CBAC8 50%, #5DA8B8 100%);
  z-index: 0;
}

.ba-slider .ba-after::after {
  content: 'APRÈS';
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

.ba-slider .ba-before {
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: white;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle::after {
  content: '⟨ ⟩';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== TEXTURES GRID ===== */
.textures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.texture-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
}

.texture-visual {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.texture-card:hover .texture-visual {
  transform: scale(1.05);
}

.texture-visual.pierre {
  background-image: url('attached_assets/membrane-pvc-arme-imitation-pierre-imperial-sand_1776419672796.webp');
  background-size: cover;
  background-position: center;
}

.texture-visual.marbre {
  background-image: url('assets/membrane-pvc-arme-granit-gris-anthracite.webp');
  background-size: cover;
  background-position: center;
}

.texture-visual.texture3d {
  background-image: url('attached_assets/membrane-pvc-arme-marbre-blanc-elegance_1776525086784.webp');
  background-size: cover;
  background-position: center;
}

.texture-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 12, 12, 0.9) 100%);
  z-index: 1;
}

.texture-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
}

.texture-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.texture-info p {
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

.texture-tag {
  display: inline-block;
  background: rgba(196, 149, 106, 0.2);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

/* ===== PROCESS SECTION ===== */
.processus-bg {
  position: relative;
  background: url('assets/chantier-methode-pose.webp') center center / cover no-repeat;
}

.processus-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.45);
  z-index: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.process-step {
  padding: 2rem;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(196, 149, 106, 0.15);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin-bottom: 1.5rem;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted-light);
  line-height: 1.7;
}

/* Video showcase */
/* ===== VIDEO BG SECTION ===== */
.video-bg-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-bg-iframe-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-bg-iframe-wrap iframe,
.video-bg-iframe-wrap #yt-bg-player,
.video-bg-iframe-wrap #yt-bg-player iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.video-bg-iframe-wrap.playing iframe,
.video-bg-iframe-wrap.playing #yt-bg-player,
.video-bg-iframe-wrap.playing #yt-bg-player iframe {
  opacity: 1;
}

/* Masque opaque par-dessus l'iframe — disparaît une fois la vidéo lancée */
.video-bg-mask {
  position: absolute;
  inset: 0;
  background: #080808;
  z-index: 3;
  transition: opacity 1s ease;
  opacity: 1;
  pointer-events: none;
}

.video-bg-mask.hidden {
  opacity: 0;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,8,8,0.75) 0%, rgba(8,8,8,0.55) 100%);
  z-index: 1;
}

.video-bg-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 680px;
  padding: 0 2rem;
}

.video-bg-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.video-bg-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== REALISATIONS PAGE ===== */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--bg-darker);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p.lead {
  max-width: 600px;
  margin: 0 auto;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--text-muted-light);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item .gallery-visual {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.gallery-visual img,
.featured-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover .gallery-visual {
  transform: scale(1.05);
}

.gallery-item:nth-child(1) .gallery-visual {
  background: linear-gradient(135deg, #7CBAC8 0%, #5DA8B8 100%);
}

.gallery-item:nth-child(2) .gallery-visual {
  background: linear-gradient(135deg, #A8C5B8 0%, #8AB0A0 100%);
}

.gallery-item:nth-child(3) .gallery-visual {
  background: linear-gradient(135deg, #C8B89A 0%, #B0A080 100%);
}

.gallery-item:nth-child(4) .gallery-visual {
  background: linear-gradient(135deg, #B8A898 0%, #9A8A78 100%);
}

.gallery-item:nth-child(5) .gallery-visual {
  background: linear-gradient(135deg, #8AB0C0 0%, #6A98A8 100%);
}

.gallery-item:nth-child(6) .gallery-visual {
  background: linear-gradient(135deg, #C0B0A0 0%, #A89888 100%);
}

.gallery-item:nth-child(7) .gallery-visual {
  background: linear-gradient(135deg, #A0C0B0 0%, #88A898 100%);
}

.gallery-item:nth-child(8) .gallery-visual {
  background: linear-gradient(135deg, #B0C8D8 0%, #90B0C0 100%);
}

.gallery-item:nth-child(9) .gallery-visual {
  background: linear-gradient(135deg, #D0C0B0 0%, #B8A898 100%);
}

.gallery-item { cursor: pointer; }

.gallery-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.88) 0%, rgba(8,8,8,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}

.gallery-item:hover .gallery-hover {
  opacity: 1;
}

/* Toujours visible sur mobile */
@media (hover: none) {
  .gallery-hover {
    opacity: 1;
  }
}

.gallery-hover h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #fff;
}

.gallery-hover p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-caption {
  text-align: center;
  color: white;
}

.lightbox-caption strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.lightbox-caption span {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

.lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: -3.5rem; }
.lightbox-next { right: -3.5rem; }

@media (max-width: 768px) {
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .lightbox-close { top: 0; right: 0; }
}

/* Featured project */
.featured-project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.featured-visual {
  border-radius: 16px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #7CBAC8 0%, #4A9AAA 100%);
  position: relative;
  overflow: hidden;
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 4px;
}

.featured-text h3 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.featured-text p {
  color: var(--text-muted-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.featured-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
}

.meta-item .meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.meta-item .meta-value {
  font-size: 1rem;
  font-weight: 600;
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info>p {
  color: var(--text-muted-light);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-detail .detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(196, 149, 106, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail .detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.contact-detail .detail-value {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-detail .detail-sub {
  font-size: 0.9rem;
  color: var(--text-muted-light);
  margin-top: 0.2rem;
}

/* Contact Form */
.contact-form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  padding: 3rem;
}

.contact-form-card h3 {
  margin-bottom: 0.5rem;
}

.contact-form-card>p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A8A8A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--bg-dark);
}

.form-submit {
  margin-top: 1.5rem;
}

.form-submit .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 1.1rem;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* ===== MAP PLACEHOLDER ===== */
.map-section {
  margin-top: 5rem;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #1E1E1E;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.map-placeholder .map-pin {
  font-size: 2.5rem;
}

.map-placeholder p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== TESTIMONIAL ===== */
.testimonial-section {
  text-align: center;
  padding: 6rem 0;
}

.testimonial-card {
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent);
  line-height: 0;
  display: block;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* ===== GOOGLE REVIEWS BTN ===== */
.google-reviews-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.google-reviews-btn:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.google-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.google-reviews-text {
  text-align: left;
}

.google-stars {
  color: #FBBC05;
  font-size: 1rem;
  letter-spacing: 1px;
  line-height: 1;
}

.google-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  border-top: 1px solid var(--border-dark);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-dark);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted-light);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-slogan {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-slogan span {
  color: var(--accent);
}

/* ===== FAQ ===== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: rgba(196, 149, 106, 0.3);
}

.faq-question {
  padding: 1.5rem 2rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.3s;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 2rem 1.5rem;
}

.faq-answer p {
  color: var(--text-muted-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-project {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ZONES D'INTERVENTION ===== */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.zone-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s;
}

.zone-card:hover {
  background: rgba(196,149,106,0.08);
}

.zone-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.01em;
}

.zone-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.zone-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: gap 0.2s;
}

.zone-card-link:hover {
  gap: 0.5rem;
}

.zones-note {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.zones-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


@media (max-width: 1024px) {
  .zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

@media (max-width: 768px) {
  .nav.menu-open {
    background: rgba(10, 10, 10, 0.99) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-logo img {
    height: 48px;
    width: auto;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
    z-index: 9999;
  }

  /* Drawer latéral droit */
  #menu-drawer a {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    text-decoration: none;
    display: block;
    letter-spacing: -0.01em;
    transition: color 0.2s;
  }

  #menu-drawer a:last-child {
    border-bottom: none;
  }

  #menu-drawer a:hover,
  #menu-drawer a.active {
    color: #fff;
  }

  #menu-drawer .btn-devis {
    margin-top: 2rem;
    background: var(--accent) !important;
    color: var(--bg-dark) !important;
    text-align: center;
    border-radius: 10px;
    border-bottom: none !important;
    padding: 0.9rem 1.5rem;
    font-size: 1rem !important;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .renovation-layout {
    grid-template-columns: 1fr;
  }

  .textures-grid {
    grid-template-columns: 1fr;
  }

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

  .processus-overlay {
    background: rgba(8, 8, 8, 0.72);
  }

  .process-step {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .process-step:last-child {
    border-bottom: none;
  }

  .process-step::before {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: 90vh;
    padding-bottom: 3rem;
  }

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

/* Correction du slider avant/après */
.ba-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 12px;
  cursor: ew-resize;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ba-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-before {
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;
}

.ba-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Couleur du texte dans le hero */
.expansion-hero .section-label {
  color: #FFFFFF;
}

.expansion-hero .lead {
  color: #FFFFFF;
}

.expansion-hero .btn-secondary {
  color: #FFFFFF;
}

.expansion-hero .section-label,
.expansion-hero .lead {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.expansion-hero .btn-secondary {
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  background: rgba(0, 0, 0, 0.3);
}

.expansion-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Style du bouton Demander un devis en haut */
.btn-devis {
  display: inline-block;
  font-size: 16px !important;
  font-weight: bold !important;
  padding: 14px 28px !important;
  background-color: #D4A574 !important;
  color: #000000 !important;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease;
}

.btn-devis:hover {
  background-color: #C19560 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}