:root {
    --background-color: #FFFCFA;
    --primary-color: #3DCC3D; 
    --text-color: #373435; 
    --header-bg: #f8f8f8;
    --header-border: #ddd;
    --secondary-bg: #e9ecef;
    --font-main: 'Space Grotesk', sans-serif;
    --font-heading: 'Concert One', sans-serif;
}

body.dark-mode {
    --background-color: #111827;
    --primary-color: #3DCC3D; 
    --text-color: #FFFCFA; 
    --header-bg: #1f2937;
    --header-border: #4b5563;
    --secondary-bg: #1f2937;
}

body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    font-family: var(--font-main);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-family: var(--font-main);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
    width: 100%;
    display: block;
}

@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.product-carousel {
    overflow: hidden;
    padding: 40px 0;
    background: var(--background-color);
    width: 100%;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.carousel-track img {
    /* Taille PC */
    width: 400px;
    height: 300px;
    object-fit: contain;
    margin: 0 20px;
    /* Suppression du filtre gris et de l'opacité basse */
    filter: none; 
    opacity: 1;
}

/* Taille Mobile */
@media (max-width: 768px) {
    .carousel-track img {
        width: 300px;
        height: 200px;
        margin: 0 10px;
    }
}

/* L'animation reste identique */
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== SECTION SERVICES STYLE IMAGE 0 ===== */
#services {
    padding: 60px 0;
    background-color: var(--background-color);
}

.services-grid {
    display: grid;
    /* 4 colonnes de 280px sur PC */
    grid-template-columns: repeat(4, auto); 
    /* Centre la grille entière dans l'écran */
    justify-content: center; 
    gap: 25px;
    margin: 40px auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(155deg, var(--background-color) 0%, var(--secondary-bg) 140%);
    border: 1px solid var(--header-border);
    border-radius: 25px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.3s ease;
    text-decoration: none;

    height: 280px;
    width: 280px;
    padding: 28px;
    box-sizing: border-box;

    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

/* Grand numéro en filigrane, signature d'un style éditorial premium */
.service-index {
    position: absolute;
    top: 14px;
    right: 22px;
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--text-color);
    opacity: 0.06;
    letter-spacing: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

/* Trait d'accent qui s'allonge au survol */
.service-accent {
    width: 32px;
    height: 3px;
    margin-bottom: 16px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(.2,.8,.2,1);
}

/* Conteneur de texte */
.text-container {
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Flèche en coin, façon carte premium cliquable */
.service-arrow {
    position: absolute;
    bottom: 22px;
    right: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--header-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(.2,.8,.2,1);
}

.service-arrow svg {
    fill: none;
    stroke: var(--text-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease, transform 0.4s ease;
}

.text-container h3 {
    font-family: var(--font-main);
    color: var(--primary-color); /* Le vert de votre charte */
    font-size: 1.3rem;
    margin: 0 0 10px 0;
}

.text-container p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Effet au survol */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.service-card:hover .service-index {
    opacity: 0.1;
    transform: translateY(-4px);
}

.service-card:hover .service-accent {
    width: 56px;
}

.service-card:hover .service-arrow {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translate(4px, -4px);
}

.service-card:hover .service-arrow svg {
    stroke: white;
}

/* Adaptation Mobile */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 280px);
    }
}

/* Mobile : 1 par ligne centrée */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 280px; /* 1 seule colonne de 280px */
        justify-content: center;
    }
}