/* ══════════════════════════════════════════════════════
   PATTERN — Carrières (hub + pages d'offres)
   Même charte que la page d'accueil : noir, crème, or.
   ══════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #ece4d4;
  --cream-soft: rgba(236,228,212,0.65);
  --noir: #0a0f1e;
  --gold: #c4a44a;
  --gold-soft: rgba(196,164,74,0.30);
  --gold-line: rgba(196,164,74,0.18);
  --text-muted: rgba(236,228,212,0.22);
  --text-soft: rgba(236,228,212,0.40);
  --text-mid: rgba(236,228,212,0.60);
  --text-body: rgba(236,228,212,0.78);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--noir);
  color: var(--cream);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--gold-soft); outline-offset: 4px; }

/* ── Page fade-in ── */
.page {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page.visible { opacity: 1; transform: translateY(0); }

/* ── Top bar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}
.brand {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: opacity 0.3s ease;
}
.brand .your {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 13px;
  color: var(--gold);
}
.brand .dot { color: var(--gold); }
.brand:hover { opacity: 0.8; }

.nav {
  display: flex;
  gap: 32px;
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav a {
  color: var(--text-soft);
  position: relative;
  transition: color 0.3s ease;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--gold-soft);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }
.nav a.current { color: var(--cream-soft); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* ── Sélecteur de langue FR / EN ── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lang-switch button {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 5px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--text-mid);
  cursor: pointer;
  transition: color 0.3s ease;
}
.lang-switch button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lang-switch button:hover { color: var(--cream); }
.lang-switch button.active { color: var(--gold); cursor: default; }
.lang-switch button.active::after { opacity: 1; }

/* ── Layout ── */
.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-wide { max-width: 1100px; }

/* ── Eyebrow / headings ── */
.eyebrow {
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

h1 {
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--cream);
}
h1 .gold { color: var(--gold); }
h1 em { font-style: italic; color: var(--cream-soft); }

.lead {
  margin-top: 26px;
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 620px;
}

h2 {
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--cream);
  margin: 64px 0 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
h2::before {
  content: '';
  width: 28px;
  height: 0;
  border-top: 1px solid var(--gold-soft);
  flex: none;
}

p {
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 18px;
}

ul.list {
  list-style: none;
  margin: 8px 0 18px;
}
ul.list li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 12px;
}
ul.list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 14px; height: 0;
  border-top: 1px solid var(--gold);   /* bordure : rendu net et identique sur chaque ligne */
}

/* ── Header of an offer ── */
.offer-head { padding: 40px 0 10px; }

.meta {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 32px;
  padding: 28px 0;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}
.meta dt {
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.meta dd {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--cream);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 15px 42px;
  border: 1px solid rgba(236,228,212,0.14);
  color: rgba(236,228,212,0.55);
  background: none;
  cursor: pointer;
  transition: color 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}
.btn:hover { color: var(--cream); border-color: var(--gold-soft); }
.btn-gold {
  border-color: rgba(196,164,74,0.55);
  color: var(--gold);
}
.btn-gold:hover { background: rgba(196,164,74,0.08); color: var(--cream); border-color: var(--gold); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}
.actions .mail {
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  transition: color 0.3s ease;
}
.actions .mail:hover { color: var(--cream); }

/* ── Body of an offer ── */
.offer-body { padding-bottom: 20px; }

/* Note affichée en mode EN : l'offre reste dans sa langue de publication */
.offer-lang-note {
  margin: 36px 0 0;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}
.offer-lang-note:empty { display: none; }

/* ── Closing CTA ── */
.closing {
  margin: 80px 0 0;
  padding: 56px 0 0;
  border-top: 1px solid var(--gold-line);
  text-align: center;
}
.closing .quote {
  font-style: italic;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.5;
  color: var(--cream-soft);
}
.closing .quote .gold { color: var(--gold); font-style: normal; }
.closing .actions { justify-content: center; }

/* ── Other offers ── */
.others {
  margin-top: 64px;
  text-align: center;
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.others a { color: var(--text-soft); margin: 0 10px; transition: color 0.3s ease; }
.others a:hover { color: var(--cream); }
.others a.current { color: var(--gold); }

/* ── Hub cards ── */
.cards {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border: 1px solid rgba(236,228,212,0.10);
  min-height: 300px;
  position: relative;
  transition: border-color 0.5s ease, transform 0.5s ease;
}
.card:hover { border-color: var(--gold-soft); transform: translateY(-3px); }
.card .country {
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.card .city {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 20px;
}
.card .role {
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-mid);
  flex: 1;
}
.card .tags {
  margin-top: 26px;
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.9;
}
.card .go {
  margin-top: 22px;
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.3s ease;
}
.card:hover .go { color: var(--gold); }

/* ── Footer ── */
footer {
  margin-top: auto;
  padding: 60px 40px 36px;
  text-align: center;
  font-family: 'Inter', Helvetica, sans-serif;
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
footer a { color: var(--text-soft); transition: color 0.3s ease; }
footer a:hover { color: var(--cream); }
footer .sep { margin: 0 12px; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .topbar { padding: 22px 20px; }
  .brand { font-size: 18px; }
  .brand .your { display: none; }
  .nav { gap: 18px; font-size: 10px; letter-spacing: 0.16em; }
  /* Mobile : logo + FR/EN sur la 1re ligne, navigation en dessous */
  .topbar { flex-wrap: wrap; row-gap: 16px; }
  .topbar-right { display: contents; }
  .lang-switch { order: 2; gap: 14px; font-size: 10px; letter-spacing: 0.16em; }
  .nav { order: 3; flex-basis: 100%; }
  .wrap { padding: 0 20px; }
  .offer-head { padding: 24px 0 0; }
  .meta { grid-template-columns: repeat(2, 1fr); gap: 20px 20px; }
  h2 { margin: 48px 0 18px; }
  .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 44px; }
  .card { min-height: 0; padding: 28px 24px; }
  .btn { padding: 14px 32px; width: 100%; text-align: center; }
  .actions { gap: 16px; }
  .actions .mail { width: 100%; text-align: center; }
  footer { padding: 48px 20px 28px; line-height: 2; }
}
