/* Styles pour la section des services */

/* Styles pour les titres de section blockchain */
.atouts .section-title,
.services .section-title {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    justify-content: center;
    padding: 20px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
    letter-spacing: 2px;
    hyphens: none;
}

/* Styles responsifs pour les titres de section */
@media (max-width: 992px) {
    .atouts .section-title,
    .services .section-title {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 30px 0px;
        font-size: 56px;
        line-height: 1.2;
    }
    
    .services .section-title span {
        display: inline;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .atouts .section-title,
    .services .section-title {
        gap: 20px;
        font-size: 36px;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .services .section-title span {
        display: inline;
        white-space: normal;
    }
}

/* Styles pour les spans dans les titres */
.services .section-title span {
    display: inline-block;
    white-space: normal;
}

/* Styles pour les images dans les éléments de service */
.service-item img {
    width: 214px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Styles pour les titres à côté des images */
.service-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: left;
    color: #FFFFFF;
    transition: color 0.4s ease, transform 0.3s ease;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Styles pour les textes descriptifs */
.service-item p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0%;
    text-align: right;
    color: #DCDCDC;
    transition: color 0.4s ease, transform 0.3s ease;
    margin: 0;
    max-width: 100%;
}

/* Structure de la section des services */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 60px;
}

.service-item {
    display: grid;
    grid-template-columns: 214px auto 1fr;
    align-items: center;
    gap: 30px;
    background: rgba(12, 14, 18, 0.7);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Animations et effets au survol */
.service-item:hover {
    transform: translateY(-8px);
    background: rgba(20, 22, 30, 0.9);
    box-shadow: 0 15px 30px rgba(105, 56, 239, 0.3);
}

.service-item:hover img {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.service-item:hover h3 {
    color: #FFC400;
    transform: translateX(5px);
}

.service-item:hover p {
    color: #FFFFFF;
    transform: translateX(-5px);
}

/* Animation de bordure au survol */
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, transparent, transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover::before {
    opacity: 1;
    border-color: rgba(105, 56, 239, 0.5);
    animation: borderPulse 1.5s infinite alternate;
}

@keyframes borderPulse {
    0% {
        border-color: rgba(105, 56, 239, 0.3);
    }
    100% {
        border-color: rgba(105, 56, 239, 0.8);
    }
}

/* Animation d'apparition lors du défilement */
.service-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation supplémentaire pour les éléments internes */
.service-item img, .service-item h3, .service-item p {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Délai d'animation pour chaque élément */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }
.service-item:nth-child(7) { animation-delay: 0.7s; }

/* Styles pour la disposition du contenu */
.service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Media queries pour la responsivité */
@media (max-width: 992px) {
    .service-item {
        grid-template-columns: 180px auto 1fr;
        gap: 20px;
    }
    
    .service-item h3 {
        font-size: 48px;
    }
    
    .service-item p {
        font-size: 18px;
    }
}

/* Media query spécifique pour améliorer le responsive entre 993px et 769px */
@media (max-width: 992px) and (min-width: 769px) {
    .service-item {
        grid-template-columns: 160px 1fr 1fr;
        padding: 25px;
        gap: 15px;
    }
    
    .service-item img {
        width: 160px;
        height: 120px;
    }
    
    .service-item h3 {
        font-size: 42px;
        line-height: 1.1;
    }
    
    .service-item p {
        font-size: 16px;
        line-height: 1.3;
        text-align: right;
        padding-left: 10px;
    }
    
    .services-list {
        gap: 25px;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .service-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
        padding: 25px;
    }
    
    .service-item img {
        width: 180px;
        height: 120px;
        margin: 0 auto;
    }
    
    .service-item h3 {
        font-size: 40px;
        text-align: center;
        margin: 15px 0;
    }
    
    .service-item p {
        font-size: 16px;
        text-align: center;
    }
    
    .service-text {
        align-items: center;
    }
    
    .service-item:hover h3,
    .service-item:hover p {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .service-item img {
        width: 150px;
        height: 100px;
    }
    
    .service-item h3 {
        font-size: 32px;
    }
    
    .service-item p {
        font-size: 14px;
    }
    
    .service-item {
        padding: 20px;
    }
    
    /* Ajustement des animations pour les petits écrans */
    .service-item:hover {
        transform: translateY(-3px);
    }
}