/* ==========================================================================
   Profilia - Section « Nos offres du moment » (carte B · Ticket de marque)

   Rendu par [profilia_offres]. Carte en .pf-job : .pf-card appartient deja
   au rail des secteurs (hero.css). Toutes les valeurs passent par des variables
   --pf-off-* declarees sur .pf-offers et alimentees par tokens.css.

   Arc de carte : exception documentee a la regle « un arc par page ». Il
   n'existe que dans la tete teal des cartes, jamais ailleurs dans la section.
   Le cyan de marque ne porte jamais de texte.
   ========================================================================== */

.pf-offers {
  --pf-off-teal: var(--teal-900);
  --pf-off-ink: var(--text-strong);
  --pf-off-ink-2: var(--ink-72);          /* secondaire sur blanc, ~6:1   */
  --pf-off-line: var(--ink-12);
  --pf-off-on-dark: #FFFFFF;
  --pf-off-on-dark-2: rgba(255, 255, 255, .72);
  --pf-off-chip-dark: rgba(255, 255, 255, .12);
  --pf-off-arc: rgba(15, 178, 198, .22);
  --pf-off-cyan-text: var(--cyan-700);   /* texte et liens cyan          */
  --pf-off-cyan-soft: var(--cyan-100);
  --pf-off-cyan-soft-text: var(--cyan-800);
  --pf-off-btn: var(--teal-800);
  --pf-off-btn-hover: var(--cyan-700);
  --pf-off-focus: rgba(15, 178, 198, .45);
  --pf-off-radius: var(--radius-xl);
  --pf-off-gap: 24px;

  position: relative;
  background: var(--paper);
  color: var(--pf-off-ink);
  padding: 72px 0 80px;
  overflow-x: clip;   /* les rangees qui debordent jusqu'au bord de l'ecran ne doivent jamais elargir la page */
}

.pf-offers__inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.pf-offers :where(a, button):focus-visible {
  outline: 3px solid var(--pf-off-focus);
  outline-offset: 2px;
}

/* --- En-tete --------------------------------------------------------------- */

/* En-tete centre, comme les autres sections de l'accueil : titre,
   sous-titre et lien forment un seul axe. */
.pf-offers__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--space-3); margin: 0 0 var(--space-7);
}
.pf-offers__head h2 {
  margin: 0 0 var(--space-2);
  font: var(--type-display); letter-spacing: var(--type-display-tracking);
  color: var(--pf-off-teal);
}
.pf-offers__head h2 strong { font-weight: inherit; }
.pf-offers__head p { margin: 0; font: var(--type-body-lg); color: var(--pf-off-ink-2); }

.pf-offers__tout {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding-bottom: 2px;
  font: 600 14.5px var(--font-sans); color: var(--pf-off-cyan-text);
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.pf-offers__tout::after {
  content: ""; width: 7px; height: 7px;
  border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor;
  transform: rotate(45deg);
}
.pf-offers__tout:hover { color: var(--pf-off-cyan-text); border-bottom-color: currentColor; }

/* --- Filtres --------------------------------------------------------------- */

.pf-offers__bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-6);
}
.pf-offers__bar[hidden] { display: none; }

.pf-offers__chips { display: flex; gap: 8px; }

.pf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--control-h-sm); padding: 0 14px;
  border: 1px solid var(--border-default); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--pf-off-ink);
  font: 500 13.5px var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.pf-chip span { font-weight: 400; color: var(--pf-off-ink-2); }
.pf-chip:hover { border-color: var(--pf-off-cyan-text); color: var(--pf-off-cyan-text); background: var(--paper); }
.pf-chip[aria-pressed="true"] {
  background: var(--pf-off-cyan-soft); color: var(--pf-off-cyan-soft-text); border-color: transparent;
}
.pf-chip[aria-pressed="true"] span { color: var(--pf-off-cyan-soft-text); }

.pf-switch {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--control-h-sm); padding: 0 4px;
  border: 0; background: none; color: var(--pf-off-ink);
  font: 500 13.5px var(--font-sans); cursor: pointer;
}
.pf-switch:hover { background: none; color: var(--pf-off-ink); }
.pf-switch__piste {
  position: relative; flex: none; width: 36px; height: 20px;
  border-radius: var(--radius-pill); background: var(--ink-22);
  transition: background var(--dur-fast) var(--ease-out);
}
.pf-switch__piste::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--paper);
  box-shadow: var(--shadow-pill);
  transition: transform var(--dur-fast) var(--ease-out);
}
.pf-switch[aria-checked="true"] .pf-switch__piste { background: var(--pf-off-cyan-text); }
.pf-switch[aria-checked="true"] .pf-switch__piste::after { transform: translateX(16px); }

.pf-offers__count { margin: 0; font: 400 13.5px var(--font-sans); color: var(--pf-off-ink-2); }

/* --- Grille ---------------------------------------------------------------- */

.pf-offers__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--pf-off-gap);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pf-offers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pf-offers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- Carte ----------------------------------------------------------------- */

.pf-job {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--paper);
  border: 1px solid var(--pf-off-line);
  border-radius: var(--pf-off-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out);
}
.pf-job[hidden] { display: none; }
.pf-job:hover { transform: translateY(-2px); }

.pf-job__top {
  position: relative; overflow: hidden;
  padding: 18px 20px 20px;
  background: var(--pf-off-teal); color: var(--pf-off-on-dark);
}
.pf-job__top::before {
  content: ""; position: absolute; top: -60px; right: -60px;
  width: 160px; height: 160px; box-sizing: border-box;
  border: 28px solid var(--pf-off-arc);
  border-right-color: transparent; border-bottom-color: transparent;
  border-radius: 50%; pointer-events: none;
}
.pf-job__top > * { position: relative; }

.pf-job__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin: 0 0 12px;
}
/* Etiquette : le secteur. Le type de contrat suit en texte. */
.pf-job__etiquette,
.pf-job__new {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--radius-pill); background: var(--pf-off-chip-dark);
  font: 600 11.5px var(--font-sans); color: var(--pf-off-on-dark);
}
.pf-job__new { color: var(--cyan-300); }
.pf-job__type { font: 500 12.5px var(--font-sans); color: var(--pf-off-on-dark-2); }

.pf-job__titre {
  margin: 0 0 12px;
  font: 600 18px/1.25 var(--font-sans); letter-spacing: -.02em;
  color: var(--pf-off-on-dark);
}
.pf-job__titre a { color: inherit; text-decoration: none; }
.pf-job__titre a:hover { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.pf-job__salaire { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.pf-job__montant { font: 600 24px/1.15 var(--font-sans); letter-spacing: -.02em; color: var(--pf-off-on-dark); }
.pf-job__unite { font: 400 12.5px var(--font-sans); color: var(--pf-off-on-dark-2); }

.pf-job__populaire {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 20px;
  background: var(--pf-off-cyan-soft); color: var(--pf-off-cyan-soft-text);
  font: 600 12px var(--font-sans);
}
.pf-job__populaire::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-500);
}

.pf-job__infos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin: 0; padding: 16px 20px;
}
.pf-job__infos dt { margin: 0; font: 400 11.5px/1.4 var(--font-sans); color: var(--pf-off-ink-2); }
.pf-job__infos dd { margin: 2px 0 0; font: 500 13px/1.35 var(--font-sans); color: var(--pf-off-ink); }

.pf-job__pied {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--pf-off-line);
}
.pf-job__agence { min-width: 0; font: 400 12.5px var(--font-sans); color: var(--pf-off-ink-2); }
.pf-job__postuler {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 38px; padding: 0 18px; border-radius: var(--radius-pill);
  background: var(--pf-off-btn); color: #fff; text-decoration: none;
  font: 600 13px var(--font-sans);
  transition: background var(--dur-fast) var(--ease-out);
}
.pf-job__postuler:hover { background: var(--pf-off-btn-hover); color: #fff; }

/* --- Etat vide ------------------------------------------------------------- */

.pf-offers__vide {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  padding: 36px 20px; text-align: center;
  background: var(--sand-100); border-radius: var(--radius-lg);
}
.pf-offers__vide[hidden] { display: none; }
.pf-offers__vide p { margin: 0; font: var(--type-body-lg); color: var(--pf-off-ink-2); }
.pf-offers__reset {
  min-height: var(--control-h-md); padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--pf-off-ink);
  font: 500 13.5px var(--font-sans); cursor: pointer;
}
.pf-offers__reset:hover { background: var(--paper); border-color: var(--pf-off-cyan-text); color: var(--pf-off-cyan-text); }

/* --- Bloc « Pas encore la bonne mission ? » ------------------------------- */

.pf-offers__alerte {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  margin: 40px 0 0; padding: 28px 32px;
  background: var(--sand-200); border-radius: var(--radius-xl);
}
.pf-offers__alerte h3 { margin: 0 0 4px; font: var(--type-title); letter-spacing: -.02em; color: var(--pf-off-ink); }
.pf-offers__alerte p { margin: 0; font: var(--type-body-lg); color: var(--pf-off-ink-2); }
.pf-offers__alerte-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  background: var(--pf-off-btn); color: #fff; text-decoration: none;
  font: 600 15px var(--font-sans);
  transition: background var(--dur-fast) var(--ease-out);
}
.pf-offers__alerte-btn:hover { background: var(--pf-off-btn-hover); color: #fff; }

/* --- CTA final : seul bouton cyan plein de la section ---------------------- */

.pf-offers__cta { display: flex; justify-content: center; margin: 40px 0 0; }
.pf-offers__cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--control-h-lg); padding: 0 32px;
  border-radius: var(--radius-pill);          /* pilule, comme les boutons des Engagements */
  background: var(--cyan-700); color: #fff;  /* 4,9:1 texte ; fond vs blanc de section 4,9:1 */
  text-decoration: none; font: 600 15.5px var(--font-sans); letter-spacing: -.01em;
  transition: background var(--dur-fast) var(--ease-out);
}
.pf-offers__cta-btn:hover { background: var(--cyan-800); color: #fff; }
.pf-offers__cta-btn:active { background: var(--teal-800); color: #fff; }
/* Anneau plein : le cyan translucide de la section serait trop pale sur blanc. */
.pf-offers .pf-offers__cta-btn:focus-visible { outline: 3px solid var(--cyan-700); outline-offset: 3px; }
/* --- Mobile ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .pf-offers { padding: 48px 0 56px; }
  .pf-offers__head { margin-bottom: var(--space-6); }
  .pf-offers__bar { flex-direction: column; align-items: stretch; }
  .pf-offers__chips {
    overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
    scrollbar-width: none;
  }
  .pf-offers__chips::-webkit-scrollbar { display: none; }
  .pf-chip { min-height: var(--tap-min); }
  .pf-switch { min-height: var(--tap-min); align-self: center; }
  .pf-offers__count { margin: 0; text-align: center; }
  .pf-job__postuler { height: var(--tap-min); padding: 0 20px; }
  .pf-offers__alerte { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .pf-offers__alerte-btn { width: 100%; }
  .pf-offers__cta-btn { width: 100%; }
}

/* --- Carte de sortie (tous ecrans) et points (mobile seulement) ---------- */

.pf-offers__dots { display: none; }

/* --- Carrousel mobile ------------------------------------------------------
   Defilement natif avec aimantation : fluidite et inertie du telephone,
   aucun script requis pour balayer. La carte suivante depasse de ~15 %
   pour signaler la suite. Le rail deborde jusqu'aux bords de l'ecran,
   comme les rangees de pastilles. offres.js ajoute les points, l'amorce
   et la semantique de carrousel. */
@media (max-width: 767px) {
  .pf-offers__grid {
    display: flex; gap: 12px;
    grid-template-columns: none;
    margin-inline: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 16px;          /* air pour l'ombre des cartes */
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;          /* pas de retour arriere accidentel */
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pf-offers__grid::-webkit-scrollbar { display: none; }
  .pf-offers__grid:focus-visible { outline: 3px solid var(--pf-off-focus); outline-offset: -3px; border-radius: var(--radius-lg); }

  .pf-offers__grid > li {
    flex: 0 0 84%; max-width: 340px;
    scroll-snap-align: start;
    scroll-snap-stop: always;   /* une carte par balayage, meme rapide : aucune offre sautee */
  }
  .pf-job:hover { transform: none; }

}

/* Carte de sortie : le carrousel finit par une action, pas une impasse.
   Tous ecrans depuis le 14/10/2026. */
  .pf-job-sortie { display: flex; }
  .pf-job-sortie a {
    position: relative; flex: 1;
    display: flex; align-items: flex-end;
    min-height: 220px; padding: 24px 22px;
    border-radius: var(--pf-off-radius);
    background: var(--pf-off-teal); color: var(--pf-off-on-dark);
    font: 600 20px/1.25 var(--font-sans); letter-spacing: -.02em;
    text-decoration: none;
  }
  .pf-job-sortie a::after {
    content: ""; position: absolute; top: 24px; right: 24px;
    width: 12px; height: 12px;
    border-top: 2px solid var(--cyan-300); border-right: 2px solid var(--cyan-300);
    transform: rotate(45deg);
  }
  .pf-job-sortie a:hover { background: var(--teal-800); color: var(--pf-off-on-dark); }

  /* Variante avec personne detouree : le texte en haut, la personne ancree
     en bas, devant les arcs du logo (meme signature que la banniere de
     candidature). Couleurs du SVG en dur : #0FB2C6 = --cyan-500,
     #DCF3F6 = --cyan-100. */
  .pf-job-sortie--photo a {
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 24px 22px 0; overflow: hidden;
    background:
      no-repeat center bottom / 96% auto url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 260'%3E%3Cpath d='M150 38A112 112 0 0 1 262 150' fill='none' stroke='%230FB2C6' stroke-width='30'/%3E%3Cpath d='M38 150A112 112 0 0 0 150 262' fill='none' stroke='%230FB2C6' stroke-width='30'/%3E%3Ccircle cx='58' cy='66' r='15' fill='%23DCF3F6'/%3E%3C/svg%3E"),
      var(--pf-off-teal);
  }
  .pf-job-sortie--photo a:hover {
    background:
      no-repeat center bottom / 96% auto url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 260'%3E%3Cpath d='M150 38A112 112 0 0 1 262 150' fill='none' stroke='%230FB2C6' stroke-width='30'/%3E%3Cpath d='M38 150A112 112 0 0 0 150 262' fill='none' stroke='%230FB2C6' stroke-width='30'/%3E%3Ccircle cx='58' cy='66' r='15' fill='%23DCF3F6'/%3E%3C/svg%3E"),
      var(--teal-800);
  }
  .pf-job-sortie--photo a > span { max-width: 11ch; }
  .pf-job-sortie__img {
    display: block; margin: auto -22px 0;     /* poussee en bas, pleine largeur de carte */
    width: calc(100% + 44px); max-width: none; height: auto;
  }

@media (max-width: 767px) {
  /* Points : un par carte, l'actif s'allonge en pilule. Zone de tap 44 px. */
  .pf-offers__dots { display: flex; justify-content: center; margin: 4px 0 0; }
  .pf-offers__dots[hidden] { display: none; }
  .pf-offers__dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: var(--tap-min); padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .pf-offers__dot::before {
    content: ""; width: 8px; height: 8px; border-radius: var(--radius-pill);
    background: var(--ink-22);
    transition: width var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  }
  .pf-offers__dot[aria-current="true"]::before { width: 20px; background: var(--pf-off-cyan-text); }
  .pf-offers__dot:hover { background: none; }
}

@media (hover: none) {
  .pf-job:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-job, .pf-job:hover { transition: none; transform: none; }
  .pf-offers__grid { scroll-behavior: auto; }
  .pf-offers__dot::before { transition: none; }
}

/* Bandeau d'apercu preproduction, visible des administrateurs seulement. */
.pf-offers__apercu {
  margin: 0 0 var(--space-5); padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--warning-soft); color: var(--text-strong); font: 500 13px var(--font-sans);
}

/* --- Carrousel tablette et ordinateur (14/10/2026) -------------------------
   Meme rail que sur mobile : defilement natif avec aimantation, sans
   bibliotheque. 2 cartes en tablette, 3 sur ordinateur, alignees sur la
   marge gauche ; la rangee deborde jusqu'au bord droit de l'ecran pour
   laisser voir la carte suivante (.pf-offers coupe le debordement : la page
   ne s'elargit jamais). Largeur des cartes en unites de conteneur (cqw) :
   relative a la largeur de contenu, pas a la rangee qui deborde.
   offres.js ajoute les fleches et la barre de progression. */
@media (min-width: 768px) {
  /* La carte suivante depasse toujours d'au moins --pf-off-peek dans la
     largeur de contenu, meme quand l'ecran n'a pas de marge a droite. */
  .pf-offers { --pf-off-peek: 48px; }
  .pf-offers__inner { container-type: inline-size; }
  .pf-offers__grid {
    display: flex; gap: var(--pf-off-gap);
    grid-template-columns: none;
    /* Rangee pleine largeur d'ecran, cartes calees sur la marge du titre. */
    /* Marge d'ecran en unites de conteneur : un pourcentage de scroll-padding
       se rapporterait a la rangee elle-meme, pas a la largeur de contenu. */
    --pf-off-marge: calc((100vw - 100cqw) / 2);
    margin-inline: calc(-1 * var(--pf-off-marge));
    padding: 8px var(--pf-off-marge) 22px;   /* air pour le survol et l'ombre */
    scroll-padding-inline: var(--pf-off-marge);
    /* Fondu des bords, comme le rail des secteurs (hero.css) : il tient dans
       la marge de l'ecran, la premiere carte reste nette au repos. */
    --fondu: clamp(24px, calc((100vw - 100cqw) / 2), 60px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fondu), #000 calc(100% - var(--fondu)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fondu), #000 calc(100% - var(--fondu)), transparent 100%);
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pf-offers__grid::-webkit-scrollbar { display: none; }
  .pf-offers__grid:focus-visible { outline: 3px solid var(--pf-off-focus); outline-offset: -3px; border-radius: var(--radius-lg); }
  .pf-offers__grid > li {
    flex: 0 0 calc((100cqw - 2 * var(--pf-off-gap) - var(--pf-off-peek)) / 2);
    scroll-snap-align: start;
  }

  /* Fleches : a droite de la barre de filtres. Attenuees en bout de course,
     jamais desactivees (elles restent atteignables au clavier). */
  .pf-offers__nav { display: inline-flex; gap: 8px; margin-left: auto; }
  .pf-offers__nav[hidden] { display: none; }
  .pf-offers__fleche {
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--tap-min); height: var(--tap-min); padding: 0;
    border: 1px solid var(--border-strong); border-radius: 50%;
    background: var(--paper); color: var(--pf-off-ink); cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  }
  .pf-offers__fleche svg { width: 18px; height: 18px; }
  .pf-offers__fleche:hover { border-color: var(--pf-off-cyan-text); color: var(--pf-off-cyan-text); background: var(--paper); }
  .pf-offers__fleche[aria-disabled="true"] { opacity: .35; cursor: default; }
  .pf-offers__fleche[aria-disabled="true"]:hover { border-color: var(--border-strong); color: var(--pf-off-ink); }

  /* Barre de progression : position et longueur du carrousel. */
  .pf-offers__progress {
    position: relative; height: 3px; margin: 2px 0 0; overflow: hidden;
    border-radius: var(--radius-pill); background: var(--ink-12);
  }
  .pf-offers__progress[hidden] { display: none; }
  .pf-offers__progress span {
    position: absolute; top: 0; bottom: 0; left: 0; width: 33%;
    border-radius: inherit; background: var(--pf-off-cyan-text);
  }
}
@media (min-width: 1024px) {
  .pf-offers__grid > li { flex-basis: calc((100cqw - 3 * var(--pf-off-gap) - var(--pf-off-peek)) / 3); }
  /* Le lien de l'en-tete et la carte de sortie suffisent : pas de second bouton. */
  .pf-offers__cta { display: none; }
}
.pf-offers__nav,
.pf-offers__progress { display: none; }
@media (min-width: 768px) {
  .pf-offers__nav:not([hidden]) { display: inline-flex; }
  .pf-offers__progress:not([hidden]) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-offers__fleche { transition: none; }
}

/* Mobile : meme fondu, sur la largeur de la goutiere. */
@media (max-width: 767px) {
  .pf-offers__grid {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  }
}

/* Pages agences : agence.css remet a zero les marges et retraits des listes
   de .pf-agp ; la rangee du carrousel garde les siens (specificite 0,2,0). */
@media (min-width: 768px) {
  .pf-offers .pf-offers__grid { margin-inline: calc(-1 * var(--pf-off-marge)); padding: 8px var(--pf-off-marge) 22px; }
}
@media (max-width: 767px) {
  .pf-offers .pf-offers__grid { margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 16px; }
}

/* Accueil : sans filtres ni compteur au-dessus du carrousel, la barre de recherche du hero suffit.
   En ordinateur, seules les flèches restent, à droite. Pages agences inchangées. */
.home .pf-offers__chips, .home .pf-offers__bar .pf-switch, .home .pf-offers__count { display: none !important; }
@media (max-width: 767px) {
  .home .pf-offers__bar { display: none !important; }
}

/* --- Carte cliquable sur toute sa surface (15/10) --------------------------
   Le lien du titre s'étend à toute la carte (::after) ; « Postuler » reste
   un lien distinct, au-dessus. Le bandeau n'est plus positionné : la zone
   cliquable couvre toute la carte, l'arc décoratif est calé sur la carte. */
.pf-job { position: relative; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.pf-job__top { position: static; min-height: 100px; }
/* Le titre n'est pas positionné (sinon la zone cliquable s'arrêterait au titre) ; son texte l'est, pour rester au-dessus de l'arc. */
.pf-job__top > .pf-job__titre { position: static; }
.pf-job__titre-txt { position: relative; }
.pf-job__titre a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pf-job__postuler { position: relative; z-index: 2; }
.pf-job:hover { border-color: var(--pf-off-btn); box-shadow: 0 12px 28px rgba(13, 43, 48, .14); }
.pf-job:hover .pf-job__titre a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* Clavier : le contour entoure toute la carte quand le titre a le focus. */
@supports selector(:has(*)) {
  .pf-job:has(.pf-job__titre a:focus-visible) { outline: 3px solid var(--cyan-500, #0FB2C6); outline-offset: 3px; }
  .pf-job__titre a:focus-visible { outline: none; box-shadow: none; }
}
@media (hover: none) {
  .pf-job:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--pf-off-line); }
  .pf-job:hover .pf-job__titre a { text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-job:hover { transform: none; }
}
