/* ACF Text Expander Widget Styles */

.acf-text-expander-wrapper {
    position: relative;
    width: 100%;
}

.acf-expander-text {
    line-height: 1.6;
    margin-bottom: 0;
}

.acf-expander-text a {
    text-decoration: underline;
    transition: color 0.3s ease;
}

.acf-expander-text a:hover {
    text-decoration: none;
}

.acf-visible-text p:last-child {
    margin-bottom: 0;
}

.acf-hidden-text {
    overflow: hidden;
}

.acf-hidden-text p:first-child {
    margin-top: 0;
}

.acf-expander-button-wrapper {
    margin-top: 15px;
}

.acf-expander-button {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-decoration: none;
    line-height: 1.5;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.acf-expander-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.acf-expander-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.acf-expander-button:focus {
    outline: 2px solid rgba(0, 115, 170, 0.5);
    outline-offset: 2px;
}

/* Animation pour le texte qui se dévoile */
.acf-hidden-text {
    animation-duration: 0.4s;
    animation-timing-function: ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .acf-expander-button {
        width: 100%;
        text-align: center;
    }
    
    .acf-expander-button-wrapper {
        text-align: center !important;
    }
}

/* Support pour l'éditeur Elementor */
.elementor-editor-active .acf-expander-button {
    pointer-events: auto;
}
