/* ==========================================================================
   STYLE-BASE-SERVICE.CSS
   ========================================================================== */

/* Grid Background */
.service-page-grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.service-page-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-image: SE TROUVE DANS LA BALISE HTML
        repeating-linear-gradient(-20deg, var(--grid-color) 0 1px, transparent 1px 70px),
        repeating-linear-gradient(180deg, var(--grid-color) 0 1px, transparent 1px 50px); */
}

.service-page-grid-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.service-page-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--text);
    border-radius: 50%;
    opacity: 0;
    animation: fadeInOut 3s infinite;
}

/* Red moving dots */
.service-page-red-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--text);
    opacity: 0.7;
    z-index: 0;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


/* Navigation secondaire des services */
.nav-secondary {
    padding: 1rem 0;
    margin-bottom: 4rem;
    position: relative;
    top: 50px;
    /* Base pour mobile */
    z-index: 1;
}

@media (min-width: 769px) {
    .nav-secondary {
        top: 65px;
        /* Hauteur du header principal pour desktop */
    }
}

.service-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    /* Base pour mobile */
    padding: 0 1rem;
    /* Base pour mobile */
    flex-wrap: wrap;
}

@media (min-width: 481px) {
    .service-nav {
        gap: 1rem;
    }
}

@media (min-width: 769px) {
    .service-nav {
        gap: 2rem;
        padding: 0 2rem;
    }
}

.service-nav a {
    position: relative;
    display: inline-block;
    color: var(--text);
    font-family: var(--title-font),
        sans-serif;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    /* Base pour mobile */
    font-size: 0.8rem;
    /* Base pour mobile */
}

.service-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
}

.service-nav a:hover::after {
    width: 100%;
}

.nav-secondary a:not(:hover)::after {
    left: auto;
    right: 0;
    width: 0;
}

@media (min-width: 481px) {
    .service-nav a {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
}

@media (min-width: 769px) {
    .service-nav a {
        padding: 0.5rem 0;
    }
}

.service-nav a.active {
    font-weight: 600;
}

.nav-secondary a.active::after {
    width: 100%;
    height: 3px;
    background: var(--accent);
    left: 0;
}

.header {
    margin-bottom: 0;
}

.description {
    margin: 2rem auto 8rem;
}


/* ==========================================================================
    1 HERO SECTION
   ========================================================================== */
.hero {
    margin-top: 7rem;
}

.hero-title {
    display: flex;
}

.svg-icon {
    width: 60px;
    height: 60px;
    stroke: var(--accent);
    stroke-width: 1;
    margin-right: 1.5rem;
    transform: translateY(-10px);
}

.section-header h1 {
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Base pour mobile */
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 993px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h2::after {
    display: none;
}

.hero-text .description {
    margin: 0 0 5rem;
}

.service-image {
    width: 100%;
    order: -1;
    /* Base pour mobile */
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 2px solid #333;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

@media (min-width: 993px) {
    .service-image {
        order: 0;
        /* Rétablir l'ordre pour desktop */
    }
}




/* ==========================================================================
    2 CONTENT SECTION
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Base pour mobile */
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

.feature-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 2rem;
    border-radius: 0.25rem;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(204, 11, 13, 0.2);
    border-color: var(--accent);
}

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 2rem;
}

.feature-card ul {
    list-style: none;
    margin-top: 2rem;
    padding-left: 0;
}

.feature-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #ccc;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1rem;
    font-weight: bold;
}


/* ==========================================================================
    3 PROCESS SECTION
   ========================================================================== */

.subsection-title {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.subsection-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background: var(--accent);
}

.process-tech-title {
    margin: 2.5rem 0 1rem;
}

.process-tech-title span {
    color: var(--accent);
    font-size: 1.2rem;
}

.process-section p {
    color: #bababa;
}

/* ==========================================================================
   4. CTA SECTION
   ========================================================================== */

.cta-section {
    margin: 8rem auto;
    text-align: center;
    font-size: 4rem;
}

.cta-title {
    margin: 4rem 0 8rem;
    font-size: 4rem !important;
}

.cta-title::after {
    display: none
}

.cta-description {
    font-size: 1.125rem;
    line-height: normal;
    margin-bottom: 5rem;
    text-align: left;
}