/* Variables CSS */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #2d5a8c;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --bg-color: #f8f9fa;
    --text-color: #2c3e50;
    --border-color: #dee2e6;
    --white: #ffffff;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page de connexion */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container h1 {
    color: var(--primary-color);
    margin-top: 15px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input {
    margin-right: 8px;
}

/* Boutons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: #6c757d;
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Alertes */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

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

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

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.header-left {
    display: flex;
    align-items: center;
}

.header-title {
    color: var(--white);
    font-size: 24px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.early-access-badge {
    height: 44px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.admin-badge {
    height: 44px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.welcome-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.early-access-badge-large {
    height: 220px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.admin-badge-large {
    height: 220px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Cartes */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card p {
    color: #666;
    margin-bottom: 20px;
}

/* Ligne d'accueil : bienvenue à gauche, carte installer à droite */
.dashboard-toprow {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 10px;
}

.dashboard-toprow .welcome-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.dashboard-toprow .card-installer {
    flex: 0 0 280px;
    max-width: 280px;
    margin: 0;
    padding: 20px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0 30px 0;
}

/* Statistiques */
.stats-box {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.stats-box h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 14px;
}

/* Page compte */
.account-page {
    padding: 20px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.account-section {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.account-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-box {
    background: var(--bg-color);
    border-radius: 5px;
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-color);
}

.info-value {
    color: #666;
}

.key-display {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.key-input {
    flex: 1;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.action-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Badges */
.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-inactive {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-blocked {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* Barre de progression */
.progress-box {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
}

/* Priorités - 5 couleurs pour utilisateur */
.priority-user {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12px;
    color: white;
}

.priority-user-1 {
    background-color: #90EE90;
    color: #2c3e50;
}

/* Vert clair */
.priority-user-2 {
    background-color: #FFD700;
    color: #2c3e50;
}

/* Jaune */
.priority-user-3 {
    background-color: #FFA500;
    color: white;
}

/* Orange */
.priority-user-4 {
    background-color: #FF6B6B;
    color: white;
}

/* Rouge clair */
.priority-user-5 {
    background-color: #DC143C;
    color: white;
}

/* Rouge foncé */

/* Priorités - 5 étoiles pour admin */
.priority-admin {
    font-size: 16px;
    letter-spacing: 2px;
}

/* Footer */
.main-footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Liens */
.link {
    color: var(--primary-color);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Pages Demandes */
.requests-page {
    padding: 20px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Roadmap */
.roadmap-block {
    margin: 30px 0;
}

.roadmap-header {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 10px 10px 0 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.roadmap-header h2 {
    font-size: 28px;
    font-weight: 600;
    flex: 1;
}

.roadmap-header .icon {
    font-size: 40px;
}

.roadmap-meta {
    text-align: right;
    opacity: 0.9;
    font-size: 13px;
}

.roadmap-updated {
    font-weight: 300;
    font-size: 12px;
}

.roadmap-timeline {
    background: white;
    border-radius: 0 0 10px 10px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.quarters-header {
    display: grid;
    grid-template-columns: 200px repeat(4, 1fr);
    border-bottom: 3px solid #e0e6ed;
    background: #f8f9fa;
}

.quarter-label {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    border-right: 1px solid #e0e6ed;
}

.quarter-label:first-child {
    text-align: left;
    font-size: 13px;
    color: #7f8c8d;
    background: white;
}

.quarter-label.q1 {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.quarter-label.q2 {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.quarter-label.q3 {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.quarter-label.q4 {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.quarter-subtitle {
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
}

.timeline-row {
    display: grid;
    grid-template-columns: 200px repeat(4, 1fr);
    border-bottom: 1px solid #e0e6ed;
    min-height: 140px;
}

.timeline-row.major {
    min-height: 280px;
    background: #fafbfc;
}

.timeline-row.minor {
    min-height: 360px;
}

.timeline-row.fixes {
    min-height: 420px;
}

.row-label {
    padding: 20px;
    background: white;
    border-right: 2px solid #e0e6ed;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    left: 0;
}

.row-label .level-icon {
    font-size: 22px;
}

.row-label .level-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.row-label .level-title {
    font-size: 15px;
}

.row-label .level-subtitle {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 400;
}

.quarter-cell {
    padding: 16px;
    border-right: 1px solid #e0e6ed;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.card-major {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #3498db;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.card-major-visual {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 12px;
    color: #fff;
}

.card-major-visual.has-image {
    background: transparent;
}

.card-major-visual-sm {
    width: 72px;
    height: 72px;
    font-size: 30px;
}

.card-major-visual-md {
    width: 96px;
    height: 96px;
    font-size: 40px;
}

.card-major-visual-lg {
    width: 128px;
    height: 128px;
    font-size: 52px;
}

.card-major-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.card-major-visual img {
    transition: transform 0.2s ease;
}

.card-major-visual:hover img {
    transform: scale(1.5);
    z-index: 2;
}

.card-major-title {
    font-weight: 700;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 6px;
}

.card-major-desc {
    font-size: 12px;
    color: #5a6c7d;
    line-height: 1.5;
}

.card-minor {
    background: white;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #95a5a6;
    display: flex;
    gap: 10px;
    position: relative;
}

.card-minor-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.card-minor-content {
    flex: 1;
    min-width: 0;
}

.card-minor-title {
    font-weight: 600;
    font-size: 12px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.card-minor-desc {
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.4;
}

.roadmap-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    color: #2ecc71;
    font-size: 14px;
    line-height: 1;
}


.roadmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.legend-item.domain-enregistrement {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.legend-item.domain-transcription {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #7b1fa2;
}

.legend-item.domain-organizer {
    background: #e8f5e9;
    color: #388e3c;
    border-color: #388e3c;
}

.legend-item.domain-llm {
    background: #fff3e0;
    color: #f57c00;
    border-color: #f57c00;
}

.legend-item.domain-orchestrateur {
    background: #fce4ec;
    color: #c2185b;
    border-color: #c2185b;
}

.legend-item.domain-miro {
    background: #e0f2f1;
    color: #00897b;
    border-color: #00897b;
}

.legend-item.domain-ppt {
    background: #ffebee;
    color: #d32f2f;
    border-color: #d32f2f;
}

.legend-item.domain-word {
    background: #e8eaf6;
    color: #3949ab;
    border-color: #3949ab;
}

.legend-item.domain-android {
    background: #e8f8f5;
    color: #00897b;
    border-color: #00897b;
}

.legend-item.domain-pc {
    background: #fafafa;
    color: #616161;
    border-color: #616161;
}

.legend-item.domain-iphone {
    background: #f1f8ff;
    color: #0366d6;
    border-color: #0366d6;
}

.legend-item.domain-serveur {
    background: #e8f0fe;
    color: #1a73e8;
    border-color: #1a73e8;
}

.legend-item.domain-donnees {
    background: #f0fff4;
    color: #2f855a;
    border-color: #2f855a;
}

.domain-enregistrement {
    background: #e3f2fd;
    color: #1976d2;
    border-left-color: #1976d2;
}

.domain-transcription {
    background: #f3e5f5;
    color: #7b1fa2;
    border-left-color: #7b1fa2;
}

.domain-organizer {
    background: #e8f5e9;
    color: #388e3c;
    border-left-color: #388e3c;
}

.domain-llm {
    background: #fff3e0;
    color: #f57c00;
    border-left-color: #f57c00;
}

.domain-orchestrateur {
    background: #fce4ec;
    color: #c2185b;
    border-left-color: #c2185b;
}

.domain-miro {
    background: #e0f2f1;
    color: #00897b;
    border-left-color: #00897b;
}

.domain-ppt {
    background: #ffebee;
    color: #d32f2f;
    border-left-color: #d32f2f;
}

.domain-word {
    background: #e8eaf6;
    color: #3949ab;
    border-left-color: #3949ab;
}

.domain-android {
    background: #e8f8f5;
    color: #00897b;
    border-left-color: #00897b;
}

.domain-pc {
    background: #fafafa;
    color: #616161;
    border-left-color: #616161;
}

.domain-iphone {
    background: #f1f8ff;
    color: #0366d6;
    border-left-color: #0366d6;
}

.card-fix {
    background: #fff9e6;
    border-radius: 8px;
    padding: 10px 12px;
    border-left: 3px solid #f39c12;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.card-fix-title {
    font-weight: 600;
    font-size: 12px;
    color: #2c3e50;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-fix-desc {
    font-size: 11px;
    color: #7f8c8d;
    line-height: 1.4;
}

/* Roadmap admin editor */
.roadmap-admin-page {
    padding: 20px 0;
}

.roadmap-editor {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.roadmap-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.roadmap-quarter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.roadmap-quarter-form input {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.roadmap-level {
    margin-top: 20px;
}

.roadmap-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.roadmap-item-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roadmap-item-card label {
    font-size: 12px;
    color: #666;
}

.roadmap-item-card input,
.roadmap-item-card textarea,
.roadmap-item-card select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
}

.roadmap-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.roadmap-add {
    display: flex;
    align-items: center;
}

.image-preview {
    width: 100%;
    height: 120px;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.stat-item-small {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-item-small .stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item-small .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
}

.filters-section {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group input {
    width: 100%;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.request-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.request-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.request-id {
    font-weight: bold;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.request-date {
    font-size: 12px;
    color: #666;
}

.request-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.request-title a {
    color: var(--text-color);
    text-decoration: none;
}

.request-title a:hover {
    color: var(--primary-color);
}

.request-preview {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.request-user {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.request-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.priority-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.priority-admin {
    font-size: 14px;
    letter-spacing: 1px;
}

.request-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.request-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-item {
    color: #666;
}

.unread-badge {
    color: var(--danger-color);
    font-weight: 600;
}

.estimated-date {
    color: var(--accent-color);
    font-weight: 600;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-state p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Page création demande */
.request-create-page {
    padding: 20px 0;
}

.request-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.request-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

.request-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Page détail demande */
.request-view-page {
    padding: 20px 0;
}

.request-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.request-detail-header h1 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.request-meta-header {
    color: #666;
    font-size: 14px;
}

.request-status-badges {
    display: flex;
    gap: 10px;
}

.request-detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.request-main {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.request-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.request-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.request-section h2 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: var(--primary-color);
}

.request-description {
    line-height: 1.8;
    color: var(--text-color);
    white-space: pre-wrap;
}

.priorities-display {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.priority-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.priority-item label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.priority-value {
    min-height: 24px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.priority-admin-stars {
    font-size: 24px;
    letter-spacing: 3px;
    line-height: 1;
    display: inline-block;
}

.estimated-date-text {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
}

.undefined-text {
    color: #666;
    font-weight: 500;
    font-size: 16px;
    font-style: italic;
    letter-spacing: normal;
    line-height: 1;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.file-icon {
    font-size: 24px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.file-meta {
    font-size: 12px;
    color: #666;
}

.messages-thread {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.message {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.message-user {
    background: #e7f3ff;
    margin-left: 20%;
    border-left: 4px solid var(--info-color);
}

.message-admin {
    background: #f8f9fa;
    margin-right: 20%;
    border-left: 4px solid var(--primary-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.message-header strong {
    color: var(--primary-color);
}

.message-date {
    color: #666;
    font-size: 12px;
}

.unread-indicator {
    color: var(--danger-color);
    font-size: 12px;
    font-weight: 600;
}

.message-content {
    line-height: 1.6;
    white-space: pre-wrap;
}

.message-attachments {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f1f3f5;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.reply-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.reply-form textarea {
    min-height: 180px;
    width: 100%;
}

.info-message {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid var(--warning-color);
    border-radius: 5px;
    color: #856404;
}

.request-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-box h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--primary-color);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.info-item span {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-toprow {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-toprow .card-installer {
        flex: none;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .login-box {
        padding: 20px;
    }

    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .key-display {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        flex-direction: column;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filters-form {
        flex-direction: column;
    }

    .search-group {
        width: 100%;
    }

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

    .request-detail-content {
        grid-template-columns: 1fr;
    }

    .message-user,
    .message-admin {
        margin-left: 0;
        margin-right: 0;
    }

    /* Roadmap responsive */
    .roadmap-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .roadmap-meta {
        text-align: left;
    }

    .roadmap-timeline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .quarters-header,
    .timeline-row {
        min-width: 900px;
    }

    .row-label {
        position: static;
    }

    .roadmap-legend {
        gap: 6px;
    }
}