:root {
    --primary: #d81b60;
    --secondary: #ff4081;
    --accent: #fbc02d;
    --bg: #fff0f5;
    --text: #4a4a4a;
    --white: #ffffff;
    
    /* Dark Mode Vars */
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-dark: #ffffff;
    --green: #00e676;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(rgba(255, 240, 245, 0.85), rgba(255, 240, 245, 0.7)), url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text);
    margin: 0; padding: 0; line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* === PARTIE 1 : LANDING PAGE RASSURANTE === */

header#main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.container { max-width: 700px; margin: 0 auto; padding: 0 20px; text-align: center; }
.logo { font-size: 26px; color: var(--primary); display: flex; align-items: center; justify-content: center; gap: 10px; }
.heart-icon { color: var(--secondary); animation: heartbeat 1.5s infinite; }
@keyframes heartbeat { 0% { transform: scale(1); } 10% { transform: scale(1.1); } 20% { transform: scale(1); } 100% { transform: scale(1); } }
.subtitle { font-size: 13px; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.main-content {
    background: var(--white); margin-top: 40px; margin-bottom: 40px; padding: 40px 20px;
    border-radius: 15px; box-shadow: 0 10px 30px rgba(216, 27, 96, 0.1); border: 1px solid #ffeef4;
}

h1 { color: var(--primary); font-size: 32px; margin-bottom: 15px; line-height: 1.2; }
.highlight { color: var(--secondary); font-style: italic; }
.sub-headline { font-size: 18px; color: #666; margin-bottom: 30px; }

.features { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; }
.feature { background: #fff0f6; padding: 8px 15px; border-radius: 20px; font-weight: 500; color: var(--primary); display: flex; align-items: center; gap: 8px; font-size: 14px; }
.alert-box { background: #fffde7; border: 1px solid #fff59d; color: #f57f17; padding: 15px; border-radius: 8px; margin-bottom: 30px; }

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary)); color: var(--white);
    border: none; padding: 18px 40px; font-size: 20px; font-weight: 700; border-radius: 50px;
    cursor: pointer; width: 100%; max-width: 400px; transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase; box-shadow: 0 5px 15px rgba(216, 27, 96, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(216, 27, 96, 0.4); }

.btn-option {
    display: flex; align-items: center; gap: 15px; width: 100%; padding: 18px; margin: 12px 0;
    background: var(--white); border: 1px solid #ffcdd2; border-radius: 50px;
    font-size: 18px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-align: left; color: var(--text); padding-left: 30px;
}
.btn-option:hover { border-color: var(--secondary); background: #fff0f6; transform: scale(1.02); }
.trust-bar { margin-top: 25px; padding-top: 15px; border-top: 1px solid #eee; display: flex; justify-content: center; gap: 20px; font-size: 12px; color: #999; }
.trust-bar i { color: var(--secondary); }
.hidden { display: none; }
.progress-bar { background: #eee; height: 6px; border-radius: 3px; margin-bottom: 30px; }
.progress-fill { height: 100%; background: var(--secondary); width: 0%; transition: width 0.5s; }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid var(--secondary); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
footer { text-align: center; padding: 20px; font-size: 12px; color: #999; }
footer a { color: #888; text-decoration: none; }


/* === PARTIE 2 : DASHBOARD DARK MODE (NOUVEAU) === */

.dashboard-view {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-dark); /* Fond noir total */
    color: var(--text-dark);
    padding: 0;
    overflow-y: auto;
    z-index: 9999; /* Par dessus tout */
    font-family: 'Roboto', sans-serif;
}

.app-header {
    background: #000; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333;
}
.app-logo { font-weight: 700; font-size: 20px; color: var(--primary); }
.app-icons { position: relative; font-size: 22px; color: #fff; }
.notif-badge { position: absolute; top: -5px; right: -5px; background: red; color: white; font-size: 10px; border-radius: 50%; padding: 2px 5px; }

.flash-banner {
    background: linear-gradient(90deg, #d81b60, #8e24aa);
    padding: 15px 20px; margin: 20px; border-radius: 10px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.4);
}
.flash-content strong { font-size: 15px; display: block; }
.flash-content span { font-size: 12px; opacity: 0.9; }
.btn-flash { background: #fff; color: var(--primary); border: none; padding: 8px 15px; border-radius: 20px; font-weight: 700; cursor: pointer; }

.section-title { font-size: 15px; margin: 0 20px 15px; color: #888; font-weight: 500; font-family: sans-serif; }

.profiles-grid {
    display: flex; gap: 15px; padding: 0 20px 20px;
    flex-wrap: wrap; justify-content: center; /* Grille centrée */
}

.card {
    background: var(--card-bg); border-radius: 12px; width: 150px; overflow: hidden;
    flex-shrink: 0; border: 1px solid #333;
}
.card-img { position: relative; height: 170px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge-live { position: absolute; top: 10px; left: 10px; background: #ff0000; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

.card-info { padding: 10px; text-align: center; }
.card-info h3 { margin: 0 0 10px; font-size: 13px; color: #fff; font-family: sans-serif; display: flex; align-items: center; justify-content: center; gap: 5px; }
.dot-green { width: 8px; height: 8px; background: var(--green); border-radius: 50%; display: inline-block; }

.btn-action { width: 100%; padding: 8px; border: none; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; background: var(--primary); color: #fff; }
.btn-action.secondary { background: #333; color: #fff; border: 1px solid #555; }
.btn-action.lock { background: #333; color: var(--primary); border: 1px solid var(--primary); }
.card.blur .card-img img { filter: blur(10px); }

/* Toast */
.toast-notification {
    position: fixed; bottom: 20px; right: 20px; background: #1e1e1e; border: 1px solid #333;
    border-radius: 12px; padding: 15px; width: 280px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.5s ease-out; border-left: 4px solid var(--primary); display: none; /* Masqué par défaut */
}
@keyframes slideIn { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: #fff; }
.status-indicator { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 5px var(--green); }
.close-toast { cursor: pointer; color: #666; font-size: 16px; }
.toast-body { font-size: 13px; color: #ccc; margin-bottom: 15px; font-style: italic; line-height: 1.4; }
.toast-actions { display: flex; gap: 10px; }
.btn-accept { flex: 1; background: var(--primary); color: #fff; border: none; padding: 8px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-later { flex: 1; background: transparent; color: #888; border: 1px solid #444; padding: 8px; border-radius: 6px; cursor: pointer; }