/* style.css - Version Orange & Blanc pour le formulaire public */
:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #f39c12;
    --primary-soft: #fdf2e9;
    --secondary: #27ae60;
    --secondary-dark: #1e8a4c;
    --accent: #e67e22;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --success: #28a745;
    --white: #ffffff;
    --orange-gradient: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    --orange-light-gradient: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
    min-height: 100vh;
    color: var(--gray-800);
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--orange-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.logo svg {
    width: 48px;
    height: 48px;
    color: white;
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.header .subtitle {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step .step-number {
    width: 36px;
    height: 36px;
    background: var(--gray-300);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--orange-gradient);
    color: white;
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.2);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
}

.step .step-label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: var(--gray-600);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.progress-bar {
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--orange-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Card */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    background: var(--orange-gradient);
    color: white;
    padding: 1.5rem;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.card-body {
    padding: 2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Radio & Checkbox */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: var(--gray-50);
    border-radius: 2rem;
    transition: all 0.2s ease;
}

.radio-option:hover, .checkbox-option:hover {
    background: var(--primary-soft);
}

.radio-option input, .checkbox-option input {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-option input:checked, .checkbox-option input:checked {
    accent-color: var(--primary);
}

.radio-option label, .checkbox-option label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Multi-select grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Sub-questions */
.sub-question {
    margin-top: 1rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-light);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--orange-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #1e8a4c);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Thank You Page */
.thankyou {
    text-align: center;
    padding: 3rem 2rem;
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60, #1e8a4c);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.thankyou-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.thankyou h2 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .step .step-label {
        display: none;
    }
    
    .step .step-number {
        width: 32px;
        height: 32px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .navigation button {
        width: 100%;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.form-step {
    animation: fadeIn 0.4s ease;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-warning {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

/* Additional orange accents */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}