/**
 * Bandeau Partager (pages détail : actualités, formations, etc.)
 * Marquage : pages/components/detail-page-share.php
 */

.detail-share {
    margin: 0;
    padding: 1.75rem 2rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.detail-share + .back-link-wrap {
    margin-top: 0;
    padding-top: 1.5rem;
}

.detail-share__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2.5rem;
    min-height: 3rem;
}

.detail-share-title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
    padding-right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.4;
}

.detail-share-title i {
    font-size: 0.95rem;
    color: #004e92;
    opacity: 0.9;
}

.detail-share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-share-buttons li {
    margin: 0;
    padding: 0;
}

.detail-share-feedback {
    min-height: 1.35rem;
    margin: 1rem 0 0;
    padding-top: 0.25rem;
    font-size: 0.875rem;
    color: #0f766e;
    font-weight: 600;
}

.detail-share .share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.detail-share a.share-button {
    cursor: pointer;
}

.detail-share .share-button i {
    font-size: 1rem;
}

.detail-share .share-button:focus {
    outline: none;
}

.detail-share .share-button:focus-visible {
    outline: 3px solid #004e92;
    outline-offset: 2px;
}

.detail-share .share-icon-x {
    font-size: 1rem;
    font-weight: 800;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1;
    display: inline-block;
    letter-spacing: -0.04em;
}

.detail-share .share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    text-decoration: none;
    color: #fff;
}

.detail-share .share-button:active {
    transform: translateY(0);
}

.detail-share .share-button.is-copied {
    background-color: #0d9488 !important;
}

.detail-share .share-facebook {
    background-color: #1877f2;
}

.detail-share .share-facebook:hover {
    background-color: #166fe5;
}

.detail-share .share-x {
    background-color: #0f1419;
}

.detail-share .share-x:hover {
    background-color: #000;
}

.detail-share .share-linkedin {
    background-color: #0077b5;
}

.detail-share .share-linkedin:hover {
    background-color: #006699;
}

.detail-share .share-whatsapp {
    background-color: #25d366;
}

.detail-share .share-whatsapp:hover {
    background-color: #20ba5a;
}

.detail-share .share-copy {
    background-color: #475569;
}

.detail-share .share-copy:hover {
    background-color: #334155;
}

@media (max-width: 768px) {
    .detail-share {
        padding: 1.5rem 1.25rem 1.35rem;
    }

    .detail-share__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.35rem;
        min-height: 0;
    }

    .detail-share-title {
        justify-content: center;
        text-align: center;
        padding-right: 0;
    }

    .detail-share-buttons {
        justify-content: center;
        gap: 0.85rem;
    }

    .detail-share-feedback {
        text-align: center;
        margin-top: 1.15rem;
    }

    .detail-share .share-button {
        width: 2.625rem;
        height: 2.625rem;
    }
}
