/**
 * Projet/Realisation Single Page Styles
 *
 * @package HelloElementor
 */

/* ===================================
   CSS Variables
   =================================== */
:root {
  --projet-primary-color: #c86327;
  --projet-secondary-color: #000;
  --projet-text-color: #333;
  --projet-text-light: #666;
  --projet-border-color: #e0e0e0;
  --projet-background-light: #f9f9f9;
  --projet-background-gray: #f5f5f5;
  --projet-transition-speed: 0.3s;
  --projet-border-radius: 8px;
}

/* ===================================
   Project Page Layout
   =================================== */

.projet-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header Section with Back Link */
.projet-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.projet-back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  transition: opacity var(--projet-transition-speed) ease;
}

.projet-back-link:hover {
  opacity: 0.7;
}

.projet-back-icon {
  font-size: 24px;
  line-height: 1;
}

/* Main Content Layout */
.projet-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* ===================================
   Left Column - Image Carousel
   =================================== */

.projet-left-column {
  position: relative;
}

.projet-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--projet-border-radius);
  background: var(--projet-background-gray);
}

.projet-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.projet-carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

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

.projet-carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  align-items: center;
  background: rgba(200, 99, 39, 0.9);
  padding: 10px 20px;
  border-radius: 30px;
  z-index: 10;
}

.carousel-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: opacity var(--projet-transition-speed) ease;
  font-size: 20px;
  color: #fff;
}

.carousel-btn:hover {
  opacity: 0.6;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--projet-transition-speed) ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
  background: #fff;
}

/* ===================================
   Right Column - Project Information
   =================================== */

.projet-right-column {
  display: flex;
  flex-direction: column;
}

.projet-title-section {
  margin-bottom: 30px;
}

.projet-main-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
  color: #000;
}

.projet-location {
  font-size: 16px;
  color: var(--projet-primary-color);
  margin: 0;
  font-weight: 500;
}

/* ===================================
   ACF Fields Display
   =================================== */

.projet-acf-fields {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.acf-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acf-field-label {
  font-size: 13px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.acf-field-value {
  font-size: 16px;
  color: var(--projet-text-color);
  line-height: 1.6;
}

.acf-field-value p {
  margin: 0;
}

/* Text Fields */
.acf-field-text .acf-field-value {
  font-weight: 500;
}

/* Featured Image */
.acf-photo-mise-en-avant {
  margin-bottom: 20px;
}

.acf-photo-mise-en-avant img {
  width: 100%;
  border-radius: var(--projet-border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Empty State */
.acf-field-empty {
  font-style: italic;
  color: #999;
}

/* ===================================
   Previous/Next Project Section
   =================================== */

.projet-prev-next-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 60px;
}

.projet-prev-next {
  background: var(--projet-background-light);
  padding: 30px;
  border-radius: var(--projet-border-radius);
  transition: box-shadow var(--projet-transition-speed) ease;
}

.projet-prev-next:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.projet-prev-next.projet-next .projet-prev-next-link {
  flex-direction: row;
  text-align: right;
  justify-content: flex-end;
}

.projet-prev-next.projet-next .projet-prev-next-text {
  text-align: right;
}

.projet-prev-next-link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}

.projet-prev-next-icon {
  width: 60px;
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--projet-border-radius);
  flex-shrink: 0;
  font-size: 24px;
  color: var(--projet-primary-color);
  transition: background var(--projet-transition-speed) ease,
    color var(--projet-transition-speed) ease;
}

.projet-prev-next:hover .projet-prev-next-icon {
  background: var(--projet-primary-color);
  color: #fff;
}

.projet-prev-next-text h3 {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 5px 0;
  color: #666;
}

.projet-prev-next-text p {
  font-size: 16px;
  color: var(--projet-primary-color);
  margin: 0;
  font-weight: 500;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
  .projet-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projet-carousel {
    height: 400px;
  }

  .projet-main-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .projet-page {
    padding: 20px 15px;
  }

  .projet-carousel {
    height: 350px;
  }

  .projet-main-title {
    font-size: 24px;
  }

  .projet-carousel-controls {
    padding: 8px 15px;
    gap: 10px;
  }

  .projet-acf-fields {
    gap: 20px;
  }

  .acf-field-value {
    font-size: 15px;
  }

  .projet-prev-next-wrapper {
    grid-template-columns: 1fr;
  }

  .projet-prev-next.projet-next .projet-prev-next-link {
    flex-direction: row;
    text-align: left;
  }

  .projet-prev-next.projet-next .projet-prev-next-text {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .projet-carousel {
    height: 280px;
  }

  .projet-main-title {
    font-size: 22px;
  }

  .projet-back-link {
    font-size: 16px;
  }

  .projet-prev-next {
    padding: 20px;
  }

  .projet-prev-next-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
