:root {
    --primary-color: #2563EB;
    /* Blue */
    --primary-dark: #1E40AF;
    /* Dark Blue */
    --secondary-color: #10B981;
    /* Green */
    --bg-color: #F8FAFC;
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --error: #D32F2F;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(circle at bottom left, #D1FAE5, var(--bg-color) 70%);
}

.logo {
    color: var(--primary-dark);
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-card h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #EEE;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: var(--white);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.piege-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: center;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.btn {
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #EEE;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #DDD;
}

.btn-block {
    width: 100%;
    display: block;
}

.error-msg {
    color: var(--error);
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    min-height: 20px;
}

/* App Header */
.app-header {
    background: var(--white);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.app-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 20px;
}

.app-card {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #EEE;
    border-radius: 5px;
    margin: 2rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.question-block {
    display: none;
}

.question-block.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-title {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.q-label {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 2rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #EEE;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.radio-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.5);
    cursor: pointer;
}

.radio-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #EEE;
}

#success-msg {
    text-align: center;
    padding: 4rem 2rem;
}

#success-msg .icon {
    font-size: 5rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

#success-msg h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Hover uniquement sur le champ e-mails admin comme demandé */
#invite-emails {
    transition: border-color 0.3s, box-shadow 0.3s;
}

#invite-emails:hover,
#invite-emails:focus {
    border-color: var(--primary-color) !important;
    outline: none;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}