/* @portee: carriere */
/* Revue v3 (agent 5) — palette de commandes, raccourcis, actions groupées, agenda, finitions.
   Uniquement des variables du thème (clair / sombre) ; classes préfixées « rv- ». */

html.rv-lock, html.rv-lock body { overflow: hidden; }

/* ------------------------------------------------------------ Palette de commandes */
.rv-pal-root { display: contents; }
.rv-pal-backdrop { position: fixed; inset: 0; z-index: 260; background: rgba(0, 0, 0, .5); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: min(12vh, 110px) 16px 16px; }
.rv-pal { width: 100%; max-width: 640px; max-height: min(72vh, 620px); display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); overflow: hidden; }
.rv-pal-enter { transition: transform .18s var(--ease), opacity .18s var(--ease); }
.rv-pal-from { transform: translateY(-8px) scale(.985); opacity: 0; }
.rv-pal-to { transform: none; opacity: 1; }
.rv-pal-search { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.rv-pal-search > .ph { font-size: 1.25rem; color: var(--text-3); }
.rv-pal-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.02rem; font-weight: 550; padding: .2rem 0; }
.rv-pal-search input::placeholder { color: var(--text-3); font-weight: 450; }
.rv-pal-search input:focus-visible { box-shadow: none; }
.rv-pal-esc { cursor: pointer; }
.rv-pal-spin { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: rv-spin .7s linear infinite; }
@keyframes rv-spin { to { transform: rotate(360deg); } }
.rv-pal-list { flex: 1; min-height: 0; overflow-y: auto; padding: .35rem; overscroll-behavior: contain; }
.rv-pal-group { padding: .65rem .7rem .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.rv-pal-item { display: flex; align-items: center; gap: .75rem; padding: .5rem .65rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none !important; cursor: pointer; scroll-margin: .4rem; }
.rv-pal-item.is-active { background: var(--bg-hover); box-shadow: inset 3px 0 0 var(--brand); }
.rv-pal-ic { width: 2rem; height: 2rem; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--bg-sunken); color: var(--text-2); font-size: 1.05rem; transition: background .15s, color .15s; }
.rv-pal-item.is-active .rv-pal-ic { background: var(--brand-soft); color: var(--brand-ink); }
.rv-pal-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.rv-pal-label { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-pal-sub { font-size: .76rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-pal-keys { font-size: .7rem; font-weight: 700; color: var(--text-3); letter-spacing: .08em; border: 1px solid var(--line); border-radius: 5px; padding: .1rem .35rem; white-space: nowrap; }
.rv-pal-enter-ic { color: var(--text-3); }
.rv-pal-empty { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 2.2rem 1rem; text-align: center; color: var(--text-2); font-weight: 600; }
.rv-pal-empty > .ph { font-size: 1.8rem; color: var(--text-3); }
.rv-pal-foot { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .6rem 1rem; border-top: 1px solid var(--line); background: var(--bg-sunken); font-size: .75rem; color: var(--text-3); }
.rv-pal-foot .kbd { margin-right: .15rem; }
.rv-pal-foot .link-btn { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-2); }
.rv-pal-mobile { margin-left: auto; }

/* Aide des raccourcis */
.rv-help { width: 100%; max-width: 720px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); overflow: hidden; animation: rv-pop .2s var(--ease); max-height: calc(100dvh - 2 * min(12vh, 110px)); display: flex; flex-direction: column; }
.rv-help .modal-title { display: flex; align-items: center; gap: .5rem; }
.rv-help-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; padding: 1.1rem 1.3rem 1.3rem; overflow-y: auto; }
.rv-help-title { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: .4rem; }
.rv-help-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.rv-help-row:last-child { border-bottom: 0; }
.rv-help-row .kbd + .kbd { margin-left: .2rem; }
@media (max-width: 640px) { .rv-help-body { grid-template-columns: minmax(0, 1fr); } }
@keyframes rv-pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } }

/* ------------------------------------------------------------ Sous-onglets qui débordent : fondu sur les bords */
.subtabs.rv-ovf.rv-fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.subtabs.rv-ovf.rv-fade-l { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px); mask-image: linear-gradient(to right, transparent, #000 36px); }
.subtabs.rv-ovf.rv-fade-l.rv-fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }

/* ------------------------------------------------------------ Animations sobres (désactivées si mouvement réduit) */
@media (prefers-reduced-motion: no-preference) {
  /* Panneaux d'onglets côté client : légère apparition à chaque changement d'onglet */
  .content [x-show^="tab ==="], .content [x-show^="tab=="], .dash-tabs > section { animation: rv-tab-in .26s var(--ease); }
  /* Modules d'autres équipes (candidatures, aperçu, membres) : comportement inchangé */
  .cvf [x-show^="tab"], .cv [x-show^="tab"], .mi-show [x-show^="tab"], .modal [x-show^="tab"], .drawer [x-show^="tab"] { animation: none; }
  /* Lignes de liste au chargement (JS : .rv-in + --rv-i) */
  .rv-in { animation: rv-row-in .34s var(--ease) backwards; animation-delay: calc(var(--rv-i, 0) * 18ms + 120ms); }
  /* Retour visuel après une action réussie */
  .rv-done { animation: rv-done .8s var(--ease); }
  .rv-bulkbar { animation: rv-bar-in .22s var(--ease); }
}
@keyframes rv-tab-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes rv-row-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes rv-done { 0% { box-shadow: 0 0 0 0 rgba(92, 172, 48, .55); } 100% { box-shadow: 0 0 0 10px rgba(92, 172, 48, 0); } }
@keyframes rv-bar-in { from { opacity: 0; transform: translateY(-4px); } }

/* ------------------------------------------------------------ Actions groupées */
.rv-bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; padding: .55rem .9rem; background: var(--bg-inverse); color: var(--text-inverse); flex-shrink: 0; }
.rv-bulkbar .link-btn { color: inherit; opacity: .75; }
.rv-bulkbar .link-btn:hover { opacity: 1; }
.rv-bulkbar .select { background-color: var(--bg-elev); color: var(--text); }
.rv-bulkbar .btn-dark { background: var(--brand); border-color: var(--brand); color: #000; }
.rv-bulkbar .btn-dark:disabled { opacity: .5; }
.rv-bulkbar-count { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .86rem; }
.rv-col-check { width: 2.6rem; padding-right: 0 !important; }
.rv-col-check .check { margin: 0; }
tr.rv-sel > td { background: var(--brand-soft); }
.card-item.rv-sel { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.rv-card-check { position: absolute; top: .6rem; left: .6rem; z-index: 2; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: var(--r-xs); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.rv-card-check .check { margin: 0; }
.rv-card-check input { margin: 0; }

/* ------------------------------------------------------------ Tableau de bord : agenda du jour et de demain */
.rv-agenda-day { display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.rv-agenda-day .count { margin-left: auto; }
.rv-agenda-item { display: flex; align-items: center; gap: .4rem; padding: .5rem .8rem .5rem 1.1rem; border-top: 1px solid var(--line); transition: background .15s; }
.rv-agenda-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none !important; }
.rv-agenda-date { font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.rv-agenda-meta { display: flex; align-items: center; gap: .4rem; min-width: 0; font-size: .74rem; color: var(--text-2); }
.rv-agenda-meta > .truncate { min-width: 0; }
.rv-agenda-status { flex-shrink: 0; display: inline-flex; align-items: center; gap: .3rem; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.rv-agenda-status::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--text-3); }
.rv-agenda-status[data-tone="success"]::before { background: var(--brand); }
.rv-agenda-status[data-tone="info"]::before { background: var(--info); }
.rv-agenda-status[data-tone="warning"]::before { background: var(--warning); }
.rv-agenda-status[data-tone="danger"]::before { background: var(--danger); }
.rv-agenda-status[data-tone="violet"]::before { background: var(--violet); }
.rv-agenda-item:hover { background: var(--bg-hover); }
.rv-agenda-time { width: 3.1rem; flex-shrink: 0; font-weight: 750; font-variant-numeric: tabular-nums; font-size: .92rem; line-height: 1.15; }
.rv-agenda-time small { display: block; font-size: .7rem; font-weight: 600; color: var(--text-3); }
.rv-agenda-bar { width: 3px; align-self: stretch; border-radius: 3px; background: var(--brand); flex-shrink: 0; }
.rv-agenda-item[data-type="visio"] .rv-agenda-bar { background: var(--info); }
.rv-agenda-item[data-type="telephone"] .rv-agenda-bar { background: var(--violet); }
.rv-agenda-item[data-type="technique"] .rv-agenda-bar { background: var(--orange); }
.rv-agenda-item.is-past { opacity: .55; }
.rv-agenda-soon { flex-shrink: 0; font-size: .68rem; font-weight: 750; color: var(--brand-ink); background: var(--brand-soft); border-radius: var(--r-pill); padding: .05rem .45rem; white-space: nowrap; }
.rv-agenda-empty { display: flex; align-items: center; gap: .7rem; padding: .7rem 1.1rem; color: var(--text-3); font-size: .86rem; border-top: 1px solid var(--line); }
.rv-agenda-empty .ph { font-size: 1.2rem; }
.rv-agenda-join { flex-shrink: 0; }
.rv-agenda .rv-agenda-day:first-child { padding-top: .35rem; }
/* Panneau « À faire » plus compact : laisse de la place à l'agenda sans défilement */
@media (min-width: 1024px) {
  .dash-todo { gap: .35rem; padding: .6rem .7rem; }
  .dash-todo-item { padding: .5rem .65rem; gap: .6rem; }
  .dash-todo-item .icon-box { width: 2rem; height: 2rem; font-size: 1rem; }
  .dash-todo-item b { font-size: .84rem; line-height: 1.25; }
  .dash-todo-item small { font-size: .72rem; }
  .dash-todo-count { font-size: 1.15rem; }
}

/* ------------------------------------------------------------ Espace Carrière : prochain entretien */
.rv-next { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-inverse); color: var(--text-inverse); padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.rv-next::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%); opacity: .55; pointer-events: none; }
.rv-next-top { display: flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.rv-next-when { display: flex; align-items: center; gap: .9rem; position: relative; z-index: 1; }
.rv-next-date { width: 3.6rem; flex-shrink: 0; text-align: center; border-radius: var(--r-sm); background: var(--brand); color: #000; padding: .35rem 0; line-height: 1.05; }
.rv-next-date b { display: block; font-size: 1.45rem; font-stretch: 115%; }
.rv-next-date span { font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.rv-next-title { font-weight: 750; font-size: 1.02rem; }
.rv-next-sub { font-size: .84rem; opacity: .75; }
.rv-countdown { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 750; padding: .2rem .6rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand); align-self: flex-start; position: relative; z-index: 1; }
.rv-countdown.is-soon, .rv-countdown.is-live { background: var(--brand); color: #000; }
.rv-countdown.is-live .ph { animation: rv-blink 1.2s ease-in-out infinite; }
@keyframes rv-blink { 50% { opacity: .35; } }
.rv-next-actions { display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 1; }
.rv-next-actions .btn-outline { color: var(--text-inverse); border-color: color-mix(in srgb, var(--text-inverse) 30%, transparent); background: transparent; }
.rv-next-actions .btn-outline:hover { background: color-mix(in srgb, var(--text-inverse) 10%, transparent); }
[data-theme="dark"] .rv-next { background: linear-gradient(140deg, var(--brand-soft), var(--bg-elev) 70%); color: var(--text); border: 1px solid var(--brand-line); }
[data-theme="dark"] .rv-next-actions .btn-outline { color: var(--text); border-color: var(--line-strong); }
[data-theme="dark"] .rv-next-actions .btn-outline:hover { background: var(--bg-hover); }
.rv-chip-count { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand-line); font-weight: 700; }
.rv-chip-count.is-soon, .rv-chip-count.is-live { background: var(--brand); color: #000; border-color: var(--brand); }

/* ------------------------------------------------------------ Espace Carrière : notifications */
.rv-notif-list { display: flex; flex-direction: column; }
.rv-notif-day { position: sticky; top: var(--topbar-h); z-index: 2; padding: .55rem 1.2rem; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); background: var(--bg-sunken); border-bottom: 1px solid var(--line); }
.rv-notif { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); transition: background .2s; }
.rv-notif:last-child { border-bottom: 0; }
.rv-notif.is-unread { background: var(--brand-soft); }
.rv-notif-main { flex: 1; min-width: 0; color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; gap: .1rem; }
.rv-notif-main:hover .strong { text-decoration: underline; text-underline-offset: 3px; }
.rv-notif-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.rv-notif-time { white-space: nowrap; }
@media (max-width: 600px) { .rv-notif { padding: .8rem .9rem; gap: .7rem; } .rv-notif-time { display: none; } }

/* ------------------------------------------------------------ Offre sans candidature : partage */
.rv-share { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .9rem; }
.list-row.rv-sel { background: var(--brand-soft); }
.rv-inline-check { margin: 0; flex-shrink: 0; }
.rv-inline-check input { margin: 0; }
/* Carte « Prochain entretien » : en haut sur écran étroit, dans la colonne latérale sinon (grille .c-two de l'accueil) */
.rv-only-narrow:not(:has(.rv-next)), .rv-only-wide:not(:has(.rv-next)) { display: none; }
@media (min-width: 1181px) { .rv-only-narrow { display: none; } }
@media (max-width: 1180px) { .rv-only-wide { display: none; } }
/* Espace Carrière : résumé de la frise de suivi */
.rv-step-sum { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .82rem; color: var(--text-2); }
.rv-step-sum.is-compact { margin-top: .7rem; font-size: .76rem; }
.rv-step-badge { font-weight: 750; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: var(--r-pill); padding: .1rem .55rem; white-space: nowrap; }
.rv-step-bar { flex: 0 0 70px; height: 4px; border-radius: 4px; background: var(--bg-sunken); overflow: hidden; }
.rv-step-bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.rv-step-next { font-weight: 600; }
@media (min-width: 641px) { .rv-step-sum.is-compact .rv-step-bar { display: none; } }
.rv-agenda-cal { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: var(--r-xs); color: var(--text-2); font-size: 1rem; }
.rv-agenda-cal:hover { background: var(--bg-hover); color: var(--brand-ink); }
/* Vue d'ensemble du tableau de bord : tient dans 900 px de haut malgré le bandeau d'ouverture des candidatures */
@media (min-width: 1024px) {
  .dash-grid-main { grid-template-rows: minmax(215px, 1.4fr) minmax(150px, 1fr); }
  .dash-grid-main > .dash-panel > .panel-header { padding-block: .75rem; }
}
