/* Styles spécifiques à la page d'accueil */

/* Hero section moderne avec image de fond */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(74, 85, 104, 0.95) 100%),
              url('/assets/img/image_ravalement.jpeg') center/cover;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

/* Barre décorative rouge en haut - signature visuelle A&D & Fils */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  box-shadow: 0 3px 15px rgba(200, 16, 46, 0.5);
  z-index: 10;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

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

.hero-logo {
  width: 280px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 30px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-slogan {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text h1 {
  font-size: 52px;
  margin-bottom: 25px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-text p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 18px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero-primary {
  background: var(--primary);
  color: white;
}

.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(200, 16, 46, 0.4);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: white;
  color: var(--secondary);
  border-color: white;
  transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.scroll-indicator::before {
  content: '↓';
  font-size: 30px;
  color: rgba(255,255,255,0.7);
}

/* Services section moderne avec CAROUSEL */
.services-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 42px;
  color: var(--secondary-dark);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* CAROUSEL STYLES - Plein écran */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 70px;
  box-sizing: border-box;
}

.carousel-wrapper {
  overflow: hidden;
  border-radius: 20px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.service-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 0;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  z-index: 3;
}

.service-image {
  height: 65vh;
  min-height: 420px;
  max-height: 650px;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s ease;
  display: block;
}

.service-card:hover .service-image img {
  transform: scale(1.04);
}

/* Gradient overlay pour lisibilité du texte */
.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.80) 0%,
    rgba(0, 0, 0, 0.30) 55%,
    rgba(0, 0, 0, 0.05) 100%
  );
  z-index: 1;
}

/* Texte en overlay sur l'image */
.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 60px;
  z-index: 2;
  color: white;
}

.service-content h3 {
  font-size: 36px;
  margin-bottom: 14px;
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.service-content p {
  color: rgba(255,255,255,0.90);
  margin-bottom: 28px;
  line-height: 1.7;
  font-size: 17px;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200,16,46,0.4);
}

.service-link:hover {
  background: var(--primary-dark);
  gap: 16px;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.5);
}

/* Boutons de navigation du carousel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.95);
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--secondary-dark);
  font-size: 20px;
}

.carousel-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(200, 16, 46, 0.4);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

/* Indicateurs (dots) du carousel */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary);
  width: 35px;
  border-radius: 6px;
}

.carousel-dot:hover {
  background: var(--primary);
  opacity: 0.7;
}

/* About section */
.about-section {
  padding: 100px 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-content h2 {
  font-size: 40px;
  margin-bottom: 25px;
  color: var(--secondary-dark);
  font-weight: 700;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 17px;
  line-height: 1.8;
}

.features-list {
  list-style: none;
  margin: 35px 0;
}

.features-list li {
  padding: 18px 0;
  padding-left: 40px;
  position: relative;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 22px;
  width: 30px;
  height: 30px;
  background: rgba(200, 16, 46, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.15);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 3px solid var(--primary);
  border-radius: 20px;
  z-index: -1;
}

.about-image img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Hours section - Compact & Professional */
.hours-section {
  padding: 60px 0;
  background: white;
}

.hours-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  border: 2px solid #f0f0f0;
  transition: all 0.3s ease;
}

.hours-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: var(--primary);
}

.hours-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.3);
  animation: clockPulse 2s ease-in-out infinite;
}

@keyframes clockPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hours-content h3 {
  font-size: 24px;
  color: var(--secondary-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.hour-row:hover {
  border-color: var(--primary);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hour-row.today {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(200, 16, 46, 0.04) 100%);
  border-color: var(--primary);
  font-weight: 600;
}

.hour-row.closed {
  opacity: 0.6;
}

.hour-row .day {
  font-weight: 600;
  color: var(--secondary-dark);
  font-size: 14px;
}

.hour-row .time {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
}

.hour-row.today .time {
  color: var(--primary);
}

.hour-row.closed .time {
  color: #999;
  font-style: italic;
}

.hours-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hours-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
  white-space: nowrap;
}

.hours-phone:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.hours-phone i {
  font-size: 18px;
  animation: phoneRing 1.5s ease-in-out infinite;
}

@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
  50% { transform: rotate(0deg); }
}

/* Transformations Avant/Après section - Slider interactif */
.transformations-section {
  padding: 100px 0;
  background: white;
}

.transformations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-slider {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  transition: all 0.4s ease;
}

.comparison-slider:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0,0,0,0.18);
}

.comparison-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.comparison-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.comparison-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.comparison-after {
  clip-path: inset(0 50% 0 0);
}

.comparison-label {
  position: absolute;
  top: 20px;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 15;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

.label-before {
  left: 20px;
  background: rgba(231, 76, 60, 0.95);
  color: white;
}

.label-after {
  right: 20px;
  background: rgba(39, 174, 96, 0.95);
  color: white;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 6px 25px rgba(200, 16, 46, 0.5);
  cursor: ew-resize;
  transition: all 0.3s ease;
}

.slider-button:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 8px 30px rgba(200, 16, 46, 0.7);
}

.slider-button i {
  animation: slideHint 2s ease-in-out infinite;
}

@keyframes slideHint {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

.comparison-info {
  padding: 35px;
  background: linear-gradient(to bottom, white 0%, #f8f9fa 100%);
  border-top: 3px solid var(--primary);
}

.comparison-info h3 {
  font-size: 24px;
  color: var(--secondary-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.comparison-info p {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.6;
}

.transformations-cta {
  text-align: center;
  margin-top: 60px;
}

.transformations-cta .btn {
  padding: 18px 50px;
  font-size: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 6px 25px rgba(200, 16, 46, 0.3);
}

.transformations-cta .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(200, 16, 46, 0.4);
}

/* Reviews section */
.reviews-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 50px;
}

.review-card {
  background: white;
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 80px;
  color: rgba(200, 16, 46, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.stars {
  color: #ffc107;
  font-size: 22px;
  margin-bottom: 20px;
}

.review-text {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.review-author {
  font-weight: 600;
  color: var(--secondary-dark);
  font-size: 16px;
}

/* CTA section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-section p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-section .btn {
  background: white;
  color: var(--primary);
  padding: 18px 50px;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta-section .btn:hover {
  background: var(--bg-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 968px) {
  .hero-text h1 {
    font-size: 38px;
  }

  .hero-slogan {
    font-size: 22px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image::after {
    display: none;
  }

  .section-header h2 {
    font-size: 34px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .carousel-container {
    padding: 0 50px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .carousel-prev { left: 6px; }
  .carousel-next { right: 6px; }

  .service-image {
    height: 55vh;
    min-height: 350px;
    max-height: 500px;
  }

  .service-content {
    padding: 35px 40px;
  }

  .service-content h3 {
    font-size: 28px;
  }

  /* Hours responsive */
  .hours-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 35px 25px;
  }

  .hours-icon {
    margin: 0 auto;
  }

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

  .hours-phone {
    margin: 0 auto;
  }
  
  /* Transformations responsive */
  .transformations-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .comparison-container {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 90vh;
  }

  .hero-logo {
    width: 220px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 17px;
  }

  .carousel-container {
    padding: 0 40px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }

  .service-image {
    height: 50vh;
    min-height: 300px;
  }

  .service-content {
    padding: 25px 30px;
  }

  .service-content h3 {
    font-size: 22px;
  }

  .service-content p {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  /* Transformations mobile */
  .transformations-section {
    padding: 60px 0;
  }
  
  .transformations-grid {
    gap: 30px;
  }
  
  .comparison-container {
    height: 350px;
  }
  
  .comparison-info {
    padding: 25px 20px;
  }
  
  .comparison-info h3 {
    font-size: 20px;
  }
  
  .comparison-info p {
    font-size: 14px;
  }
  
  .comparison-label {
    padding: 8px 18px;
    font-size: 12px;
  }
  
  .slider-button {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  .trustindex-wrapper {
    margin-top: 40px;
    width: 100%;
    overflow: hidden;
}

}