/* ============================================================
   STYLES GLOBAUX POUR L'AFFICHAGE DES CONTENUS QUILL (.ql-view)
   ------------------------------------------------------------
   - Reprise fidèle du thème Snow (Quill)
   - Adapté à l’affichage client (non-éditable)
   ============================================================ */

/* ----------- TEXTES DE BASE ----------- */
.ql-view {
    line-height: 1.6;
    color: #212529;
    font-family: "Lato", sans-serif;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Paragraphes */
.ql-view p {
    margin: 0 0 1rem;
}

/* Supprime les <p> vides ou isolés avec <br> */
.ql-view p:empty,
.ql-view p>br:only-child {
    display: none;
}

/* ----------- TITRES ----------- */
.ql-view h1,
.ql-view h2,
.ql-view h3,
.ql-view h4,
.ql-view h5,
.ql-view h6 {
    font-family: "Lexend", sans-serif;
    font-weight: 700;
    color: #111;
    margin: 2rem 0 1rem;
    line-height: 1.25;
}

.ql-view h1 {
    font-size: 2.5rem;
}

.ql-view h2 {
    font-size: 2rem;
}

.ql-view h3 {
    font-size: 1.75rem;
}

.ql-view h4 {
    font-size: 1.5rem;
}

.ql-view h5 {
    font-size: 1.25rem;
}

.ql-view h6 {
    font-size: 1rem;
}

/* ============================================================
   LISTES (fidèle à Quill Snow)
   ============================================================ */

/* Remet les espacements */
.ql-view ul,
.ql-view ol {
    margin: 0 0 1rem 1.5rem;
    padding-left: 1.25rem;
}

/* Supprime les styles par défaut — on les reconstruit via data-list */
.ql-view ul,
.ql-view ol {
    list-style: none;
}

/* Réinitialisation du compteur pour les listes ordonnées */
.ql-view ol {
    counter-reset: list-counter;
}

/* Puces normales (data-list="bullet") */
.ql-view li[data-list="bullet"]::before {
    content: "\2022";
    /* point noir */
    font-size: 1rem;
    display: inline-block;
    width: 1.2rem;
    margin-left: -1.2rem;
    color: #000;
}

/* Liste numérotée (data-list="ordered") */
.ql-view li[data-list="ordered"] {
    counter-increment: list-counter;
}

.ql-view li[data-list="ordered"]::before {
    content: counter(list-counter, decimal) ".";
    display: inline-block;
    width: 1.5rem;
    margin-left: -1.2rem;
    color: #000;
}

/* Supprime les <span class="ql-ui"> de Quill */
.ql-view .ql-ui {
    display: none;
}

/* Espacement entre les items */
.ql-view li {
    margin-bottom: 0.25rem;
}

/* ============================================================
   AUTRES ÉLÉMENTS (liens, citations, codes, images…)
   ============================================================ */

/* Liens */
.ql-view a {
    color: #0d6efd;
    text-decoration: underline;
}

.ql-view a:hover {
    text-decoration: none;
}

/* Citations */
.ql-view blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #555;
    font-style: italic;
}

/* Codes */
.ql-view pre,
.ql-view code {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.ql-view pre {
    padding: 1rem;
    overflow-x: auto;
}

/* Alignements */
.ql-view .ql-align-center {
    text-align: center;
}

.ql-view .ql-align-right {
    text-align: right;
}

.ql-view .ql-align-justify {
    text-align: justify;
}

/* Images */
.ql-view img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Gras / italique */
.ql-view strong {
    font-weight: 700;
}

.ql-view em {
    font-style: italic;
}