.pb-floating-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    /* Au repos : discret sur le bord */
    padding-right: 2px;
}

.pb-floating-menu__item {
    border: 0;
    background: rgba(217, 98, 16, 0.82);
    color: #f7f7f7;
    /* ~50 % de l’ancien format (84px) */
    width: 44px;
    min-height: 44px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 12px 0 0 12px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.9;
    transform: scale(1) translateZ(0);
    filter: saturate(0.88);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    outline: none;
    transition:
        transform 0.2s ease,
        width 0.28s ease 0.06s,
        opacity 0.22s ease,
        filter 0.22s ease,
        box-shadow 0.22s ease,
        border-radius 0.2s ease,
        background-color 0.2s ease,
        padding 0.2s ease;
}

.pb-floating-menu__item.is-wide {
    background: rgba(249, 115, 22, 0.82);
}

.pb-floating-menu__item:nth-of-type(2) {
    background: rgba(217, 98, 16, 0.82);
}

.pb-floating-menu__item:nth-of-type(3) {
    background: rgba(193, 84, 8, 0.82);
}

/* Survol / focus clavier : léger « pop » puis ouverture (largeur + libellé) */
@media (hover: hover) and (pointer: fine) {
    .pb-floating-menu__item:hover,
    .pb-floating-menu__item:focus-visible {
        width: 214px;
        min-height: 48px;
        padding: 8px 12px;
        border-radius: 12px 0 0 12px;
        opacity: 1;
        filter: saturate(1);
        transform: scale(1.07) translateX(-2px);
        box-shadow: 0 6px 18px rgba(193, 84, 8, 0.28);
    }

    .pb-floating-menu__item.is-wide:hover,
    .pb-floating-menu__item.is-wide:focus-visible {
        background: #f97316;
    }

    .pb-floating-menu__item:nth-of-type(2):hover,
    .pb-floating-menu__item:nth-of-type(2):focus-visible {
        background: #d96210;
    }

    .pb-floating-menu__item:nth-of-type(3):hover,
    .pb-floating-menu__item:nth-of-type(3):focus-visible {
        background: #c15408;
    }

    .pb-floating-menu__item:hover .pb-floating-menu__label,
    .pb-floating-menu__item:focus-visible .pb-floating-menu__label {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.18s ease 0.1s, transform 0.22s ease 0.1s;
    }
}

/* Clavier sans souris : même ouverture au focus */
@media (hover: none) {
    .pb-floating-menu__item:focus-visible {
        width: 214px;
        min-height: 48px;
        padding: 8px 12px;
        opacity: 1;
        filter: saturate(1);
        transform: scale(1.04);
        box-shadow: 0 6px 18px rgba(193, 84, 8, 0.28);
    }

    .pb-floating-menu__item:focus-visible .pb-floating-menu__label {
        opacity: 1;
        transform: translateX(0);
    }
}

.pb-floating-menu__icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}

.pb-floating-menu__icon svg {
    width: 100%;
    height: 100%;
}

.pb-floating-menu__label {
    color: #f7f7f7;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.15s ease, transform 0.2s ease;
    pointer-events: none;
}

.pb-floating-modal {
    position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10000;
    transition: opacity .28s ease, visibility .28s ease;
}

.pb-floating-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pb-floating-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, .55);
    opacity: 0;
    transition: opacity .28s ease;
}

.pb-floating-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    opacity: 0;
    transform: translateY(20px) scale(.985);
    transition: opacity .3s ease, transform .3s ease;
}

.pb-floating-modal.is-open .pb-floating-modal__overlay {
    opacity: 1;
}

.pb-floating-modal.is-open .pb-floating-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pb-floating-modal__title {
    margin: 0 32px 14px 0;
    font-size: 28px;
    line-height: 1.2;
}

.pb-floating-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: #1f1f1f;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.pb-floating-modal__close:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}

.pb-floating-modal .contact-wrapper {
    box-shadow: none;
    padding: 0;
}

.pb-floating-modal .contact-wrapper .subtitle,
.pb-floating-modal .contact-wrapper > h2 {
    display: none;
}

.pb-form-success,
.pb-form-error {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    animation: pbFadeSlideIn .24s ease both;
}

.pb-form-success {
    background: #edfdf3;
    color: #106a35;
    border: 1px solid #bfe7cd;
}

.pb-form-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

.pb-form-toast {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 10020;
    max-width: min(420px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 10px;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    transform: translateY(-10px);
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.pb-form-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.pb-form-toast.is-success {
    background: linear-gradient(120deg, #17803f 0%, #0f9b4f 100%);
}

.pb-form-toast.is-error {
    background: linear-gradient(120deg, #be123c 0%, #e11d48 100%);
}

@keyframes pbFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pb-floating-contact {
    display: flex;
    align-items: stretch;
    gap: 22px;
}

.pb-floating-contact__form-col {
    flex: 1.15 1 0;
    min-width: 0;
}

.pb-floating-contact__subtitle {
    margin: -2px 0 18px;
    color: #4a4a4a;
}

.pb-floating-modal--contact .pb-floating-modal__dialog {
    width: min(1080px, calc(100vw - 24px));
}

.pb-floating-modal--contact .pb-form {
    margin-bottom: 0;
}

.pb-floating-modal--devis .pb-floating-modal__dialog {
    width: min(1080px, calc(100vw - 24px));
}

.pb-floating-modal--devis .pb-form {
    margin-bottom: 0;
}

.pb-floating-modal--rappel .pb-floating-modal__dialog {
    width: min(1080px, calc(100vw - 24px));
}

.pb-floating-modal--rappel .pb-form {
    margin-bottom: 0;
}

.pb-floating-devis {
    display: flex;
    align-items: stretch;
    gap: 22px;
}

.pb-floating-devis__form-col {
    flex: 1.15 1 0;
    min-width: 0;
}

.pb-floating-devis__hero-col {
    flex: .85 1 0;
    min-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.pb-floating-devis__hero {
    min-height: 220px;
}

.pb-floating-devis__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.pb-floating-devis__note {
    padding: 16px 18px;
    background: linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
    color: #202020;
    font-size: 15px;
    line-height: 1.45;
}

.pb-floating-devis__note p {
    margin: 0 0 10px;
}

.pb-floating-rappel {
    display: flex;
    align-items: stretch;
    gap: 22px;
}

.pb-floating-rappel__form-col {
    flex: 1.15 1 0;
    min-width: 0;
}

.pb-floating-rappel__hero-col {
    flex: .85 1 0;
    min-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

.pb-floating-rappel__hero {
    min-height: 220px;
}

.pb-floating-rappel__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.pb-floating-rappel__note {
    padding: 16px 18px;
    background: linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
    color: #202020;
    font-size: 15px;
    line-height: 1.45;
}

.pb-floating-rappel__note p {
    margin: 0 0 10px;
}

.pb-floating-rappel__note a {
    color: #1f1f1f;
    text-decoration: none;
}

.pb-floating-rappel__note a:hover {
    text-decoration: underline;
}

.pb-floating-contact__hero-col {
    flex: .85 1 0;
    min-width: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pb-floating-contact__hero {
    min-height: 220px;
    background: #f0f0f0;
}

.pb-floating-contact__hero-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.pb-floating-contact__info {
    padding: 16px 18px;
    background: linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
    color: #202020;
    font-size: 15px;
    line-height: 1.45;
    flex: 1 1 auto;
}

.pb-floating-contact__info-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.pb-floating-contact__info p {
    margin: 0 0 10px;
}

.pb-floating-contact__info a {
    color: #1f1f1f;
    text-decoration: none;
}

.pb-floating-contact__info a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .pb-floating-menu {
        right: 6px;
        gap: 5px;
    }

    .pb-floating-menu__item {
        width: 40px;
        min-height: 40px;
        padding: 5px 6px;
        gap: 6px;
        border-radius: 10px 0 0 10px;
        opacity: 0.88;
    }

    .pb-floating-menu__icon {
        width: 22px;
        height: 22px;
    }

    .pb-floating-menu__label {
        font-size: 14px;
    }
}

@media (max-width: 991px) and (hover: hover) and (pointer: fine) {
    .pb-floating-menu__item:hover,
    .pb-floating-menu__item:focus-visible {
        width: min(200px, calc(100vw - 48px));
        min-height: 44px;
        padding: 7px 10px;
    }
}

@media (max-width: 991px) and (hover: none) {
    .pb-floating-menu__item:focus-visible {
        width: min(200px, calc(100vw - 48px));
        min-height: 44px;
        padding: 7px 10px;
    }
}

@media (max-width: 480px) {
    .pb-floating-menu__item {
        width: 36px;
        min-height: 36px;
        padding: 4px 5px;
    }

    .pb-floating-menu__icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) and (hover: hover) and (pointer: fine) {
    .pb-floating-menu__item:hover,
    .pb-floating-menu__item:focus-visible {
        width: min(188px, calc(100vw - 40px));
    }
}

@media (max-width: 480px) and (hover: none) {
    .pb-floating-menu__item:focus-visible {
        width: min(188px, calc(100vw - 40px));
    }
}

@media (max-width: 760px) {
    .pb-floating-contact {
        flex-direction: column;
        gap: 14px;
    }

    .pb-floating-contact__hero-col {
        min-width: 0;
    }

    .pb-floating-contact__hero {
        min-height: 160px;
    }

    .pb-floating-devis {
        flex-direction: column;
        gap: 14px;
    }

    .pb-floating-devis__hero-col {
        min-width: 0;
    }

    .pb-floating-devis__hero {
        min-height: 160px;
    }

    .pb-floating-rappel {
        flex-direction: column;
        gap: 14px;
    }

    .pb-floating-rappel__hero-col {
        min-width: 0;
    }

    .pb-floating-rappel__hero {
        min-height: 160px;
    }
}
