/* ===== Structure générale ===== */
.collab-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 10px;
}

.collab-wrapper.quote-left,
.collab-wrapper.quote-right {
    flex-direction: row;
    justify-content: center;
}

.collab-wrapper.quote-left {
    flex-direction: row-reverse;
}

.quote-left .collab-quote,
.quote-right .collab-quote {
    align-self: center;
}

.quote-above .collab-quote,
.quote-below .collab-quote {
    text-align: center;
    width: 100%;
}

/* === Citation === */
.collab-quote {
    font-style: italic;
    font-size: 1em;
    opacity: 0.9;
    max-width: 250px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: inherit;
}

.collab-quote .quote-text {
    display: block;
    margin: 0 0 5px 0;
}

.collab-quote .quote-author {
    display: block;
    font-style: normal;
    font-size: 0.8em;
    text-align: right;
    margin-top: 5px;
    opacity: 0.7;
    width: 100%;
}

/* === Wrapper d'icône before/after === */
.quote-icon-wrapper {
    display: flex;
    width: 100%;
    margin: 0 0 5px 0;
}
.collab-quote-icon.before {
    margin-right: 5px;
}

.collab-quote-icon.after {
    margin-left: 5px;
}
.quote-icon-wrapper.before {
    display: flex;
    width: 100%;
}

.quote-icon-wrapper.after {
    display: flex;
    width: 100%;
}

.quote-icon-wrapper.before.align-left {
    justify-content: flex-start;
}

.quote-icon-wrapper.before.align-center {
    justify-content: center;
}

.quote-icon-wrapper.before.align-right {
    justify-content: flex-end;
}

.quote-icon-wrapper.after.align-left {
    justify-content: flex-start;
}

.quote-icon-wrapper.after.align-center {
    justify-content: center;
}

.quote-icon-wrapper.after.align-right {
    justify-content: flex-end;
}

.quote-icon-wrapper.align-left {
    justify-content: flex-start;
}

.quote-icon-wrapper.align-center {
    justify-content: center;
}

.quote-icon-wrapper.align-right {
    justify-content: flex-end;
}

.collab-quote-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.collab-quote-icon * {
    color: inherit !important;
    fill: currentColor !important;
}


.collab-quote-icon svg,
.collab-quote-icon i {
    width: 100%;
    height: 100%;
    display: block;
    color: inherit;
    fill: currentColor;
}

/* === Icônes générales === */
.collab-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.collab-icons a svg,
.collab-icons a i {
    color: inherit;
    fill: currentColor;
    width: 24px;
    height: 24px;
}

.collab-icons a * {
    color: inherit !important;
    fill: currentColor !important;
}

/* === Styles cartes === */
.collab-card.style1 .collab-overlay,
.collab-card.style2 .collab-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.collab-card.style1:hover .collab-overlay,
.collab-card.style2:hover .collab-overlay {
    opacity: 1;
}

.collab-card.style1 .collab-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collab-card.style2 .collab-icons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.collab-card.style3 {
    overflow: visible;
}

.collab-card.style3 .collab-overlay {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.collab-card.style3:hover .collab-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.collab-card.style3 .collab-icons {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

/* === Thumb & overlay === */
.collab-thumb {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background-color: #ddd;
}

.thumb-img,
.thumb-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    transition: opacity 0.5s ease;
}

.thumb-hover {
    opacity: 0;
}

.collab-card:hover .thumb-hover {
    opacity: 1;
}

.collab-card:hover .thumb-img {
    opacity: 0;
}

.collab-thumb.rounded {
    border-radius: 15px;
    overflow: hidden;
}

.collab-thumb.circle {
    border-radius: 50%;
    overflow: hidden;
}

/* === Infos === */
.collab-info {
    margin-top: 15px;
    text-align: center;
}

.collab-name {
    margin-bottom: 5px;
}

.collab-position {
    margin-bottom: 3px;
}

.collab-desc {
    margin-top: 10px;
    font-size: 0.9em;
}

/* === Responsive === */
@media screen and (max-width: 767px) {
    .collab-wrapper.quote-left,
    .collab-wrapper.quote-right {
        flex-direction: column;
    }
}

/* === filtres === */

.filter-style-grayscale .collab-thumb .thumb-img,
.filter-style-grayscale .collab-thumb .thumb-hover {
    filter: grayscale(100%);
}

.filter-style-sepia .collab-thumb .thumb-img,
.filter-style-sepia .collab-thumb .thumb-hover {
    filter: sepia(100%);
}

.filter-style-bright .collab-thumb .thumb-img,
.filter-style-bright .collab-thumb .thumb-hover {
    filter: brightness(1.2);
}

.filter-style-contrast .collab-thumb .thumb-img,
.filter-style-contrast .collab-thumb .thumb-hover {
    filter: contrast(1.5);
}

.filter-style-blurred .collab-thumb .thumb-img,
.filter-style-blurred .collab-thumb .thumb-hover {
    filter: blur(2px);
}
