/*
Theme Name:   GeneratePress Child
Template:     generatepress
Version:      1.0.0
Description:  Thème enfant pour GeneratePress
Author:       Eva Redon
Author URI:   https://www.linkedin.com/in/eva-redon-dev/
Text Domain:  generatepress
*/

/* === Importation du style parent === */
@import url("../generatepress/style.css");

/* === Top Social Bar === */

.top-social-bar .container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    padding: 0.5rem;
    flex-wrap: wrap;
	justify-content:flex-end;
}

.top-social-bar a {
    color: #333;
    font-size: 24px;
    text-decoration: none;
    border: 1px solid grey;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    transition: all 0.3s ease;
}

.top-social-bar a:hover,
.footer a:hover {
    color: #EE2552 !important;
    border-color: #EE2552;
}

/* === SUB HEADER BARRE NOIRE === */
.custom-header-bar {
    background-color: var(--contrast);
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.custom-header-bar a {
	color:white;
}


/* === Footer === */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bar { display: none; }

.footer a {
    color: #f7f7f7 !important;
}

/* === Logo Bar === */
.custom-logo-bar {
    padding-top: 20px;
    text-align: center;
}

.inside-logo-bar {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link img {
    width: 250px;
    max-width: 100%;
    max-height: 150px;
    height: auto;
}

/* === Navigation === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.inside-header {
    padding: 10px 0;
}

.menu-toggle {
	background-color:transparent !important;
}

.main-navigation a {
    transition: color 0.3s ease;
    font-weight: bold;
	font-size:1.1rem;
}

/* === Sidebar === */
.inside-right-sidebar {
  position: sticky;
  top: 80px;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 25px;
}

.social-links div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
}

.social-links i {
  font-size: 20px;
	padding-right:5px;
}

.social-links a {
	color:black;
}

.wp-block-latest-posts__list {
    display: flex;
    flex-direction: column;
	margin: 0;
    padding: 0;
    gap: 1rem;
  }

.wp-block-latest-posts.wp-block-latest-posts__list li {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  padding:15px;
}

.wp-block-latest-posts__featured-image img {
	border-radius:5px;
}

.wp-block-latest-posts__post-title {
	font-size:16px;
	line-height:1;
	font-weight:bold;
	color:black;
}

.wp-block-latest-posts__post-title:hover {
    color: var(--accent);
}

.wp-block-latest-posts__post-date {
    font-size: 0.865rem;
    color: var(--base);
}

.widget-area .widget {
	padding: 20px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .logo-link { display: none; }
	
	.top-social-bar .container {
		justify-content:center;
	}

    .top-social-bar a {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
	.custom-logo-bar {
    display:none;
}
}
