/* ========================================
   GRILLES D'ÉVALUATION - DESIGN MODERNE
   Compatible avec la structure existante
   ======================================== */

:root {
    --primary: #0B3D59;
    --secondary: #C5A059;
    --accent: #2E7DA7;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --border: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 80px;
}

/* Container - Support des deux structures */
.guide-container,
.grille-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.guide-content,
.grille-content {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .guide-content,
    .grille-content {
        padding: 2rem 1.5rem;
    }
}

/* Hero - Support des deux structures */
.grille-hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 16px rgba(11, 61, 89, 0.2);
}

.grille-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

.grille-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.grille-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.grille-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.grille-meta-item i {
    font-size: 1.2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .grille-hero h1 {
        font-size: 1.8rem;
        flex-direction: column;
    }
    
    .grille-hero p {
        font-size: 1rem;
    }
    
    .grille-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Header Section */
.guide-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.guide-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.guide-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.guide-lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .guide-title {
        font-size: 1.8rem;
    }
    
    .guide-lead {
        font-size: 1rem;
    }
}

/* Sections - Support des deux structures */
.guide-section,
.grille-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.guide-section h2,
.grille-section h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.guide-section h2 i,
.grille-section h2 i {
    color: var(--secondary);
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .guide-section,
    .grille-section {
        padding: 1.5rem;
    }
    
    .guide-section h2,
    .grille-section h2 {
        font-size: 1.4rem;
    }
}

/* Mission Box */
.mission-box {
    background: linear-gradient(135deg, rgba(11, 61, 89, 0.05), rgba(197, 160, 89, 0.05));
    border-left: 4px solid var(--secondary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.mission-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mission-box h3 i {
    color: var(--secondary);
}

.mission-box p {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Levels Grid */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.level-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.level-card h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.level-card .salary {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.level-card p:last-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Questions Table - Support des deux structures */
.questions-table,
.scorecard-table {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.questions-table table,
.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.questions-table thead,
.scorecard-table thead {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.questions-table th,
.scorecard-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.questions-table td,
.scorecard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.questions-table tbody tr:last-child td,
.scorecard-table tbody tr:last-child td {
    border-bottom: none;
}

.questions-table tbody tr:hover,
.scorecard-table tbody tr:hover {
    background: rgba(11, 61, 89, 0.02);
}

/* Poids Badge */
.poids {
    display: inline-block;
    background: rgba(197, 160, 89, 0.15);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .questions-table,
    .scorecard-table {
        font-size: 0.85rem;
    }
    
    .questions-table th,
    .questions-table td,
    .scorecard-table th,
    .scorecard-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Level Badges in Table */
.level-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.junior {
    background: #e3f2fd;
    color: #1976d2;
}

.level-badge.confirme {
    background: #fff3e0;
    color: #f57c00;
}

.level-badge.senior {
    background: #f3e5f5;
    color: #7b1fa2;
}

.level-badge.all {
    background: #e8f5e9;
    color: #388e3c;
}

/* Question Cell */
.question-cell {
    font-weight: 500;
    color: var(--primary);
    font-style: italic;
}

/* Scoring Section */
.scoring-box {
    background: rgba(197, 160, 89, 0.05);
    border: 2px solid var(--secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.scoring-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.scoring-box h3 i {
    color: var(--secondary);
}

.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.scoring-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.scoring-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.scoring-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Thresholds */
.thresholds {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.threshold-item {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
}

.threshold-item.go {
    border-color: var(--success);
}

.threshold-item.reserve {
    border-color: var(--warning);
}

.threshold-item.no-go {
    border-color: var(--danger);
}

.threshold-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.threshold-item .score {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.threshold-item.go h4,
.threshold-item.go .score {
    color: var(--success);
}

.threshold-item.reserve h4,
.threshold-item.reserve .score {
    color: var(--warning);
}

.threshold-item.no-go h4,
.threshold-item.no-go .score {
    color: var(--danger);
}

.threshold-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Soft Skills Section */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.soft-skill-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.soft-skill-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.soft-skill-card h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.soft-skill-card h4 i {
    color: var(--secondary);
}

.soft-skill-card ul {
    list-style: none;
    padding-left: 0;
}

.soft-skill-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.soft-skill-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(11, 61, 89, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.4rem;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .questions-table {
        font-size: 0.9rem;
    }
    
    .questions-table th,
    .questions-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .thresholds {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Alert Boxes */
.alert {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border-left: 4px solid;
}

.alert i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert div {
    flex: 1;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-color: var(--info);
}

.alert-info i {
    color: var(--info);
}

.alert-info strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.alert-info p {
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-color: var(--success);
}

.alert-success i {
    color: var(--success);
}

.alert-success strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.alert-success p {
    color: var(--text-primary);
    margin: 0;
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-color: var(--warning);
}

.alert-warning i {
    color: var(--warning);
}

.alert-warning strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.alert-warning p {
    color: var(--text-primary);
    margin: 0;
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-color: var(--danger);
}

.alert-danger i {
    color: var(--danger);
}

.alert-danger strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.alert-danger p {
    color: var(--text-primary);
    margin: 0;
}

/* Print Styles */
@media print {
    body {
        padding-top: 0;
    }
    
    .unified-header,
    .unified-breadcrumb,
    .unified-mobile-menu,
    .action-buttons {
        display: none;
    }
    
    .guide-content {
        box-shadow: none;
        padding: 0;
    }
}
