/* ========== PAGE HERO ========== */
.page-hero {
  position: relative;
  padding-top: 80px;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a2a 100%);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/header.jpg') center/cover no-repeat;
  opacity: 0.3;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(27, 94, 32, 0.7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1rem;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb svg {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb span {
  color: var(--white);
  font-weight: 500;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.page-hero-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ========== STATS INLINE ========== */
.realisations-stats {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}

.stats-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-inline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-inline-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
}

.stat-inline-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.stat-inline-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

@media (max-width: 767px) {
  .stats-inline {
    gap: 1.5rem;
  }

  .stat-inline-divider {
    display: none;
  }

  .stat-inline-item {
    flex: 1 1 40%;
  }
}

/* ========== GALLERY FILTERS ========== */
.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.filter-btn svg {
  transition: var(--transition);
}

.filter-btn.active svg {
  color: var(--white);
}

/* ========== GALLERY GRID ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.gallery-item.hidden {
  display: none;
}

/* Gallery Image */
.gallery-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-img-before,
.gallery-img-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.gallery-img-after {
  opacity: 0;
}

.gallery-image-container.show-after .gallery-img-before {
  opacity: 0;
}

.gallery-image-container.show-after .gallery-img-after {
  opacity: 1;
}

/* Before/After Toggle */
.gallery-before-after-toggle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 9999px;
  padding: 4px;
  z-index: 5;
}

.toggle-before,
.toggle-after {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-before.active,
.toggle-after.active {
  background: var(--green);
  color: var(--white);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  transform: translateY(20px);
  opacity: 0;
}

.gallery-item:hover .gallery-zoom-btn {
  transform: translateY(0);
  opacity: 1;
}

.gallery-zoom-btn:hover {
  background: var(--green);
  color: var(--white);
}

.gallery-zoom-btn svg {
  color: var(--dark);
  transition: var(--transition);
}

.gallery-zoom-btn:hover svg {
  color: var(--white);
}

/* Gallery Content */
.gallery-content {
  padding: 1.5rem;
}

.gallery-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.gallery-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.gallery-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.gallery-location svg {
  color: var(--green);
}

.gallery-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Load More */
.gallery-load-more {
  margin-top: 3rem;
  text-align: center;
  padding: 0 0.5rem;
}

.gallery-load-more .btn {
  gap: 0.75rem;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.gallery-load-more .btn svg {
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}

.gallery-load-more .btn:hover svg {
  animation-play-state: running;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
  color: var(--white);
}

.lightbox-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.lightbox-nav:hover {
  background: var(--green);
}

.lightbox-nav svg {
  color: var(--white);
}

.lightbox-image-wrap {
  position: relative;
  max-width: 70vw;
  max-height: 80vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
}

.lightbox-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    min-height: 350px;
  }

  .page-hero-content {
    padding: 3rem 1rem;
  }

  .page-hero-desc {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 300px;
  }

  .page-hero-content {
    padding: 2.5rem 0.75rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero-desc {
    font-size: 0.9375rem;
    margin-top: 1rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  /* Stats mobile */
  .realisations-stats {
    padding: 1.5rem 0;
  }

  .stats-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
  }

  .stat-inline-item {
    padding: 0.5rem;
  }

  .stat-inline-number {
    font-size: 1.5rem;
  }

  .stat-inline-label {
    font-size: 0.75rem;
  }

  /* Gallery filters mobile */
  .gallery-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .filter-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-content {
    padding: 1rem;
  }

  .gallery-content h3 {
    font-size: 1rem;
  }

  .gallery-desc {
    font-size: 0.8125rem;
  }

  /* Lightbox mobile */
  .lightbox-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-nav:first-of-type {
    left: 0.5rem;
  }

  .lightbox-nav:last-of-type {
    right: 0.5rem;
  }

  .lightbox-image-wrap {
    max-width: 90vw;
    max-height: 70vh;
  }

  .lightbox-image {
    max-height: 70vh;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .lightbox-label {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.5rem;
  }

  .stats-inline {
    gap: 0.75rem;
  }

  .stat-inline-number {
    font-size: 1.25rem;
  }

  .stat-inline-label {
    font-size: 0.6875rem;
  }

  .gallery-before-after-toggle {
    bottom: 8px;
    left: 8px;
  }

  .toggle-before,
  .toggle-after {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
  }
}

/* ========== NAVBAR ACTIVE LINK ========== */
.navbar-links a.active {
  color: var(--green);
}

.mobile-link.active {
  color: var(--green);
  background: var(--green-light);
}

/* ========== FIX OVERFLOW MOBILE ========== */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Masquer les boutons d'action de la navbar desktop sur mobile
     (ils sont déjà présents dans le menu mobile) */
  .navbar-actions {
    display: none;
  }
}/* ========== PAGE HERO ========== */
.page-hero {
  position: relative;
  padding-top: 80px;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a2a 100%);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/header.jpg') center/cover no-repeat;
  opacity: 0.3;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.9) 0%, rgba(27, 94, 32, 0.7) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1rem;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb svg {
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb span {
  color: var(--white);
  font-weight: 500;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}

.page-hero-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ========== STATS INLINE ========== */
.realisations-stats {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 2rem 0;
}

.stats-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-inline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-inline-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
}

.stat-inline-label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.stat-inline-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

@media (max-width: 767px) {
  .stats-inline {
    gap: 1.5rem;
  }

  .stat-inline-divider {
    display: none;
  }

  .stat-inline-item {
    flex: 1 1 40%;
  }
}

/* ========== GALLERY FILTERS ========== */
.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.filter-btn svg {
  transition: var(--transition);
}

.filter-btn.active svg {
  color: var(--white);
}

/* ========== GALLERY GRID ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.gallery-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.gallery-item.hidden {
  display: none;
}

/* Gallery Image */
.gallery-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-img-before,
.gallery-img-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.gallery-img-after {
  opacity: 0;
}

.gallery-image-container.show-after .gallery-img-before {
  opacity: 0;
}

.gallery-image-container.show-after .gallery-img-after {
  opacity: 1;
}

/* Before/After Toggle */
.gallery-before-after-toggle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 9999px;
  padding: 4px;
  z-index: 5;
}

.toggle-before,
.toggle-after {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-before.active,
.toggle-after.active {
  background: var(--green);
  color: var(--white);
}

/* Gallery Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  transform: translateY(20px);
  opacity: 0;
}

.gallery-item:hover .gallery-zoom-btn {
  transform: translateY(0);
  opacity: 1;
}

.gallery-zoom-btn:hover {
  background: var(--green);
  color: var(--white);
}

.gallery-zoom-btn svg {
  color: var(--dark);
  transition: var(--transition);
}

.gallery-zoom-btn:hover svg {
  color: var(--white);
}

/* Gallery Content */
.gallery-content {
  padding: 1.5rem;
}

.gallery-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  background: var(--green-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.gallery-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.gallery-location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

.gallery-location svg {
  color: var(--green);
}

.gallery-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Load More */
.gallery-load-more {
  margin-top: 3rem;
  text-align: center;
  padding: 0 0.5rem;
}

.gallery-load-more .btn {
  gap: 0.75rem;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
}

.gallery-load-more .btn svg {
  animation: spin 2s linear infinite;
  animation-play-state: paused;
}

.gallery-load-more .btn:hover svg {
  animation-play-state: running;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
  color: var(--white);
}

.lightbox-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.lightbox-nav:hover {
  background: var(--green);
}

.lightbox-nav svg {
  color: var(--white);
}

.lightbox-image-wrap {
  position: relative;
  max-width: 70vw;
  max-height: 80vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
}

.lightbox-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero {
    min-height: 350px;
  }

  .page-hero-content {
    padding: 3rem 1rem;
  }

  .page-hero-desc {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 300px;
  }

  .page-hero-content {
    padding: 2.5rem 0.75rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
  }

  .page-hero-desc {
    font-size: 0.9375rem;
    margin-top: 1rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  /* Stats mobile */
  .realisations-stats {
    padding: 1.5rem 0;
  }

  .stats-inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    text-align: center;
  }

  .stat-inline-item {
    padding: 0.5rem;
  }

  .stat-inline-number {
    font-size: 1.5rem;
  }

  .stat-inline-label {
    font-size: 0.75rem;
  }

  /* Gallery filters mobile */
  .gallery-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .filter-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Gallery grid mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-content {
    padding: 1rem;
  }

  .gallery-content h3 {
    font-size: 1rem;
  }

  .gallery-desc {
    font-size: 0.8125rem;
  }

  /* Lightbox mobile */
  .lightbox-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  .lightbox-nav:first-of-type {
    left: 0.5rem;
  }

  .lightbox-nav:last-of-type {
    right: 0.5rem;
  }

  .lightbox-image-wrap {
    max-width: 90vw;
    max-height: 70vh;
  }

  .lightbox-image {
    max-height: 70vh;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .lightbox-label {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.5rem;
  }

  .stats-inline {
    gap: 0.75rem;
  }

  .stat-inline-number {
    font-size: 1.25rem;
  }

  .stat-inline-label {
    font-size: 0.6875rem;
  }

  .gallery-before-after-toggle {
    bottom: 8px;
    left: 8px;
  }

  .toggle-before,
  .toggle-after {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
  }
}

/* ========== NAVBAR ACTIVE LINK ========== */
.navbar-links a.active {
  color: var(--green);
}

.mobile-link.active {
  color: var(--green);
  background: var(--green-light);
}

/* ========== FIX OVERFLOW MOBILE ========== */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Masquer les boutons d'action de la navbar desktop sur mobile
     (ils sont déjà présents dans le menu mobile) */
  .navbar-actions {
    display: none;
  }
}