/* Job 301 — conseils emploi et carrière. Polices auto-hébergées, aucune ressource externe.
   Motif : la « fiche » — chaque article est une étiquette aux coins nets, le nom du site en Archivo large. */
@font-face { font-family: "Archivo"; src: url("archivo-latin-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("public-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --fond: #F4F6FA;
  --encre: #0F1F3A;
  --encre-douce: #4C5A73;
  --trait: #D8DEE9;
  --bleu: #2350E6;
  --menthe: #2FBF8F;
  --menthe-claire: #DDF6EC;
  --papier: #F4F6FA;
  --soleil: #2FBF8F;

  --titres: "Archivo", "Arial", system-ui, sans-serif;
  --texte: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mesure: 41rem;
  --large: 76rem;
  --marge: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 400 1.08rem/1.7 var(--texte); -webkit-font-smoothing: antialiased; }
img, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--menthe); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--titres); font-weight: 750; font-stretch: 100%; line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: -999px; top: 0; background: var(--encre); color: #fff; padding: 0.6rem 1rem; z-index: 10; }
.evitement:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- En-tête : bandeau bleu nuit, nom large, rubriques comme des onglets ---------- */
.entete { background: var(--encre); color: #fff; padding: clamp(1.1rem, 3vw, 1.8rem) var(--marge) 0; }
.entete-haut { max-width: var(--large); margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.marque { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; color: #fff; text-decoration: none; }
.marque:hover { color: #fff; }
.marque-nom { font-family: var(--titres); font-weight: 850; font-stretch: 125%; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 0.95; letter-spacing: -0.03em; }
.entete .marque-nom::after { content: ""; display: inline-block; width: 0.28em; height: 0.28em; margin-left: 0.08em; background: var(--menthe); vertical-align: baseline; }
.marque-baseline { font-size: 1rem; color: #C9D3E6; }
.rubriques { max-width: var(--large); margin: 1.1rem auto 0; }
.rubriques ul, .menu-mobile ul { list-style: none; margin: 0; padding: 0; }
.rubriques ul { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.rubriques a { display: inline-block; font-family: var(--titres); font-weight: 650; font-stretch: 110%; font-size: 0.98rem; color: #fff; text-decoration: none; padding: 0.65rem 1rem; border-radius: 6px 6px 0 0; }
.rubriques a:hover { background: rgba(255, 255, 255, 0.1); }
.rubriques a[aria-current] { background: var(--fond); color: var(--encre); }
.rubriques-plus a { color: var(--menthe); }
.menu-mobile { display: none; }
@media (max-width: 760px) {
  .rubriques { display: none; }
  .entete { padding-bottom: 1.1rem; }
  .marque-baseline { display: none; }
  .menu-mobile { display: block; position: relative; }
  .menu-mobile summary { font-family: var(--titres); font-weight: 700; cursor: pointer; list-style: none; padding: 0.55rem 1rem; background: var(--menthe); color: var(--encre); border-radius: 6px; }
  .menu-mobile summary::-webkit-details-marker { display: none; }
  .menu-mobile ul { position: absolute; right: 0; top: calc(100% + 0.5rem); background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--trait); padding: 0.4rem 1rem; min-width: 15rem; z-index: 5; }
  .menu-mobile li + li { border-top: 1px solid var(--trait); }
  .menu-mobile a { display: block; padding: 0.65rem 0; font-family: var(--titres); font-weight: 650; color: var(--encre); text-decoration: none; }
}

main { max-width: var(--large); margin: 0 auto; padding: clamp(1.75rem, 4vw, 3rem) var(--marge) 4.5rem; }

/* ---------- Cartes « fiche » ---------- */
.carte { display: flex; flex-direction: column; gap: 0.8rem; background: #fff; border-radius: 4px; padding: 1.3rem; box-shadow: 0 0 0 1px var(--trait); position: relative; }
.carte-image { order: -1; max-width: none; width: calc(100% + 2.6rem); margin: -1.3rem -1.3rem 0; aspect-ratio: 16 / 9; object-fit: cover; background: var(--trait); border-radius: 4px 4px 0 0; }
.carte-rubrique { align-self: flex-start; display: inline-block; font-family: var(--titres); font-weight: 650; font-stretch: 110%; font-size: 0.82rem; color: var(--encre); background: var(--menthe-claire); padding: 0.2rem 0.55rem; border-radius: 3px; text-decoration: none; margin-bottom: 0.45rem; }
.carte-titre { font-size: 1.28rem; }
.carte-titre a { color: var(--encre); text-decoration: none; }
.carte-titre a::after { content: ""; position: absolute; inset: 0; }                       /* toute la fiche est cliquable */
.carte-rubrique { position: relative; z-index: 1; }
.carte:hover { box-shadow: 0 0 0 2px var(--bleu); }
.carte-resume { margin: 0.45rem 0 0; color: var(--encre-douce); font-size: 0.98rem; line-height: 1.55; }
.carte-date { margin: 0.5rem 0 0; font-size: 0.86rem; color: var(--encre-douce); }
.liste { display: grid; gap: 1.3rem; }
@media (min-width: 680px) { .liste { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .liste { grid-template-columns: repeat(3, 1fr); } }
.liste-compacte { grid-template-columns: 1fr !important; gap: 0.7rem; }
.carte-compact { padding: 0.95rem 1.1rem; }
.carte-compact .carte-titre { font-size: 1.08rem; }

/* ---------- Accueil ---------- */
.accueil-une { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 980px) { .accueil-une { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2.5rem; } }
.carte-une { padding: 1.8rem; align-self: start; }
.carte-une .carte-image { width: calc(100% + 3.6rem); margin: -1.8rem -1.8rem 0; }
.carte-une .carte-titre { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; font-stretch: 105%; line-height: 1.05; }
.carte-une .carte-resume { font-size: 1.12rem; color: var(--encre); }
.accueil-suivants h2, .a-lire h2 { font-size: 1.3rem; font-stretch: 115%; margin-bottom: 0.9rem; }
.accueil-rubrique { padding-top: 2.5rem; }
.accueil-rubrique h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-stretch: 115%; margin-bottom: 1.2rem; padding-left: 0.8rem; border-left: 6px solid var(--menthe); }
.accueil-rubrique h2 a { color: var(--encre); text-decoration: none; }
.accueil-rubrique h2 a:hover { color: var(--bleu); }
.a-lire-tout { margin: 1rem 0 0; font-family: var(--titres); font-weight: 650; }

/* ---------- Listes ---------- */
.liste-entete { padding-bottom: 2rem; }
.liste-entete h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 850; font-stretch: 120%; letter-spacing: -0.03em; }
.liste-intro { margin: 0.4rem 0 0; color: var(--encre-douce); }
.sous-rubriques { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sous-rubriques a { display: inline-block; font-family: var(--titres); font-weight: 650; text-decoration: none; color: var(--encre); background: #fff; box-shadow: 0 0 0 1px var(--trait); border-radius: 4px; padding: 0.35rem 0.9rem; }
.sous-rubriques a:hover { box-shadow: 0 0 0 2px var(--bleu); }
.pagination ul { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; gap: 1.2rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.pagination a { font-family: var(--titres); font-weight: 700; color: #fff; background: var(--bleu); padding: 0.7rem 1.3rem; border-radius: 4px; text-decoration: none; }
.pagination a:hover { background: var(--encre); }
.pagination-etat { color: var(--encre-douce); }

/* ---------- Fil d'Ariane ---------- */
.ariane ol { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.92rem; color: var(--encre-douce); }
.ariane li + li::before { content: "/"; margin-right: 0.5rem; color: var(--trait); }
.ariane a { color: var(--encre-douce); }

/* ---------- Article ---------- */
.article { max-width: var(--mesure); margin: 0 auto; }
.article-entete h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; font-stretch: 105%; line-height: 1.07; }
.article-meta { font-size: 0.96rem; color: var(--encre-douce); margin: 1.1rem 0 0; }
.article-maj { display: block; }
.article-image { margin: 2rem 0 0; }
.article-image img { width: 100%; max-height: 30rem; object-fit: cover; border-radius: 4px; }
.article-corps { margin-top: 2rem; overflow-wrap: break-word; }
.article-corps > * { margin: 0 0 1.15em; }
.article-corps h2 { font-size: 1.75rem; font-stretch: 108%; margin: 1.9em 0 0.5em; }
.article-corps h3 { font-size: 1.35rem; margin: 1.6em 0 0.4em; }
.article-corps h4 { font-size: 1.15rem; margin: 1.4em 0 0.4em; }
.article-corps ul, .article-corps ol { padding-left: 1.4em; }
.article-corps li { margin-bottom: 0.45em; }
.article-corps li::marker { color: var(--bleu); font-weight: 700; }
.article-corps blockquote { margin: 2em 0; padding: 1rem 1.3rem; background: var(--menthe-claire); border-left: 5px solid var(--menthe); }
.article-corps figure { margin: 2em 0; }
.article-corps figcaption { font-size: 0.92rem; color: var(--encre-douce); margin-top: 0.5rem; }
.article-corps table { width: 100%; border-collapse: collapse; font-size: 0.98rem; display: block; overflow-x: auto; background: #fff; }
.article-corps th, .article-corps td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
.article-corps th { font-family: var(--titres); background: var(--encre); color: #fff; }
.article-corps hr { border: 0; border-top: 2px solid var(--trait); margin: 2.5em 0; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: var(--encre); }
.a-lire { max-width: var(--mesure); margin: 4rem auto 0; }

/* ---------- Pied ---------- */
.pied { background: var(--encre); color: #fff; padding: 3rem var(--marge); }
.pied-interieur { max-width: var(--large); margin: 0 auto; display: grid; gap: 1.3rem; }
.pied a { color: #fff; }
.pied a:hover { color: var(--menthe); }
.pied-marque { margin: 0; max-width: 34em; color: #C9D3E6; }
.pied-marque .marque-nom { font-size: 2rem; display: block; margin-bottom: 0.3rem; color: #fff; }
.pied-liens { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-family: var(--titres); font-weight: 650; }
.pied-contact { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .entete nav, .menu-mobile, .a-lire, .pied { display: none; } body { background: #fff; } }
