/* ========================================
   GUIDE D'ENTRETIEN - DESIGN MODERNE
   Pages: processus.html, techniques.html, outils.html
   ======================================== */

:root {
    --primary: #0B3D59;
    --secondary: #C5A059;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border: #e5e7eb;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ========================================
   CONTAINER
   ======================================== */

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */

.guide-hero {
    background: linear-gradient(135deg, #0B3D59 0%, #C5A059 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.guide-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.guide-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.guide-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ========================================
   SECTION
   ======================================== */

.guide-section {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.guide-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guide-section h2 i {
    color: var(--secondary);
}

.guide-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.guide-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========================================
   CHECKLIST CARDS
   ======================================== */

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.checklist-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.checklist-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.checklist-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.checklist-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.checklist-icon.preparation {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.checklist-icon.logistique {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.checklist-icon.etat-esprit {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.checklist-icon.immediat {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.checklist-icon.coordination {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.checklist-icon.communication {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.checklist-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.checklist-items {
    list-style: none;
}

.checklist-items li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-tertiary);
}

.checklist-items li:last-child {
    border-bottom: none;
}

.checklist-items input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--secondary);
}

/* ========================================
   TEMPLATES
   ======================================== */

.templates-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.template-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.template-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.template-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1.5rem;
    color: white;
}

.template-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.template-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.template-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template-body {
    padding: 2rem;
}

.template-body h4 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.template-body h4:first-child {
    margin-top: 0;
}

.template-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 8px;
    font-style: italic;
}

.template-actions {
    padding: 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    gap: 1rem;
}

.template-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

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

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

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

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

/* ========================================
   MATRICE
   ======================================== */

.matrice-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.matrice-table {
    width: 100%;
    border-collapse: collapse;
}

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

.matrice-table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
}

.matrice-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.matrice-table tr:hover {
    background: var(--bg-tertiary);
}

.poids-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ========================================
   ONBOARDING TIMELINE
   ======================================== */

.onboarding-timeline {
    position: relative;
    padding-left: 3rem;
}

.onboarding-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.onboarding-step {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.onboarding-step:hover {
    border-color: var(--secondary);
    transform: translateX(5px);
}

.onboarding-step::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 0 0 2px var(--secondary);
}

.onboarding-step h4 {
    color: var(--primary);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.onboarding-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary);
    color: white;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.onboarding-step ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   ALERT BOXES
   ======================================== */

.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 0.1rem;
}

.alert-info {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--info);
    color: #2980b9;
}

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

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success);
    color: #229954;
}

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

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning);
    color: #e67e22;
}

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

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger);
    color: #c0392b;
}

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

/* ========================================
   FOOTER
   ======================================== */

.guide-footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.guide-footer p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .guide-hero h1 {
        font-size: 2rem;
    }
    
    .guide-container {
        padding: 2rem 1.5rem;
    }
    
    .guide-section {
        padding: 2rem 1.5rem;
    }
    
    .checklist-grid {
        grid-template-columns: 1fr;
    }
    
    .template-actions {
        flex-direction: column;
    }
    
    .matrice-container {
        overflow-x: auto;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
