/**
 * RacinesInvest — cadrage inspiré d’un club d’investissement premium.
 * Couche visuelle uniquement : mêmes textes, mêmes parcours, mêmes actions.
 */

:root {
    --ri-navy: #070b22;
    --ri-navy-2: #101735;
    --ri-ink: #12141c;
    --ri-muted: #5c6275;
    --ri-line: #e6e8f0;
    --ri-paper: #f5f6fa;
    --ri-accent: #1f6b32;
    --ri-accent-hover: #185628;
    --ri-radius: 22px;
    --ri-shadow: 0 18px 44px rgba(7, 11, 34, 0.08);
    --ri-font: "Inter", "Segoe UI", system-ui, sans-serif;
}

body.ri-frame {
    font-family: var(--ri-font);
    color: var(--ri-ink);
    background: var(--ri-paper);
    -webkit-font-smoothing: antialiased;
}

body.ri-frame :is(h1, h2, h3, h4, h5, h6, .navbar-brand, .btn, .form-control, .form-select, .nav-link) {
    font-family: var(--ri-font);
}

/* ——— Barre commune (site, espaces membres, auth) ——— */
body.ri-frame .navbar-ri {
    background: var(--ri-navy) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    padding: 0.72rem 0;
}

body.ri-frame .navbar-ri .navbar-brand,
body.ri-frame .navbar-ri .navbar-brand span {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.ri-frame .navbar-ri .navbar-brand:hover {
    color: #fff !important;
    opacity: 0.92;
}

body.ri-frame .navbar-ri .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    font-size: 0.94rem;
    border-radius: 999px;
    background: transparent !important;
    box-shadow: none !important;
}

body.ri-frame .navbar-ri .nav-link:hover,
body.ri-frame .navbar-ri .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.ri-frame .navbar-ri .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

body.ri-frame .navbar-ri .navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

body.ri-frame .navbar-ri .btn,
body.ri-frame .navbar-ri .btn-header-login,
body.ri-frame .navbar-ri .btn-outline-success,
body.ri-frame .navbar-ri .btn-outline-primary,
body.ri-frame .navbar-ri .btn-outline-secondary,
body.ri-frame .navbar-ri .btn-ri-bleu,
body.ri-frame .navbar-ri .btn-ri-rouge {
    border-radius: 999px !important;
    font-weight: 650;
    padding: 0.42rem 0.95rem;
}

body.ri-frame .navbar-ri .btn-outline-success,
body.ri-frame .navbar-ri .btn-outline-primary,
body.ri-frame .navbar-ri .btn-outline-secondary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: transparent !important;
}

body.ri-frame .navbar-ri .btn-outline-success:hover,
body.ri-frame .navbar-ri .btn-outline-primary:hover,
body.ri-frame .navbar-ri .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

body.ri-frame .navbar-ri .btn-header-login,
body.ri-frame .navbar-ri .btn-ri-bleu {
    background: var(--ri-accent) !important;
    border-color: var(--ri-accent) !important;
    color: #fff !important;
}

body.ri-frame .navbar-ri .btn-header-login:hover,
body.ri-frame .navbar-ri .btn-ri-bleu:hover {
    background: var(--ri-accent-hover) !important;
    color: #fff !important;
}

body.ri-frame .navbar-ri .btn-ri-rouge {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    body.ri-frame .navbar-ri .navbar-collapse {
        background: #0c1230;
        border-radius: 18px;
        padding: 0.85rem;
        margin-top: 0.75rem;
    }
}

/* ——— Pied de page des espaces applicatifs ——— */
body.ri-frame footer.ri-footer {
    background: var(--ri-navy);
    color: rgba(255, 255, 255, 0.72);
    border-top: 0;
    margin-top: 2.5rem !important;
    padding-top: 2.75rem;
    padding-bottom: 2rem;
}

body.ri-frame footer.ri-footer a,
body.ri-frame footer.ri-footer .ri-footer-copy,
body.ri-frame footer.ri-footer p {
    color: rgba(255, 255, 255, 0.68);
}

body.ri-frame footer.ri-footer a:hover {
    color: #fff;
}

body.ri-frame footer.ri-footer .ri-footer-title {
    color: #fff;
    letter-spacing: 0.08em;
}

/* ——— Boutons et champs (partout sauf le hero, traité plus bas) ——— */
body.ri-frame .btn-primary,
body.ri-frame .btn-ri,
body.ri-frame .btn-ri-accent,
body.ri-frame .btn-ri-vert,
body.ri-frame .btn-success {
    background: var(--ri-accent);
    border-color: var(--ri-accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 650;
}

body.ri-frame .btn-primary:hover,
body.ri-frame .btn-ri:hover,
body.ri-frame .btn-ri-accent:hover,
body.ri-frame .btn-ri-vert:hover,
body.ri-frame .btn-success:hover {
    background: var(--ri-accent-hover);
    border-color: var(--ri-accent-hover);
    color: #fff;
}

body.ri-frame .btn-outline-primary,
body.ri-frame .btn-outline-success,
body.ri-frame .btn-outline-dark,
body.ri-frame .btn-outline-secondary {
    border-radius: 999px;
    font-weight: 650;
}

body.ri-frame main .form-control,
body.ri-frame main .form-select,
body.ri-frame main textarea.form-control {
    border-radius: 14px;
    border-color: var(--ri-line);
    padding: 0.65rem 0.9rem;
    background: #fff;
}

body.ri-frame main .form-control:focus,
body.ri-frame main .form-select:focus,
body.ri-frame main textarea.form-control:focus {
    border-color: var(--ri-accent);
    box-shadow: 0 0 0 3px rgba(142, 211, 79, 0.16);
}

body.ri-frame .ri-surface,
body.ri-frame .card,
body.ri-frame .lws-card,
body.ri-frame .modal-content {
    border-radius: var(--ri-radius);
    border-color: var(--ri-line) !important;
    box-shadow: var(--ri-shadow);
}

body.ri-frame .alert {
    border: 0;
    border-radius: 16px;
}

body.ri-frame .badge {
    border-radius: 999px;
    font-weight: 650;
}

body.ri-frame main h1,
body.ri-frame .ri-dash-spa__maintitle,
body.ri-frame .lws-topbar-title {
    letter-spacing: -0.035em;
}

/* ——— Tableaux de bord membres ——— */
body.ri-frame main.ri-main--fullwidth .ri-dash-spa {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

body.ri-frame .ri-dash-spa__hero-bar {
    background:
        radial-gradient(900px 220px at 100% 0%, rgba(142, 211, 79, 0.28), transparent 55%),
        linear-gradient(180deg, #121a3d 0%, var(--ri-navy) 100%) !important;
    color: #fff;
    border: 0 !important;
    border-radius: 24px !important;
    padding: 1.55rem 1.6rem !important;
    box-shadow: 0 16px 40px rgba(7, 11, 34, 0.16);
}

body.ri-frame .ri-dash-spa--investisseur .ri-dash-spa__hero-bar,
body.ri-frame .ri-dash-spa--entrepreneur .ri-dash-spa__hero-bar {
    border-left: 0 !important;
}

body.ri-frame .ri-dash-spa__maintitle {
    color: #fff !important;
    font-size: clamp(1.55rem, 2vw, 2rem);
    font-weight: 800;
}

body.ri-frame .ri-dash-spa__subtitle {
    color: rgba(255, 255, 255, 0.74) !important;
}

body.ri-frame .ri-dash-spa__hero-meta {
    color: #b7e39a !important;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.ri-frame .ri-dash-spa__hero-actions .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
}

body.ri-frame .ri-dash-spa__hero-actions .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.ri-frame .ri-dash-nav {
    background: #fff;
    border: 1px solid var(--ri-line);
    border-radius: 18px;
    padding: 0.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(7, 11, 34, 0.04);
}

body.ri-frame .ri-dash-nav__link {
    border-radius: 999px;
    color: var(--ri-ink);
}

body.ri-frame .ri-dash-nav__link:hover {
    background: #f3f4f8;
    color: var(--ri-ink);
}

body.ri-frame .ri-dash-nav__link.is-active {
    background: var(--ri-navy);
    border-color: var(--ri-navy);
    color: #fff;
}

body.ri-frame .ri-dash-spa__sheet {
    border-radius: 24px !important;
    border: 1px solid var(--ri-line) !important;
    box-shadow: var(--ri-shadow) !important;
    overflow: hidden;
}

body.ri-frame .ri-dash-metric {
    border-radius: 18px;
    border-color: var(--ri-line);
    box-shadow: none;
}

body.ri-frame .ri-dash-metric::before {
    width: 0;
}

body.ri-frame .ri-dash-metric__icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(142, 211, 79, 0.12);
    color: var(--ri-accent);
}

body.ri-frame .ri-dash-section-head h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 1.15rem;
}

/* ——— Administration ——— */
body.ri-frame.ri-admin {
    background: var(--ri-paper);
}

body.ri-frame .ri-admin-sidebar {
    background: var(--ri-navy) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.ri-frame .ri-admin-link.active {
    background: rgba(142, 211, 79, 0.18);
    border-color: rgba(142, 211, 79, 0.35);
}

body.ri-frame .ri-admin-content {
    background: var(--ri-paper);
}

body.ri-frame .lws-topbar {
    background:
        radial-gradient(700px 180px at 100% 0%, rgba(142, 211, 79, 0.22), transparent 55%),
        linear-gradient(180deg, #121a3d, var(--ri-navy));
    color: #fff;
    border-radius: 22px;
    padding: 1.35rem 1.4rem;
    margin-bottom: 1rem;
}

body.ri-frame .lws-topbar .ri-kicker,
body.ri-frame .lws-topbar .lws-topbar-sub {
    color: rgba(255, 255, 255, 0.72) !important;
}

body.ri-frame .lws-topbar .lws-topbar-title {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
}

body.ri-frame .lws-topbar .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
    border-radius: 999px;
}

body.ri-frame .lws-card {
    background: #fff;
    border-radius: 18px !important;
}

body.ri-frame .navbar-admin {
    background: var(--ri-navy);
}

body.ri-frame .navbar-admin .navbar-brand {
    color: #fff;
}

body.ri-frame .ri-admin-offcanvas {
    background: var(--ri-navy);
    color: #fff;
}

body.ri-frame .ri-admin-offcanvas .btn-outline-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

/* ——— Accueil public ——— */
body.ri-accueil-home.ri-frame {
    background: #fff;
}

body.ri-accueil-home .wave-divider {
    display: none;
}

body.ri-accueil-home .hero {
    background: var(--ri-navy) !important;
    min-height: calc(100vh - 4.5rem);
    padding: 2.5rem 0 4.5rem;
    overflow: hidden;
}

body.ri-accueil-home .hero .container {
    max-width: 1140px;
    position: relative;
    z-index: 1;
}

body.ri-accueil-home .hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -80px;
    top: 10%;
    background: radial-gradient(circle, rgba(142, 211, 79, 0.28), transparent 68%);
    pointer-events: none;
}

body.ri-accueil-home .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 2rem;
    align-items: center;
}

body.ri-accueil-home .navbar-ri {
    border-bottom-color: transparent !important;
}

body.ri-accueil-home .hero h1 {
    text-align: left;
    font-size: clamp(2.15rem, 4.2vw, 3.35rem) !important;
    line-height: 1.08;
    text-shadow: none;
    max-width: 18em;
}

body.ri-accueil-home .hero .ri-em {
    color: var(--ri-accent) !important;
    -webkit-text-fill-color: var(--ri-accent) !important;
}

body.ri-accueil-home .hero .lead {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.86);
}

body.ri-accueil-home .badge-hero {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    letter-spacing: 0.04em;
}

body.ri-accueil-home .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

body.ri-accueil-home .hero .btn {
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    margin: 0 !important;
}

body.ri-accueil-home .hero .btn-primary,
body.ri-accueil-home .hero .btn-success {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

body.ri-accueil-home .hero .btn-primary:hover,
body.ri-accueil-home .hero .btn-success:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

body.ri-accueil-home .hero .btn-danger {
    background: var(--ri-accent) !important;
    border-color: var(--ri-accent) !important;
    color: #fff !important;
}

body.ri-accueil-home .hero .btn-danger:hover {
    background: var(--ri-accent-hover) !important;
}

body.ri-accueil-home .hero-portrait {
    min-height: 520px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(7, 11, 34, 0.2), rgba(7, 11, 34, 0.05) 30%, rgba(7, 11, 34, 0.35)),
        url("https://images.pexels.com/photos/4559597/pexels-photo-4559597.jpeg?auto=compress&cs=tinysrgb&w=1200") center 18% / cover no-repeat;
    filter: grayscale(0.35) contrast(1.05) saturate(0.7);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
    mask-image: linear-gradient(180deg, #000 78%, transparent);
}

body.ri-accueil-home .stats-section {
    background: var(--ri-navy);
    padding: 0 0 3.25rem;
    border: 0;
    margin-top: -1px;
}

body.ri-accueil-home .stat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.35rem 0.8rem;
}

body.ri-accueil-home .stat-number {
    color: #fff;
}

body.ri-accueil-home .stat-label {
    color: rgba(255, 255, 255, 0.62);
}

body.ri-accueil-home #about,
body.ri-accueil-home #services,
body.ri-accueil-home #news,
body.ri-accueil-home #publicites,
body.ri-accueil-home .contact-section {
    background: #fff !important;
}

body.ri-accueil-home #crowdfunding,
body.ri-accueil-home .events-section {
    background: var(--ri-paper) !important;
}

body.ri-accueil-home .section-heading,
body.ri-accueil-home .section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.04em;
    color: var(--ri-ink);
}

body.ri-accueil-home .section,
body.ri-accueil-home #about,
body.ri-accueil-home #crowdfunding,
body.ri-accueil-home .events-section,
body.ri-accueil-home #news,
body.ri-accueil-home #publicites,
body.ri-accueil-home .contact-section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

body.ri-accueil-home #about img {
    border-radius: 24px;
    box-shadow: var(--ri-shadow);
}

body.ri-accueil-home #about blockquote {
    border-left: 3px solid var(--ri-accent);
    padding: 0.35rem 0 0.35rem 1rem;
    margin-left: 0;
    color: var(--ri-ink);
}

body.ri-accueil-home .card,
body.ri-accueil-home .event-card,
body.ri-accueil-home .crowdfunding-card {
    border-radius: 20px !important;
    border: 1px solid var(--ri-line) !important;
    box-shadow: 0 10px 28px rgba(7, 11, 34, 0.06) !important;
    overflow: hidden;
    background: #fff;
}

body.ri-accueil-home .card:hover,
body.ri-accueil-home .event-card:hover {
    transform: translateY(-4px);
}

body.ri-accueil-home .service-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(142, 211, 79, 0.12);
    color: var(--ri-accent);
    margin-bottom: 0.75rem;
}

body.ri-accueil-home .crowdfunding-badge {
    background: rgba(142, 211, 79, 0.12);
    color: var(--ri-accent);
}

body.ri-accueil-home .crowdfunding-cta,
body.ri-accueil-home .btn-submit {
    background: var(--ri-accent) !important;
    border-radius: 999px !important;
    border: 0;
    color: #fff;
    font-weight: 700;
}

body.ri-accueil-home .crowdfunding-cta:hover,
body.ri-accueil-home .btn-submit:hover {
    background: var(--ri-accent-hover) !important;
}

body.ri-accueil-home .contact-content {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--ri-line);
    border-radius: 28px;
    padding: 2rem 1.75rem;
    box-shadow: var(--ri-shadow);
    text-align: left;
    justify-content: space-between;
}

body.ri-accueil-home .contact-form {
    width: min(100%, 460px);
    margin: 0;
}

body.ri-accueil-home .form-group input,
body.ri-accueil-home .form-group textarea {
    border-radius: 14px;
    border: 1px solid var(--ri-line);
    padding: 0.75rem 0.9rem;
    background: #fafbfe;
}

body.ri-accueil-home .form-group input:focus,
body.ri-accueil-home .form-group textarea:focus {
    border-color: var(--ri-accent);
    box-shadow: 0 0 0 3px rgba(142, 211, 79, 0.15);
}

body.ri-accueil-home .partenaire-item {
    background: #fff;
    border: 1px solid var(--ri-line);
    border-radius: 18px;
    padding: 1rem;
}

body.ri-accueil-home footer {
    background: var(--ri-navy);
}

body.ri-accueil-home footer::before {
    background: var(--ri-accent);
}

body.ri-accueil-home .footer-contact-item i,
body.ri-accueil-home .footer-social a:hover,
body.ri-accueil-home .footer-about a:hover .footer-brand {
    color: var(--ri-accent) !important;
}

body.ri-accueil-home .footer-social a:hover {
    background: var(--ri-accent);
    color: #fff !important;
}

body.ri-accueil-home .back-to-top {
    background: var(--ri-accent);
}

body.ri-accueil-home .scroll-progress {
    background: var(--ri-accent);
}

@media (max-width: 991.98px) {
    body.ri-accueil-home .hero-grid {
        grid-template-columns: 1fr;
    }

    body.ri-accueil-home .hero-portrait {
        min-height: 240px;
        order: -1;
    }

    body.ri-accueil-home .hero h1,
    body.ri-accueil-home .hero .lead {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.ri-frame .card,
    body.ri-frame .btn {
        transition: none;
    }
}

/* ——— Accueil : bleu du fond + vert du logo, dessins simples ——— */
body.ri-accueil-home.ri-frame {
    --ri-leaf: #8ed34f;
    --ri-leaf-deep: #1f6b32;
    background-color: #071833 !important;
    background-image:
        radial-gradient(920px 520px at 8% -8%, rgba(31, 107, 50, 0.55), transparent 60%),
        radial-gradient(780px 480px at 100% 12%, rgba(46, 130, 196, 0.38), transparent 55%),
        radial-gradient(640px 420px at 70% 100%, rgba(142, 211, 79, 0.16), transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1440' height='900' fill='none'%3E%3Cg stroke='%23ffffff' stroke-width='1.3' opacity='.22'%3E%3Cpath d='M140 150c28 48 8 92-18 132M140 150c-36 34-48 86-18 128M140 150c48 22 62 74 28 118'/%3E%3Cpath d='M310 250v78M346 214v114M382 176v152'/%3E%3Cpath d='M292 188l108-52'/%3E%3Ccircle cx='1120' cy='160' r='78'/%3E%3Ccircle cx='1210' cy='230' r='30'/%3E%3Cpath d='M860 720c48-92 140-88 162-18-70 12-118 42-162 18z'/%3E%3Cpath d='M180 640c40 10 70 40 70 80M180 640c-10 40 10 80 50 100'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.12'%3E%3Ccircle cx='640' cy='420' r='3'/%3E%3Ccircle cx='700' cy='460' r='2'/%3E%3Ccircle cx='520' cy='500' r='2.5'/%3E%3Ccircle cx='980' cy='520' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
    background-size: auto, auto, auto, 1440px 900px;
    color: #e7eef8;
}

body.ri-accueil-home .hero,
body.ri-accueil-home .stats-section,
body.ri-accueil-home #about,
body.ri-accueil-home #services,
body.ri-accueil-home #crowdfunding,
body.ri-accueil-home .events-section,
body.ri-accueil-home #news,
body.ri-accueil-home #publicites,
body.ri-accueil-home .contact-section {
    background: transparent !important;
}

body.ri-accueil-home .hero .ri-em,
body.ri-accueil-home .ri-em {
    color: var(--ri-leaf) !important;
    -webkit-text-fill-color: var(--ri-leaf) !important;
}

body.ri-accueil-home .section-heading,
body.ri-accueil-home .section-title,
body.ri-accueil-home #about,
body.ri-accueil-home #about p,
body.ri-accueil-home #about li,
body.ri-accueil-home #about h5,
body.ri-accueil-home .section-subtitle {
    color: #e7eef8 !important;
}

body.ri-accueil-home .section-subtitle,
body.ri-accueil-home #about .text-muted,
body.ri-accueil-home .text-muted {
    color: rgba(231, 238, 248, 0.72) !important;
}

body.ri-accueil-home .ri-duo {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

body.ri-accueil-home .ri-duo-lead {
    max-width: 40rem;
    margin: 0.8rem auto 2.4rem;
    color: rgba(231, 238, 248, 0.78);
    font-size: 1.05rem;
}

body.ri-accueil-home .ri-blocs {
    padding: 1rem 0 4.5rem;
}

body.ri-accueil-home .ri-bloc {
    position: relative;
    overflow: hidden;
    background: rgba(8, 24, 52, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    padding: 1.5rem 1.45rem 1.25rem;
    box-shadow: 0 18px 40px rgba(2, 8, 24, 0.28);
    backdrop-filter: blur(10px);
}

body.ri-accueil-home .ri-bloc h3 {
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    margin: 0.35rem 0 0.55rem;
    padding-right: 3rem;
}

body.ri-accueil-home .ri-bloc p {
    color: rgba(231, 238, 248, 0.78);
    margin-bottom: 1.1rem;
}

body.ri-accueil-home .ri-bloc-icon {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--ri-leaf);
    background: rgba(142, 211, 79, 0.12);
    border: 1px solid rgba(142, 211, 79, 0.28);
}

body.ri-accueil-home .ri-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 0.75rem 0.4rem;
    margin-bottom: 1rem;
}

body.ri-accueil-home .ri-meta span {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(231, 238, 248, 0.55);
}

body.ri-accueil-home .ri-meta strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.95rem;
}

body.ri-accueil-home .ri-bloc > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    float: right;
}

body.ri-accueil-home .ri-bloc > a:hover {
    border-color: var(--ri-leaf);
    color: var(--ri-leaf);
}

body.ri-accueil-home .ri-note {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding: 1.1rem 1.2rem;
    border-radius: 22px;
    background: rgba(8, 24, 52, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(231, 238, 248, 0.82);
}

body.ri-accueil-home .ri-note i {
    color: var(--ri-leaf);
    font-size: 1.15rem;
    margin-top: 0.15rem;
}

body.ri-accueil-home .ri-note p {
    margin: 0;
}

body.ri-accueil-home .card,
body.ri-accueil-home .event-card,
body.ri-accueil-home .crowdfunding-card,
body.ri-accueil-home .partenaire-item,
body.ri-accueil-home .contact-content {
    background: rgba(8, 24, 52, 0.78) !important;
    color: #e7eef8;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.ri-accueil-home .card .card-title,
body.ri-accueil-home .event-content h3,
body.ri-accueil-home .crowdfunding-card a {
    color: #fff !important;
}

body.ri-accueil-home .hero .btn-danger,
body.ri-accueil-home .crowdfunding-cta,
body.ri-accueil-home .btn-submit,
body.ri-accueil-home .navbar-ri .btn-header-login {
    background: linear-gradient(180deg, #8ed34f, #1f6b32) !important;
    border-color: transparent !important;
    color: #07210f !important;
}

body.ri-accueil-home .events-section .btn-outline-dark {
    color: #8ed34f !important;
    border-color: #8ed34f !important;
    background: rgba(7, 24, 51, 0.55);
    font-weight: 700;
}

body.ri-accueil-home .events-section .btn-outline-dark:hover,
body.ri-accueil-home .events-section .btn-outline-dark:focus {
    color: #07210f !important;
    background: #8ed34f !important;
    border-color: #8ed34f !important;
}

body.ri-accueil-home .form-group input,
body.ri-accueil-home .form-group textarea {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

body.ri-accueil-home .contact-info h3,
body.ri-accueil-home .contact-info p,
body.ri-accueil-home .form-group label {
    color: #e7eef8;
}

@media (max-width: 575.98px) {
    body.ri-accueil-home .ri-meta {
        grid-template-columns: 1fr;
    }
}

/* ——— Tableaux de bord : même fond, même police, même vert que le site public ——— */
body.ri-frame:not(.ri-accueil-home) {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    background-color: #071833;
    background-image:
        radial-gradient(920px 520px at 8% -8%, rgba(31, 107, 50, 0.45), transparent 60%),
        radial-gradient(780px 480px at 100% 8%, rgba(46, 130, 196, 0.28), transparent 55%);
    color: #e7eef8;
}

body.ri-frame:not(.ri-accueil-home) :is(h1, h2, h3, h4, h5, h6, p, a, button, label, td, th, li, span, small) {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

body.ri-frame:not(.ri-accueil-home) .ri-dash-spa__sheet,
body.ri-frame:not(.ri-accueil-home) .ri-surface,
body.ri-frame:not(.ri-accueil-home) .lws-card,
body.ri-frame:not(.ri-accueil-home) .card,
body.ri-frame:not(.ri-accueil-home) .ri-dash-metric {
    background: rgba(8, 24, 52, 0.88) !important;
    color: #e7eef8 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 22px;
}

body.ri-frame:not(.ri-accueil-home) .text-muted,
body.ri-frame:not(.ri-accueil-home) .ri-dash-metric__label,
body.ri-frame:not(.ri-accueil-home) .ri-dash-metric__hint,
body.ri-frame:not(.ri-accueil-home) .table {
    color: rgba(231, 238, 248, 0.78) !important;
}

body.ri-frame:not(.ri-accueil-home) .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e7eef8;
    --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

body.ri-frame:not(.ri-accueil-home) .form-control,
body.ri-frame:not(.ri-accueil-home) .form-select {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

body.ri-frame:not(.ri-accueil-home) .ri-dash-nav {
    background: rgba(8, 24, 52, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
}

body.ri-frame:not(.ri-accueil-home) .ri-dash-nav__link {
    color: #e7eef8;
}

body.ri-frame:not(.ri-accueil-home) .ri-dash-nav__link.is-active {
    background: linear-gradient(180deg, #8ed34f, #1f6b32);
    color: #07210f;
    border-color: transparent;
}

body.ri-frame:not(.ri-accueil-home) .btn-primary,
body.ri-frame:not(.ri-accueil-home) .btn-ri,
body.ri-frame:not(.ri-accueil-home) .btn-success {
    background: linear-gradient(180deg, #8ed34f, #1f6b32);
    border-color: transparent;
    color: #07210f;
}

body.ri-frame .ri-admin-link.active {
    background: rgba(142, 211, 79, 0.18);
    border-color: rgba(142, 211, 79, 0.4);
}

/* Plus aucune teinte orange : les états « warning » Bootstrap passent au vert du logo. */
body.ri-frame .text-warning,
body.ri-frame .link-warning {
    color: #8ed34f !important;
}

body.ri-frame .bg-warning,
body.ri-frame .badge.bg-warning,
body.ri-frame .badge.bg-warning.text-dark,
body.ri-frame .btn-warning,
body.ri-frame .alert-warning {
    background-color: #1f6b32 !important;
    border-color: #185628 !important;
    color: #ffffff !important;
}

body.ri-frame .border-warning {
    border-color: #1f6b32 !important;
}

/* Espace investisseur : fond clair, encre foncée, aucun texte perdu sur un panneau sombre. */
body.ri-frame.ri-espace-investisseur {
    background: #ffffff !important;
    background-image: none !important;
    color: #142033 !important;
}

body.ri-frame.ri-espace-investisseur main,
body.ri-frame.ri-espace-investisseur .ri-dash-spa,
body.ri-frame.ri-espace-investisseur .ri-dash-spa__sheet,
body.ri-frame.ri-espace-investisseur .ri-dash-spa__sheet-inner,
body.ri-frame.ri-espace-investisseur .ri-surface,
body.ri-frame.ri-espace-investisseur .lws-card,
body.ri-frame.ri-espace-investisseur .card,
body.ri-frame.ri-espace-investisseur .ri-dash-metric,
body.ri-frame.ri-espace-investisseur .ri-dash-panel,
body.ri-frame.ri-espace-investisseur .ri-dash-table-wrap,
body.ri-frame.ri-espace-investisseur .modal-content,
body.ri-frame.ri-espace-investisseur .list-group-item,
body.ri-frame.ri-espace-investisseur .border.rounded-3,
body.ri-frame.ri-espace-investisseur .bg-white {
    background: #ffffff !important;
    color: #142033 !important;
    border-color: #e6e6e6 !important;
}

body.ri-frame.ri-espace-investisseur .ri-dash-spa__hero-bar {
    background: #ffffff !important;
    color: #142033 !important;
    border: 1px solid #e6e6e6 !important;
    box-shadow: 0 10px 28px rgba(20, 32, 51, 0.05);
}

body.ri-frame.ri-espace-investisseur main .ri-dash-spa__maintitle,
body.ri-frame.ri-espace-investisseur main .ri-dash-section-head h2,
body.ri-frame.ri-espace-investisseur main h1,
body.ri-frame.ri-espace-investisseur main h2,
body.ri-frame.ri-espace-investisseur main h3,
body.ri-frame.ri-espace-investisseur main .fw-semibold,
body.ri-frame.ri-espace-investisseur main strong {
    color: #142033 !important;
}

body.ri-frame.ri-espace-investisseur main .ri-dash-spa__subtitle,
body.ri-frame.ri-espace-investisseur main .ri-dash-metric__hint,
body.ri-frame.ri-espace-investisseur main .ri-dash-metric__label,
body.ri-frame.ri-espace-investisseur main .text-muted,
body.ri-frame.ri-espace-investisseur main .text-secondary,
body.ri-frame.ri-espace-investisseur main .small,
body.ri-frame.ri-espace-investisseur main label {
    color: #3e4c5e !important;
}

body.ri-frame.ri-espace-investisseur .ri-dash-spa__hero-meta,
body.ri-frame.ri-espace-investisseur .text-ri-vert,
body.ri-frame.ri-espace-investisseur .ri-dash-metric__value.text-ri-vert {
    color: #1f6b32 !important;
}

body.ri-frame.ri-espace-investisseur .ri-dash-metric__value.text-primary {
    color: #0f6cbd !important;
}

body.ri-frame.ri-espace-investisseur .ri-dash-nav {
    background: #ffffff !important;
    border-color: #e6e6e6 !important;
}

body.ri-frame.ri-espace-investisseur .ri-dash-nav__link {
    color: #142033 !important;
}

body.ri-frame.ri-espace-investisseur .ri-dash-nav__link.is-active {
    background: #1f6b32 !important;
    color: #ffffff !important;
}

body.ri-frame.ri-espace-investisseur .ri-dash-metric__icon {
    background: #ffffff !important;
    color: #142033 !important;
    border: 1px solid #e6e6e6;
}

body.ri-frame.ri-espace-investisseur .ri-dash-section-head::before {
    background: #142033;
}

body.ri-frame.ri-espace-investisseur .table,
body.ri-frame.ri-espace-investisseur .table th,
body.ri-frame.ri-espace-investisseur .table td,
body.ri-frame.ri-espace-investisseur .table thead.table-light th {
    color: #142033 !important;
    background-color: transparent;
    --bs-table-color: #142033;
    --bs-table-bg: transparent;
    --bs-table-border-color: #e6e6e6;
}

body.ri-frame.ri-espace-investisseur .table thead.table-light,
body.ri-frame.ri-espace-investisseur .table thead.table-light th {
    background: #ffffff !important;
    color: #142033 !important;
}

body.ri-frame.ri-espace-investisseur .form-control,
body.ri-frame.ri-espace-investisseur .form-select,
body.ri-frame.ri-espace-investisseur .input-group-text {
    background: #ffffff !important;
    color: #142033 !important;
    border-color: #e0e0e0 !important;
}

body.ri-frame.ri-espace-investisseur .form-control::placeholder {
    color: #5c6b7a !important;
}

body.ri-frame.ri-espace-investisseur .ri-dash-spa__hero-actions .btn-outline-secondary,
body.ri-frame.ri-espace-investisseur .btn-outline-secondary {
    color: #142033 !important;
    border-color: #d0d0d0 !important;
    background: #ffffff !important;
}

body.ri-frame.ri-espace-investisseur main a:not(.btn):not(.nav-link):not(.badge) {
    color: #185628;
}

body.ri-frame.ri-espace-investisseur .btn-ri-vert,
body.ri-frame.ri-espace-investisseur .btn-success,
body.ri-frame.ri-espace-investisseur .btn-primary {
    color: #07210f !important;
}

/* Mode sombre : fond neutre, écrits blancs. */
body.ri-frame.ri-espace-investisseur.ri-theme-sombre {
    background: #141414 !important;
    background-image: none !important;
    color: #ffffff !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre main,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-spa,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-spa__sheet,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-spa__sheet-inner,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-surface,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .lws-card,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .card,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-metric,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-panel,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-table-wrap,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .modal-content,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .list-group-item,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .border.rounded-3,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .bg-white,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-spa__hero-bar,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-nav {
    background: #1c1c1c !important;
    color: #ffffff !important;
    border-color: #3a3a3a !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .ri-dash-spa__maintitle,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .ri-dash-section-head h2,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main h1,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main h2,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main h3,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .fw-semibold,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main strong,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .ri-dash-spa__subtitle,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .ri-dash-metric__hint,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .ri-dash-metric__label,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .ri-dash-metric__value,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .text-muted,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .text-secondary,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .text-primary,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .text-ri-vert,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main .small,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre main label,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-spa__hero-meta,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-nav__link,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .table,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .table th,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .table td {
    color: #ffffff !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre .table thead.table-light,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .table thead.table-light th {
    background: #1c1c1c !important;
    color: #ffffff !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre .form-control,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .form-select,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .input-group-text {
    background: #141414 !important;
    color: #ffffff !important;
    border-color: #3a3a3a !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre .form-control::placeholder {
    color: #d0d0d0 !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre .btn-outline-secondary,
body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-spa__hero-actions .btn-outline-secondary {
    color: #ffffff !important;
    border-color: #5a5a5a !important;
    background: #1c1c1c !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre main a:not(.btn):not(.nav-link):not(.badge) {
    color: #ffffff !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-nav__link.is-active {
    background: #ffffff !important;
    color: #142033 !important;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-metric__icon {
    background: #1c1c1c !important;
    color: #ffffff !important;
    border-color: #3a3a3a;
}

body.ri-frame.ri-espace-investisseur.ri-theme-sombre .ri-dash-section-head::before {
    background: #ffffff;
}
