/* Journal de bord — Accueil du site ChezSerge (php/gabarits/accueil_chezserge.php, 2026-11-04). */

.JournalBord {
    max-width: 980px;
}

.JournalBord a {
    color: #2B4257;
}

.JdbEnTete {
    margin: 0 0 2px;
    font-size: 0.85em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a2a1c;
}

.AccueilTitre {
    margin: 0 0 4px;
    font-size: 1.6em;
}

.AccueilMot {
    color: #555;
    margin-bottom: 8px;
}

/* ← Semaine du 2 au 8 novembre 2026 → */
.JdbPeriode {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 6px 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.JdbPeriode h1 {
    margin: 0;
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1.2;
}

.JdbPeriode > a,
.JdbPeriode > .Inactif {
    font-size: 1.6em;
    text-decoration: none;
    line-height: 1;
}

.JdbPeriode > .Inactif {
    color: #ccc;
}

.JdbVide {
    color: #666;
}

.JdbSorte {
    display: block;
    color: #888;
    font-size: .78em;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Récits : chapeaux de la période */
.JdbRecit {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 30px;
}

.JdbRecit img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.JdbRecit h2 {
    margin: 4px 0 8px;
    font-size: 1.45em;
    line-height: 1.25;
}

.JdbRecit h2 a {
    text-decoration: none;
}

.JdbRecit p {
    margin: 0 0 10px;
}

.JdbRecit.Court {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
}

.JdbRecit.Court h2 {
    font-size: 1.15em;
}

/* Un jour (ou un mois) */
.JdbGroupe {
    margin-bottom: 28px;
}

.JdbGroupe > h2 {
    margin: 0 0 10px;
    font-size: 1em;
    font-weight: normal;
    color: #C0392B;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.JdbPhotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
    margin-bottom: 14px;
}

/* Sous la bande de photos d'un jour (2026-11-15) : où elles sont rangées, puis le mot de Serge */
.JdbLegende {
    margin: -8px 0 4px;
    font-size: 0.9em;
    color: #777;
}

.JdbPhotos + .JdbLegende + .JdbMot,
.JdbPhotos + .JdbMot {
    margin: 0 0 14px;
}

.JdbPhotos.Petites {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}

.JdbPhotos img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
}

.JdbPlus {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    background: #f4f4f2;
    border-radius: 3px;
}

.JdbListe {
    list-style: none;
    margin: 0;
    padding: 0;
}

.JdbListe li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.JdbListe li:first-child {
    border-top: 0;
}

.JdbListe img,
.JdbListe .SansImage {
    flex: 0 0 auto;
    width: 96px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f4f4f2;
    border-radius: 3px;
}

.JdbListe li.Sortepersonne img,
.JdbListe li.Sortegroupe img {
    width: 54px;
    aspect-ratio: 1 / 1;
}

.JdbListe li.Sortegroupe img {
    object-fit: contain;
}

.JdbTitre {
    display: block;
    font-weight: bold;
    line-height: 1.3;
}

.JdbTitre a {
    text-decoration: none;
}

.JdbTitre a:hover {
    text-decoration: underline;
}

.JdbExtrait {
    display: block;
    color: #555;
    font-size: .92em;
    margin-top: 3px;
}

.JdbListe.Compacte li {
    padding: 5px 0;
    align-items: center;
}

.JdbListe.Compacte img,
.JdbListe.Compacte .SansImage {
    width: 48px;
}

@media (max-width: 640px) {
    .JdbRecit,
    .JdbRecit.Court {
        grid-template-columns: 1fr;
    }
    .JdbPeriode h1 {
        font-size: 1.15em;
    }
    .JdbListe img,
    .JdbListe .SansImage {
        width: 72px;
    }
}

/* Aperçu « Voir comme » (admin) */
.JdbApercu {
    margin: 0 0 12px;
    padding: 6px 10px;
    color: #7a5a00;
    background: #fff6d6;
    border-left: 4px solid #e0b100;
    font-size: .9em;
}

/* Petit texte de la période, sous son titre */
.JdbTextePeriode {
    margin: -8px 0 24px;
    color: #444;
    font-style: italic;
}

/* Onglets par sorte (2026-11-09, conception/publier_visibilite.md § 6.2) : Tout, puis l'ordre alphabétique */
.JdbOnglets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: -10px 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.JdbOnglets a {
    padding: 3px 12px;
    border: 1px solid #ddd;
    border-radius: 999px;
    color: #333;
    text-decoration: none;
    font-size: .92em;
}

.JdbOnglets a:hover {
    border-color: #2B4257;
}

.JdbOnglets a b {
    margin-left: 5px;
    font-weight: normal;
    font-size: .82em;
    color: #888;
}

.JdbOnglets a.Actif {
    color: #fff;
    background: #2B4257;
    border-color: #2B4257;
}

.JdbOnglets a.Actif b {
    color: #dce4ec;
}

/* Mot de Serge sous une fiche (stg_rzn_atm.Mot) */
.JdbMot {
    display: block;
    margin-top: 5px;
    font-style: italic;
    color: #333;
}

.JdbMot::before {
    content: "« ";
    color: #999;
}

.JdbMot::after {
    content: " »";
    color: #999;
}

/* Une forme par sorte (vue Jour et Semaine) */
.JdbListe:not(.Compacte) li.Sortevideo img {
    width: 150px;
}

.JdbListe li.Sortepersonne img {
    border-radius: 50%;
    object-fit: cover;
}

.JdbListe li.Sortelivre img,
.JdbListe li.Sortenotedelecture img {
    width: 54px;
    aspect-ratio: 2 / 3;
    border-radius: 2px;
    box-shadow: 2px 2px 0 #e6e4e0;
}

@media (max-width: 640px) {
    .JdbListe:not(.Compacte) li.Sortevideo img {
        width: 110px;
    }
}
