/* ============================================================
   PAGES DE CONTENU — Le Bourdon du Pelerin
   Styles partages pour toutes les pages internes
   ============================================================ */

:root {
    --brun-fonce  : #3b2e1e;
    --brun-moyen  : #6b4226;
    --ocre        : #c08040;
    --creme       : #f5f0e8;
    --gris-pierre : #8a857e;
    --fond        : #faf8f4;
    --fond-alt    : #f0ebe3;
    --texte       : #4a3b2c;
    --max-w       : 1060px;
}

/* ---- WRAPPER GENERAL ---- */
.bdp-page {
    background: var(--fond);
}
.bdp-page .site-main {
    padding: 0;
}
.bdp-page .content-area {
    width: 100%;
    float: none;
}
.bdp-page #content .col-full {
    padding: 0;
    max-width: 100%;
}

/* ---- EN-TETE DE PAGE ---- */
.bdp-page-header {
    background: var(--brun-fonce);
    padding: 2.5em 2em;
    text-align: center;
    border-bottom: 3px solid var(--ocre);
}
.bdp-page-header h1 {
    color: var(--creme);
    font-size: clamp(1.5em, 3vw, 2.2em);
    font-weight: normal;
    letter-spacing: 0.04em;
    margin: 0;
}
.bdp-page-header .bdp-breadcrumb {
    color: rgba(245,240,232,0.5);
    font-size: 0.82em;
    font-style: italic;
    margin-top: 0.5em;
}
.bdp-page-header .bdp-breadcrumb a {
    color: var(--ocre);
    text-decoration: none;
}

/* ---- CONTENU PRINCIPAL ---- */
.bdp-page-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3em 2em 4em;
}

/* ---- SECTIONS ---- */
.bdp-cs {
    margin-bottom: 3em;
}
.bdp-cs:last-child {
    margin-bottom: 0;
}

/* ---- GRILLES ---- */
.bdp-cg2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: start;
}
.bdp-cg2.center {
    align-items: center;
}
.bdp-cg3 {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr minmax(160px, 220px);
    gap: 3em;
    align-items: start;
}
.bdp-cg1 {
    display: block;
}

/* ---- TEXTE ---- */
.bdp-ct p {
    color: var(--texte);
    line-height: 1.8;
    margin-bottom: 1.1em;
    font-size: 1em;
}
.bdp-ct p:last-child { margin-bottom: 0; }
.bdp-ct h2, .bdp-ct h3 {
    color: var(--brun-fonce);
    font-weight: normal;
    margin: 1.2em 0 0.5em;
}
.bdp-ct ul, .bdp-ct ol {
    color: var(--texte);
    padding-left: 1.5em;
    margin-bottom: 1em;
    line-height: 1.8;
}

/* ---- CITATION ---- */
.bdp-cq {
    border-left: 3px solid var(--ocre);
    background: rgba(192,128,64,0.07);
    padding: 0.9em 1.2em;
    margin: 1.2em 0;
    border-radius: 0 3px 3px 0;
}
.bdp-cq p {
    color: var(--brun-moyen) !important;
    font-style: italic;
    margin: 0 !important;
    line-height: 1.7;
}

/* ---- IMAGES ---- */
.bdp-ci {
    margin: 0;
}
.bdp-ci img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.bdp-ci figcaption {
    text-align: center;
    font-style: italic;
    color: var(--gris-pierre);
    font-size: 0.85em;
    margin-top: 0.5em;
}
.bdp-ci-full img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

/* ---- VIDEO ---- */
.bdp-cv {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    margin: 1.5em 0;
}
.bdp-cv iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ---- SEPARATEUR ---- */
.bdp-csep {
    border: none;
    border-top: 1px solid #d4c4b0;
    margin: 2.5em 0;
}

/* ---- SIGNATURE ---- */
.bdp-sig {
    text-align: right;
    font-style: italic;
    color: var(--brun-moyen);
    margin-top: 0.8em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 800px) {
    .bdp-cg2, .bdp-cg3 {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    .bdp-cg3 > figure {
        max-width: 340px;
        margin: 0 auto;
    }
    .bdp-page-content {
        padding: 2em 1.2em 3em;
    }
}
