/* ==========================================================================
   Page publique de detail service.
   La feuille Tailwind du template est pre-compilee : ce fichier ecrit a la
   main tout le style de la page, scope sous .sv.
   ========================================================================== */

.sv {
    --sv-accent: var(--primary, #44aa9c);
    --sv-text: #ffffff;
    --sv-muted: rgba(255, 255, 255, 0.62);
    --sv-surface: rgba(255, 255, 255, 0.04);
    --sv-surface-strong: rgba(255, 255, 255, 0.07);
    --sv-border: rgba(255, 255, 255, 0.12);
    --sv-dark: #14201e;
    --sv-radius: 14px;

    color: var(--sv-text);
    overflow: hidden;
}

html.light .sv {
    --sv-text: #191b1d;
    --sv-muted: rgba(25, 27, 29, 0.65);
    --sv-surface: #f7f9fb;
    --sv-surface-strong: #ffffff;
    --sv-border: rgba(25, 27, 29, 0.1);
}

/* ---------- Rythme vertical ---------- */

.sv-section {
    padding: 60px 0;
}

.sv-section--tight {
    padding: 40px 0;
}

@media (width >= 768px) {
    .sv-section {
        padding: 90px 0;
    }

    .sv-section--tight {
        padding: 60px 0;
    }
}

@media (width >= 1200px) {
    .sv-section {
        padding: 110px 0;
    }
}

.sv-section--alt {
    background-color: var(--sv-surface);
}

.sv-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.sv-head--start {
    margin-left: 0;
    text-align: start;
}

.sv-eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sv-muted);
    margin-bottom: 10px;
}

.sv-title {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--sv-text);
}

.sv-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 12px;
    background-color: var(--sv-accent);
}

.sv-head:not(.sv-head--start) .sv-title::after {
    margin-left: auto;
    margin-right: auto;
}

.sv-lead {
    font-size: 16px;
    line-height: 1.75;
    color: var(--sv-muted);
    margin: 0;
}

@media (width >= 768px) {
    .sv-title {
        font-size: 34px;
    }

    .sv-lead {
        font-size: 17px;
    }
}

/* ---------- Boutons ---------- */

.sv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--sv-accent);
    background-color: var(--sv-accent);
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sv-btn:hover {
    transform: translateY(-2px);
    background-color: transparent;
    color: var(--sv-accent);
}

.sv-btn--light {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #191b1d;
}

.sv-btn--light:hover {
    background-color: transparent;
    color: #ffffff;
}

/* ---------- Banniere ---------- */

.sv-hero {
    position: relative;
    padding: 140px 0 60px;
    color: #ffffff;
    background-image: linear-gradient(115deg, #2f7f75 0%, var(--sv-accent) 55%, #5fc2b3 100%);
}

.sv-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/noise-overlay.png");
    opacity: 0.35;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@media (width >= 992px) {
    .sv-hero {
        padding: 210px 0 90px;
    }
}

.sv-hero > .container {
    position: relative;
    z-index: 2;
}

.sv-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (width >= 992px) {
    .sv-hero__grid {
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
        gap: 50px;
    }

    .sv-hero__grid--solo {
        grid-template-columns: minmax(0, 1fr);
        max-width: 820px;
    }
}

.sv-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 25px;
}

.sv-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.sv-breadcrumb span[aria-current] {
    color: #ffffff;
}

.sv-hero__title {
    font-size: 32px;
    line-height: 1.12;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 18px;
    color: #ffffff;
}

@media (width >= 768px) {
    .sv-hero__title {
        font-size: 46px;
    }
}

@media (width >= 1200px) {
    .sv-hero__title {
        font-size: 54px;
    }
}

.sv-hero__text {
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 14px;
    max-width: 560px;
}

.sv-hero__tagline {
    font-weight: 500;
}

.sv-hero__actions {
    margin-top: 26px;
}

.sv-hero__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ---------- Chiffres cles ---------- */

.sv-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (width >= 576px) {
    .sv-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width >= 992px) {
    .sv-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sv-stats--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sv-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background-color: var(--sv-surface-strong);
}

.sv-stat__mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--sv-accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.sv-stat__value {
    display: block;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    color: var(--sv-text);
}

.sv-stat__label {
    display: block;
    font-size: 14px;
    color: var(--sv-muted);
    margin-top: 4px;
}

/* ---------- Prose (contenu riche) ---------- */

.sv-prose {
    max-width: 860px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.85;
    color: var(--sv-muted);
}

.sv-prose h2,
.sv-prose h3,
.sv-prose h4 {
    color: var(--sv-text);
    font-weight: 600;
    margin: 28px 0 12px;
}

.sv-prose h2 {
    font-size: 24px;
}

.sv-prose h3 {
    font-size: 20px;
}

.sv-prose p {
    margin: 0 0 16px;
}

.sv-prose ul,
.sv-prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
    list-style: revert;
}

.sv-prose li {
    margin-bottom: 8px;
}

.sv-prose a {
    color: var(--sv-accent);
    text-decoration: underline;
}

.sv-prose strong {
    color: var(--sv-text);
}

/* ---------- Blocs illustres ---------- */

.sv-block {
    padding: 50px 0;
}

.sv-block:nth-child(even) {
    background-color: var(--sv-surface);
}

@media (width >= 768px) {
    .sv-block {
        padding: 70px 0;
    }
}

.sv-block__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (width >= 992px) {
    .sv-block__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 50px;
    }

    /* Alternance : image a gauche sur les blocs pairs */
    .sv-block:nth-child(even) .sv-block__media {
        order: -1;
    }
}

.sv-block__grid--solo {
    grid-template-columns: minmax(0, 1fr);
}

.sv-block__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--sv-radius);
}

.sv-block__index {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--sv-accent);
    margin-bottom: 10px;
}

.sv-block__title {
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--sv-text);
}

@media (width >= 768px) {
    .sv-block__title {
        font-size: 26px;
    }
}

.sv-block__text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--sv-muted);
    margin: 0 0 16px;
    white-space: pre-line;
}

.sv-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sv-bullets li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--sv-muted);
}

.sv-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--sv-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ---------- Processus (frise) ---------- */

.sv-process {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (width >= 576px) {
    .sv-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width >= 992px) {
    .sv-process {
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        grid-template-columns: none;
        gap: 16px;
    }
}

.sv-step {
    position: relative;
    text-align: center;
    padding: 0 8px;
}

/* Trait de liaison entre les etapes (desktop) */
@media (width >= 992px) {
    .sv-step::before {
        content: "";
        position: absolute;
        top: 36px;
        left: calc(-50% + 44px);
        width: calc(100% - 88px);
        border-top: 2px dashed var(--sv-border);
    }

    .sv-step:first-child::before {
        display: none;
    }
}

.sv-step__mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--sv-accent);
    background-color: var(--sv-surface-strong);
    color: var(--sv-accent);
    font-size: 22px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.sv-step__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--sv-text);
}

.sv-step__text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--sv-muted);
    margin: 0;
}

.sv-actions {
    margin-top: 40px;
    text-align: center;
}

.sv-actions--start {
    margin-top: 26px;
    text-align: start;
}

.sv-video__body .sv-head {
    margin-bottom: 20px;
}

/* ---------- Video ---------- */

.sv-video__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (width >= 992px) {
    .sv-video__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 50px;
    }
}

.sv-video__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--sv-radius);
    overflow: hidden;
    background-color: #000000;
}

.sv-video__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Bandeau realisations ---------- */

.sv-showcase {
    position: relative;
    background-color: var(--sv-dark);
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.sv-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 32, 30, 0.92) 0%, rgba(20, 32, 30, 0.55) 100%);
}

.sv-showcase > .container {
    position: relative;
    z-index: 2;
}

.sv-showcase__inner {
    max-width: 560px;
}

.sv-showcase__title {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 14px;
    color: #ffffff;
}

@media (width >= 768px) {
    .sv-showcase__title {
        font-size: 34px;
    }
}

.sv-showcase__text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 24px;
}

/* ---------- Technologies ---------- */

.sv-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sv-tech__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 160px;
    min-height: 110px;
    padding: 20px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background-color: var(--sv-surface-strong);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.sv-tech__item:hover {
    transform: translateY(-5px);
    border-color: var(--sv-accent);
}

.sv-tech__item img {
    max-width: 90px;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.sv-tech__item span {
    font-size: 13px;
    color: var(--sv-muted);
    text-align: center;
}

/* ---------- Methodologie de travail ---------- */

.sv-workflow {
    background-color: var(--sv-dark);
    color: #ffffff;
}

.sv-workflow .sv-title,
.sv-workflow .sv-lead {
    color: #ffffff;
}

.sv-workflow .sv-eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.sv-workflow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

@media (width >= 576px) {
    .sv-workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width >= 992px) {
    .sv-workflow-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sv-workflow-step {
    position: relative;
    padding-left: 56px;
}

.sv-workflow-step__mark {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: var(--sv-accent);
    color: #ffffff;
    font-weight: 600;
}

.sv-workflow-step__mark img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.sv-workflow-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0 8px;
    color: #ffffff;
}

.sv-workflow-step p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ---------- Domaines d'intervention ---------- */

.sv-domains {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (width >= 576px) {
    .sv-domains {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width >= 992px) {
    .sv-domains {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sv-domain {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background-color: var(--sv-surface-strong);
    font-size: 15px;
    color: var(--sv-text);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.sv-domain:hover {
    transform: translateY(-4px);
    border-color: var(--sv-accent);
}

.sv-domain__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: color-mix(in srgb, var(--sv-accent) 15%, transparent);
    color: var(--sv-accent);
}

.sv-domain__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sv-domain__icon svg {
    width: 18px;
    height: 18px;
}

/* ---------- Temoignages ---------- */

.sv-testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (width >= 768px) {
    .sv-testimonials {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width >= 1200px) {
    .sv-testimonials {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sv-testimonial {
    padding: 26px;
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius);
    background-color: var(--sv-surface-strong);
}

.sv-testimonial__quote {
    font-size: 15px;
    line-height: 1.8;
    color: var(--sv-muted);
    margin: 0 0 20px;
}

.sv-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sv-testimonial__author img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.sv-testimonial__name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--sv-text);
}

.sv-testimonial__role {
    display: block;
    font-size: 13px;
    color: var(--sv-muted);
}

/* ---------- CTA final ---------- */

.sv-cta {
    background-image: linear-gradient(115deg, #2f7f75 0%, var(--sv-accent) 55%, #5fc2b3 100%);
    text-align: center;
    color: #ffffff;
}

.sv-cta .sv-title {
    color: #ffffff;
}

.sv-cta .sv-title::after {
    background-color: #ffffff;
}

.sv-cta p {
    max-width: 620px;
    margin: 0 auto 26px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}
