/* mod_accueil.css — Styles du module Accueil. Convention CSS : voir CLAUDE.md, "## CSS". */

/* ═══════════════════════════════════════════
   ÉCHELLE TYPOGRAPHIQUE COMMUNE — PAGE D'ACCUEIL
   Titres et corps de texte harmonisés entre les trois blocs
   (présentation, cartes d'accès, actualités).
   NB : la base des titres h2 (taille/graisse/couleur/centrage) est définie
   dans style.css (#home-content h2) — foyer unique. Ici on ne fait qu'ajouter
   la décoration et régler le corps de texte.
   ═══════════════════════════════════════════ */

/* Trait décoratif sous les titres de section (bloc présentation) */
.markdown-content h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color1);
    margin: 0.4rem auto 0;
    border-radius: 2px;
}

/* Corps de texte — taille unique pour paragraphes, listes et descriptions */
.markdown-content p,
.markdown-content ul li,
.actu-bloc p,
.accueil_bloc .item-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

.markdown-content p {
    margin-bottom: 1rem;
}

/* Listes — définition unique (remplace les 3 versions concurrentes précédentes) */
.markdown-content ul {
    padding-left: 0;
    margin: 1.5rem 2rem 2rem 2rem;
    list-style: none;
}

.markdown-content ul li {
    margin-bottom: 1rem;
    padding-left: 1.4rem;
    position: relative;
}

/* Puce personnalisée */
.markdown-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color1);
}

/* Mise en avant dans les listes */
.markdown-content ul li strong {
    color: var(--color1);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   BLOC ACTUALITÉS — carte avec icône + date
   ═══════════════════════════════════════════ */

.actu-bloc {
    position: relative;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    background: var(--color-bg-light);
    border-left: 4px solid var(--color1);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Titre de la carte : même échelle que les autres titres, aligné à gauche,
   précédé d'une icône « nouveauté ». */
.actu-bloc h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    margin: 0;
    font-size: 18px !important;
    font-weight: normal !important;
}

.actu-bloc h2::before {
    content: "\f1ea";
    /* newspaper (Font Awesome 6 Free, solid) */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65em;
    color: var(--color1);
}

/* Pas de trait décoratif sur la carte (l'icône fait office de repère) */
.actu-bloc h2::after {
    display: none;
}

.actu-bloc p {
    margin: 0.75rem 0 0;
}

/* Date mise en avant sous forme de badge (le <b> initial du paragraphe) */
.actu-bloc p b {
    display: inline-block;
    background: var(--color1);
    color: var(--color1-text);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85em;
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════
   BLOC CARTES D'ACCÈS (speedlinks / accueil_bloc)
   ═══════════════════════════════════════════ */

.accueil_bloc .item-desc {
    line-height: 20px;
    margin: 10px 20px 15px;
    padding: 0;
    text-align: center;
    min-height: 90px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accueil_bloc .item-desc b {
    color: var(--color1);
    font-weight: 600;
}

.accueil_bloc .item {
    text-decoration: none;
    color: inherit;
}

.accueil_bloc .item-title,
.accueil_bloc .item-desc {
    text-decoration: none;
    color: inherit;
}

.accueil_bloc .item:hover,
.accueil_bloc .item:hover .item-title,
.accueil_bloc .item:hover .item-desc {
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   BADGE DE VERSION — bas à droite, accueil uniquement
   ═══════════════════════════════════════════ */

.version-badge {
    position: absolute;
    bottom: 0px;
    /* right: 18px; */
    z-index: 5;
    font-size: 12px;
    font-weight: 600;
    color: var(--color1);
    background: rgba(255, 255, 255, 0.7);
    padding: 3px 10px;
    /* border-radius: 2px; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}