/* ========================================================
   Global Page Styles
   ======================================================== */

#editor-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Masquer l'input post_id */
#post_id {
    display: none;
}

/* ========================================================
   GrapesJS Container Styles
   ======================================================== */
#gjs {
    border: 2px solid #ffc0cb;
    border-radius: 12px;
    min-height: 600px;
    height: 100vh !important;
    padding: 25px;
    background: #fffaf0;
}

/* ========================================================
   Save Button Styles
   ======================================================== */
button#save {
    background: #ff69b4;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

button#save:hover {
    background: #ff1493;
    transform: scale(1.05);
}

/* ========================================================
   Template "Romantique" Content Styles
   ======================================================== */
.cover {
    text-align: center;
    color: #ff69b4;
    margin-top: 40px;
}

.cover h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 12px;
}

.cover p {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 30px;
}

.content {
    text-align: center;
    margin-top: 30px;
}

.content p {
    font-size: 18px;
    margin-bottom: 15px;
}

.content img {
    max-width: 80%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-top: 10px;
}

/* ========================================================
   GrapesJS Panel & Block Styles
   ======================================================== */
#gjs .gjs-block {
    background: #ffe4e1 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin-bottom: 8px !important;
    font-family: 'Georgia', serif;
}

#gjs .gjs-traits-label {
    font-weight: bold;
    color: #ff69b4;
}

#gjs .gjs-frame {
    border-radius: 12px;
    border: 2px solid #ffc0cb;
}

/* ========================================================
   Responsive Adjustments
   ======================================================== */
@media (max-width: 768px) {
    #editor-container {
        padding: 15px;
    }
    .cover h1 {
        font-size: 36px;
    }
    .cover p, .content p {
        font-size: 16px;
    }
    .content img {
        max-width: 95%;
    }
    button#save {
        width: 100%;
        font-size: 18px;
    }
}