/*
Theme Name:   Careerfy Child Ta'iara-PRO
Theme URI:    https://taiara-pro.net/
Description:  Thème enfant de Careerfy. Customisations Ta'iara-PRO : palette, typographies, header et footer custom, templates overridés.
Author:       Ta'iara
Author URI:   https://taiara-pro.net/
Template:     careerfy
Version:      1.0.1
Text Domain:  careerfy-child
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
  --tp-navy: #16315c;
  --tp-navy-deep: #0d2046;
  --tp-accent: #2ea6a0;
  --tp-accent-deep: #1f7d78;
  --tp-warm: #e7b647;
  --tp-bg-soft: #f7f5ee;
  --tp-text: #16315c;
  --tp-text-body: #3a4a66;
  --tp-text-muted: #6b7790;
  --tp-border: #e5e1d4;
  --tp-radius-sm: 8px;
  --tp-radius-md: 14px;
  --tp-radius-lg: 22px;
  --tp-shadow-sm: 0 2px 8px rgba(20,30,60,0.06);
  --tp-shadow-md: 0 8px 24px rgba(20,30,60,0.08);
  --tp-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --tp-font-head: "Poppins", "Inter", "Helvetica Neue", Arial, sans-serif;
  --tp-container: 1200px;
}

html, body { overflow-x: clip; }
html, body { height: 100%; }
body { font-family: var(--tp-font-body); color: var(--tp-text-body); }
h1, h2, h3, h4, h5, h6 { font-family: var(--tp-font-head); color: var(--tp-navy); }
a { color: var(--tp-accent-deep); text-decoration: none; }
a:hover { color: var(--tp-navy); }

html body, html body .careerfy-wrapper { overflow-x: clip !important; }
html body .careerfy-wrapper,
body > .careerfy-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: visible !important;
  float: none !important;
  position: static !important;
  left: auto !important;
}
body > .careerfy-wrapper > #careerfy-footer { margin-top: auto !important; }
body > .careerfy-wrapper > #careerfy-header ~ * { flex-shrink: 0; }
body > .careerfy-wrapper > .clearfix:last-of-type { display: none; }

/* Quand le plugin taiara-pro-pwa est actif (body.tpa-active), on neutralise
 * le wrapper #careerfy-header pour laisser .tpa-header (le header PWA) gérer
 * son propre sticky, padding, bordure. display:contents fait disparaître la
 * boîte du wrapper sans masquer ses enfants. */
html body.tpa-active #careerfy-header {
  display: contents !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body { margin: 0 !important; padding: 0 !important; }
html body #careerfy-header,
html body #careerfy-footer { margin: 0 !important; }

html body .careerfy-wrapper > *:not(#careerfy-header):not(#careerfy-footer) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: transparent !important;
}
html body .careerfy-wrapper > *:not(#careerfy-header):not(#careerfy-footer) > *:first-child,
html body .careerfy-wrapper > *:not(#careerfy-header):not(#careerfy-footer) > *:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html body .careerfy-wrapper > *:not(#careerfy-header):not(#careerfy-footer) > *:last-child,
html body .careerfy-wrapper > *:not(#careerfy-header):not(#careerfy-footer) > *:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html body .careerfy-page-content,
html body .careerfy-main-content,
html body .careerfy-page-wraper,
html body .careerfy-page-wrapper,
html body .careerfy-pages-container,
html body .careerfy-page-wrap,
html body #careerfy-main-content,
html body .careerfy-inner-content,
html body .careerfy-job-listing,
html body .careerfy-cand-listing,
html body .careerfy-emp-listing,
html body .elementor,
html body .elementor-section-wrap,
html body .entry-content,
html body .page-content,
html body .site-content,
html body main,
html body #main,
html body #primary,
html body #content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body .elementor-section.elementor-top-section:first-child,
html body .elementor-section.elementor-top-section:first-of-type,
html body .elementor > .elementor-section:first-child,
html body .elementor > .elementor-element:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html body .elementor-section.elementor-top-section:last-child,
html body .elementor-section.elementor-top-section:last-of-type,
html body .elementor > .elementor-section:last-child,
html body .elementor > .elementor-element:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

html body #careerfy-header + *,
html body #careerfy-header ~ *:not(#careerfy-footer):first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* EXCEPTION au reset ci-dessus : le tableau de bord doit respirer sous le
 * header. Le reset `.careerfy-wrapper > *:not(#careerfy-header):not(#careerfy-footer)`
 * pese (2,1,2) a cause des deux :not(#id). Pour reprendre la main sans toucher
 * au reset global (qui protege les bandes vides ailleurs), on rejoue la meme
 * astuce :not(#id) + le body du template => specificite (2,3,2) qui l'emporte. */
html body.page-template-user-dashboard-template .careerfy-wrapper > .jobsearch-main-content:not(#careerfy-header):not(#careerfy-footer) {
  padding-top: 20px !important;
}


#careerfy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--tp-border);
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--tp-font-head);
}
.tp-header__inner {
  width: 100%;
  max-width: var(--tp-container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.tp-header ul { list-style: none; margin: 0; padding: 0; }
.tp-header a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }

.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  max-height: 100%;
  min-width: 0;
}
.tp-brand__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tp-brand img,
.tp-brand .tp-brand__logo-img,
#careerfy-header .custom-logo,
#careerfy-header .custom-logo-link img {
  max-height: 44px !important;
  max-width: 56px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}
.tp-brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tp-navy) 0%, var(--tp-accent-deep) 100%);
  flex-shrink: 0;
}
.tp-brand__mark::before {
  content: "";
  position: absolute;
  inset: 8px 8px 6px 8px;
  background: #fff;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-35deg);
  opacity: 0.95;
}
.tp-brand__text { display: flex; flex-direction: column; line-height: 1; }
.tp-brand__name {
  font-family: var(--tp-font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--tp-navy);
  letter-spacing: -0.3px;
}
.tp-brand__tagline {
  font-family: var(--tp-font-head);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--tp-accent-deep);
  margin-top: 4px;
}

.tp-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.tp-nav__list,
.tp-nav .menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tp-nav__list li a,
.tp-nav .menu li a {
  font-family: var(--tp-font-head);
  font-weight: 500;
  font-size: 15px;
  color: var(--tp-navy);
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}
.tp-nav__list li a::after,
.tp-nav .menu li a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--tp-accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.tp-nav__list li a:hover,
.tp-nav .menu li.current-menu-item > a,
.tp-nav .menu li.current_page_item > a {
  color: var(--tp-accent-deep);
}
.tp-nav__list li a:hover::after,
.tp-nav .menu li.current-menu-item > a::after,
.tp-nav .menu li.current_page_item > a::after {
  transform: scaleX(1);
}

#careerfy-header .tp-header__cta {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
#careerfy-header .tp-btn,
.tp-mobile-nav .tp-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-family: var(--tp-font-head) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  border: 2px solid transparent !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  height: auto !important;
  min-width: 0 !important;
  width: auto !important;
  box-shadow: none !important;
}
#careerfy-header .tp-btn--primary,
.tp-mobile-nav .tp-btn--primary {
  background: var(--tp-navy) !important;
  color: #fff !important;
  border-color: var(--tp-navy) !important;
}
#careerfy-header .tp-btn--primary:hover,
.tp-mobile-nav .tp-btn--primary:hover {
  background: var(--tp-navy-deep) !important;
  color: #fff !important;
  border-color: var(--tp-navy-deep) !important;
  transform: translateY(-1px);
}
#careerfy-header .tp-btn--ghost-navy,
.tp-mobile-nav .tp-btn--ghost-navy {
  background: transparent !important;
  color: var(--tp-navy) !important;
  border-color: var(--tp-navy) !important;
}
#careerfy-header .tp-btn--ghost-navy:hover,
.tp-mobile-nav .tp-btn--ghost-navy:hover {
  background: var(--tp-navy) !important;
  color: #fff !important;
}

.tp-burger-toggle { position: absolute; opacity: 0; pointer-events: none; }
.tp-burger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 8px;
  margin-left: auto;
  cursor: pointer;
}
.tp-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tp-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.tp-mobile-nav {
  display: none;
  border-top: 1px solid var(--tp-border);
  background: #fff;
  padding: 20px 24px 28px;
}
.tp-mobile-nav .menu,
.tp-mobile-nav__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tp-mobile-nav .menu li,
.tp-mobile-nav__list li { border-bottom: 1px solid var(--tp-border); }
.tp-mobile-nav .menu li a,
.tp-mobile-nav__list li a {
  display: block;
  padding: 16px 0;
  font-family: var(--tp-font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--tp-navy);
}
.tp-mobile-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.tp-mobile-nav__cta .tp-btn {
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
}
.tp-burger-toggle:checked ~ .tp-mobile-nav { display: block; }
.tp-burger-toggle:checked ~ .tp-header__inner .tp-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.tp-burger-toggle:checked ~ .tp-header__inner .tp-burger span:nth-child(2) { opacity: 0; }
.tp-burger-toggle:checked ~ .tp-header__inner .tp-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


html body #careerfy-header,
html body #careerfy-footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
}
html body #careerfy-header > .container,
html body #careerfy-footer > .container,
html body #careerfy-header .careerfy-row,
html body #careerfy-footer .careerfy-row {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

html body #careerfy-header ul,
html body #careerfy-header ol,
html body #careerfy-header li,
html body #careerfy-header .menu-item,
html body #careerfy-footer ul,
html body #careerfy-footer ol,
html body #careerfy-footer li,
html body #careerfy-footer .menu-item {
  list-style: none !important;
  list-style-type: none !important;
  list-style-position: outside !important;
  list-style-image: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  background-image: none !important;
  background: transparent !important;
}
html body #careerfy-header li::before,
html body #careerfy-header li::after,
html body #careerfy-header li::marker,
html body #careerfy-header ::marker,
html body #careerfy-header a::before,
html body #careerfy-header .widget_nav_menu ul li a::before,
html body #careerfy-header .menu li a::before,
html body #careerfy-footer li::before,
html body #careerfy-footer li::after,
html body #careerfy-footer li::marker,
html body #careerfy-footer ::marker,
html body #careerfy-footer a::before,
html body #careerfy-footer .widget_nav_menu ul li a::before,
html body #careerfy-footer .widget_section_nav ul li a::before,
html body #careerfy-footer .menu li a::before {
  content: none !important;
  display: none !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  width: 0 !important;
  height: 0 !important;
  font-family: inherit !important;
  font-size: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #careerfy-footer {
  background: #f7f5ee !important;
  background-color: #f7f5ee !important;
  background-image: none !important;
  color: #3a4a66 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: var(--tp-font-body) !important;
  line-height: 1.6 !important;
  border-top: 1px solid #e5e1d4 !important;
  float: none !important;
}
html body #careerfy-footer ul {
  margin: 0 !important;
  padding: 0 !important;
}
html body #careerfy-footer a {
  text-decoration: none !important;
  color: #3a4a66 !important;
  transition: color 0.15s ease;
}
html body #careerfy-footer a:hover { color: #1f7d78 !important; }
html body #careerfy-footer h1,
html body #careerfy-footer h2,
html body #careerfy-footer h3,
html body #careerfy-footer p { margin: 0 !important; padding: 0 !important; color: #16315c !important; }

html body #careerfy-footer .container {
  padding: 0 !important;
  max-width: none !important;
}

html body #careerfy-footer .tp-brand__name {
  color: #16315c !important;
}
html body #careerfy-footer .tp-brand__tagline {
  color: #1f7d78 !important;
}

html body #careerfy-footer .tp-footer__inner {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 24px 32px !important;
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr !important;
  gap: 28px 40px !important;
  align-items: start !important;
}
html body #careerfy-footer .tp-footer__brand-col {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  min-width: 0 !important;
}
html body #careerfy-footer .tp-footer__brand-col .tp-brand { display: inline-flex !important; align-items: center !important; gap: 12px !important; }
html body #careerfy-footer .tp-footer__brand-col .tp-brand__mark {
  background: linear-gradient(135deg, #16315c 0%, #1f7d78 100%) !important;
}
html body #careerfy-footer .tp-footer__brand-col .tp-brand__name {
  color: #16315c !important;
  font-size: 22px !important;
}
html body #careerfy-footer .tp-footer__brand-col .tp-brand__tagline {
  color: #1f7d78 !important;
}
html body #careerfy-footer .tp-footer__brand-col .tp-brand__logo-img {
  max-height: 44px !important;
  max-width: 56px !important;
  width: auto !important;
  height: auto !important;
}
html body #careerfy-footer .tp-footer__about {
  font-size: 13.5px !important;
  color: #6b7790 !important;
  line-height: 1.55 !important;
  max-width: 320px !important;
  margin: 0 !important;
}
html body #careerfy-footer .tp-footer__ecosystem {
  font-size: 12.5px !important;
  color: #6b7790 !important;
  line-height: 1.5 !important;
  max-width: 320px !important;
  margin: 2px 0 0 0 !important;
  font-style: italic !important;
}
html body #careerfy-footer .tp-footer__ecosystem a {
  color: #2ea6a0 !important;
  font-weight: 600 !important;
  font-style: normal !important;
  text-decoration: none !important;
  border-bottom: 1px solid transparent !important;
  transition: border-color 0.15s ease !important;
}
html body #careerfy-footer .tp-footer__ecosystem a:hover {
  border-bottom-color: #2ea6a0 !important;
}
html body #careerfy-footer .tp-footer__socials {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 4px !important;
  list-style: none !important;
  padding: 0 !important;
}
html body #careerfy-footer .tp-footer__brand-mark a {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-right: 2px !important;
}
html body #careerfy-footer .tp-footer__brand-mark a:hover {
  background: transparent !important;
  transform: none !important;
}
html body #careerfy-footer .tp-footer__brand-mark-img {
  display: block !important;
  height: 34px !important;
  width: auto !important;
  max-width: 44px !important;
}
html body #careerfy-footer .tp-footer__socials a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #16315c !important;
  color: #fff !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
html body #careerfy-footer .tp-footer__socials a:hover {
  background: #2ea6a0 !important;
  color: #fff !important;
  transform: translateY(-2px);
}
html body #careerfy-footer .tp-footer__socials svg {
  width: 16px !important;
  height: 16px !important;
}
html body #careerfy-footer .tp-footer__col-title {
  font-family: var(--tp-font-head) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: #16315c !important;
  margin: 0 0 14px 0 !important;
}
html body #careerfy-footer .tp-footer__col ul,
html body #careerfy-footer .tp-footer__col .menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #careerfy-footer .tp-footer__col a,
html body #careerfy-footer .tp-footer__col .menu a {
  font-size: 13.5px !important;
  color: #3a4a66 !important;
}
html body #careerfy-footer .tp-footer__col a:hover,
html body #careerfy-footer .tp-footer__col .menu a:hover { color: #1f7d78 !important; }

html body #careerfy-footer .tp-footer__bottom {
  border-top: 1px solid #e5e1d4 !important;
  padding: 16px 24px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}
html body #careerfy-footer .tp-footer__copy {
  font-size: 12.5px !important;
  color: #6b7790 !important;
  margin: 0 !important;
}
html body #careerfy-footer .tp-footer__legal {
  display: flex !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body #careerfy-footer .tp-footer__legal li { list-style: none !important; }
html body #careerfy-footer .tp-footer__legal a {
  font-size: 12.5px !important;
  color: #6b7790 !important;
}
html body #careerfy-footer .tp-footer__legal a:hover { color: #1f7d78 !important; }


@media (max-width: 1024px) {
  .tp-header .tp-nav,
  .tp-header .tp-header__cta { display: none !important; }
  .tp-header .tp-burger { display: inline-flex !important; }
  .tp-header__inner { gap: 12px; padding: 0 20px; }

  html body #careerfy-footer .tp-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr !important;
    gap: 28px !important;
  }
  html body #careerfy-footer .tp-footer__brand-col { grid-column: 1 / -1 !important; margin-bottom: 4px !important; }
  html body #careerfy-footer .tp-footer__about { max-width: 460px !important; }
}

@media (max-width: 768px) {
  html body #careerfy-footer .tp-footer__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 20px !important;
  }
  html body #careerfy-footer .tp-footer__brand-col { grid-column: 1 / -1 !important; }
}

@media (max-width: 640px) {
  .tp-header__inner { height: 60px; padding: 0 16px; gap: 8px; }
  .tp-brand img,
  .tp-brand .tp-brand__logo-img,
  #careerfy-header .custom-logo,
  #careerfy-header .custom-logo-link img {
    max-height: 36px !important;
    max-width: 48px !important;
  }
  .tp-brand__name { font-size: 17px; }
  .tp-brand__tagline { font-size: 9px; }
  .tp-brand__mark { width: 34px; height: 34px; }

  .tp-burger { width: 38px; height: 38px; }

  .tp-mobile-nav { padding: 16px 18px 22px; }
  .tp-mobile-nav .menu li a,
  .tp-mobile-nav__list li a { padding: 14px 0; font-size: 16px; }

  html body #careerfy-footer { padding: 32px 0 0 !important; }
  html body #careerfy-footer .tp-footer__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 16px !important;
    padding: 0 18px 24px !important;
  }
  html body #careerfy-footer .tp-footer__brand-col {
    grid-column: 1 / -1 !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  html body #careerfy-footer .tp-footer__about {
    max-width: none !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  html body #careerfy-footer .tp-footer__socials a { width: 32px !important; height: 32px !important; }
  html body #careerfy-footer .tp-footer__col-title {
    font-size: 11px !important;
    margin-bottom: 10px !important;
    letter-spacing: 1.2px !important;
  }
  html body #careerfy-footer .tp-footer__inner > nav.tp-footer__col:last-of-type {
    grid-column: 1 / -1 !important;
  }
  html body #careerfy-footer .tp-footer__col ul,
  html body #careerfy-footer .tp-footer__col .menu { gap: 6px !important; }
  html body #careerfy-footer .tp-footer__col a,
  html body #careerfy-footer .tp-footer__col .menu a { font-size: 13px !important; }
  html body #careerfy-footer .tp-footer__bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 14px 18px !important;
    gap: 8px !important;
  }
  html body #careerfy-footer .tp-footer__legal {
    flex-wrap: wrap !important;
    gap: 8px 14px !important;
  }
}

/* Quand le plugin PWA est actif, on garantit que la bottom-nav (fixed bottom)
 * ne cache pas le bas du footer. La règle `html body { padding: 0 !important }`
 * du début du fichier nous empêche d'utiliser body { padding-bottom }, donc
 * on padde la wrapper et le footer eux-mêmes. */
@media (max-width: 768px) {
  body.tpa-active > .careerfy-wrapper,
  html body.tpa-active .careerfy-wrapper { padding-bottom: 88px !important; }
  body.tpa-active #careerfy-footer .tp-footer__bottom { padding-bottom: 18px !important; }
}

@media (max-width: 480px) {
  .tp-brand__tagline { display: none; }
  .tp-header__inner { height: 56px; padding: 0 14px; }
}

@media (max-width: 380px) {
  .tp-brand__name { font-size: 15px; }
  .tp-brand__tagline { font-size: 8px; letter-spacing: 0.8px; }
  .tp-brand__mark { width: 30px; height: 30px; }
  .tp-brand img,
  .tp-brand .tp-brand__logo-img,
  #careerfy-header .custom-logo,
  #careerfy-header .custom-logo-link img {
    max-height: 32px !important;
  }
}


.careerfy-button, .careerfy-btn, input[type="submit"], button.btn-primary {
  background: var(--tp-navy);
  border-color: var(--tp-navy);
  color: #fff;
  border-radius: 10px;
  font-family: var(--tp-font-head);
  font-weight: 600;
  transition: all 0.15s ease;
}
.careerfy-button:hover, .careerfy-btn:hover, input[type="submit"]:hover {
  background: var(--tp-navy-deep);
  border-color: var(--tp-navy-deep);
  transform: translateY(-1px);
}
.careerfy-btn-secondary, .careerfy-button-secondary {
  background: var(--tp-accent);
  border-color: var(--tp-accent);
}
.careerfy-btn-secondary:hover, .careerfy-button-secondary:hover {
  background: var(--tp-accent-deep);
  border-color: var(--tp-accent-deep);
}
.careerfy-tag, .careerfy-job-tag, .careerfy-category-tag {
  background: rgba(46,166,160,0.10);
  color: var(--tp-accent-deep);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}


.jobsearch-typo-wrap,
.jobsearch-typo-wrap *,
.jobsearch-form,
.jobsearch-form *,
.jobsearch-modal,
.jobsearch-modal *,
.jobsearch-button,
.jobsearch-row button,
.jobsearch-row .button,
.jobsearch-row input[type="submit"],
.jobsearch-row input[type="button"],
.jobsearch-row label,
.careerfy-typo,
.careerfy-typo *,
.careerfy-button,
.careerfy-btn,
.careerfy-job-listing label,
.careerfy-job-listing button,
.careerfy-job-listing .button,
.careerfy-job-listing input[type="submit"],
.careerfy-cand-listing label,
.careerfy-cand-listing button,
.careerfy-emp-listing label,
.careerfy-emp-listing button {
  text-transform: none !important;
}

.tp-section-eyebrow,
.tp-footer__col-title,
.tp-numbers__grid span,
.tp-news-card__date {
  text-transform: uppercase !important;
}

.jobsearch-modal .jobsearch-modal-title,
.jobsearch-modal h1,
.jobsearch-modal h2,
.jobsearch-modal h3 {
  font-family: var(--tp-font-head);
  color: var(--tp-navy);
}

.jobsearch-modal .jobsearch-button,
.jobsearch-modal button[type="submit"],
.jobsearch-modal input[type="submit"] {
  background: var(--tp-navy) !important;
  border-color: var(--tp-navy) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-family: var(--tp-font-head);
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
}
.jobsearch-modal .jobsearch-button:hover,
.jobsearch-modal button[type="submit"]:hover,
.jobsearch-modal input[type="submit"]:hover {
  background: var(--tp-navy-deep) !important;
  border-color: var(--tp-navy-deep) !important;
  transform: translateY(-1px);
}


/* ============================================================
 * MASQUAGE HEADER PARASITE CAREERFY (option A)
 * Sélecteurs vérifiés sur taiara-pro.net via DevTools mobile :
 *  - #careerfy-header.careerfy-header-one : header sticky avec
 *    logo arbre + icône user + burger
 *  - .careerfy-mobile-hdr-sidebar.mobile-menu-style1 : drawer
 *    overlay du menu burger (liste OFFRES, RECRUTEURS, etc.)
 *  - .careerfy-mobilehder-strip / .mobile-hder-style1 : bandeau
 *    mobile alternatif (déjà display:none côté thème, on verrouille)
 * On garde la bottom-nav .tpa-bnav (style app iOS/Android) et
 * le header .tpa-header s'il est rendu via shortcode Elementor.
 * ============================================================ */
body.tpa-active #careerfy-header,
body.tpa-active .careerfy-header-one,
body.tpa-active .careerfy-mobile-hdr-sidebar,
body.tpa-active .careerfy-mobilehder-strip,
body.tpa-active .mobile-menu-style1,
body.tpa-active .mobile-hder-style1,
body.tpa-active .mobile-hder-topcon,
body.tpa-active .careerfy-header-section,
body.tpa-active .careerfy-logo-section,
body.tpa-active .careerfy-menu-section,
body.tpa-active .careerfy-menubar,
body.tpa-active .careerfy-main-nav,
body.tpa-active .careerfy-mobile-menu,
body.tpa-active .careerfy-mob-menu,
body.tpa-active .careerfy-mob-icon,
body.tpa-active .careerfy-mob-menu-icon,
body.tpa-active .careerfy-mob-menu-wrap,
body.tpa-active .careerfy-mob-menu-overlay,
body.tpa-active .ast-mobile-header,
body.tpa-active .ast-mobile-header-wrap,
body.tpa-active .ast-mobile-menu-buttons,
body.tpa-active .astra-mobile-menu-buttons,
body.tpa-active .ast-mobile-popup-drawer,
body.tpa-active .ast-primary-header-bar,
body.tpa-active .ast-below-header-wrap,
body.tpa-active .main-header-bar,
body.tpa-active #masthead.site-header,
body.tpa-active #masthead,
body.tpa-active .site-header {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Sécurité : le header tpa et la bottom-nav doivent rester visibles */
body.tpa-active .tpa-header {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  width: auto !important;
  pointer-events: auto !important;
}
@media (max-width: 768px) {
  body.tpa-active .tpa-bnav {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    width: auto !important;
    position: fixed !important;
    pointer-events: auto !important;
  }
}

/* ==== Hauteur de la carte de localisation (profil candidat / employeur) ==== */
/* Le plugin écrit height:250px en inline sur #jobsearch-map-<id> :
   !important est nécessaire pour l'emporter sur le style inline. */
[id^="jobsearch-map-"] {
  height: 450px !important;
}
@media (max-width: 768px) {
  [id^="jobsearch-map-"] {
    height: 300px !important;
  }
}

/* ==== Masquer l'onglet Visuel/Texte des éditeurs (tableau de bord) ==== */
/* On garde l'éditeur en mode Visuel (actif par défaut) sans le sélecteur d'onglets. */
.page-template-user-dashboard-template .wp-editor-tabs {
  display: none !important;
}
