/* Pages famille de /metiers-davenir (body.gen-famille).
   Reprend le gabarit de la famille sécurité, cloud et réseau.
   Header, fil d'Ariane, bandeau, encarts de fin de page et partage : voir pied.css (commun au site). */

body.gen-famille #header,
body.gen-famille.scrolled #header { position: fixed !important; top: 0; left: 0; right: 0; height: auto !important; max-height: none !important; overflow: visible !important; }
body.gen-famille #header:after { display: none !important; }
#breadcrumb .sr-fil .breadcrumb-item { white-space: nowrap; }

/* Chiffres (France Travail, Apec) */
body.gen-famille .sr-chiffres { margin: 8px auto 28px; color: #011547; }
body.gen-famille .sr-chiffres h2,
body.gen-famille .sr-faq h2 { margin: 28px 0 16px; font-family: oxygenB, Arial, Verdana, sans-serif; font-size: 20px; line-height: 28px; font-weight: 500; color: #011547; }
body.gen-famille .sr-chiffres h2::after,
body.gen-famille .sr-faq h2::after { content: ""; display: block; width: 20px; height: 5px; margin-top: 8px; background: #00f3a7; }
body.gen-famille .sr-kicker, body.gen-famille .sr-source, body.gen-famille .sr-note { font-family: oxygenR, Arial, Verdana, sans-serif; font-size: 13px; line-height: 1.5; color: #5c6b8a; }
body.gen-famille .sr-source a { color: #011547; }
body.gen-famille .sr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 4px; }
body.gen-famille .sr-card { background: #f4f7fb; border-radius: 12px; padding: 16px; }
body.gen-famille .sr-num { margin: 0; font-family: volteSB, oxygenR, sans-serif; font-size: 32px; line-height: 1.1; font-weight: 500; color: #011547; }
body.gen-famille .sr-label { margin: 6px 0 0; font-family: oxygenR, Arial, Verdana, sans-serif; font-size: 16px; line-height: 24px; color: #011547; }
body.gen-famille .sr-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: oxygenR, Arial, Verdana, sans-serif; font-size: 16px; line-height: 24px; }
body.gen-famille .sr-table th { font-size: 13px; font-weight: 600; color: #5c6b8a; text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid #e2e8f0; }
body.gen-famille .sr-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid #e2e8f0; vertical-align: top; color: #011547; }

body.gen-famille .sr-lignes { margin-top: 4px; }
body.gen-famille .sr-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: start; padding: 16px 0 20px; border-bottom: 1px solid #e2e8f0; }
body.gen-famille .sr-ligne-nom { margin: 0; font-family: oxygenR, Arial, Verdana, sans-serif !important; font-size: 16px !important; line-height: 24px !important; font-weight: 600; color: #011547; }
body.gen-famille .sr-ligne-meta { margin: 2px 0 0; font-family: oxygenR, Arial, Verdana, sans-serif !important; font-size: 13px !important; line-height: 18px !important; color: #5c6b8a; }
body.gen-famille .sr-ligne-kpi { margin: 0; font-family: oxygenR, Arial, Verdana, sans-serif !important; font-size: 13px !important; line-height: 18px !important; color: #5c6b8a; text-align: right; }
body.gen-famille .sr-ligne-kpi span { display: block; font-family: volteSB, oxygenR, sans-serif !important; font-size: 22px !important; line-height: 26px !important; font-weight: 500; color: #011547; }
body.gen-famille .sr-echelle { position: relative; grid-column: 1 / -1; height: 36px; margin-top: 10px; }
body.gen-famille .sr-echelle .sr-track { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: #e7eef6; border-radius: 99px; }
body.gen-famille .sr-echelle .sr-track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: #011547; }
body.gen-famille .sr-echelle .sr-med { position: absolute; top: -3px; width: 3px; height: 16px; margin-left: -1px; border-radius: 2px; background: #00f3a7; }
body.gen-famille .sr-montant { position: absolute; top: 16px; font-family: oxygenR, Arial, Verdana, sans-serif !important; font-size: 13px !important; line-height: 18px !important; color: #011547; white-space: nowrap; }
body.gen-famille .sr-montant.deb { transform: translateX(0); }
body.gen-famille .sr-montant.fin { transform: translateX(-100%); }

/* FAQ en accordéon */
body.gen-famille .sr-faq { margin: 8px 0 12px; }
body.gen-famille .sr-acc { border-top: 1px solid #e2e8f0; }
body.gen-famille .sr-acc h3 { margin: 0; }
body.gen-famille .sr-acc button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 14px 0; border: 0; border-radius: 0; background: transparent; color: #011547; font-family: oxygenR, Arial, Verdana, sans-serif; font-size: 16px; font-weight: 600; line-height: 24px; text-align: left; cursor: pointer; }
body.gen-famille .sr-acc button svg { flex: none; width: 18px; height: 18px; color: #00f3a7; transition: transform .2s ease; }
body.gen-famille .sr-acc button[aria-expanded="true"] svg { transform: rotate(180deg); }
body.gen-famille .sr-acc-panel { padding: 0 28px 14px 0; }
body.gen-famille .sr-acc-panel p { margin: 0; font-family: oxygenR, Arial, Verdana, sans-serif; font-size: 16px; line-height: 24px; color: #011547; }

/* Fiches métiers */
body.gen-famille .scr-fiches { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
body.gen-famille .scr-fiches .colonnes12,
body.gen-famille .scr-fiches .row,
body.gen-famille .scr-fiches .col-md-6 { display: contents; }
body.gen-famille .scr-fiches .mea-bloc { display: flex; flex-direction: column; margin: 0 !important; padding: 20px 20px 16px; background: #f4f7fb; border: 1px solid #e2e8f0 !important; border-radius: 12px; }
body.gen-famille .scr-fiches .mea-bloc h4 { position: relative; margin: 0 0 12px; min-height: 44px; padding: 0 0 14px; font-family: oxygenB, Arial, Verdana, sans-serif !important; font-size: 16px !important; line-height: 22px !important; font-weight: 500; color: #011547; }
body.gen-famille .scr-fiches .mea-bloc h4::after { content: "" !important; position: absolute !important; top: auto !important; bottom: 0 !important; left: 0 !important; display: block !important; width: 20px !important; height: 5px !important; margin: 0 !important; border-radius: 13px; background: #ee7065 !important; }
body.gen-famille .scr-fiches .mea-bloc > p { margin: 0; font-family: oxygenR, Arial, Verdana, sans-serif !important; font-size: 16px !important; line-height: 24px !important; color: #243056; }
body.gen-famille .scr-fiches .mea-bloc > p:last-child { margin-top: auto; padding-top: 16px; }
body.gen-famille .scr-fiches .cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 0; padding: 10px 16px; border-radius: 8px; background: #011547; color: #fff !important; font-family: oxygenR, Arial, Verdana, sans-serif !important; font-size: 15px !important; font-weight: 600; line-height: 20px !important; text-decoration: none; }
body.gen-famille .scr-fiches .cta:hover { background: #0b2a6b; color: #fff !important; }

/* Dossiers et articles */
body.gen-famille .scr-dossiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 28px; }
body.gen-famille .scr-dossier { display: flex; flex-direction: column; overflow: hidden; background: #f4f7fb; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; color: #011547; }
body.gen-famille .scr-dossier img { display: block; width: 100%; height: 168px; object-fit: cover; background: #e7eef6; }
body.gen-famille .scr-dossier-corps { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 14px; }
body.gen-famille .scr-dossier-titre { margin: 0 0 14px !important; padding: 0 !important; font-family: oxygenB, Arial, Verdana, sans-serif !important; font-size: 16px !important; line-height: 22px !important; font-weight: 500 !important; letter-spacing: normal !important; text-transform: none !important; text-align: left !important; color: #011547; }
body.gen-famille .scr-dossier-titre::before,
body.gen-famille .scr-dossier-titre::after { content: none !important; display: none !important; }
body.gen-famille .scr-dossier-cta { display: flex; align-items: center; justify-content: center; margin-top: auto; min-height: 44px; border-radius: 8px; background: #011547; color: #fff; font-family: oxygenR, Arial, Verdana, sans-serif; font-size: 15px; font-weight: 600; }
body.gen-famille .scr-dossier:hover .scr-dossier-cta { background: #0b2a6b; }

/* Retour vers le hub */
body.gen-famille a.scr-retour { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; margin: 0 0 28px; padding: 14px 18px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #011547; font-family: oxygenR, Arial, Verdana, sans-serif !important; font-size: 15px !important; font-weight: 600; line-height: 22px !important; text-decoration: none; }
body.gen-famille a.scr-retour::before { content: "‹"; color: #ee7065; font-size: 22px; line-height: 1; }
body.gen-famille a.scr-retour:hover { border-color: #011547; }


@media (max-width: 720px) {
  body.gen-famille .scr-fiches,
  body.gen-famille .scr-dossiers { grid-template-columns: 1fr; }
  body.gen-famille .scr-fiches .mea-bloc h4 { min-height: 0; padding-bottom: 14px; }

  body.gen-famille .sr-ligne { grid-template-columns: 1fr; }
  body.gen-famille .sr-ligne-kpi { text-align: left; }
  body.gen-famille .sr-ligne-kpi span { display: inline; font-size: 20px !important; margin-right: 6px; }

  body.gen-famille .sr-grid { grid-template-columns: 1fr; }
  body.gen-famille .sr-num { font-size: 28px; }
  body.gen-famille .sr-table thead { display: none; }
  body.gen-famille .sr-table, body.gen-famille .sr-table tbody, body.gen-famille .sr-table tr, body.gen-famille .sr-table td { display: block; width: 100%; }
  body.gen-famille .sr-table tr { padding: 8px 0; border-bottom: 1px solid #e2e8f0; }
  body.gen-famille .sr-table td { border: 0; padding: 2px 0; }
  body.gen-famille .sr-table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 13px; color: #5c6b8a; }
}

/* Nouveaux métiers (grille de postes avec code ROME) */
body.gen-famille .nm { margin: 8px 0 32px; }
body.gen-famille .nm h2 { margin: 28px 0 10px !important; font-family: oxygenB, Arial, Verdana, sans-serif !important; font-size: 20px !important; line-height: 28px !important; font-weight: 500 !important; text-align: left !important; text-transform: none !important; color: #011547; }
body.gen-famille .nm h2::after { content: ""; display: block; width: 20px; height: 5px; margin-top: 8px; background: #00f3a7; }
body.gen-famille .nm-intro { margin: 0 0 8px !important; font-family: oxygenR, Arial, sans-serif !important; font-size: 16px !important; line-height: 24px !important; color: #3d4a66; }
body.gen-famille .nm h3.nm-groupe { margin: 24px 0 12px !important; padding: 0 !important; font-family: oxygenB, Arial, sans-serif !important; font-size: 14px !important; line-height: 20px !important; font-weight: 500 !important; letter-spacing: .06em; text-transform: uppercase; text-align: left !important; color: #5c6b8a; }
body.gen-famille .nm h3.nm-groupe::before,
body.gen-famille .nm h3.nm-groupe::after { content: none !important; display: none !important; }
body.gen-famille .nm-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
body.gen-famille .nm-carte { display: flex; flex-direction: column; padding: 16px 16px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
body.gen-famille .nm-carte:hover { border-color: #c9d1e0; box-shadow: 0 6px 16px rgba(3, 22, 72, .08); }
body.gen-famille .nm-nom { margin: 0 0 6px !important; font-family: oxygenB, Arial, sans-serif !important; font-size: 16px !important; line-height: 22px !important; color: #011547 !important; }
body.gen-famille .nm-texte { margin: 0 0 14px !important; font-family: oxygenR, Arial, sans-serif !important; font-size: 14px !important; line-height: 21px !important; color: #3d4a66 !important; }
body.gen-famille .nm-rome { align-self: flex-start; margin-top: auto; padding: 3px 10px; border-radius: 999px; background: #e9f8f2; color: #0a7a52 !important; font-family: oxygenB, Arial, sans-serif; font-size: 12px; line-height: 18px; text-decoration: none !important; }
body.gen-famille a.nm-rome::after { content: " \203A"; }
body.gen-famille a.nm-rome:hover { background: #011547; color: #fff !important; }
body.gen-famille .nm-rome--proche { background: #eef1f7; color: #011547 !important; }
body.gen-famille .nm-rome--aucune { background: transparent; padding-left: 0; color: #7b879c !important; font-family: oxygenR, Arial, sans-serif; }
body.gen-famille .nm-source { margin: 16px 0 0 !important; font-family: oxygenR, Arial, sans-serif !important; font-size: 13px !important; line-height: 19px !important; color: #5c6b8a !important; }
