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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 100px;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #667eea;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 1.1em;
}

.header-notice {
    background: #e8f5e9;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-notice span {
    font-size: 1.5em;
}

.header-notice p {
    color: #2e7d32;
    font-size: 0.9em;
    margin: 0;
}

.actions-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
    flex-wrap: wrap;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

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

.language-select {
    padding: 10px 15px;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

.language-select:hover {
    background: #f0f0ff;
}

.language-select:focus {
    outline: none;
    border-color: #5568d3;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.form-section h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

textarea {
    resize: vertical;
}

.experience-item,
.education-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    position: relative;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.item-header h3 {
    color: #667eea;
    font-size: 1.1em;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

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

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-add {
    background: #28a745;
    color: white;
    font-size: 0.9em;
    padding: 8px 16px;
}

.btn-add:hover {
    background: #218838;
}

.btn-remove {
    background: #dc3545;
    color: white;
    font-size: 0.85em;
    padding: 6px 12px;
}

.btn-remove:hover {
    background: #c82333;
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

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

.customization-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.custom-select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    background: white;
    transition: border-color 0.3s;
}

.custom-select:focus {
    outline: none;
    border-color: #667eea;
}

.color-picker-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-group input[type="color"] {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
}

.color-picker-group span {
    font-family: monospace;
    font-weight: 600;
    color: #555;
}

.photo-preview {
    margin-top: 10px;
}

.photo-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.section-order-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.section-order-item {
    background: white;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: move;
    transition: all 0.3s;
}

.section-order-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.section-order-item.dragging {
    opacity: 0.5;
}

.drag-handle {
    font-size: 1.5em;
    color: #999;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.section-order-item label {
    flex: 1;
    font-weight: 600;
    cursor: pointer;
}

.section-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    background: white;
}

.sort-select:focus {
    outline: none;
    border-color: #667eea;
}

.section-description {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
    font-style: italic;
}

.tasks-container {
    margin-top: 15px;
}

.task-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.task-item input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.task-item button {
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.add-task-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
}

.add-task-btn:hover {
    background: #138496;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 20px;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* Page content (pour les pages statiques) */
.page-content {
    max-width: 900px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

.page-content h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.page-content h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content h3 {
    color: #555;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.page-content ul, .page-content ol {
    margin-left: 30px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-content li {
    margin-bottom: 8px;
    color: #555;
}

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

.feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.feature-card h3 {
    color: #667eea;
    margin-top: 0;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.alert-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.alert-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

@media (max-width: 768px) {
    .container, .page-content {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .actions-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .language-selector {
        justify-content: space-between;
    }
    
    .section-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .customization-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .import-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .import-actions .btn {
        width: 100%;
    }
}

@media print {
    body {
        background: white;
    }
    
    .actions, .actions-top, .btn-remove, .add-task-btn, .btn-add {
        display: none;
    }
}