@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== HEADER STYLE FINTECH ===== */
.app-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeDown 0.8s ease;
}

.app-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #5144ff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-family: emoji;
}

.app-header p {
    font-size: 15px;
    color: #9e9e9e;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
    font-family: fangsong;
}

.app-header p span {
    color: #c3b10c;
    font-weight: 600;
}

/* Animation douce */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CARTE SONDAGE ===== */
.poll-box {
    width: 490px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    animation: slideIn 0.6s ease;
    text-align: center;
}

/* ===== PROGRESS BAR ===== */
.progress-container {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 20px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 20px;
    text-align: right;
}

/* ===== QUESTION ===== */
.poll-box h2 {
    font-size: 19px;
    color: #333;
    margin-bottom: 20px;
}

/* ===== OPTIONS ===== */
.poll-box label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #f7f8fc;
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #e6e9f5;
}

.poll-box label:hover {
    background: #e4e8ff;
    transform: scale(1.02);
}

.poll-box input[type="radio"] {
    accent-color: #667eea;
    margin-right: 12px;
}

/* ===== TEXTAREA ===== */
textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #ddd;
    resize: none;
    font-size: 14px;
}

/* ===== BOUTON ===== */
button {
    margin-top: 18px;
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(102,126,234,0.4);
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 8px 20px rgba(102,126,234,0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade {
    animation: fade 0.4s ease;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE MOBILE ===== */
@media screen and (max-width: 400px) {
    .poll-box { width: 90%; padding: 20px; }
    .app-header h1 { font-size: 24px; }
}
