
/* Titres principaux des pages fournies par le plugin. */
body.sd-page-dotations .entry-header,
body.sd-page-dotations .page-header {
    text-align: center !important;
}

body.sd-page-dotations .entry-title,
body.sd-page-dotations .page-title,
body.sd-page-dotations h1.wp-block-post-title,
body.sd-page-dotations .wp-block-post-title {
    width: 100% !important;
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
    text-align: center !important;
}

.sd-front-dotations {
    --sd-blue: #3b82c4;
    --sd-text: #243447;
    --sd-muted: #64748b;
    --sd-border: #dde5ed;
    --sd-bg: #f6f8fb;
    --sd-front-viewport-gap: clamp(12px, 2.5vw, 32px);
    position: relative;
    left: 50%;
    display: block !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0;
    margin: 1.5rem 0 1.5rem -50vw !important;
    padding-right: var(--sd-front-viewport-gap);
    padding-left: var(--sd-front-viewport-gap);
    transform: none !important;
    color: var(--sd-text);
}

.sd-front-dotations > .sd-front-title,
.sd-front-dotations > .sd-front-table-wrap,
.sd-front-dotations > .sd-front-empty {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1280px !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.sd-front-title {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    font-size: 1.4em;
    text-align: center !important;
}

.sd-front-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--sd-border);
    border-radius: 12px;
    background: #fff;
}

.sd-front-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.sd-front-table th,
.sd-front-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--sd-border);
    text-align: left;
}

.sd-front-table th {
    background: var(--sd-bg);
    font-weight: 600;
}

.sd-front-table tbody tr:last-child td {
    border-bottom: 0;
}

.sd-front-table td small {
    display: block;
    margin-top: .2rem;
    color: var(--sd-muted);
}

.sd-front-quantity {
    display: inline-flex;
    min-width: 2rem;
    justify-content: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(59, 130, 196, .12);
    color: var(--sd-blue);
    font-weight: 700;
}

.sd-front-empty,
.sd-front-message {
    padding: 1rem;
    border: 1px solid var(--sd-border);
    border-radius: 10px;
    background: var(--sd-bg);
}

@media (max-width: 640px) {
    .sd-front-dotations {
        --sd-front-viewport-gap: 10px;
    }

    .sd-front-table {
        min-width: 500px;
    }

    .sd-front-table th,
    .sd-front-table td {
        padding: .7rem .75rem;
    }
}


/* Accessibilité et préférences utilisateur. */
@media (prefers-reduced-motion: reduce) {
    .sd-app *,
    .sd-front-dotations *,
    .sd-front-manager * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.sd-front-dotations .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
