:root {
    /* Business Talents Brand Colors */
    --bt-blue: #004D99; /* Deep blue approximation from typical logo */
    --bt-red: #E63946;  /* Vibrant red */
    
    /* DISC Colors */
    --disc-d: #FF3B30; /* Dominant - Red */
    --disc-i: #FFCC00; /* Influent - Yellow */
    --disc-s: #34C759; /* Stable - Green */
    --disc-c: #007AFF; /* Conforme - Blue */

    /* Theming & UI */
    --bg-gradient: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-color: #333333;
    --text-light: #555555;
    --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* --- Animated Abstract Background Shapes --- */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 15s infinite alternate ease-in-out;
}

.shape1 {
    top: -10%; left: -10%; width: 40vw; height: 40vw;
    background: rgba(0, 77, 153, 0.3); /* BT Blue */
}

.shape2 {
    bottom: -10%; right: -10%; width: 50vw; height: 50vw;
    background: rgba(230, 57, 70, 0.2); /* BT Red */
    animation-delay: -5s;
}

.shape3 {
    top: 40%; left: 60%; width: 30vw; height: 30vw;
    background: rgba(255, 204, 0, 0.15); /* Yellow touch */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

/* --- Layout --- */
.app-container {
    width: 100%;
    max-width: 900px;
    margin-top: 20px;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--bt-blue);
    letter-spacing: -0.5px;
}

/* --- Glassmorphism Core --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 30px;
    margin-bottom: 20px;
}

/* --- Views Management --- */
.view {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.view.active-view {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: var(--bt-blue);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 77, 153, 0.4);
}

.primary-btn:hover:not(:disabled) {
    background: #003a7a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 77, 153, 0.6);
}

.secondary-btn {
    background: rgba(0,0,0,0.05);
    color: var(--text-color);
}
.secondary-btn:hover {
    background: rgba(0,0,0,0.1);
}

.btn.disabled, .btn:disabled {
    background: #cccccc !important;
    color: #888888;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* --- Form Styles --- */
.modern-form .input-group {
    margin-bottom: 20px;
    text-align: left;
}

.modern-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--bt-blue);
    font-size: 0.9rem;
}

.modern-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255,255,255,0.8);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.modern-form input:focus {
    outline: none;
    border-color: var(--bt-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 77, 153, 0.15);
}

.intro-text h2 {
    margin-bottom: 15px;
    color: var(--bt-blue);
}

.instructions-card {
    background: rgba(0, 77, 153, 0.05);
    border-left: 4px solid var(--bt-blue);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    text-align: left;
}

.instructions-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--bt-blue);
}
.instructions-card ul {
    margin-left: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Survey Layout & Interactions --- */
.survey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    margin-bottom: 20px;
}

.progress-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    margin-right: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--bt-blue);
    width: 0%;
    transition: width 0.5s ease-out;
    border-radius: 4px;
}

.progress-text {
    font-weight: 800;
    font-size: 1rem;
    color: var(--bt-blue);
    white-space: nowrap;
}

.question-block {
    animation: fadeIn 0.4s ease-out;
}

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

/* Statements */
.statement-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: var(--transition);
    border: 1px solid transparent;
}

.statement-row:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.statement-row.faded {
    opacity: 0.4;
    filter: grayscale(100%);
}

.statement-text {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 500;
    padding-right: 15px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    min-width: 150px;
}

.vote-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.vote-plus {
    background-color: #e0f2fe;
    color: #0284c7;
}

.vote-plus:hover:not(:disabled) {
    background-color: #0284c7;
    color: white;
}

.vote-plus.selected {
    background-color: #0284c7;
    color: white;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3);
}

.vote-moins {
    background-color: #fee2e2;
    color: #dc2626;
}

.vote-moins:hover:not(:disabled) {
    background-color: #dc2626;
    color: white;
}

.vote-moins.selected {
    background-color: #dc2626;
    color: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

.vote-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.survey-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* --- Results/SVG Styling --- */
.results-panel {
    text-align: center;
}

.results-header {
    margin-bottom: 20px;
}

#result-title {
    font-size: 1.8rem;
    color: var(--bt-blue);
    margin-bottom: 5px;
}

.result-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.canvas-container {
    background: transparent;
    border-radius: 16px;
    padding: 20px 0;
    margin: 0 auto;
    width: 100%;
    max-width: 450px;
    animation: dropIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropIn {
    from { opacity: 0; transform: scale(0.8) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Text styles inside SVG */
.svg-text-bold { font-weight: bold; font-family: 'Inter', sans-serif; }
.svg-title { font-size: 26px; }
.svg-axis-label { font-size: 12px; fill: #666; font-weight: 600; }
.svg-score { font-size: 12px; font-weight: 800; }

.scores-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px auto;
    max-width: 500px;
}

.score-box {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--bt-blue);
    text-align: left;
}
.score-box.naturel {
    border-top-color: var(--bt-red);
}

.score-box h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}
.score-box h4::before {
    content: '';
    display: inline-block;
    width: 12px; height: 12px; border-radius: 50%;
    margin-right: 8px;
    margin-top: 4px;
}
.score-box.adapte h4::before { background: var(--bt-blue); }
.score-box.naturel h4::before { background: var(--bt-red); }

.score-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-family: monospace;
    font-size: 1.1rem;
}

.results-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.legal-print {
    margin-top: 40px;
    font-size: 0.75rem;
    color: var(--text-light);
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

/* Animations */
.pulse {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 77, 153, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 77, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 77, 153, 0); }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    .bg-shape, header, .hide-on-print {
        display: none !important;
    }
    .glass-panel {
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
    }
    .app-container {
        max-width: 100%;
        margin-top: 0;
    }
    .canvas-container {
        max-width: 600px;
    }
}

/* Media Queries */
@media (max-width: 600px) {
    .statement-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .action-buttons {
        width: 100%;
    }
    .scores-summary {
        grid-template-columns: 1fr;
    }
}
