/* Raccourcis ATEC : sidebar bureau, barre de contact mobile. */
#bloc-socials { z-index: 9500; }
.atec-contact-spacer { display: none; }
.atec-contact-spacer { display: none; }
#bloc-socials .atec-contact-label { display: none; }
#bloc-socials > a:focus-visible {
    outline: 3px solid var(--color-orange);
    outline-offset: 4px;
}
@media (max-width: 991.98px) {
    :root {
        --atec-contact-clearance: calc(88px + env(safe-area-inset-bottom, 0px));
    }
    html { scroll-padding-bottom: var(--atec-contact-clearance); }
    .atec-contact-spacer {
        display: block;
        height: var(--atec-contact-clearance);
        flex: 0 0 var(--atec-contact-clearance);
    }
    #bloc-socials {
        position: fixed;
        top: auto;
        right: max(8px, env(safe-area-inset-right, 0px));
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        left: max(8px, env(safe-area-inset-left, 0px));
        display: grid;
        grid-template-columns: 1.25fr 1fr 1fr;
        gap: 4px;
        width: auto;
        max-width: 460px;
        margin: 0 auto;
        padding: 4px;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 24px rgba(15, 13, 29, .2);
        text-align: center;
        transform: none;
        z-index: 1050;
    }
    #bloc-socials > br { display: none; }
    #bloc-socials > a,
    #bloc-socials > a:hover {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-width: 0;
        min-height: 62px;
        margin: 0 !important;
        padding: 9px 4px;
        border-radius: 8px;
        background: var(--color-blue);
        color: #fff;
        line-height: 1.2;
        transition: background-color .15s ease-out;
        -webkit-tap-highlight-color: transparent;
    }
    #bloc-socials > a::before { content: none; }
    #bloc-socials > a:first-child,
    #bloc-socials > a:first-child:hover {
        background: var(--color-orange);
        color: var(--color-blue);
    }
    #bloc-socials > a:nth-of-type(2),
    #bloc-socials > a:nth-of-type(2):hover {
        background: #fff;
        color: var(--color-blue);
    }
    #bloc-socials > a:active { background: #182744; }
    #bloc-socials > a:first-child:active { background: #e58b13; }
    #bloc-socials > a:nth-of-type(2):active { background: var(--color-light-gray); }
    #bloc-socials > a:focus-visible {
        outline: 2px solid var(--color-blue);
        outline-offset: -3px;
    }
    #bloc-socials > a:last-of-type:focus-visible { outline-color: #fff; }
    #bloc-socials i { font-size: 21px; line-height: 1; }
    #bloc-socials .atec-contact-label {
        display: block;
        font-size: 12px;
        font-weight: 700;
    }
    body #googleReviews,
    body #googleReviews:hover {
        bottom: calc(var(--atec-contact-clearance) + 8px);
        left: 12px;
        right: auto;
        width: 248px;
        max-width: calc(100% - 80px);
        padding: 12px 40px 12px 14px;
        border-radius: 12px;
        text-align: left;
        font-size: 13px;
        line-height: 1.4;
        transform: none;
        transition: none;
    }
    body #googleReviews .starGoogle { width: 15px; }
    body #googleReviews .closeGoogleReviews {
        top: 2px;
        right: 2px;
        width: 44px;
        height: 44px;
        padding: 0;
        color: var(--color-blue);
        font-size: 24px;
        line-height: 1;
    }
    body #googleReviews .closeGoogleReviews:focus-visible {
        outline: 2px solid var(--color-blue);
        outline-offset: -5px;
    }
    #scrollTop { bottom: calc(var(--atec-contact-clearance) + 12px); right: 12px; }
    body.atec-contact-obscured #bloc-socials,
    body.atec-contact-obscured #googleReviews,
    body.atec-contact-obscured #scrollTop,
    body.atec-contact-editing #bloc-socials,
    body.atec-contact-editing #googleReviews {
        display: none !important;
    }
}
@media (max-width: 991.98px) and (max-height: 500px) {
    body #googleReviews { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    #bloc-socials > a { transition: none; }
}
@media print {
    #bloc-socials, #googleReviews, #scrollTop { display: none !important; }
}
