/*--------------------------------------------------------------
# Composants Modernes - Articles, Grilles, etc.
--------------------------------------------------------------*/

/* LAYOUT PRINCIPAL */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	width: 100%;
}

.gazeti-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	width: 100%;
}

/* GRILLE D'ARTICLES - Articles "À la Une" */
.articles-grid,
.posts-grid,
.featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin: 2rem 0;
}

.article-item,
.post-item,
.featured-item {
	background: #FFFFFF;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid transparent;
	display: flex;
	flex-direction: column;
}

.article-item:hover,
.post-item:hover,
.featured-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(255, 0, 0, 0.2);
	border-color: var(--color-primary);
}

/* IMAGE ARTICLE */
.article-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: linear-gradient(135deg, #F9F9F9 0%, #E8E8E8 100%);
	position: relative;
}

.article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-item:hover .article-image img {
	transform: scale(1.1) rotate(0.5deg);
}

/* BADGE CATÉGORIE */
.article-category,
.post-category {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--color-primary);
	color: #FFFFFF;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 10;
}

/* CONTENU ARTICLE */
.article-content,
.post-content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.article-title,
.post-title {
	margin: 0 0 0.75rem 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-text);
	transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
}

.article-item:hover .article-title,
.post-item:hover .post-title {
	color: var(--color-primary);
}

.article-excerpt,
.post-excerpt {
	margin: 0.75rem 0;
	font-size: 0.95rem;
	color: var(--color-text-light);
	line-height: 1.5;
	flex: 1;
}

/* META ARTICLE */
.article-meta,
.post-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 2px solid #F2F2F2;
	font-size: 0.875rem;
	color: var(--color-text-light);
}

.article-meta-item,
.post-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-meta-item:hover,
.post-meta-item:hover {
	color: var(--color-primary);
}

.article-meta-icon,
.post-meta-icon {
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* SLIDER HERO */
.hero-slider,
.featured-slider {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 2rem;
	min-height: 400px;
}

.hero-slide,
.featured-slide {
	position: relative;
	height: 400px;
	background: linear-gradient(135deg, #F9F9F9 0%, #E8E8E8 100%);
	animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide::before,
.featured-slide::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
	z-index: 2;
}

.hero-slide-image,
.featured-slide-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.4, 0.2, 1, 1);
}

.hero-slider:hover .hero-slide-image,
.featured-slider:hover .featured-slide-image {
	transform: scale(1.05) rotate(0.2deg);
}

.hero-content,
.featured-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem;
	z-index: 3;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
	animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title,
.featured-title {
	font-size: 2rem;
	font-weight: 700;
	color: #FFFFFF;
	margin: 0 0 0.5rem 0;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-excerpt,
.featured-excerpt {
	font-size: 1rem;
	color: #E8E8E8;
	margin: 0;
	line-height: 1.5;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* SIDEBAR */
.home-sidebar,
.archive-sidebar-col,
.sidebar {
	background: #F9F9F9;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.08);
}

.sidebar-widget {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid #E0E0E0;
	animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-widget:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.widget-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 1rem 0;
	padding-bottom: 0.75rem;
	border-bottom: 3px solid var(--color-primary);
	position: relative;
	letter-spacing: -0.5px;
}

.widget-title::before {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	height: 3px;
	background: var(--color-primary);
	animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	width: 60%;
}

/* PAGINATION */
.pagination,
.posts-navigation {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 2rem 0;
	flex-wrap: wrap;
	animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination a,
.pagination .page-numbers,
.posts-navigation a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 6px;
	font-weight: 600;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid var(--color-border);
	color: var(--color-text);
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

.pagination a:hover,
.pagination .page-numbers:hover,
.posts-navigation a:hover {
	border-color: var(--color-primary);
	color: #FFFFFF;
	background: var(--color-primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.pagination .current,
.pagination span.page-numbers.current {
	background: var(--color-primary);
	color: #FFFFFF;
	border-color: var(--color-primary);
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* CONTENU SIMPLE */
.entry-content {
	font-size: 1.05rem;
	line-height: 1.8;
	margin: 2rem 0;
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--color-primary);
	border-left: 4px solid var(--color-primary);
	padding-left: 1rem;
}

.entry-content ul,
.entry-content ol {
	margin: 1.5rem 0;
	padding-left: 2rem;
}

.entry-content li {
	margin-bottom: 0.75rem;
}

.entry-content blockquote {
	border-left: 4px solid var(--color-primary);
	padding-left: 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: var(--color-text-light);
	background: #F9F9F9;
	padding: 1.5rem;
	border-radius: 6px;
}

/* IMAGE GALLERY */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.gallery-item {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
	transform: scale(1.05);
	box-shadow: 0 8px 20px rgba(255, 0, 0, 0.2);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
	transform: scale(1.1);
}

/*--------------------------------------------------------------
# BANDEAU COOKIES - PREMIUM FLOATING CARD
--------------------------------------------------------------*/
.gazeti-cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 2rem;
    max-width: 400px;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: block; /* Ensure it is block, visibility controlled by bottom and class show */
}

.gazeti-cookie-banner.show {
    bottom: 2rem;
}

.cookie-card-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-icon {
    width: 44px;
    height: 44px;
    background: rgba(200, 40, 0, 0.1);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.cookie-icon svg {
    width: 24px;
    height: 24px;
}

.cookie-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4a4a4a;
}

.cookie-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cookie-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-link-more,
.btn-cookie-refuse-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-link-more:hover,
.btn-cookie-refuse-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.btn-cookie-accept-main {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--color-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(200, 40, 0, 0.25);
}

.btn-cookie-accept-main:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 40, 0, 0.35);
}

.btn-cookie-accept-main:active {
    transform: translateY(0);
}

/* Dark Mode Adaptation */
body.dark-mode .gazeti-cookie-banner {
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

body.dark-mode .cookie-title {
    color: #FFFFFF;
}

body.dark-mode .cookie-text {
    color: #BBBBBB;
}

body.dark-mode .cookie-icon {
    background: rgba(200, 40, 0, 0.2);
}

@media screen and (max-width: 576px) {
    .gazeti-cookie-banner {
        left: 1rem;
        right: 1rem;
        max-width: none;
        bottom: -100%;
    }
    .gazeti-cookie-banner.show {
        bottom: 1rem;
    }
}
