/* Styles spécifiques à la page Terrasse & Aménagement */

/* Bannière Hero avec image personnalisée */
.services-hero {
  background: url('images/banniere-services4.png') center center/cover no-repeat;
  padding: 12rem 2rem 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.services-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  line-height: 1.1;
  opacity: 0;
  animation: slideInDown 0.8s ease-out forwards;
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.services-hero h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: white;
  border-radius: 2px;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-hero p {
  font-size: 1.15rem;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 400;
  opacity: 0;
  animation: slideInUp 0.8s ease-out 0.3s forwards;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.btn-hero-devis {
  display: inline-block;
  background: white;
  color: #026ea7;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: slideInUp 0.8s ease-out 0.6s forwards;
}

.btn-hero-devis:hover {
  background: #026ea7;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

/* Tous les autres styles identiques à services.css */
.services-detail-section {
  padding: 5rem 0;
  background: white;
}

.service-detail {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  opacity: 0;
  transform: translateY(30px);
}

.service-detail.animate {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

.service-detail:nth-child(1) {
  animation-delay: 0.1s;
  grid-template-columns: 45% 55%;
}

.service-detail:nth-child(2) {
  animation-delay: 0.2s;
  grid-template-columns: 55% 45%;
  direction: ltr;
}

.service-detail:nth-child(2) .service-detail-content {
  direction: ltr;
}

#service-1-details {
  grid-template-columns: 55% 45% !important;
  direction: ltr !important;
}

#service-1-details .service-detail-content {
  direction: ltr !important;
  order: 1;
  padding: 0 2rem 0 0 !important;
}

#service-1-details .service-detail-image {
  order: 2;
  margin-right: -250px !important;
  margin-left: 0 !important;
}

.service-detail-image {
  width: calc(100% + 200px);
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

#service-1 .service-detail-image {
  height: 340px;
}

.service-detail:nth-child(odd) .service-detail-image {
  margin-left: -250px;
  margin-right: 0;
}

.service-detail:nth-child(even) .service-detail-image {
  margin-right: -250px;
  margin-left: 0;
}

.service-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-in-out;
  transform: scale(1);
}

.carousel-img.active {
  opacity: 1;
  animation: slowZoom 15s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

.service-detail-content {
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail:nth-child(odd) .service-detail-content {
  padding: 0 0 0 2rem;
}

.service-detail:nth-child(even) .service-detail-content {
  padding: 0 2rem 0 0;
}

.service-detail-icon {
  display: none !important;
}

.service-logo-section {
  margin-bottom: 0.8rem;
  margin-top: 0;
}

.service-renovis-logo {
  width: 180px;
  height: auto;
  opacity: 0;
  transform: translateY(20px);
}

.service-logo-title {
  font-size: 1.8rem;
  color: #026ea7;
  font-weight: 900;
  margin-top: 0.3rem;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(20px);
}

.service-detail.animate .service-logo-title {
  animation: fadeInUpTitle 0.8s ease-out 0.3s forwards;
}

.service-detail.animate .service-renovis-logo {
  animation: fadeInUpLogo 0.8s ease-out 0.2s forwards;
}

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

.service-intro-large {
    font-size: 0.9rem;
    line-height: 1.65;
    text-align: left;
    padding: 0;
    margin: 0 auto 1.5rem;
  }

.service-intro-large .highlight-blue {
  color: #026ea7;
  font-weight: 700;
}

#service-1 .btn-service-detail {
  margin-top: 0.5rem;
}

.service-detail.animate .service-intro-large {
  animation: fadeInUpSubtitle 0.8s ease-out 0.4s forwards;
}

.service-detail-content h2 {
  font-size: 1.5rem;
  color: #1C2A33;
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(30px);
}

.service-detail.animate .service-detail-content h2 {
  animation: fadeInUpTitle 0.8s ease-out 0.2s forwards;
}

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

.service-intro {
  font-size: 0.95rem;
  color: #1C2A33;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
}

.service-detail.animate .service-intro {
  animation: fadeInUpSubtitle 0.8s ease-out 0.4s forwards;
}

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

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  opacity: 0;
  transform: translateX(-20px);
}

.service-detail.animate .service-feature-item {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.service-detail.animate .service-feature-item:nth-child(1) {
  animation-delay: 0.6s;
}

.service-detail.animate .service-feature-item:nth-child(2) {
  animation-delay: 0.7s;
}

.service-detail.animate .service-feature-item:nth-child(3) {
  animation-delay: 0.8s;
}

.service-detail.animate .service-feature-item:nth-child(4) {
  animation-delay: 0.9s;
}

.service-detail.animate .service-feature-item:nth-child(5) {
  animation-delay: 1s;
}

.service-detail.animate .service-feature-item:nth-child(6) {
  animation-delay: 1.1s;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-feature-item:hover {
  transform: translateX(5px);
  border-left-color: #026ea7;
  box-shadow: 0 6px 25px rgba(2, 110, 167, 0.15);
}

.feature-content h4 {
  font-size: 0.9rem;
  color: #026ea7;
  font-weight: 700;
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
}

.feature-content p {
  font-size: 0.85rem;
  color: #1C2A33;
  margin: 0;
  line-height: 1.4;
}

.btn-service-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #026ea7;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(2, 110, 167, 0.1);
  border: 1.5px solid #026ea7;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  width: fit-content;
}

.service-detail.animate .btn-service-detail {
  animation: fadeInUpButton 0.6s ease-out 1.2s forwards;
}

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

.btn-service-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-service-detail:hover::before {
  left: 100%;
}

.btn-service-detail:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(2, 110, 167, 0.25);
  border-color: #025580;
  color: #025580;
}

.btn-service-detail::after {
  content: '→';
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
}

.btn-service-detail:hover::after {
  transform: translateX(6px);
}

/* Bouton Voir Plus Mobile - caché par défaut sur desktop */
.btn-voir-plus-mobile {
  display: none !important;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #026ea7 0%, #0373ab 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.btn-voir-plus-mobile::after {
  content: '▼';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

.btn-voir-plus-mobile.active::after {
  transform: rotate(180deg);
}

.btn-voir-plus-mobile:active {
  transform: scale(0.98);
}

/* Section Processus Services */
.processus-section-services {
  padding: 3rem 2rem;
  background: white;
}

.processus-section-services .section-title {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  color: #1C2A33;
  text-align: center;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.processus-section-services .section-title::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #026ea7;
  border-radius: 2px;
}

.processus-steps-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.processus-step-service {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 2px solid #e6f4fb;
  box-shadow: 0 6px 20px rgba(2, 110, 167, 0.1);
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.processus-step-service::before {
  display: none;
}

.processus-step-service:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(2, 110, 167, 0.2);
  border-color: #026ea7;
}

.processus-step-service .processus-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.processus-step-service .processus-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.processus-step-service h4 {
  font-size: 1.2rem;
  color: #026ea7;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.processus-step-service p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #555;
  margin: 0;
}

@media (max-width: 1024px) {
  .processus-steps-line {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .processus-section-services {
    padding: 3rem 1.5rem;
  }

  .processus-steps-line {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
  }

  .processus-step-service {
    padding: 2rem 1.5rem;
  }
}

.realisations-carousel-section {
  padding: 1rem 2rem 4rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.realisations-section-title {
  font-size: 1.5rem;
  text-align: center;
  color: #1C2A33;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: 0;
  position: relative;
  padding-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.realisations-section-title::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #026ea7;
  border-radius: 2px;
}

.realisations-carousel-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  margin-bottom: 2rem;
}

.services-devis-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #026ea7 0%, #025580 100%);
  text-align: center;
  color: white;
}

.services-devis-section h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: white;
}

.services-devis-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-devis-services {
  display: inline-block;
  background: white;
  color: #026ea7;
  padding: 1.2rem 3rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-devis-services:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.realisation-card {
  position: absolute;
  width: 400px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(0) scale(0.8) translateZ(-200px);
  z-index: 1;
}

.realisation-card.active {
  opacity: 1;
  transform: translateX(0) scale(1.15) translateZ(0);
  z-index: 10;
  box-shadow: 0 20px 60px rgba(2, 110, 167, 0.25);
}

.realisation-card.prev {
  opacity: 0.5;
  transform: translateX(-450px) scale(0.7) translateZ(-100px) rotateY(10deg);
  z-index: 5;
}

.realisation-card.next {
  opacity: 0.5;
  transform: translateX(450px) scale(0.7) translateZ(-100px) rotateY(-10deg);
  z-index: 5;
}

.realisation-card.hidden {
  opacity: 0;
  transform: scale(0.7) translateZ(-300px);
  pointer-events: none;
}

.realisation-image {
  width: 100%;
  height: 350px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}

.realisation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.realisation-caption {
  padding: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #026ea7;
}

.realisations-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.realisation-indicator {
  width: 40px;
  height: 3px;
  background: #ddd;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.realisation-indicator.active {
  background: #026ea7;
  width: 60px;
}

.realisation-indicator:hover {
  background: #0373ab;
}

.btn-voir-projets {
  display: inline-block;
  background: linear-gradient(135deg, #026ea7 0%, #0373ab 100%);
  color: white;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(2, 110, 167, 0.3);
  margin-top: 2rem;
}

.btn-voir-projets:hover {
  background: linear-gradient(135deg, #025580 0%, #026ea7 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(2, 110, 167, 0.4);
}

/* Section Pourquoi choisir Renovis */
.why-choose-us {
  padding: 1.5rem 2rem 3rem;
  background: white;
}

.why-choose-us h2 {
  font-size: 1.5rem;
  color: #1C2A33;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
  display: inline-block;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.why-choose-us h2::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: #026ea7;
  border-radius: 2px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.reason-item {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(2, 110, 167, 0.1);
  border: 1px solid #e6f4fb;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-50px);
}

.reason-item.animate {
  animation: reasonSlideIn 0.6s ease-out forwards;
}

.reason-item.animate:nth-child(1) {
  animation-delay: 0.1s;
}

.reason-item.animate:nth-child(2) {
  animation-delay: 0.2s;
}

.reason-item.animate:nth-child(3) {
  animation-delay: 0.3s;
}

.reason-item.animate:nth-child(4) {
  animation-delay: 0.4s;
}

.reason-item.animate:nth-child(5) {
  animation-delay: 0.5s;
}

.reason-item.animate:nth-child(6) {
  animation-delay: 0.6s;
}

@keyframes reasonSlideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reason-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(2, 110, 167, 0.2);
}

.reason-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(2, 110, 167, 0.1);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.reason-item h3 {
  font-size: 1.3rem;
  color: #026ea7;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.reason-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 1024px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-hero {
    padding: 10rem 1.5rem 6rem 1.5rem;
    min-height: 400px;
  }

  .services-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .services-hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn-hero-devis {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
  }

  .services-detail-section {
    padding: 3rem 0;
  }

  .service-detail {
    grid-template-columns: 1fr !important;
    gap: 3rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  /* Inverser l'ordre pour mettre le texte au-dessus de l'image */
  .service-detail .service-detail-content {
    order: 1;
  }

  .service-detail .service-detail-image {
    order: 2;
  }

  .service-detail-image {
    height: 300px;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .service-detail-image .service-carousel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .service-detail-image .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .service-detail:nth-child(even) .service-detail-image {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .service-detail:nth-child(odd) .service-detail-image {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #service-1-details .service-detail-image,
  #service-2-details .service-detail-image {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .service-detail-content {
    padding: 0 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .service-detail:nth-child(even) .service-detail-content {
    padding: 0 1rem;
    max-width: 100%;
  }

  .service-intro-large {
    padding-right: 0.5rem;
  }

  .section-title-small {
    font-size: 1.6rem !important;
  }

  .service-logo-section {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .service-logo-title {
    font-size: 1.2rem !important;
  }

  .service-detail-content h2 {
    font-size: 1.2rem;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
  }

  .service-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .service-intro-large {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 0;
  }

  .service-features-grid .service-feature-item:nth-child(n+4) {
    display: none;
  }

  .service-detail-content.expanded .service-features-grid .service-feature-item:nth-child(n+4) {
    display: flex;
  }

  .feature-content h4 {
    font-size: 1rem;
  }

  .feature-content p {
    font-size: 0.9rem;
  }

  .btn-voir-plus-mobile {
    display: block !important;
    background: linear-gradient(135deg, #026ea7 0%, #0373ab 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(2, 110, 167, 0.3);
    margin: 1rem auto;
    border-radius: 8px;
    width: 90%;
    max-width: 300px;
    order: 10;
  }

  .service-features-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-feature-item {
    width: 100%;
    max-width: 100%;
  }

  .btn-service-detail {
    display: none;
  }

  .service-detail-content.expanded .btn-service-detail {
    display: inline-flex;
    margin-top: 1rem;
  }

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

  .realisations-section-title {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  .realisations-carousel-container {
    height: 400px;
  }

  .realisation-card {
    width: 300px;
  }

  .realisation-card.active {
    transform: translateX(0) scale(1.05) translateZ(0);
  }

  .realisation-image {
    height: 300px;
  }

  .realisation-card.prev,
  .realisation-card.next {
    transform: scale(0.65) translateZ(-100px);
    opacity: 0.3;
  }

  .realisation-card.prev {
    transform: translateX(-220px) scale(0.65) translateZ(-100px);
  }

  .realisation-card.next {
    transform: translateX(220px) scale(0.65) translateZ(-100px);
  }

  .services-devis-section h2 {
    font-size: 1.8rem;
  }

  .services-devis-section p {
    font-size: 1rem;
  }

  .btn-devis-services {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .why-choose-us {
    padding: 3rem 1.5rem;
  }

  .why-choose-us h2 {
    font-size: 1.3rem;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Responsive adjustments for titles in service pages */
@media (min-width: 768px) {
  .service-detail-content h2 {
    font-size: 1.8rem; /* Adjusted for desktop */
    line-height: 1.3;
  }
}

@media (max-width: 767px) {
  .service-detail-content h2 {
    font-size: 1.5rem; /* Adjusted for mobile */
    line-height: 1.3;
  }
}

/* Specific adjustments for "Quelques Projets", "Pourquoi Choisir Renovis ?", "Nos partenaires professionnels" */
.realisations-section-title,
.why-choose-us h2,
.service-detail-content h2 {
  font-size: 1.6rem !important; /* Uniform size for desktop */
  line-height: 1.2;
  letter-spacing: -0.5px;
}

@media (max-width: 767px) {
  .realisations-section-title,
  .why-choose-us h2,
  .service-detail-content h2 {
    font-size: 1.3rem !important; /* Uniform size for mobile */
  }
  /* 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;
  }
}