/*
====================================================================
 ROYAL TCLB INTERACTIVE V2.2 — VERSION STATIQUE
 - balle fixe, sans déplacement ni agrandissement ;
 - icônes toujours visibles ;
 - chaque lien couvre toute la zone de l'icône et de son libellé.
====================================================================
*/

.rtclb-v2 {
    --rtclb-navy: #09264c;
    --rtclb-orange: #f05a16;
    --rtclb-blue: #0e66c2;
    --rtclb-gold: #c69b42;

    --rtclb-stage-width: 1040px;
    --rtclb-stage-height: 780px;
    --rtclb-ball-size: 500px;

    --rtclb-icon-size: 34px;
    --rtclb-icon-circle-size: 88px;
    --rtclb-title-size: 18px;
    --rtclb-subtitle-size: 13px;
    --rtclb-title-weight: 500;
    --rtclb-subtitle-weight: 500;
    --rtclb-access-width: 194px;
    --rtclb-ball-shadow: 0 30px 34px rgba(9,38,76,.23);

    width: 100%;
    padding: 34px 12px 46px;
    overflow: visible;
    box-sizing: border-box;
    font-family: var(--rtclb-font, "Montserrat", "Poppins", "Avenir Next", Arial, sans-serif);
    background:
        radial-gradient(circle at 24% 48%, rgba(240,90,22,.07), transparent 34%),
        radial-gradient(circle at 76% 48%, rgba(14,102,194,.07), transparent 34%);
}

.rtclb-v2 *,
.rtclb-v2 *::before,
.rtclb-v2 *::after { box-sizing: border-box; }

.rtclb-v2 .rtclb-stage {
    position: relative;
    width: min(96vw, var(--rtclb-stage-width));
    height: var(--rtclb-stage-height);
    margin: 0 auto;
}

/* Balle fixe placée derrière les accès. */
.rtclb-v2 .rtclb-ball-shell {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: min(49vw, var(--rtclb-ball-size));
    height: min(49vw, var(--rtclb-ball-size));
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.rtclb-v2 .rtclb-ball {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(var(--rtclb-ball-shadow));
    pointer-events: none;
}

.rtclb-v2 .rtclb-ball::before,
.rtclb-v2 .rtclb-ball::after,
.rtclb-v2 .rtclb-ball-shell::before,
.rtclb-v2 .rtclb-ball-shell::after {
    content: none !important;
    display: none !important;
}

.rtclb-v2 .rtclb-ball img {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/*
 * Toute la balise <a> constitue la zone cliquable : cercle, SVG,
 * espace autour de l'icône et libellé. Le z-index la place devant la balle.
 */
.rtclb-v2 .rtclb-access {
    position: absolute;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: var(--rtclb-access-width);
    min-width: var(--rtclb-access-width);
    min-height: calc(var(--rtclb-icon-circle-size) + 58px);
    padding: 8px 6px 12px;
    text-align: center;
    color: var(--title-color);
    text-decoration: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.rtclb-v2 .rtclb-access-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--rtclb-icon-circle-size);
    height: var(--rtclb-icon-circle-size);
    flex: 0 0 var(--rtclb-icon-circle-size);
    border: 1px solid var(--icon-border);
    border-radius: 50%;
    background: var(--icon-bg);
    backdrop-filter: blur(14px) saturate(145%);
    -webkit-backdrop-filter: blur(14px) saturate(145%);
    box-shadow: 0 15px 32px rgba(9,38,76,.14), inset 0 1px 0 rgba(255,255,255,.78), inset 0 0 0 8px rgba(255,255,255,.28);
    color: var(--icon-color);
    pointer-events: none;
    transition: transform .20s ease, box-shadow .20s ease, background .20s ease;
}

.rtclb-v2 .rtclb-access-icon svg {
    width: var(--rtclb-icon-size);
    height: var(--rtclb-icon-size);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.rtclb-v2 .rtclb-access-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    line-height: 1.22;
    white-space: normal;
    opacity: 1;
    transform: none;
    pointer-events: none;
}

.rtclb-v2 .rtclb-access-copy strong {
    color: var(--title-color);
    font-family: var(--rtclb-font);
    font-size: var(--rtclb-title-size);
    font-weight: var(--rtclb-title-weight);
    letter-spacing: -.01em;
}

.rtclb-v2 .rtclb-access-copy small {
    margin-top: 5px;
    color: var(--text-color);
    font-family: var(--rtclb-font);
    font-size: var(--rtclb-subtitle-size);
    font-weight: var(--rtclb-subtitle-weight);
}

.rtclb-v2 .rtclb-access:hover,
.rtclb-v2 .rtclb-access:focus-visible {
    color: var(--title-color);
    text-decoration: none;
    outline: none;
}

.rtclb-v2 .rtclb-access:focus-visible {
    border-radius: 18px;
    box-shadow: 0 0 0 4px rgba(14,102,194,.30);
}

.rtclb-v2 .rtclb-access:hover .rtclb-access-icon,
.rtclb-v2 .rtclb-access:focus-visible .rtclb-access-icon {
    transform: translateY(-3px) scale(1.045);
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 38px rgba(9,38,76,.20), 0 0 0 7px rgba(255,255,255,.30);
}

/* Positions définitives : toujours déployées. */
.rtclb-v2 .rtclb-top-left     { top:23%; left:26%; }
.rtclb-v2 .rtclb-top-right    { top:23%; left:74%; }
.rtclb-v2 .rtclb-left         { top:49%; left:20%; }
.rtclb-v2 .rtclb-right        { top:49%; left:80%; }
.rtclb-v2 .rtclb-bottom-left  { top:76%; left:26%; }
.rtclb-v2 .rtclb-bottom-right { top:76%; left:74%; }
.rtclb-v2 .rtclb-bottom       { top:90%; left:50%; }
.rtclb-v2 .rtclb-top          { top:10%; left:50%; }
.rtclb-v2 .rtclb-bottom-far-right { top:94%; left:64%; }

/* Mobile : pas de balle, accès en grille et toujours entièrement cliquables. */
@media (max-width: 820px) {
    .rtclb-v2 {
        --rtclb-title-size: 16px;
        --rtclb-subtitle-size: 12px;
        --rtclb-icon-size: 29px;
        --rtclb-icon-circle-size: 72px;
        padding: 26px 12px 34px;
    }

    .rtclb-v2 .rtclb-stage {
        width: min(100%, 760px);
        height: auto;
        min-height: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 26px 14px;
        padding: 12px 0;
    }

    .rtclb-v2 .rtclb-ball-shell { display: none !important; }

    .rtclb-v2 .rtclb-access,
    .rtclb-v2 .rtclb-top-left,
    .rtclb-v2 .rtclb-top-right,
    .rtclb-v2 .rtclb-left,
    .rtclb-v2 .rtclb-right,
    .rtclb-v2 .rtclb-bottom-left,
    .rtclb-v2 .rtclb-bottom-right,
    .rtclb-v2 .rtclb-bottom,
    .rtclb-v2 .rtclb-bottom-far-right,
    .rtclb-v2 .rtclb-top {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        min-height: calc(var(--rtclb-icon-circle-size) + 58px);
        padding: 8px 4px 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .rtclb-v2 .rtclb-access:hover .rtclb-access-icon,
    .rtclb-v2 .rtclb-access:focus-visible .rtclb-access-icon {
        transform: none;
    }
}

@media (max-width: 480px) {
    .rtclb-v2 {
        --rtclb-title-size: 15px;
        --rtclb-subtitle-size: 11px;
        --rtclb-icon-size: 26px;
        --rtclb-icon-circle-size: 64px;
    }

    .rtclb-v2 .rtclb-stage {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 22px 8px;
    }
}

@media (max-width: 340px) {
    .rtclb-v2 .rtclb-stage { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .rtclb-v2 .rtclb-access-icon { transition: none; }
}
