@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

:root {
    --bg-dark: #0a0b10;
    --card-bg: rgba(17, 24, 39, 0.7);
    --cyan-talis: #22d3ee;
    --matrix-green: #00FF41; /* Couleur Matrix officielle */
    --border-gray: #374151;
}

/* Base Responsive */
html {
    font-size: 16px; /* 1rem = 16px */
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8rem 1.25rem 4rem 1.25rem; /* 1.25rem = 20px */
}

/* --- CARTE DU CREATEUR --- */
.creator-card {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.4), rgba(17, 24, 39, 0.8));
    backdrop-filter: blur(1rem);
    border: 0.0625rem solid rgba(255, 255, 255, 0.05); /* 1px garde le trait net */
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 34.375rem; /* 550px */
    width: 100%;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.status-badge {
    font-size: 0.5625rem; /* 9px */
    font-weight: 900;
    text-transform: uppercase;
    color: var(--cyan-talis);
    background: rgba(34, 211, 238, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 6.25rem;
    border: 0.0625rem solid rgba(34, 211, 238, 0.2);
    letter-spacing: 0.1em;
}

.form-title {
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
}

.subtitle {
    color: #9ca3af;
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.text-cyan { color: var(--cyan-talis); }

/* --- INPUTS & GROUPS --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 7.5rem; /* 120px */
    gap: 1.5rem;
}

label {
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9ca3af;
}

input, textarea {
    background: rgba(3, 7, 18, 0.6);
    border: 0.0625rem solid var(--border-gray);
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    color: white;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

input:focus, textarea:focus {
    border-color: var(--cyan-talis);
    box-shadow: 0 0 0.9375rem rgba(34, 211, 238, 0.1);
    background: rgba(3, 7, 18, 0.8);
}

/* --- LOGO UPLOAD --- */
.upload-area {
    background: rgba(3, 7, 18, 0.4);
    border: 0.125rem dashed var(--border-gray);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-placeholder i {
    font-size: 2rem;
    color: var(--cyan-talis);
    margin-bottom: 1rem;
}

#preview-container {
    position: relative;
    width: 6.25rem; /* 100px */
    height: 6.25rem;
    margin: 0 auto;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 0.125rem solid var(--cyan-talis);
}

/* --- SÉCURITÉ & BOUTON --- */
.security-section {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.05);
}

.section-label {
    font-size: 0.75rem; /* 12px */
    font-weight: 900;
    color: var(--cyan-talis);
    margin-bottom: 1.5rem;
}

.checkmark {
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    background: rgba(3, 7, 18, 0.8);
    border: 0.0625rem solid var(--border-gray);
}

.hub-button.primary {
    width: 100%;
    background: white;
    color: black;
    font-size: 1rem;
    font-weight: 900;
    height: 3.4375rem; /* 55px */
    border-radius: 6.1875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- TALIS TERMINAL STYLE (FUSIONNÉ) --- */
.terminal-wrapper {
    margin-bottom: 3.125rem; 
    margin-top: 2.5rem; 
    padding: 0 1.25rem;
}

.talis-terminal {
    background: #050505;
    border: 0.0625rem solid rgba(0, 242, 255, 0.2);
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.5), 0 0 15px rgba(0, 242, 255, 0.05);
}

.terminal-header {
    background: #111;
    padding: 0.625rem 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #222;
}

/* On garde tes contrôles de fenêtre (points de couleur) */
.terminal-controls { display: flex; gap: 6px; }
.dot { height: 10px; width: 10px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title { color: #666; font-size: 0.75rem; letter-spacing: 1px; }
.badge { font-size: 0.65rem; color: #00f2ff; border: 1px solid #00f2ff; padding: 2px 8px; border-radius: 4px; }

.terminal-content {
    padding: 1.25rem 2.5rem; /* 40px à gauche pour PC */
    height: 12.5rem;
    overflow-y: auto;
    font-size: 0.85rem;
    color: #00FF41; /* VERT MATRIX PAR DÉFAUT */
    line-height: 1.6;
    text-shadow: 0 0 0.3125rem rgba(0, 255, 65, 0.3);
}

/* --- LOGS & ANIMATIONS (ON GARDE TOUT) --- */
.timestamp { color: #008F11; margin-right: 0.9375rem; font-weight: bold; }

.log-info { color: #00FF41; text-shadow: 0 0 8px rgba(0, 255, 65, 0.4); }
.log-success { color: #00FF41; text-shadow: 0 0 12px rgba(0, 255, 65, 0.6); font-weight: bold; }
.log-warning { color: #ffbd2e; text-shadow: 0 0 8px rgba(255, 189, 46, 0.4); }
.log-error { color: #ff5f56; text-shadow: 0 0 8px rgba(255, 95, 86, 0.4); font-weight: bold; }

/* Ton badge Mainnet spécial */
.status-badge.mainnet {
    color: #27c93f;
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.4);
    box-shadow: 0 0 10px rgba(39, 201, 63, 0.1);
}

/* Ton animation de pulsation */
.badge-busy { animation: terminal-pulse 1.5s infinite; }

@keyframes terminal-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0.4); border-color: #00f2ff; }
    70% { box-shadow: 0 0 0 6px rgba(0, 242, 255, 0); border-color: #00f2ff88; }
    100% { box-shadow: 0 0 0 0 rgba(0, 242, 255, 0); border-color: #00f2ff; }
}

#terminal-body p {
    margin: 6px 0;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: all 0.2s;
}

#terminal-body p:hover {
    background: rgba(0, 255, 65, 0.05);
    border-left: 2px solid #00FF41;
}

/* Scrollbar */
.terminal-content::-webkit-scrollbar { width: 5px; }
.terminal-content::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }

/* --- LE SEUL BLOC À REMPLACER (DE @media JUSQU'À LA FIN) --- */
@media screen and (max-width: 600px) {
    html { font-size: 14px !important; }

    .main-content {
        padding: 4rem 0.5rem !important;
    }

    .creator-card {
        padding: 1.5rem !important; /* On divise le padding par 2 */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* ON TUE LA GRILLE - MÉTHODE RADICALE */
    .grid-layout {
        display: block !important; /* On force le mode bloc (empilement) */
        width: 100% !important;
    }

    .grid-layout .input-group {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        display: block !important;
    }

    /* Empêche les inputs de déborder */
    input, textarea, .upload-area {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important; /* Crucial pour les champs number */
        box-sizing: border-box !important;
    }

    .form-title { font-size: 1.8rem !important; }

    .terminal-content {
        padding: 1rem 1.5rem !important;
        font-size: 0.75rem !important;
    }

    .timestamp { display: none !important; }
}
