/*
Theme Name: OtakuStream Minimalist
Theme URI: https://example.com
Author: Automation Developer
Description: Un thème WordPress ultra-léger et rapide, optimisé pour l'auto-blogging et Google AdSense.
Version: 1.5
License: GNU General Public License v2 or later
Text Domain: otakustream-minimal
*/

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f7f9fa; color: #1a1a1a; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header & Logo */
.site-header { background: #ffffff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.logo a, .custom-logo-link { display: inline-flex; align-items: center; }
.logo a { font-size: 24px; font-weight: 700; color: #0073aa; text-decoration: none; }
.custom-logo-link img { max-height: 70px; width: auto; display: block; }

/* Navigation */
.main-navigation { display: flex; align-items: center; background-color: transparent; width: auto; border-top: none; }
.header-menu-liste { display: flex; flex-wrap: wrap; gap: 8px; list-style: none !important; margin: 0; padding: 0; align-items: center; justify-content: center; }
.header-menu-liste li { list-style-type: none !important; }
.header-menu-liste a { display: block; color: #ffffff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 16px; transition: background 0.2s ease, color 0.2s ease; }
.header-menu-liste a:hover { background-color: #1a3670; color: #ffffff; }

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #0073aa;
    cursor: pointer;
}

.menu-toggle-icon {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
}

.menu-toggle-icon::before { top: -8px; }
.menu-toggle-icon::after { top: 8px; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .header-inner { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .header-inner { align-items: center; }
    .menu-toggle { display: inline-flex; }
    .main-navigation { display: none; width: 100%; margin-top: 12px; }
    .main-navigation.open { display: block; }
    .header-menu-liste { flex-direction: column; align-items: stretch; gap: 0; }
    .header-menu-liste a { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.08); }
    .header-menu-liste a:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* Grille de la Page d'accueil */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; margin: 30px 0; }
.card { background: #ffffff; border: 1px solid #e1e8ed; border-radius: 8px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 22px rgba(15, 23, 42, 0.08); }
.card-img { width: 100%; height: 180px; object-fit: cover; background: #e1e8ed; }
.card-content { padding: 18px; }
.card-meta { font-size: 12px; color: #657786; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.card-title { font-size: 20px; margin-bottom: 10px; line-height: 1.35; }
.card-title a { color: #1a1a1a; }
.card-title a:hover { color: #0073aa; }

/* Page Article Unique */
.article-container { max-width: 750px; margin: 40px auto; background: #ffffff; padding: 30px; border: 1px solid #e1e8ed; border-radius: 10px; }
.article-header { margin-bottom: 24px; }
.article-title { font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
.article-meta { font-size: 14px; color: #657786; margin-bottom: 20px; }
.article-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 8px; margin-bottom: 25px; }
.article-content { font-size: 17px; color: #292f33; }
.article-content p { margin-bottom: 22px; }
.article-content a { color: #0073aa; text-decoration: underline; }
.article-content a:hover { color: #005a8c; }

/* Static Pages */
.page-container { max-width: 750px; margin: 40px auto; background: #ffffff; padding: 30px; border: 1px solid #e1e8ed; border-radius: 10px; }
.page-header { margin-bottom: 28px; }
.page-title { font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
.page-content { font-size: 17px; color: #292f33; line-height: 1.7; }
.page-content p { margin-bottom: 20px; }
.page-content h2 { font-size: 24px; margin: 28px 0 16px; line-height: 1.3; }
.page-content h3 { font-size: 20px; margin: 24px 0 12px; line-height: 1.3; }
.page-content ul, .page-content ol { margin-bottom: 20px; padding-left: 24px; }
.page-content li { margin-bottom: 10px; }
.page-links { margin: 20px 0; text-align: center; }
.page-links a { display: inline-block; padding: 8px 12px; margin: 0 4px; border: 1px solid #e1e8ed; border-radius: 4px; }

/* Zone AdSense */
.adsense-placeholder { background: #f0f3f5; border: 1px dashed #ccd6dd; text-align: center; padding: 18px; color: #657786; font-size: 13px; margin: 30px 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* Pagination */
.pagination { margin: 40px 0; text-align: center; }
.pagination a, .pagination span { display: inline-block; padding: 10px 16px; margin: 0 4px; border: 1px solid #e1e8ed; border-radius: 5px; text-decoration: none; color: #0073aa; }
.pagination .current { background: #0073aa; color: #fff; border-color: #0073aa; }

/* Footer Navigation */
footer { margin-top: 40px; }
.footer-navigation { background-color: #2b4e96; width: 100%; padding: 12px 0; border-top: 2px solid #1a3670; }
.footer-menu-liste { display: flex; flex-wrap: wrap; justify-content: center; list-style: none !important; margin: 0; padding: 0; gap: 18px; }
.footer-menu-liste li { list-style-type: none !important; }
.footer-menu-liste a { color: #ffffff; text-decoration: none; font-size: 14px; font-weight: 500; transition: opacity 0.2s ease; }
.footer-menu-liste a:hover { opacity: 0.85; text-decoration: underline; }

.copyright-area { background: #1a3670; color: #ffffff; text-align: center; padding: 18px 0; font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
    .card-img { height: 220px; }
    .article-container { padding: 24px; margin: 24px 0; }
    .header-menu-liste { justify-content: center; }
}

/* L-Chrita Z-zer9a dyal Header */
.main-navigation { background-color: #2b4e96; width: 100%; border-top: 1px solid #1a3670; }
.main-navigation .container { padding: 0 20px; }
.header-menu-liste { display: flex; flex-wrap: wrap; list-style: none !important; margin: 0; padding: 0; align-items: center; }
.header-menu-liste li { margin: 0; padding: 0; list-style-type: none !important; }
.header-menu-liste li::before { content: none !important; } /* Bach may-banoch n9ati b mara */
.header-menu-liste a { display: block; color: #ffffff; text-decoration: none; font-weight: bold; font-size: 15px; padding: 12px 20px; transition: background 0.2s; }
.header-menu-liste a:hover { background-color: #1a3670; color: #ffffff; }

/* Grille de la Page d'accueil */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin: 30px 0; }
.card { background: #ffffff; border: 1px solid #e1e8ed; border-radius: 8px; overflow: hidden; transition: transform 0.2s; }
.card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 180px; object-fit: cover; background: #e1e8ed; display: block; }
.card-content { padding: 15px; }
.card-meta { font-size: 12px; color: #657786; text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.card-title a { color: #1a1a1a; text-decoration: none; }
.card-title a:hover { color: #0073aa; }

/* Page Article Unique */
.article-container { max-width: 750px; margin: 40px auto; background: #ffffff; padding: 30px; border: 1px solid #e1e8ed; border-radius: 8px; }
.article-header { margin-bottom: 20px; }
.article-title { font-size: 28px; line-height: 1.3; margin-bottom: 10px; }
.article-meta { font-size: 14px; color: #657786; margin-bottom: 20px; }
.article-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 6px; margin-bottom: 25px; }
.article-content { font-size: 16px; color: #292f33; }
.article-content p { margin-bottom: 20px; }

/* Zone AdSense */
.adsense-placeholder { background: #f0f3f5; border: 1px dashed #ccd6dd; text-align: center; padding: 15px; color: #657786; font-size: 13px; margin: 25px 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* Pagination */
.pagination { margin: 40px 0; text-align: center; }
.pagination a, .pagination span { padding: 8px 16px; margin: 0 4px; border: 1px solid #e1e8ed; border-radius: 4px; text-decoration: none; color: #0073aa; }
.pagination .current { background: #0073aa; color: #fff; border-color: #0073aa; }

/* Footer Navigation Z-zer9a */
footer { margin-top: 40px; }
.footer-navigation { background-color: #2b4e96; width: 100%; padding: 10px 0; border-top: 2px solid #1a3670; }
.footer-menu-liste { display: flex; flex-wrap: wrap; justify-content: center; list-style: none !important; margin: 0; padding: 0; gap: 20px; }
.footer-menu-liste li { list-style-type: none !important; position: relative; }
.footer-menu-liste li::before { content: none !important; }
.footer-menu-liste a { color: #ffffff; text-decoration: none; font-size: 14px; font-weight: 500; transition: opacity 0.2s; }
.footer-menu-liste a:hover { opacity: 0.8; text-decoration: underline; }

/* Copyright L-k7el L-teht */
.copyright-area { background: #1a3670; color: #ffffff; text-align: center; padding: 15px 0; font-size: 13px; }