:root {
    --royal: #0b2a6f;
    --royal-deep: #081b46;
    --royal-soft: #1b56b3;
    --gold: #d7a318;
    --gold-rich: #f2c94c;
    --gold-pale: #f6e6af;
    --ink: #182033;
    --muted: #60708a;
    --line: rgba(11, 42, 111, 0.14);
    --success: #198754;
    --warning: #b78103;
    --danger: #b42318;
    --shadow-xl: 0 28px 60px rgba(7, 22, 61, 0.18);
    --shadow-md: 0 16px 36px rgba(7, 22, 61, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: "Work Sans", sans-serif; background: radial-gradient(circle at 15% 10%, rgba(242, 201, 76, 0.18), transparent 22%), radial-gradient(circle at 88% 22%, rgba(11, 42, 111, 0.08), transparent 24%), linear-gradient(180deg, #fffdfa 0%, #f7f8fc 48%, #eef2f9 100%); }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: "Cormorant Garamond", serif; letter-spacing: 0.02em; }
main { position: relative; overflow: hidden; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(6, 20, 52, 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(242, 201, 76, 0.2); }
.navbar { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.navbar-brand { min-width: 0; }
.navbar-brand strong, .navbar-brand small { display: block; color: #fff; }
.navbar-brand strong { font-size: 1.05rem; letter-spacing: 0.04em; }
.navbar-brand small { color: rgba(255, 255, 255, 0.7); font-size: 0.7rem; line-height: 1.3; max-width: 360px; }
.brand-seal { width: 62px; height: 62px; flex: 0 0 62px; padding: 5px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.96), rgba(246,230,175,0.92)); box-shadow: 0 0 0 2px rgba(242, 201, 76, 0.58), 0 0 0 7px rgba(255,255,255,0.08), 0 14px 30px rgba(0,0,0,0.26); }
.brand-seal img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav-link { color: rgba(255,255,255,0.86); font-weight: 500; }
.nav-link.active, .nav-link:hover { color: var(--gold-pale); }
.btn-outline-gold { color: var(--gold-pale); border-color: rgba(242, 201, 76, 0.5); border-radius: 999px; padding-inline: 1rem; }
.btn-outline-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-rich)); color: var(--royal-deep); border-color: transparent; }
.btn-navy, .btn-gold, .btn-outline-light { border-radius: 999px; padding: 0.9rem 1.25rem; font-weight: 600; letter-spacing: 0.02em; }
.btn-navy { color: #fff; border: none; background: linear-gradient(135deg, var(--royal-deep), var(--royal-soft)); box-shadow: 0 14px 24px rgba(11, 42, 111, 0.22); }
.btn-gold { color: var(--royal-deep); border: none; background: linear-gradient(135deg, var(--gold), var(--gold-rich)); box-shadow: 0 14px 24px rgba(215, 163, 24, 0.24); }
.btn-navy:hover, .btn-gold:hover, .btn-outline-light:hover { color: inherit; transform: translateY(-1px); }
.hero { position: relative; padding: 5.5rem 0 4.5rem; color: #fff; background: linear-gradient(140deg, rgba(7, 22, 61, 0.98), rgba(11, 42, 111, 0.96) 48%, rgba(28, 87, 179, 0.92)), radial-gradient(circle at top right, rgba(242, 201, 76, 0.18), transparent 26%); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0, rgba(255,255,255,0.05) 50%, transparent 100%), radial-gradient(circle at 80% 30%, rgba(242, 201, 76, 0.12), transparent 28%); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -5rem; top: -4rem; width: 24rem; height: 24rem; border-radius: 50%; border: 1px solid rgba(242, 201, 76, 0.16); box-shadow: inset 0 0 0 24px rgba(255,255,255,0.02); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(242, 201, 76, 0.28); background: rgba(255,255,255,0.06); color: var(--gold-pale); text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.76rem; }
.display-title { font-size: clamp(3rem, 6vw, 5.7rem); line-height: 0.93; margin: 1rem 0 1.1rem; }
.hero p.lead { max-width: 680px; color: rgba(255,255,255,0.82); font-size: 1.08rem; }
.hero-crest { position: relative; background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05)); border: 1px solid rgba(242, 201, 76, 0.28); border-radius: 34px; padding: 1.1rem; box-shadow: var(--shadow-xl); }
.hero-crest::before { content: ""; position: absolute; inset: 18px; border-radius: 28px; border: 1px solid rgba(255,255,255,0.08); pointer-events: none; }
.hero-seal { width: min(100%, 480px); margin: 0 auto; display: block; filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.28)); }
.hero-card, .panel, .profile-card, .stat-card, .admin-card, .table-shell { background: rgba(255,255,255,0.95); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.hero-card { border-radius: 30px; padding: 1.6rem; color: var(--ink); }
.hero-card .stat-label, .stat-card .stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; }
.hero-metric { color: var(--royal); font-size: 2.1rem; font-weight: 700; }
.cert-pledge { display: grid; gap: 0.9rem; margin-top: 1.35rem; }
.pledge-item { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.95rem 1rem; border-radius: 20px; background: linear-gradient(135deg, rgba(11,42,111,0.06), rgba(242,201,76,0.14)); }
.pledge-item i { color: var(--gold); margin-top: 0.15rem; }
.section { padding: 5rem 0; }
.section-heading { margin-bottom: 2rem; }
.section-heading h2 { font-size: clamp(2rem, 3vw, 3.2rem); color: var(--royal-deep); }
.section-heading p { max-width: 760px; color: var(--muted); font-size: 1rem; }
.prestige-strip { margin-top: -2.2rem; position: relative; z-index: 2; }
.prestige-board { background: linear-gradient(135deg, #fffefb, #f8f5eb); border: 1px solid rgba(215, 163, 24, 0.26); border-radius: 28px; padding: 1.35rem; box-shadow: var(--shadow-xl); }
.prestige-pill { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; border-radius: 22px; background: linear-gradient(135deg, rgba(11,42,111,0.04), rgba(242,201,76,0.12)); height: 100%; }
.prestige-pill i { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold), var(--gold-rich)); color: var(--royal-deep); box-shadow: 0 10px 20px rgba(215, 163, 24, 0.24); }
.prestige-pill span { display: block; color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; }
.prestige-pill strong { display: block; color: var(--royal-deep); font-size: 1rem; }
.panel { position: relative; border-radius: 28px; padding: 1.8rem; overflow: hidden; }
.panel::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--gold), var(--gold-rich), var(--royal-soft)); }
.feature-icon { width: 64px; height: 64px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--royal-deep); background: linear-gradient(135deg, rgba(242, 201, 76, 0.25), rgba(11, 42, 111, 0.1)); box-shadow: inset 0 0 0 1px rgba(215, 163, 24, 0.16); margin-bottom: 1rem; }
.ornament-card { background: radial-gradient(circle at 8% 10%, rgba(242,201,76,0.18), transparent 18%), linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,247,241,0.98)); }
.ornament-card h3, .panel h2, .panel h3 { color: var(--royal-deep); }
.ornament-card p, .panel p { color: var(--muted); }
.profile-card { position: relative; overflow: hidden; border-radius: 30px; height: 100%; }
.profile-card::after { content: ""; position: absolute; inset: 14px; border-radius: 24px; border: 1px solid rgba(242, 201, 76, 0.18); pointer-events: none; }
.profile-cover { height: 155px; background: radial-gradient(circle at 16% 24%, rgba(242,201,76,0.28), transparent 18%), linear-gradient(135deg, var(--royal-deep), var(--royal), var(--royal-soft)); position: relative; z-index: 1; }
.profile-cover::before, .profile-cover::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14); }
.profile-cover::before { width: 130px; height: 130px; top: -30px; right: -20px; }
.profile-cover::after { width: 90px; height: 90px; left: 24px; bottom: -26px; }
.profile-card .card-body { position: relative; z-index: 2; padding: 0 1.5rem 1.6rem; }
.profile-avatar {
    position: relative;
    z-index: 3;
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 32px;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #fff;
    margin-top: -60px;
    background: linear-gradient(180deg, #f8fbff, #eef3fb);
    box-shadow: 0 18px 34px rgba(11, 42, 111, 0.18);
}
.badge-verified, .badge-level, .profile-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; }
.badge-verified { background: rgba(25, 135, 84, 0.12); color: var(--success); }
.profile-badge { background: rgba(215, 163, 24, 0.14); color: #926d00; }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip { border-radius: 999px; padding: 0.46rem 0.82rem; background: linear-gradient(135deg, rgba(11,42,111,0.05), rgba(242,201,76,0.12)); color: var(--royal-deep); border: 1px solid rgba(11, 42, 111, 0.08); font-size: 0.81rem; }
.notice { padding: 1.15rem 1.2rem; border-radius: 20px; background: linear-gradient(135deg, rgba(215,163,24,0.14), rgba(11,42,111,0.06)); border: 1px solid rgba(215, 163, 24, 0.26); color: var(--royal-deep); }
.ceremony-banner { position: relative; background: linear-gradient(135deg, #0a1f54, #103987); color: #fff; border-radius: 30px; overflow: hidden; padding: 2rem; box-shadow: var(--shadow-xl); }
.ceremony-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top left, rgba(242,201,76,0.18), transparent 20%), radial-gradient(circle at right center, rgba(255,255,255,0.08), transparent 18%); pointer-events: none; }
.ceremony-banner p { color: rgba(255,255,255,0.82); }
.ceremony-banner .hero-metric { color: #fff; }
.stat-card { border-radius: 24px; padding: 1.5rem; }
.stat-card.gold-card { background: linear-gradient(135deg, #fff6d7, #fffdf5); border-color: rgba(215, 163, 24, 0.24); }
.site-footer { position: relative; background: linear-gradient(180deg, #071637 0%, #0b255f 100%); color: rgba(255,255,255,0.8); padding: 4rem 0 2rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 15%, rgba(242,201,76,0.14), transparent 20%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06), transparent 20%); pointer-events: none; }
.footer-mark { width: 84px; height: 84px; margin-bottom: 1rem; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(242, 201, 76, 0.35); }
.footer-mark img { width: 100%; height: 100%; object-fit: cover; }
.site-footer h5, .site-footer h6 { color: #fff; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.92rem; }
.page-banner { position: relative; padding: 3.4rem 0; color: #fff; background: linear-gradient(135deg, rgba(8,27,70,0.98), rgba(11,42,111,0.95), rgba(27,86,179,0.92)); }
.page-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at right top, rgba(242,201,76,0.18), transparent 22%); pointer-events: none; }
.page-banner p { color: rgba(255,255,255,0.8); max-width: 760px; }
.profile-hero { padding: 2.2rem; color: #fff; border-radius: 32px; background: linear-gradient(135deg, rgba(8,27,70,0.98), rgba(11,42,111,0.95), rgba(27,86,179,0.9)); box-shadow: var(--shadow-xl); }
.profile-hero img {
    width: 190px;
    height: 232px;
    object-fit: cover;
    object-position: center top;
    border-radius: 28px;
    border: 4px solid rgba(255,255,255,0.92);
    background: linear-gradient(180deg, #f8fbff, #eef3fb);
    box-shadow: 0 24px 42px rgba(5, 18, 49, 0.22);
}
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.meta-item { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1rem 1.1rem; box-shadow: var(--shadow-md); }
.meta-item strong { display: block; margin-bottom: 0.35rem; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; }
.form-control, .form-select, .form-check-input { border-radius: 16px; border-color: rgba(11,42,111,0.14); padding: 0.84rem 0.98rem; }
.form-control:focus, .form-select:focus { border-color: rgba(215,163,24,0.86); box-shadow: 0 0 0 0.25rem rgba(215,163,24,0.16); }
.admin-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, #081b46, #0d2d73); color: #fff; padding: 1.6rem; position: sticky; top: 0; height: 100vh; border-right: 1px solid rgba(242, 201, 76, 0.15); }
.admin-brand { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1.8rem; }
.admin-link { color: rgba(255,255,255,0.84); padding: 0.8rem 0.95rem; border-radius: 16px; transition: 0.2s ease; }
.admin-link.active, .admin-link:hover { background: rgba(255,255,255,0.09); color: var(--gold-pale); }
.admin-main { padding: 2rem; background: radial-gradient(circle at 100% 0, rgba(242,201,76,0.08), transparent 18%), linear-gradient(180deg, #f8f9fd, #eff3fb); }
.admin-topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.table-shell { border-radius: 28px; overflow: hidden; }
.table thead th { background: #edf3ff; color: var(--royal-deep); border-bottom: none; }
.table td, .table th { vertical-align: middle; }
.status-pill { display: inline-flex; padding: 0.4rem 0.82rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.status-publie, .status-verifie { background: rgba(25,135,84,0.12); color: var(--success); }
.status-en_attente { background: rgba(183,129,3,0.14); color: var(--warning); }
.status-suspendu, .status-rejete { background: rgba(180,35,24,0.12); color: var(--danger); }
.empty-state { padding: 2rem; text-align: center; border: 1px dashed rgba(11,42,111,0.18); border-radius: 22px; color: var(--muted); }
@media (max-width: 991px) { .site-header { position: relative; } .navbar-brand small { max-width: 240px; } .hero { padding-top: 4rem; } .prestige-strip { margin-top: 0; } .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { position: relative; height: auto; } .admin-main { padding: 1.2rem; } .profile-hero { text-align: center; } }
.filter-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,246,237,0.98));
}

.profile-gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.collection-shell .record-mini {
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(11,42,111,0.05), rgba(242,201,76,0.12));
    border: 1px solid rgba(11,42,111,0.08);
}

.collection-shell .record-mini strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.record-hero-meta .chip {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.16);
}

.profile-qr-card {
    padding: 0.9rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
    border: 1px solid rgba(242,201,76,0.22);
}

.record-story,
.record-side {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,248,241,0.98));
}

.share-stack .btn {
    border-radius: 16px;
}

.admin-hero {
    border-radius: 30px;
    padding: 2rem;
    color: #fff;
    background: linear-gradient(135deg, rgba(8,27,70,0.98), rgba(11,42,111,0.95), rgba(27,86,179,0.9));
    box-shadow: var(--shadow-xl);
}

.admin-hero p {
    color: rgba(255,255,255,0.8);
}

.admin-kpi {
    position: relative;
    padding: 1.5rem;
    border-radius: 26px;
    overflow: hidden;
}

.admin-kpi-band {
    width: 54px;
    height: 54px;
    margin-bottom: 1rem;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--royal-deep);
    background: linear-gradient(135deg, var(--gold), var(--gold-rich));
    box-shadow: 0 12px 22px rgba(215,163,24,0.24);
}

.admin-section-title {
    background: linear-gradient(135deg, rgba(11,42,111,0.04), rgba(242,201,76,0.12));
}

@media (max-width: 991px) {
    .profile-gallery-head {
        align-items: start;
    }
}

.application-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,245,236,0.98));
}

.admin-action-wrap .btn,
.admin-decision-form .btn {
    border-radius: 14px;
}

.admin-decision-form {
    min-width: 320px;
}

.qr-card-shell .card-body {
    padding-top: 1.6rem;
}

.table-shell .btn-sm {
    border-radius: 12px;
}

.verification-shell,
.contact-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,246,237,0.98));
}

.verification-result-card img {
    box-shadow: 0 18px 28px rgba(11,42,111,0.18);
}

.appreciation-panel,
.share-panel {
    position: relative;
    overflow: hidden;
}

.appreciation-panel::after,
.share-panel::after {
    content: "";
    position: absolute;
    right: -56px;
    top: -56px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(215,163,24,0.14);
    pointer-events: none;
}

.appreciation-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.support-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    background: linear-gradient(135deg, rgba(11,42,111,0.08), rgba(242,201,76,0.18));
    color: var(--royal-deep);
    font-weight: 700;
    font-size: 0.82rem;
}

.engagement-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.engagement-stat-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(11,42,111,0.05), rgba(242,201,76,0.14));
    border: 1px solid rgba(11,42,111,0.08);
}

.engagement-stat-card strong {
    display: block;
    color: var(--royal-deep);
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.engagement-stat-card span {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.appreciation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.appreciation-button.is-active {
    background: linear-gradient(135deg, #d7a318, #f2c94c);
    color: #13203f;
    opacity: 0.92;
}

.engagement-feedback {
    color: var(--muted);
    min-height: 1.2rem;
}

[data-engagement-root].is-loading {
    opacity: 0.92;
}

@media (max-width: 575px) {
    .engagement-stats-grid {
        grid-template-columns: 1fr;
    }

    .appreciation-head {
        flex-direction: column;
    }
}
