/* ============================================================
   SHORTCODE [civicrm_don] — Don CiviCRM avec fallback
   ============================================================ */

.rmsr-don {
    width: 100%;
    margin: 30px 0;
    font-family: inherit;
}

/* ─── État LOADING (skeleton) ─────────────────────────────── */
.rmsr-don__loading {
    padding: 40px 20px;
    background: #f8f5f0;
    border-radius: 8px;
    text-align: center;
    min-height: 240px;
}

.rmsr-don__skeleton-line,
.rmsr-don__skeleton-block {
    background: linear-gradient(90deg, #ebe4d6 25%, #f3eee0 50%, #ebe4d6 75%);
    background-size: 200% 100%;
    animation: rmsr-skeleton-shimmer 1.6s infinite;
    border-radius: 4px;
    margin: 0 auto 14px;
}

.rmsr-don__skeleton-line {
    height: 14px;
    width: 60%;
}

.rmsr-don__skeleton-line--short {
    width: 40%;
}

.rmsr-don__skeleton-block {
    height: 100px;
    width: 80%;
    margin-top: 24px;
}

@keyframes rmsr-skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.rmsr-don__loading-text {
    margin-top: 24px;
    color: #888;
    font-size: 0.875rem;
    font-style: italic;
}

/* ─── État IFRAME ────────────────────────────────────────── */
.rmsr-don__iframe {
    width: 100%;
    border: none;
    background: #fff;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

/* ─── État FALLBACK ──────────────────────────────────────── */
.rmsr-don__fallback {
    background: #fff;
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.rmsr-don__hero {
    text-align: center;
    margin-bottom: 32px;
}

.rmsr-don__title {
    font-size: 1.75rem;
    color: #003877;
    margin: 0 0 12px;
    font-weight: 700;
}

.rmsr-don__intro {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.rmsr-don__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.rmsr-don__card {
    display: block;
    padding: 30px 24px;
    background: #f8f5f0;
    border: 2px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.rmsr-don__card:hover {
    transform: translateY(-3px);
    border-color: #c9a646;
    box-shadow: 0 8px 24px rgba(201,166,70,0.15);
    text-decoration: none;
}

.rmsr-don__card--primary {
    background: linear-gradient(135deg, #f8f5f0 0%, #fdf9ee 100%);
    border-color: #c9a646;
}

.rmsr-don__card-icon {
    font-size: 2.4rem;
    color: #c9a646;
    margin-bottom: 10px;
    line-height: 1;
}

.rmsr-don__card-title {
    font-size: 1.2rem;
    color: #003877;
    margin: 0 0 10px;
    font-weight: 700;
}

.rmsr-don__card-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 18px;
}

.rmsr-don__card-cta {
    display: inline-block;
    padding: 10px 22px;
    background: #c9a646;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.rmsr-don__card:hover .rmsr-don__card-cta {
    background: #003877;
}

/* Bank info */
.rmsr-don__bank {
    padding: 24px;
    background: #f8f5f0;
    border-left: 4px solid #c9a646;
    border-radius: 4px;
    margin-bottom: 20px;
}

.rmsr-don__bank-title {
    margin: 0 0 12px;
    color: #003877;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.rmsr-don__bank-info {
    margin: 0;
    line-height: 1.7;
    color: #444;
}

.rmsr-don__bank-info code {
    background: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.95em;
    color: #003877;
    font-weight: 600;
    border: 1px solid #e8e0cc;
}

/* Lien direct vers civi-go.net */
.rmsr-don__direct-link {
    text-align: center;
    margin: 0;
    padding-top: 16px;
    border-top: 1px dashed #ddd;
}

.rmsr-don__direct-link a {
    color: #888;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rmsr-don__direct-link a:hover {
    color: #c9a646;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .rmsr-don__cards {
        grid-template-columns: 1fr;
    }
    .rmsr-don__title {
        font-size: 1.4rem;
    }
    .rmsr-don__fallback {
        padding: 28px 20px;
    }
}
