/* ==========================
   Drag & Drop (feedback visuel)
========================== */
.quill-editor.dragover {
    border: 2px dashed #4caf50;
    background: #f8fff8;
}

/* ==========================
   Bouton fullscreen
========================== */
.quill-expand-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
}

.quill-expand-btn:hover {
    background: #f1f1f1;
}

/* ==========================
   Mode fullscreen
========================== */
.quill-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #ffffff;
    padding: 20px;
    overflow: hidden;
}

.quill-wrapper.quill-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: white;

    display: flex;
    flex-direction: column;
}

.quill-wrapper.quill-fullscreen .ql-toolbar {
    flex: 0 0 auto;
}

.quill-wrapper.quill-fullscreen .ql-container {
    flex: 1 1 auto;
    overflow: auto;
}

/* Toolbar */
.quill-fullscreen .ql-toolbar {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: white;
}

/* Zone édition */
.quill-fullscreen .ql-container {
    height: calc(100vh - 70px);
    overflow-y: auto;
}

/* Images dans l’éditeur */
/*.quill-editor img {
    max-width: 100%;
    height: auto;
}*/

/* ==========================
   WRAPPER GLOBAL
========================== */
.quill-wrapper {
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ==========================
   TOOLBAR
========================== */
.quill-wrapper .ql-toolbar {
    border: none;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* ==========================
   ZONE TEXTE
========================== */
.quill-wrapper .ql-container {
    border: none;
    min-height: 220px;
    font-size: 16px;
}

.quill-wrapper .ql-editor {
    padding: 15px;
    line-height: 1.6;
}

/* Placeholder */
.quill-wrapper .ql-editor.ql-blank::before {
    color: #999;
    font-style: italic;
}

/* ==========================
   TAILLES DES CARACTÈRES QUILL
========================== */

/* ==========================
   TAILLES DES CARACTÈRES QUILL
========================== */

/* Taille normale */
.ql-editor,
.contenu-quill {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Petite taille */
.ql-editor .ql-size-small,
.ql-size-small {
    font-size: 0.9rem;
}

/* Grande taille */
.ql-editor .ql-size-large,
.ql-size-large {
    font-size: 1.3rem;
}

/* Très grande taille */
.ql-editor .ql-size-huge,
.ql-size-huge {
    font-size: 1.8rem;
}

/* ==========================
   AFFICHAGE PUBLIC DU CONTENU QUILL
========================== */

/* Taille normale */
.ql-editor p,
.ql-editor li {
    font-size: 1.1rem;
}

/* Petite taille */
.ql-editor .ql-size-small {
    font-size: 0.9rem;
}

/* Grande taille */
.ql-editor .ql-size-large {
    font-size: 1.3rem;
}

/* Très grande taille */
.ql-editor .ql-size-huge {
    font-size: 1.8rem;
}

/* ==========================
   FOCUS (important UX)
========================== */
.quill-wrapper:focus-within {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ==========================
   IMAGES
========================== */
.quill-wrapper img {
    max-width: 100%;
    border-radius: 6px;
    margin: 10px 0;
}

/* ==========================
   FULLSCREEN AMÉLIORÉ
========================== */
.quill-fullscreen {
    background: #f8f9fa;
}

.quill-fullscreen .quill-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quill-fullscreen .ql-container {
    flex: 1;
}

/* ==========================
   BOUTON FULLSCREEN
========================== */

.quill-open-btn,
.quill-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1100;
    background: white;
    border-radius: 6px;
    border: 3px solid #919090;
    padding: 4px 8px;
    cursor: pointer;
}

.quill-open-btn:hover,
.quill-close-btn:hover {
    background-color: #919090;
}

/* cacher le bouton fermer par défaut */
.quill-close-btn {
    display: none;
}

/* en fullscreen */
.quill-wrapper.quill-fullscreen .quill-open-btn {
    display: none;
}

.quill-wrapper.quill-fullscreen .quill-close-btn {
    display: block;
}

.quill-editor {
    transition:
        height 0.3s ease,
        width 0.3s ease;
    height: 300px; /* taille normale */
    max-width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: visible;
    position: relative;
}

.quill-editor.quill-expanded {
    position: fixed !important;
    inset: 0 !important;
    height: auto !important;
    width: auto !important;
    z-index: 1050;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    background: white;
    display: flex;
    flex-direction: column;
}

.quill-editor.quill-expanded .ql-container {
    flex: 1 1 auto;
    min-height: 80vh;
    height: 100%;
}

.quill-toggle-size-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    z-index: 1100;
}

.quill-toggle-size-btn:hover {
    background-color: #eee;
}

/* ==========================
   QUILL - ÉLÉMENTS SÉLECTIONNÉS
   Couleurs Zen Attitude
========================== */

/* Boutons actifs */
.quill-wrapper .ql-toolbar button.ql-active {
    background-color: rgb(155, 187, 148);
    border-radius: 4px;
}

/* Icônes des boutons actifs */
.quill-wrapper .ql-toolbar button.ql-active .ql-stroke {
    stroke: #ffffff !important;
}

.quill-wrapper .ql-toolbar button.ql-active .ql-fill {
    fill: #ffffff !important;
}

/* Sélecteurs actifs */
.quill-wrapper .ql-toolbar .ql-picker-label.ql-active {
    background-color: rgb(155, 187, 148);
    color: #ffffff;
    border-radius: 4px;
}

/* Flèches des sélecteurs actifs */
.quill-wrapper .ql-toolbar .ql-picker-label.ql-active .ql-stroke {
    stroke: #ffffff !important;
}

/* Survol des boutons et sélecteurs */
.quill-wrapper .ql-toolbar button:hover,
.quill-wrapper .ql-toolbar .ql-picker-label:hover {
    background-color: rgb(155, 187, 148);
    border-radius: 4px;
}