﻿/* =====================================================
   GCS HOURAA – Styles communs Actualités (LISTE + DETAIL)
   ===================================================== */

/* ---------- Global ---------- */
hr {
    display: block;
    margin: 0 auto .5em auto;
    border-style: inset;
    border-width: 1px;
}

.actu-wrap {
    padding: 18px 0;
}

/* ---------- Bouton retour ---------- */
.actu-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* =====================================================
   LISTE DES ACTUALITÉS (GCS_HOURAA.cshtml)
   ===================================================== */

.actu-grid {
    margin-top: 10px;
}

.actu-card {
    border: 1px solid #fff;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-actu-liste .actu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
}


.actu-thumb {
    position: relative;
    width: 100%;
    padding-top: 56%; 
}

    .actu-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.actu-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,.70);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
}

.actu-body {
    padding: 14px 14px 12px 14px;
    flex: 1 1 auto;
}

.actu-title {
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actu-meta {
    color: #6c757d;
    font-size: .9rem;
    margin-bottom: 10px;
}

.actu-excerpt {
    color: #343a40;
    font-size: .95rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.actu-footer {
    padding: 0 14px 14px 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.actu-link {
    font-weight: 700;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    background: #004661;
    color: #fff;
    transition: background .15s ease;
}

    .actu-link:hover {
        background: #e9ecef;
        text-decoration: none;
    }

/* =====================================================
   DÉTAIL ACTUALITÉ (GCS_HOURAA_Detail.cshtml)
   ===================================================== */

.actu-card-detail {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
    overflow: hidden;
}

.actu-header {
    padding: 18px 18px 10px 18px;
}

.actu-meta-detail {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(0,0,0,.55);
}

/* ---------- Image détail ---------- */
.actu-media {
    padding: 0 18px 16px 18px;
}

.actu-img-frame {
    width: 100%;
    max-height: 420px;
    border-radius: 14px;
    background: #f6f8fb;
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .actu-img-frame img {
        width: 100%;
        height: 100%;
        max-height: 420px;
        object-fit: contain;
    }

/* ---------- Contenu détail ---------- */
.actu-body-detail {
    padding: 0 18px 18px 18px;
}

    .actu-body-detail hr {
        margin: 18px 0;
        opacity: .12;
    }

/* ---------- Documents ---------- */
.actu-docs ul {
    padding-left: 18px;
    margin: 0;
}

.actu-docs a {
    font-weight: 700;
    text-decoration: none;
}

.lien-externe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #004661;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

    .lien-externe:hover {
        background: rgba(0,180,216,.20);
        transform: translateY(-1px);
    }

/* ---------- Bouton lien rapide ---------- */
.lien-rapide-wrap {
    margin-top: 18px;
    text-align: center;
}

.btn-lien-rapide {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #005aa7, #00b4d8);
    color: #fff !important;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.14);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .btn-lien-rapide:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(0,0,0,.20);
    }
