/* ============================================================
   IBEXIS — Rénovation Intérieure · Haute-Savoie
   ============================================================ */

:root {
  --black: #0a0a0a;
  --white: #fafaf8;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --beige: #f5f2ed;
  --beige-mid: #ede8e0;
  --text-dark: #1a1a1a;
  --text-mid: #555;
  --text-light: #999;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; }

h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 600; line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 600; line-height: 1.15; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; }

p { line-height: 1.7; color: var(--text-mid); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---- PROGRESS BAR ---- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- HEADER ---- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  transition: box-shadow 0.3s;
}
#header.scrolled { box-shadow: 0 2px 30px rgba(0,0,0,0.08); }

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-logo img { height: 52px; width: auto; }
#header.show-logo .nav-logo {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: space-evenly;
}
.nav-links li a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  transition: color 0.2s;
}
.nav-links li a:hover { color: var(--gold); }
.nav-links li a.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.nav-links li a.nav-cta:hover { background: var(--gold); color: var(--black); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid rgba(201,169,110,0.2);
  padding: 1.5rem 2rem 2rem;
  z-index: 999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu ul li a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ---- TAGS ---- */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  border: 1px solid rgba(0,0,0,0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.tag-gold {
  color: var(--gold);
  border-color: rgba(201, 169, 110, 0.4);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 0.9rem 2.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold); color: var(--black); transform: translateY(-1px); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--gold); }
.btn-text span { transition: transform 0.2s; }
.btn-text:hover span { transform: translateX(4px); }

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 1rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: #b8924d; transform: translateY(-1px); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #25D366;
  color: #fff;
  padding: 0.85rem 1.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 2px;
  margin-top: 2rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }

/* ---- FADE IN ANIMATION ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* toujours côte à côte jusqu'à 700px */
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 4rem 3rem 6rem;
  background: var(--white);
}
.hero-logo { height: 180px; width: auto; display: block; margin: 0 auto 3rem auto; }
.hero-left h1 { margin-bottom: 1.4rem; }
.hero-left h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 460px;
  margin-bottom: 2.4rem;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-light); letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: rgba(0,0,0,0.12); }

.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 3px solid var(--gold);
}

/* ============================================================
   SECTION 2 — POURQUOI IBEXIS
   ============================================================ */
#pourquoi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.section-dark { background: var(--black); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark h2 { color: var(--white); }

.pourquoi-left {
  position: relative;
  overflow: hidden;
}
.ibex-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(20%) contrast(1.05);
}

.pourquoi-right {
  padding: 6rem 5rem 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pourquoi-right h2 { margin-bottom: 2.5rem; }

.values-list { display: flex; flex-direction: column; gap: 1.6rem; }
.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}
.value-icon { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.values-list strong.gold { display: block; color: var(--gold); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.2rem; }
.values-list p { font-size: 0.92rem; margin: 0; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--black);
  border-top: 1px solid rgba(201,169,110,0.2);
  border-bottom: 1px solid rgba(201,169,110,0.2);
  padding: 1.1rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker {
  display: inline-block;
  animation: ticker 30s linear infinite;
}
.ticker span {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 1rem;
}
.ticker .dot { color: var(--gold); margin: 0 0.2rem; font-size: 0.6rem; vertical-align: middle; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION 4 — APPROCHE
   ============================================================ */
.section-beige { background: var(--beige); }

#approche {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 7rem 6rem;
}

.approche-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.approche-left h2 { margin-bottom: 1.4rem; }
.approche-left p { font-size: 1rem; max-width: 400px; }

.approche-right { display: flex; flex-direction: column; gap: 0; }

.etape {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem 0 1.8rem 1.5rem;
  border-left: 2px solid var(--gold);
  position: relative;
}
.etape + .etape { margin-top: 0.5rem; }
.etape::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.etape-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(201, 169, 110, 0.25);
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}
.etape-content h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.etape-content p { font-size: 0.9rem; margin-bottom: 0.8rem; }
.etape-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.etape-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-mid);
  background: rgba(0,0,0,0.06);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
}

/* ============================================================
   SECTION 5 — RÉALISATIONS
   ============================================================ */
.section-white { background: var(--white); }

#realisations { padding: 7rem 6rem; }

.section-header { margin-bottom: 3.5rem; }
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-header-row h2 { margin: 0; }

/* ---- Sous-titres réalisations ---- */
.realisation-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 2.5rem 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,169,110,0.3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.realisation-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ---- SLIDERS ROW (3 côte à côte) ---- */
.sliders-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.slider-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.slider-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.15); }

.slider-card .slider-container {
  aspect-ratio: 3/4;
  min-height: unset;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.slider-card-info {
  padding: 1.2rem 1.4rem 1.4rem;
}
.slider-card-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.slider-location {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.slider-location::before {
  content: '◎';
  color: var(--gold);
  font-size: 0.65rem;
}

/* ---- GALERIE PROJETS (bas de section) ---- */
.projects-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pgallery-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pgallery-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.11); }

/* Zone images avec flèches nav */
.pgallery-imgs {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f0f0;
}

.pgallery-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: zoom-in;
  display: block;
  pointer-events: none;
}
.pgallery-img.active { opacity: 1; position: relative; pointer-events: auto; }

/* Flèches navigation */
.pgallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  opacity: 0;
  pointer-events: none;
}
.pgallery-imgs:hover .pgallery-nav { opacity: 1; pointer-events: auto; }
.pgallery-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.pgallery-nav-l { left: 0.7rem; }
.pgallery-nav-r { right: 0.7rem; }

/* Compteur */
.pgallery-counter {
  position: absolute;
  bottom: 0.7rem;
  right: 0.8rem;
  background: rgba(10,10,10,0.6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  z-index: 5;
  letter-spacing: 0.05em;
}

.pgallery-info {
  padding: 1.2rem 1.4rem 1.6rem;
}
.pgallery-cat {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.pgallery-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pgallery-info p { font-size: 0.85rem; line-height: 1.6; }

/* ---- SLIDERS avant/après — AVANT à gauche, APRÈS à droite ---- */
.slider-container {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  width: 100%;
  height: 100%;
  min-height: 300px;
}
.project-card .slider-container { aspect-ratio: 4/3; min-height: unset; }
.gallery-slide .slider-container { width: 100%; height: 100%; min-height: unset; }

.slider-before, .slider-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.slider-before img, .slider-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* avant = gauche (base, toujours visible) */
/* après = droite (clip depuis la gauche, révèle à droite du handle) */
.slider-after { clip-path: inset(0 0 0 50%); }

.slider-label {
  position: absolute;
  top: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  z-index: 2;
}
/* AVANT = label gauche, APRÈS = label droit */
.label-before { left: 1rem; background: rgba(0,0,0,0.6); color: rgba(255,255,255,0.8); }
.label-after { right: 1rem; background: var(--gold); color: var(--black); }

.slider-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
.handle-btn {
  position: relative;
  background: var(--white);
  color: var(--black);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  z-index: 1;
}

/* ---- GALERIE multi-photos avec flèches ---- */
.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.project-featured .gallery { min-height: 520px; }
.project-card-pipeline .gallery { aspect-ratio: 4/3; }

.gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-slide.active { display: flex; align-items: stretch; }
.gallery-slide .slider-container { flex: 1; }

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

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.65);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: 1px solid rgba(201,169,110,0.4);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.gallery-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.gallery-arrow-prev { left: 0.8rem; }
.gallery-arrow-next { right: 0.8rem; }

.gallery-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.gallery-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.2s;
  cursor: pointer;
}
.gallery-dot.active { background: var(--gold); }

/* ============================================================
   SECTION 6 — SERVICES
   ============================================================ */
#services {
  padding: 7rem 6rem;
}
#services .section-header { text-align: center; margin-bottom: 4rem; }
#services .section-header h2 { color: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--black);
  border: 1.5px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background: #111;
  padding: 2.5rem 2rem;
  transition: background 0.25s;
  border: 1.5px solid transparent;
}
.service-card:hover { background: #161616; }
.service-card:last-child:nth-child(3n+1) { grid-column: 1 / 2; }

.service-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.7rem; }
.service-card p { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 1.2rem; line-height: 1.65; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.service-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 110, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
}

/* ============================================================
   SECTION 7 — ÉQUIPE
   ============================================================ */
.section-equipe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  background: var(--beige);
}

.equipe-img {
  position: relative;
  overflow: hidden;
}
.equipe-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.equipe-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5rem 6rem 5rem;
}
.equipe-content h2 { margin-bottom: 1.2rem; }
.equipe-intro { margin-bottom: 1rem; max-width: 480px; }
.equipe-content > p:not(.equipe-intro) { margin-bottom: 2rem; max-width: 480px; }

.diplomes {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
}
.diplomes li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.team-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--white);
  padding: 1.3rem 1.5rem;
  border-radius: 4px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.team-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.team-avatar-inner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,169,110,0.25);
}
.team-role {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.team-card p { font-size: 0.83rem; margin: 0; }

/* ============================================================
   SECTION 8 — ZONE D'INTERVENTION
   ============================================================ */
#zone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 7rem 6rem;
  gap: 5rem;
  align-items: center;
}

.zone-left h2 { margin-bottom: 2rem; }

.villes-list { display: flex; flex-direction: column; gap: 0; }
.villes-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.ville-dot { color: var(--gold); font-size: 0.55rem; flex-shrink: 0; }
.villes-list li div { display: flex; flex-direction: column; gap: 0.1rem; }
.villes-list strong { font-size: 0.95rem; }
.ville-info { font-size: 0.78rem; color: var(--text-light); }

#leaflet-map {
  width: 100%;
  height: 440px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  z-index: 1;
}
.map-legend {
  text-align: left;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.map-legend-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.map-legend-dot.large { width: 12px; height: 12px; }

/* ---- LIGHTBOX ---- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,0.92);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev.hidden, .lightbox-next.hidden { display: none; }

.lightbox-count {
  position: absolute;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* Leaflet popup custom */
.ibexis-popup .leaflet-popup-content-wrapper {
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
}
.ibexis-popup .leaflet-popup-tip { background: #fff; }

/* ============================================================
   SECTION 9 — CONTACT
   ============================================================ */
#contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  padding: 7rem 6rem;
  gap: 5rem;
  align-items: center;
}

.contact-left h2 { color: var(--white); margin-bottom: 1.2rem; }
.contact-left > p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; max-width: 380px; }

.contact-infos { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-infos li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.ci-icon { font-size: 1rem; }

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 169, 110, 0.2);
  padding: 2.5rem;
  border-radius: 4px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  padding: 0.8rem 1rem;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select { cursor: pointer; appearance: none; }
.form-group select option { background: #1a1a1a; color: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #050505;
  color: var(--white);
  padding: 4rem 6rem 2rem;
  border-top: 1px solid rgba(201,169,110,0.15);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer-brand { max-width: 280px; }
.footer-logo { height: 110px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

.footer-links { display: flex; gap: 5rem; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  /* Hero et Pourquoi restent en 2 colonnes jusqu'à 700px */
  #approche { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 2.5rem; }

  #realisations { padding: 5rem 2.5rem; }
  .sliders-row { grid-template-columns: 1fr; gap: 2rem; }
  .projects-gallery { grid-template-columns: 1fr 1fr; }
  /* pgallery-card-wide supprimé — toutes les cartes identiques */

  #services { padding: 5rem 2.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }

  #zone { grid-template-columns: 1fr; padding: 5rem 2.5rem; gap: 3rem; }
  #leaflet-map { height: 360px; }

  #contact { grid-template-columns: 1fr; padding: 5rem 2.5rem; gap: 3rem; min-height: auto; }

  #footer { padding: 3rem 2.5rem 2rem; }
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }

  .sliders-row { grid-template-columns: 1fr; }
  .projects-gallery { grid-template-columns: 1fr; }
  .pgallery-card-wide { grid-column: span 1; }

  .team-cards { grid-template-columns: 1fr; }

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

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

  #footer { padding: 3rem 1.5rem 2rem; }
  .footer-links { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1100px) {
  .section-equipe { grid-template-columns: 1fr; }
  .equipe-img { height: 50vw; max-height: 400px; }
  .equipe-content { padding: 4rem 2.5rem; }
}

@media (max-width: 700px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 2.5rem 1.5rem; order: 2; }
  .hero-right { height: 95vw; max-height: 580px; order: 1; }
  .hero-img { object-position: center 30%; }
  .hero-badge { display: none; }
  .hero-logo { display: none; }
  .nav-logo { opacity: 1 !important; pointer-events: auto !important; }

  #pourquoi { grid-template-columns: 1fr; }
  .pourquoi-left { height: 80vw; max-height: 460px; }
  .ibex-photo { object-fit: cover; object-position: center 5%; }
  .pourquoi-right { padding: 3rem 1.5rem; }

  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  #approche { padding: 4rem 1.5rem; }
  #realisations { padding: 4rem 1.5rem; }
  #services { padding: 4rem 1.5rem; }
  #zone { padding: 4rem 1.5rem; }
  #contact { padding: 4rem 1.5rem; }
  .contact-form { padding: 1.5rem; }
  .equipe-left { padding: 3rem 1.5rem; }
}
