/* =========================
   Charte Vigiles de l'Âme – Dossiers
   Version corrigée — 1er août 2026
   ========================= */

/* Palette globale */
:root {
    --bg-page: #F7F4EC;       /* ivoire parchemin */
    --bg-card: #FFFFFF;       /* cartes légèrement cassées */
    --blue-monas: #435A6B;    /* bleu monastique */
    --gold-soft: #B08D57;     /* or discret */
    --text-main: #333333;     /* texte principal */
    --text-muted: #666666;
    --bg-quote: #fbfaf6;
}

/* Base de page */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Inter, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
}

/* Règle de sécurité globale : aucune image ne peut déborder ni s'écraser.
   Toute image du site qui n'a pas de règle plus précise hérite de celle-ci. */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Confort de lecture et largeur */
.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 0 0.9rem;
}

/* Lien d'évitement — accessibilité */
.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--blue-monas);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 12px 0;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
    top: 0;
}

/* =========================
   Header principal
   ========================= */
.site-header {
    background-color: #111;
    color: #f2eee7;
    padding: 16px 24px;
}
.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header__brand {
    display: flex;
    flex-direction: column;
}
.site-header__logo {
    color: #f2eee7;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.site-header__tagline {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #d0cec8;
}
.site-header__nav a {
    color: #f2eee7;
    text-decoration: none;
    margin-left: 18px;
    font-size: 0.95rem;
}
.site-header__nav a:hover {
    color: var(--gold-soft);
}

/* =========================
   Hero (Golgotha & Dignité)
   ========================= */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 100px 60px;
    border-radius: 24px;
    overflow: hidden;
    max-width: 1200px;
    margin: 40px auto 30px;
}

/* CORRIGÉ : l'image de fond pointait vers blog.vigilesdelame.fr/wp-content/.
   Tes dossiers dépendaient du sous-domaine WordPress pour leur visuel.
   Elle pointe désormais vers ton propre hébergement. */
.hero--golgotha {
    background:
        radial-gradient(circle at top left,
            rgba(176, 141, 87, 0.35),
            rgba(67, 90, 107, 0.08)
        ),
        url("/img/golgotha-trois-croix.jpg")
        center/cover no-repeat;
}

/* Hero Dignité sans photo, mais dans la charte */
.hero--dignite {
    background:
        radial-gradient(circle at 15% 15%, rgba(176,141,87,0.28), transparent 55%),
        linear-gradient(135deg, var(--blue-monas) 0%, #24333f 60%, #2f4353 100%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(15, 18, 22, 0.45),
            rgba(15, 18, 22, 0.35)
        );
    mix-blend-mode: multiply;
}
.hero__content {
    position: relative;
    max-width: 900px;
    color: #f7f4ec;
}

/* Kicker, titre et textes du hero */
.hero__kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    color: #f7f4ec;
    margin-bottom: 0.8rem;
}
.hero__title {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    font-size: 3.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 0.6rem;
    color: #f7f4ec;
}

/* AJOUTÉ : la date de publication sous le titre du hero */
.hero__date {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: #d8d3c4;
    margin: 0 0 1rem;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #e0ddcf;
    margin-bottom: 1rem;
}
.hero__intro {
    font-size: 1rem;
    line-height: 1.9;
    color: #f7f4ec;
    max-width: 760px;
    margin-bottom: 1.8rem;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(.2, .8, .2, 1);
}
.btn--primary {
    background-color: var(--blue-monas);
    color: #fff;
}
.btn--ghost {
    border: 1px solid var(--blue-monas);
    color: var(--blue-monas);
    background-color: transparent;
}
.btn:hover {
    transform: translateY(-1px);
    background-color: #2f4353;
    color: #fff;
}

/* =========================
   Titres dans le dossier
   ========================= */
h1, h2, h3 {
    font-family: "Cormorant Garamond", "Times New Roman", serif;
    margin: 0 0 0.6rem;
}

/* Section titles (H2) */
.section__title {
    font-size: 2.3rem;
    font-weight: 500;
    color: var(--blue-monas);
    position: relative;
    padding-bottom: 0.6rem;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 0.6rem;
}
.section__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 2px;
    background-color: var(--gold-soft);
}
.section__header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
}
.section__header .section__title::after {
    left: 50%;
    transform: translateX(-50%);
}
.section__body {
    max-width: 900px;
    margin: 0 auto;
}

/* Chapter titles (H3) */
.chapter__title {
    font-size: 1.6rem;
    color: var(--blue-monas);
}

/* Kicker L'Écho / chapitres */
.section__kicker,
.chapter__kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.85rem;
    color: var(--gold-soft);
    margin-bottom: 0.8rem;
}
.section__kicker {
    text-align: center;
}

/* =========================
   Navigation interne du dossier
   ========================= */
.dossier-nav {
    margin: 30px auto 10px;
    max-width: 960px;
}
.dossier-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.dossier-nav__list a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--gold-soft);
    color: var(--gold-soft);
    text-decoration: none;
    font-size: 0.9rem;
    background-color: #f3eee4;
    transition: all 0.35s cubic-bezier(.2, .8, .2, 1);
}
.dossier-nav__list a:hover {
    background-color: #e7ddcf;
    transform: translateY(-1px);
}

/* =========================
   Bandeau de contexte
   ========================= */
.context-banner {
    max-width: 900px;
    margin: 40px auto 0;
    background: var(--bg-card);
    border: 1px solid rgba(176,141,87,0.35);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 18px 20px;
}
.context-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-soft);
    margin: 0 0 6px;
}
.context-text {
    color: var(--text-muted);
    margin: 0 0 8px;
}
.context-links {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}
.context-links a {
    color: var(--blue-monas);
    font-weight: 600;
    text-decoration: none;
}
.context-links a:hover {
    color: var(--gold-soft);
}

/* =========================
   Sections générales
   ========================= */
.section {
    margin-top: 30px;
}
.section__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 0;
}
/* Les chapitres et les grilles de cartes ont besoin de plus de largeur que
   la colonne de lecture (900px) : on l'élargit spécifiquement pour ces
   sections-là. */
.section--chapters .section__inner,
.section--cards .section__inner,
.section--cta .section__inner {
    max-width: 1100px;
}

/* Images insérées dans le corps d'un article */
.section-figure {
    margin: 28px auto;
    max-width: 900px;
}
.section-figure img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}
.section-figure--wide {
    max-width: 1100px;
}
.section-figure figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Séparateurs symboliques */
.separator {
    text-align: center;
    max-width: none;
    margin: 40px auto;
    color: var(--gold-soft);
    letter-spacing: 0.3em;
    font-size: 0.85rem;
}

/* =========================
   Chapitres (cartes image + texte)
   ========================= */
.chapter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: stretch;
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 28px;
    margin: 0 0 40px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.chapter__media {
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
}

/* ═══ C'EST ICI QU'ÉTAIT LA RÈGLE CASSÉE ═══
   La version précédente se refermait trop tôt, laissant deux lignes
   orphelines que le navigateur ignorait :

       .chapter__media img { max-width: 100%; height: auto; display: block; }
           border-radius: 16px;
       }

   Ici l'image remplit un cadre à hauteur fixe, à côté du texte.
   « object-fit: cover » signifie : remplis tout le cadre, et si les
   proportions ne tombent pas juste, rogne les bords — au lieu d'écraser. */
.chapter__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.chapter__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.chapter__content .card {
    margin-top: 20px;
}

@media (max-width: 800px) {
    .chapter {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    /* CORRIGÉ : min-height s'appliquait à l'image, ce qui la déformait
       sur mobile. Il appartient au cadre, pas à l'image. */
    .chapter__media {
        min-height: 220px;
    }
}

/* =========================
   Cartes d'information / encadrés
   ========================= */
.card {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            #f8fbff,
            #eef4fb
        );
    border: 1px solid rgba(67, 90, 107, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.card__title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--blue-monas);
    margin-bottom: 0.4rem;
}
.card__text {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.card__link {
    display: inline-block;
    margin-top: 10px;
    color: var(--blue-monas);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-soft);
}
.card__link:hover {
    color: var(--gold-soft);
}

/* Encadré "À retenir" avec symbole ✠ */
.card--note {
    position: relative;
    padding-left: 42px;
}
.card--note::before {
    content: "✠";
    position: absolute;
    left: 16px;
    top: 18px;
    color: var(--gold-soft);
    font-size: 20px;
}

/* Variantes de cartes utilisées dans les repères / CTA — même base visuelle,
   simple accent de couleur distinct pour aider à les repérer d'un coup d'œil. */
.card--question { border-left: 4px solid var(--gold-soft); }
.card--info     { border-left: 4px solid var(--blue-monas); }
.card--doc      { border-left: 4px solid var(--gold-soft); }
.card--cta      { text-align: center; }

/* =========================
   Citations
   ========================= */
.quote {
    border-left: 6px solid var(--gold-soft);
    background-color: var(--bg-quote);
    font-style: italic;
    padding: 35px;
    border-radius: 16px;
    margin-top: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.quote__text {
    margin: 0;
}
.quote__author {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.quote--final {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    border-radius: 0;
    border-top: 1px solid rgba(176, 141, 87, 0.4);
    border-bottom: 1px solid rgba(176, 141, 87, 0.4);
}

/* =========================
   Grilles de cartes (repères, sources, CTA)
   ========================= */
.cards-grid,
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 24px;
}
.cards-grid .card,
.cta-grid .card {
    margin-top: 0;
}
.cards-grid .card ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

/* =========================
   Timeline
   ========================= */
.section--timeline {
    margin-top: 30px;
}
.timeline {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}
.timeline__item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
}
.timeline__date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--blue-monas);
}
.timeline__content {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* CORRIGÉ : sur petit écran, la colonne de dates de 160px écrasait le texte.
   Les deux passent l'une sous l'autre. */
@media (max-width: 700px) {
    .timeline__item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* =========================
   Footer éditorial
   ========================= */
.site-footer {
    border-top: 1px solid rgba(67, 90, 107, 0.2);
    padding: 24px;
    margin-top: 40px;
    background-color: #f2eee4;
}
.site-footer__inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
.site-footer__brand {
    font-weight: 600;
    color: var(--blue-monas);
}
.site-footer__meta a {
    color: var(--blue-monas);
    text-decoration: none;
}
.site-footer__meta a:hover {
    color: var(--gold-soft);
}

/* =========================
   Responsif simple
   ========================= */
@media (max-width: 900px) {
    .hero {
        padding: 60px 24px;
        min-height: 420px;
    }
    .hero__title {
        font-size: 2.8rem;
    }
    .section__inner {
        padding: 24px 0;
    }
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .site-header__nav a {
        margin-left: 0;
        margin-right: 12px;
    }
}
