﻿/* Container helper quand Bootstrap n'est pas présent */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Hero (bandeau dégradé) ---------- */
.services-hero {
    --c-top: #253B86; /* bleu plus profond */
    --c-mid: #3229A8; /* indigo */
    --c-bot: #4B22B9; /* violet */
    background: linear-gradient(180deg,var(--c-top) 0%,var(--c-mid) 55%,var(--c-bot) 100%);
    color: #fff;
    padding: 56px 0 64px;
    position: relative;
    isolation: isolate;
    border-top: 10px solid #fff; /* petit écart blanc */
    margin-top: 45px; /* ajuste selon ta navbar */
    background-clip: padding-box;

}

    .services-hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: rgba(255,255,255,.25);
    }

    .services-hero .hero-content {
        text-align: center;
    }

    .services-hero h1 {
        font-size: clamp(28px,4vw,42px);
        font-weight: 800;
        letter-spacing: -.02em;
        margin: 0 0 10px;
    }

    .services-hero p {
        margin: 0;
        opacity: .95;
        font-weight: 500;
    }

/* ---------- Services list ---------- */
.services-list {
    margin: 40px auto 24px;
    display: grid;
    gap: 32px;
}

/* Par défaut : texte à gauche / image à droite */
.service-cards {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 24px;
    padding: 20px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20,20,50,.06);
    align-items: center;
}

    .service-cards .service-text {
        order: 1;
    }

    .service-cards .service-media {
        order: 2;
    }

    /* Variante .alt : image à gauche / texte à droite */
    .service-cards.alt {
        grid-template-columns: .92fr 1.08fr;
    }

        .service-cards.alt .service-media {
            order: 1;
        }

        .service-cards.alt .service-text {
            order: 2;
        }

@media (max-width:900px) {
    .service-cards,
    .service-cards.alt {
        grid-template-columns: 1fr;
    }

        .service-cards .service-text,
        .service-cards .service-media,
        .service-cards.alt .service-text,
        .service-cards.alt .service-media {
            order: initial;
        }
}

/* Titres & sous-titres */
.service-text h3 {
    margin: 6px 0 6px;
    font-size: clamp(18px,2.2vw,22px);
    font-weight: 700;
    color: #1d1b2e;
}

.service-text .subtitle {
    margin: 0 0 12px;
    color: #65627a;
}

/* Icône section */
.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ede9ff;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}

    .service-icon svg {
        width: 22px;
        height: 22px;
        fill: #6946ff;
    }

/* Blocs listes */
.bullets {
    margin: 12px 0 6px;
}

    .bullets h4 {
        font-size: 14px;
        margin: 0 0 6px;
        color: #4b2bb9;
        font-weight: 700;
    }

/* Puces "check" */
.list-checks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

    .list-checks li {
        padding-left: 26px;
        position: relative;
        color: #3a3852;
        line-height: 1.35;
        font-size: 14.5px;
    }

        .list-checks li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 2px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #e9f8ef;
            box-shadow: inset 0 0 0 2px #bde9cd;
        }

        .list-checks li::after {
            content: "";
            position: absolute;
            left: 5px;
            top: 7px;
            width: 8px;
            height: 4px;
            border: 2px solid #19a862;
            border-top: none;
            border-right: none;
            transform: rotate(-45deg);
        }

/* Étapes numérotées */
.list-steps {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

    .list-steps li {
        counter-increment: step;
        padding-left: 34px;
        position: relative;
        color: #3a3852;
        line-height: 1.35;
        font-size: 14.5px;
    }

        .list-steps li::before {
            content: counter(step);
            position: absolute;
            left: 0;
            top: 0;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: #eef1ff;
            color: #4b2bb9;
            font-weight: 800;
            font-size: 12px;
            box-shadow: inset 0 0 0 2px #d9defe;
        }

/* Media */
.service-media {
    width: 100%;
}

.media-frame {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(20,20,50,.10);
    background: #f4f5f8;
}

.ratio-4x3 {
    aspect-ratio: 4 / 3;
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Techniques ---------- */
.techniques {
    padding: 64px 0 40px;
    background: #f6f7fb;
    margin-top: 24px;
}

    .techniques h2 {
        text-align: center;
        margin: 0 0 10px;
        font-size: clamp(22px,2.6vw,32px);
        color: #1f1c34;
        font-weight: 800;
    }

.tech-sub {
    text-align: center;
    color: #7a7894;
    margin: 0 auto 26px;
    max-width: 760px;
}

/* 3 cartes */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

@media (max-width:980px) {
    .tech-grid {
        grid-template-columns: repeat(2,minmax(260px,1fr));
    }
}

@media (max-width:640px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

.tech-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 10px 22px rgba(20,20,50,.07);
    text-align: center;
}

    .tech-card .tech-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #edf0ff;
        display: grid;
        place-items: center;
        margin: 0 auto 12px;
    }

        .tech-card .tech-icon svg {
            width: 22px;
            height: 22px;
            fill: #4b5dff;
        }

    .tech-card h3 {
        margin: 4px 0 8px;
        font-size: 16px;
        color: #23213b;
        font-weight: 700;
    }

    .tech-card p {
        margin: 0;
        color: #5e5c77;
        font-size: 14.5px;
        line-height: 1.45;
    }

/* ---------- CTA pleine largeur ---------- */
.cta.cta-full {
    background: linear-gradient(135deg,#2F61FF 0%, #6A27E8 100%);
    padding: 72px 0 84px;
    color: #fff;
}

    .cta.cta-full .container {
        text-align: center;
        max-width: 900px;
    }

    .cta.cta-full h2 {
        margin: 0 0 12px;
        font-size: clamp(22px,3vw,34px);
        font-weight: 800;
    }

    .cta.cta-full p {
        margin: 0 0 24px;
        opacity: .95;
        line-height: 1.5;
    }

.btn-cta {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 999px;
    background: #fff;
    color: #2c2199;
    font-weight: 800;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
}

    .btn-cta:hover {
        transform: translateY(-1px);
        box-shadow: 0 12px 26px rgba(0,0,0,.22);
    }

/* --- Forcer le centrage du bandeau simple (hérité du hero.css) --- */
.hero-band.hero--simple .hero {
    grid-template-columns: 1fr !important;
    place-items: center;
    justify-content: center;
    text-align: center;
}

.hero-band.hero--simple .copy {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-band.hero--simple h1,
.hero-band.hero--simple .lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-band.hero--simple .actions {
    justify-content: center !important;
}

/* ===============================
   STAGGER pour le reveal au scroll
   =============================== */
.services-list > .service-cards {
    --reveal-delay: 0ms;
}

    .services-list > .service-cards:nth-child(2) {
        --reveal-delay: 120ms;
    }

    .services-list > .service-cards:nth-child(3) {
        --reveal-delay: 240ms;
    }

    .services-list > .service-cards:nth-child(4) {
        --reveal-delay: 360ms;
    }

    .services-list > .service-cards:nth-child(5) {
        --reveal-delay: 480ms;
    }

/* Facultatif : léger décalage différent en mobile */
@media (max-width: 768px) {
    .services-list > .service-cards {
        --reveal-delay: 0ms;
    }

        .services-list > .service-cards:nth-child(2) {
            --reveal-delay: 100ms;
        }

        .services-list > .service-cards:nth-child(3) {
            --reveal-delay: 200ms;
        }

        .services-list > .service-cards:nth-child(4) {
            --reveal-delay: 300ms;
        }

        .services-list > .service-cards:nth-child(5) {
            --reveal-delay: 400ms;
        }
}
/* --- Entrée animée du bandeau Services (comme le hero home) --- */
.hero-band.hero--simple.reveal-on-scroll .copy > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}

/* Quand l’élément entre dans le viewport (classe ajoutée par app-reveal.js) */
.hero-band.hero--simple.reveal-on-scroll.is-visible .copy > * {
    opacity: 1;
    transform: none;
}

/* Stagger léger sur le titre, la phrase et les boutons */
.hero-band.hero--simple.reveal-on-scroll .copy > *:nth-child(1) {
    transition-delay: 60ms;
}

.hero-band.hero--simple.reveal-on-scroll .copy > *:nth-child(2) {
    transition-delay: 160ms;
}

.hero-band.hero--simple.reveal-on-scroll .copy > *:nth-child(3) {
    transition-delay: 260ms;
}

/* Accessibilité : réduire les animations si l’utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
    .hero-band.hero--simple.reveal-on-scroll .copy > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
