/*
Theme Name: Mon Theme Perso
Text Domain: mon-theme-perso
*/

/* ===========================================
   STYLE MAGAZINE
   =========================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background: #ffffffde;
}

.layout-two-columns {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* SIDEBAR GAUCHE - Index catégories arbre */
.sidebar-left {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.widget-title {
    font-size: 1.4rem;
    color: #0785cc;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #0785cc;
    padding-bottom: 0.5rem;
}

.categories-tree {
    font-size: 0.95rem;
}

.categories-tree ul {
    list-style: none;
    padding-left: 1rem;
}

.categories-tree ul li {
    margin: 0.3rem 0;
}

.categories-tree ul li a {
    color: #555;
    text-decoration: none;
    padding: 0.4rem 0;
    display: block;
    border-radius: 4px;
    transition: all 0.3s;
}

.categories-tree ul li a:hover {
    background: #e3f2fd;
    color: #1976d2;
    padding-left: 0.5rem;
}

.categories-tree ul ul {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* CONTENU PRINCIPAL - Style magazine */
.site-main {
    display: grid;
    gap: 3rem;
}

/* ARTICLE HERO (premier post) */
.site-main article:first-child {
    /*display: grid;
      grid-template-columns: 1fr 2fr;*/
    gap: 2rem;
    align-items: center;
    padding: 20px;
	width: 95%;
    background: rgb(232, 228, 228);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wp-block-code code { 
	color: #FFFFFF;
	background: rgb(0, 0, 0);
	border-radius: 12px;
	padding: 15px;
}
.single-featured-image {
	width: 95%;
    height: 95%;
    display: contents;	
}

.site-main article:first-child::before {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 0;
}

.site-main article:first-child > * {
    position: relative;
    z-index: 0;
}

.entry-title:first-child {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.entry-excerpt:first-child {
    font-size: 1.3rem;
}

/* GRILLE ARTICLES SECONDAIRES */
.site-main article:not(:first-child) {
    display: grid;
    /*grid-template-columns: 1fr 2fr;*/
    gap: 2rem;
    align-items: center;
	width: 95%;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.single-featured-image-full.wp-post-image {
    width: 100%;
}

.site-main article:not(:first-child):hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.entry-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.entry-content {
    padding-left: 1rem;
}

.entry-title {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.entry-title a {
    color: #000000;
    text-decoration: none;
}

.entry-title a:hover {
    color: #b9fbff;
}

.entry-meta {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.entry-excerpt {
    color: #26252564;
    margin: 0;
}
.entry-date{
    color:#000000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .layout-two-columns {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .sidebar-left {
        order: 2;
        position: static;
    }
    
    .site-main article:first-child {
        padding: 2rem 1.5rem;
    }
    
    .entry-title:first-child {
        font-size: 2.5rem;
    }
    
    .site-main article:not(:first-child) {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
}

/* PAGINATION MAGAZINE */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a, .pagination span {
    padding: 0.8rem 1.2rem;
    background: white;
    color: #000000;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #eee;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #ffffff;
    color: rgb(0, 0, 0);
    border-color: #0785cc;
}

/* LOGO HEADER */
.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    background: #0785cc;
    color: white;
    border-color: #000000;
}

.logo-container {
    flex-shrink: 0;
}

.logo-container-2 {
    align-items: center;
}
.logo-image {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.login-image{
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.titre-image {
    height: auto;
    width: 80%;
    /*max-width: 700px; */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.featured-image {
    /*height: 200px;
    width: auto;
    / *max-width: 250px;* /
    object-fit: contain;
    transition: transform 0.3s ease;*/
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto;              /* Centre horizontalement */
    max-width: 100%;
    display: flex;justify-content: center;     /* Centre l'image dans son conteneur */
    align-items: center;         /* Centre verticalement */
    aspect-ratio: 16/9;          /* Proportions fixes */
}

.single-featured-image-full img .wp-post-image {
    /*height: auto;
    width: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;*/
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto;              /* Centre horizontalement */
    max-width: 100%;
    display: flex; justify-content: center;     /* Centre l'image dans son conteneur */
    align-items: center;         /* Centre verticalement */
    aspect-ratio: 16/9;          /* Proportions fixes */
}

.logo-image:hover {
    transform: scale(1.05);
}

.site-title-container {
    flex: 1;
}

.site-title {
    font-size: 2.2rem;
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
}

.site-title a {
    color: white;
    text-decoration: none;
}

/* RESPONSIVE LOGO */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .logo-image {
        height: 60px;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 50px;
    }
}

.footer-content{
    text-align: center;
}


/* LIENS ROUGES UNIFORMES - TOUS ÉTATS */
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    color: #0f5eac !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0f5eac !important;
    text-decoration: underline;
}

/* Exceptions spécifiques */
.entry-cat a { color: #1976d2 !important; }
.entry-cat a:hover { color: #0d47a1 !important; }
.read-more { color: white !important; }
.site-title a { color: white !important; }


