/**
 * Mini Audit Gratuit — Page-specific styles
 * Design system: Sora + Plus Jakarta Sans, slate palette
 */

/* Nav */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    text-decoration: none;
}

/* Page body */
.page-lead-magnet {
    padding-top: 64px;
    font-family: var(--font-primary);
    color: #334155;
    background: #f8fafc;
}

/* Audit container */
.audit-container {
    max-width: 720px;
    margin: -40px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
.audit-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Progress */
.progress-section {
    margin-bottom: 32px;
}
.progress-bar-wrapper {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px;
    width: 10%;
    transition: width 0.4s ease;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: #64748b;
}

/* Questions */
.questions-container {
    min-height: 300px;
}
.question-section {
    display: none;
}
.question-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.question-header {
    margin-bottom: 24px;
}
.question-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.question-number {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}
.pillar-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(37,99,235,0.08);
    color: #2563eb;
}
.question-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

/* Answer buttons */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}
.answer-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #334155;
    text-align: left;
    width: 100%;
}
.answer-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
}
.answer-btn.selected {
    border-color: #2563eb;
    background: rgba(37,99,235,0.06);
    color: #1e293b;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.answer-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8125rem;
    color: #64748b;
    flex-shrink: 0;
}
.answer-btn.selected .answer-letter {
    background: #2563eb;
    color: white;
}

/* Nav buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Shared buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #e2e8f0;
}
.btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Score section */
.score-section {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}
.score-section.active {
    display: block;
}
.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#2563eb var(--score, 0%), #e2e8f0 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
}
.score-inner {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.score-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.score-total {
    font-size: 1rem;
    color: #64748b;
    font-weight: 500;
}
.score-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.score-subtitle {
    color: #475569;
    margin-bottom: 28px;
}

/* Pillar breakdown */
.score-breakdown {
    text-align: left;
    margin-top: 28px;
}
.score-breakdown h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}
.pillar-score {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.pillar-name {
    width: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    text-align: right;
    flex-shrink: 0;
}
.pillar-bar {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}
.pillar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 5px;
    transition: width 0.8s ease;
}
.pillar-percentage {
    width: 40px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    flex-shrink: 0;
}

/* Lead form */
.lead-form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}
.lead-form-section.active {
    display: block;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #475569;
}
.checkbox-item input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #2563eb;
}

/* Messages */
.message {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}
.message.show {
    display: flex;
}
.message.success {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    color: #059669;
}
.message.error {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color: #dc2626;
}

/* Responsive */
@media (max-width: 640px) {
    .audit-card { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .question-text { font-size: 1.05rem; }
    .score-circle { width: 130px; height: 130px; }
    .score-inner { width: 105px; height: 105px; }
    .score-number { font-size: 2rem; }
    .pillar-name { width: 80px; font-size: 0.8125rem; }
    .nav-buttons { flex-direction: column; }
}
