/* Styles pour le bloc Services E-commerce */



/* Ligne des cartes */
.services-cards-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Style des cartes */
.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    box-shadow: 1px 4px 4px 0px rgba(0, 0, 0, 0.25);
    flex: 1;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* État par défaut - tout gris */
.service-card {
    filter: grayscale(100%);
    opacity: 0.7;
}

.service-card .card-title h3 {
    color: #666 !important;
}

/* État actif - couleur normale */
.service-card.active {
    filter: grayscale(0%);
    opacity: 1;
    border: 2px solid;
    border-color: var(--active-color, #007cba);
    background-color: color-mix(in srgb, var(--active-color), transparent 90%);
}

.service-card.active .card-title h3 {
    color: var(--active-color, #007cba) !important;
}


.card-image img {
    width: 100%;
    height: 30px;
    width: 30px;
    border-radius: 8px;
}



.card-title h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Section des détails */
.services-details-container {
    animation: fadeInUp 0.5s ease;
}

/* Bouton de retour */
.back-button-container {
    margin-bottom: 30px;
    text-align: left;
}

.btn-back {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #343a40;
}

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



.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Partie gauche */
.detail-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-image {
    flex-shrink: 0;
    background-color: color-mix(in srgb, var(--active-color), transparent 90%);


}

.detail-image {
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.detail-image img {
    height: 50px;
    width: 50px;
    border-radius: 0;
    border: none;
}

.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.detail-image-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.detail-description {
    margin-bottom: 25px;
}

.detail-description p {
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.detail-delay {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
    width: fit-content;
}

.detail-delay strong {
    color: #2c3e50;
}

/* Partie droite */
.detail-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #DCDCDC;
    border-radius: 12px;
    padding: 2rem;
}

.services-list {
    margin-bottom: 40px;
}

.services-list h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.services-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    padding: 8px 0;
    line-height: 1.5;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #28a745;
    font-weight: bold;
}

/* Boutons */
.detail-buttons {
    display: flex;
    width: fit-content;
    gap: 15px;
}

.btn-quote,
.btn-info {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-quote {
    color: white;
    border: 2px solid transparent;
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.btn-info {
    background-color: transparent;
    border: 2px solid #007cba;
    color: #007cba;
}

.btn-info:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .detail-right {
        border-top: 1px solid #e9ecef;
    }
    
    .detail-left,
    .detail-right {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .ecommerce-services-block {
        padding: 30px 15px;
    }
    
    .services-cards-row {
        gap: 15px;
    }
    
    .service-card {
        min-width: 120px;
        max-width: 140px;
    }
    
    .detail-left,
    .detail-right {
        padding: 30px 20px;
    }
    
    .detail-left {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    
    .detail-image {
        flex-shrink: 0;
        width: 120px;
    }
    
    .detail-image img {
        max-width: 100%;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
    
    .detail-subtitle {
        font-size: 1.2rem;
    }
    
    .detail-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .btn-quote,
    .btn-info {
        flex: 1;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .services-cards-row {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        min-width: 200px;
        max-width: 250px;
    }
    
    .detail-left {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-image {
        width: auto;
        align-self: center;
    }
    
    .detail-buttons {
        flex-direction: column;
    }
    
    .card-title h3 {
        font-size: 1.2rem;
    }
}

/* Animation pour les cartes */
.service-card {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.service-card:nth-child(1) { --card-index: 1; }
.service-card:nth-child(2) { --card-index: 2; }
.service-card:nth-child(3) { --card-index: 3; }
.service-card:nth-child(4) { --card-index: 4; }
.service-card:nth-child(5) { --card-index: 5; }
.service-card:nth-child(6) { --card-index: 6; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.7; /* Opacité par défaut */
        transform: translateY(0);
    }
}

/* Animation pour la carte active */
.service-card.active {
    animation: slideInUpActive 0.6s ease forwards;
}

@keyframes slideInUpActive {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1; /* Opacité complète pour la carte active */
        transform: translateY(0);
    }
}

/* Focus states pour l'accessibilité */
.service-card:focus,
.btn-quote:focus,
.btn-info:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* États de survol personnalisés */
.service-card:hover .card-title h3 {
    transform: scale(1.05);
}

.card-image img {
    transition: transform 0.3s ease;
}

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