/* FindJob.ma additions for Jannah */
.fj-hero { padding: 36px 8px 28px; text-align: center; color: #1b2422; }
.fj-hero-title { color: #1b2422 !important; font-size: clamp(26px, 4vw, 40px); line-height: 1.2; margin: 0 0 10px; }
.fj-hero-sub { color: #53585c; font-size: 17px; max-width: 640px; margin: 0 auto 22px; }
.fj-search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 900px; margin: 0 auto; background: #fff; padding: 8px; border-radius: 10px; border: 1px solid #dfe8e5; box-shadow: 0 6px 20px rgba(23,89,76,.08); }
.fj-search input, .fj-search select { flex: 1 1 180px; min-height: 48px; border: 1px solid #e1e7e5; border-radius: 6px; padding: 0 12px; font-size: 15px; background: #fff; color: #1b2422; margin: 0; }
.fj-search input[type=search] { flex: 2 1 260px; }
.fj-search input:focus, .fj-search select:focus { border-color: #17594C; outline: none; }
.fj-search button { flex: 0 0 auto; min-height: 48px; padding: 0 24px; border: 0; border-radius: 6px; background: #17594C; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.fj-search button:hover { background: #114238; }
.fj-hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.fj-hero-links a { color: #17594C !important; border: 1px solid #b9d6cd; background: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; }
.fj-hero-links a:hover, .fj-hero-links a.is-active { background: #17594C; border-color: #17594C; color: #fff !important; }
.fj-hero-links span, .fj-chips span, .fj-n { background: #17594C; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.fj-hero-links a:hover span { background: #fff; color: #17594C; }
.fj-empty { display: flex; flex-direction: column; gap: 4px; text-align: center; border: 1px dashed #c9d6d2; border-radius: 10px; padding: 24px 16px; background: #f6f8f7; color: #5d6b67; }
.fj-empty strong { color: #1b2422; font-size: 17px; }
.fj-sections { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.fj-sections li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.07); margin: 0 !important; }
.fj-sections li:before { display: none !important; }
.fj-sections a { text-decoration: none; display: block; }
.fj-sections strong { display: block; }
.fj-sections small { display: block; opacity: .7; font-size: 12px; }
#footer .fj-sections li { border-color: rgba(255,255,255,.1); }
.fj-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fj-chips a { border: 1px solid #e1e7e5; border-radius: 999px; padding: 5px 12px; font-size: 13px; text-decoration: none; }
.fj-terms-title { font-weight: 700; margin: 12px 0 8px; }
.fj-fiche { background: #f6faf9; border: 1px solid #d9e8e4; border-left: 4px solid #17594C; border-radius: 10px; padding: 16px 18px; margin: 0 0 24px; }
.fj-fiche-title { font-weight: 700; font-size: 16px; margin-bottom: 10px; color: #17594C; }
.fj-fiche dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0 0 14px; }
.fj-fiche dl:last-child { margin-bottom: 0; }
.fj-fiche dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; opacity: .7; font-weight: 700; margin: 0; }
.fj-fiche dd { margin: 2px 0 0; font-weight: 600; }
.fj-off { color: #b42318; }
.fj-apply { display: inline-block; background: #17594C; color: #fff !important; padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none !important; }
.fj-apply:hover { background: #114238; }
.fj-apply-end { text-align: center; margin: 24px 0; }
.fj-warn { background: #fff8e6; border: 1px solid #f3dea3; color: #6b4b00; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.fj-note { background: #eef1fb; border-radius: 8px; padding: 12px 14px; }
.dark-skin .fj-fiche { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
@media (max-width: 600px) {
	.fj-hero { padding: 24px 0 20px; }
	.fj-search { flex-direction: column; }
	.fj-search input, .fj-search input[type=search], .fj-search select, .fj-search button { flex: 0 0 auto; width: 100%; height: 48px; }
	.fj-fiche dl { grid-template-columns: 1fr; }
	.fj-apply { display: block; text-align: center; }
}
.mag-box .mag-box-container:not(:has(*))::after { content: "Aucune publication pour le moment."; display: block; padding: 18px 12px; border: 1px dashed #c9d6d2; border-radius: 8px; text-align: center; color: #5d6b67; font-size: 14px; }
.meta-author::before { content: "Par "; margin-right: 2px; }
.meta-author .author-name.tie-icon::before { display: none; }

/* ===== Dreamjob-style layout ===== */
body { font-size: 14px; color: #53585c; }
/* Header: logo on white, compact light-grey nav */
#theme-header.header-layout-3 { box-shadow: none; background: #fff; }
#theme-header .logo-row { background: #fff; }
#theme-header.header-layout-3 .logo-row, #theme-header.header-layout-3 .header-container .logo-row { height: 80px !important; }
#theme-header #logo { margin: 0 !important; padding: 0 !important; }
#theme-header #logo .logo-text, #theme-header #logo a { color: #17594C !important; font-size: 36px !important; font-weight: 800 !important; letter-spacing: -.5px; line-height: 80px !important; }
#theme-header #logo, #theme-header .logo-row, .logo-container, #mobile-header-components-area_1, .main-nav-wrapper .logo-container { background: #fff; }
#theme-header #logo a:has(img) { display: inline-flex !important; align-items: center; height: 80px; line-height: 1 !important; }
#theme-header #logo img { height: 41px !important; width: auto !important; max-height: none !important; }
#theme-header #main-nav, #theme-header .main-nav-wrapper, #main-nav .main-menu-wrapper { background: #f8f8f8 !important; }
#theme-header #main-nav { border-top: 1px solid #ececec !important; border-bottom: 2px solid #e8e8e8 !important; box-shadow: none !important; }
#main-nav .main-menu > ul > li > a { color: #212121 !important; font-size: 14px !important; font-weight: 700 !important; text-transform: none !important; padding: 0 12px !important; line-height: 56px !important; }
#main-nav .main-menu > ul > li { border: 0 !important; }
#main-nav .main-menu > ul > li.menu-item-has-children > a { padding-right: 26px !important; }
#main-nav .main-menu > ul > li:first-child > a { padding-left: 0 !important; }
#main-nav .main-menu > ul > li:hover > a, #main-nav .main-menu > ul > li.tie-current-menu > a, #main-nav .main-menu > ul > li.current-menu-item > a, #main-nav .main-menu > ul > li.current-menu-ancestor > a { background: transparent !important; color: #17594C !important; box-shadow: inset 0 -3px 0 #17594C; }
#main-nav .main-menu > ul > li > a::before { border-top-color: #212121 !important; }
#main-nav .main-menu .sub-menu, #main-nav .main-menu .menu-sub-content { background: #fff !important; border-top: 3px solid #17594C !important; box-shadow: 0 6px 16px rgba(0,0,0,.08) !important; }
#main-nav .main-menu .sub-menu a { color: #212121 !important; font-weight: 600; }
#main-nav .main-menu .sub-menu a:hover { color: #17594C !important; }
#main-nav .components > li > a, #main-nav .components .search-bar input, #main-nav .tie-icon-search { color: #212121 !important; }
#main-nav .main-menu-wrapper, #main-nav .main-nav-wrapper { min-height: 56px; }
#theme-header .main-nav-wrapper, #main-nav { height: auto !important; }

/* Header social icons (logo row, right) */
#theme-header .logo-row { position: relative; }
.fj-header-social { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
.fj-social-icons { display: flex; gap: 6px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.fj-social-icons li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.fj-social-icons li::before { display: none !important; }
.fj-social-icons a { display: flex !important; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #17594C; border-radius: 50%; color: #111 !important; background: #fff; font-size: 13px; line-height: 1; transition: background .15s, color .15s; }
.fj-social-icons a:hover { background: #17594C; color: #fff !important; }
.fj-social-icons a .tie-social-icon, .fj-social-icons a span { color: inherit !important; font-size: 13px; }
.fj-social-icons .screen-reader-text, .fj-social-icons .social-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Search banner section: light background */
#fj-hero { background: #eef6f3 !important; border-bottom: 1px solid #dfece7; }

/* Section headings like "A la une" */
.fj-head { border-bottom: 2px solid #eee; margin: 0 0 30px; }
.fj-head-title { display: inline-block; font-size: 16px !important; font-weight: 700; color: #212121 !important; margin: 0 0 -2px !important; padding: 0 0 8px; border-bottom: 2px solid #17594C; line-height: 1.4; }
.fj-head-title strong { color: #17594C; font-weight: 700; }
.fj-head-title a { color: inherit !important; }

/* Main editorial feed */
#fj-main .mag-box.content-only, #fj-main .mag-box .container-wrapper { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.fj-feed .fj-item { border-bottom: 1px solid #eee; padding: 0 0 30px; margin: 0 0 20px; }
.fj-item-title { font-size: 24px !important; font-weight: 700; line-height: 1.25 !important; margin: 0 0 6px !important; }
.fj-item-title a { color: #212121 !important; }
.fj-item-title a:hover { color: #17594C !important; }
.fj-item-meta { font-size: 11px; color: #a0a0a0; margin: 0 0 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.fj-item-meta time::before { content: "\25F7"; margin-right: 4px; color: #17594C; }
.fj-item-deadline { color: #8a5a00; font-weight: 600; }
.fj-item-body { display: flex; gap: 30px; align-items: flex-start; }
.fj-item-thumb { flex: 0 0 280px; max-width: 280px; display: block; overflow: hidden; }
.fj-item-thumb img { width: 280px; height: 140px !important; object-fit: cover; display: block; }
.fj-item-text { flex: 1; min-width: 0; }
.fj-item-text p { font-size: 14px; line-height: 1.6; color: #53585c; margin: 0 0 14px; }
.fj-readmore { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #53585c !important; border: 1px solid #e0e0e0; padding: 6px 18px; border-radius: 2px; }
.fj-readmore:hover { background: #17594C; border-color: #17594C; color: #fff !important; }
.fj-feed-more { text-align: center; margin: 10px 0 0; }
.fj-feed-more a, .fj-pager a, .fj-pager span { display: inline-block; border: 1px solid #e0e0e0; padding: 8px 18px; font-size: 13px; font-weight: 700; color: #212121 !important; margin: 0 3px 6px; }
.fj-pager { text-align: center; margin-top: 10px; }
.fj-pager .current, .fj-feed-more a:hover, .fj-pager a:hover { background: #17594C; border-color: #17594C; color: #fff !important; }
.fj-feed-empty { color: #888; padding: 16px; border: 1px dashed #ddd; text-align: center; }

/* Sidebar compact lists */
#fj-main .sidebar .container-wrapper, .sidebar .widget_custom_html.container-wrapper { padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; margin-bottom: 35px !important; }
.fj-side-list .fj-head { margin-bottom: 20px; }
.fj-mini { display: flex; gap: 15px; margin: 0 0 20px; align-items: flex-start; }
.fj-mini-thumb { flex: 0 0 120px; }
.fj-mini-thumb img { width: 120px; height: 86px !important; object-fit: cover; display: block; }
.fj-mini-text { min-width: 0; }
.fj-mini-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.4; color: #212121 !important; margin-bottom: 5px; }
.fj-mini-title:hover { color: #17594C !important; }
.fj-mini-text time { font-size: 11px; color: #a0a0a0; }

/* Rubric pages */
.fj-orgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.fj-org { display: flex; flex-direction: column; border: 1px solid #e8e8e8; padding: 14px 16px; color: #212121 !important; }
.fj-org:hover { border-color: #17594C; }
.fj-org span { font-size: 12px; color: #17594C; margin-top: 4px; }

/* Footer: vivid green, 4 columns (overrides the white footer below) */
body #footer, body #footer #footer-widgets-container { background: #17594C !important; border-top: 0 !important; }
body #footer .widget-title, body #footer .widget-title .the-subtitle { color: #fff !important; }
body #footer .widget-title { border-bottom: 2px solid rgba(255,255,255,.35) !important; padding-bottom: 8px !important; }
body #footer, body #footer p, body #footer .fj-foot-about { color: #f1fff6 !important; }
body #footer .fj-links a, body #footer a { color: #fff !important; font-weight: 600; }
body #footer .fj-links a:hover, body #footer a:hover { color: #fff !important; text-decoration: underline; }
body #footer .site-info { background: #114238 !important; border-top: 0 !important; }
body #footer .site-info, body #footer .site-info .copyright-text { color: #e6f7ec !important; }
body #footer .site-info a, body #footer .site-info .footer-menu a { color: #fff !important; font-weight: 600; }

/* Footer: white, 4 columns */
#footer { background: #fff !important; border-top: 1px solid #eee; margin-top: 40px; }
#footer #footer-widgets-container { padding: 60px 0 30px !important; background: #fff !important; }
#footer .container-wrapper { background: transparent !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
#footer .widget-title, #footer .widget-title .the-subtitle { background: transparent !important; color: #17594C !important; font-size: 16px !important; font-weight: 700 !important; padding: 0 !important; border: 0 !important; }
#footer .widget-title::before, #footer .widget-title::after, #footer .widget-title .the-subtitle::before, #footer .widget-title .the-subtitle::after { display: none !important; }
#footer .widget-title { margin-bottom: 18px !important; }
#footer .widget-title-icon { display: none !important; }
.fj-links { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.fj-links li { padding: 0 0 10px !important; margin: 0 !important; border: 0 !important; list-style: none !important; }
.fj-links li::before { display: none !important; }
#footer .fj-links a, .fj-links a { color: #212121 !important; font-size: 14px; }
#footer .fj-links a:hover { color: #17594C !important; }
#footer, #footer p, #footer .fj-foot-about { color: #666 !important; font-size: 14px; }
#footer .site-info { background: #fff !important; border-top: 1px solid #eee; color: #a8a8aa !important; }
#footer .site-info, #footer .site-info a, #footer .site-info .copyright-text { color: #a8a8aa !important; font-size: 13px; }
#footer .site-info .footer-menu a { color: #53585c !important; }

@media (max-width: 991px) {
	#theme-header #logo .logo-text, #theme-header #logo a { font-size: 28px !important; }
}
@media (max-width: 991px) {
	#theme-header.header-layout-3 .logo-row, #theme-header.header-layout-3 .header-container .logo-row { height: 60px !important; }
	#theme-header #logo .logo-text, #theme-header #logo a { line-height: 60px !important; font-size: 26px !important; }
	#theme-header #logo a:has(img) { height: 60px; }
	#theme-header #logo img { height: 34px !important; }
	#theme-header.header-layout-3 .logo-row, #theme-header.header-layout-3 .header-container .logo-row { height: auto !important; }
	.fj-header-social { position: static; transform: none; display: flex; justify-content: center; padding: 0 0 10px; }
	.fj-social-icons { gap: 5px; flex-wrap: wrap; justify-content: center; }
	.fj-social-icons a { width: 28px; height: 28px; }
}
@media (max-width: 767px) {
	.fj-item-title { font-size: 19px !important; }
	.fj-item-body { flex-direction: column; gap: 12px; }
	.fj-item-thumb { flex: none; max-width: 100%; width: 100%; }
	.fj-item-thumb img { width: 100%; height: auto !important; aspect-ratio: 2 / 1; }
	#footer #footer-widgets-container { padding: 35px 0 10px !important; }
}

/* Footer titles in black on a light badge (readable on #17594C) + footer logo */
body #footer .widget-title { border-bottom: 0 !important; padding-bottom: 0 !important; }
body #footer .widget-title .the-subtitle { display: inline-block !important; background: #fff !important; color: #111 !important; padding: 5px 12px !important; border-radius: 4px; line-height: 1.3 !important; }
body #footer #custom_html-924 .widget-title { display: none !important; }
.fj-foot-logo { display: inline-flex; align-items: center; background: #fff; padding: 6px 12px; border-radius: 4px; margin: 0 0 18px; }
.fj-foot-logo img { height: 30px; width: auto; display: block; }
