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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #ffffff 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #495057;
    border: none;
    background: transparent;
    font-size: 1em;
}

.tab:hover {
    background: #e9ecef;
}

.tab.active {
    background: white;
    color: #1e3c72;
    border-bottom: 3px solid #1e3c72;
}

.content {
    padding: 30px;
    min-height: 500px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(100px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from { 
        opacity: 1; 
        transform: translateX(0);
    }
    to { 
        opacity: 0; 
        transform: translateX(100px);
    }
}

/* CV Generator Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
}

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

.btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
}

.btn:active {
    transform: translateY(0);
}

#cvPreview {
    margin-top: 30px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: none;
}

#cvPreview.show {
    display: block;
}

.cv-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #1e3c72;
}

.cv-section {
    margin-bottom: 25px;
}

.cv-section h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Training Styles */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.training-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #1e3c72;
}

.training-card h3 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.training-card p {
    color: #6c757d;
    line-height: 1.6;
}

.training-link {
    display: inline-block;
    margin-top: 15px;
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
}

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

/* Notebook Styles */
.notebook-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #1e3c72;
    background: white;
    color: #1e3c72;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.category-btn.active {
    background: #1e3c72;
    color: white;
}

.note-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.note-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
}

.note-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    min-height: 300px;
}

.note-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.note-item:hover {
    transform: translateX(5px);
}

.note-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.note-text {
    flex: 1;
}

.note-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 10px;
}

.note-category.professionnel {
    background: #1e3c72;
    color: white;
}

.note-category.privé {
    background: #2a5298;
    color: white;
}

.note-actions {
    display: flex;
    gap: 10px;
}

.note-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.complete-btn {
    background: #28a745;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
    font-size: 1.2em;
    line-height: 1;
}

.note-btn:hover {
    opacity: 0.8;
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
    }
    
    .header, .tabs, .btn {
        display: none;
    }
    
    #cvPreview {
        margin: 0;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .tabs {
        flex-direction: column;
    }

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

    .notebook-controls {
        flex-direction: column;
    }
}
