/* 🌸 Fond de la page */
body {
    background-color: #fff3f1;
    background-image: linear-gradient(rgba(230, 178, 186, 0.29) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(230, 178, 186, 0.29) 1px, transparent 1px);
    background-size: 30px 30px;
    font-family: 'Jua', sans-serif;
    text-align: center;
    color : #9d4d7e;
}



h1{
    font-size: 16px;
    color: #d35b8c;
}

h3{
    font-size: 14px;
    color: #9d4d7e;
}
h2{
    font-size: 15px;
    color: #d35b8c;
}
.container {
    width: 80%;
}

p{
    color: #9d4d7e;
}
/* 🖼️ Logo */
.logo {
    width: 100px;
    display: block;
    margin: 2px auto;
}

/* 📦 Conteneur principal */
.container {
    max-width: 350px;
    margin: auto;
    background: white;
    padding: 15px;
    border-radius: 15px;
    border: 2px dashed #9d4d7e;
}

/* 🎨 SVG - Réduction drastique */
#svgContainer {
    position: relative;
    width: 90%;
    max-width: 450px;
    margin: auto;
}

#svgBackground, #svgText {
    width: 100%;
    height: auto;
    display: block;
}

/* 🌟 Ajustement pour éviter le recouvrement */
#svgText {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;  
    pointer-events: none;
}

#svgBackground {
    position: relative;
    z-index: 0;
}

/* 🎨 Sélection des couleurs */
.color-selection {
    margin-top: 15px;
}

/* 📌 Alignement des choix de couleur */
.color-rows {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* 🖍️ Bloc couleur */
.color-group {
    flex: 1;
    background: #ffedf5;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* ❤️ Inputs en forme de cœur */
.heart-picker {
    width: 40px;
    height: 40px;
    border: none;
    background-size: contain;
    cursor: pointer;
    border: solid #fff3f1;
}


/* 📸 Bouton d'enregistrement */
#saveBtn {
    background-color: #d35b8c;
    color: white;
    font-size: 14px;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    font-family: 'jua';
}

#saveBtn:hover {
    background-color: #9d4d7e;
}

/* 📌 Récapitulatif des couleurs en bas */
.color-codes {
    font-size: 12px;
    background: #dfa3ac;
    padding: 8px;
    border-radius: 6px;
    margin-top: 15px;
    
}


.template-select {
    margin: 15px 0;
    text-align: center;
}

#templateSelect {
    margin-top: 7px;
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid #d35b8c;
    font-family: 'Jua', sans-serif;
    background-color: #fff;
    color: #9d4d7e;
}


/* 📱 Mobile friendly */
@media (max-width: 500px) {

    body{
        font-size: 14px;

    }

    h1{
        font-size: 16px;
        color: #d35b8c;
    }

    h3{
        font-size: 14px;
        color: #9d4d7e;
    }
    h2{
        font-size: 15px;
        color: #d35b8c;
    }
    .container {
        width: 80%;
    }

    p{
        color: #9d4d7e;
    }

    .color-rows {
        flex-direction: column;
        gap: 5px;
    }

    #svgContainer {
        width: 80%;
        max-width: 540px;
    }


}
