/*START CSS - [arx_recrutement_list] */

.arx-recrutement-container.arx-recrutement-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.arx-recrutement-container .arx-recrutement-content {
  position: relative;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.arx-recrutement-container .arx-recrutement-company-logo-wrapper {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin: 0 0 15px;
}

.arx-recrutement-container .arx-recrutement-company-logo {
  display: block;
  width: auto;
  max-width: 140px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.arx-recrutement-container .arx-recrutement-tags-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 10px;
}

.arx-recrutement-container .arx-recrutement-tags-separator {
  width: 1px;
  align-self: stretch;
  min-height: 100%;
  background-color: var(--arx-recrutement-secondary-color);
  flex-shrink: 0;
}

.arx-recrutement-container .arx-recrutement-link {
  position: absolute;
  top: 20px;
  right: 20px;
  margin-top: 0;
}

.arx-recrutement-container .arx-recrutement-tags {
  display: flex;
  margin-bottom: 0px;
  gap: 10px;
  flex-wrap: wrap;
}

.arx-recrutement-container .arx-recrutement-tag {
  padding: 0px 10px;
  border-radius: 100px;
  background-color: var(--arx-recrutement-secondary-color);
  color: white;
}

/* ===== CUSTOM TAGS SHORTCODE ===== */
.arx-recrutement-custom-tags-wrapper {
  margin: 15px 0;
}

.arx-recrutement-custom-tags-wrapper .arx-recrutement-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.arx-recrutement-custom-tags-wrapper .arx-recrutement-custom-tag {
  padding: 6px 12px;
  border-radius: 20px;
  background-color: var(--arx-recrutement-secondary-color, #6c757d);
  color: white;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: inline-block;
  white-space: nowrap;
}

/* ===== GOOGLE MAPS IFRAME ===== */
.arx-recrutement-map-wrapper {
  margin: 20px 0;
  width: 100%;
}

.arx-recrutement-map-wrapper .arx-recrutement-map {
  width: 100%;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== NOUVELLE STRUCTURE EN DEUX COLONNES ===== */
.arx-recrutement-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin: 15px 0;
}

.arx-recrutement-description {
  display: flex;
  flex-direction: column;
}

.arx-recrutement-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.arx-recrutement-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid var(--arx-recrutement-primary-color);
  flex-direction: column;
}

.arx-recrutement-meta-item span {
  color: #666;
  font-weight: 500;
  flex: 1;
  text-align: end;
}

.arx-recrutement-no-results {
  text-align: center;
  font-size: 22px;
  padding: 20px;
  color: #666;
  font-style: italic;
}



/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .arx-recrutement-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .arx-recrutement-meta-item {
    padding: 6px 10px;
  }

  .arx-recrutement-custom-tags-wrapper {
    margin: 12px 0;
  }

  .arx-recrutement-custom-tags-wrapper .arx-recrutement-custom-tag {
    padding: 5px 10px;
    font-size: 13px;
  }

  .arx-recrutement-container .arx-recrutement-content > h1,
  .arx-recrutement-container .arx-recrutement-content > h2,
  .arx-recrutement-container .arx-recrutement-content > h3,
  .arx-recrutement-container .arx-recrutement-content > h4,
  .arx-recrutement-container .arx-recrutement-content > h5,
  .arx-recrutement-container .arx-recrutement-content > h6 {
    max-width: 75%;
  }
}

@media (max-width: 480px) {
  .arx-recrutement-container .arx-recrutement-content {
    padding: 15px;
  }

  .arx-recrutement-layout {
    gap: 10px;
  }

  .arx-recrutement-meta-item {
    padding: 5px 8px;
  }

  .arx-recrutement-container .arx-recrutement-company-logo {
    max-width: 120px;
    max-height: 60px;
  }
}

/* ===== FILTRES DE RECRUTEMENT ===== */
.arx-recrutement-filters {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.arx-recrutement-filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  align-items: end;
}

.arx-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.arx-filter-group label {
  font-weight: 600;
  color: #333;
}

.arx-filter-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.3s ease;
}

.arx-filter-select:focus {
  outline: none;
  border-color: var(--arx-recrutement-primary-color);
  box-shadow: 0 0 0 2px rgba(0, 105, 122, 0.1);
}

.arx-filter-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.arx-filter-button {
  padding: 10px 20px;
  background: var(--arx-recrutement-primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.arx-filter-button:hover {
  background: var(--arx-recrutement-secondary-color);
}

.arx-filter-reset {
  padding: 10px 20px;
  background: #6c757d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.arx-filter-reset:hover {
  background: #545b62;
}

/* ===== LOADING ===== */
.arx-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

/* ===== RESPONSIVE FILTRES ===== */
@media (max-width: 768px) {
  .arx-recrutement-filters-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .arx-filter-actions {
    flex-direction: column;
    gap: 8px;
  }

  .arx-filter-button,
  .arx-filter-reset {
    width: 100%;
  }
}

/* ===== SHORTCODE ARX_RECRUTEMENT_META ===== */
.arx-recrutement-meta-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.arx-recrutement-meta-display p {
  padding-bottom: 0;
}

.arx-recrutement-meta-label {
  font-weight: 600;
  color: #333;
}

.arx-recrutement-meta-value {
  color: #666;
}

.arx-recrutement-error {
  color: #dc3545;
  font-style: italic;
}

/* ===== VARIANTES DE STYLES ===== */
.arx-recrutement-meta-display.arx-meta-large {
  gap: 12px;
}

.arx-recrutement-meta-display.arx-meta-small {
  gap: 5px;
}

.arx-recrutement-meta-display.arx-meta-highlight {
  background: #f8f9fa;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--arx-recrutement-primary-color);
}

.arx-recrutement-meta-display.arx-meta-card {
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .arx-recrutement-meta-display {
    gap: 6px;
  }

  .arx-recrutement-meta-display.arx-meta-large {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .arx-recrutement-meta-display {
    gap: 5px;
  }

  .arx-recrutement-meta-display.arx-meta-card {
    padding: 8px 12px;
  }
}

/* ===== SHORTCODE ARX_RECRUTEMENT_TAXONOMY ===== */

.arx-recrutement-taxonomy-display .arx-recrutement-taxonomy-tags {
  display: flex;
  margin-bottom: 10px;
  gap: 10px;
}

.arx-recrutement-taxonomy-display .arx-recrutement-taxonomy-tag {
  padding: 0px 10px;
  border-radius: 100px;
  background-color: #ccc;
}

/* Couleurs par taxonomie - styles dynamiques */
.arx-recrutement-taxonomy-tag[data-taxonomy="arx_recrutement_offer_type"] {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_offer_type-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

.arx-recrutement-taxonomy-tag[data-taxonomy="arx_recrutement_location"] {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_location-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

.arx-recrutement-taxonomy-tag[data-taxonomy="arx_recrutement_level"] {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_level-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

.arx-recrutement-taxonomy-tag[data-taxonomy="arx_recrutement_contract_type"] {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_contract_type-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

.arx-recrutement-taxonomy-tag[data-taxonomy="arx_recrutement_company"] {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_company-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

/* Colors by taxonomy for tags with specific classes */
.arx-recrutement-tag.arx_recrutement_offer_type-tag {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_offer_type-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

.arx-recrutement-tag.arx_recrutement_location-tag {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_location-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

.arx-recrutement-tag.arx_recrutement_level-tag {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_level-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

.arx-recrutement-tag.arx_recrutement_contract_type-tag {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_contract_type-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

.arx-recrutement-tag.arx_recrutement_company-tag {
  background-color: var(
    --arx-recrutement-taxonomy-arx_recrutement_company-color,
    #f0f0f0
  ) !important;
  color: white !important;
}

/* Sections des meta */

.arx-meta-section:last-child {
  border-bottom: none;
}

.arx-meta-section-header {
  margin-bottom: 20px;
}

.arx-meta-section-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--arx-recrutement-primary-color);
}

.arx-meta-section-content p {
  margin: 0 0 15px 0;
}

.arx-meta-section-content ul {
  margin: 0 0 15px 0;
  padding-left: 20px;
}

.arx-meta-section-content li {
  margin-bottom: 8px;
}

.arx-meta-section-empty {
  color: #999;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .arx-meta-section {
    padding: 30px 0;
  }

  .arx-meta-section-title {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .arx-meta-section {
    padding: 20px 0;
  }

  .arx-meta-section-title {
    font-size: 1.2em;
  }
}

/* ===== NAVIGATION DES SECTIONS META ===== */

.arx-meta-sections-wrapper {
  position: relative;
  width: 100%;
}

.arx-meta-sections-wrapper.arx-has-navigation {
  min-height: 400px;
}

/* Navigation */
.arx-meta-navigation {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  width: 250px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  z-index: 1000;
  align-self: flex-start;
  transition: transform 0.3s ease;
}

.arx-meta-navigation.arx-nav-right {
  margin-left: auto;
}

.arx-meta-navigation.arx-nav-left {
  margin-right: auto;
}

.arx-nav-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--arx-recrutement-primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arx-nav-title {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}

/* Bouton de fermeture de la navigation */
.arx-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  height: 30px;
  width: 30px;
  background-color: var(--arx-recrutement-primary-color);
  background-image: url(../img/arx-close.svg);
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}

.arx-nav-close:hover {
  background-color: var(--arx-recrutement-secondary-color);
}

.arx-nav-close:active {
  transform: scale(0.9);
}

/* Closed state of navigation - Left position */
.arx-meta-navigation.arx-nav-collapsed-left {
  transform: translateY(-50%) translateX(calc(-100%));
}

/* Closed state of navigation - Right position */
.arx-meta-navigation.arx-nav-collapsed-right {
  transform: translateY(-50%) translateX(calc(100%));
}

/* Reopen button - Left position */
.arx-nav-reopen-left {
  position: fixed;
  top: 25%;
  left: 0;
  width: 50px;
  height: 50px;
  background-color: var(--arx-recrutement-primary-color);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  z-index: 1003;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background-image: url(../img/arx-info.svg);
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Reopen button - Right position */
.arx-nav-reopen-right {
  position: fixed;
  top: 25%;
  right: 0;
  width: 50px;
  height: 50px;
  background-color: var(--arx-recrutement-primary-color);
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 1003;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  background-image: url(../img/arx-info.svg);
  background-size: 20px 20px;
  background-position: center;
  background-repeat: no-repeat;
}

.arx-nav-reopen-left:hover {
  background-color: var(--arx-recrutement-secondary-color);
}

.arx-nav-reopen-left:active {
  transform: translateY(-50%) scale(0.95);
}

.arx-nav-reopen-right:hover {
  background-color: var(--arx-recrutement-secondary-color);
}

.arx-nav-reopen-right:active {
  transform: translateY(-50%) scale(0.95);
}

.arx-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.arx-nav-item {
  margin-bottom: 8px;
  list-style: none;
}

.arx-nav-link {
  display: block;
  padding: 4px 12px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.arx-nav-link:hover {
  background: #e9ecef;
  color: var(--arx-recrutement-primary-color);
  transform: translateX(3px);
}

.arx-nav-link:active {
  background: var(--arx-recrutement-primary-color);
  color: white;
}

.arx-nav-link.arx-nav-active {
  background: var(--arx-recrutement-primary-color);
  color: white;
  font-weight: 600;
}

/* Lien de candidature en bas de la navigation */
.arx-nav-candidature {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.arx-nav-candidature-link {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--arx-recrutement-primary-color);
}

.arx-nav-candidature-link:hover {
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.arx-nav-candidature-link:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(40, 167, 69, 0.3);
}

/* Contenu des sections */
.arx-meta-sections-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Structure pour le sticky */
.arx-meta-sections-wrapper.arx-has-navigation {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.arx-meta-sections-wrapper.arx-has-navigation .arx-meta-sections-content {
  flex: 1;
}

/* Style inline pour le menu */
.arx-meta-navigation.arx-nav-inline {
  position: static;
  width: 100%;
  margin-bottom: 20px;
  max-height: none;
  left: auto;
  right: auto;
  transform: none;
}

.arx-meta-sections-wrapper.arx-nav-inline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Style sticky pour le menu */
.arx-meta-navigation.arx-nav-sticky {
  position: sticky;
  top: 20px;
  left: auto;
  right: auto;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .arx-meta-sections-wrapper.arx-has-navigation {
    flex-direction: column;
    gap: 20px;
  }

  .arx-nav-title {
    font-size: 1em;
  }

  .arx-nav-link {
    padding: 6px 10px;
    font-size: 0.85em;
  }

  .arx-nav-candidature-link {
    padding: 10px 14px;
    font-size: 0.85em;
  }
}

/* ===== SCROLL MARGIN POUR LES SECTIONS ===== */

.arx-meta-section {
  scroll-margin-top: 100px; /* Offset for scroll */
}

/* ===== MENU MOBILE AVEC BOUTON TOGGLE ===== */

.arx-nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .arx-meta-navigation {
    position: fixed;
    bottom: -100vh; /* Hidden by default at bottom */
    top: auto;
    left: 5%;
    transform: none;
    width: 75%;
    max-height: calc(100vh - 10%);
    transition: bottom 0.3s ease;
    z-index: 1001;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }

  .arx-meta-navigation.arx-nav-open {
    bottom: 5%;
  }

  /* Toggle button next to menu */
  .arx-nav-toggle {
    position: fixed;
    bottom: 5%;
    right: 5%;
    width: 50px;
    height: 50px;
    background: var(--arx-recrutement-primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }

  .arx-nav-toggle::before {
    content: "";
    background-image: url(../img/arx-info.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
  }

  .arx-nav-toggle:hover {
    background: var(--arx-recrutement-secondary-color);
    transform: scale(1.1);
  }

  .arx-nav-toggle:active {
    transform: scale(0.95);
  }

  /* Ajuster le contenu principal */
  .arx-meta-sections-wrapper.arx-has-navigation {
    margin-left: 0;
  }

  .arx-meta-sections-content {
    margin-left: 0;
    width: 100%;
  }

  .arx-nav-reopen {
    display: none !important;
  }

  .arx-nav-close {
    display: none !important;
  }
}

/* ===== FAQ ACCORDION ===== */
.arx-recrutement-faq-wrapper {
  margin: 30px 0;
}

.arx-recrutement-faq-title {
  margin-bottom: 20px;
}

.arx-recrutement-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arx-recrutement-faq-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.arx-recrutement-faq-question {
  width: 100%;
  padding: 15px 20px;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
}

.arx-recrutement-faq-question:hover {
  background: #f5f5f5;
}

.arx-recrutement-faq-item.active .arx-recrutement-faq-question {
  background: var(--arx-recrutement-primary-color, #ffffff);
  color: #fff;
}

.arx-faq-question-text {
  flex: 1;
}

.arx-faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.arx-faq-icon::after {
  content: '+';
  font-size: 20px;
  line-height: 1;
}

.arx-recrutement-faq-item.active .arx-faq-icon::after {
  content: '−';
}

.arx-recrutement-faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px 0 20px;
  transition: max-height 0.3s linear, padding-bottom 0.3s linear;
}

.arx-recrutement-faq-item.active .arx-recrutement-faq-answer {
  max-height: 2000px;
  padding-bottom: 20px;
  border-top: 1px solid #ddd;
  transition: max-height 0.3s linear, padding-bottom 0.3s linear;
}

.arx-faq-answer-content {
  line-height: 1.6;
}

.arx-faq-answer-content p {
  margin: 0 0 10px 0;
}

.arx-faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* ===== GALLERY MASONRY ===== */
.arx-recrutement-gallery-wrapper {
  margin: 30px 0;
}

.arx-recrutement-gallery-masonry {
  position: relative;
}

.arx-masonry-columns-container {
  display: flex;
  flex-direction: row;
  gap: var(--gap, 10px);
  width: 100%;
}

.arx-recrutement-gallery-masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap, 10px);
}

.arx-recrutement-gallery-item {
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
}

.arx-recrutement-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.arx-gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.arx-recrutement-gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery more item with overlay */
.arx-gallery-more-item {
  position: relative;
}

.arx-gallery-more-link {
  position: relative;
  display: block;
}

.arx-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.arx-gallery-more-item:hover .arx-gallery-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.arx-gallery-overlay-content {
  text-align: center;
  padding: 20px;
}

.arx-gallery-overlay-text {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: block;
}

.arx-gallery-show-more {
  text-align: center;
  margin-top: 20px;
}

.arx-gallery-more-btn {
  padding: 12px 24px;
  background: var(--arx-recrutement-primary-color, #ffffff);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.arx-gallery-more-btn:hover {
  background: var(--arx-recrutement-secondary-color, #000000);
}

/* Lightbox */
.arx-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.arx-lightbox.active {
  display: flex;
}

.arx-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arx-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.arx-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.arx-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.arx-lightbox-close::before {
  content: '×';
  line-height: 1;
}

.arx-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.arx-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.arx-lightbox-prev {
  left: 20px;
}

.arx-lightbox-prev::before {
  content: '‹';
}

.arx-lightbox-next {
  right: 20px;
}

.arx-lightbox-next::before {
  content: '›';
}

.arx-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .arx-recrutement-gallery-masonry {
    --columns: 2;
  }
  
  .arx-masonry-columns-container {
    gap: 8px;
  }
  
  .arx-recrutement-gallery-masonry-column {
    gap: 8px;
  }

  .arx-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .arx-lightbox-prev {
    left: 10px;
  }

  .arx-lightbox-next {
    right: 10px;
  }

  .arx-lightbox-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

/* ===== SEARCH BAR ===== */
.arx-recrutement-search {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 12px;
}

.arx-recrutement-search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  border-radius: 10px;
}

.arx-recrutement-search-input img {
  width: 24px;
  height: 24px;
}

.arx-recrutement-search-input > div {
  flex: 1;
}

.arx-recrutement-search-form {
  margin: 0;
  width: 100%;
}

.arx-recrutement-search-field {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
}

.arx-recrutement-search-button {
  background: var(--arx-recrutement-primary-color);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 10px;
  cursor: pointer;
}

.arx-recrutement-search-button-mobile {
  display: none;
  cursor: pointer;
}

.arx-recrutement-search-button-mobile img {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .arx-recrutement-search {
    flex-direction: column;
  }

  .arx-recrutement-search-button {
    display: none;
  }

  .arx-recrutement-search-button-mobile {
    display: block;
  }
}
