/*****************************************************************
 * RichText
 * Styles spécifiques au moteur RichText
 *****************************************************************/

/*****************************************************************
 * BOÎTE À OUTILS RICHTEXT
 *****************************************************************/

.richtext-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 12px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.richtext-toolbar button {
    min-width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    padding: 0 7px;
    font-weight: 800;
    cursor: pointer;
    background: #ffc6d8;
    color: #2b1422;
    font-size: 0.8rem;
}

.richtext-toolbar button:hover {
    background: #ffd5e3;
}

.richtext-toolbar button:active {
    transform: scale(0.96);
}

/*****************************************************************
 * COULEURS
 *
 * Utilisation RichText :
 * {rouge}texte{/rouge}
 * {vert}texte{/vert}
 * {bleu}texte{/bleu}
 * {orange}texte{/orange}
 * {rose}texte{/rose}
 * {violet}texte{/violet}
 * {or}texte{/or}
 * {argent}texte{/argent}
 *****************************************************************/

.rt-red {
    color: #ff3b3b;
}

.rt-green {
    color: #22c55e;
}

.rt-blue {
    color: #3b82f6;
}

.rt-orange {
    color: #f97316;
}

.rt-pink {
    color: #ec4899;
}

.rt-purple {
    color: #a855f7;
}

.rt-gold {
    color: #d4af37;
}

/* {argent}Texte argenté{/argent} */
.rt-silver {
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, #d8d8d8 35%, #9f9f9f 70%, #eeeeee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
}

.rt-small {
    font-size: 0.85em;
}

.rt-large {
    font-size: 1.25em;
    font-weight: 700;
}

.rt-purple {
    color: #a855f7;
}

/*****************************************************************
 * TABLEAUX
 *****************************************************************/


/*****************************************************************
 * CITATIONS
 *****************************************************************/

/* À venir */

/*****************************************************************
 * BLOCS RICHTEXT
 *****************************************************************/

.rt-success,
.rt-info,
.rt-warning,
.rt-quote {
    margin: 18px 0;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    color: inherit;
}

.rt-success {
    background: rgba(34, 197, 94, 0.12);
    border-left: 5px solid #22c55e;
}

.rt-info {
    background: rgba(59, 130, 246, 0.12);
    border-left: 5px solid #3b82f6;
}

.rt-warning {
    background: rgba(249, 115, 22, 0.12);
    border-left: 5px solid #f97316;
}

.rt-quote {
    font-style: italic;
    border-left: 5px solid #a855f7;
    background: rgba(168, 85, 247, 0.08);
    opacity: .95;
}

.rt-space-sm {
    height: 20px;
}

.rt-space {
    height: 40px;
}

.rt-space-lg {
    height: 64px;
}

/*****************************************************************
 * BLOCS CENTRÉS
 *****************************************************************/

.rt-center {
    text-align: center;
    margin: 20px 0;
}

.rt-center img {
    display: block;
    margin: auto;
}

.rt-center .video-preview,
.rt-center .compact-preview {
    display: inline-block;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/*****************************************************************
 * GRILLE RICHTEXT
 *****************************************************************/

.rt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.rt-grid>* {
    min-width: 0;
}

@media (max-width: 700px) {
    .rt-grid {
        grid-template-columns: 1fr;
    }
}

/*****************************************************************
 * AIDE RICHTEXT
 *****************************************************************/ 

.richtext-help {
    margin: 6px 0 10px;
    font-size: 0.85rem;
    opacity: 0.75;
}


/*****************************************************************
 * RACCOURCIS PHOTO
 *****************************************************************/
 
.richtext-photo-shortcuts {
    margin: 8px 0 10px;
    font-size: 0.9rem;
}

.richtext-photo-shortcuts button {
    margin: 3px;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
}

/*****************************************************************
 * LIENS LONGS
 *****************************************************************/

.entry-content a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/*****************************************************************
 * LIENS
 *****************************************************************/

.rt-link {
    display: inline;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}