/* IA SHARE 365 - Frontend Styles */

/* .iashare365-container {
    font-family: inherit;
    z-index: 9999;
}

.iashare365-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.iashare365-btn {
    font-size: 15px;
    font-family: inherit;
    border: none;
    outline: none;
    box-shadow: none;
    transition: all 1s ease;
}

.iashare365-btn:focus {
    outline: 2px solid #0073aa;
}

.iashare365-btn .iashare365-icon {
    padding-right: 6px;
    padding-left: 6px;
}

.iashare365-btn .iashare365-text {
    font-weight: 500;
}

.iashare365-btn .iashare365-text-hover {
    display: none;
}

.iashare365-btn:hover .iashare365-text-hover {
    display: inline-block;
}

.iashare365-btn .iashare365-popover {
    display: none;
}

.iashare365-btn:hover .iashare365-popover {
    display: block;
}



/* 
.iashare365-animated .iashare365-btn {
    width: 44px;
    height: 44px;
}

.iashare365-style-background .iashare365-btn {
    color: #fff;
     width: 44px;
    height: 44px; 
    transition: all 0.3s ease;
}

.iashare365-style-background .iashare365-btn:hover {
    filter: brightness(1.1);
}

.iashare365-style-overlay .iashare365-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}  */



/* .iashare365-style-overlay .iashare365-btn {
    background: transparent;
    border: 1px solid currentColor;
    width: 44px;
    height: 44px; 
} */

/* --- BASE DES BOUTONS --- */


/* --- LOGIQUE DE L'ANIMATION (L'option "Animation") --- */

.iashare365-container {
    margin: 20px 0;
    width: 100%;
}

.iashare365-title {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1.1em;
}

/* BASE BOUTON */
.iashare365-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    /* global transition for hover effects */
    transition: transform 1s ease, box-shadow 1s ease;
    white-space: nowrap;
    color: #fff;
    overflow: visible;
    /* CRITIQUE pour le Popover */
    /* éviter que le bouton ne change de taille ou ne soit repoussé
       lorsqu'on le survole dans une mise en page flex-col wrap */
    flex: 0 0 auto;
}

.iashare365-btn:hover {
    transform: translateY(-3px);
    z-index: 99;
}

/* lorsque l'option animation est activée, on anime aussi
   la largeur minimale du bouton afin d'accompagner l'apparition
   du texte et donner un effet d'ouverture/fermeture fluide */
.iashare365-animated .iashare365-btn {
    min-width: 40px;
    /* la largeur s'adapte au texte ajouté, mais on anime le min-width */
    transition: min-width 1s ease, background 0.3s ease, color 0.3s ease;
}

.iashare365-animated .iashare365-btn:hover {
    min-width: 120px;
}

/* LOGIQUE ACCORDÉON */
.iashare365-animated .iashare365-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    /* Overflow uniquement ici */
    transition: max-width 1s ease-in, opacity 0.9s ease-in;
    display: inline-block;
}

.iashare365-animated .iashare365-btn:hover .iashare365-text {
    max-width: 180px;
    opacity: 1;
    margin-left: 10px;
    transition: max-width 1s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-out;
}

/* Fermeture des voisins quand on survole le groupe */
.iashare365-animated:hover .iashare365-btn:not(:hover) .iashare365-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
}

.iashare365-animated:hover .iashare365-btn.is-unfolded .iashare365-text {
    max-width: 180px;
    opacity: 1 !important;
    margin-left: 10px;
}

/* POPOVER */
.iashare365-popover {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    width: 200px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: all 1s ease;
    pointer-events: none;
    white-space: normal;
}

.iashare365-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.iashare365-btn:hover .iashare365-popover {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.iashare365-border-rounded {
    border-radius: 8px;
}

.iashare365-border-circle {
    border-radius: 50px;
}

/* @media (max-width: 768px) {

    .iashare365-position-right,
    .iashare365-position-left {
        position: static;
        transform: none;
        flex-direction: row;
    }
} */