/* Swyp → WordPress : mise en forme des champs Swyp.
   Couleur d'accent modifiable : .swyp-content { --swyp-accent: #xxx; } dans le thème. */

.swyp-content {
    --swyp-accent: #c0392b;
    --swyp-muted: #666;
    --swyp-bg: rgba(0, 0, 0, .04);
}

.swyp-content > * + * { margin-top: 1em; }
.swyp-content p { margin: 0 0 1em; line-height: 1.65; }

/* INTERTITRE : bien distinct du texte */
.swyp-content .swyp-intertitre,
.entry-content .swyp-intertitre {
    font-size: 1.55em !important;
    line-height: 1.25;
    font-weight: 800 !important;
    margin: 1.8em 0 .7em !important;
    padding-top: .5em;
    border-top: 3px solid var(--swyp-accent, #c0392b);
    display: block;
}
.swyp-content > .swyp-intertitre:first-child { margin-top: .8em !important; }

/* Titre interne d'un encadré / bloc secondaire */
.swyp-content .swyp-titre-bloc {
    font-size: 1.15em;
    margin: 0 0 .6em;
    font-weight: 700;
}

/* CHAPO / SURTITRE (seulement si réactivés par filtre) */
.swyp-content .swyp-chapo { font-weight: 600; font-size: 1.1em; }
.swyp-content .swyp-surtitre {
    text-transform: uppercase; letter-spacing: .05em; font-size: .85em;
    color: var(--swyp-accent); font-weight: 700;
}

/* QUESTION (interviews / questions-réponses) */
.swyp-content .swyp-question {
    font-weight: 700;
    margin: 1.6em 0 .5em;
    padding-left: .8em;
    border-left: 3px solid var(--swyp-accent);
}
.swyp-content .swyp-question p { margin: 0; }
.swyp-content .swyp-question + p { margin-top: .4em; }

/* EXERGUE (citation mise en avant) */
.swyp-content .swyp-exergue {
    margin: 1.8em 0;
    padding: .2em 0 .2em 1em;
    border-left: 4px solid var(--swyp-accent);
    font-size: 1.2em;
    font-style: italic;
    line-height: 1.45;
}
.swyp-content .swyp-exergue p { margin: 0; }

/* SIGNATURE / CONTACT / INFOS */
.swyp-content .swyp-signature { text-align: right; font-weight: 700; font-style: italic; }
.swyp-content .swyp-contact,
.swyp-content .swyp-infos {
    font-size: .92em;
    color: var(--swyp-muted);
    border-top: 1px solid rgba(0,0,0,.12);
    padding-top: .8em;
}

/* Blocs (DIV Swyp) */
.swyp-content .swyp-bloc {
    margin: 2em 0;
    padding: 1.2em 1.4em;
    background: var(--swyp-bg);
    border-radius: 6px;
}
.swyp-content .swyp-bloc > :last-child { margin-bottom: 0; }
.swyp-content .swyp-bloc--encadre { border-left: 4px solid var(--swyp-accent); }
.swyp-content .swyp-bloc--edito { font-style: italic; }
.swyp-content .swyp-bloc--avis-expert { border: 1px solid rgba(0,0,0,.15); background: transparent; }
.swyp-content .swyp-bloc--breves p + p { border-top: 1px dashed rgba(0,0,0,.15); padding-top: .8em; }

/* Images + légendes : légende sous l'image, centrée, en italique */
.swyp-content .swyp-figure {
    margin: 1.8em auto;
    display: flex;
    flex-direction: column;   /* image puis légende, même si le thème inverse l'ordre */
    align-items: center;
    text-align: center;
}
.swyp-content .swyp-figure img { display: block; width: 100%; height: auto; order: 1; }
.swyp-content .swyp-figure figcaption,
.swyp-content figcaption.swyp-legende,
.swyp-content p.swyp-legende {
    order: 2;
    display: block;
    width: 100%;
    margin: .6em auto 0;
    text-align: center !important;
    font-style: italic !important;
    font-size: .88em;
    line-height: 1.45;
    color: var(--swyp-muted);
}
.swyp-content .swyp-credit { font-style: italic; opacity: .8; white-space: nowrap; }
.swyp-content .swyp-galerie { margin-top: 2em; }

/* Embeds réseaux sociaux (tweet, Instagram, TikTok) */
.swyp-content .swyp-embed { display: flex; justify-content: center; margin: 1.6em 0; }
.swyp-content .swyp-embed > blockquote { margin: 0 auto; max-width: 560px; }

/* Vidéos */
.swyp-content .swyp-figure--video video { display: block; width: 100%; max-width: 820px; height: auto; background: #000; order: 1; }
.swyp-content .swyp-video { display: flex; justify-content: center; margin: 1.6em 0; }
.swyp-content .swyp-video__ratio { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; }
.swyp-content .swyp-video__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Légende de l'image à la une (ajoutée sous l'image par le plugin) */
.swyp-thumb-legende {
    display: block;
    margin: .6em auto 1.2em;
    text-align: center !important;
    font-style: italic !important;
    font-size: .88em;
    line-height: 1.45;
    color: #666;
}
