* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', cursive;
}

:root {
    --bg-color: #fff3e6;
    --primary-color: #4ecdc4;
    --secondary-color: #ff6b6b;
    --accent-color: #ffe66d;
    --print-btn-color: #ff9f1c;
}

/* Thèmes de couleurs - Version corrigée */
:root.pink-theme {
    --bg-color: #ffe6f0;
    --primary-color: #ff69b4;
    --secondary-color: #ff1493;
    --accent-color: #ffb6c1;
    --print-btn-color: #ff69b4;
}

:root.blue-theme {
    --bg-color: #e6f3ff;
    --primary-color: #4169e1;
    --secondary-color: #1e90ff;
    --accent-color: #87ceeb;
    --print-btn-color: #4169e1;
}

:root.green-theme {
    --bg-color: #e6ffe6;
    --primary-color: #32cd32;
    --secondary-color: #3cb371;
    --accent-color: #98fb98;
    --print-btn-color: #32cd32;
}

:root.purple-theme {
    --bg-color: #f3e6ff;
    --primary-color: #9370db;
    --secondary-color: #8a2be2;
    --accent-color: #dda0dd;
    --print-btn-color: #9370db;
}

body {
    background-color: var(--bg-color);
    min-height: 100vh;
    padding: 20px;
}

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

h1 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 2.5em;
}

/* ... [Début du CSS reste le même jusqu'à .input-section] ... */

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

#itemInput {
    flex: 1;
    padding: 15px;
    border: 3px solid var(--primary-color);
    border-radius: 10px;
    font-size: 1.2em;
}

.image-upload-container {
    position: relative;
    width: fit-content;
}

.image-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2em;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    transition: transform 0.2s;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-btn:hover {
    transform: scale(1.1);
}

.add-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.2s;
}

.add-btn:hover {
    transform: scale(1.1);
}

.shopping-list {
    list-style: none;
    background-color: white;
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    padding: 20px;
    min-height: 300px;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 2px solid #eee;
    gap: 10px;
}

.item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.item-text {
    flex: 1;
    font-size: 1.2em;
    padding: 5px;
    border: none;
    background: transparent;
}

.item-text:focus {
    outline: 2px solid var(--primary-color);
    border-radius: 5px;
}

.remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.2s;
}

.remove-btn:hover {
    transform: scale(1.1);
}

.print-btn {
    display: block;
    margin: 20px auto 0;
    padding: 15px 30px;
    background-color: var(--print-btn-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.2s;
}

.print-btn:hover {
    transform: scale(1.05);
}

.theme-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid black;
    transition: transform 0.2s;
}

.theme-btn:hover {
    transform: scale(1.1);
}

.white-theme {
    background-color: #fff3e6;
}

.pink-theme {
    background-color: #ffe6f0;
}

.blue-theme {
    background-color: #e6f3ff;
}

.green-theme {
    background-color: #e6ffe6;
}

.purple-theme {
    background-color: #f3e6ff;
}
