/* Styles pour les titres des services */
.service-title-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.service-title-container .service-category {
    display: block;
    color: #8B1538;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.service-title-container .service-name {
    display: block;
    color: #7A1D1D;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    text-align: center;
    width: 100%;
}

.service-title-container .service-name:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #8B1538;
    margin: 15px auto 0;
    left: 0;
    right: 0;
}

/* Styles pour les images dans les modals de services */
.service-item-modal {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.service-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.service-item-modal div:last-child {
    flex: 1;
}

.service-item-modal strong {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    color: #910012;
}

.service-item-modal p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Style responsive pour mobile */
@media (max-width: 767px) {
    .service-item-modal {
        flex-direction: column;
    }
    
    .service-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin-bottom: 10px;
    }
    
    /* Styles responsives pour les titres de services */
    .service-title-container {
        text-align: center;
    }
    
    .service-title-container .service-name {
        font-size: 2rem; /* Réduction légère de la taille du titre */
        text-align: center;
        width: 100%;
    }
    
    .service-title-container .service-category {
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }
    
    .service-title-container .service-name:after {
        width: 50px; /* Ligne décorative légèrement plus petite */
        margin-top: 12px;
        left: 0;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Style pour le CTA final avec titre - texte uniquement, sans fond */
.modal-content {
    position: relative;
    background: transparent;
    z-index: 10;
}

/* Supprime le pseudo-élément pour cette section spécifique */
.modal-content .clean-text::before,
.modal-content .clean-text::after {
    display: none !important;
    content: none !important;
}

/* Style original pour le CTA final */
.modal-content .cta-final {
    margin-top: 40px;
    padding: 0;
    text-align: center;
}

.modal-content .cta-final h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #8B1538; /* Couleur bordeaux pour le titre */
    margin-bottom: 15px;
}

.modal-content .cta-final p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333333; /* Couleur gris foncé pour le paragraphe */
}

/* Style pour le texte d'introduction */
.intro-text {
    color: #ffffff; /* Texte en blanc */
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8;
    margin: 20px 0 35px;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    background-color: #8B1538; /* Fond bordeaux */
    padding: 20px; /* Espacement interne */
    border-radius: 8px; /* Coins arrondis */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.intro-text span {
    display: block;
}

/* Styles spécifiques pour l'affichage sur laptop */
@media (min-width: 992px) {
    .intro-text {
        max-width: 80%;
        font-size: 1.25rem;
    }
}

/* Style pour les listes de points forts */
.service-highlights {
    margin: 10px 0;
    padding-left: 0;
    list-style-type: none;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    width: 100%;
}

.service-highlights li {
    margin-bottom: 0;
    position: relative;
    font-weight: 500;
    padding-left: 30px;
    line-height: 1.4;
}

.service-highlights li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Style pour les cartes de service restructurées */
.modal-content .services-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.modal-content .service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 0 0 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-content .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.modal-content .service-card-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.modal-content .service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modal-content .service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.modal-content .service-card h3 {
    color: #8B1538;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 20px 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 21, 56, 0.2);
}

/* Style pour les listes de fonctionnalités dans les cartes */
.service-features {
    padding-left: 20px;
    margin: 0 15px 15px;
    list-style-type: none;
}

.service-features li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.service-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8B1538;
}

/* Style responsive pour les sous-titres et CTA final */
@media (max-width: 767px) {
    .intro-text {
        font-size: 1rem;
        margin: 15px 0 25px;
    }
    
    .modal-content .services-card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content .service-card-img {
        height: 150px;
    }
    
    .modal-content .service-card h3 {
        font-size: 1.2rem;
        margin: 12px 15px 8px;
    }
    
    .service-features li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .modal-content .cta-final {
        padding: 15px;
        margin-top: 30px;
    }
    
    .modal-content .cta-final h3 {
        font-size: 1.4rem;
    }
    
    .modal-content .cta-final p {
        font-size: 1rem;
    }
}
