/* Police unique du site : Inter. Chargée en dernier pour passer devant les autres feuilles. */

:root,
.v26,
.hx {
    --font-inter: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    --x26-font-body: var(--font-inter);
    --x26-font-head: var(--font-inter);
    --x26-font-round: var(--font-inter);
    --v-body: var(--font-inter);
    --v-head: var(--font-inter);
    --ff-league-spartan: var(--font-inter);
    --ff-roboto: var(--font-inter);
    --bs-body-font-family: var(--font-inter);
}

/* Tout le texte, sauf les polices d'icônes (Font Awesome) */
html,
body,
body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-brands) {
    font-family: var(--font-inter) !important;
}

/* Arabe : Inter n'a pas de glyphes arabes, IBM Plex Sans Arabic prend le relais */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-brands) {
    font-family: 'Inter', 'IBM Plex Sans Arabic', 'Inter Fallback', system-ui, sans-serif !important;
}

/* Boutons : Inter 600 */
button,
.btnCss,
.btn,
.hx-btn,
input[type="submit"],
input[type="button"],
.fixed-btn {
    font-family: var(--font-inter) !important;
    font-weight: 600 !important;
}

/* Champs : Inter 500 */
input:not([type="submit"]):not([type="button"]),
select,
textarea,
.hx-sn-form__field,
.input-field,
.input-field-silwane {
    font-family: var(--font-inter) !important;
    font-weight: 500 !important;
}

/* Loader : Inter 600 */
.loader,
.preloader,
.spinner,
[class*="loader"] {
    font-family: var(--font-inter) !important;
    font-weight: 600 !important;
}

/* Badges : Inter 500 (le bouton « Voir → » du badge en 600) */
.badge,
.hx-badge,
.privacy-badge,
.sr-tag,
.hx-pill {
    font-family: var(--font-inter) !important;
    font-weight: 500 !important;
}

.hx-badge-cta {
    font-family: var(--font-inter) !important;
    font-weight: 600 !important;
}

/* Inter est un peu plus large : les cartes flottantes du héros restent sur une ligne */
.hx-float strong {
    white-space: nowrap;
}

/* Boutons des cartes (« Explorer », « Voir plus ») : noir */
.btn-show-more .btnCss,
.btn-show-more a,
.fixed-btn-card,
.explore-link,
.service-card .btnCss {
    background: linear-gradient(90deg, #1E40AF, #2F5BEA) !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px -12px rgba(47, 91, 234, 0.6) !important;
}

    .btn-show-more .btnCss:hover,
    .btn-show-more a:hover,
    .fixed-btn-card:hover,
    .explore-link:hover,
    .service-card .btnCss:hover {
        background: linear-gradient(90deg, #1E3A8A, #1E40AF) !important;
    }

/* Exception : les « Voir plus » de Silwane ERP / Silwane Mobile (accueil) restent en bleu */
#NosProduits .btn-show-more .btnCss,
#NosProduits .btn-show-more a,
#NosProduits .fixed-btn-card,
#NosProduits .explore-link,
#NosProduits .service-card .btnCss {
    background: linear-gradient(90deg, #1E40AF, #2F5BEA) !important;
    box-shadow: 0 10px 24px -12px rgba(47, 91, 234, 0.6) !important;
}

    #NosProduits .btn-show-more .btnCss:hover,
    #NosProduits .btn-show-more a:hover,
    #NosProduits .fixed-btn-card:hover,
    #NosProduits .explore-link:hover,
    #NosProduits .service-card .btnCss:hover {
        background: linear-gradient(90deg, #1E3A8A, #1E40AF) !important;
    }

/* Menu « + » : même pastille que le bouton de langue (FR) */
.nav-plus-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: hsla(240, 10%, 10%, 0.05);
    box-shadow: inset 0 0 0 1px hsla(240, 12%, 10%, 0.08);
    color: hsl(240, 14%, 14%);
    font-size: 1.6rem;
    font-weight: 600 !important;
    line-height: 1;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

.navbar-link:hover .nav-plus-pill,
.dropdown:hover .nav-plus-pill {
    background: hsla(240, 10%, 10%, 0.08);
    transform: translateY(-1px) scale(1.06);
}

.navbar-link:has(.nav-plus-pill)::after {
    display: none !important;
}

/* « + » collé au bouton FR */
@media (min-width: 992px) {
    .navbar-list > li.dropdown:has(.nav-plus-pill) {
        margin-inline-end: -5px !important;
    }

    .navbar-list > li.dropdownLn {
        margin-inline-start: -5px !important;
    }
}

/* Menu « + » : liste Blog / Assistance ajustée à son contenu */
.navbar-list > li.dropdown:has(.nav-plus-pill) > .dropdown-list {
    width: max-content !important;
    min-width: 0 !important;
    padding: 10px 16px !important;
}

/* Survol unique des boutons bleus : léger soulèvement, bleu profond, ombre plus marquée (plus de zoom) */
.btnCss-primary,
.hx-btn-accent,
.service-card .btnCss,
.fixed-btn-card,
.explore-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

    .btnCss-primary:is(:hover, :focus-visible),
    .hx-btn-accent:is(:hover, :focus-visible),
    .service-card .btnCss:is(:hover, :focus-visible),
    .fixed-btn-card:is(:hover, :focus-visible),
    .explore-link:is(:hover, :focus-visible) {
        background: linear-gradient(90deg, #1E3A8A, #1E40AF) !important;
        color: #FFFFFF !important;
        transform: translateY(-2px) !important;
        filter: none !important;
        box-shadow: 0 14px 28px -12px rgba(30, 64, 175, 0.65) !important;
    }

    .btnCss-primary:active,
    .hx-btn-accent:active,
    .service-card .btnCss:active,
    .fixed-btn-card:active,
    .explore-link:active {
        transform: translateY(0) !important;
    }

/* Tailles de titres réduites sur tout le site */
.hx-main-hero .hx-title { font-size: clamp(32px, 2.2vw, 40px) !important; }
.cd-section .cd-title { font-size: clamp(28px, 2vw, 36px) !important; }
.section-title,
h2.h2,
.v26-head__title { font-size: clamp(24px, 12px + 1.3vw, 32px) !important; line-height: 1.2 !important; }

@media (min-width: 761px) and (max-width: 1366px) {
    .hx-main-hero .hx-title { font-size: clamp(28px, 2.6vw, 36px) !important; }
    .cd-section .cd-title { font-size: clamp(26px, 2.4vw, 32px) !important; }
}

@media (max-width: 760px) {
    .hx-main-hero .hx-title { font-size: 32px !important; }
    .cd-section .cd-title { font-size: 26px !important; }
    .section-title,
    h2.h2,
    .v26-head__title { font-size: 23px !important; }
}

/* Titres des blocs produits « Silwane® ERP / Mobile » (accueil) plus petits */
#NosProduits .service-card > h3.h3 { font-size: clamp(24px, 1.6vw, 30px) !important; }

@media (max-width: 760px) {
    #NosProduits .service-card > h3.h3 { font-size: 22px !important; }
}

/* Titre du héros un peu plus grand (les autres titres restent réduits) */
.hx-main-hero .hx-title { font-size: clamp(38px, 2.7vw, 50px) !important; }

@media (min-width: 761px) and (max-width: 1366px) {
    .hx-main-hero .hx-title { font-size: clamp(34px, 3.1vw, 42px) !important; }
}

@media (max-width: 760px) {
    .hx-main-hero .hx-title { font-size: 35px !important; }
}

/* ===== Portable 14" (≈ 1280–1440px, écran peu haut) ===== */
@media (min-width: 992px) and (max-width: 1440px) {
    /* Titre du héros sur 2 lignes */
    .hx-main-hero .hx-title { font-size: clamp(30px, 2.6vw, 36px) !important; }

    /* Cartes produits : 4 par ligne, plus compactes */
    .service .grid-list {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

        .service .grid-list .service-card { padding: 24px 18px !important; }
        .service .grid-list .service-card img { max-width: 170px; height: auto; }
}

/* Anneau des modules : jamais plus haut que l'écran */
@media (min-width: 601px) {
    .sr-ring { width: min(800px, 100%, calc(100vh - 60px)) !important; }
}

/* Téléphone WhatsApp réduit sur portable et téléphone */
@media (max-width: 1440px), (max-height: 900px) {
    .cd-phone { zoom: 0.82; }
}

@media (max-width: 600px) {
    .cd-phone { zoom: 0.78; }
}

/* Nuage du téléphone moins haut */
@media (max-width: 600px) {
    .sr-core { aspect-ratio: 1.45 !important; }
    .sr-devices { transform: none !important; }
}

/* Menu : liens plus serrés et plus gras */
@media (min-width: 992px) {
    .navbar-list { gap: 18px !important; }
    .navbar-list > li > .navbar-link { font-weight: 600 !important; }
}

/* « Accueil » : pastille maison comme le « + » */
.nav-home-pill ion-icon { font-size: 15px; }

@media (min-width: 992px) {
    .navbar-list > li.nav-home-item { margin-inline-end: 0 !important; }
    .navbar-link:has(.nav-home-pill)::after { display: none !important; }
}

/* Héros : maquette de droite réduite sur portables (largeur moyenne ou écran peu haut) */
@media (min-width: 992px) and (max-width: 1366px) {
    .hx-main-hero .hx-hero-visual { zoom: 0.82; }
}

@media (min-width: 992px) and (max-height: 760px) {
    .hx-main-hero .hx-hero-visual { zoom: 0.74; }
    .hx-main-hero .hx-hero-row { padding-top: 96px !important; }
}

/* Icône Accueil : pastille bleue qui brille */
.nav-home-pill {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #1E40AF, #2F5BEA) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 0 rgba(47, 91, 234, 0.55), 0 6px 14px -6px rgba(47, 91, 234, 0.8) !important;
    animation: nav-home-glow 2.6s ease-out infinite;
}

    .nav-home-pill ion-icon { font-size: 16px; color: #FFFFFF; }

.navbar-link:hover .nav-home-pill { transform: translateY(-1px) scale(1.08); }

@keyframes nav-home-glow {
    0% { box-shadow: 0 0 0 0 rgba(47, 91, 234, 0.55), 0 6px 14px -6px rgba(47, 91, 234, 0.8); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(47, 91, 234, 0), 0 6px 14px -6px rgba(47, 91, 234, 0.8); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-home-pill { animation: none; }
}

/* Menu mobile / tablette : panneau entier visible (plus de coupure), entrées plus compactes */
@media (max-width: 991.98px) {
    .header .navbar.active {
        max-height: calc(100dvh - 80px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    .header .navbar .navbar-list { gap: 2px !important; padding-block: 4px !important; }
    .header .navbar .navbar-list > li { padding-block: 2px !important; }
    .header .navbar .navbar-link { padding-block: 8px !important; }

    /* +, FR et maison sur une même ligne */
    .header .navbar .navbar-list > li.nav-home-item,
    .header .navbar .navbar-list > li.dropdown:has(.nav-plus-pill),
    .header .navbar .navbar-list > li.dropdownLn { display: inline-flex !important; width: auto !important; margin: 0 !important; }

    .header .navbar .navbar-list > li:has(.btnCss) { margin-top: 8px !important; }
}

@media (max-width: 991.98px) {
    .header .navbar .navbar-list { align-items: center !important; }
    .header .navbar .navbar-list > li.nav-home-item,
    .header .navbar .navbar-list > li.dropdown:has(.nav-plus-pill),
    .header .navbar .navbar-list > li.dropdownLn { align-self: center !important; justify-content: center !important; }
    .header .navbar .navbar-list > li.dropdown:has(.nav-plus-pill) > .navbar-link { justify-content: center; }
}

@media (max-width: 991.98px) {
    .header .navbar .navbar-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        column-gap: 10px !important;
    }

        .header .navbar .navbar-list > li { flex: 0 0 100% !important; display: flex !important; justify-content: center !important; text-align: center !important; }

        .header .navbar .navbar-list > li.dropdown:has(.nav-plus-pill),
        .header .navbar .navbar-list > li.dropdownLn { flex: 0 0 auto !important; }
}

/* Tablette (761–991px) : héros comme sur téléphone (titre, maquette, texte), moins d'espace en haut */
@media (min-width: 761px) and (max-width: 991.98px) {
    .hx-main-hero .hx-hero { padding-top: 0 !important; }
    .hx-main-hero .hx-hero-row { display: flex !important; flex-direction: column; padding-top: 104px !important; gap: 0 !important; min-height: 0 !important; }
    .hx-main-hero .hx-hero-text { display: contents; }
    .hx-main-hero .hx-hero-text > .hx-title { order: 1; margin-bottom: 22px; font-size: 40px !important; }
    .hx-main-hero .hx-hero-visual { order: 2; flex: none !important; width: 100%; margin-bottom: 28px; }
    .hx-main-hero .hx-hero-text > .hx-sn { order: 3; max-width: 680px; }
}

/* Bouton « Téléchargements » : reste noir au survol */
.navbar-list > li > .btnCss:is(:hover, :focus-visible) {
    background: linear-gradient(90deg, #000000, #1F2937) !important;
    box-shadow: 0 14px 28px -12px rgba(17, 24, 39, 0.6) !important;
}

@media (min-width: 761px) and (max-width: 991.98px) {
    .hx-main-hero .hx-hero-row { align-items: stretch !important; }
    .hx-main-hero .hx-hero-text > .hx-title { align-self: flex-start; text-align: start; }
}

/* Bouton Accueil v2 : carré arrondi bleu, reflet, halo doux (sans pulsation agressive) */
.nav-home-pill {
    position: relative;
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
    background: linear-gradient(145deg, #4C7BFF 0%, #2F5BEA 45%, #1E40AF 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        inset 0 -2px 4px rgba(15, 30, 90, 0.35),
        0 6px 16px -6px rgba(47, 91, 234, 0.75),
        0 0 0 4px rgba(47, 91, 234, 0.10) !important;
    animation: nav-home-breathe 3.2s ease-in-out infinite !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

    .nav-home-pill::after {
        content: "";
        position: absolute;
        inset: 2px 2px 50% 2px;
        border-radius: 9px 9px 14px 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
        pointer-events: none;
    }

    .nav-home-pill ion-icon { position: relative; z-index: 1; font-size: 17px !important; color: #FFFFFF; filter: drop-shadow(0 1px 1px rgba(15, 30, 90, 0.4)); }

.navbar-link:hover .nav-home-pill {
    transform: translateY(-2px) rotate(-6deg) scale(1.06);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(15, 30, 90, 0.35),
        0 10px 22px -8px rgba(47, 91, 234, 0.9),
        0 0 0 6px rgba(47, 91, 234, 0.14) !important;
}

@keyframes nav-home-breathe {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.12); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-home-pill { animation: none !important; }
}

/* Héros tablette moins imposant */
@media (min-width: 761px) and (max-width: 991.98px) {
    .hx-main-hero .hx-hero-text > .hx-title { font-size: 34px !important; margin-bottom: 16px; }
    .hx-main-hero .hx-hero-visual { zoom: 0.78; width: auto !important; align-self: center; }
}

/* Bouton Accueil v3 : petit et discret, même taille que « + » et FR, teinte bleue douce */
.nav-home-pill {
    width: 26px !important;
    height: 26px !important;
    border-radius: 999px !important;
    background: #EEF3FF !important;
    box-shadow: inset 0 0 0 1px rgba(47, 91, 234, 0.18) !important;
    animation: none !important;
    filter: none !important;
}

    .nav-home-pill::after { display: none !important; }

    .nav-home-pill ion-icon { font-size: 13px !important; color: #2F5BEA !important; filter: none !important; }

.navbar-link:hover .nav-home-pill {
    background: linear-gradient(135deg, #2F5BEA, #1E40AF) !important;
    transform: translateY(-1px) scale(1.06) !important;
    box-shadow: 0 6px 14px -6px rgba(47, 91, 234, 0.7) !important;
}

    .navbar-link:hover .nav-home-pill ion-icon { color: #FFFFFF !important; }

/* Bouton Accueil : petite taille, couleur bleue et halo pulsé d'avant */
.nav-home-pill {
    background: linear-gradient(135deg, #1E40AF, #2F5BEA) !important;
    box-shadow: 0 0 0 0 rgba(47, 91, 234, 0.55), 0 6px 14px -6px rgba(47, 91, 234, 0.8) !important;
    animation: nav-home-glow 2.6s ease-out infinite !important;
}

    .nav-home-pill ion-icon { color: #FFFFFF !important; }

@media (prefers-reduced-motion: reduce) {
    .nav-home-pill { animation: none !important; }
}

/* Héros tablette : tout centré (titre, maquette, texte) */
@media (min-width: 761px) and (max-width: 991.98px) {
    .hx-main-hero .hx-hero-row { align-items: center !important; text-align: center; }
    .hx-main-hero .hx-hero-text > .hx-title { align-self: center !important; text-align: center !important; }
    .hx-main-hero .hx-hero-visual { align-self: center !important; }
    .hx-main-hero .hx-hero-text > .hx-sn { align-self: center; align-items: center; text-align: center; margin-inline: auto; }
    .hx-main-hero .hx-sn__title { padding-inline-start: 0 !important; }
    .hx-main-hero .hx-sn__title::before { display: none; }
    .hx-main-hero .hx-sn__points li { justify-content: center; text-align: start; }
}

/* Survol Accueil : petit saut élastique + la maison rebondit + onde lumineuse */
.navbar-link:has(.nav-home-pill) { overflow: visible !important; }

.nav-home-pill { position: relative; overflow: visible !important; }

    .nav-home-pill::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        border: 2px solid rgba(47, 91, 234, 0.55);
        opacity: 0;
        transform: scale(1);
        pointer-events: none;
    }

.navbar-link:hover .nav-home-pill,
.navbar-link:focus-visible .nav-home-pill {
    background: linear-gradient(135deg, #2F5BEA, #4C7BFF) !important;
    transform: translateY(-2px) scale(1.12) !important;
    box-shadow: 0 8px 18px -6px rgba(47, 91, 234, 0.85) !important;
    animation: none !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.8, 0.64, 1), box-shadow 0.25s ease !important;
}

    .navbar-link:hover .nav-home-pill::before,
    .navbar-link:focus-visible .nav-home-pill::before {
        animation: nav-home-ripple 0.7s ease-out;
    }

    .navbar-link:hover .nav-home-pill ion-icon,
    .navbar-link:focus-visible .nav-home-pill ion-icon {
        animation: nav-home-hop 0.55s cubic-bezier(0.34, 1.6, 0.64, 1);
    }

@keyframes nav-home-ripple {
    0% { opacity: 0.9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.9); }
}

@keyframes nav-home-hop {
    0% { transform: translateY(0) scale(1); }
    35% { transform: translateY(-4px) scale(1.15, 0.9); }
    60% { transform: translateY(0) scale(0.92, 1.08); }
    80% { transform: translateY(-1px) scale(1.03); }
    100% { transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-link:hover .nav-home-pill::before,
    .navbar-link:hover .nav-home-pill ion-icon { animation: none; }
}

/* Survol Accueil : la maison saute seulement à la verticale (aucun mouvement gauche/droite) */
.nav-home-pill ion-icon { display: block; transform-origin: 50% 50%; }

.navbar-link:hover .nav-home-pill ion-icon,
.navbar-link:focus-visible .nav-home-pill ion-icon {
    animation: nav-home-hop-v 0.5s ease-out !important;
}

@keyframes nav-home-hop-v {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    70% { transform: translateY(0.5px); }
}

.navbar-link:hover .nav-home-pill,
.navbar-link:focus-visible .nav-home-pill {
    transform: translateY(-2px) scale(1.1) !important;
}

/* Accueil : aucun déplacement du bouton (ni au survol, ni au retour) — seulement couleur, halo et petit saut de la maison */
.nav-home-pill,
.navbar-link:hover .nav-home-pill,
.navbar-link:focus-visible .nav-home-pill {
    transform: none !important;
    transition: background 0.2s ease, box-shadow 0.25s ease !important;
}

.navbar-link:has(.nav-home-pill),
.navbar-link:has(.nav-home-pill):hover {
    transform: none !important;
    padding-inline: 0 !important;
    margin: 0 !important;
}

.navbar-link:hover .nav-home-pill {
    box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.18), 0 8px 18px -6px rgba(47, 91, 234, 0.85) !important;
}

/* Icône maison personnalisée (SVG) — même bleu */
.nav-home-svg { width: 16px; height: 16px; display: block; overflow: visible; }
.nav-home-svg path { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-home-svg .nh-knob { fill: #FFFFFF; }
.nav-home-svg .nh-spark { fill: #BFE3FF; stroke: none; opacity: .9; transform-box: fill-box; transform-origin: center; }
.nav-home-svg .nh-door { stroke: #BFE3FF; }

.navbar-link:hover .nav-home-svg,
.navbar-link:focus-visible .nav-home-svg { animation: nav-home-hop-v 0.5s ease-out; }

.navbar-link:hover .nav-home-svg .nh-spark,
.navbar-link:focus-visible .nav-home-svg .nh-spark { animation: nh-twinkle 0.8s ease-out; }

@keyframes nh-twinkle {
    0% { transform: scale(.4) rotate(0); opacity: .4; }
    50% { transform: scale(1.5) rotate(45deg); opacity: 1; }
    100% { transform: scale(1) rotate(90deg); opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-link:hover .nav-home-svg, .navbar-link:hover .nav-home-svg .nh-spark { animation: none; }
}

/* « Silwane® ERP : Suite… » : images alignées sur les bords du conteneur + fond bleu un peu plus visible */
@media (min-width: 992px) {
    #NosProduits .service-card > .d-flex:first-child { justify-content: flex-start !important; }
    #NosProduits .service-card:nth-child(2) > .d-flex:first-child { justify-content: flex-end !important; }
}

#NosProduits,
#NosProduits.bg-white,
.hx-stage #NosProduits {
    background:
        radial-gradient(45% 40% at 10% 25%, rgba(47, 91, 234, 0.10), transparent 70%),
        radial-gradient(40% 40% at 92% 70%, rgba(56, 189, 248, 0.10), transparent 70%),
        linear-gradient(180deg, #F7F9FF 0%, #EEF3FF 55%, #F7F9FF 100%) !important;
}

@media (min-width: 992px) {
    #NosProduits .service-card > .d-flex:first-child { padding-inline: 0 !important; }
}

#NosProduits,
#NosProduits.bg-white,
.hx-stage #NosProduits {
    background:
        radial-gradient(45% 45% at 12% 30%, rgba(47, 91, 234, 0.14), transparent 70%),
        radial-gradient(40% 45% at 90% 72%, rgba(56, 189, 248, 0.14), transparent 70%),
        linear-gradient(180deg, #F5F8FF 0%, #E9F0FF 55%, #F5F8FF 100%) !important;
}

body .hx-stage #NosProduits.bg-white {
    background:
        radial-gradient(45% 45% at 12% 30%, rgba(47, 91, 234, 0.14), transparent 70%),
        radial-gradient(40% 45% at 90% 72%, rgba(56, 189, 248, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(245, 248, 255, 0) 0%, rgba(233, 240, 255, 0.9) 50%, rgba(245, 248, 255, 0) 100%) !important;
}

/* Bouton Accueil en rouge, assorti au logo IntelliX (essai) */
.nav-home-pill {
    background: linear-gradient(135deg, #D91F2B, #F0444D) !important;
    box-shadow: 0 0 0 0 rgba(229, 56, 59, 0.55), 0 6px 14px -6px rgba(217, 31, 43, 0.8) !important;
    animation: nav-home-glow-red 2.6s ease-out infinite !important;
}

.navbar-link:hover .nav-home-pill,
.navbar-link:focus-visible .nav-home-pill {
    background: linear-gradient(135deg, #F0444D, #FF6A71) !important;
    box-shadow: 0 0 0 4px rgba(229, 56, 59, 0.18), 0 8px 18px -6px rgba(217, 31, 43, 0.85) !important;
    animation: none !important;
}

.nav-home-pill::before { border-color: rgba(229, 56, 59, 0.55) !important; }
.nav-home-svg .nh-spark { fill: #FFD6D8; }
.nav-home-svg .nh-door { stroke: #FFD6D8; }

@keyframes nav-home-glow-red {
    0% { box-shadow: 0 0 0 0 rgba(229, 56, 59, 0.55), 0 6px 14px -6px rgba(217, 31, 43, 0.8); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(229, 56, 59, 0), 0 6px 14px -6px rgba(217, 31, 43, 0.8); }
}

/* Boutons flottants (partager / haut de page) : plus sombres au survol, comme « Téléchargements » */
.go-assistance, .go-top { transition: background .2s ease, box-shadow .25s ease; }
.go-assistance:is(:hover, :focus-visible),
.go-top:is(:hover, :focus-visible) {
    background: linear-gradient(90deg, #000000, #1F2937) !important;
    box-shadow: 0 14px 28px -12px rgba(17, 24, 39, 0.6) !important;
    color: #FFFFFF !important;
}

/* Accessibilité : contrastes suffisants (WCAG AA) */
.hx-main-hero .hx-side-foot small { color: #4B5563 !important; }
.cd-time { color: #55636B !important; }
.cd-time em { color: #0271A3 !important; }
.service-card .card-text, .section-text { color: #5E5E6B; }

/* Champs anti-spam : hors écran (invisibles, pas de petite zone cliquable) */
input[name="Age"], .x-hp { position: absolute !important; left: -10000px !important; top: auto !important; }
p.section-text, .service .section-text { color: #5E5E6B !important; }
.cd-debts__total b { color: #C62828 !important; }

/* « Voir tous les logiciels » (menu) : jamais souligné au survol */
.xn-foot a,
.xn-foot a:hover,
.xn-foot a:focus-visible { text-decoration: none !important; }
/* « Voir tous les logiciels » : fond bleu clair au survol */
.xn-foot a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; transition: background-color .18s ease, color .18s ease; }
.xn-foot a:hover,
.xn-foot a:focus-visible { background-color: #EAF0FF !important; color: #1E40AF !important; }
.xn-foot a b { transition: transform .18s ease; }
.xn-foot a:hover b { transform: translateX(3px); }

/* Boutons « Voir plus » : plus de flèche */
#NosProduits .service-card > .btn-show-more .fixed-btn-card::after,
.btn-show-more .fixed-btn-card::after { content: none !important; display: none !important; }

/* Ordinateur : plus d'espace entre le menu et la maquette du héros (carte « Facture F27/0007 réglée ») */
@media (min-width: 992px) {
    .hx-main-hero .hx-hero-visual { margin-top: 44px !important; }
}

/*===================================*\
  Animations rapides partout (apparitions au défilement, héros, changement de page)
  Même rendu qu'avant, mais 2 à 3 fois plus court et sans attente.
\*===================================*/
/* Héros : entrée en 0,35 s, décalages réduits */
.hx-up { animation-duration: .35s !important; }
.hx-d1 { animation-delay: 0s !important; }
.hx-d2 { animation-delay: .04s !important; }
.hx-d3 { animation-delay: .08s !important; }
.hx-d4 { animation-delay: .12s !important; }
@keyframes hx-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Apparitions au défilement : 0,35 s, petit déplacement */
.hx-reveal { translate: 0 16px; transition-duration: .35s !important; transition-delay: 0s !important; }
.hx-reveal.is-in { translate: 0 0; }
.hx-pop { transition-duration: .3s, .3s, .3s, .2s !important; transition-delay: 0s !important; }

/* Maquette du héros : lignes et inclinaison sans attente */
.hx-row { animation-duration: .25s !important; animation-delay: 0s !important; }
.hx-main-hero .hx-tilt { animation-duration: .35s !important; animation-delay: 0s !important; }

/* Anciennes pages et conversation WhatsApp */
.hero-title, .hero-text { animation-duration: .35s !important; animation-delay: 0s !important; }
.error-title, .error-message, .success-icon { animation-duration: .3s !important; animation-delay: 0s !important; }
.cd-bars i, .cd-bar2 { animation-duration: .35s !important; }

/* Changement de page : fondu très court entre les pages (navigateurs récents) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}
html.perf-lite ::view-transition-old(root), html.perf-lite ::view-transition-new(root) { animation: none; }

/* Zéro temps de transition : tout s'affiche immédiatement (pas d'animation d'entrée, pas de fondu entre pages) */
.hx-up, .hx-reveal, .hx-pop, .hx-row, .hero-title, .hero-text, .error-title, .error-message, .success-icon {
    opacity: 1 !important; translate: none !important; scale: none !important; animation: none !important;
}
.hx-reveal, .hx-pop { transition: none !important; }
.hx-main-hero .hx-tilt { animation: none !important; }
@view-transition { navigation: none; }

/*===================================*\
  Animations en boucle légères : seulement transform / opacity (carte graphique),
  plus aucune animation de box-shadow ou de background-position (recalcul à chaque image sur le processeur)
\*===================================*/
/* Bouton Accueil : même halo rouge pulsé, dessiné par un calque qui grandit et s'efface */
.nav-home-pill { animation: none !important; box-shadow: 0 6px 14px -6px rgba(217, 31, 43, 0.8) !important; }
.nav-home-pill::after {
    content: "" !important; display: block !important; position: absolute; inset: 0; border-radius: inherit;
    background: none !important; border: 0 !important; box-shadow: 0 0 0 3px rgba(229, 56, 59, 0.45) !important;
    opacity: 0; pointer-events: none; will-change: transform, opacity;
    animation: nav-home-halo 2.6s ease-out infinite;
}
@keyframes nav-home-halo { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.navbar-link:hover .nav-home-pill::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .nav-home-pill::after { animation: none !important; } }
html.perf-lite .nav-home-pill::after { animation: none !important; }

/* Titre du héros : dégradé bleu fixe (le reflet animé repeignait le texte à chaque image) */
.hx-shine { animation: none !important; background-position: 0 center !important; }
/* Bouton « Automatique » de la maquette et bouton de la bande CTA : sans pulsation de halo */
.hx-rb.is-on { animation: none !important; }
.section.cta .btnCss { animation-name: none !important; }

/*===================================*\
  Page immobile : aucun effet décoratif en boucle (tout est instantané et fluide).
  Restent seulement les réactions à l'utilisateur (survol, clic) et le défilement des logos clients.
\*===================================*/
.hx-float, .hx-float-1, .hx-float-2,          /* cartes flottantes du héros */
.hx-blob,                                      /* halos de couleur en fond */
.hx-sweep,                                     /* reflet qui balaie la maquette */
.hx-net-dot, .hx-net-line, .hx-net-pkt,        /* points et lignes animés du réseau */
.hx-mc__num, .stat-number,                     /* pulsation des chiffres */
.hx-shim, .hx-btn.hx-shimmer,                  /* reflet des boutons */
.section.cta, .section.cta .btnCss::after,     /* orbes et reflet de la bande CTA */
.nav-home-pill::after                          /* halo du bouton Accueil */
{ animation: none !important; }
.hx-sweep { display: none !important; }
.hx-net-line { opacity: 1 !important; }
.hx-net-pkt { display: none !important; }
.nav-home-pill::after { opacity: 0 !important; }
.hx-btn::before, .hx-btn::after, .hx-shimmer::before, .hx-shimmer::after,
.section.cta::before, .section.cta::after { animation: none !important; }

/* Icônes (Ionicons) : leur place est réservée avant le chargement de la bibliothèque (le texte ne se décale plus) */
:where(ion-icon) { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; }
ion-icon:not(:defined) { visibility: hidden; }

/* Icônes Ionicons qui remplacent Font Awesome (pied de page, langue, blog, confidentialité) */
.icon-round ion-icon { font-size: 16px; color: #FFFFFF; }
ion-icon.fa-tag { vertical-align: -2px; }
ion-icon.me-2 { vertical-align: -2px; }

/* Mobile (≤ 760px) : héros entièrement centré (titre, maquette, texte) */
@media (max-width: 760px) {
    .hx-main-hero .hx-hero-row { align-items: center !important; text-align: center; }
    .hx-main-hero .hx-hero-text { align-items: center !important; text-align: center; }
    .hx-main-hero .hx-hero-text > .hx-title,
    .hx-main-hero .hx-title { align-self: center !important; text-align: center !important; }
    .hx-main-hero .hx-hero-visual { align-self: center !important; margin-inline: auto; }
    .hx-main-hero .hx-sn { align-self: center; align-items: center; text-align: center; margin-inline: auto; }
    .hx-main-hero .hx-sn__title { padding-inline-start: 0 !important; border: 0 !important; }
    .hx-main-hero .hx-sn__title::before { display: none !important; }
    .hx-main-hero .hx-sn__points li { justify-content: center; text-align: start; }
    .hx-main-hero .hx-sn__tags { justify-content: center; }
}

/* Mobile : héros moderne (pastille au-dessus du titre, titre plus bas, maquette rapprochée avec halo) */
.hx-eyebrow { display: none; }
@media (max-width: 760px) {
    .hx-main-hero .hx-hero-row { padding-top: 124px !important; gap: 0 !important; }
    .hx-main-hero .hx-eyebrow {
        display: inline-flex; align-items: center; gap: 8px; align-self: center;
        margin-bottom: 14px; padding: 6px 14px 6px 10px; border-radius: 999px;
        font-size: 13px; font-weight: 600; letter-spacing: .01em; color: #1E40AF;
        background: #FFFFFF; border: 1px solid #DCE5FB;
        box-shadow: 0 6px 18px -10px rgba(30, 64, 175, .45);
    }
    .hx-main-hero .hx-eyebrow i {
        width: 8px; height: 8px; border-radius: 50%;
        background: linear-gradient(135deg, #2F5BEA, #1E40AF);
        box-shadow: 0 0 0 4px rgba(47, 91, 234, .15);
    }
    .hx-main-hero .hx-title { margin-bottom: 30px !important; letter-spacing: -0.035em; line-height: 1.08; }
    .hx-main-hero .hx-hero-visual { position: relative; margin-bottom: 36px !important; }
    .hx-main-hero .hx-hero-visual::before {
        content: ""; position: absolute; inset: 12% 6% -8%; z-index: -1; border-radius: 50%;
        background: radial-gradient(closest-side, rgba(47, 91, 234, .28), rgba(47, 91, 234, 0));
        filter: blur(18px); pointer-events: none;
    }
}

/* Tablette : héros plus aéré (pastille, plus d espace autour de la maquette) */
@media (min-width: 761px) and (max-width: 991.98px) {
    .hx-main-hero .hx-hero-row { padding-top: 120px !important; }
    .hx-main-hero .hx-eyebrow {
        display: inline-flex; align-items: center; gap: 8px; align-self: center; order: 0;
        margin-bottom: 18px; padding: 6px 14px 6px 10px; border-radius: 999px;
        font-size: 13px; font-weight: 600; color: #1E40AF; background: #FFFFFF; border: 1px solid #DCE5FB;
        box-shadow: 0 6px 18px -10px rgba(30, 64, 175, .45);
    }
    .hx-main-hero .hx-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #2F5BEA, #1E40AF); box-shadow: 0 0 0 4px rgba(47, 91, 234, .15); }
    .hx-main-hero .hx-hero-text > .hx-title { margin-bottom: 44px !important; }
    .hx-main-hero .hx-hero-visual { margin-bottom: 56px !important; }
}

/* Bouton menu (mobile / tablette) : sobre — deux traits fins, sans fond ; croix quand ouvert */
.menu-toggle {
    display: none; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px;
    background: transparent; color: #0B1220; box-shadow: none;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
@media (max-width: 986px) { .menu-toggle { display: inline-flex !important; } }
    .menu-toggle .mt-ic { position: relative; width: 22px; height: 12px; flex: none; }
    .menu-toggle .mt-bar { position: absolute; right: 0; height: 2px; border-radius: 2px; background: currentColor; }
    .menu-toggle .mt-bar:nth-child(1) { top: 1px; width: 22px; }
    .menu-toggle .mt-bar:nth-child(2) { top: 9px; width: 14px; }
    .menu-toggle .mt-lbl-open, .menu-toggle .mt-lbl-close { display: none !important; }
    .menu-toggle:hover, .menu-toggle:focus-visible { background: #F1F4FA; }
    .menu-toggle[aria-expanded="true"] .mt-bar { top: 5px !important; width: 20px !important; right: 1px !important; }
    .menu-toggle[aria-expanded="true"] .mt-bar:nth-child(1) { transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .mt-bar:nth-child(2) { transform: rotate(-45deg); }

/* Carte « Vendeur en tournée » : ne sort jamais de l'écran (n'est plus coupée sur portable / petits écrans) */
@media (min-width: 992px) and (max-width: 1599.98px) {
    .hx-main-hero .hx-float-2 { right: -6px !important; }
}

/* Bouton menu un peu plus petit ; fond gris au survol seulement à la souris (pas collé après un tap) */
.menu-toggle { width: 34px !important; height: 34px !important; border-radius: 9px !important; }
    .menu-toggle .mt-ic { width: 18px; height: 10px; }
    .menu-toggle .mt-bar:nth-child(1) { top: 1px; width: 18px; }
    .menu-toggle .mt-bar:nth-child(2) { top: 7px; width: 11px; }
    .menu-toggle[aria-expanded="true"] .mt-bar { top: 4px !important; width: 16px !important; }
    .menu-toggle:hover, .menu-toggle:focus-visible { background: transparent; }
@media (hover: hover) {
    .menu-toggle:hover { background: #F1F4FA; }
}
.menu-toggle:focus-visible { outline: 2px solid #2F5BEA; outline-offset: 2px; }

/* Bouton menu : fond gris clair toujours visible (un peu plus foncé au survol / ouvert) */
.menu-toggle, .menu-toggle:hover, .menu-toggle:focus-visible { background: #F1F4FA !important; }
@media (hover: hover) { .menu-toggle:hover { background: #E6EBF5 !important; } }
.menu-toggle[aria-expanded="true"] { background: #E6EBF5 !important; }

/* Mobile : pastille plus près de l'en-tête (moins de vide en haut) */
@media (max-width: 760px) {
    .hx-main-hero .hx-hero-row { padding-top: 105px !important; }
}

/* Maquette inclinée mais NETTE : le contenu est dessiné au double de la taille puis réduit de moitié
   (l'inclinaison 3D rééchantillonne la texture : en la dessinant 2x plus grande, le texte reste net) */
@media (min-width: 761px) {
    .hx-main-hero .hx-par { position: relative; height: 496px; }
    .hx-main-hero .hx-tilt {
        position: absolute !important; left: -50%; top: -50%;
        zoom: 2; width: 200%;
        transform-origin: 50% 50%;
        transform: perspective(1800px) rotateY(-8deg) rotateX(3deg) scale(0.5) !important;
        backface-visibility: visible;
    }
}

/* Tablette : même rendu net ; largeur de la maquette fixée (elle ne dépend plus de son contenu) */
@media (min-width: 761px) and (max-width: 991.98px) {
    .hx-main-hero .hx-hero-visual { width: 895px !important; }
}

/* Mobile : maquette à plat, sans couche GPU figée (rendu vectoriel net à toutes les densités d'écran) */
@media (max-width: 760px) {
    .hx-main-hero .hx-tilt {
        backface-visibility: visible;
        -webkit-font-smoothing: auto;
        text-rendering: optimizeLegibility;
    }
}
