/**
 * STYLE.CSS - TrustedCamper
 * Feuille de style principale
 */

:root {
    --green-main: #3FAF8B;
    --green-light: #E6F4EF;
    --green-dark: #2E8B6E;
    --text-main: #2F3E46;
    --text-light: #6B7885;
    --bg-light: #F8FAFB;
    --white: #FFFFFF;
    --error: #E74C3C;
    --success: #27AE60;
    --warning: #F39C12;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-top: 80px;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-main);
    text-decoration: none;
}

.logo-image {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--green-main);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--green-light);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: -0.5rem;
    padding-top: 0.8rem;
    z-index: 1001;
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-dropdown-menu a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--green-light);
    border-radius: 10px;
    background: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--green-dark);
}

.mobile-nav-panel {
    display: none;
}

.mobile-nav-panel[hidden] {
    display: none !important;
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
}

.user-info-text {
    white-space: nowrap;
}

.user-info:hover {
    opacity: 0.8;
    cursor: pointer;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fff0c2;
    color: #8a5b00;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid #f0d57c;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
}

.btn-outline {
    border: 2px solid var(--green-main);
    color: var(--green-main);
    background: transparent;
}

.btn-outline:hover {
    background: var(--green-light);
}

.btn-primary {
    background: var(--green-main);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green-dark);
}

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

.btn-danger:hover {
    background: #C0392B;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.container-sm {
    max-width: 600px;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--green-light);
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

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

.form-label.required::after {
    content: " *";
    color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px var(--green-light);
}

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

.form-help {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.help-section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-main);
    color: var(--text-main);
    font-weight: 600;
}

.list-indent {
    margin: 0;
    padding-left: 1.5rem;
}

.btn-full {
    width: 100%;
}

.auth-link-muted {
    text-decoration: none;
    color: #999;
    font-size: 0.9em;
}

.auth-note {
    color: #666;
}

.text-success-center {
    text-align: center;
    color: #28a745;
}

.help-ticket-btn {
    margin-top: 0.5rem;
}

.faq-item {
    margin-top: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--green-main);
    transform: translateY(-1px);
}

.faq-item[open] {
    background: #fff;
    box-shadow: 0 4px 12px rgba(63, 175, 139, 0.15);
    border-color: var(--green-main);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.faq-item summary:hover {
    color: var(--green-main);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-weight: 700;
    line-height: 1;
    color: var(--green-main);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e4e8;
    color: var(--text-light);
    line-height: 1.6;
}

.ticket-list-actions {
    margin-bottom: 1.5rem;
}

.ticket-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-muted {
    color: #6c757d;
}

.ml-1 {
    margin-left: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-info {
    background-color: #0c63e4;
    color: #fff;
}

.badge-secondary {
    background-color: #6c757d;
    color: #fff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table thead {
    background-color: #f8f9fa;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Diagnostic Troubleshooting Table */
.diagnostic-troubleshooting-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.diagnostic-table-container {
    list-style: none !important;
    margin-left: -1.5rem !important;
    padding-left: 0 !important;
}

.diagnostic-table-container strong {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--green-dark);
}

.diagnostictable {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.diagnostictable thead {
    background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%);
    color: var(--white);
    font-weight: 600;
}

.diagnostictable th {
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--green-main);
    font-size: 0.95rem;
}

.diagnostictable td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.diagnostictable tbody tr {
    transition: background-color 0.2s ease;
}

.diagnostictable tbody tr:hover {
    background-color: var(--green-light);
}

.diagnostictable tbody tr:last-child td {
    border-bottom: none;
}

.diagnostictable td:first-child {
    font-weight: 500;
    color: var(--green-dark);
    max-width: 200px;
}

@media (max-width: 768px) {
    .diagnostic-troubleshooting-table {
        overflow-x: auto;
    }
    
    .diagnostictable {
        font-size: 0.85rem;
    }
    
    .diagnostictable th,
    .diagnostictable td {
        padding: 0.625rem 0.5rem;
    }
}

.ticket-section {
    margin: 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.ticket-section:last-child {
    border-bottom: none;
}

.ticket-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.ticket-description {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    border-left: 4px solid #0c63e4;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    border-left: 4px solid #28a745;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.message-date {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: normal;
}

.message-content {
    color: #333;
    white-space: pre-wrap;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #0c63e4;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.inline-form {
    display: inline;
}

.disabled-action {
    opacity: 0.5;
    cursor: not-allowed;
}

.dashboard-vault-card {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    color: #fff;
    margin-bottom: 2rem;
    border: none;
}

.dashboard-vault-content {
    padding: 2rem;
}

.dashboard-vault-row {
    align-items: center;
}

.dashboard-vault-title {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.5rem;
}

.dashboard-vault-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.dashboard-vault-btn {
    background: #fff;
    color: var(--green-dark);
    border: none;
    font-weight: 600;
}

.vehicle-stats-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--green-light);
}

.vehicle-stats-line {
    font-size: 0.9rem;
    color: var(--text-light);
}

.transfer-warning-box {
    background: #FFF3CD;
    border: 1px solid #FFE69C;
    color: #664D03;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.transfer-warning-list {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.transfer-form-actions {
    margin-top: 2rem;
}

.transfer-history-card {
    margin-top: 1.5rem;
}

.transfer-history-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

.table-scroll-x {
    overflow-x: auto;
}

.transfer-history-head-row {
    border-bottom: 2px solid #e0e0e0;
}

.transfer-history-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.transfer-status-chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    color: #fff;
    border-radius: 12px;
    font-size: 0.85rem;
}

.transfer-status--pending {
    background: #FFA500;
}

.transfer-status--validated {
    background: #2196F3;
}

.transfer-status--completed {
    background: #4CAF50;
}

.transfer-status--cancelled {
    background: #F44336;
}

.transfer-status--default {
    background: #666;
}

.doc-upload-success-actions {
    text-align: center;
    margin-top: 2rem;
}

.doc-upload-dropzone {
    border: 2px dashed var(--green-main);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
}

.doc-upload-dropzone-active {
    background-color: var(--green-light);
}

.doc-upload-input-hidden {
    display: none;
}

.doc-upload-label {
    cursor: pointer;
    display: block;
}

.doc-upload-icon {
    font-size: 2rem;
}

.doc-upload-hint {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.doc-upload-form-actions {
    margin-top: 2rem;
}

.doc-upload-file-name {
    color: var(--green-main);
}

.vehicle-form-section-title {
    margin-bottom: 1rem;
    color: var(--green-main);
}

.vehicle-form-section-title-spaced {
    margin-top: 2rem;
}

.vehicle-plate-format-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.vehicle-certification-group {
    margin-top: 1.5rem;
}

.vehicle-certification-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.vehicle-form-actions {
    margin-top: 2rem;
}

.profile-section-title {
    margin-bottom: 1rem;
    color: var(--green-main);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.profile-summary-card {
    padding: 1.25rem;
    border: 1px solid #dfe8e4;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
}

.profile-summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.profile-summary-value-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.profile-summary-value {
    font-size: 1.15rem;
    color: var(--text-main);
}

.profile-actions-tight {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.inline-form {
    display: inline-flex;
}

.offer-inline-alert {
    margin-top: 1rem;
}

.offer-hero {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.offer-hero-copy {
    flex: 1;
}

.offer-hero-copy h1 {
    margin-bottom: 0.75rem;
}

.offer-hero-copy p {
    color: var(--text-light);
    max-width: 700px;
}

.offer-cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    align-items: center;
}

.btn-tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: not-allowed;
}

.btn-tooltip-wrapper .btn {
    pointer-events: none;
}

.btn-tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: #2f3e46;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.82rem;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.btn-tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2f3e46;
}

.btn-tooltip-wrapper:hover .btn-tooltip-text,
.btn-tooltip-text.btn-tooltip-visible {
    visibility: visible;
    opacity: 1;
}

.offer-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.offer-plan-card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #dce7e1;
    background: #fff;
    box-shadow: 0 6px 24px rgba(47, 62, 70, 0.06);
}

.offer-plan-card-premium {
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    border-color: #f0d57c;
}

.offer-plan-name {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.offer-plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.offer-plan-price small {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.offer-plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-main);
}

.offer-comparison-wrap {
    overflow-x: auto;
}

.offer-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.offer-comparison-table thead {
    background: #eef7f3;
}

.offer-comparison-table th,
.offer-comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e6ece9;
    text-align: left;
    vertical-align: top;
}

.offer-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.offer-feature-yes {
    color: var(--success);
    font-weight: 600;
}

.offer-feature-no {
    color: var(--text-light);
}

.offer-history-table td,
.offer-history-table th {
    white-space: nowrap;
}

.offer-history-table td:last-child,
.offer-history-table th:last-child {
    white-space: normal;
}

.empty-state-subtle {
    color: var(--text-light);
}

@media (max-width: 900px) {
    .offer-hero,
    .offer-cards,
    .profile-info-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .offer-hero {
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .user-info {
        max-width: 180px;
    }

    .user-info-text {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .offer-plan-price {
        font-size: 1.6rem;
    }
}

.profile-email-value {
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid #E0E0E0;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.change-password-redirect-note {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.change-password-section-title {
    margin-bottom: 1rem;
    color: var(--green-main);
}

.change-password-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.change-password-tips-box {
    background: var(--green-light);
    border-left: 4px solid var(--green-main);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.change-password-tips-title {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.change-password-tips-list {
    margin-left: 1.5rem;
    color: var(--text-light);
}

.form-error {
    font-size: 0.85rem;
    color: var(--error);
    margin-top: 0.5rem;
}

/* Diagnostic */
.diagnostic-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.diagnostic-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.diagnostic-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.diagnostic-option {
    text-align: left;
    width: 100%;
}

.diagnostic-progress {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.diagnostic-result {
    background: var(--green-light);
    border-radius: 12px;
    padding: 1.25rem;
}

.is-hidden {
    display: none;
}

.diagnostic-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.diagnostic-member-lock-box {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.diagnostic-member-lock-title {
    margin: 0 0 1rem;
    color: #0d47a1;
    font-weight: 600;
    font-size: 1.1rem;
}

.diagnostic-member-lock-text {
    margin: 0 0 1.5rem;
    color: #1565c0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.diagnostic-member-lock-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.diagnostic-warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff6f00;
    padding: 1.25rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.diagnostic-warning-title {
    margin: 0 0 0.75rem;
    color: #e65100;
    font-weight: 600;
    font-size: 1.05rem;
}

.diagnostic-warning-subtitle {
    margin: 0 0 0.75rem;
    color: #e65100;
    font-size: 0.9rem;
    font-style: italic;
}

.diagnostic-warning-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    color: #e65100;
    font-size: 0.95rem;
}

.diagnostic-warning-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.diagnostic-warning-checkbox {
    margin-top: 0.25rem;
    cursor: pointer;
}

.diagnostic-warn-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.diagnostic-warn-status-pending {
    background: #ffe0b2;
    color: #e65100;
}

.diagnostic-warn-status-ok {
    background: #c8e6c9;
    color: #2e7d32;
}

.diagnostic-main-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.diagnostic-side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.diagnostic-progress-title {
    font-size: 1.1rem;
}

.diagnostic-help-box {
    background: #e8f5e9;
    border-left: 4px solid #3FAF8B;
    padding: 1rem;
    border-radius: 4px;
}

.diagnostic-help-title {
    margin-top: 0;
    color: #2e7d32;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.diagnostic-help-toggle {
    font-size: 1.2rem;
}

.diagnostic-help-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.diagnostic-help-content.is-hidden {
    display: none;
}

.diagnostic-help-card {
    background: #fff;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.diagnostic-help-card-title {
    margin: 0 0 0.5rem;
}

.diagnostic-help-card-list {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: #555;
}

.diagnostic-search-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.diagnostic-search-instructions {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.diagnostic-search-instructions-title {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.diagnostic-search-instructions-title-alt {
    margin-top: 0.5rem;
}

.diagnostic-search-instructions-list {
    margin: 0;
    padding-left: 1.5rem;
}

.diagnostic-search-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 1rem;
}

.diagnostic-search-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.diagnostic-search-input {
    flex: 1;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-family: monospace;
    text-transform: uppercase;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.diagnostic-search-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.diagnostic-search-btn {
    min-width: 100px;
}

.diagnostic-search-btn-wide {
    min-width: 120px;
}

.diagnostic-search-message {
    min-height: 2rem;
}

.diagnostic-msg {
    margin: 0;
}

.diagnostic-msg-error {
    color: #d32f2f;
}

.diagnostic-msg-info {
    color: #1976d2;
}

.diagnostic-code-not-found {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.diagnostic-code-not-found-title {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: #856404;
}

.diagnostic-code-not-found-text {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
}

.diagnostic-code-not-found-text-spaced {
    margin-bottom: 0.5rem;
}

.diagnostic-result-title {
    margin-bottom: 0.5rem;
}

.diagnostic-result-summary {
    margin-bottom: 0.75rem;
}

.diagnostic-result-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.diagnostic-result-image-wrapper {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.diagnostic-result-image {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.diagnostic-result-image-caption {
    padding: 0.5rem;
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    background-color: #fff;
}

.diagnostic-result-steps {
    margin-left: 1rem;
}

.diagnostic-result-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.diagnostic-question-summary {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.diagnostic-option-media-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.diagnostic-option-images-multi {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.diagnostic-option-image {
    border-radius: 4px;
}

.diagnostic-option-image-multi {
    max-width: 150px;
    max-height: 120px;
}

.diagnostic-option-image-single {
    max-width: 200px;
    max-height: 150px;
}

.diagnostic-step-image-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}

.diagnostic-step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Diagnostic step boxes in data strings */
.diagnostic-step-box {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #fff3e0;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
}

.diagnostic-step-problem {
    color: #c62828;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.diagnostic-step-solution-title {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.diagnostic-step-solution-content {
    margin-left: 1rem;
    color: #333;
    font-size: 0.9rem;
}

.diagnostic-step-inline-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .diagnostic-layout {
        grid-template-columns: 1fr;
    }
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #D5F4E6;
    border-color: var(--success);
    color: #155724;
}

.alert-error {
    background: #F8D7DA;
    border-color: var(--error);
    color: #721c24;
}

.alert-warning {
    background: #FFF3CD;
    border-color: var(--warning);
    color: #856404;
}

.alert-info {
    background: #D1ECF1;
    border-color: #17A2B8;
    color: #0C5460;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Vehicle Card */
.vehicle-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(63, 175, 139, 0.1);
    border-color: var(--green-main);
}

.vehicle-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.vehicle-icon {
    font-size: 3rem;
}

.vehicle-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.vehicle-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.vehicle-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--green-light);
    display: flex;
    gap: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 2rem;
    border-left: 3px solid var(--green-light);
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-dot {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--green-main);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--green-light);
}

.timeline-date {
    color: var(--green-main);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.timeline-line {
    display: flex;
    align-items: center;
    gap: 8px; /* espace entre les deux */
}

.timeline-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--green-light);
    color: var(--green-main);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* .timeline-km {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
} */

.timeline-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Document List */
.document-list {
    list-style: none;
}

.document-item {
    background: var(--white);
    border: 2px solid var(--green-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.document-item:hover {
    border-color: var(--green-main);
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.document-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--text-main);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--green-light);
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--green-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Hero Section (Homepage) */
.hero {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--white) 100%);
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Feature Cards (Homepage) */
.features {
    padding: 5rem 2rem;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: 2px solid var(--green-light);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(63, 175, 139, 0.1);
    border-color: var(--green-main);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--green-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-light);
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.auth-header p {
    color: var(--text-light);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--green-light);
    color: var(--text-light);
}

.auth-footer a {
    color: var(--green-main);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-buttons {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-nav-panel {
        display: block;
        border-top: 1px solid var(--green-light);
        background: var(--white);
        padding: 0.8rem 1rem 1rem;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    .mobile-nav-menu {
        list-style: none;
        display: grid;
        gap: 0.4rem;
        margin-bottom: 0.85rem;
    }

    .mobile-nav-menu a {
        display: block;
        text-decoration: none;
        color: var(--text-main);
        font-weight: 600;
        padding: 0.5rem 0.2rem;
    }

    .mobile-nav-buttons {
        display: grid;
        gap: 0.5rem;
    }

    .mobile-nav-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .mobile-nav-buttons .user-info {
        justify-content: flex-start;
        padding: 0.35rem 0.2rem;
    }

    .mobile-nav-buttons .user-info-text {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Mobile Dropdown */
    .mobile-nav-dropdown {
        position: relative;
    }

    .mobile-nav-dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .mobile-nav-dropdown-trigger.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .mobile-nav-dropdown-menu {
        list-style: none;
        padding-left: 1rem;
        background: var(--bg-light);
        border-radius: 4px;
        margin-top: 0.25rem;
        max-height: 200px;
        overflow-y: auto;
    }

    .mobile-nav-dropdown-menu[hidden] {
        display: none !important;
    }

    .mobile-nav-dropdown-menu li {
        margin: 0;
    }

    .mobile-nav-dropdown-menu a {
        display: block;
        padding: 0.5rem 0.2rem;
        color: var(--text-main);
        text-decoration: none;
        font-weight: 500;
    }

    .mobile-nav-dropdown-menu a:hover {
        color: var(--green-main);
    }

    .logo {
        min-width: 0;
        font-size: 1.1rem;
        gap: 0.4rem;
    }

    .logo-image {
        width: 34px;
        height: 34px;
    }

    .nav-buttons {
        gap: 0.4rem;
    }

    .nav-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.88rem;
        white-space: nowrap;
    }

    .nav-buttons .btn-outline {
        border-width: 1px;
    }

    .timeline-demo {
        padding: 3rem 0.75rem;
    }

    .timeline-example {
        max-width: 100%;
        margin: 1.5rem 0 0;
        padding: 1rem;
    }

    .timeline:before {
        left: 12px;
        transform: none;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: calc(100% - 3rem);
        left: 2rem;
        margin: 1.5rem 0;
        padding: 0;
    }

    .timeline-item .card-like {
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        text-align: left;
    }

    .timeline-item .timeline-dot {
        left: -26px;
        right: auto;
    }

    .timeline-title,
    .timeline-description,
    .timeline-date {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .hero-logo {
        width: 90px;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 2rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .logo span {
        display: none;
    }

    .nav-container {
        padding: 0.6rem 0.7rem;
    }

    .nav-buttons .btn {
        padding: 0.45rem 0.62rem;
        font-size: 0.8rem;
    }

    .mobile-nav-panel {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e9ecef;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    padding: 0;
    margin: 2rem 0;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 55%;
}

/* Timeline — override mobile (doit être APRÈS les règles desktop) */
@media (max-width: 768px) {
    .timeline:before {
        display: none;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding: 0;
        margin: 1rem 0;
        position: relative;
    }

    .timeline-item .timeline-dot,
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        display: none;
    }

    .timeline-item .card-like,
    .timeline-item.left .card-like,
    .timeline-item.right .card-like {
        text-align: left;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* Diagnostic Errors Table */
.diagnostic-errors-table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.diagnostic-errors-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
}

.diagnostic-errors-table thead {
    background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%);
    color: var(--white);
    font-weight: 600;
}

.diagnostic-errors-table th {
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--green-dark);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.diagnostic-errors-table th:last-child {
    border-right: none;
}

.diagnostic-errors-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    line-height: 1.5;
}

.diagnostic-errors-table td:last-child {
    border-right: none;
}

.diagnostic-errors-table tbody tr {
    transition: background-color 0.2s ease;
}

.diagnostic-errors-table tbody tr:hover {
    background-color: var(--green-light);
}

.diagnostic-errors-table tbody tr:last-child td {
    border-bottom: none;
}

.diagnostic-errors-table td:first-child {
    font-weight: 600;
    color: var(--green-dark);
    text-align: center;
    width: 80px;
}

@media (max-width: 768px) {
    .diagnostic-errors-table-wrap {
        overflow-x: auto;
    }
    
    .diagnostic-errors-table {
        font-size: 0.85rem;
    }
    
    .diagnostic-errors-table th,
    .diagnostic-errors-table td {
        padding: 0.625rem 0.5rem;
    }
}

.timeline-item .card-like {
    background: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.timeline-item .card-like:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #dee2e6;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6c757d;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #6c757d;
    top: 1.2rem;
}

.timeline-item.left .timeline-dot {
    right: -30px;
    left: auto;
}

.timeline-item.right .timeline-dot {
    left: -30px;
    right: auto;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-category {
    display: inline-block;
}

.timeline-item.left .card-like {
    text-align: right;
}

.timeline-item.right .card-like {
    text-align: left;
}

/* ===== STYLES HOMEPAGE (index.php) ===== */
.timeline-demo {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.timeline-example {
    max-width: 800px;
    margin: 3rem auto 0;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--green-main) 0%, var(--green-dark) 100%);
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta .btn {
    background: var(--white);
    color: var(--green-main);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.cta .btn:hover {
    background: var(--green-light);
}

/* ===== STYLES DIAGNOSTIC (diagnostic.php) ===== */
.diagnostic-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .diagnostic-layout {
        grid-template-columns: 1fr;
    }
}

.diagnostic-question {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.diagnostic-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.diagnostic-option {
    padding: 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    min-height: auto;
}

.diagnostic-option img {
    display: block;
    width: 100%;
    height: auto;
}

.diagnostic-option:hover {
    background-color: #3FAF8B;
    color: white;
    border-color: #3FAF8B;
}

.diagnostic-option:hover img {
    filter: brightness(1.1);
}

.diagnostic-result {
    background: #f0f8f6;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3FAF8B;
}

.diagnostic-result h3 {
    margin-top: 0;
    color: #2e7d32;
}

.diagnostic-result ul {
    margin: 0.75rem 0;
    padding-left: 0;
    list-style: none;
}

.diagnostic-result li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.diagnostic-progress {
    list-style: none;
    padding: 0;
    margin: 0;
}

.diagnostic-progress li {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

/* Styles pour les checkboxes d'avertissement */
#warn-check-1, #warn-check-2, #warn-check-3, #warn-check-4 {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: #ff6f00;
}

label {
    transition: background-color 0.2s;
}

label:hover {
    background-color: #fff9f0;
}

/* Help Bubbles */
.help-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e8f5f2;
    color: var(--green-main);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid var(--green-main);
}

.help-bubble:hover {
    background-color: var(--green-main);
    color: white;
    transform: scale(1.1);
}

/* Help Modal */
.help-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s ease;
}

.help-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.help-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--green-main);
    padding-bottom: 0.75rem;
}

.help-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-main);
    margin: 0;
}

.help-modal-close {
    font-size: 1.5rem;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.2s ease;
}

.help-modal-close:hover {
    color: var(--text-main);
}

.help-modal-body {
    color: var(--text-light);
    line-height: 1.6;
}

.help-modal-body p {
    margin-bottom: 1rem;
}

.help-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.help-modal-body li {
    margin-bottom: 0.5rem;
}

.help-modal-image {
    max-width: 100%;
    margin: 1rem 0;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.help-tip {
    background-color: #e6f4ef;
    border-left: 4px solid var(--green-main);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Multimetre guide page */
.multimetre-page {
    max-width: 1000px;
    margin: 0 auto;
}

.multimetre-hero {
    background: linear-gradient(135deg, #f7fbf9 0%, #eef8f4 100%);
    border: 1px solid #dceee7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.multimetre-hero h1 {
    color: #1f3a30;
    margin-bottom: 0.5rem;
}

.multimetre-hero p {
    color: #4a5f57;
    margin: 0;
}

.multimetre-image-wrap {
    text-align: center;
    margin: 1.25rem 0;
}

.multimetre-image {
    width: 25%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #d7e5df;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
}

.multimetre-caption {
    color: #5d6f68;
    font-size: 0.95rem;
    margin-top: 0.6rem;
}

.multimetre-alert {
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.multimetre-alert-warning {
    background: #fff5db;
    border-left: 4px solid #f0ad4e;
    color: #7a5a1c;
}

.multimetre-alert-danger {
    background: #fde8e8;
    border-left: 4px solid #e05656;
    color: #7a2323;
}

.multimetre-section {
    background: #ffffff;
    border: 1px solid #e7efeb;
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1rem 0;
}

.multimetre-section h2 {
    margin-top: 0;
    color: #204738;
}

.multimetre-section h3 {
    margin-top: 1rem;
    color: #2f5e4d;
}

.multimetre-list {
    margin: 0.4rem 0 0 1.2rem;
}

.multimetre-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.multimetre-tip {
    background: #f4faf7;
    border: 1px solid #deeee7;
    border-radius: 8px;
    padding: 0.9rem;
}

.multimetre-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    padding: 1rem;
}

.multimetre-modal.is-open {
    display: flex;
}

.multimetre-modal-content {
    position: relative;
    max-width: min(95vw, 1200px);
    max-height: 90vh;
}

.multimetre-modal-image {
    width: auto;
    max-width: 95vw;
    max-height: 90vh;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #d7e5df;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.multimetre-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #1f3a30;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

@media (max-width: 760px) {
    .multimetre-grid {
        grid-template-columns: 1fr;
    }

    .multimetre-image {
        width: 85%;
    }
}