/*-----------------------------------*\
  #MODERN 2026 — refonte du contenu, ACCUEIL UNIQUEMENT (chargée par Views/Home/Index.cshtml)
  Les autres pages gardent leur UI d'origine (voir modern-2026.css pour le menu, la police et les arrondis).
\*-----------------------------------*/

/*===================================*\
  Sections
\*===================================*/

.section {
    padding-block: clamp(64px, 4vw + 40px, 104px);
}

.service .section-title,
.contact .section-title,
#references .section-title {
    font-size: clamp(2.6rem, 1.9rem + 1.4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
}

.service .section-text,
.contact .section-text,
#references .section-text {
    max-width: 640px;
    margin-inline: auto;
    margin-block: 12px 48px;
    font-size: 1.7rem !important;
    line-height: 1.65;
    color: var(--x26-muted);
}

/* Bloc Silwane .Net (section avec la classe Bootstrap « card ») : sans cadre */
section.card.service {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}


/*===================================*\
  Héros
\*===================================*/

.hero,
.heroAr {
    background:
        radial-gradient(50% 60% at 85% 35%, hsla(225, 81%, 55%, 0.07), transparent 70%),
        linear-gradient(to bottom, hsl(0, 0%, 100%), hsl(240, 20%, 99%));
}

.hero-subtitle,
.hero-subtitleAr {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--x26-red);
    text-transform: uppercase;
}

.hero-title {
    background-color: transparent;
    font-size: clamp(3.2rem, 2.4rem + 1.6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    animation: none;
}

.hero-text {
    font-size: 1.75rem;
    line-height: 1.7;
    color: var(--x26-text);
    max-width: 560px;
}

.stats-wrapper {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--x26-line);
}

@media (min-width: 768px) {
    .stats-wrapper { flex-wrap: nowrap !important; }
    .stats-wrapper > div { flex: 1 1 0; min-width: 0; }
}

.stat-number {
    font-family: var(--x26-font-body);
    font-weight: 700;
    font-size: clamp(1.9rem, 1.5rem + 0.5vw, 2.3rem);
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: var(--x26-ink);
    text-shadow: none;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--x26-muted);
}

/*===================================*\
  Bloc Silwane .Net
\*===================================*/

.logoSilwane h1 {
    font-family: var(--x26-font-head);
    font-size: clamp(4rem, 3rem + 2vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    animation: none;
}

.glow,
.decoration {
    display: none;
}

.contact-form-hero {
    max-width: 920px;
    margin-inline: auto;
    padding: 8px;
    border-radius: 999px;
    background: hsl(0, 0%, 100%);
    border: 1px solid var(--x26-line);
    box-shadow: var(--x26-shadow);
    align-items: center;
    transition: box-shadow 0.2s ease;
}

    .contact-form-hero:hover {
        background: hsl(0, 0%, 100%);
        transform: none;
    }

    .contact-form-hero:focus-within {
        box-shadow: 0 0 0 4px hsla(225, 81%, 55%, 0.12), var(--x26-shadow);
    }

    .contact-form-hero .input-group input {
        border: 0;
        border-radius: 999px;
        background: transparent;
        padding: 1.1rem 1.6rem;
        font-size: 1.5rem;
        box-shadow: none !important;
    }

    .contact-form-hero .input-group + .input-group {
        border-inline-start: 1px solid var(--x26-line);
    }

@media (max-width: 767.98px) {
    .contact-form-hero {
        border-radius: var(--x26-radius);
    }

        .contact-form-hero .input-group + .input-group {
            border-inline-start: 0;
            border-top: 1px solid var(--x26-line);
        }
}

.tag {
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-size: 1.3rem;
}

    .tag:hover {
        transform: none;
    }

/*===================================*\
  Cartes produits
\*===================================*/

.grid-list,
.grid-listP {
    gap: 24px;
}

.service-card {
    border-radius: var(--x26-radius);
    border: 1px solid var(--x26-line);
    background-color: hsl(0, 0%, 100%);
    /* box-shadow: var(--x26-shadow); */
    transition: transform 0.3s var(--x26-ease), box-shadow 0.3s var(--x26-ease);
}

    .service-card:is(:hover, :focus-within) {
        transform: translateY(-4px);
        /* box-shadow: var(--x26-shadow-hover); */
    }

    .service-card .zoom-image {
        transition: transform 0.4s var(--x26-ease);
    }

    .service-card:hover .zoom-image {
        transform: scale(1.03);
    }

    .service-card .h3 {
        font-size: 1.9rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        margin-top: 8px;
    }

    .service-card .card-text {
        font-size: 1.45rem;
        line-height: 1.65;
        color: var(--x26-muted);
    }

/*===================================*\
  Références
\*===================================*/

.continuous-scroll {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/*===================================*\
  Contact
\*===================================*/

.contact-form {
    border-radius: var(--x26-radius-lg);
    padding: clamp(20px, 3vw, 36px);
    background: hsl(0, 0%, 100%);
    border: 1px solid var(--x26-line);
    box-shadow: var(--x26-shadow);
}

.input-field,
.input-field-silwane {
    font-family: var(--x26-font-body);
    font-size: 1.5rem;
    border-radius: var(--x26-radius-sm);
    border: 1px solid var(--x26-line);
    padding: 15px 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

    .input-field:focus,
    .input-field-silwane:focus {
        outline: none;
        background-color: hsl(0, 0%, 100%);
        border-color: var(--x26-red);
        box-shadow: 0 0 0 4px hsla(228, 69%, 49%, 0.10);
    }

.contact-card {
    border-radius: var(--x26-radius);
    border: 1px solid var(--x26-line);
    background: hsl(0, 0%, 100%);
    box-shadow: var(--x26-shadow-sm);
}

    .contact-card .card-icon {
        border-radius: 14px;
        background: hsla(228, 69%, 49%, 0.07);
    }

    .contact-card .card-title {
        font-size: 1.8rem;
        font-weight: 700;
    }

/*===================================*\
  Pied de page
\*===================================*/

footer > .bg-dark {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    padding-block: 24px !important;
    font-size: 1.4rem;
}


/* Accueil : les sections blanches prennent le dégradé du héros (lueurs orange / rose / violet sur fond très clair) */
.section.service.bg-white,
#references.bg-white {
    background:
        radial-gradient(42% 50% at 8% 92%, rgba(56, 189, 248, 0.12), transparent 70%),
        radial-gradient(34% 40% at 50% 100%, rgba(47, 91, 234, 0.07), transparent 70%),
        radial-gradient(30% 34% at 96% 8%, rgba(56, 189, 248, 0.09), transparent 70%),
        radial-gradient(40% 45% at 85% 40%, rgba(47, 91, 234, 0.06), transparent 70%),
        linear-gradient(160deg, #FCFDFF 0%, #FFFFFF 45%, #FCFDFF 100%) !important;
}

/* Même dégradé, en plus clair */
.section.service.bg-white,
#references.bg-white {
    background:
        radial-gradient(42% 50% at 8% 92%, rgba(56, 189, 248, 0.06), transparent 70%),
        radial-gradient(34% 40% at 50% 100%, rgba(47, 91, 234, 0.035), transparent 70%),
        radial-gradient(30% 34% at 96% 8%, rgba(56, 189, 248, 0.045), transparent 70%),
        radial-gradient(40% 45% at 85% 40%, rgba(47, 91, 234, 0.03), transparent 70%),
        linear-gradient(160deg, #FFFEFE 0%, #FFFFFF 45%, #FEFEFF 100%) !important;
}

/* Plus de dégradé : fond gris uni d'origine (site.css --white-2) */
.section.service.bg-white,
#references.bg-white {
    background: var(--white-2) !important;
}

/* Couleurs de fond d'origine : sections bg-white en blanc (les autres restent dans leur gris d'origine) */
.section.service.bg-white,
#references.bg-white {
    background: #FFFFFF !important;
}

/*===================================*\
  Accueil — « Silwane® ERP : Suite… » : deux blocs vitrine alternés
  image sur panneau doux | texte aligné à gauche, titre grand, lien Explorer →
\*===================================*/
@media (min-width: 992px) {
    #NosProduits .grid-listP {
        display: flex !important;
        flex-direction: column;
        gap: 40px;
        max-width: 1160px;
        margin: 56px auto 0;
    }

    #NosProduits .service-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "media title"
            "media text"
            "media cta";
        grid-template-rows: 1fr auto 1fr;
        column-gap: 64px;
        align-items: center;
        padding: 0 !important;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none !important;
        text-align: start !important;
        transform: none !important;
    }

        /* Le 2e produit : texte à gauche, image à droite */
        #NosProduits .service-card:nth-child(2) {
            grid-template-areas:
                "title media"
                "text media"
                "cta media";
        }

        #NosProduits .service-card > .d-flex {
            grid-area: media;
            align-self: stretch;
            align-items: center;
            justify-content: center !important;
            min-height: 380px;
            padding: 40px !important;
            border-radius: 28px;
            background:
                radial-gradient(60% 60% at 50% 55%, hsla(0, 0%, 100%, 0.9), transparent 70%),
                hsl(240, 14%, 96%);
            overflow: hidden;
        }

            #NosProduits .service-card > .d-flex img {
                max-height: 300px;
                width: auto;
                filter: drop-shadow(0 30px 30px hsla(240, 25%, 15%, 0.2));
                transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
            }

        #NosProduits .service-card:hover > .d-flex img {
            transform: translateY(-8px) scale(1.03);
        }

        #NosProduits .service-card > .h3 {
            grid-area: title;
            align-self: end;
            margin: 0 0 14px;
            font-size: clamp(3rem, 2rem + 1.4vw, 4.2rem);
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        #NosProduits .service-card > .card-text {
            grid-area: text;
            margin: 0 !important;
            max-width: 480px;
            font-size: 1.65rem;
            line-height: 1.75;
            color: hsl(240, 6%, 40%);
        }

        #NosProduits .service-card > .btn-show-more {
            grid-area: cta;
            align-self: start;
            justify-content: flex-start !important;
            margin-top: 26px;
        }

            #NosProduits .service-card > .btn-show-more .fixed-btn-card {
                position: static !important;
                transform: none;
            }

                #NosProduits .service-card > .btn-show-more .fixed-btn-card::after {
                    content: " \2192";
                    margin-inline-start: 4px;
                }
}

/* Correctif : le panneau d'image ne concerne que le 1er bloc (le bouton a aussi la classe d-flex) */
@media (min-width: 992px) {
    #NosProduits .service-card {
        grid-template-rows: auto auto auto;
        align-content: center;
    }

        #NosProduits .service-card > .btn-show-more.d-flex {
            grid-area: cta;
            align-self: start;
            min-height: 0;
            padding: 0 !important;
            border-radius: 0;
            background: none;
            overflow: visible;
        }

        #NosProduits .service-card > .d-flex:first-child {
            grid-row: 1 / span 3;
            min-height: 360px;
        }
}

/*===================================*\
  Blocs vitrine : repère, pastilles de modules, panneau d'image travaillé
\*===================================*/
.sp-eyebrow { display: none; }
.sp-tags { display: none; }

@media (min-width: 992px) {
    #NosProduits .service-card {
        grid-template-areas:
            "media eyebrow"
            "media title"
            "media text"
            "media tags"
            "media cta";
        grid-template-rows: auto auto auto auto auto;
    }

        #NosProduits .service-card:nth-child(2) {
            grid-template-areas:
                "eyebrow media"
                "title media"
                "text media"
                "tags media"
                "cta media";
        }

        #NosProduits .service-card > .d-flex:first-child {
            grid-row: 1 / span 5;
            position: relative;
            min-height: 400px;
            border: 1px solid hsla(240, 12%, 10%, 0.06);
            background:
                radial-gradient(hsla(240, 20%, 20%, 0.08) 1px, transparent 1.2px) 0 0 / 18px 18px,
                radial-gradient(55% 55% at 50% 50%, #fff 0%, hsla(0, 0%, 100%, 0) 70%),
                hsl(240, 14%, 96.5%);
        }

            /* Ombre au sol sous la boîte */
            #NosProduits .service-card > .d-flex:first-child::after {
                content: "";
                position: absolute;
                left: 50%;
                bottom: 16%;
                width: 46%;
                height: 22px;
                transform: translateX(-50%);
                border-radius: 50%;
                background: radial-gradient(closest-side, hsla(240, 25%, 15%, 0.22), transparent);
                filter: blur(4px);
                transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
            }

        #NosProduits .service-card:hover > .d-flex:first-child::after {
            transform: translateX(-50%) scale(0.88);
            opacity: 0.7;
        }

        #NosProduits .service-card > .d-flex:first-child img {
            position: relative;
            z-index: 1;
            filter: drop-shadow(0 18px 18px hsla(240, 25%, 15%, 0.15));
        }

    #NosProduits .sp-eyebrow {
        grid-area: eyebrow;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: hsl(228, 69%, 45%);
    }

        #NosProduits .sp-eyebrow::before {
            content: "";
            width: 28px;
            height: 2px;
            border-radius: 2px;
            background: currentColor;
        }

    #NosProduits .service-card > .h3 {
        margin-bottom: 16px;
    }

    #NosProduits .sp-tags {
        grid-area: tags;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 22px 0 0;
        padding: 0;
        list-style: none;
    }

        #NosProduits .sp-tags li {
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid hsla(240, 12%, 10%, 0.1);
            background: #fff;
            font-size: 1.3rem;
            font-weight: 500;
            color: hsl(240, 10%, 25%);
        }

    #NosProduits .service-card > .btn-show-more.d-flex {
        margin-top: 28px;
    }
}

/* « Silwane® ERP : Suite… » : prolonge le dégradé du héros (mêmes lueurs), qui s'estompe vers le blanc */
#NosProduits.bg-white {
    background:
        radial-gradient(45% 420px at 6% 0%, rgba(56, 189, 248, 0.14), transparent 75%),
        radial-gradient(38% 360px at 50% 0%, rgba(47, 91, 234, 0.08), transparent 75%),
        radial-gradient(40% 420px at 92% 0%, rgba(47, 91, 234, 0.09), transparent 75%),
        linear-gradient(180deg, #F9FBFF 0px, #FFFFFF 520px) !important;
}

/* La section démarre sur la même teinte, puis les lueurs du héros réapparaissent doucement et s'estompent */
#NosProduits.bg-white {
    background:
        radial-gradient(42% 380px at 8% 260px, rgba(56, 189, 248, 0.10), transparent 75%),
        radial-gradient(36% 340px at 52% 220px, rgba(47, 91, 234, 0.06), transparent 75%),
        radial-gradient(40% 380px at 92% 260px, rgba(47, 91, 234, 0.07), transparent 75%),
        linear-gradient(180deg, #F8FAFF 0px, #FFFFFF 700px) !important;
}

/* « Silwane® ERP : Suite… » : retour au blanc */
#NosProduits.bg-white {
    background: #FFFFFF !important;
}

/* Panneaux d'image : sans motif de points (fond uni + lumière douce) */
@media (min-width: 992px) {
    #NosProduits .service-card > .d-flex:first-child {
        background:
            radial-gradient(55% 55% at 50% 50%, #fff 0%, hsla(0, 0%, 100%, 0) 70%),
            hsl(240, 14%, 96.5%);
    }
}

/*===================================*\
  « Silwane® ERP : Suite… » : même univers que le héros et la démo téléphone
  - fond : douces lueurs orange / violet sur blanc
  - panneaux d'image en verre teinté (couleur de chaque produit)
  - effet au défilement (--p de 0 à 1, js/chat-demo.js) : image qui se redresse, texte qui glisse
\*===================================*/
#NosProduits.bg-white {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(600px 500px at 0% 35%, rgba(56, 189, 248, 0.08), transparent 70%),
        radial-gradient(700px 600px at 100% 70%, rgba(47, 91, 234, 0.08), transparent 70%),
        #FFFFFF !important;
}

@media (min-width: 992px) {
    #NosProduits .service-card {
        --p: 1;
        --tint: 24, 100%, 55%;
    }

        #NosProduits .service-card:nth-child(2) {
            --tint: 178, 70%, 42%;
        }

        /* Panneau d'image : verre teinté + halo de la couleur du produit */
        #NosProduits .service-card > .d-flex:first-child {
            border: 1px solid hsla(0, 0%, 100%, 0.8);
            background:
                radial-gradient(55% 60% at 50% 55%, hsla(var(--tint), 0.22), transparent 70%),
                linear-gradient(160deg, hsla(0, 0%, 100%, 0.9), hsla(240, 20%, 97%, 0.75)) !important;
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
            box-shadow:
                inset 0 1px 0 hsla(0, 0%, 100%, 0.9),
                0 30px 60px -34px hsla(var(--tint), 0.45);
            perspective: 1200px;
        }

            /* La boîte arrive inclinée puis se redresse au défilement */
            #NosProduits .service-card > .d-flex:first-child img {
                transform:
                    translateY(calc((1 - var(--p)) * 60px))
                    rotateY(calc((1 - var(--p)) * -28deg))
                    rotateZ(calc((1 - var(--p)) * -5deg))
                    scale(calc(0.82 + var(--p) * 0.18));
                transition: transform 0.08s linear;
            }

        #NosProduits .service-card:nth-child(2) > .d-flex:first-child img {
            transform:
                translateY(calc((1 - var(--p)) * 60px))
                rotateY(calc((1 - var(--p)) * 28deg))
                rotateZ(calc((1 - var(--p)) * 5deg))
                scale(calc(0.82 + var(--p) * 0.18));
        }

        /* Le texte glisse depuis le côté opposé à l'image */
        #NosProduits .service-card > :not(.d-flex:first-child) {
            opacity: calc(0.1 + var(--p) * 0.9);
            transform: translateX(calc((1 - var(--p)) * 60px));
        }

        #NosProduits .service-card:nth-child(2) > :not(.d-flex:first-child) {
            transform: translateX(calc((1 - var(--p)) * -60px));
        }

        /* Pastilles : légère teinte du produit */
        #NosProduits .sp-tags li {
            border-color: hsla(var(--tint), 0.25);
            background: hsla(var(--tint), 0.06);
        }
}

@media (prefers-reduced-motion: reduce) {
    #NosProduits .service-card { --p: 1 !important; }
}

/*===================================*\
  « Silwane® ERP : Suite… » dans le fond commun (.hx-stage) : réseau continu, sans cadres d'image
\*===================================*/
.hx-stage #NosProduits.bg-white {
    position: relative;
    z-index: 1;
    background: transparent !important;
    overflow: visible;
}

@media (min-width: 992px) {
    /* Plus de cadre : la boîte produit posée directement sur le fond */
    #NosProduits .service-card > .d-flex:first-child {
        border: 0 !important;
        background: transparent !important;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none !important;
    }

        #NosProduits .service-card > .d-flex:first-child img {
            max-height: 360px !important;
            filter: drop-shadow(0 34px 30px hsla(240, 25%, 15%, 0.22));
        }

        /* Halo doux de la couleur du produit derrière la boîte */
        #NosProduits .service-card > .d-flex:first-child::before {
            content: "";
            position: absolute;
            left: 50%;
            top: 50%;
            z-index: -1;
            width: 70%;
            aspect-ratio: 1;
            transform: translate(-50%, -50%);
            border-radius: 50%;
            background: radial-gradient(closest-side, hsla(var(--tint), 0.22), transparent);
            pointer-events: none;
        }
}

/* Sans pastilles : texte et bouton groupés et centrés verticalement à côté de l'image */
@media (min-width: 992px) {
    #NosProduits .service-card {
        grid-template-areas:
            "media ."
            "media eyebrow"
            "media title"
            "media text"
            "media cta"
            "media .";
        grid-template-rows: 1fr auto auto auto auto 1fr;
    }

        #NosProduits .service-card:nth-child(2) {
            grid-template-areas:
                ". media"
                "eyebrow media"
                "title media"
                "text media"
                "cta media"
                ". media";
        }

        #NosProduits .service-card > .d-flex:first-child {
            grid-row: 1 / span 6;
            min-height: 340px;
        }

        #NosProduits .service-card > .btn-show-more.d-flex {
            margin-top: 22px;
        }
}

/* Boîtes produits posées directement sur la page : ni carte, ni halo */
#NosProduits .service-card > .d-flex:first-child {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#NosProduits .service-card > .d-flex:first-child::before {
    display: none !important;
}
/* Blocs produits : la position recalculée au rechargement glisse au lieu de sauter */
#NosProduits.np-ready .service-card > .d-flex:first-child img,
#NosProduits.np-ready .service-card > :not(.d-flex:first-child) {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
