/* ==========================================================================
   BlockProfit — Feuille de style principale
   Thème : fintech nocturne néon (fond vert-noir, accent vert lime).
   Organisation :
     1. Variables et base
     2. Navigation et menu mobile
     3. Composants (cartes, boutons, formulaires, tableaux)
     4. Blocs métier (dépôt, plans, réseau, affiliation)
     5. Animations
     6. Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables et base
   -------------------------------------------------------------------------- */

:root {
    --bg: #07100e;
    --panel: #101b18;
    --panel2: #15241f;
    --line: #28463a;
    --text: #f5f7f5;
    --muted: #b9cec5;
    --green: #7cff4f;
    --mint: #00d084;
    --danger: #ff6b6b;
    --gold: #f5b942;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 80% 0, #183c2a 0, #07100e 45%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: rgba(124, 255, 79, 0.3);
    color: #fff;
}

/* Texte secondaire : previously trop sombre, désormais bien lisible. */
.muted,
.lead {
    color: var(--muted);
}

a {
    color: var(--green);
}

code {
    color: var(--green);
    word-break: break-all;
}

/* --------------------------------------------------------------------------
   2. Navigation et menu mobile
   -------------------------------------------------------------------------- */

.navbar {
    background: rgba(7, 16, 14, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.brand img {
    width: 170px;
}

.btn-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(124, 255, 79, 0.08);
    color: var(--green);
}

/* Icône burger animée (3 barres -> croix). */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 14px;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.burger span:nth-child(1) {
    transform: translateY(0);
}

.burger span:nth-child(3) {
    transform: translateY(-8px);
}

#mobileMenuToggle[aria-expanded="true"] .burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#mobileMenuToggle[aria-expanded="true"] .burger span:nth-child(2) {
    opacity: 0;
}

#mobileMenuToggle[aria-expanded="true"] .burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu .modal-content {
    background: linear-gradient(160deg, #173b25, #0b1713);
    border: 1px solid var(--line);
    border-radius: 0;
}

.mobile-menu .modal-header {
    border-bottom: 1px solid var(--line);
}

.menu-logo {
    width: 150px;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.menu-link i {
    width: 24px;
    text-align: center;
    color: var(--green);
}

.menu-link:hover,
.menu-link:focus-visible {
    background: rgba(124, 255, 79, 0.1);
    border-color: var(--line);
    color: #fff;
    transform: translateX(4px);
}

.menu-link-danger i {
    color: var(--danger);
}

.menu-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   3. Composants
   -------------------------------------------------------------------------- */

.glass,
.card {
    background: linear-gradient(145deg, rgba(21, 36, 31, 0.96), rgba(10, 19, 17, 0.96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 24px;
}

.eyebrow {
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
}

.btn-green {
    background: var(--green);
    color: #07100e;
    border: 0;
    font-weight: 800;
}

.btn-green:hover,
.btn-green:focus {
    background: #a2ff80;
    color: #07100e;
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: #486257;
}

.btn-outline-light:hover {
    background: var(--green);
    border-color: var(--green);
    color: #07100e;
}

.form-label {
    font-weight: 600;
    color: var(--text);
}

.form-control,
.form-select {
    background: #0b1713;
    border: 1px solid #2a4538;
    color: #fff;
}

.form-control:focus,
.form-select:focus {
    background: #0b1713;
    border-color: var(--green);
    box-shadow: 0 0 0 0.2rem rgba(124, 255, 79, 0.12);
    color: #fff;
}

.form-control::placeholder {
    color: #8ea79d;
    opacity: 1;
}

.form-text {
    color: var(--muted);
}

.stat {
    font-size: 1.9rem;
    font-weight: 800;
}

.stat-card {
    min-height: 112px;
}

.iconbox {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(124, 255, 79, 0.12);
    display: grid;
    place-items: center;
    color: var(--green);
}

.nav-pills .nav-link {
    color: var(--muted);
}

.nav-pills .nav-link.active {
    background: var(--green);
    color: #07100e;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--line);
}

.badge-soft {
    background: rgba(124, 255, 79, 0.14);
    color: var(--green);
}

.count {
    font-variant-numeric: tabular-nums;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.offcanvas {
    background: #0b1713;
    border-left: 1px solid var(--line);
}

/* Bouton "Copier" (adresses et liens de dépôt). */
.btn-copy {
    background: rgba(124, 255, 79, 0.12);
    border: 1px solid rgba(124, 255, 79, 0.35);
    color: var(--green);
    font-weight: 700;
    white-space: nowrap;
}

.btn-copy:hover,
.btn-copy:focus {
    background: var(--green);
    border-color: var(--green);
    color: #07100e;
}

.btn-copy.is-copied {
    background: var(--mint);
    border-color: var(--mint);
    color: #04150f;
}

.input-group .btn-copy {
    border-radius: 0 12px 12px 0;
}

/* --------------------------------------------------------------------------
   4. Blocs métier
   -------------------------------------------------------------------------- */

.hero {
    padding: 58px 0 50px;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 0.98;
    font-weight: 850;
    letter-spacing: -0.06em;
}

.hero h1 span {
    color: var(--green);
}

.launch-card {
    position: relative;
    z-index: 2;
}

/* Sélecteur Investissement / Retrait (style « exchange »). */
.type-switch {
    display: inline-flex;
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(7, 16, 14, 0.6);
}

.type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-option span {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.type-option input:checked + span {
    background: var(--green);
    color: #07100e;
}

.type-option input:focus-visible + span {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Panneau de dépôt (adresse, QR, lien d'investissement). */
.deposit-panel {
    background: rgba(124, 255, 79, 0.04);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.deposit-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.deposit-panel-head > div {
    flex: 1 1 auto;
    min-width: 0;
}

.deposit-hint {
    margin-top: 10px;
    color: var(--gold);
    font-size: 0.78rem;
}

/* Détail d'une valeur copiable (adresse, lien). */
.deposit-details {
    flex: 1 1 auto;
    min-width: 0;
}

.deposit-label {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.deposit-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.deposit-value code {
    flex: 1 1 160px;
    min-width: 0;
    font-size: 0.85rem;
}

.deposit-link {
    flex: 1 1 160px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--green);
    font-size: 0.85rem;
}

.qr-thumb {
    width: 105px;
    height: 105px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.network-card {
    display: flex;
    flex-direction: column;
}

.network-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.network-logo.tron {
    background: #e94655;
}

.network-logo.bnb {
    background: #f5b942;
    color: #251a02;
}

.network-logo.usdt_bep20 {
    background: #21c09b;
    color: #06251d;
}

/* Étapes « comment ça marche ». */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-index {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(124, 255, 79, 0.14);
    border: 1px solid rgba(124, 255, 79, 0.35);
    color: var(--green);
    font-weight: 800;
}

.plan-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-7px);
    border-color: var(--green);
}

.plan-icon {
    font-size: 1.8rem;
    color: var(--green);
    margin-bottom: 18px;
}

.referral-level {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
}

.referral-level strong {
    color: var(--green);
}

.community-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid #385a46;
    border-radius: var(--radius);
    background: linear-gradient(100deg, rgba(124, 255, 79, 0.12), rgba(0, 208, 132, 0.04));
}

.tree {
    border-left: 2px solid #375e48;
    padding-left: 20px;
}

.tree-node {
    position: relative;
}

.tree-node:before {
    content: "";
    position: absolute;
    left: -22px;
    top: 18px;
    width: 18px;
    border-top: 2px solid #375e48;
}

/* --------------------------------------------------------------------------
   5. Animations
   -------------------------------------------------------------------------- */

.reveal {
    animation: rise 0.65s both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.pulse {
    animation: pulse 2.4s infinite;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 12px rgba(124, 255, 79, 0);
    }
}

@keyframes float {
    50% {
        transform: translateY(-9px);
    }
}

@keyframes spin {
    to {
        transform: rotate(338deg);
    }
}

@keyframes spinReverse {
    to {
        transform: rotate(-382deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Entrée du contenu de la modal mobile. */
.mobile-menu .modal-content {
    animation: fadeUp 0.35s ease both;
}

.mobile-menu.show .modal-dialog {
    animation: slideIn 0.32s ease both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Retour visuel sur les éléments cliquables. */
.btn,
.menu-link,
.network-tile,
.form-control,
.form-select {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

/* Étoiles de la zone crypto. */
.crypto-orbit {
    height: 330px;
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: -18px;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(124, 255, 79, 0.28);
    border-radius: 50%;
    transform: rotate(-22deg);
}

.orbit-one {
    width: 265px;
    height: 125px;
    animation: spin 14s linear infinite;
}

.orbit-two {
    width: 240px;
    height: 220px;
    animation: spinReverse 18s linear infinite;
}

.coin {
    position: absolute;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    animation: float 4s ease-in-out infinite;
}

.coin-main {
    width: 92px;
    height: 92px;
    background: linear-gradient(145deg, #a2ff80, #00a968);
    color: #07100e;
    font-size: 2.5rem;
}

.coin-bnb {
    width: 54px;
    height: 54px;
    background: #f5b942;
    color: #241b06;
    top: 45px;
    right: 48px;
    font-size: 0.7rem;
}

.coin-trx {
    width: 48px;
    height: 48px;
    background: #e94655;
    color: #fff;
    bottom: 58px;
    left: 42px;
    font-size: 0.7rem;
    animation-delay: 0.7s;
}

.coin-usdt {
    width: 50px;
    height: 50px;
    background: #21c09b;
    color: #06251d;
    top: 120px;
    left: 12px;
    font-size: 1.7rem;
    animation-delay: 1.2s;
}

/* --------------------------------------------------------------------------
   6. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 576px) {
    .brand img {
        width: 145px;
    }

    .hero {
        padding-top: 30px;
    }

    .card {
        padding: 18px;
    }

    .community-banner {
        display: block;
    }

    .community-banner .btn {
        margin-top: 16px;
    }

    .crypto-orbit {
        height: 260px;
    }

    .orbit-one {
        width: 220px;
    }

    .orbit-two {
        height: 180px;
        width: 200px;
    }

    .deposit-panel-head {
        flex-direction: column;
    }

    .type-switch {
        display: flex;
        width: 100%;
    }

    .type-option {
        flex: 1 1 50%;
    }

    .type-option span {
        justify-content: center;
        width: 100%;
    }

    .btn-copy {
        width: 100%;
    }
}

/* Respect des préférences de réduction des animations. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
