

:root {
    --bg-color: #001233;
    --text-color: #FFFFFF;
    --barre-navigation-bg: rgba(0, 18, 51, 0.85);
    --primary-gradient: linear-gradient(135deg, #00D9FF 0%, #0066FF 100%);
    --accent-color: #00D9FF;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('motifafricain.jpg');
    opacity: 0.03;
    pointer-events: none;
    z-index: -2;
    mix-blend-mode: overlay;
}

.hero-service-v2 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 120%, rgba(0, 217, 255, 0.15) 0%, var(--bg-color) 70%);
}

.hero-service-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    transform: perspective(1000px) rotateX(60deg) translateY(-100px) scale(3);
    opacity: 0.3;
}

.hero-service-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to top, var(--bg-color) 20%, transparent);
    z-index: 1;
}

.hero-glow-1 {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.4) 0%, transparent 60%);
    top: -200px;
    left: -300px;
    z-index: 0;
    filter: blur(50px);
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.hero-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.6) 0%, transparent 60%);
    bottom: -100px;
    right: -200px;
    z-index: 0;
    filter: blur(60px);
    animation: drift 15s infinite alternate ease-in-out;
}

.ui-float-1,
.ui-float-2 {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    z-index: 1;
    animation: floatItem 20s infinite alternate ease-in-out;
}

.ui-float-1 {
    top: 20%;
    left: 15%;
    width: 150px;
    height: 150px;
    transform: rotate(-15deg);
}

.ui-float-2 {
    bottom: 25%;
    right: 10%;
    width: 200px;
    height: 120px;
    transform: rotate(10deg);
}

@keyframes floatItem {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-30px) rotate(15deg);
    }
}

.service-contenu-accueil {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.sh-label {
    display: inline-block;
    padding: 0.6rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-contenu-accueil h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #FFF, #A0D8EF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.service-contenu-accueil p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both;
}

.hero-strengths {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

.strength-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.strength-pill:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}

.service-works-section {
    padding: 8rem 5%;
    position: relative;
    z-index: 2;
}

.works-header {
    text-align: center;
    margin-bottom: 5rem;
}

.works-header h2 {
    font-size: 3.5rem;
    color: #FFF;
}

.works-header span {
    color: var(--accent-color);
}

.vitrine-bento {
    column-count: 3;
    column-gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sc-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 2rem;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.sc-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--primary-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 5;
}

.sc-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 51, 0.4);
    backdrop-filter: blur(0px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: all 0.5s ease;
}

.sc-content {
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sc-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #FFF;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sc-item:nth-child(1) .sc-title,
.sc-item:nth-child(8) .sc-title {
    font-size: 3rem;
}

.sc-comment {
    font-size: 1.1rem;
    color: var(--accent-color);
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    max-width: 90%;
}

.sc-item:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10;
}

.sc-item:hover::before {
    opacity: 1;
}

.sc-item:hover .sc-img {
    transform: scale(1.1) rotate(2deg);
}

.sc-item:hover .sc-overlay {
    opacity: 1;
    background: rgba(0, 18, 51, 0.75);
    backdrop-filter: blur(8px);
}

.sc-item:hover .sc-content {
    transform: translateY(0);
}

.back-nav {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 1000;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #FFF;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.back-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateX(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

@media (max-width: 1024px) {
    .vitrine-bento {
        column-count: 2;
    }

    .service-contenu-accueil h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .vitrine-bento {
        column-count: 1;
    }

    .service-contenu-accueil h1 {
        font-size: 3rem;
    }

    .hero-strengths {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .strength-pill {
        width: 90%;
        justify-content: center;
    }

    .back-nav {
        top: 20px;
        left: 20px;
    }

    .back-btn span {
        display: none;
    }

    .back-btn {
        padding: 0.8rem;
        border-radius: 50%;
        width: 50px;
        justify-content: center;
    }
}