.card-service {
    width: auto; /* Make the card take full width of the column */
    height: auto; /* Adjust height proportionally based on the width */
    aspect-ratio: 9 / 13; /* Maintain aspect ratio based on the image dimensions */
    margin: 0.5rem auto; /* Reduced margin */
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-service:hover .card-inner,
.card-service.selected .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.card-front {
    background: white;
    border: 1px solid #e5e7eb;
}

.card-back {
    background: #0966bd;
    color: white;
    transform: rotateY(180deg);
}

.service-details {
    display: none;
    justify-content: center;
}

.service-card-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 30px; /* La taille de la police sera 2% de la largeur de la fenêtre */
}

.service-card-description {
    text-align: center;
    margin: 5% 5%;
    padding: 5% 5%;
    font-size: 18px;
}
  .card-container {
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  .card-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
  }
  .card-column:first-child {
    flex: 0 0 33.33%;
  }
  .card-column .card-details-services:first-child {
    flex: 3;
  }
  .card-column .card-details-services:last-child {
    flex: 2;
  }
  .hover-underline {
    color: #0966bd;
    position: relative;
    display: inline-block;
}

.hover-underline::after,
.hover-underline::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #405af0, #0cb6ff);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.hover-underline::before {
  top: -5px;
  transform-origin: left;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
  transform: scaleX(1);
}
.services {
    padding: 1px 1px;
    font-size: 1.0vw;
    color: #555;
}
.services-container {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 10px;
}

.service-bloc-card-style-center {
    background: #f4f9fe;
    padding: 1% 1%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 16px;
    color: #555;
}
.service-bloc-card-style-left {
    background: #f4f9fe;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-size: 0.8rem;
    color: #555;
}
.service-box {
    background: #f4f9fe;
    padding: 2% 2%;
    width: 30%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    box-sizing: border-box;
}
.duplicate-bloc2 {
    display: none;
}
.bloc2 {
    display: block;
}

@media (max-width: 1000px) {
    .service-card-title {
        font-size: 2.5vw;
    }
    .services-container {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .service-bloc-card-style-left {
        padding: 10px;
    }
    .service-box {
        padding: 3% 3%;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .row {
        flex-wrap: nowrap; /* Ensure cards are in a single row */
        overflow-x: hidden; /* Enable horizontal scrolling */
    }
    .services-container {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .card-service {
        flex: 0 0 100%; /* Make each card take full width on mobile */
        margin: 1% 1%; /* Adjust margin for mobile */
        padding: 1% 1%;
    }
    .service-card-description {
        font-size: 60%;
        margin: 1px 1px 1px 1px;
        padding: 1px 1px 1px 1px;
    }
    .service-bloc-card-style-left {
        padding: 10px;
    }
    .service-bloc-card-style-left p, ul, li, i, u {
        font-size: 90%;
        margin: 1px 1px 1px 1px;
        padding: auto;
    }
    .service-bloc-card-style-left h4 {
        font-size: 110%;
    }
    .services-container {
        display: flex;
        flex-direction: column;
    }
    .card-container {
        display: flex;
        flex-direction: column;
    }
    .card-column {
        width: 100%;
    }
    .bloc1, .bloc2, .bloc3, .duplicate-bloc2 {
        width: 100%;
    }
    .bloc1 {
        order: 1;
    }
    .bloc3 {
        order: 2;
    }
    .bloc2 {
        display: none;
    }
    .duplicate-bloc2 {
        display: block;
        order: 3;
    }
}
