* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.editor-container {
    margin-bottom: 2rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    justify-content: center;
}

.toolbar button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    min-width: 40px;
}

.toolbar button:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.editor {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    background: white;
}

.editor:focus {
    border-color: #3498db;
}

.result-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

#output-text {
    min-height: 50px;
    margin-bottom: 1rem;
    word-break: break-all;
    line-height: 1.5;
}

#copy-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    background: #2ecc71;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

#copy-button:hover {
    background: #27ae60;
}

/* Styles pour les boutons d'action et de partage */
.action-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-buttons button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#facebook-share-button {
    background-color: #3b5998;
    color: white;
}

#instagram-share-button {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

#linkedin-share-button {
    background-color: #0077b5;
    color: white;
}

.share-buttons button:hover {
    transform: scale(1.1);
}

.emoji-picker__search-container input {
    padding-left: 1em;
}

/* Media Queries pour le responsive design */
@media screen and (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .toolbar {
        padding: 0.4rem;
    }
    
    .toolbar button {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
        min-width: 35px;
    }
}

@media screen and (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 1rem;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .toolbar {
        gap: 5px;
    }
    
    .toolbar button {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
        min-width: 30px;
    }
    
    .editor {
        min-height: 120px;
        padding: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    #copy-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .share-buttons {
        justify-content: center;
    }
}