/* Variables de couleurs basées sur ton logo */
:root {
    --bg-dark: #030a1c;
    --card-bg: #061129;
    --border-color: #1a2a4a;
    --input-bg: #0a1835;
    --accent-blue: #0084ff;
    --text-gray: #8a99b1;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    padding: 20px; /* Espace pour les petits écrans */
}

.app-card {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    margin-top: 50px; /* Laisse de la place pour le logo qui dépasse */
}

.logo-container {
    width: 130px;
    height: 130px;
    margin: -95px auto 15px auto; /* Positionnement au-dessus de la carte */
    border-radius: 50%;
    border: 5px solid var(--bg-dark);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: var(--bg-dark);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 24px;
    margin: 10px 0 5px 0;
    color: #fff;
}

.slogan {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.secret-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    color: #00d4ff;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    height: 180px;
    background: var(--input-bg);
    border: 1px solid #1e3a6d;
    border-radius: 10px;
    padding: 15px;
    color: white;
    font-size: 16px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: var(--accent-blue);
}

button {
    width: 100%;
    background: linear-gradient(45deg, #0056b3, #0084ff);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 132, 255, 0.4);
}

.security-note {
    margin-top: 20px;
    font-size: 11px;
    color: #5c6d8a;
    line-height: 1.4;
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */

/* Pour les téléphones portables (écrans de moins de 480px) */
@media (max-width: 480px) {
    .app-card {
        padding: 20px;
        margin-top: 60px;
    }

    .logo-container {
        width: 110px;
        height: 110px;
        margin-top: -75px;
    }

    h1 {
        font-size: 20px;
    }

    textarea {
        height: 150px;
    }
}


/* Style de la Modale */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(3, 10, 28, 0.9); /* Fond bleu nuit transparent */
    backdrop-filter: blur(8px);
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    background: #061129;
    border: 1px solid #1a2a4a;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-icon {
    font-size: 40px;
    color: #0084ff;
    margin-bottom: 15px;
}

.modal-box h3 { margin: 0 0 10px 0; font-size: 20px; }
.modal-box p { color: #8a99b1; font-size: 15px; line-height: 1.5; }

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-primary { background: #0084ff; color: white; border: none; padding: 12px; border-radius: 8px; flex: 1; font-weight: bold; cursor: pointer; }
.btn-secondary { background: rgba(255,255,255,0.05); color: #8a99b1; border: 1px solid #1a2a4a; padding: 12px; border-radius: 8px; flex: 1; font-weight: bold; cursor: pointer; }

.btn-primary:hover { background: #0055d4; }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(3, 10, 28, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
/* ... ajoute le reste du CSS de la modale donné précédemment ... */

.btn-fb {
    background-color: #1877F2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: background 0.3s;
}

.btn-fb:hover {
    background-color: #166fe5;
}