:root {
	--primary: #1E3A8A;
	--secondary: #3B82F6;
	--accent: #E6C35C;
	--white: #FAFAFA; /* #FFFFFF; */
	--light-bg: #F8FAFC;
	--text: #1E293B;
	--menu-shadow: rgba(0, 0, 0, 0.15);
	--footer-bg: linear-gradient(135deg, #1E3A8A 0%, #0F2C6B 100%);
	--footer-text: #FFFFFF;
	--footer-link-hover: #FFD700;
	--footer-border: rgba(255, 255, 255, 0.1);
	--transition: all 0.3s ease;
	--shadow-md: 0 4px 12px rgba(0,0,0,0.1);
	--shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
	--border: rgba(0,0,0,0.1);
	--gradient-primary: linear-gradient(135deg, var(--primary) 0%, #1D4ED8 100%);
	--focus-outline: 3px solid #3B82F6;
	--focus-outline-offset: 2px;
	--muted: #94a3b8;
}
body.dark-mode {
	--primary: #0F172A;
	--secondary: #1E40AF;
	--light-bg: #1E293B;
	--text: #E2E8F0;
	--menu-shadow: rgba(0, 0, 0, 0.3);
	--white: #1E293B;
	--footer-bg: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
	--footer-text: #E2E8F0;
	--footer-link-hover: #FBBF24;
	--footer-border: rgba(255, 255, 255, 0.05);
	--border: rgba(255,255,255,0.1);
	--focus-outline: 3px solid #60A5FA;
	--muted: #cbd5e1;

	--surface-light-bg: #f9fafb;
	--surface-light-text: #1e293b;
	--surface-light-border: rgba(0,0,0,0.08);
	--surface-light-shadow: 0 4px 20px rgba(0,0,0,0.35);	
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
	font-family: 'Tajawal', system-ui, sans-serif;
	background: var(--light-bg);
	color: var(--text);
	line-height: 1.6;
	transition: background 0.3s ease, color 0.3s ease;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	
    overflow-x: hidden !important;
    max-width: 100% !important;	
}

/* Improved focus styles for accessibility */
a:focus,
button:focus,
input:focus,
.icon-btn:focus,
.search-btn:focus,
.carousel-btn:focus {
	outline: var(--focus-outline);
	outline-offset: var(--focus-outline-offset);
}

/* Skip to main content link for screen readers */
.skip-link {
	position: absolute;
	top: -40px;
	right: 0;
	background: var(--primary);
	color: white;
	padding: 8px;
	text-decoration: none;
	z-index: 10000;
	transition: top 0.3s;
}

.skip-link:focus {
	top: 0;
	outline: var(--focus-outline);
}

/* === HEADER STABLE POUR ADSENSE === */
header {
	background: var(--gradient-primary);
	padding: 0.8rem 1.2rem;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 1000;
	box-shadow: var(--shadow-md);
	border-bottom: 4px solid var(--accent);
}

.logo {
	display: flex;
	align-items: center;
	gap: 5px;
}

.nav-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.main-nav {
	display: flex;
	gap: 1.8rem;
}
.main-nav a {
	color: #FFFFFF;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	text-decoration: none;
	font-weight: 600;
	font-size: 1.05rem;
	opacity: 0.95;
	transition: all 0.3s;
	padding: 0.3rem 0;
	position: relative;
}
.main-nav a:hover {
	opacity: 1;
	color: #FFFFFF;
	transform: translateY(-2px);
}
.main-nav a::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 0;
	height: 2px;
	background: var(--accent);
	transition: width 0.3s;
}
.main-nav a:hover::after {
	width: 100%;
	left: 0;
}

/* تحسينات القائمة الجوالة للسماح بالتمرير */
.mobile-nav {
   position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(160deg, var(--primary) 0%, #0F2C6B 100%);
    padding: 3.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    box-shadow: -8px 0 25px var(--menu-shadow);
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
}
.mobile-nav.active {
	transform: translateX(0);
}
.mobile-nav .nav-menu {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	margin-top: 3rem;
	height: auto;
	padding-bottom: 2rem;
}
.mobile-nav .nav-menu a {
	color: #FFFFFF;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	text-decoration: none;
	font-size: 1.15rem;
	font-weight: 600;
	display: block;
	padding: 0.8rem 1rem;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: rgba(255,255,255,0.05);
	opacity: 0.95;
}
.mobile-nav .nav-menu a:hover {
	background: rgba(255,255,255,0.1);
	color: #FFFFFF;
	transform: translateX(-5px);
	opacity: 1;
}
.mobile-nav .nav-menu a.active {
	background: rgba(255,215,0,0.15);
	border-left: 3px solid var(--accent);
}

/* تحسين مظهر شريط التمرير */
.mobile-nav::-webkit-scrollbar {
	width: 5px;
}

.mobile-nav::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 10px;
}

.mobile-nav::-webkit-scrollbar-thumb:hover {
	background-color: rgba(255, 255, 255, 0.5);
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.6);
	backdrop-filter: blur(4px);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s;
	pointer-events: none;
}
.overlay.active {
	opacity: 1;
	pointer-events: all;
}

.icon-btn {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 10px;
	width: 42px;
	height: 42px;
	color: var(--white);
	font-size: 1.1rem;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}
.icon-btn:hover {
	background: rgba(255,255,255,0.2);
	transform: scale(1.05);
}

.header-favorite-btn {
	position: relative;
	display: none;
}

.header-favorite-count {
	position: absolute;
	top: -5px;
	left: -5px;
	background: var(--accent);
	color: var(--primary);
	font-size: 0.7rem;
	font-weight: bold;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-container > div:last-child {
	display: flex;
	gap: 0.7rem;
}

#closeMenuBtn {
	position: absolute;
	left: 1.5rem;
	top: 1.5rem;
	background: rgba(255,255,255,0.1);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--white);
	font-size: 1.2rem;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}
#closeMenuBtn:hover {
	background: rgba(255,255,255,0.2);
	transform: rotate(90deg);
}
body.dark-mode #closeMenuBtn {
	background: rgba(255, 255, 255, 0.15);
	color: var(--accent);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark-mode #closeMenuBtn:hover {
	background: rgba(255, 255, 255, 0.25);
	color: var(--accent);
	border-color: var(--accent);
}

/* === CONTENU PRINCIPAL STABLE === */
.main-content {
    margin-top: 4.5rem !important;
}

.main-content,
.job-detail-container,
.comments-list,
.content-list {
  overflow-y: auto !important;
  overflow-x: visible !important;
}

/* Most Viewed Jobs Section */
.most-viewed-section {
	max-width: 1200px;
	margin: 3rem auto;
	padding: 0 1.5rem;
	width: calc(100% - 2rem);
}

.section-title {
	font-size: 1.8rem;
	color: var(--primary);
	margin-bottom: 1.5rem;
	padding-bottom: 0.8rem;
	border-bottom: 3px solid var(--accent);
	text-align: center;
	position: relative;
	font-weight: 800;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -3px;
	right: 50%;
	transform: translateX(50%);
	width: 80px;
	height: 3px;
	background: var(--accent);
}

body.dark-mode .section-title {
	color: var(--accent);
}

.most-viewed-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
}

.most-viewed-list li {
	counter-increment: most-viewed-counter;
	background: var(--white);
	padding: 1.2rem 1.5rem 1.2rem 3.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	border-right: 4px solid transparent;
}

.most-viewed-list li::before {
	content: counter(most-viewed-counter);
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	background: var(--gradient-primary);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 1rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.most-viewed-list li:nth-child(-n+3)::before {
	background: linear-gradient(135deg, #E6C35C 0%, #D4AF37 100%);
}

.most-viewed-list li:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	border-right-color: var(--accent);
}

.most-viewed-list li:hover::before {
	transform: translateY(-50%) scale(1.1);
}

.most-viewed-list li a {
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
	font-size: 1.05rem;
	display: block;
	transition: all 0.3s ease;
	line-height: 1.5;
	margin-right:1.5rem;
}

.most-viewed-list li:hover a {
	color: var(--primary);
}

body.dark-mode .most-viewed-list li {
	background: #1a243d;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-mode .most-viewed-list li a {
	color: #e2e8f0;
}

body.dark-mode .most-viewed-list li:hover a {
	color: var(--accent);
}

/* Footer */
footer {
	background: var(--footer-bg);
	color: var(--footer-text);
	padding: 3rem 1.5rem 1.5rem;
	margin-top: 0.5rem;
	transition: all 0.3s ease;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.footer-logo-text {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--footer-text);
	font-family: 'Tajawal', sans-serif;
}

.footer-logo-highlight {
	color: var(--accent);
}

.footer-about {
	margin-top: 1rem;
	line-height: 1.7;
	opacity: 0.9;
	color: var(--footer-text);
}

.footer-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	position: relative;
	padding-bottom: 0.5rem;
	color: var(--footer-text);
}

.footer-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 0;
	width: 50px;
	height: 2px;
	background: var(--accent);
}

.footer-links {
	list-style: none;
	padding: 0;
}

.footer-links li {
	margin-bottom: 0.8rem;
}

.footer-links a {
	color: var(--footer-text);
	text-decoration: none;
	opacity: 0.8;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footer-links a:hover {
	opacity: 1;
	color: var(--footer-link-hover);
	transform: translateX(-5px);
}

.footer-links i {
	font-size: 0.8rem;
	color: var(--accent);
}

[dir="rtl"] .footer-links i.fa-chevron-left {
	transform: rotate(0deg);
}

.footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.footer-contact-icon {
	font-size: 1.2rem;
	color: var(--accent);
	margin-top: 0.2rem;
}

.footer-contact-text {
	flex: 1;
	opacity: 0.9;
	line-height: 1.6;
	color: var(--footer-text);
}

.footer-social {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: var(--footer-text);
	transition: all 0.3s;
}

.footer-social a:hover {
	background: var(--accent);
	color: var(--primary);
	transform: translateY(-3px);
}

.footer-bottom {
	text-align: center;
	padding-top: 2rem;
	margin-top: 2rem;
	border-top: 1px solid var(--footer-border);
	font-size: 0.9rem;
	opacity: 0.7;
	color: var(--footer-text);
}

.favorites-nav-item {
	display: none;
}

/* أنماط قسم البحث */
.search-section {
    max-width: 1200px;
    width: calc(100% - 2rem);
    margin: 3rem auto 2rem;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.search-section:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

body.dark-mode .search-section {
    background: #1a243d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-title {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.search-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

body.dark-mode .search-title {
    color: var(--accent);
}

.search-form {
    display: flex;
    max-width: 700px;
    margin: 0 auto 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: var(--light-bg);
    color: var(--text);
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    outline: none;
}

body.dark-mode .search-input {
    background: rgba(255, 255, 255, 0.05);
    color: var(--footer-text);
}

.search-input::placeholder {
    color: #888;
}

body.dark-mode .search-input::placeholder {
    color: #aaa;
}

.search-btn {
    padding: 0 1.8rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #1D4ED8 100%);
}

.search-error {
    display: none;
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(229, 62, 62, 0.2);
    margin: 10px auto 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    max-width: 500px;
    animation: fadeIn 0.3s ease;
}

body.dark-mode .search-error {
    background: rgba(229, 62, 62, 0.15);
    border: 1px solid rgba(229, 62, 62, 0.3);
    color: #fc8181;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.popular-searches {
    margin-top: 1.5rem;
    display: block;
}

.popular-title {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 1rem;
    opacity: 0.9;
}

body.dark-mode .popular-title {
    color: var(--footer-text);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.search-tag {
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-tag:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

body.dark-mode .search-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

body.dark-mode .search-tag:hover {
    background: var(--secondary);
    color: white;
}

.seo-content {
	max-width: 1200px;
	width: 100%;
	margin: 2rem auto;
	padding: 1.5rem;
	background: var(--white);
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.seo-content h2 {
	color: var(--primary);
	margin-bottom: 1rem;
	font-size: 1.3rem;
}

.seo-content p {
	margin-bottom: 1rem;
	line-height: 1.8;
}
body.dark-mode .seo-content {
	background: #1E293B;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .seo-content h2 {
	color: var(--accent);
	border-bottom: 2px solid var(--accent);
	padding-bottom: 0.5rem;
}

body.dark-mode .seo-content p {
	color: #E2E8F0;
	line-height: 1.7;
}		

.search-tag {
	color: #4B5563;
}

body.menu-open {
	overflow: hidden;
}

* {
    -webkit-overflow-scrolling: touch;
}

@media (max-height: 600px) {
	.mobile-nav {
		padding-top: 2rem;
	}
	
	.mobile-nav .nav-menu {
		max-height: 70vh;
	}
	
	#closeMenuBtn {
		top: 1rem;
		left: 1rem;
	}
}

/* === CORRECTIONS MOBILE STABLES === */
@media (max-width: 768px) {
	header {
		padding: 0.8rem 1rem !important;
	}
	
	.main-content {
		margin-top: 4.125rem !important;
	}
	
	.main-nav {
		display: none;
	}
	
	.most-viewed-section {
		margin: 2rem auto;
		padding: 0 1rem;
	}
	
	.section-title {
		font-size: 1.5rem;
	}
	
	.most-viewed-list {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}
	
	.most-viewed-list li {
		padding: 1rem 1.2rem 1rem 3rem;
	}
	
	.most-viewed-list li::before {
		width: 28px;
		height: 28px;
		font-size: 0.9rem;
	}
	
	.most-viewed-list li a {
		font-size: 1rem;
	}
	
	.footer-container {
		grid-template-columns: 1fr;
	}
	
	.footer-title {
		font-size: 1.2rem;
		margin-bottom: 1rem;
	}

    .search-section {
        width: calc(100% - 1rem);
        margin: 2rem auto 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .search-title {
        font-size: 1.4rem;
    }
    
    .search-form {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .search-btn {
        padding: 1rem;
        border-radius: 0 0 12px 12px;
    }
    
    .search-tags {
        gap: 0.6rem;
    }
    
    .search-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .search-error {
        margin: 8px 10px 0;
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
	header {
		padding: 0.6rem 0.8rem !important;
	}
	
	.main-content {
		margin-top: 4.125rem !important;
	}
	
	.mobile-nav {
		width: 90%;
		padding: 3rem 1.5rem 1.5rem;
	}
	
	.footer-logo-text {
		font-size: 1.5rem;
	}
	
	.section-title {
		font-size: 1.3rem;
	}
	
	.most-viewed-list li {
		padding: 0.8rem 1rem 0.8rem 2.8rem;
	}
	
	.most-viewed-list li::before {
		width: 24px;
		height: 24px;
		font-size: 0.85rem;
		right: 2px;
	}
	
	.most-viewed-list li a {
		font-size: 0.95rem;
	}
	
    .search-section {
        padding: 1.5rem 1rem;
    }
    
    .search-title {
        font-size: 1.2rem;
    }
    
    .popular-title {
        font-size: 1rem;
    }
    
    .search-error {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* أنماط الشعار */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
	width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid var(--accent);
    background: rgba(255,255,255,0.08);
    padding: 1px;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-link:hover .logo-img {
    transform: scale(1.04);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 42px;
    position: relative;
    line-height: 1.05;
    font-weight: 800;
    padding: 0 6px;
    overflow: hidden;
}

.logo-highlight {
    font-family: 'Cairo', sans-serif;
    font-size: 1.15rem;
    color: var(--accent);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25), 0 0 6px rgba(255,215,160,0.25);
    transform: scaleX(1.08);
    transform-origin: center;
    letter-spacing: -0.2px;
}

.logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 4.5px;
    text-transform: uppercase;
    margin-top: 2px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 0 4px rgba(255,255,255,0.15);
    transform: scaleX(1.05);
    transform-origin: center;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0.9);
    width: 100%;
    height: 3px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255,255,255,0.05) 10%,
        #C9A23F 40%,
        #C9A23F 60%,
        rgba(255,255,255,0.05) 90%,
        transparent 100%);
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(201,162,63,0.4), 0 0 10px rgba(201,162,63,0.2);
    transition: all 0.4s ease;
    opacity: 0.9;
}

.logo-link:hover .logo-text::after {
    transform: translateX(-50%) scaleX(1);
    box-shadow: 0 0 10px rgba(201,162,63,0.5);
    opacity: 1;
}

@media (max-width: 480px) {
    .logo-img {
        width: 42px;
        height: 42px;
    }
    .logo-text {
        height: 36px;
    }
    .logo-highlight {
        font-size: 1rem;
        transform: scaleX(1.05);
    }
    .logo-sub {
        font-size: 0.75rem;
        letter-spacing: 3px;
        transform: scaleX(1.03);
    }
}



iframe[src*="googleads"], iframe[src*="doubleclick"] {
    max-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
}


/* Version non-bloquante pour AdSense */
iframe#google_esf, 
iframe[name="google_esf"] {
    position: relative !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.adsbygoogle,
.google-auto-placed {
  display: block !important;
  margin: 1rem auto !important;
  max-width: 100% !important;
  overflow: hidden !important;
}


/* ✅ Masquage Discover-safe */
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* 🎯 CSS ULTRA-LIBRE - Zéro restrictions de dimensions */
.ad-between-articles {
  display: block !important;
  width: 100% !important;
  margin: 20px 0 !important;
  background: transparent !important;
  position: relative !important;
}

.ad-between-articles ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  /* AUCUNE hauteur/largeur fixe - Google décide */
}

/* 📱 Mobile - Toujours libre */
@media (max-width: 768px) {
  .ad-between-articles {
    margin: 15px 0 !important;
  }
}


/* === Bloc AdSense : ad-between-articles-fluid === */
/* Emplacement : entre les articles - Discover Safe - In-Article Fluid */

.ad-between-articles-fluid {
  display:block!important;
  width:100%!important;
  margin:15px 0!important;   /* réduit de 25px → 15px */
  padding:0!important;        /* padding inutile supprimé */
  text-align:center!important;
  background:transparent!important;
  overflow:hidden!important;
  max-width:100%!important;
}


/* Style appliqué uniquement à la balise AdSense */
.ad-between-articles-fluid ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 100px; /* espace réservé pour éviter le CLS */
  margin: 0 auto !important;
  background: transparent !important;
}

/* Masquage Discover-safe des annonces non remplies */
.ad-between-articles-fluid ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Optimisation mobile */
@media (max-width: 768px) {
  .ad-between-articles-fluid {
    margin: 10px 0 !important;
    padding: 0 !important;
  }

  .ad-between-articles-fluid ins.adsbygoogle {
    min-height: 80px;
  }
}

/* WhatsApp Channel Section */
.whatsapp-channel-section {
    max-width: 1200px;
    width: calc(100% - 2rem);
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    text-align: center;
    transition: var(--transition);
    color: white;
    position: relative;
    overflow: hidden;
}

.whatsapp-channel-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%, 100% { transform: rotate(45deg) translateX(-100%); }
    50% { transform: rotate(45deg) translateX(100%); }
}

.whatsapp-channel-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.whatsapp-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.whatsapp-content {
    flex: 1;
    text-align: right;
}

.whatsapp-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.whatsapp-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.95;
}

.whatsapp-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 1rem;
    color: #FFD700;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: #128C7E;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.whatsapp-btn:hover {
    background: #FFD700;
    color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:focus {
    outline: 3px solid #FFD700;
    outline-offset: 2px;
}

/* Dark Mode Support */
body.dark-mode .whatsapp-channel-section {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    box-shadow: 0 10px 30px rgba(7, 94, 84, 0.4);
}

body.dark-mode .whatsapp-channel-section:hover {
    box-shadow: 0 15px 40px rgba(7, 94, 84, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-channel-section {
        width: calc(100% - 1rem);
        margin: 1.5rem auto;
        padding: 2rem 1.5rem;
    }
    
    .whatsapp-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .whatsapp-content {
        text-align: center;
    }
    
    .whatsapp-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .whatsapp-title {
        font-size: 1.4rem;
    }
    
    .whatsapp-description {
        font-size: 1rem;
    }
    
    .whatsapp-features {
        gap: 1rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .whatsapp-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-channel-section {
        padding: 1.5rem 1rem;
    }
    
    .whatsapp-title {
        font-size: 1.2rem;
    }
    
    .whatsapp-description {
        font-size: 0.95rem;
    }
    
    .whatsapp-features {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}
