/*
Theme Name: WestOffice 
Theme URI: https://westoffice.com/
Description: Thème enfant basé sur Hello Elementor pour le site WestOffice.
Author: Godwin ELITCHA
Author URI: https://godwinelitcha.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: westoffice
*/

/* Blog archive (home.php) */
.wo-blog-search-input,
.wo-blog-search-input:hover,
.wo-blog-search-input:focus,
.wo-blog-search-input:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.wo-blog-chip,
.wo-blog-chip:visited {
  color: #6b5b52;
  border: 1px solid #e7ddd3;
  background: #fff;
  transition: all 0.2s ease;
}

.wo-blog-chip:hover,
.wo-blog-chip:focus-visible {
  color: #a6734d !important;
  border-color: #a6734d !important;
  outline: none;
}

.wo-blog-chip.is-active,
.wo-blog-chip.is-active:visited {
  color: #fff !important;
  background: #a6734d !important;
  border-color: #a6734d !important;
}

.wo-blog-btn,
.wo-blog-btn:visited {
  color: #8b5e3c;
  border: 1px solid #cdb7a7;
  transition: all 0.2s ease;
}

.wo-blog-btn:hover,
.wo-blog-btn:focus-visible {
  color: #a6734d !important;
  border-color: #a6734d !important;
  background: #fbf8f5;
  outline: none;
}

.wo-blog-card-link:hover,
.wo-blog-card-link:focus-visible {
  color: #8b5e3c !important;
}

.wo-blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid #e7ddd3;
  color: #6b5b52;
  background: #fff;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.wo-blog-page-link:hover,
.wo-blog-page-link:focus-visible {
  border-color: #a6734d;
  color: #a6734d;
  outline: none;
}

.wo-blog-page-link.is-current {
  background: #a6734d;
  border-color: #a6734d;
  color: #fff;
}

/* Expert detail tabs (page-expert.php) */
.wo-expert-tabs .wo-expert-tab {
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  outline: none;
  box-shadow: none;
}

.wo-expert-tabs .wo-expert-tab:hover {
  color: #a6734d !important;
  border-bottom-color: #a6734d !important;
  background-color: transparent !important;
}

.wo-expert-tabs .wo-expert-tab:focus,
.wo-expert-tabs .wo-expert-tab:focus-visible,
.wo-expert-tabs .wo-expert-tab:active {
  outline: none !important;
  box-shadow: none !important;
}

.wo-expert-tabs .wo-expert-tab.is-active {
  color: #a6734d !important;
  border-bottom-color: #a6734d !important;
  background-color: transparent !important;
}

/* Global focus styles (remove pink/blue defaults across theme) */
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
a:focus,
a:focus-visible {
  outline: none !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 2px rgba(166, 115, 77, 0.22) !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: #a6734d !important;
}

/* Global links: prevent default blue hover */
a:hover,
a:focus,
a:focus-visible,
a:active {
  color: #a6734d !important;
}

/* Footer newsletter */
#contact .wo-newsletter-input {
  border-color: rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact .wo-newsletter-btn,
#contact .wo-newsletter-btn:visited {
  background: #a6734d;
  border: 1px solid #a6734d;
  color: #fff !important;
  transition: all 0.2s ease;
}

#contact .wo-newsletter-btn:hover,
#contact .wo-newsletter-btn:focus,
#contact .wo-newsletter-btn:focus-visible,
#contact .wo-newsletter-btn:active {
  background: #8b5e3c !important;
  border-color: #8b5e3c !important;
  color: #fff !important;
}

/* Footer widgets harmonization */
#contact .wo-footer-widget {
  color: #b6afa8;
  font-size: 0.875rem;
}

#contact .wo-footer-widget + .wo-footer-widget {
  margin-top: 0.75rem;
}

#contact .wo-footer-widget p {
  margin: 0.5rem 0 0;
  color: #b6afa8;
  line-height: 1.6;
}

#contact .wo-footer-widget ul,
#contact .wo-footer-widget ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

#contact .wo-footer-widget li {
  margin: 0.45rem 0;
  color: #b6afa8;
}

#contact .wo-footer-widget a,
#contact .wo-footer-widget a:visited {
  color: #b6afa8;
  text-decoration: none;
  transition: color 0.2s ease;
}

#contact .wo-footer-widget a:hover,
#contact .wo-footer-widget a:focus-visible {
  color: #ffffff;
}

#contact .wo-footer-widget h1,
#contact .wo-footer-widget h2,
#contact .wo-footer-widget h3,
#contact .wo-footer-widget h4,
#contact .wo-footer-widget h5,
#contact .wo-footer-widget h6 {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
}

/* Footer bottom-right menu as horizontal links */
#contact .wo-footer-bottom-right .wo-footer-widget {
  margin: 0;
}

#contact .wo-footer-bottom-right .wo-footer-widget .menu,
#contact .wo-footer-bottom-right .wo-footer-widget .sub-menu,
#contact .wo-footer-bottom-right .wo-footer-widget ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#contact .wo-footer-bottom-right .wo-footer-widget li {
  margin: 0;
}

/* Header Polylang switcher */
.wo-lang-switcher ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wo-lang-switcher select {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4a3d33;
  font-size: 0.875rem;
  cursor: pointer;
  outline: none !important;
  box-shadow: none !important;
}

/* Sticky header */
.wo-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: box-shadow 0.2s ease;
}

.wo-site-header.is-scrolled {
  box-shadow: 0 8px 24px -18px rgba(43, 43, 43, 0.45);
}

/* Experts list cards */
.wo-experts__media {
  height: 18rem;
}

.wo-experts__media-image {
  object-fit: cover;
  object-position: center 20%;
}

@media (min-width: 768px) {
  .wo-experts__media {
    height: 19.5rem;
  }
}

/* Mobile offcanvas menu */
.wo-menu-toggle:hover,
.wo-menu-toggle:focus-visible {
  background: #fbf8f5 !important;
  border-color: #a6734d !important;
  color: #a6734d !important;
  box-shadow: 0 0 0 2px rgba(166, 115, 77, 0.18) !important;
}

.wo-menu-toggle {
  display: inline-flex;
  padding: 0 !important;
  appearance: none;
  background: #fff !important;
  border-color: #e7ddd3 !important;
  color: #4a3d33 !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.wo-menu-toggle:active,
.wo-menu-toggle:focus,
.wo-menu-toggle:focus-visible {
  background: #fbf8f5 !important;
  border-color: #a6734d !important;
  color: #a6734d !important;
  box-shadow: 0 0 0 2px rgba(166, 115, 77, 0.18) !important;
  outline: none !important;
}

.wo-menu-toggle:focus,
.wo-menu-toggle:active {
  border-color: #a6734d !important;
  color: #a6734d !important;
  box-shadow: 0 0 0 2px rgba(166, 115, 77, 0.18) !important;
}

.wo-menu-toggle__icon {
  position: relative;
  display: inline-flex;
  width: 1.35rem;
  height: 1rem;
}

.wo-menu-toggle__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.22s ease, opacity 0.2s ease, top 0.22s ease;
}

.wo-menu-toggle__line--1 {
  top: 0;
}

.wo-menu-toggle__line--2 {
  top: calc(50% - 1px);
}

.wo-menu-toggle__line--3 {
  top: calc(100% - 2px);
}

.wo-menu-toggle[aria-expanded="true"] .wo-menu-toggle__line--1 {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.wo-menu-toggle[aria-expanded="true"] .wo-menu-toggle__line--2 {
  opacity: 0;
  transform: scaleX(0.2);
}

.wo-menu-toggle[aria-expanded="true"] .wo-menu-toggle__line--3 {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.wo-offcanvas__close:hover,
.wo-offcanvas__close:focus,
.wo-offcanvas__close:focus-visible,
.wo-offcanvas__close:active {
  background: #fbf8f5 !important;
  border-color: #a6734d !important;
  color: #a6734d !important;
  box-shadow: 0 0 0 2px rgba(166, 115, 77, 0.18) !important;
}

.wo-offcanvas__close {
  padding: 0 !important;
}

.wo-offcanvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 69;
}

.wo-offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  background: #fff;
  border-left: 1px solid #efe9e2;
  box-shadow: -24px 0 36px -28px rgba(43, 43, 43, 0.45);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}

.wo-offcanvas.is-open {
  transform: translateX(0);
}

.wo-offcanvas-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.wo-offcanvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.25rem;
}

.wo-offcanvas__nav {
  flex: 1;
  overflow-y: auto;
}

.wo-offcanvas__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wo-offcanvas__menu li + li {
  margin-top: 0.25rem;
}

.wo-offcanvas__menu a,
.wo-offcanvas__nav > a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid #f4eee8;
  color: #4a3d33;
  text-decoration: none;
}

.wo-offcanvas__menu a:hover,
.wo-offcanvas__menu a:focus-visible,
.wo-offcanvas__nav > a:hover,
.wo-offcanvas__nav > a:focus-visible {
  color: #a6734d !important;
}

.wo-offcanvas__lang select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #e7ddd3;
  border-radius: 0.6rem;
  background: #fff;
  color: #4a3d33;
  padding: 0 0.75rem;
}

.wo-offcanvas__actions {
  display: grid;
  gap: 0.65rem;
}

.wo-offcanvas__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.wo-offcanvas__btn--outline {
  border: 1px solid #c8b6a7;
  color: #4a3d33;
  background: #fff;
}

.wo-offcanvas__btn--outline:hover,
.wo-offcanvas__btn--outline:focus-visible {
  border-color: #a6734d !important;
  color: #a6734d !important;
}

.wo-offcanvas__btn--solid {
  border: 1px solid #a6734d;
  color: #fff !important;
  background: #a6734d;
}

.wo-offcanvas__btn--solid:hover,
.wo-offcanvas__btn--solid:focus-visible {
  border-color: #8b5e3c !important;
  background: #8b5e3c !important;
  color: #fff !important;
}

body.wo-no-scroll {
  overflow: hidden;
}

/* WordPress admin bar offset when logged in */
body.admin-bar .wo-site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .wo-site-header {
    top: 46px;
  }
}

@media (min-width: 768px) {
  .wo-menu-toggle {
    display: none !important;
  }

  .wo-offcanvas,
  .wo-offcanvas-backdrop {
    display: none !important;
  }
}
