/* Page Services - Styles spécifiques uniquement */

/* ===== VARIABLES ===== */
:root {
  --accent: #ff6600;
  --dark: #2c3e50;
  --muted-bg: #f5f5f5;
  --shadow-light: 0 4px 12px rgba(44, 62, 80, 0.06);
  --shadow-medium: 0 6px 20px rgba(44, 62, 80, 0.08);
  --border-radius: 8px;
}

/* ===== SECTION SERVICE DÉTAIL ===== */
.service-section {
  padding: 40px 0 60px;
  background-color: #f5f5f5;
  border-radius: var(--border-radius);
  margin-top: 30px;
  margin-bottom: 30px;
}

.service-header {
  text-align: left;
  margin-bottom: 24px;
}

.service-header h1 {
  color: var(--dark);
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.service-subtitle {
  color: #64748b;
  font-weight: 600;
  font-size: clamp(14px, 2.5vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

/* Carousel */
.service-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-top: 50px;
  box-shadow: var(--shadow-medium);
  background: #fff;
}

.service-slides {
  display: flex;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-slide {
  min-width: 100%;
  display: none;
  height: 450px;
  overflow: hidden;
}

.service-slide.active {
  display: block;
}

.service-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 102, 0, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15);
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.05);
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.2);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 7;
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: scale(1.2);
}

/* Description */
.service-description {
  background: #fff;
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
  border-left: 4px solid var(--accent);
}

.service-description h3 {
  color: var(--dark);
  margin-bottom: 12px;
  font-size: clamp(20px, 3vw, 22px);
  font-weight: 600;
}

.service-description h4 {
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: clamp(16px, 2.5vw, 18px);
  color: #4b5563;
  font-weight: 600;
}

.service-description p {
  margin-bottom: 12px;
}

.service-tools {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 12px;
  padding-left: 0;
}

.service-tools li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  color: #6b7280;
}

.service-tools li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Galerie avec défilement automatique */
.service-gallery {
  margin-top: 32px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  border-radius: var(--border-radius);
  padding: 20px 0;
}

.service-gallery::before,
.service-gallery::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.service-gallery::before {
  left: 0;
  background: linear-gradient(90deg, rgba(245, 245, 245, 1), transparent);
}

.service-gallery::after {
  right: 0;
  background: linear-gradient(270deg, rgba(245, 245, 245, 1), transparent);
}

.gallery-track {
  display: flex;
  gap: 16px;
  animation: scroll-horizontal 30s linear infinite;
  width: fit-content;
}

.service-gallery img {
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.service-gallery img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15);
}

.service-gallery:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent);
}

/* ===== SECTION ÉQUIPEMENT ===== */
.equipment-section {
  margin: 40px 0;
  padding: 32px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.equipment-title {
  color: var(--dark);
  font-size: clamp(24px, 4vw, 28px);
  font-weight: 600;
  margin-bottom: 16px;
}

.equipment-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 600;
}

.equipment-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #374151;
}

.equipment-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.equipment-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.equipment-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.equipment-label {
  padding: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  margin: 0;
}

/* ===== SECTION COMING SOON ===== */
.coming-soon-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 60px 40px;
  background-color: #f5f5f5;
  text-align: center;
  border-radius: var(--border-radius);
}

.coming-soon-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: linear-gradient(135deg, #ff6600 0%, #ff8833 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.3);
}

.coming-soon-icon i {
  font-size: 60px;
  color: white;
}

.coming-soon-title {
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 24px;
}

.coming-soon-text {
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.coming-soon-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
  padding: 0 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
}

.feature-item i {
  color: #3498db;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  text-align: left;
}

.coming-soon-contact {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #e5e7eb;
}

.coming-soon-contact h3 {
  font-size: clamp(24px, 4vw, 28px);
  color: #2c3e50;
  margin-bottom: 12px;
  font-weight: 600;
}

.coming-soon-contact > p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 24px;
}

.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: #ff6600;
  color: white;
}

.btn-primary:hover {
  background: #ff8833;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
  background: white;
  color: #2c3e50;
  border: 2px solid #2c3e50;
}

.btn-secondary:hover {
  background: #ff6600;
  color: white;
  border-color: #ff6600;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.3);
}

/* ===== SECTION SERVICES WRAPPER (Page liste) ===== */
.services-wrapper {
  background: #fff;
  padding: 60px 0;
}

.services-intro {
  max-width: 900px;
  margin: 0 auto 50px;
  text-align: center;
  padding: 0 20px;
}

.services-intro h2 {
  font-size: clamp(32px, 6vw, 46px);
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
}

.services-intro p {
  font-size: clamp(16px, 2.5vw, 19px);
  color: #555;
  line-height: 1.7;
  margin-bottom: 30px;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.service-card {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
  z-index: 1;
}

.service-card:hover::before {
  background: rgba(0, 0, 0, 0.7);
}

.card-content {
  position: relative;
  padding: 40px;
  text-align: center;
  z-index: 2;
}

.icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.icon i {
  color: #e8491d;
}

.card-content h3 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.card-content p {
  font-size: clamp(14px, 2vw, 15px);
  color: #ddd;
  line-height: 1.6;
}

.card-footer {
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  background: #e8491d;
  padding: 25px;
  text-align: center;
  transition: bottom 0.3s ease;
  z-index: 3;
}

.service-card:hover .card-footer {
  bottom: 0;
}

.card-footer .btn {
  background: white;
  color: #e8491d;
  padding: 12px 35px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid white;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 14px;
  letter-spacing: 1px;
}

.card-footer .btn:hover {
  background: transparent;
  color: white;
}

.cta-section {
  text-align: center;
  margin-top: 50px;
  padding: 0 20px;
}

.cta-button {
  display: inline-block;
  background: #e8491d;
  color: white;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  background: #c73d17;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 73, 29, 0.3);
  color: white;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-description {
    order: 2;
  }

  .service-carousel {
    order: 1;
    margin-top: 0;
  }

  .service-slide {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .equipment-section {
    padding: 24px 16px;
  }

  .equipment-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .equipment-card img {
    height: 180px;
  }

  .coming-soon-container {
    padding: 40px 24px;
    margin: 40px 20px;
  }

  .coming-soon-features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 350px;
  }
}

@media (max-width: 520px) {
  .service-section {
    padding: 24px 0 40px;
  }

  .service-slide {
    height: 250px;
  }

  .service-description {
    padding: 20px;
    font-size: 15px;
  }

  .service-tools {
    grid-template-columns: 1fr;
  }

  .service-tools li {
    font-size: 14px;
  }

  .service-gallery img {
    width: 220px;
    height: 160px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .close-modal {
    font-size: 30px;
    top: 10px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .service-header {
    padding: 0 15px;
  }

  .service-carousel {
    border-radius: 0;
  }

  .service-description {
    border-radius: 0;
    border-left: none;
    border-top: 4px solid var(--accent);
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}