/* Page Réalisations - Design Moderne Épuré */

body.realisations-page {
  background: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* Hero Section - Avec bannière */
.realisations-hero {
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.realisations-hero-banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: zoomBannerImage 10s ease-in-out infinite alternate;
}

@keyframes zoomBannerImage {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
}

.realisations-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-bottom: 1.5rem;
}

.realisations-hero h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.realisations-subtitle {
  font-size: 1.1rem;
  color: white;
  margin: 1rem auto 0;
  max-width: 600px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.category-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 2rem;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  margin-top: 0;
  position: relative;
}

.category-filters::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(2, 110, 167, 0.2) 50%, transparent 100%);
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #1C2A33;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #026ea7 0%, #0389c9 100%);
  transition: left 0.4s ease;
  z-index: -1;
}

.filter-btn:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(2, 110, 167, 0.25);
}

.filter-btn:hover::before {
  left: 0;
}

/* Sections par catégorie */
.realisations-category-section {
  padding: 4rem 2rem;
  background: white;
  border-bottom: 1px solid #e9ecef;
}

.realisations-category-section:nth-child(even) {
  background: #f8f9fa;
}

.category-container {
  max-width: 1400px;
  margin: 0 auto;
}

.category-title-left {
  margin-bottom: 2rem;
}

.category-title-left h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #026ea7;
  line-height: 1.2;
  margin: 0;
  position: relative;
  padding-left: 1.5rem;
}

.category-title-left h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #026ea7;
  border-radius: 2px;
}

/* Grille de photos statique */
.category-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Slider avant/après dans les projets */
.gallery-item-slider {
  cursor: default;
}

.gallery-item-slider:hover {
  transform: none;
}

.project-image-compare {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-image-before,
.project-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-before {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.project-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.project-slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.project-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: #026ea7;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 6px;
}

.project-slider-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-labels {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #026ea7;
  z-index: 6;
  pointer-events: none;
}

.project-label-avant,
.project-label-apres {
  padding: 0.4rem 0.8rem;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-item {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

/* Lightbox avec galerie */
.lightbox-gallery {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.lightbox-gallery.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 10001;
  background: none;
  border: none;
  transition: transform 0.3s ease;
}

.lightbox-close-btn:hover {
  transform: scale(1.2);
}

.lightbox-main-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  max-height: 80vh;
  margin-bottom: 2rem;
}

.lightbox-main-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: opacity 0.3s ease-in-out;
}

.lightbox-loader {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 1.5rem 1rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10002;
  transition: all 0.3s ease;
  border-radius: 5px;
  backdrop-filter: blur(10px);
}

.lightbox-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-arrow.prev {
  left: -60px;
}

.lightbox-nav-arrow.next {
  right: -60px;
}

.lightbox-thumbnails {
  display: flex;
  gap: 1rem;
  max-width: 90%;
  overflow-x: auto;
  padding: 1rem;
  justify-content: center;
}

.lightbox-thumbnail {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.lightbox-thumbnail:hover {
  border-color: white;
  transform: scale(1.1);
  opacity: 1;
}

.lightbox-thumbnail.active {
  border-color: white;
  opacity: 1;
}

/* Slider avant/après dans la lightbox */
.lightbox-slider-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto 2rem;
}

.lightbox-image-compare {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.lightbox-image-wrapper {
  position: relative;
  width: 100%;
  height: 75vh;
  min-height: 600px;
  overflow: hidden;
}

.lightbox-image-before,
.lightbox-image-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.lightbox-image-before {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.lightbox-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.lightbox-slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.lightbox-slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: #026ea7;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  padding: 8px;
}

.lightbox-slider-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  position: relative;
  z-index: 10;
}

.lightbox-label-avant,
.lightbox-label-apres {
  padding: 0.7rem 1.5rem;
  background: rgba(2, 110, 167, 0.9);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}

/* CTA Section - Design épuré */
.realisations-cta {
  padding: 5rem 2rem;
  background: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.realisations-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
  opacity: 0.5;
}

.realisations-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #026ea7;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  position: relative;
}

.realisations-cta p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2.5rem;
  font-weight: 300;
  position: relative;
}

.btn-cta-primary {
  display: inline-block;
  background: #026ea7;
  color: white;
  padding: 1.2rem 3rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 110, 167, 0.3);
  position: relative;
}

.btn-cta-primary:hover {
  background: #025580;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(2, 110, 167, 0.4);
}

/* Bouton Voir plus de projets - caché par défaut */
.btn-voir-plus-projets {
  display: none;
  margin: 2rem auto 0;
  background: #026ea7;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 110, 167, 0.3);
}

.btn-voir-plus-projets:hover {
  background: #025580;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 110, 167, 0.4);
}

.btn-voir-plus-projets.active {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .category-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .category-title-left h2 {
    font-size: 2rem;
  }

  .gallery-item {
    height: 250px;
  }

  .lightbox-main-image {
    max-height: 60vh;
  }

  .lightbox-thumbnail {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .realisations-hero-banner {
    height: 250px;
  }

  .realisations-hero h1 {
    font-size: 2rem;
    padding-bottom: 0.6rem;
  }

  .realisations-hero h1::after {
    bottom: 0;
  }

  .realisations-subtitle {
    display: none;
  }

  .category-filters {
    gap: 0.7rem;
    padding: 1.2rem 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
    border-radius: 10px;
  }
  
  .filter-btn::before {
    display: none;
  }
  
  .filter-btn:hover {
    background: linear-gradient(135deg, #026ea7 0%, #0389c9 100%);
    color: white;
  }

  .realisations-category-section {
    padding: 3rem 1.5rem;
  }

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

  /* Masquer la deuxième ligne de projets salle de bain par défaut sur mobile */
  #salleDeBainGallery .gallery-item-second-row {
    display: none;
  }

  #salleDeBainGallery.show-all .gallery-item-second-row {
    display: block;
  }

  /* Afficher le bouton voir plus sur mobile */
  .btn-voir-plus-projets {
    display: block;
  }

  #salleDeBainGallery.show-all ~ .btn-voir-plus-projets {
    display: none;
  }

  .category-title-left h2 {
    font-size: 1.8rem;
  }

  .gallery-item {
    height: 200px;
  }

  .realisations-cta h2 {
    font-size: 2rem;
  }

  .realisations-cta p {
    font-size: 1.1rem;
  }

  .btn-cta-primary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

  .lightbox-close-btn {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
  }

  .lightbox-main-image {
    max-height: 50vh;
  }

  .lightbox-slider-container {
    width: 95%;
  }

  .lightbox-image-wrapper {
    height: 60vh;
    min-height: 400px;
  }

  .lightbox-thumbnails {
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .lightbox-thumbnail {
    width: 60px;
    height: 60px;
  }

  .lightbox-nav-arrow.prev {
    left: 5px;
  }

  .lightbox-nav-arrow.next {
    right: 5px;
  }

  .lightbox-nav-arrow {
    padding: 1rem 0.7rem;
    font-size: 1.5rem;
  }

  .project-labels {
    font-size: 0.65rem;
    bottom: 5px;
    left: 5px;
    right: 5px;
  }

  .project-label-avant,
  .project-label-apres {
    padding: 0.3rem 0.6rem;
  }
}

@media (max-width: 480px) {
  .realisations-hero-banner {
    height: 200px;
  }

  .realisations-hero h1 {
    font-size: 1.6rem;
  }

  .category-filters {
    padding: 0.8rem 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

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

  .category-title-left h2 {
    font-size: 1.5rem;
  }

  .gallery-item {
    height: 250px;
  }
}
/* Personnalisation bannière cookies TermsFeed */

/* Bouton "Accepter" */
.cc-nb-okagree,
.cc-cp-foot-save {
  background-color: #0373ab !important;
  border-color: #0373ab !important;
  color: white !important;
}

.cc-nb-okagree:hover,
.cc-cp-foot-save:hover {
  background-color: #025a8a !important;
  border-color: #025a8a !important;
}

/* Bouton "Refuser" */
.cc-nb-reject,
.cc-cp-foot-bypr {
  background-color: transparent !important;
  border: 2px solid #0373ab !important;
  color: #0373ab !important;
}

.cc-nb-reject:hover,
.cc-cp-foot-bypr:hover {
  background-color: #0373ab !important;
  color: white !important;
}

/* Bouton "Personnaliser" / "Gérer les préférences" */
.cc-nb-changep {
  color: #0373ab !important;
  text-decoration: underline;
}

.cc-nb-changep:hover {
  color: #025a8a !important;
}
