:root {
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --primary: #000091;
    --primary-600: #000091;
    --primary-700: #000091;
    --chip: #c9302c;
    --chip-ink: #fff;
    --card: #ffffff;
    --card-hover: #f8fafc;
    --focus: #94a3b8;
}

/* Conteneur principal */
.offres-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 0;
}

.offres-container .page-title {
    font-size: clamp(24px, 2.5vw + 1rem, 34px);
    line-height: 1.2;
    margin: 0 0 8px;
    font-weight: 700
}

.offres-container .page-desc {
    margin: 0 0 24px;
    color: var(--muted)
}

.text-mobile {
    display: none;
}

/* Tabs */
.offres-container .tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none
}

.offres-container .tabs::-webkit-scrollbar {
    display: none
}

.offres-container .tab {
    appearance: none;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    background: #ecf2ff;
    color: #1e3a8a;
    transition: .2s ease;
    font-size: 14px
}

.offres-container .tab[aria-selected="true"] {
    background: var(--primary);
    color: #fff
}

.offres-container .tab:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px
}

/* Cards */
.offres-container .card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    background: var(--card);
    transition: background .2s ease, box-shadow .2s ease, transform .02s ease;
}

.offres-container .card:hover {
    background: var(--card-hover)
}

.offres-container .card+.spacer {
    height: 24px
}

.offres-container .card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between
}

.offres-container .card__title {
    font-size: 22px;
    margin: 0;
    font-weight: 800;
}

.offres-container .card__info {
    display: flex;
    justify-content: space-between;
    max-width: 25rem;
    width: 100%;
    align-items: center;
}


.offres-container .chip {
    background: var(--chip);
    color: var(--chip-ink);
    font-weight: 700;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    height: 2rem;
    text-align: center;
}

.offres-container .card__cta {
    display: flex;
    gap: 12px;
    align-items: center
}

.offres-container .ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--primary-700);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.offres-container .ghost-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc
}

.offres-container .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    border: 0;
    font-size: 14px;
    font-weight: 800;
    background: var(--primary-600);
    color: #fff;
    text-decoration: none;
}

.offres-container .primary-btn:hover {
    background: var(--primary-700)
}

.offres-container .primary-btn .arrow {
    width: 16px;
    height: 16px
}

.offres-container .card__desc {
    margin: 12px 0 10px;
    color: var(--muted)
}

.offres-container .card__type_candidat {
    color: var(--chip) !important;
}
/* Meta */
.offres-container .meta {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px
}

.offres-container .meta__item {
    display: flex;
    align-items: center;
    gap: 8px
}

.offres-container .icon {
    width: 18px;
    height: 18px;
    display: inline-block
}

/* Helpers */
.offres-container .stack {
    display: flex;
    flex-direction: column
}

/* Responsive */
@media (max-width:900px) {
    .offres-container {
        padding: 24px 16px 64px
    }

    .offres-container .card {
        padding: 16px
    }

    .offres-container .card__head {
        gap: 10px
    }
}

@media (max-width:700px) {
    .offres-container .card__head {
        flex-direction: column;
        align-items: flex-start
    }

    .offres-container .card__cta {
        width: 100%
    }

    .offres-container .card__cta a,
    .offres-container .card__cta button {
        width: 100%;
        justify-content: center
    }

    .offres-container .meta {
        gap: 16px
    }
}

@media (max-width:520px) {
    .offres-container .card {
        padding: 14px
    }

    .offres-container .card__title {
        font-size: 20px
    }

    .offres-container .ghost-btn,
    .offres-container .primary-btn {
        width: 100%;
        padding: 12px 14px;
        font-size: 15px
    }

    .offres-container .tabs {
        gap: 8px;
        padding-bottom: 6px
    }
}

/* Overlay pour rendre la page non-cliquable */

/* Popup principal */
.popup {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  border-left: 5px solid #e74c3c;
}

.popup.show {
  right: 0;
}

/* Contenu du popup */
.popup-content {
  padding: 30px;
  position: relative;
}

/* Bouton de fermeture */
.popup-close {
  position: absolute;
  top: 30px;      /* distance depuis le haut du popup */
  left: 30px;     /* à gauche */
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  font-size: 500px;
  line-height: 1;
  cursor: pointer;
  color: #132A67;
}

.popup-close:hover {
  color: white;
}

/* Titre du popup en dessous du bouton fermer */
#popup-title {
  display: block;
  text-align: center; /* centre horizontalement */
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-top: 80px;   /* espace entre le haut du popup (ou bouton) et le titre */
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}



/* Responsive */
@media (max-width: 768px) {
  .popup {
    width: 100%;
    right: -100%;
  }
}