/* ==========================================================================
   Téranga d'Afrique - Design enhancements (neater presentation)
   Layered on top of style.css / responsive.css — overrides only.
   ========================================================================== */

/* Accessible-but-hidden heading utility (for SEO-visible H1 fallback) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------- Typography polish --------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.sec-title h1,
.sec-title h2 {
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.sec-title .title {
    letter-spacing: 2px;
    font-weight: 700;
}

/* --------- Banner slider polish --------- */
.banner-section .slide-item {
    background-position: center center;
    background-size: cover;
    position: relative;
}
.banner-section .slide-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.banner-section .content-box {
    position: relative;
    z-index: 2;
}
.banner-section .content-box h1,
.banner-section .content-box h2 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

/* --------- Service / feature cards --------- */
.service-block .inner-box,
.service-block-two .inner-box,
.feature-block .inner-box,
.news-block-two .inner-box {
    border-radius: 12px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background-color: #ffffff;
}
.service-block .inner-box:hover,
.service-block-two .inner-box:hover,
.feature-block .inner-box:hover,
.news-block-two .inner-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(20, 30, 20, 0.10);
}

.news-block-two .inner-box {
    overflow: hidden;
    border: 1px solid #f0ece3;
}
.news-block-two .image-box {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.news-block-two .image-box img {
    transition: transform 0.6s ease;
}
.news-block-two .inner-box:hover .image-box img {
    transform: scale(1.05);
}
.news-block-two .lower-content {
    padding: 22px 24px 28px;
}
.news-block-two .lower-content h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 8px;
}
.news-block-two .lower-content h3 a {
    color: #1f2a22;
}
.news-block-two .lower-content .info span {
    color: #7a8a7c;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* --------- Buttons --------- */
.theme-btn {
    border-radius: 999px !important;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(145, 197, 60, 0.25);
}

/* --------- Page title banner --------- */
.page-title {
    position: relative;
}
.page-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.page-title .inner-container {
    position: relative;
    z-index: 2;
}
.page-title h1 {
    line-height: 1.2;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* --------- About section lists (neater bullets) --------- */
.about-section .text ul,
.about-section-two ul,
.sidebar-page-container ul.clean-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 12px;
}
.about-section .text ul li,
.about-section-two ul:not(.category-list):not(.tag-list) li {
    position: relative;
    padding: 8px 0 8px 28px;
    line-height: 1.6;
}
.about-section .text ul li::before,
.about-section-two ul:not(.category-list):not(.tag-list) li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 14px;
    height: 2px;
    background: #91c53c;
    border-radius: 2px;
}

/* Fix the malformed <li> inside <p> on homepage */
.about-section .text p > li {
    display: block;
    list-style: none;
}

/* --------- Breadcrumbs for internal linking --------- */
.breadcrumb-nav {
    background: #fbf8f3;
    padding: 14px 0;
    border-bottom: 1px solid #f0ece3;
    font-size: 14px;
}
.breadcrumb-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.breadcrumb-nav ol li + li::before {
    content: "›";
    margin-right: 8px;
    color: #b8aa8f;
}
.breadcrumb-nav a {
    color: #5a6b5f;
    text-decoration: none;
}
.breadcrumb-nav a:hover { color: #91c53c; }
.breadcrumb-nav li[aria-current="page"] { color: #1f2a22; font-weight: 600; }

/* --------- Related products / internal links block --------- */
.related-products {
    padding: 70px 0 90px;
    background: #fbf8f3;
}
.related-products .sec-title { margin-bottom: 40px; }
.related-products .related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(20, 30, 20, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.related-products .related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(20, 30, 20, 0.10);
}
.related-products .related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.related-products .related-card .card-body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.related-products .related-card h4 {
    font-size: 17px;
    margin: 0 0 8px;
    color: #1f2a22;
}
.related-products .related-card p {
    color: #5a6b5f;
    font-size: 14px;
    margin: 0 0 14px;
    flex: 1;
}
.related-products .related-card a.more {
    align-self: flex-start;
    color: #91c53c;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.related-products .related-card a.more:hover { text-decoration: underline; }

/* --------- Footer polish --------- */
.main-footer {
    padding-top: 60px;
    padding-bottom: 30px;
}
.main-footer .footer-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    padding: 0;
    margin: 20px 0;
}
.main-footer .copyright-text {
    opacity: 0.85;
}

/* --------- Category / product listing polish --------- */
.blog-grid { padding-bottom: 80px; }
.blog-grid .news-block-two { margin-bottom: 30px; }

/* --------- Contact page polish --------- */
.contact-page-section .inner-box ul.contact-info li {
    padding: 14px 0;
    border-bottom: 1px solid #eee6d6;
}
.contact-page-section .inner-box ul.contact-info li:last-child {
    border-bottom: 0;
}

/* --------- Small responsive niceties --------- */
@media (max-width: 767px) {
    .banner-section .content-box h1,
    .banner-section .content-box h2 { font-size: 28px; line-height: 1.3; }
    .page-title h1 { font-size: 30px; }
    .sec-title h1,
    .sec-title h2 { font-size: 26px; }
}

/* --------- Category filter pills (produits.php) --------- */
.category-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.category-filter .theme-btn {
    padding: 8px 18px !important;
    font-size: 14px;
    font-weight: 600;
    background: #fff !important;
    color: #1f2a22 !important;
    border: 1px solid #e5dfd0 !important;
}
.category-filter .theme-btn:hover,
.category-filter .theme-btn.active {
    background: #91c53c !important;
    color: #fff !important;
    border-color: #91c53c !important;
}

/* --------- Product grid image unified height --------- */
.news-block-two .image-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* --------- Sticky header better contrast --------- */
.sticky-header .main-menu .navigation > li > a {
    padding: 20px 15px;
}

/* --------- Info box header cleanup --------- */
.header-upper .info-box a {
    color: inherit;
    text-decoration: none;
}
.header-upper .info-box a:hover { color: #91c53c; }

/* --------- Map section polish --------- */
.map-section .map-canvas {
    height: 420px;
    border-radius: 0;
}

/* --------- Image focus ring for accessibility --------- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(145, 197, 60, 0.45);
    outline-offset: 2px;
}

/* --------- Service block two (boutiques listing) --------- */
.service-block-two .inner-box {
    padding: 0 0 28px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20, 30, 20, 0.06);
}
.service-block-two .image-box img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.service-block-two h3,
.service-block-two h4 {
    padding: 0 24px;
    font-size: 22px;
    line-height: 1.3;
}
.service-block-two .text,
.service-block-two .link-box {
    padding: 0 24px;
}

/* --------- Product detail hero adjustments --------- */
.sidebar-page-container {
    padding-top: 60px;
    padding-bottom: 60px;
}
.sidebar-widget {
    margin-bottom: 30px;
    background: #fbf8f3;
    border-radius: 12px;
    padding: 22px 22px;
}
.sidebar-widget .sidebar-title h3 {
    font-size: 18px;
    margin: 0 0 14px;
    color: #1f2a22;
}
.sidebar-widget .category-list li {
    padding: 6px 0;
    border-bottom: 1px solid #eee6d6;
}
.sidebar-widget .category-list li:last-child { border-bottom: none; }
.sidebar-widget .category-list a {
    color: #4a584d;
    text-decoration: none;
    font-size: 14px;
}
.sidebar-widget .category-list a:hover { color: #91c53c; }

/* --------- About section list bullet fix for shipped malformed markup --------- */
.about-section .text ul { list-style: none; padding-left: 0; }
.about-section .text ul li {
    position: relative;
    padding: 8px 0 8px 28px;
    line-height: 1.6;
}
.about-section .text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 14px;
    height: 2px;
    background: #91c53c;
    border-radius: 2px;
}
