/*
Theme Name: custom-17
Theme URI: https://wordpress.org/themes/twentyseventeen/
Description: Twenty Seventeen Child Theme
Author: Mike
Author URI: https://wordpress.org/
Template: twentyseventeen
Version: 1.0.0
*/

.navigation-top{
border-top: 1px solid #dfdfdf;
border-bottom: 1px solid #dfdfdf;
}
.single-post:not(.has-sidebar) #primary,
.page.page-one-column:not(.twentyseventeen-front-page) #primary,
.archive.page-one-column:not(.has-sidebar) .page-header,
.archive.page-one-column:not(.has-sidebar) #primary {
	margin-left: auto;
	margin-right: auto;
	max-width: 1000px;
	margin-bottom: 1em;
	padding-bottom: 0em;
}

body:not(.has-sidebar):not(.page-one-column) .page-header {
float:none;
width:100%;
margin-bottom: 1em;
padding-bottom: 0em;
}

.wrap{
max-width:1050px;	
}
.site-content {
padding: 1.5em 0 0;
}

.site-title a {
font-size:0.6em;
}

.site-branding {
padding: 1em 0;
}

img.custom-logo {
width:200px;	
}

.site-description {
font-style:italic;
}

.entry-meta{
display:none;
}

.coloriage-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 2rem;
    align-items: start;
    position: relative;
}

.coloriage-sidebar {
    position: sticky;
    bottom: 10px; /* height of the fixed header */
    align-self: end;
}

.sidebar-inner {
    padding: 1rem;
    background: #fff;
    border-left: 1px solid #e5e5e5;
}

.sidebar-item a.print-link,
.sidebar-item a.download-link {
    display: block;              /* full width */
    width: 90%;                  /* almost full width */
    margin: 0.5rem auto;         /* center horizontally with spacing */
    padding: 0.6rem 1rem;
    background: #4aa3ff;         /* playful blue */
    color: #fff;
    font-weight: bold;
    font-size: 0.95rem;
    text-align: center;          /* center text inside button */
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.sidebar-item a.print-link:hover,
.sidebar-item a.download-link:hover {
    background: #1e7fff;         /* darker blue on hover */
    transform: translateY(-2px); /* playful lift */
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.sidebar-item img.niveau{
vertical-align:middle;
width:40px;
}


.share-post a:hover{
box-shadow:none;
opacity:0.8;
}
.share-post{
float:right;
}
.share-post{
font-size:0.8em;
font-weight:600;
font-style:italic;
}
.share-post img {
vertical-align:middle;
margin:0px 1px;
width:25px;
padding:0 0;
}
.entry-header .entry-title {
	display:inline;
}

/* Grid container */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 40px 0;
}

/* Each post card */
.posts-grid article {
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.posts-grid article:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.posts-grid .entry-title, .blog:not(.has-sidebar) #primary .posts-grid .entry-title {
	font-size: 1.1rem;
	margin-bottom: 10px;
	text-align: center;
}

.posts-grid .img-coloriage {
	height: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 12px;
}

.posts-grid .img-coloriage a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border: none !important;
	text-decoration: none !important;
}

.posts-grid .img-coloriage a img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	display: block;
}

.posts-grid article .entry-content .img-coloriage a {
	border: none !important;
	text-decoration: none !important;
	box-shadow:none;
}

.posts-grid .entry-title {
	margin-top: 0;
	margin-bottom: 0;
}

.posts-grid .entry-content {
	padding-bottom: 0;
}

.posts-grid article {
	float: none;
	width: auto;
}

/* Prepare image for transform */
.posts-grid .img-coloriage img {
	transition: transform 0.35s ease;
}

/* Zoom image on card hover */
.posts-grid article:hover .img-coloriage img {
	transform: scale(1.06);
}

.category-section {
	padding-top: 1.5rem;
}

.category-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.category-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
	padding-left:10px;
}

.category-link {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
	color: #555;
}

.category-link:hover {
	text-decoration: underline;
}

.blog:not(.has-sidebar) #primary .posts-grid article, .search:not(.has-sidebar) #primary .posts-grid article {
	float: none;
	width: 100%;
}


.site-footer{
background-color:#fafafa;
}

/* Tablet */
@media (max-width: 1024px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile-friendly layout */
@media (max-width: 768px) {
    .coloriage-layout {
        display: block; /* stack vertically */
    }

    .img-coloriage,
    .coloriage-sidebar {
        width: 100%; /* full width */
        max-width: 100%;
    }

    .coloriage-sidebar {
        position: relative; /* disable sticky on mobile */
        top: auto;
        bottom: auto;
        margin-top: 1.5rem; /* spacing below image */
        align-self: auto;
    }

    .sidebar-inner {
        border-left: none; /* remove left border on mobile */
        border-top: 1px solid #e5e5e5; /* optional top border */
    }
}

/* Mobile */
@media (max-width: 600px) {
	.posts-grid {
		grid-template-columns: 1fr;
	}
}