/**
 * Composant — Section texte (Bloc 3) : ajustements pour le contenu Markdown.
 * Markup : _composants/texte.php. Documentation : COMPOSANTS.md.
 *
 * Le design reste celui de css/style-bloc-texte.css (chargé sur tout le
 * site) ; ce fichier n'ajoute que deux réglages, dans le langage commun :
 *
 *   1. .pphp-texte--gauche : texte et boutons alignés à gauche, comme dans
 *      le mode « encart » du Bloc 3. Le Bloc 3 de l'admin centre son texte
 *      (règle historique .contenuFlexibleTxt .contenu), ce qui convient à
 *      une accroche mais pas à des listes, intertitres ou tableaux.
 *   2. Intertitres « ### » : style du sur-titre du Titre principal
 *      (capitales DM Sans 600 teal, barre teal devant), aussi dans le texte
 *      d'un Encart (Bloc 14).
 *   3. Gras « **…** » visible : le thème met body en font-weight 300, et
 *      <strong> (« bolder ») n'y monte qu'à 400, soit la graisse du texte.
 *      Sur les pages PHP, le gras du Markdown passe à 600 (graisse des
 *      boutons et intertitres), dans les blocs Texte, Image-texte et Encart.
 */

.pphp-texte.pphp-texte--gauche .bloc-texte__container {
    text-align: left;
}

.pphp-texte.pphp-texte--gauche .liens {
    justify-content: flex-start;
}

/* Intertitre : rappel de .bloc-titre-principal__sur-titre, barre plus courte */
.pphp-texte .bloc-texte__text h3,
.page-php .bloc-encart__text h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2.25rem 0 1rem;
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* couleur du titre du bloc (blanc sur fond vert, couleur de texte choisie) */
    color: var(--btxt-couleur-titre, #1F5C56);
}

.pphp-texte:not(.pphp-texte--gauche) .bloc-texte__text h3 {
    justify-content: center;
}

.pphp-texte .bloc-texte__text h3::before,
.page-php .bloc-encart__text h3::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: currentColor;
    flex-shrink: 0;
}

.pphp-texte .bloc-texte__text > h3:first-child,
.page-php .bloc-encart__text > h3:first-child {
    margin-top: 0;
}

/* Petit texte en italique sous un tableau (ex. « Temps indicatifs ») */
.pphp-texte .bloc-texte__text .pphp-tableau + p em {
    font-size: 14px;
    color: #1A3F3A;
}

@media (max-width: 700px) {
    .pphp-texte .bloc-texte__text h3,
    .page-php .bloc-encart__text h3 {
        font-size: 13px;
        margin-top: 1.75rem;
    }
}

/* Gras du Markdown (voir 3. en tête de fichier) */
.page-php .bloc-texte__text strong,
.page-php .bloc-imagetexte__text strong,
.page-php .bloc-encart__text strong {
    font-weight: 600;
}
