/* ── BeyondReality Plugin – Public Styles ────────────────────────────────── */

/* ── Carte projet ────────────────────────────────────────────────────────── */
.br-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.br-project-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.br-project-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.br-card-image {
    position: relative;
    overflow: hidden;
    max-height: 200px;
}

.br-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.br-card-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,.9);
}

.br-card-body {
    padding: 16px;
}

.br-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.br-card-title a {
    color: inherit;
    text-decoration: none;
}

.br-card-title a:hover { color: #0073aa; }

.br-card-location {
    color: #666;
    font-size: 13px;
    margin: 0 0 8px;
}

.br-card-excerpt {
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 12px;
    line-height: 1.5;
}

.br-card-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.br-card-bar-wrap {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.br-card-bar {
    height: 100%;
    background: linear-gradient(90deg, #00a32a, #72aee6);
    border-radius: 3px;
    min-width: 2px;
}

.br-card-percent {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.br-card-ha {
    font-size: 13px;
    color: #0073aa;
    margin: 0 0 12px;
}

.br-card-link {
    display: inline-block;
    color: #0073aa;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.br-card-link:hover { text-decoration: underline; }

/* ── Fiche projet (page single) ──────────────────────────────────────────── */
.br-project-sheet {
    margin-top: 24px;
}

.br-project-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-left: 4px solid #0073aa;
    border-radius: 0 6px 6px 0;
    margin-bottom: 24px;
}

.br-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.br-info-icon { font-size: 18px; line-height: 1; }

.br-info-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: .5px;
}

.br-info-value {
    display: block;
    font-weight: 600;
    color: #2d3748;
}

.br-project-section {
    margin-bottom: 32px;
}

.br-project-section h3 {
    font-size: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ── Budget inline ───────────────────────────────────────────────────────── */
.br-budget-inline,
.br-budget-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.br-budget-inline h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #2d3748;
}

.br-inline-bar-wrap,
.br-widget-bar-wrap {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 6px;
}

.br-inline-bar,
.br-widget-bar {
    height: 100%;
    background: linear-gradient(90deg, #00a32a, #72aee6);
    border-radius: 5px;
    min-width: 2px;
    transition: width .6s ease;
}

.br-ha-bar { background: linear-gradient(90deg, #0073aa, #00b4d8); }

.br-inline-percent,
.br-widget-percent {
    font-size: 13px;
    color: #4a5568;
    margin: 0 0 12px;
}

.br-inline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.br-inline-item {
    display: flex;
    flex-direction: column;
}

.br-item-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: .5px;
}

.br-item-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.br-green { color: #00a32a; }
.br-blue  { color: #0073aa; }

/* ── Widget budget (sidebar) ─────────────────────────────────────────────── */
.br-widget-project-name {
    font-weight: 600;
    margin-bottom: 10px;
}

.br-widget-amounts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.br-widget-amounts li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.br-widget-amounts li:last-child { border-bottom: none; }

.br-wl { color: #718096; }
.br-wv { font-weight: 600; }

/* ── Bouton don HelloAsso ─────────────────────────────────────────────────── */
.br-donate-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #0073aa;
    color: #fff !important;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 15px;
    margin-top: 12px;
    transition: background .2s ease;
}

.br-donate-btn:hover { background: #005177; }

/* ── Équipe projet ───────────────────────────────────────────────────────── */
.br-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.br-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.br-member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.br-member-name {
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
}

.br-member-name:hover { color: #0073aa; }

.br-member-role {
    font-size: 12px;
    color: #718096;
    text-transform: capitalize;
}

/* ── Blog projet ─────────────────────────────────────────────────────────── */
.br-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.br-blog-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.br-blog-card .br-card-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.br-blog-card .br-card-content {
    padding: 14px;
}

.br-blog-card .br-card-title {
    font-size: 16px;
    margin: 0 0 6px;
}

.br-card-meta {
    font-size: 12px;
    color: #718096;
    margin: 0 0 8px;
}

.br-card-meta .br-card-date::after { content: ' · '; }

.br-blog-card .br-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
    margin: 0 0 10px;
}

.br-read-more {
    font-size: 13px;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
}

.br-read-more:hover { text-decoration: underline; }

/* ── Statuts (front) ─────────────────────────────────────────────────────── */
.br-status-preparation { color: #0073aa; }
.br-status-en_cours    { color: #00a32a; }
.br-status-suspendu    { color: #d63638; }
.br-status-termine     { color: #3c434a; }
.br-status-archive     { color: #718096; }

/* ── Section HelloAsso ────────────────────────────────────────────────────── */
.br-ha-section {
    padding: 16px;
    background: #f0f8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .br-projects-grid,
    .br-blog-grid,
    .br-members-grid { grid-template-columns: 1fr; }
    .br-project-info-grid { flex-direction: column; }
    .br-inline-grid { grid-template-columns: 1fr 1fr; }
}
