/* Vitrine des employeurs – Parallèle Alberta
   Palette tirée du logo : bleu #173F94, lime #A8C70D, turquoise #05AEA8 */
:root {
  --blue: #173F94;
  --blue-dark: #0F2C6B;
  --blue-soft: #EAF0FB;
  --lime: #A8C70D;
  --lime-soft: #F3F8DC;
  --teal: #05AEA8;
  --ink: #18213D;
  --muted: #5B6481;
  --line: #E2E6EF;
  --bg: #F5F7FB;
  --white: #fff;
  --danger: #B42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 72, .06), 0 8px 24px rgba(16, 32, 72, .06);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; padding-top: 48px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 46px; width: auto; }
.topbar__right { display: flex; align-items: center; gap: 16px; }
.topbar__event { display: none; font-size: 14px; color: var(--muted); }
.lang {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .01em;
  background: var(--white); border: 2px solid var(--blue); border-radius: 999px; padding: 5px 14px 5px 6px;
  box-shadow: 0 2px 8px rgba(23, 63, 148, .12); transition: background .15s ease, color .15s ease, transform .15s ease;
}
.lang:hover, .lang:focus-visible { background: var(--blue); color: var(--white); transform: translateY(-1px); }
.lang__flag { width: 30px; height: 20px; border-radius: 4px; overflow: hidden; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: 0 0 auto; }
.lang__flag svg { width: 100%; height: 100%; display: block; }
.lang__short { display: none; }
@media (max-width: 420px) { .lang__full { display: none; } .lang__short { display: inline; } }

/* ---------- En-tête de la vitrine ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue); color: var(--white);
  padding: 40px 0 112px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 180px; transform: skewX(-24deg); z-index: 1;
}
.hero::before { right: -90px; width: 140px; background: var(--lime); opacity: .9; }
.hero::after { right: 40px; background: var(--teal); opacity: .5; width: 40px; }
.hero__media { display: none; }
.hero__inner { position: relative; z-index: 1; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C9D6F2; }
.hero__title { font-size: clamp(40px, 9vw, 72px); font-weight: 700; margin: 10px 0 12px; text-transform: uppercase; }
.hero__title span { color: var(--lime); }
.hero__sub { max-width: 560px; font-size: 18px; color: #E3EAF9; }
.stats { display: flex; gap: 28px; margin: 28px 0 0; padding: 0; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-family: var(--font-head); font-size: 32px; font-weight: 700; line-height: 1; }
.stats dd { margin: 4px 0 0; font-size: 14px; color: #C9D6F2; }

/* ---------- À la une ---------- */
.featured { margin-top: -80px; position: relative; z-index: 2; }
.featured__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 18px;
  background: var(--blue-dark); color: var(--white);
  border-radius: 18px; padding: 24px 20px 28px; box-shadow: var(--shadow);
}
.flogo {
  width: 72px; height: 72px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--white);
  border: 2px solid rgba(255, 255, 255, .18);
}
.flogo--img { background: var(--white); padding: 8px; }
.flogo--img img { max-height: 100%; object-fit: contain; }
.featured__kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #B9C7EA; }
.featured__kicker span:first-child { color: var(--lime); font-weight: 700; margin-right: 6px; }
.featured__name { font-size: 26px; margin: 6px 0 8px; }
.featured__desc { color: #DCE4F7; max-width: 640px; }
.featured__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.tag--strong { background: var(--lime); color: var(--ink); font-weight: 600; }
.featured__nav { display: flex; align-items: center; gap: 10px; }
.featured__count { font-size: 13px; color: #B9C7EA; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
.iconbtn {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: var(--white);
}
.iconbtn:hover { background: rgba(255, 255, 255, .2); }
.featured__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .1); }
.featured__progress span { display: block; height: 100%; width: 0; background: var(--lime); }
.featured__card.is-fading .featured__body, .featured__card.is-fading .featured__media { opacity: 0; transform: translateY(4px); }
.featured__body, .featured__media { transition: opacity .3s ease, transform .3s ease; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: var(--white); border: 0; border-radius: 10px;
  padding: 12px 20px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--lime-soft); }
.btn--ghost { background: transparent; color: var(--blue); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--blue-soft); }
.btn--small { padding: 9px 14px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Mur des employeurs ---------- */
.wall { padding: 48px 16px 64px; }
.wall__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.wall__head h2 { font-size: 28px; }
.filters {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px;
  position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 10px 0;
}
.search {
  grid-column: 1 / -1; position: relative; display: flex; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; color: var(--muted);
}
.search:focus-within { border-color: var(--blue); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; padding: 13px 10px; color: var(--ink); }
.filters select {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px;
}
.chip {
  grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer;
}
.chip input { accent-color: var(--blue); width: 16px; height: 16px; }
.chip:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 600; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); }
.card a {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card a:hover { border-color: #C5D1EC; box-shadow: var(--shadow); transform: translateY(-2px); }
.logo {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 10px;
  display: grid; place-items: center; color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.logo--img { background: var(--white); border: 1px solid var(--line); padding: 5px; }
.logo--img img, .plogo--img img { width: 100%; height: 100%; object-fit: contain; }
.new {
  position: absolute; top: 14px; right: 12px; font-size: 11px; font-weight: 600;
  background: #FFF4D6; color: #8A5A00; border-radius: 999px; padding: 2px 8px;
}
.card__name { font-weight: 600; line-height: 1.3; }
.card__meta { font-size: 13px; color: var(--muted); }
.card__jobs { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--blue); }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.empty .btn { margin-top: 12px; }

/* ---------- Fiche employeur ---------- */
.phead { background: var(--white); border-bottom: 1px solid var(--line); padding: 18px 0 26px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; text-decoration: none; font-weight: 500; margin-bottom: 18px; }
.phead__main { display: flex; align-items: center; gap: 16px; }
.plogo {
  flex: 0 0 auto; width: 76px; height: 76px; border-radius: 16px;
  display: grid; place-items: center; color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 26px;
}
.plogo--img { background: var(--white); border: 1px solid var(--line); padding: 8px; }
.phead h1 { font-size: clamp(26px, 5vw, 36px); }
.phead__meta { color: var(--muted); margin-top: 4px; }
.phead__meta strong { color: var(--blue); }

.profile__grid { display: grid; gap: 16px; padding-top: 20px; padding-bottom: 56px; }
.profile__main, .profile__side { display: grid; gap: 16px; align-content: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.panel h2 { font-size: 20px; margin-bottom: 12px; }
.prose { color: #2D3555; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: #E8F7F6; color: #0A6E6A; }

/* Postes ouverts */
.jobs-panel__head { display: flex; align-items: center; gap: 10px; }
.jobs-panel__head h2 { margin: 0; }
.count {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--blue); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: 14px;
}
.jobs-panel__hint { font-size: 14px; margin: 6px 0 16px; }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.job details {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.job details::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lime);
  transform: scaleY(0); transform-origin: top; transition: transform .2s ease;
}
.job details:hover { border-color: #C5D1EC; box-shadow: 0 6px 18px rgba(16, 32, 72, .07); }
.job details[open] { border-color: #B9C6E4; box-shadow: 0 8px 24px rgba(16, 32, 72, .08); }
.job details[open]::before { transform: scaleY(1); }
.job summary {
  list-style: none; cursor: pointer; padding: 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
}
.job summary::-webkit-details-marker { display: none; }
.job__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.job details[open] .job__icon { background: var(--blue); color: var(--white); }
.job__main { display: grid; gap: 6px; min-width: 0; }
.job__title { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--ink); }
.job__facts { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.fact {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px; background: var(--bg); color: #3A4366; font-variant-numeric: tabular-nums;
}
.fact--noc { background: var(--lime-soft); color: #4F5F00; font-weight: 600; }
.fact--noc abbr { text-decoration: none; }
.fact--salary svg { color: var(--teal); }
.job__more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--blue); }
.job__more span { display: none; }
.chev { transition: transform .2s ease; }
details[open] .chev { transform: rotate(180deg); }
.job__body { padding: 0 16px 18px 74px; color: #2D3555; display: grid; gap: 14px; }
.job__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.job__noc-note { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .job summary { grid-template-columns: auto 1fr auto; align-items: start; }
  .job__more { align-self: center; }
  .job__icon { width: 38px; height: 38px; }
  .job__body { padding: 0 16px 18px; }
}
@media (min-width: 521px) { .job__more span { display: inline; } }

/* Texte mis en forme */
.rich { line-height: 1.6; }
.rich p { margin: 0 0 10px; }
.rich p:last-child, .rich ul:last-child, .rich ol:last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 22px; }
.rich li { margin: 3px 0; }
.rich li::marker { color: var(--teal); }
.rich strong { color: var(--ink); }

/* Téléphone avec indicatif */
.phone { display: grid; grid-template-columns: minmax(150px, 42%) 1fr; gap: 8px; }
.phone select, .field select { width: 100%; border: 1px solid #CDD3E1; border-radius: 10px; padding: 11px 10px; background: var(--white); font-weight: 400; }
.phone input { width: 100%; border: 1px solid #CDD3E1; border-radius: 10px; padding: 11px 12px; font-weight: 400; }
.phone input:focus, .phone select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(23, 63, 148, .12); }

.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.links a:hover { background: var(--blue-soft); }

.panel--cta { border-top: 4px solid var(--lime); scroll-margin-top: 80px; }
.form { display: grid; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 5px; font-size: 14px; font-weight: 500; }
.field em { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; border: 1px solid #CDD3E1; border-radius: 10px; padding: 11px 12px; background: var(--white); font-weight: 400;
}
.field input[type=file] { padding: 9px; font-size: 14px; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(23, 63, 148, .12); }
.consent { display: flex; gap: 10px; font-size: 13px; color: #2D3555; align-items: flex-start; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--blue); }
.fineprint { font-size: 12px; color: var(--muted); }
.alert { background: #FEF3F2; color: var(--danger); border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-size: 14px; }
.success { display: flex; gap: 12px; align-items: flex-start; }
.success p { font-weight: 500; }
.notice { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 36px 0 24px; font-size: 14px; }
.footer__grid { display: grid; gap: 28px; }
.footer__label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.footer__note { color: var(--muted); max-width: 420px; margin-bottom: 14px; }
.footer__contact a { text-decoration: none; }
.footer__logos { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px; }
.footer__logos img { height: 44px; width: auto; }
.footer__funded img { height: 40px; }
.footer__legal { color: var(--muted); font-size: 12px; margin-top: 28px; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 640px) {
  .filters { grid-template-columns: 1fr 1fr auto; align-items: center; }
  .chip { grid-column: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  .featured__card { grid-template-columns: auto 1fr; padding: 28px 28px 32px; gap: 24px; }
  .featured__nav { position: absolute; right: 24px; top: 24px; }
  .flogo { width: 96px; height: 96px; font-size: 32px; }
}
@media (min-width: 900px) {
  .filters { grid-template-columns: 1fr 200px 200px auto; }
  .search { grid-column: auto; }
  .topbar__event { display: inline; }
  .hero { padding: 64px 0 132px; }
  .hero__media {
    display: block; position: absolute; top: 0; bottom: 0; left: 54%; right: -20%;
    transform: skewX(-24deg); transform-origin: bottom left; overflow: hidden;
  }
  .hero__media picture { position: absolute; top: 0; bottom: 0; left: -22%; right: 14%; transform: skewX(24deg); transform-origin: bottom left; }
  .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 30%; display: block; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 44, 107, .45), rgba(15, 44, 107, 0) 40%); pointer-events: none; }
  .hero::before, .hero::after { top: 0; bottom: 0; right: auto; transform: skewX(-24deg); transform-origin: bottom left; opacity: 1; z-index: 2; }
  .hero::before { left: calc(54% - 30px); width: 22px; background: var(--lime); }
  .hero::after { left: calc(54% - 52px); width: 10px; background: var(--teal); }
  .hero__inner > * { max-width: 560px; }
  .profile__grid { grid-template-columns: 1fr 380px; align-items: start; gap: 20px; }
  .profile__side { position: sticky; top: 84px; display: grid; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr auto; align-items: end; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ---------- Écran d'ouverture ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200; background: var(--white); display: grid; place-items: center; overflow: hidden;
  animation: introOut .7s cubic-bezier(.7, 0, .2, 1) 2.55s forwards; cursor: pointer;
}
.no-intro .intro { display: none; }
.intro__content { position: relative; z-index: 1; text-align: center; padding: 24px; display: grid; justify-items: center; }
.intro__mark { position: relative; width: 120px; height: 96px; margin-bottom: 22px; }
.intro__p { position: absolute; bottom: 0; width: 42px; height: 82px; transform: skewX(-24deg); opacity: 0; mix-blend-mode: multiply; }
.intro__p--teal { left: 22px; background: var(--teal); animation: pIn .65s cubic-bezier(.2, .9, .3, 1.2) .15s forwards; }
.intro__p--lime { left: 52px; bottom: 14px; background: var(--lime); animation: pIn .65s cubic-bezier(.2, .9, .3, 1.2) .32s forwards; }
.intro__title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 8vw, 68px); line-height: 1; color: var(--blue); letter-spacing: -.01em; }
.intro__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.intro__title .w > span { display: inline-block; transform: translateY(110%); animation: wordUp .7s cubic-bezier(.2, .8, .2, 1) .6s forwards; }
.intro__title .w--accent > span { color: var(--lime); animation-delay: .8s; }
.intro__sub { margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fadeIn .6s ease 1.15s forwards; }
.intro__bar { margin-top: 22px; width: 180px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; opacity: 0; animation: fadeIn .3s ease .4s forwards; }
.intro__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--lime)); animation: barFill 1.6s cubic-bezier(.4, 0, .2, 1) .45s forwards; }
.intro__sweep {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: -30%; width: 160%; background: var(--blue);
  transform: translateX(-160%) skewX(-24deg); animation: sweep .75s cubic-bezier(.7, 0, .25, 1) 1.95s forwards;
}
.intro__sweep::before, .intro__sweep::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; }
.intro__sweep::before { width: 60px; background: var(--lime); }
.intro__sweep::after { width: 24px; left: calc(100% + 60px); background: var(--teal); }
@keyframes pIn { from { opacity: 0; transform: translateY(40px) skewX(-24deg); } to { opacity: 1; transform: translateY(0) skewX(-24deg); } }
@keyframes wordUp { to { transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes barFill { to { width: 100%; } }
@keyframes sweep { to { transform: translateX(0) skewX(-24deg); } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro.is-done { display: none; }

/* Entrée du contenu après l'ouverture */
.home .rv { opacity: 0; animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(3s + var(--d, 0s)); }
.no-intro .home .rv { animation-delay: calc(.05s + var(--d, 0s)); }
.home .grid .card { opacity: 0; animation: rise .6s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(3.5s + var(--i, 0) * 60ms); }
.no-intro .home .grid .card { animation-delay: calc(.5s + var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .home .rv, .home .grid .card { opacity: 1; animation: none; }
}
@media (max-width: 640px) {
  .hero::before { right: -60px; width: 70px; }
  .hero::after { right: 22px; width: 16px; }
  .hero { padding-bottom: 104px; }
  .hero__inner { padding-right: 36px; }
}

/* =========================================================
   Expérience mobile (la grande majorité des visiteurs scannent le code QR)
   ========================================================= */
html { -webkit-tap-highlight-color: transparent; }
.filters__toggle { display: none; }
.filters__more { display: contents; }
.results { font-size: 14px; color: var(--muted); margin: -8px 0 12px; }
.stickycta { display: none; }
.spin {
  width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { opacity: .9; cursor: progress; }

@media (max-width: 899px) {
  /* Champs à 16 px : pas de zoom automatique sur iPhone */
  .field input, .field select, .phone input, .phone select, .search input, .filters select { font-size: 16px; }
  .btn { min-height: 48px; }
  .btn--small { min-height: 44px; }

  /* Fiche : formulaire avant les liens, barre d'action fixe */
  .profile__side .panel--cta { order: 1; }
  .profile__side .panel--links { order: 2; }
  .profile main, body.profile { padding-bottom: 0; }
  .stickycta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(16, 32, 72, .08);
    transform: translateY(110%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  }
  .stickycta.is-visible { transform: none; }
  .stickycta__info { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; font-size: 14px; }
  .stickycta__info span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stickycta__logo { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
  .stickycta__logo--img { background: #fff; border: 1px solid var(--line); padding: 4px; }
  .stickycta__logo--img img { width: 100%; height: 100%; object-fit: contain; }
  .stickycta .btn { flex: 0 0 auto; padding: 12px 18px; }
  .profile .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 639px) {
  .topbar__inner { height: 58px; }
  .brand img { height: 38px; }
  .lang { padding: 4px 12px 4px 5px; }

  /* En-tête */
  .hero { padding: 28px 0 96px; }
  .kicker { font-size: 11px; }
  .hero__title { margin: 8px 0 10px; }
  .hero__sub { font-size: 16px; }
  .stats { gap: 22px; margin-top: 20px; }
  .stats dt { font-size: 28px; }
  .stats dd { font-size: 13px; }

  /* À la une */
  .featured { margin-top: -72px; padding: 0 12px; }
  .featured__card { padding: 18px 16px 22px; gap: 12px; border-radius: 16px; grid-template-columns: auto 1fr; align-items: center; }
  .featured__media { grid-row: 1; }
  .flogo { width: 56px; height: 56px; font-size: 20px; border-radius: 14px; }
  .featured__body { display: contents; }
  .featured__kicker { grid-column: 2; grid-row: 1; align-self: center; line-height: 1.5; }
  .featured__kicker span:first-child { display: block; }
  .featured__name { grid-column: 1 / -1; font-size: 22px; margin: 4px 0 0; }
  .featured__desc { grid-column: 1 / -1; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .featured__tags { grid-column: 1 / -1; margin: 2px 0 4px; }
  .featured__tags .tag:nth-child(n+4) { display: none; }
  .featured__card > .featured__body > .btn { grid-column: 1 / -1; }
  [data-f="url"] { grid-column: 1 / -1; width: 100%; }
  .featured__nav { grid-column: 1 / -1; justify-content: center; margin-top: 4px; }
  .iconbtn { width: 44px; height: 44px; }

  /* Recherche et filtres */
  .wall { padding: 36px 12px 56px; }
  .wall__head h2 { font-size: 24px; }
  .filters { grid-template-columns: 1fr auto; gap: 8px; top: 58px; padding: 10px 0; margin-bottom: 14px; }
  .search { grid-column: auto; }
  .search input { padding: 12px 8px; }
  .filters__toggle {
    display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px;
    background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--blue); cursor: pointer;
  }
  .filters__toggle[aria-expanded="true"] { border-color: var(--blue); background: var(--blue-soft); }
  .filters__count { min-width: 20px; height: 20px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
  .filters__count[hidden] { display: none; }
  .filters__more { display: none; grid-column: 1 / -1; gap: 8px; }
  .filters__more.is-open { display: grid; animation: drop .2s ease; }
  .filters__more select { min-height: 48px; }
  .chip { min-height: 44px; }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

  /* Liste des employeurs : une ligne par employeur, facile à toucher */
  .grid { grid-template-columns: 1fr; gap: 8px; }
  .card a {
    display: grid; grid-template-columns: 52px 1fr 18px; grid-template-areas: "logo name chev" "logo meta chev" "logo jobs chev";
    column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 14px 14px 14px; min-height: 84px;
  }
  .card a::after {
    content: ""; grid-area: chev; width: 9px; height: 9px; border-right: 2px solid #A3ADC6; border-top: 2px solid #A3ADC6; transform: rotate(45deg); justify-self: center;
  }
  .card a:active { background: var(--blue-soft); transform: scale(.99); }
  .card .logo { grid-area: logo; margin: 0; width: 52px; height: 52px; }
  .card__name { grid-area: name; align-self: end; font-size: 16px; }
  .card__meta { grid-area: meta; }
  .card__jobs { grid-area: jobs; padding-top: 2px; margin: 0; align-self: start; }
  .new { position: static; grid-area: jobs; justify-self: end; margin-right: 0; }

  /* Fiche employeur */
  .phead { padding: 12px 0 20px; }
  .back { margin-bottom: 14px; min-height: 36px; }
  .phead__main { gap: 14px; }
  .plogo { width: 62px; height: 62px; font-size: 22px; border-radius: 14px; }
  .phead h1 { font-size: 24px; }
  .phead__meta { font-size: 14px; }
  .profile__grid { padding: 14px 12px 40px; gap: 12px; }
  .panel { padding: 18px 16px; border-radius: 14px; }
  .job summary { padding: 14px; gap: 12px; min-height: 64px; }
  .job__title { font-size: 16px; }
  .job__cta .btn { width: 100%; }
  .badges { gap: 6px; }

  /* Pied de page */
  .footer { padding: 28px 0 20px; }
  .footer__logos { gap: 18px 22px; }
  .footer__logos img { height: 36px; }
  .footer__funded { width: 100%; }
}
@media (max-width: 359px) {
  .stats { gap: 14px; }
  .lang__flag { width: 26px; height: 18px; }
  .stickycta__info span:last-child { display: none; }
}

@media (max-width: 400px) {
  .filters__toggle > span:not(.filters__count) { display: none; }
  .filters__toggle { padding: 0 12px; }
}
