/* ============================================================
   PAGE PME — hero scroll-expand + suite
   ============================================================ */
.page-pme {
    --pme-bg:        #0A0F1C;
    --pme-text:      #F5F7FA;
    --pme-text-sub:  #94A3B8;
    --pme-accent:    #38BDF8;

    position: relative;
    color: var(--pme-text);
    background: var(--pme-bg);
    /* `overflow-x: hidden` CASSE `position: sticky` sur tous les enfants
       (le main devient un scroll container implicite). `overflow-x: clip`
       fait la même chose visuellement sans créer de scroll container →
       le stack sticky du bloc cas d'usage fonctionne. */
    overflow-x: clip;
}

/* ═════ Hero container ═════ */
.pme-hero {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ─── Fond image (fade au scroll) ─── */
.pme-hero__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity .1s linear;
}
.pme-hero__bg img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}
/* Vidéo abstract en fond (remplace l'image/canvas sur la homepage) */
.pme-hero__bg-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}
.pme-hero__bg-tint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.10);
}

/* ─── Stage central : média + titre ─── */
.pme-hero__stage {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Média (video) — point invisible → pleine largeur au scroll ─── */
.pme-hero__media {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;               /* Point quasi invisible au chargement */
    height: 8px;
    max-width: 100vw;         /* Autorise le plein viewport */
    max-height: 100vh;
    opacity: 0;               /* Invisible tant que JS n'a pas tourné — évite le point noir */
    border-radius: 50%;       /* interpolé par JS 50% → 0% */
    overflow: hidden;
    box-shadow: none;         /* box-shadow réappliqué par JS dès progress > 0.02 */
    z-index: 1;
}
.pme-hero__media-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.pme-hero__media-tint {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 1);
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
}

/* Caption : date + hint */
.pme-hero__caption {
    position: absolute;
    left: 0; right: 0;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 3;
    pointer-events: none;
    color: #BFDBFE;
}
.pme-hero__date {
    margin: 0;
    font-family: var(--osm-ff-heading);
    font-size: 1rem;
    letter-spacing: 0.02em;
    will-change: transform;
}
.pme-hero__hint {
    margin: 0;
    font-family: var(--osm-ff-heading);
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.9;
    will-change: transform;
}

/* ─── Titre H2 splitté ─── */
.pme-hero__title {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    color: #BFDBFE;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}
.pme-hero__title-word {
    margin: 0;
    font-family: var(--osm-ff-heading);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    will-change: transform;
}

/* ─── Contenu après expand — espace réduit entre video et texte ─── */
.pme-hero__afterward {
    position: relative;
    z-index: 20;
    padding: 32px 24px 96px;                 /* top 96 → 32px (moins d'espace avec la vidéo) */
    max-width: 1080px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity .7s cubic-bezier(.4, 0, .2, 1);
}
.pme-hero__afterward.is-visible {
    opacity: 1;
}
.pme-hero__afterward-inner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.pme-hero__afterward-title {
    font-family: var(--osm-ff-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--pme-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 12px 0 20px;
}
.pme-hero__afterward-title span {
    /* Aligné sur .pricing-credits__title span. */
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    display: inline-block;
    line-height: 1.15;
}
.pme-hero__afterward-lead {
    color: var(--pme-text-sub);
    font-size: 1.12rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 32px;
}
.pme-hero__afterward-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ─── Marquee de logos partenaires (unicolor blanc) — pleine largeur ─── */
.pme-hero__logos {
    /* Break-out des paddings/max-width du parent .pme-hero__afterward */
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 40px;
    overflow: hidden;
    /* Fondu progressif aux extrémités du viewport */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.pme-hero__logos-track {
    display: flex;
    align-items: center;
    gap: 56px;
    width: max-content;
    animation: pme-hero-logos-scroll 30s linear infinite;
    will-change: transform;
}
.pme-hero__logos:hover .pme-hero__logos-track {
    animation-play-state: paused;
}
.pme-hero__logo {
    height: 56px;                            /* Grossi de 28px → 56px */
    width: auto;
    max-width: 220px;                        /* De 130 → 220px pour laisser les logotypes larges respirer */
    object-fit: contain;
    flex-shrink: 0;
    /* Rendre monochrome blanc, avec opacity 0.75 → ton gris clair */
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: opacity .25s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.pme-hero__logo:hover { opacity: 1; }

@keyframes pme-hero-logos-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .pme-hero__logos-track { animation: none; }
}
@media (max-width: 780px) {
    .pme-hero__logos { margin-top: 32px; }
    .pme-hero__logos-track { gap: 48px; }
    .pme-hero__logo { height: 40px; max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
    .pme-hero__bg { opacity: 0; }
    .pme-hero__media { width: min(70vw, 70vh) !important; height: min(70vw, 70vh) !important; }
    .pme-hero__afterward { opacity: 1 !important; }
}

/* ═════════════════════════════════════════════════════════════
   Container Scroll — card 3D qui pivote au scroll
   ═════════════════════════════════════════════════════════════ */
/* Height réduit (était 60rem/80rem) pour rapprocher le bloc « démo produit »
   du bloc connectivité qui suit. Padding vertical inner idem.
   margin-top pour éloigner l'eyebrow "Démo produit" du hero au-dessus
   (évite le chevauchement visuel entre les 2 blocs). */
.container-scroll {
    height: 44rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px;
    margin-top: 80px;
    background: transparent;
}
@media (min-width: 768px) {
    .container-scroll { height: 58rem; padding: 40px; margin-top: 120px; }
}

.container-scroll__inner {
    width: 100%;
    padding: 24px 0;
    position: relative;
    perspective: 1000px;
}
@media (min-width: 768px) { .container-scroll__inner { padding: 60px 0; } }

/* Header (titre + subtitle) — translateY appliqué par JS.
   Layout flex column + align-items: center → GARANTIT le centrage de tous
   les enfants (eyebrow inline-block, h2 title, p sub) indépendamment de
   toute règle text-align qui aurait pu rester en héritage. */
.container-scroll__header {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    will-change: transform;
}
.container-scroll__header .gg-eyebrow,
.container-scroll__title,
.container-scroll__sub {
    text-align: center !important;
    width: 100%;
    max-width: 100%;
}
/* Le span dégradé du titre doit rester inline-block et centrer avec le texte */
.container-scroll__title { display: block; }
.container-scroll__title span { display: inline-block; }
.container-scroll__header .gg-eyebrow {
    display: inline-block;
    color: #38BDF8;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
    margin-bottom: 16px;
}
.container-scroll__title {
    /* Aligné sur .gg-section__title (référence "Trois formats pour former") */
    font-family: var(--osm-ff-heading);
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #F5F7FA;
    margin: 0 0 20px;
}
.container-scroll__title span {
    /* Aligné sur .pricing-credits__title span. */
    background: linear-gradient(135deg, #2563EB, #38BDF8);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    display: inline-block;
    line-height: 1.15;
}
.container-scroll__sub {
    color: #94A3B8;
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
}

/* Card 3D — rotateX + scale appliqués par JS
   margin top positif (au lieu du chevauchement -48px) pour aérer le titre. */
.container-scroll__card {
    position: relative;
    max-width: 1024px;
    margin: 56px auto 0;                      /* était -48px : +56px de respiration */
    height: 30rem;
    width: 100%;
    border: 4px solid #6C6C6C;
    padding: 8px;
    background: #222222;
    border-radius: 30px;
    box-shadow:
        0 0 #0000004d,
        0 9px 20px   #0000004a,
        0 37px 37px  #00000042,
        0 84px 50px  #00000026,
        0 149px 60px #0000000a,
        0 233px 65px #00000003;
    will-change: transform;
    transform-origin: center top;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
@media (min-width: 768px) {
    .container-scroll__card { height: 40rem; padding: 24px; }
}

.container-scroll__card-inner {
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #18181B;         /* zinc-900 pour le container vidéo */
}
@media (min-width: 768px) {
    .container-scroll__card-inner { border-radius: 16px; padding: 0; }
}
.container-scroll__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .container-scroll__card,
    .container-scroll__header { transform: none !important; }
}

/* ═════════════════════════════════════════════════════════════
   Hero PME — Spline 3D background
   ═════════════════════════════════════════════════════════════ */
.spline-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #0A0F1C;
}

.spline-hero__scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: auto;
}
.spline-hero__canvas {
    width: 100%;
    height: 100%;
    display: block;
    /* Le runtime Spline ajuste la taille via style inline sur ces attributs.
       On assure une taille de base ici pour éviter un flash à 0. */
    min-width: 100%;
    min-height: 100%;
}

/* Fallback gradient (visible pendant chargement / si Spline échoue) */
.spline-hero__fallback {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 30%, rgba(130, 0, 219, 0.35), transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(56, 189, 248, 0.25), transparent 55%),
        linear-gradient(180deg, #0A0F1C 0%, #030712 100%);
    pointer-events: none;
}

/* Overlay pour la lisibilité du texte : dégradé sombre latéral + bas
   (reproduit le double linear-gradient de la référence). */
.spline-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to right,
            rgba(0, 0, 0, 0.80) 0%,
            transparent          30%,
            transparent          70%,
            rgba(0, 0, 0, 0.80) 100%),
        linear-gradient(to bottom,
            transparent          50%,
            rgba(0, 0, 0, 0.90) 100%);
}

/* Contenu overlay — ancré à DROITE (marge à gauche = auto pour pousser
   à droite). Le contenu et le texte sont alignés à droite. */
.spline-hero__content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 96px 32px 48px;
    margin: 0 clamp(24px, 8vw, 128px) 0 auto;   /* poussé à droite */
    text-align: right;
    pointer-events: none;
}
.spline-hero__content > * { pointer-events: auto; }

.spline-hero__title {
    font-family: var(--osm-ff-heading);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.005em;
    color: #FFFFFF;
    margin: 0 0 20px;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.65);
    text-align: right;
}
.spline-hero__lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
    max-width: 580px;
    margin: 0 0 36px auto;                       /* poussé à droite dans son max-width */
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
    text-align: right;
}

/* CTAs — reprend le style de la référence (backdrop-blur + border neutral).
   justify-content:flex-end pour coller aux CTAs au bord droit, aligné avec
   le titre right-aligned. */
.spline-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}
.spline-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-family: var(--osm-ff-heading);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, color .25s ease;
    /* Perf : backdrop-filter retiré des CTA — recalculé à chaque frame
       de scroll, aucun bénéfice visuel sur des boutons opaques. */
}
.spline-hero__cta--primary {
    background: rgba(130, 0, 219, 0.16);
    border: 1px solid rgba(50, 45, 54, 0.85);
    color: #FFFFFF;
}
.spline-hero__cta--primary:hover {
    background: rgba(0, 0, 0, 0.50);
    transform: translateY(-2px);
}
.spline-hero__cta--secondary {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(75, 85, 99, 1);
    color: rgba(229, 231, 235, 1);
}
.spline-hero__cta--secondary:hover {
    border-color: rgba(156, 163, 175, 1);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Etat : Spline échoué → on relève le fallback */
.spline-hero__canvas[data-spline-failed="1"] ~ .spline-hero__fallback { z-index: 0; }

@media (max-width: 720px) {
    .spline-hero__content { padding: 88px 24px 32px; margin: 0 auto; text-align: left; }
    .spline-hero__actions { flex-direction: column; align-items: stretch; }
    .spline-hero__cta { justify-content: center; }
}

/* ═════════════════════════════════════════════════════════════
   Section Connectivité — timeline orbitale
   Osmose au centre + 8 outils qui orbitent. Auto-rotation via JS
   (positions calculées avec cos/sin, z-index + opacity en fonction
   de la position sur l'orbite → effet de perspective).
   ═════════════════════════════════════════════════════════════ */
/* Espace réduit entre bloc démo et connectivité — padding vertical descendu. */
.pme-connectivity {
    background: #030712;
    overflow: hidden;
    padding-top: 48px !important;
    padding-bottom: 80px !important;
}
/* Grid col droite ramenée à 500px : ne pousse plus le texte « Connectivité »
   vers le bord gauche. L'image dominante est obtenue via zoom CSS interne
   (voir .pme-orbital__core-img plus bas), pas via un orbital gigantesque. */
.pme-connectivity__inner {
    display: grid;
    grid-template-columns: 1fr 500px;
    gap: 48px;
    align-items: center;
    max-width: 1240px;
}
@media (max-width: 960px) {
    .pme-connectivity__inner { grid-template-columns: 1fr; gap: 32px; }
}

.pme-connectivity__intro { max-width: 560px; text-align: left; }
.pme-connectivity__intro .gg-eyebrow { display: inline-block; margin-bottom: 20px; }
/* Titre bloc connectivité : même design que les titres de la homepage
   (font plus large, shadow doux) + aligné à gauche dans sa colonne. */
.pme-connectivity__intro .gg-section__title {
    text-align: left;
    margin: 0 0 24px;
    max-width: none;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 4px 24px rgba(10, 14, 39, 0.55);
}
.pme-connectivity__lead {
    color: #A3A3A3;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 520px;
}
.pme-connectivity__lead strong { color: #F5F7FA; font-weight: 600; }

.pme-connectivity__badges {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* Badge = surface noire avec canvas particules en fond + contenu au-dessus */
.pme-connectivity__badges li {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 12px 18px;
    background: #030712;
    border: 1px solid rgba(147, 197, 253, 0.25);
    border-radius: 12px;
    color: #F5F7FA;
    font-family: var(--osm-ff-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.45),
        inset 0 0 30px rgba(56, 189, 248, 0.08);
    transition: border-color .25s ease, transform .25s ease;
}
.pme-connectivity__badges li:hover {
    border-color: rgba(147, 197, 253, 0.55);
    transform: translateY(-2px);
}
/* Canvas des particules — placé en fond (z-index 0) */
.pme-connectivity__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: block;
}
/* Contenu du badge (emoji + texte) au-dessus des particules */
.pme-connectivity__badge-content {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.pme-connectivity__badge-emoji { display: none; }   /* Icônes retirées */
.pme-connectivity__badge-text  { color: #F5F7FA; }

/* ─── Visualisation orbitale — dimensions rétablies à des tailles normales
       (500 / 400) pour ne PAS pousser le texte « Connectivité » à gauche.
       L'effet « image dominante » est obtenu via zoom CSS dans l'image même
       (transform: scale sur .pme-orbital__core-img), pas via un orbital géant. */
.pme-orbital {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    perspective: 1000px;
}
@media (max-width: 560px) { .pme-orbital { width: 340px; height: 340px; } }

/* Ring outline (orbite visible) */
.pme-orbital__ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.10);
    pointer-events: none;
}
@media (max-width: 560px) { .pme-orbital__ring { width: 280px; height: 280px; } }

/* Core central : Osmose */
.pme-orbital__center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}
.pme-orbital__ping {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.30);
    animation: pme-orbital-ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
    opacity: 0;
    pointer-events: none;
}
.pme-orbital__ping--delayed { animation-delay: 1.2s; }
@keyframes pme-orbital-ping {
    0%   { transform: scale(1);   opacity: 0.75; }
    75%  { transform: scale(1.8); opacity: 0;    }
    100% { transform: scale(1.8); opacity: 0;    }
}
.pme-orbital__core {
    position: relative;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #14B8A6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pme-orbital-core-pulse 3s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.55),
        0 0 60px rgba(59, 130, 246, 0.35);
}
/* Variante « image » — l'image Visu-osmose-1.png contient DÉJÀ juste le carré
   bleu Osmose centré avec un halo cyan autour. Pas besoin de zoom ni crop :
   object-fit:contain affiche l'image entière, ratio préservé, centré. */
.pme-orbital__core--image {
    width: 260px;
    height: 260px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
    display: block;                /* reset flex hérité de .pme-orbital__core */
    animation: none;               /* reset pulse hérité, on gère via l'image */
}
@media (max-width: 560px) { .pme-orbital__core--image { width: 200px; height: 200px; } }

.pme-orbital__core-img {
    width: 100%;
    height: 100%;
    object-fit: contain;           /* ratio préservé, image entière visible */
    object-position: center;
    display: block;
    /* Pulse subtile 3s pour un peu de vie */
    animation: pme-orbital-core-pulse 3s ease-in-out infinite;
    filter:
        drop-shadow(0 0 30px rgba(139, 92, 246, 0.45))
        drop-shadow(0 0 60px rgba(59, 130, 246, 0.30));
    user-select: none;
    -webkit-user-drag: none;
}
.pme-orbital__core-glow {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.pme-orbital__core-label {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    color: #F5F7FA;
    font-family: var(--osm-ff-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}
@keyframes pme-orbital-core-pulse {
    0%, 100% { transform: scale(1);    }
    50%      { transform: scale(1.06); }
}

/* Nœud outil */
.pme-orbital-node {
    position: absolute;
    top: 50%; left: 50%;
    /* Point de départ centré ; JS applique translate(x, y) supplémentaire */
    margin: -20px 0 0 -20px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: opacity .3s ease;
    z-index: 100;
    /* Pas de transition sur transform : JS l'anime chaque frame */
}
.pme-orbital-node__halo {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.20) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s ease;
}
.pme-orbital-node.is-related .pme-orbital-node__halo {
    opacity: 1;
    animation: pme-orbital-halo-pulse 1.5s ease-in-out infinite;
}
@keyframes pme-orbital-halo-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1);    }
    50%      { opacity: 1;   transform: scale(1.15); }
}

.pme-orbital-node__disc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #030712;
    border: 2px solid rgba(255, 255, 255, 0.40);
    color: #F5F7FA;
    transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.pme-orbital-node:hover .pme-orbital-node__disc {
    border-color: rgba(56, 189, 248, 0.75);
    background: rgba(56, 189, 248, 0.12);
}
.pme-orbital-node.is-related .pme-orbital-node__disc {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.30);
    color: #030712;
}
.pme-orbital-node.is-expanded .pme-orbital-node__disc {
    background: #FFFFFF;
    color: #030712;
    border-color: #FFFFFF;
    transform: scale(1.5);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.55);
}

.pme-orbital-node__label {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.70);
    font-family: var(--osm-ff-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .3s ease, transform .3s ease;
    pointer-events: none;
}
.pme-orbital-node.is-expanded .pme-orbital-node__label {
    color: #FFFFFF;
    transform: translateX(-50%) scale(1.20);
}

/* Card qui apparaît sur clic (au-dessous du nœud) */
.pme-orbital-node__card {
    position: absolute;
    top: calc(100% + 32px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 240px;
    padding: 14px 16px;
    background: rgba(3, 7, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
    z-index: 200;
    text-align: left;
    pointer-events: none;
}
.pme-orbital-node__card::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.35);
}
.pme-orbital-node.is-expanded .pme-orbital-node__card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.pme-orbital-node__card-title {
    display: block;
    color: #FFFFFF;
    font-family: var(--osm-ff-heading);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.pme-orbital-node__card-desc {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
    .pme-orbital__ping,
    .pme-orbital__core,
    .pme-orbital-node.is-related .pme-orbital-node__halo { animation: none; }
}

/* ═════════════════════════════════════════════════════════════
   Section Sécurité PME — SphereHero
   Sphère filaire 3D (12 anneaux) + grille panante + haze + core glow
   + bloom + noise + vignette. Parallax souris via CSS vars --sphere-x/y
   (valeurs -1 → 1 pilotées par sphere-hero.js).

   Palette :
     - primary (wireframe & bloom) : violet 139, 92, 246
     - secondary (core light)      : bleu   59, 130, 246
   ═════════════════════════════════════════════════════════════ */
.pme-sphere {
    --sphere-x: 0;
    --sphere-y: 0;
    --p-depth: 35px;               /* profondeur du parallax */
    --p-mid:   17.5px;
    --primary-rgb:   139, 92, 246;
    --secondary-rgb:  59, 130, 246;

    position: relative;
    width: 100%;
    /* La sphère fait 700px + 70px de shadow autour → il faut ≥ 900px pour
       ne pas la couper, avec un peu de marge pour la respiration verticale. */
    min-height: 940px;
    padding: 0;
    background: #030712;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F5F7FA;
    /* Perspective globale pour la sphère 3D */
    perspective: 1200px;
}
@media (max-width: 900px) { .pme-sphere { min-height: 680px; } }
@media (max-width: 560px) { .pme-sphere { min-height: 560px; } }

/* ── Layer 0 : grille pané + parallax inversé ─────────────── */
.pme-sphere__grid {
    position: absolute;
    inset: -60px;                  /* débord pour cacher les bords lors du move */
    z-index: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(to right,  rgba(10, 10, 10, 0.9) 1px, transparent 1px),
        repeating-linear-gradient(to bottom, rgba(10, 10, 10, 0.9) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    transform: translate3d(calc(var(--sphere-x) * (-1 * var(--p-mid))), calc(var(--sphere-y) * (-1 * var(--p-mid))), 0);
    animation: pme-sphere-grid-pan 180s linear infinite;
}
@keyframes pme-sphere-grid-pan {
    from { background-position: 0 0; }
    to   { background-position: 40px 40px; }
}

/* ── Layer 1 : haze volumétrique ──────────────────────────── */
.pme-sphere__haze {
    position: absolute;
    inset: -60px;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%);
    /* Perf : blur 150px → 60px (radial-gradient déjà flou par nature) */
    filter: blur(60px);
    opacity: 0.6;
    mix-blend-mode: screen;
    transform: translate3d(calc(var(--sphere-x) * var(--p-mid)), calc(var(--sphere-y) * var(--p-mid)), 0);
}

/* ── Layer 2 : deep base + core light ─────────────────────── */
.pme-sphere__base {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(at 50% 50%, rgba(var(--primary-rgb), 0.08) 0%, #030712 90%);
    transform: translate3d(calc(var(--sphere-x) * var(--p-depth)), calc(var(--sphere-y) * var(--p-depth)), 0);
}
.pme-sphere__core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.45) 0%, transparent 70%);
    /* Perf : blur 200px → 80px, énorme économie sur cet élément 400x400 animé */
    filter: blur(80px);
    box-shadow:
        0 0 100px 30px rgba(var(--secondary-rgb), 0.20),
        0 0 200px 50px rgba(var(--primary-rgb),   0.15);
    animation: pme-sphere-core-pulse 25s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pme-sphere-core-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 1;    }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.75; }
}

/* ── Layer 3 : sphère filaire 3D ──────────────────────────── */
.pme-sphere__container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    transform-style: preserve-3d;
}
/* Tilt appliqué depuis les CSS vars parallax (14° max — beaucoup plus prononcé) */
.pme-sphere__tilt {
    width: 700px;
    height: 700px;
    transform-style: preserve-3d;
    transform: rotateX(calc(var(--sphere-y) * 14deg)) rotateY(calc(var(--sphere-x) * -14deg));
    will-change: transform;
}
/* Rotation continue de la sphère — 40s (au lieu de 240s) → nettement plus rapide */
.pme-sphere__rotator {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: pme-sphere-rotate 40s linear infinite;
}
@keyframes pme-sphere-rotate {
    from { transform: rotate3d(1, 1, 0, 0deg);   }
    to   { transform: rotate3d(1, 1, 0, 360deg); }
}
.pme-sphere__ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(var(--primary-rgb), 0.75);
    border-radius: 50%;
    box-shadow: 0 0 70px rgba(var(--primary-rgb), 0.35);
    transform-style: preserve-3d;
    /* transform: rotateY/X(...) set inline via PHP */
}
@media (max-width: 900px) {
    .pme-sphere__tilt { width: 480px; height: 480px; }
}
@media (max-width: 560px) {
    .pme-sphere__tilt { width: 360px; height: 360px; }
}

/* ── Layer 4 : bloom ambiant ──────────────────────────────── */
.pme-sphere__bloom {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb),   0.35) 0%, transparent 50%),
        radial-gradient(circle at 10% 10%, rgba(var(--secondary-rgb), 0.25) 0%, transparent 30%);
    mix-blend-mode: screen;
    /* Perf : blur 100px → 50px, combiné à mix-blend-mode = très cher */
    filter: blur(50px);
    opacity: 0.95;
    transform: translate3d(calc(var(--sphere-x) * var(--p-depth)), calc(var(--sphere-y) * var(--p-depth)), 0);
}

/* ── Layer 5 : noise (film grain) ─────────────────────────── */
.pme-sphere__noise {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    /* Noise SVG turbulence inline (self-contained, pas de request externe) */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 200px 200px;
    background-repeat: repeat;
}

/* ── Layer 6 : contenu intégré au cœur de la sphère ──────
   Pas de backdrop-blur (qui isolait le texte de la sphère).
   Padding réduit, largeur contenue pour rester dans la sphère,
   text-shadow assortie aux couleurs de la sphère pour matcher le ton. */
.pme-sphere__content {
    position: relative;
    z-index: 20;
    max-width: 680px;
    padding: 0 24px;
    margin: 0 auto;
    text-align: center;
}
.pme-sphere__content .gg-eyebrow {
    color: rgba(var(--primary-rgb), 1);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.75);
}
.pme-sphere__title {
    font-family: var(--osm-ff-heading);
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #F5F7FA;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    /* Halo intégré aux couleurs de la sphère */
    text-shadow:
        0 0 30px rgba(var(--primary-rgb), 0.55),
        0 0 60px rgba(var(--secondary-rgb), 0.35);
}
.pme-sphere__title-gradient {
    background: linear-gradient(90deg,
        rgba(var(--secondary-rgb), 1) 0%,
        rgba(var(--primary-rgb),   1) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 32px rgba(var(--primary-rgb), 0.55));
}
.pme-sphere__sub {
    color: #E4E4E7;
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto 28px;
    text-shadow:
        0 0 24px rgba(3, 7, 18, 0.85),
        0 0 12px rgba(var(--primary-rgb), 0.15);
}
.pme-sphere__sub strong {
    color: rgba(var(--primary-rgb), 1);
    font-weight: 700;
}
.pme-sphere__badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
/* Badge sécurité — même design que .pme-connectivity__badges li
   (fond noir #030712 + border cyan + shadow inset + hover translateY).
   Différence : contient une image (28px) au lieu d'un emoji.
   border-radius passe de 999px à 12px pour l'aligner sur connectivité. */
.pme-sphere-badge {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #030712;
    border: 1px solid rgba(147, 197, 253, 0.25);
    border-radius: 12px;
    color: #F5F7FA;
    font-family: var(--osm-ff-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.45),
        inset 0 0 30px rgba(56, 189, 248, 0.08);
    white-space: nowrap;
    transition: border-color .25s ease, transform .25s ease;
}
.pme-sphere-badge:hover {
    border-color: rgba(147, 197, 253, 0.55);
    transform: translateY(-2px);
}
/* Image icône (28×28, contain) — remplace le emoji précédent */
.pme-sphere-badge__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    /* Blanc uniforme pour ANSSI SVG monochrome ; les .webp restent en couleur.
       Pour un rendu cohérent on ne force pas le blanc — les images
       fournies ont déjà chacune leur propre couleur naturelle. */
}
.pme-sphere-badge__text { color: #F5F7FA; }

/* ── Vignette finale ──────────────────────────────────────── */
.pme-sphere__vignette {
    position: absolute;
    inset: 0;
    z-index: 15;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%,
        transparent 40%,
        rgba(3, 7, 18, 0.85) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .pme-sphere__grid,
    .pme-sphere__rotator,
    .pme-sphere__core { animation: none; }
    .pme-sphere__tilt { transform: none; }
}


/* ============================================================
   RESET text-shadow sur spans à dégradé — voir theme-dark.css.
   Répété ici pour dominer même si theme-dark.css est chargé avant. */
h1 span, h2 span, h3 span,
[class*="title"] span {
    text-shadow: none !important;
}

/* ── CTAs de fin de section (bouton centré, style .btn.btn-primary hérité) ── */
.pme-connect__cta,
.pme-sphere__cta {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
    margin: 40px auto 0;
}
@media (min-width: 768px) {
    .pme-connect__cta { margin-top: 72px; }
    .pme-sphere__cta  { margin-top: 48px; }
}
