/*
Theme Name: Harrison Child
Theme URI:  https://example.com
Description: Thème enfant pour Harrison (ThemeZee)
Author: JDE
Template: harrison
Version: 1.0.0
*/
.site {
    opacity: 0.9;
}

.page-deux-colonnes-wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* Affichaege page modele deux colonnes*/
.col-principale article {
    margin-bottom: 30px;
}

.col-sidebar .widget {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.col-sidebar .widget-title {
    margin-bottom: 10px;
}

/* Structure générale */
.col-sidebar .widget {
    background: #fafafa;
    padding: 18px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #ececec;
}

/* Titres de widgets */
.col-sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Widget catégories */
.widget_happystory_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_happystory_categories li {
    margin-bottom: 8px;
}

.widget_happystory_categories a {
    text-decoration: none;
    color: #333;
}

.widget_happystory_categories a:hover {
    color: #0073aa;
}

/* Encart personnalisé */
.widget-highlight {
    background: #fff7dd;
    border-left: 4px solid #eab308;
    padding: 20px;
    color: #5c4a00;
}


/*Affichage artciles page page-deux-colonne.php*/

/* Styles articles pour template HappyStory */
.page-deux-colonnes-wrapper .col-principale article {
    display: flex;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.page-deux-colonnes-wrapper .entry-thumbnail img {
    width: 140px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.page-deux-colonnes-wrapper .entry-header .entry-title {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
}

.page-deux-colonnes-wrapper .entry-summary {
    margin-top: 8px;
    color: #444;
}

.page-deux-colonnes-wrapper .entry-footer .read-more {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: transparent;
}


/* --- HappyStory Magazine List Full Style --- */
.hs-mag-item {
    display: flex;
    gap: 22px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.hs-mag-thumb img {
    width: 260px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.hs-mag-content {
    flex: 1;
}

.hs-mag-title {
    font-size: 1.35rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.hs-mag-title a {
    text-decoration: none;
    color: #222;
}

.hs-mag-title a:hover {
    color: #0073aa;
}

.hs-mag-meta {
    margin-bottom: 12px;
    color: #777;
    font-size: 0.9rem;
}

.hs-mag-excerpt {
    color: #444;
    margin-bottom: 14px;
}

.hs-mag-readmore {
    font-weight: 600;
    padding: 6px 0;
    display: inline-block;
    text-decoration: none;
    color: #0073aa;
}

.hs-mag-readmore:hover {
    text-decoration: underline;
}

/* Ajustement responsive */
@media (max-width: 768px) {
    .hs-mag-item {
        flex-direction: column;
    }

    .hs-mag-thumb img {
        width: 100%;
    }
}

.hs-mag-thumb img {
    width: 260px;   /* ou 320px si tu veux la taille exacte 4:3 */
    height: 195px;  /* 260 * (3/4) = 195 → ratio 4:3 */
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
}



/* --- Grille pour les archives de catégories --- */

.hs-grid-wrapper {
    margin-top: 20px;
}

/* --- Grille style Display Post Types Grid (sans cropping, masonry fluide) --- */

.hs-grid {
    column-count: 3;        /* 3 colonnes - fluide selon la hauteur des images */
    column-gap: 24px;
    width: 100%;
}

.hs-grid-item {
    break-inside: avoid-column;
    margin-bottom: 24px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    display: block;
    transition: box-shadow .2s;
}

.hs-grid-item:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.hs-grid-thumb img {
    width: 100%;
    height: auto;  /* Aucune contrainte = pas de cropping */
    display: block;
}

.hs-grid-title {
    font-size: 1.05rem;
    margin: 12px;
}


.hs-grid-title a {
    text-decoration: none;
    color: #222;
}

.hs-grid-title a:hover {
    color: #0073aa;
}
@media (max-width: 980px) {
    .hs-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .hs-grid {
        column-count: 1;
    }
}

