/* === STYLES SPÉCIFIQUES POUR LA PAGE SERVICES (services.css) === */

/* ===============================
   STYLES POUR SERVICES.HTML
   Page services
================================== */

/* .page-hero - pour le header des pages */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--color-tertiary-rgb, 23,26,28), 0.7);
    z-index: 1;
}

.page-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.page-hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Hero de Page Standard --- */
.page-hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--color-tertiary-rgb, 23,26,28), 0.7); /* Utiliser la variable RGB pour la transparence */
    z-index: 1;
}

.page-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
}

.page-hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

.btn--services {
    background-color: #0b40e0;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--color-detail-rgb), 0.2);
}
.btn--services:hover {
    background-color: #1b54ff;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--color-detail-rgb), 0.5);
}


/* --- Conteneur et Items des Services --- */
.services-list-container {
    background-color: var(--color-primary); /* Fond blanc */
}

.service-detail-item {
    display: grid;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 8); /* Espace généreux entre chaque service */
    padding-bottom: calc(var(--spacing-unit) * 4);
    border-bottom: 1px solid var(--color-secondary);
}

.service-detail-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 992px) {
    .service-detail-item {
        grid-template-columns: 1fr 1.2fr; /* L'image prend un peu moins de place que le texte */
    }

    .service-detail-item--reverse {
        grid-template-columns: 1.2fr 1fr;
    }

    .service-detail-item--reverse .service-detail-item__image-wrapper {
        order: 2; /* Inverse l'ordre de l'image */
    }
}

.service-detail-item__image-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-medium);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-detail-item__image-wrapper img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.service-detail-item__content {
    text-align: left;
}

.service-detail-item__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-tertiary);
    margin-bottom: calc(var(--spacing-unit) * 1);
    position: relative;
    padding-bottom: calc(var(--spacing-unit) * 0.75);
}

.service-detail-item__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-detail);
    border-radius: 2px;
}

.service-detail-item__description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-subtle);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.service-detail-item__key-points {
    list-style: none;
    padding-left: 0;
    margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.service-detail-item__key-points li {
    position: relative;
    padding-left: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 1);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-detail-item__key-points li::before {
    content: '✓'; /* Icône de validation */
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-detail);
    font-weight: 700;
}

.service-detail-item__key-points li strong {
    font-weight: 600;
    color: var(--color-text);
}

@media (max-width: 991px) {
    .service-detail-item {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    .service-detail-item__content {
        margin-top: calc(var(--spacing-unit) * 2);
    }
}

/* === STYLES POUR LA PAGE SERVICES === */

.technologies-section {
    background-color: var(--color-secondary);
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
}

/* Effet de motif subtil en arrière-plan */
.technologies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%230b40e0" opacity="0.03"/></svg>');
    opacity: 1;
    z-index: 1;
}

.technologies-section .container {
    position: relative;
    z-index: 2;
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Style pour les éléments uniques */
.technologies-grid:has(.technology-card:only-child) {
    grid-template-columns: repeat(2, 1fr);
}

.technologies-grid:has(.technology-card:only-child) .technology-card {
    grid-column: 1 / 2;
}

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

@media (max-width: 768px) {
    .technologies-grid {
        grid-template-columns: 1fr;
    }

    .technologies-grid:has(.technology-card:only-child) .technology-card {
        grid-column: 1;
    }
}

.technology-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-base);
    padding: calc(var(--spacing-unit) * 2.25) calc(var(--spacing-unit) * 2);
    box-shadow: var(--shadow-light);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.technology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-detail) 0%, var(--color-detail-darker) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.technology-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(var(--accent-color-rgb), 0.15);
}

.technology-card:hover::before {
    opacity: 1;
}

.technology-card__title {
    font-size: 1.5rem;
    color: var(--color-tertiary);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.technology-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-detail);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.technology-card:hover .technology-card__title::after {
    width: 60px;
}

.technology-card__description {
    color: var(--color-text-subtle);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

.technology-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.technology-card__actions .btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem; /* léger ajustement local de taille */
    font-size: 0.9rem;
}

/* S’appuyer sur les variants globaux; on ajoute seulement le micro-mouvement */
.technology-card__actions .btn:hover { transform: translateY(-2px); }

/* Styles pour les liens additionnels */
.services-additional-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem;
    flex-wrap: wrap;
    background-color: var(--color-tertiary);
}

.services-additional-links__item {
    flex: 0 1 auto;
}

.services-additional-links .btn {
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.services-additional-links .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.services-additional-links  .btn--secondary {
    background-color: transparent;
}

/* Styles pour les catégories de technologies */
.technology-category {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-base);
    backdrop-filter: blur(10px);
}

.technology-category:last-child {
    margin-bottom: 2rem;
}

.technology-category__title {
    font-size: 3rem;
    color: var(--color-tertiary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
    text-align: center;
}



.technology-category__description {
    color: var(--color-text-subtle);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;

}

.services-additional-links .btn--secondary {
    color: #fff;
    border: 2px solid #fff;
}

.services-additional-links .btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* === STYLES POUR LE BANDEAU COURTAGE === */
.courtage-banner {
    background: linear-gradient(135deg, #0b40e0 0%, #1b54ff 50%, #2d66ff 100%);
    border-radius: var(--border-radius-base);
    padding: 1.75rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(11, 64, 224, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.courtage-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(11, 64, 224, 0.3);
}

.courtage-banner:hover::before {
    left: 100%;
}

.courtage-banner__content {
    position: relative;
    z-index: 2;
}

.courtage-banner__title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.courtage-banner__description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.btn--banner {
    background-color: white;
    color: #0b40e0;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-base);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn--banner:hover {
    background-color: #f8f9fa;
    color: #0b40e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive pour le bandeau */
@media (max-width: 768px) {
    .courtage-banner {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .courtage-banner__title {
        font-size: 1.2rem;
    }
    
    .courtage-banner__description {
        font-size: 0.9rem;
    }
    
    .btn--banner {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* (supprimé sélecteur vide .services-additional-link) */