/* ============================================================
   iccblocinfosticky — Bouton sticky + panneau latéral à onglets
   ============================================================ */

/* -- Bouton trigger ---------------------------------------- */
.icc-sticky-trigger {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 56px;
    height: 56px;
    border-radius: 12px 0 0 12px;
    background: #fdc82f;
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    box-shadow: -3px 0 12px rgba(0,0,0,.18);
    transition: width .2s ease, box-shadow .2s;
    padding: 0 0 0 14px;
    overflow: hidden;
}

.icc-sticky-trigger:hover,
.icc-sticky-trigger:focus {
    width: 72px;
    box-shadow: -5px 0 18px rgba(0,0,0,.25);
    outline: none;
}

.icc-sticky-trigger[aria-expanded="true"] {
    width: 72px;
}

.icc-sticky-trigger__img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

/* -- Overlay ----------------------------------------------- */
.icc-sticky-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999990;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .25s;
}

.icc-sticky-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* -- Panneau ----------------------------------------------- */
.icc-sticky-panel {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    z-index: 99999999;
    width: 320px;
    max-width: calc(100vw - 24px);
    max-height: 80vh;
    background: #fff;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 24px rgba(0,0,0,.18);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.icc-sticky-panel.is-open {
    transform: translateY(-50%) translateX(0);
}

/* -- Bouton fermer ----------------------------------------- */
.icc-sticky-panel__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: color .15s, background .15s;
    z-index: 1;
}

.icc-sticky-panel__close:hover,
.icc-sticky-panel__close:focus {
    color: #1a1a1a;
    background: #f5f5f5;
    outline: none;
}

/* -- Corps (scrollable) ------------------------------------ */
.icc-sticky-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 24px;
    display: none;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

.icc-sticky-panel__body.is-active {
    display: flex;
}

/* -- Image panneau ----------------------------------------- */
.icc-sticky-panel__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.icc-sticky-panel__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding-right: 28px;
    line-height: 1.3;
}

.icc-sticky-panel__text {
    font-size: .82rem;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

.icc-sticky-panel__text p {
    margin: 0 0 8px;
}

.icc-sticky-panel__text p:last-child {
    margin-bottom: 0;
}

.icc-sticky-panel__text ul,
.icc-sticky-panel__text ol {
    margin: 0 0 8px;
    padding-left: 20px;
}

.icc-sticky-panel__text li {
    display: list-item;
    margin-bottom: 4px;
}

.icc-sticky-panel__text ul li {
    list-style-type: disc;
}

.icc-sticky-panel__text ol li {
    list-style-type: decimal;
}

.icc-sticky-panel__text a {
    color: #B71234;
    text-decoration: none;
}

.icc-sticky-panel__text a:hover,
.icc-sticky-panel__text a:focus {
    color: #B71234;
    text-decoration: underline;
}

/* -- Bouton CTA -------------------------------------------- */
.icc-sticky-panel__btn {
    display: block;
    background: #fdc82f;
    color: #1a1a1a;
    font-weight: 600;
    font-size: .9rem;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: background .2s, color .2s;
}

.icc-sticky-panel__btn:hover,
.icc-sticky-panel__btn:focus {
    background: #e6b400;
    color: #1a1a1a;
    text-decoration: none;
    outline: none;
}

/* -- Barre d'onglets --------------------------------------- */
.icc-sticky-tabs {
    display: flex;
    flex-shrink: 0;
    border-top: 1px solid #e8e8e8;
    background: #f9f9f9;
    border-radius: 0 0 0 12px;
    overflow: hidden;
}

.icc-sticky-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    background: none;
    border: none;
    border-right: 1px solid #e8e8e8;
    cursor: pointer;
    transition: background .15s;
    min-height: 58px;
}

.icc-sticky-tab-btn:last-child {
    border-right: none;
}

.icc-sticky-tab-btn:hover {
    background: #f0f0f0;
}

.icc-sticky-tab-btn:focus {
    outline: none;
}

.icc-sticky-tab-btn.is-active {
    background: #fff;
    border-bottom: 2px solid #fdc82f;
}

/* Icônes d'onglet */
.icc-tab-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.icc-tab-label {
    font-size: .65rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.2;
    text-align: center;
}

.icc-sticky-tab-btn.is-active .icc-tab-label {
    color: #1a1a1a;
}

/* -- Mobile ------------------------------------------------ */
@media (max-width: 480px) {
    .icc-sticky-panel {
        width: 85vw;
        max-height: 70vh;
    }
}
