:root {
    /* Modern Professional Palette */
    --primary: #0056b3; /* Deep Corporate Blue */
    --primary-dark: #003d80;
    --primary-light: #e6f0fa;
    --accent: #f5a623; /* Warm Gold for highlights */
    --success: #28a745;
    --text-main: #1a1a1a;
    --text-secondary: #555555;
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --border-color: #e1e4e8;
    
    /* Spacing & Layout */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
nav {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    width: 280px; /* Reserve space for the logo */
    height: 50px; /* Keep the navbar height constrained */
}

.logo-img {
    height: 110px;
    width: auto;
    position: absolute;
    top: -20px;
    left: 0;
    transition: var(--transition);
    z-index: 1001;
    /* Removed background/shadow to respect transparency */
}

.logo-img:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .logo {
        width: 180px;
        height: 40px;
    }
    .logo-img {
        height: 75px;
        top: -10px;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    margin-left: 32px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(135deg, var(--primary) 0%, #002a5c 100%);
    color: #ffffff;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--bg-body);
    transform: skewY(-2deg);
}

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #ffffff;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--bg-card);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
}

/* --- Info Section --- */
#info {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-main);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Calculator Section --- */
#calculator {
    padding: 40px 0 100px;
    background-color: var(--bg-body);
    scroll-margin-top: 100px; /* Pour que le scroll ne soit pas caché par le menu */
}

.calc-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 60px;
    max-width: 850px;
    margin: -60px auto 0; /* Overlap hero slightly if needed, or just margin */
    position: relative;
    z-index: 10;
    border: 1px solid var(--border-color);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background-color: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #007bff 100%);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Steps */
.step {
    display: none;
    animation: slideUp 0.4s ease-out;
}

.step.active {
    display: block;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
    display: inline-block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ced4da;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #fff;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    appearance: none;
    -webkit-appearance: none;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 16px;
}

.btn-prev {
    background-color: #f1f3f5;
    color: var(--text-secondary);
    border: 1px solid #e9ecef;
}

.btn-prev:hover {
    background-color: #e9ecef;
    color: var(--text-main);
}

/* Results */
#result-step {
    text-align: center;
}

#result-step h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.total-score {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
    line-height: 1;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

#result-step p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.score-breakdown {
    text-align: left;
    margin-top: 40px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.breakdown-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.breakdown-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
}

.breakdown-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.25rem;
}

/* --- Footer --- */
footer {
    background-color: #1a1a1a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    #hero h1 { font-size: 2.25rem; }
    .nav-links { display: none; }
    .calc-container { padding: 30px 20px; margin-top: 0; border-radius: 0; box-shadow: none; }
    .total-score { font-size: 3.5rem; }
    .btn-group { flex-direction: column-reverse; }
    .btn { width: 100%; }
}

/* --- Print Styles --- */
@media print {
    nav, footer, #hero, #info, .progress-container, .btn-group, .section-title {
        display: none !important;
    }
    body, #calculator, .calc-container {
        background: white;
        box-shadow: none;
        padding: 0;
        margin: 0;
        border: none;
    }
    #result-step {
        display: block !important;
    }
    .step {
        display: block !important;
    }
    #step1, #step2, #step3, #step4 {
        display: none !important;
    }
    #step5 {
        display: block !important;
    }
    .score-breakdown {
        border: 1px solid #ccc;
    }
}

/* Utility Classes */
.text-muted { color: var(--text-secondary); font-size: 0.85rem; margin-top: 6px; display: block; }
.form-hint { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 12px; }
.font-normal { font-weight: 400 !important; }
.mb-2 { margin-bottom: 10px; }

/* Search Container */
.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-container .form-control {
    flex: 1;
}

.profession-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: none;
}

/* Recommendations */
.recommendations-box {
    margin-top: 32px;
    text-align: left;
    background-color: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    display: none;
    box-shadow: var(--shadow-sm);
}

.recommendations-box h3 {
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations-list {
    padding-left: 20px;
    color: var(--text-secondary);
}

.recommendations-list li {
    margin-bottom: 10px;
}

/* Email Section */
.email-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.email-input {
    text-align: center;
    max-width: 400px;
    margin: 0 auto 24px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.btn-success {
    background-color: var(--success);
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background-color: #f8f9fa;
    color: var(--text-main);
    border-color: #d1d5db;
}

/* Article Page Specifics */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.article-content h2 {
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 10px;
}
