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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    height: 100%;
}

.editor-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.editor-header {
    padding: 1rem;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.editor-header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.editor-controls {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background-color: #34495e;
    justify-content: center;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.control-group h3 {
    color: #ecf0f1;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.control-button {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.control-button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.control-button:active {
    transform: translateY(1px);
}

.copy-button {
    background-color: #27ae60;
}

.copy-button:hover {
    background-color: #219a52;
}

.clean-button {
    background-color: #e67e22;
}

.clean-button:hover {
    background-color: #d35400;
}

.copy-button.copied {
    background-color: #2ecc71;
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.editor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    flex: 1;
    overflow: hidden;
}

.input-section, .preview-section {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow-y: auto;
    height: 100%;
}

#markdown-input {
    width: 100%;
    height: 100%;
    padding: 1rem;
    border: none;
    resize: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.6;
    background: transparent;
}

#markdown-input:focus {
    outline: none;
}

#markdown-preview {
    padding: 1rem;
    overflow-y: auto;
    height: 100%;
}

/* Styles pour le rendu Markdown */
#markdown-preview h1,
#markdown-preview h2,
#markdown-preview h3,
#markdown-preview h4,
#markdown-preview h5,
#markdown-preview h6 {
    margin: 1rem 0;
    color: #2c3e50;
}

#markdown-preview br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

#markdown-preview code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

#markdown-preview pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

#markdown-preview blockquote {
    border-left: 4px solid #2c3e50;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #666;
}

#markdown-preview ul,
#markdown-preview ol {
    padding-left: 2rem;
}

#markdown-preview ul br {
    display: none;
}

#markdown-preview img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .editor-content {
        grid-template-columns: 1fr;
    }
} 