/**
 * HOMKA — Custom CSS overrides (clean)
 */

:root {
    --hk-primary: #111827;
    --hk-primary-dark: #111827;
}

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--hk-radius);
    font-size: 14px;
    transition: all 0.2s;
}
.page-numbers a {
    color: var(--hk-text-light);
}
.page-numbers a:hover {
    background: var(--hk-bg-alt);
    color: var(--hk-text);
}
.page-numbers .current {
    background: var(--hk-primary);
    color: #fff;
}

/* Admin bar */
.admin-bar .hk-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .hk-header {
        top: 46px;
    }
}

/* Comment form */
#respond label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    border: 1px solid var(--hk-border);
    border-radius: var(--hk-radius);
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--hk-font-sans);
    margin-bottom: 14px;
}
#respond input[type="submit"] {
    background: var(--hk-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--hk-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--hk-font-sans);
}
#respond input[type="submit"]:hover {
    background: var(--hk-primary);
    color: #fff;
}

/* Buttons */
.hk-btn:hover,
.hk-btn:focus,
.hk-btn:active,
.hk-btn--primary:hover,
.hk-btn--primary:focus,
.hk-btn--primary:active,
.hk-btn--outline:hover,
.hk-btn--outline:focus,
.hk-btn--outline:active,
.hk-btn--white:hover,
.hk-btn--white:focus,
.hk-btn--white:active,
.hk-nav__cta:hover,
.hk-nav__cta:focus,
.hk-nav__cta:active,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-block-button__link:active,
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active,
button:hover,
button:focus,
button:active {
    background: #111827 !important;
    border-color: #111827 !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Logo */
.hk-header .hk-logo img,
.hk-header .site-logo img,
.custom-logo,
.site-header .custom-logo {
    height: 96px !important;
    max-height: 96px !important;
    width: auto !important;
}

.hk-header .hk-logo,
.hk-header .site-logo {
    position: relative;
    z-index: 1002;
}

/* Simple nav only */
.hk-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hk-nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    text-decoration: none;
}

.hk-header:not(.hk-header--solid) .hk-nav a {
    color: rgba(255,255,255,0.88);
}

.hk-header:not(.hk-header--solid) .hk-nav a:hover {
    color: #fff;
}

.hk-header--solid .hk-nav a {
    color: var(--hk-text);
}

.hk-header--solid .hk-nav a:hover {
    color: var(--hk-primary);
}

.hk-nav__cta {
    padding: 8px 20px;
    background: #111827;
    color: #fff !important;
    border-radius: var(--hk-radius);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Mobile */
.hk-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hk-card);
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    padding: 96px 24px 40px;
    overflow-y: auto;
}

.hk-mobile-menu.is-open {
    display: flex;
}

.hk-mobile-menu > a,
.hk-mobile-menu__parent {
    font-family: var(--hk-font-serif);
    font-size: 28px;
    line-height: 1.1;
    color: var(--hk-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hk-mobile-menu__group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hk-mobile-menu__submenu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-left: 8px;
}

.hk-mobile-menu__submenu a {
    font-family: var(--hk-font-sans);
    font-size: 16px;
    color: var(--hk-text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hk-mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--hk-text);
}

@media (max-width: 768px) {
    .hk-nav {
        display: none;
    }

    .hk-hamburger {
        display: block;
    }
}

/* Hero */
.hk-hero h1,
.hero h1,
.entry-hero h1,
.home .wp-block-post-title,
.home .hero-title,
.home h1 {
    font-size: clamp(42px, 5vw, 78px) !important;
    line-height: 1.05 !important;
    max-width: 12ch !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hk-hero p,
.hero p,
.entry-hero p,
.home .hero-subtitle,
.home .wp-block-post-excerpt,
.home .entry-content p {
    line-height: 1.45 !important;
}

/* Header spacing */
.hk-header {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

/* Header transparent sur la home */
.hk-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.hk-header--transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.hk-header--transparent .hk-nav a {
    color: rgba(255,255,255,0.92) !important;
}

.hk-header--transparent .hk-nav a:hover {
    color: #fff !important;
}

.hk-header--transparent .hk-nav__cta {
    background: #111827 !important;
    color: #fff !important;
}

.hk-header--transparent .hk-hamburger span {
    background: #fff !important;
}

/* Header solide après scroll et sur pages internes */
.hk-header--solid {
    background: rgba(255,255,255,0.96) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06) !important;
    backdrop-filter: blur(10px);
}

.hk-header--solid .hk-nav a {
    color: #111827 !important;
}

.hk-header--solid .hk-nav a:hover {
    color: #111827 !important;
}

.hk-header--solid .hk-nav__cta {
    background: #111827 !important;
    color: #fff !important;
}

.hk-header--solid .hk-hamburger span {
    background: #111827 !important;
}

.hk-services-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:0 !important;
    align-items:stretch !important;
    border:1px solid var(--hk-border-light) !important;
    border-radius:12px !important;
    overflow:hidden !important;
    background:#fff !important;
}

.hk-service-item{
    display:flex !important;
    flex-direction:column !important;
    min-height:260px !important;
    background:transparent !important;
    border:none !important;
    border-right:1px solid var(--hk-border-light) !important;
    border-radius:0 !important;
    padding:34px 40px 30px !important;
    box-shadow:none !important;
    transition:background-color .22s ease,color .22s ease !important;
}

.hk-service-item:last-child{
    border-right:none !important;
}

.hk-service-item__icon{
    margin-bottom:26px !important;
    color:#6f6a64 !important;
    opacity:.9 !important;
    transition:color .22s ease,opacity .22s ease,transform .22s ease !important;
}

.hk-service-item__icon svg{
    width:22px !important;
    height:22px !important;
    stroke-width:1.8 !important;
}

.hk-service-item__title{
    margin:0 0 12px !important;
    font-size:21px !important;
    line-height:1.2 !important;
    font-weight:500 !important;
    transition:color .22s ease !important;
}

.hk-service-item__desc{
    color:var(--hk-text-light) !important;
    font-size:15px !important;
    line-height:1.8 !important;
    margin-bottom:20px !important;
    max-width:22ch !important;
    transition:color .22s ease !important;
}

.hk-service-item__link{
    margin-top:auto !important;
    font-size:12px !important;
    letter-spacing:.16em !important;
    text-transform:uppercase !important;
    color:var(--hk-text-muted) !important;
    transition:color .22s ease !important;
}

.hk-service-item:hover{
    background:#f5f1eb !important;
}

.hk-service-item:hover .hk-service-item__icon{
    color:var(--hk-text) !important;
    opacity:1 !important;
}

.hk-service-item:hover .hk-service-item__title{
    color:var(--hk-primary) !important;
}

.hk-service-item:hover .hk-service-item__desc{
    color:var(--hk-text) !important;
}

.hk-service-item:hover .hk-service-item__link{
    color:var(--hk-primary) !important;
}

@media (max-width:1024px){
    .hk-services-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:0 !important;
    }

    .hk-service-item{
        border-right:1px solid var(--hk-border-light) !important;
        border-bottom:1px solid var(--hk-border-light) !important;
    }

    .hk-service-item:nth-child(2n){
        border-right:none !important;
    }

    .hk-service-item:nth-last-child(-n+2){
        border-bottom:none !important;
    }
}

@media (max-width:640px){
    .hk-services-grid{
        grid-template-columns:1fr !important;
    }

