/* EIC Career Box — compact (4/ligne en col. 3/12). Média portrait limité en hauteur (9:16 visuel via cover). */

.eic-career-box {
  --eic-cb-navy: #001a41;
  --eic-cb-navy-dark: #001a41;
  --eic-cb-muted: #708090;
  --eic-cb-blue: #0066ee;
  --eic-cb-cta-bg: #f4f8fb;
  --eic-cb-hover-blue: #3b82f6;
  --eic-cb-radius: 6px;
  --eic-cb-shadow: 0 4px 14px rgba(0, 26, 65, 0.07);
  --eic-cb-media-max-h: min(16.5rem, 72cqw);

  box-sizing: border-box;
  container-type: inline-size;
  container-name: eic-career-box;
  max-width: 100%;
  width: 90;
  min-width: 0;
  margin: 0.35rem 3rem 0.35rem 0rem;
  padding: 5px;
  background: #fff;
  box-shadow: var(--eic-cb-shadow);
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.eic-career-box .eic-cb-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 15rem;
  max-height: var(--eic-cb-media-max-h);
  margin-inline: auto;
  background:rgb(255, 255, 255);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eic-career-box .eic-cb-img {
  width: 97%;
  height: 97%;
  object-fit: cover;
  display: block;
  margin: 5 auto;
}

.eic-career-box .eic-cb-body {
  padding: 2.5rem 2.3rem 2.5rem 2.3rem;
}

/* Spécificité > règles globales thème (h3 ~34px, padding-bottom, p 15px) */
article.eic-career-box h3.eic-cb-title {
  margin: 0 0 0.9rem;
  padding-bottom: 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--eic-cb-navy);
}

.eic-career-box .eic-cb-desc {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--eic-cb-muted);
  max-height: 5.5em;
  overflow: hidden;
}

article.eic-career-box .eic-cb-desc p {
  margin: 0 0 0.35em;
  font-size: inherit;
  line-height: inherit;
}

article.eic-career-box .eic-cb-desc p:last-child {
  margin-bottom: 0;
}

.eic-career-box .eic-cb-cta {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0 0 0.5rem 0;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(0, 26, 65, 0.06);
}

.eic-career-box .eic-cb-cta-label {
  flex: 1;
  display: flex;
  align-items: center;
  margin-left: 10px;
  padding: 0.4rem 0.5rem;
  font-size: clamp(0.92rem, 0.88rem + 0.5vw, 1rem);
  font-weight: 600;
  color: var(--eic-cb-navy);
  background: var(--eic-cb-cta-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.eic-career-box .eic-cb-cta-icon {
  flex: 0 0 34px;
  width: 34px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--eic-cb-blue);
  color: #fff;
  transition: background-color 0.25s ease;
}

.eic-career-box .eic-cb-arrow {
  width: 15px;
  height: 15px;
}

/* Hover : bandeau gauche bleu + texte blanc, carré droit marine, flèche blanche */
.eic-career-box .eic-cb-cta:hover .eic-cb-cta-label,
.eic-career-box .eic-cb-cta:focus-visible .eic-cb-cta-label {
  background: var(--eic-cb-hover-blue);
  color: #fff;
}

.eic-career-box .eic-cb-cta:hover .eic-cb-cta-icon,
.eic-career-box .eic-cb-cta:focus-visible .eic-cb-cta-icon {
  background: var(--eic-cb-navy-dark);
  color: #fff;
}

.eic-career-box .eic-cb-cta:focus-visible {
  outline: 2px solid var(--eic-cb-hover-blue);
  outline-offset: 2px;
}
