.m-hub-solutions {
    --hub-dot-size: 18px;
    --hub-pulse-size: 36px;
    --hub-dot-color: var(--wp--preset--color--primary);
    --hub-tooltip-bg: #fff;
    --hub-tooltip-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    --hub-tooltip-radius: 10px;
    --hub-tooltip-max-w: 280px;
}

.m-hub-solutions__titre {
    text-align: center;
    margin-bottom: 1.5rem;
}

.m-hub-solutions__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.m-hub-solutions__titre--accent {
    color: var(--wp--preset--color--primary);
}

.m-hub-solutions__surtitre {
    display: block;
    font-size: 0.85rem;
    font-weight: var(--wp--custom--font-weight--semi-bold);
    color: var(--wp--preset--color--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.m-hub-solutions__container {
    max-width: 1200px;
    margin: 0 auto;
}

.m-hub-solutions__image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    line-height: 0;
}

.m-hub-solutions__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Hotspot — point positionné en % */
/* Hotspot — point positionné en % */
.m-hub-solutions__hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
}

.m-hub-solutions__hotspot:hover,
.m-hub-solutions__hotspot:focus {
    z-index: 20;
}

/* Icône info (cercle vert + i) */
.m-hub-solutions__hotspot__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--wp--preset--color--secondary);
    border-radius: var(--wp--custom--radius--circle);
    box-shadow: 0 2px 8px rgba(0, 184, 96, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 3px solid var(--wp--preset--color--secondary-accent);
}

.m-hub-solutions__hotspot__dot svg {
    width: 20px;
    height: 20px;
}

.m-hub-solutions__hotspot:hover .m-hub-solutions__hotspot__dot,
.m-hub-solutions__hotspot:focus .m-hub-solutions__hotspot__dot {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 184, 96, 0.4);
}

/* Supprime le pulse */
.m-hub-solutions__hotspot__pulse {
    display: none;
}

/* Tooltip — fond vert clair + bordure blanche */
.m-hub-solutions__tooltip {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--wp--preset--color--secondary-accent);
    border: 4px solid var(--wp--preset--color--base);
    border-radius: var(--wp--custom--radius--sm);
    box-shadow: 4px 8px 30px rgba(31, 73, 125, 0.2);
    padding: 1.25rem 1.5rem;
    width: min(90vw, 400px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(8px);
}

.m-hub-solutions__tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 50px;
}

/* Flèche du tooltip */
.m-hub-solutions__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 12px solid transparent;
    border-top-color: var(--wp--preset--color--base);
}

/* Affichage au hover/focus */
.m-hub-solutions__hotspot:hover .m-hub-solutions__tooltip,
.m-hub-solutions__hotspot:focus .m-hub-solutions__tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    cursor: default;
}

/* Layout interne du tooltip : icône à gauche */
.m-hub-solutions__tooltip__inner {
    display: flex;
    gap: var(--wp--custom--gap--sm);
    align-items: flex-start;
}

/* Panneau mobile : masqué par défaut (desktop utilise le tooltip flottant) */
.m-hub-solutions__panel {
    display: none;
    z-index: 1000;
}

.m-hub-solutions__tooltip__icone-wrap {
    background: var(--wp--preset--color--secondary-darken);
    border-radius: 2px;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-hub-solutions__tooltip__icone {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.m-hub-solutions__tooltip__texte {
    margin-top: 5px;
}

.m-hub-solutions__tooltip__label {
    display: block;
    font-size: 1.15rem;
    font-weight: var(--wp--custom--font-weight--bold);
    color: var(--wp--preset--color--secondary-darken);
    margin-bottom: 0.3rem;
}

.m-hub-solutions__tooltip__label--lien {
    text-decoration: none;
    color: var(--wp--preset--color--secondary-darken);
    transition: var(--wp--custom--transition--fast);
}

.m-hub-solutions__tooltip__label--lien:hover,
.m-hub-solutions__tooltip__label--lien:focus-visible {
    text-decoration: underline;
    cursor: pointer;
}

a.m-hub-solutions__tooltip__icone-wrap {
    cursor: pointer;
    transition: var(--wp--custom--transition--fast);
}

a.m-hub-solutions__tooltip__icone-wrap:hover,
a.m-hub-solutions__tooltip__icone-wrap:focus-visible {
    opacity: 0.85;
}

.m-hub-solutions__tooltip__contenu {
    font-size: 0.85rem;
    color: var(--wp--preset--color--tertiary);
    line-height: 1.5;

    p {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .m-hub-solutions {
        --hub-dot-size: 14px;
        --hub-pulse-size: 28px;
        --hub-tooltip-max-w: 220px;
    }

    /* On désactive complètement le tooltip flottant en mobile */
    .m-hub-solutions__tooltip {
        display: none !important;
    }

    /* Le hotspot actif : on met son point en avant visuellement */
    .m-hub-solutions__hotspot.is-active .m-hub-solutions__hotspot__dot {
        transform: scale(1.15);
        box-shadow: 0 4px 16px rgba(0, 184, 96, 0.5);
    }

    /* Panneau fixe affiché sous l'image, un seul contenu à la fois */
    .m-hub-solutions__panel {
        display: block;
        position: relative;
        background: var(--wp--preset--color--secondary-accent);
        border: 4px solid var(--wp--preset--color--base);
        border-radius: var(--wp--custom--radius--sm);
        box-shadow: 4px 8px 30px rgba(31, 73, 125, 0.2);
        padding: 1.25rem 1.5rem;
    }

    .m-hub-solutions__panel[hidden] {
        display: none;
    }

    .m-hub-solutions__panel__close {
        position: absolute;
        top: 0.5rem;
        right: 0.75rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        line-height: 1;
        color: var(--wp--preset--color--secondary-darken);
        cursor: pointer;
        padding: 0;
    }

    .m-hub-solutions__panel__content {
        display: flex;
        gap: var(--wp--custom--gap--sm);
        align-items: flex-start;
    }
}

/* Décorations */
.m-hub-solutions__image-wrapper {
    position: relative;
    overflow: visible;
}

/* Tirets SVG */
.m-hub-solutions__deco-tirets {
    position: absolute;
    top: 78%;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.m-hub-solutions__deco-tirets img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ellipse blur — pure CSS */
.m-hub-solutions__deco-ellipse {
    position: absolute;
    top: 125%;
    right: 0;
    width: 400px;
    height: 400px;
    border-radius: var(--wp--custom--radius--circle);
    background: radial-gradient(circle, rgba(0, 184, 96, 0.25) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}