/* =========================================================
   Accordéon Horizontal 591ed760
   ========================================================= */

.ha-591ed760-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.ha-591ed760-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    box-sizing: border-box;
    z-index: 1;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    outline: none;
    transition: flex-grow 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Expansion au survol */
.ha-591ed760-panel:hover,
.ha-591ed760-panel:focus-within {
    flex-grow: 2.5; /* Valeur de repli, remplacee par le controle Elementor */
}

/* Superposition */
.ha-591ed760-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: var(--ha-op, 0.82);
    transition: opacity 0.5s ease;
}

.ha-591ed760-panel:hover .ha-591ed760-overlay,
.ha-591ed760-panel:focus-within .ha-591ed760-overlay {
    opacity: var(--ha-hop, 0.62);
}

/* Contenu */
.ha-591ed760-content-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.ha-591ed760-text-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.ha-591ed760-eyebrow,
.ha-591ed760-title,
.ha-591ed760-description,
.ha-591ed760-link-label {
    margin: 0;
    padding: 0;
    color: inherit;
}

.ha-591ed760-title {
    margin-top: 5px;
    margin-bottom: 5px;
}

.ha-591ed760-description {
    margin-bottom: 10px;
    opacity: 0.9;
}

.ha-591ed760-link-label {
    align-self: flex-start;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---------- Apparence bouton ----------
   Le panneau entier est deja un lien : ce bouton est donc un element
   visuel, pas un second lien. Imbriquer un <a> dans un <a> serait
   invalide et casserait le clic sur certains navigateurs. */
.ha-591ed760-link--button .ha-591ed760-link-label {
    padding: 12px 24px;
    background-color: #ffffff;
    color: #111111;
    border-style: solid;
    border-width: 0;
    border-color: transparent;
    border-radius: 4px;
    line-height: 1;
    text-align: center;
}

/* Révélation au survol */
.ha-591ed760-reveal-yes .ha-591ed760-link-label {
    opacity: 0;
    transform: translateY(15px);
}

.ha-591ed760-panel:hover .ha-591ed760-link-label,
.ha-591ed760-panel:focus-within .ha-591ed760-link-label {
    opacity: 1;
    transform: translateY(0);
}

/* Focus clavier */
.ha-591ed760-panel:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .ha-591ed760-panel,
    .ha-591ed760-overlay,
    .ha-591ed760-link-label {
        transition: none !important;
    }
}