/*
Theme Name: Reservia Blog
Theme URI: https://reservia.app/
Author: Reservia
Author URI: https://reservia.app/
Description: Thème WordPress basé sur l'intégration Reservia (for-business) adapté au blog.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reservia-blog
*/

:root {
    --reservia-primary: #5c868f;
    --reservia-dark: #0f2332;
    --reservia-muted: #eef3f5;
}

body {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2a32;
    background: #f7f9fb;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: var(--reservia-primary);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    background: var(--reservia-dark);
    color: #fff;
    border-radius: 999px;
    z-index: 999;
}

.main-menu .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-menu .menu a {
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
}

.main-menu .menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--reservia-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.main-menu .menu a:hover::after,
.main-menu .current-menu-item > a::after {
    transform: scaleX(1);
}

.header-area .menu-toggle.nav-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-area .menu-toggle.nav-toggle .menu__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.header-area .menu-toggle.nav-toggle .menu__bar::before,
.header-area .menu-toggle.nav-toggle .menu__bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
}

.header-area .menu-toggle.nav-toggle .menu__bar::before { top: -6px; }
.header-area .menu-toggle.nav-toggle .menu__bar::after { top: 6px; }

.nav-open .menu-toggle.nav-toggle .menu__bar { background: transparent; }
.nav-open .menu-toggle.nav-toggle .menu__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle.nav-toggle .menu__bar::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
    transition: transform 200ms ease;
}

@media (max-width: 1024px) {
    .main-menu .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .primary-nav {
        position: fixed;
        inset: 0 0 0 30%;
        background: rgba(6, 13, 17, 0.97);
        padding: 6rem 2rem;
        transform: translateX(100%);
        z-index: 999;
    }

    .primary-nav.is-open {
        transform: translateX(0);
    }
}

/* Cards + blog */
.blog-card {
    border: 1px solid #e5ebef;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 35, 50, 0.08);
    height: 100%;
}

.blog-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.blog-card .card-body {
    padding: 1.5rem;
}

.blog-card .card-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.35rem;
    color: var(--reservia-dark);
}

.blog-card .card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: #6c7b85;
    margin-bottom: 0.75rem;
}

.blog-card .card-text {
    color: #4a5a64;
}

.pagination {
    display: flex;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.pagination .page-numbers {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #dfe6ea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: #fff;
}

.pagination .current {
    background: var(--reservia-primary);
    color: #fff;
    border-color: transparent;
}

/* Content */
.post-content img {
    max-width: 100%;
    height: auto;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.info-box {
    text-align: center;
    padding: 2rem;
}
