/* === SERVICE PAGE STYLES === */
:root {
    --primary-gradient: linear-gradient(135deg, #34c7ff 0%, #2b8af9 100%);
    --dark-bg: #121212;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --glow-shadow: 0 0 15px rgba(52, 199, 255, 0.5);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* === GENERAL STYLES === */
.services-content-wrapper {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    width: 100%;
    min-height: 100vh;
}

.services-content-wrapper section {
    padding: 80px 5%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.services-content-wrapper section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.services-content-wrapper h1,
.services-content-wrapper h2,
.services-content-wrapper h3,
.services-content-wrapper h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.services-content-wrapper h1 {
    font-size: 3rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.services-content-wrapper h2 {
    font-size: 2.5rem;
    text-align: center;
}

.services-content-wrapper h3 {
    font-size: 1.8rem;
}

.services-content-wrapper h4 {
    font-size: 1.3rem;
}

.services-content-wrapper p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* === BUTTONS === */
.button-primary,
.button-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.button-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.button-primary:hover {
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

.button-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
    border-color: #34c7ff;
    color: #34c7ff;
}

/* === HERO SECTION === */
.services-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    min-height: 80vh;
    overflow-x: hidden;
    /* Empêche le débordement horizontal pendant l'animation */
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-content.animated>*:nth-child(1) {
    transition-delay: 0.2s;
}

.hero-content.animated>*:nth-child(2) {
    transition-delay: 0.4s;
}

.hero-content.animated>*:nth-child(3) {
    transition-delay: 0.6s;
}

.hero-content.animated>* {
    opacity: 1;
    transform: translateY(0);
}

.hero-cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-image-card {
    flex: 1;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-image-card.animated {
    opacity: 1;
    transform: translateX(0);
}

.hero-image-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.image-card-caption h4 {
    margin-bottom: 5px;
}

.image-card-caption p {
    font-size: 0.9rem;
    margin: 0;
}

/* === PREMIUM SERVICES SECTION === */
.premium-services {
    text-align: center;
    background-color: var(--dark-bg);
    padding-bottom: 100px;
}

.premium-services>p {
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text-secondary);
}

.service-category {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-category.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    text-align: left;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-divider {
    height: 1px;
    background: linear-gradient(to right, rgba(52, 199, 255, 0.5), transparent);
    margin-bottom: 30px;
    width: 100%;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-card {
    background-color: #161b22;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: transparent;
    border-image: var(--primary-gradient);
    border-image-slice: 1;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.card-icon svg {
    width: 20px;
    height: 20px;
}

.service-card h4 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.card-media {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: auto;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-media img {
    transform: scale(1.03);
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    background: linear-gradient(to right, rgba(0, 60, 80, 0.5), rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.service-card:hover .card-cta {
    background: linear-gradient(to right, rgba(52, 199, 255, 0.2), rgba(43, 138, 249, 0.2));
}

.card-cta:hover {
    transform: translateX(5px);
}

/* === ENGAGEMENT PROCESS SECTION === */
.engagement-process {
    position: relative;
    text-align: center;
    padding: 100px 5%;
}

.process-bg-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(circle, rgba(52, 199, 255, 0.2) 0%, rgba(43, 138, 249, 0.1) 50%, transparent 100%);
    filter: blur(150px);
    z-index: 0;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

.engagement-process h2,
.engagement-process p {
    position: relative;
    z-index: 1;
}

.engagement-process>p {
    max-width: 700px;
    margin: 0 auto 50px;
}

.process-steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.process-step-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-md);
    padding: 30px;
    width: 300px;
    text-align: left;
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.process-step-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step-card:hover {
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: var(--glow-shadow);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 199, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.step-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 199, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.process-step-card:hover .step-icon::after {
    opacity: 0.5;
}

.step-icon svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1;
}

.step-connector {
    width: 50px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    transition: background-color var(--transition-fast);
}

.process-step-card:hover+.step-connector,
.step-connector:has(+ .process-step-card:hover) {
    background-color: #34c7ff;
}

/* === FINAL CTA SECTION === */
.final-cta {
    text-align: center;
    background: linear-gradient(to bottom, var(--dark-bg), #0a0a0a);
    padding: 100px 5%;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.final-cta h2 {
    margin-bottom: 20px;
}

.final-cta p {
    max-width: 700px;
    margin: 0 auto 40px;
}

.final-cta .button-primary {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 1200px) {
    .services-hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta-buttons {
        justify-content: center;
    }

    .hero-image-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .services-content-wrapper section {
        padding: 60px 5%;
    }

    .services-content-wrapper h1 {
        font-size: 2.2rem;
    }

    .services-content-wrapper h2 {
        font-size: 1.8rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .process-steps-container {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 30px;
    }

    /* Services Premium Responsive */
    .service-cards-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }

    .card-media {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .services-content-wrapper h1 {
        font-size: 1.8rem;
    }

    .services-content-wrapper h2 {
        font-size: 1.5rem;
    }

    .category-title {
        flex-direction: column;
        text-align: center;
    }

    .category-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}