/*
 * Design commun de l'intranet (classes vc-…) : Accueil, Actualités et ses
 * pages (Newsletters du cabinet, Congrès & événements, Offres d'emploi),
 * Documents RH, Annuaire et Boîte à outils. La Newsletter IA a son propre style.
 *
 * Chaque rubrique a sa couleur (--vc-accent), posée par une classe vc--… sur
 * la page ou sur la carte. Les teintes en découlent, en clair comme en sombre.
 */

/* -------------------------------------------------------------------------- */
/* Couleurs                                                                    */
/* -------------------------------------------------------------------------- */
/* Une seule couleur pour toutes les rubriques : le bleu marine du cabinet
   (logo ATRYON) ; en sombre, le même bleu éclairci pour rester lisible.
   Les classes vc--… restent en place : pour redonner une couleur propre à une
   rubrique, il suffit d'ajouter ici, par exemple, .vc--events { --vc-accent: … }. */
.vc-page,
[class*="vc--"] { --vc-accent: #192a56; }

[data-theme="dark"] .vc-page,
[data-theme="dark"] [class*="vc--"] { --vc-accent: #9fb2e3; }

/* Vue (documents.html) : rien d'affiché avant le montage. */
[v-cloak] { display: none !important; }

/* Recalculées partout où la couleur change. */
/* --vc-soft : bleu plus vif, réservé aux teintes claires (fonds, bordures,
   badges). Le bleu marine éclairci tirerait sur le gris. */
.vc-page,
[class*="vc--"] {
  --vc-soft: #2f6fe4;
  --vc-tint: color-mix(in oklab, var(--vc-soft) 8%, var(--surface-1));
  --vc-line: color-mix(in oklab, var(--vc-soft) 28%, var(--border));
  --vc-ink: color-mix(in oklab, var(--vc-accent) 78%, var(--text-primary));
  --vc-on-accent: #fff;
}

[data-theme="dark"] .vc-page,
[data-theme="dark"] [class*="vc--"] {
  --vc-soft: var(--vc-accent);
  --vc-tint: color-mix(in oklab, var(--vc-soft) 12%, var(--surface-1));
  --vc-on-accent: #0b1220;
}

/* Types d'événements. */
[data-tag] { --tag: #64748b; }
[data-tag="Congrès"] { --tag: #7c3aed; }
[data-tag="Webinar"] { --tag: #ea580c; }
[data-tag="Interne"] { --tag: #059669; }
[data-tag="Anniversaire"] { --tag: #ca8a04; }
[data-tag="Férié"] { --tag: #e11d48; }

[data-theme="dark"] [data-tag] { --tag: #94a3b8; }
[data-theme="dark"] [data-tag="Congrès"] { --tag: #a78bfa; }
[data-theme="dark"] [data-tag="Webinar"] { --tag: #fb923c; }
[data-theme="dark"] [data-tag="Interne"] { --tag: #34d399; }
[data-theme="dark"] [data-tag="Anniversaire"] { --tag: #facc15; }
[data-theme="dark"] [data-tag="Férié"] { --tag: #fb7185; }

.vc-page .ui-icon { flex: 0 0 auto; }

/* Conteneurs d'icônes (js/core/design.js) ; .vc-icon-tile, plus bas, les centre. */
.vc-ico,
[data-icon] {
  display: inline-flex;
  align-items: center;
}

/* -------------------------------------------------------------------------- */
/* En-tête de page                                                             */
/* -------------------------------------------------------------------------- */
.vc-head {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--vc-tint) 0%, var(--surface-1) 70%);
}

.vc-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-secondary);
}

.vc-crumbs a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}

.vc-crumbs a:hover,
.vc-crumbs a:focus-visible {
  color: var(--vc-ink);
  text-decoration: underline;
}

.vc-crumbs [aria-current] {
  color: var(--text-primary);
  font-weight: 600;
}

.vc-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.vc-head__text {
  flex: 1 1 320px;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.vc-head .page-title {
  font-size: clamp(26px, 3vw, 32px);
}

.vc-icon-tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--vc-accent);
  color: var(--vc-on-accent);
  box-shadow: 0 4px 12px color-mix(in oklab, var(--vc-accent) 22%, transparent);
}

.vc-manage,
.vc-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

/* Ces boutons ont leur propre display : on garde l'effet de .is-hidden. */
.vc-manage.is-hidden,
.vc-btn-icon.is-hidden {
  display: none;
}

.vc-section-title {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vc-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--vc-soft) 13%, var(--surface-1));
  color: var(--vc-ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Pastille de date (newsletters, événements). */
.vc-date {
  flex: 0 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  border: 1px solid var(--vc-line);
  background: var(--vc-tint);
  color: var(--vc-ink);
  line-height: 1.1;
  text-align: center;
}

.vc-date__top {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vc-date__main {
  font-size: 1.2rem;
  font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Actualités : les 4 rubriques                                                */
/* -------------------------------------------------------------------------- */
/* 4 rubriques : 1, 2 puis 4 colonnes (jamais 3 + 1). */
.vc-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 560px) {
  .vc-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .vc-hub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.vc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 230px;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.vc-card:link,
.vc-card:visited {
  color: var(--text-primary);
}

.vc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--vc-accent);
}

.vc-card:hover,
.vc-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--vc-line);
  box-shadow: var(--shadow);
}

.vc-card:focus-visible {
  outline: none;
  box-shadow: var(--shadow), var(--focus-ring);
}

.vc-card .vc-icon-tile {
  width: 48px;
  height: 48px;
}

.vc-card__text {
  display: grid;
  gap: 6px;
}

.vc-card__title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.vc-card__desc {
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.vc-card__live {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--vc-tint);
  color: var(--text-primary);
  font-size: .84rem;
  line-height: 1.35;
}

.vc-card__live[hidden] {
  display: none;
}

.vc-card__live .ui-icon {
  color: var(--vc-ink);
}

.vc-card__live span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.vc-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vc-ink);
  font-size: .88rem;
  font-weight: 700;
}

.vc-card__cta .ui-icon {
  transition: transform .15s ease;
}

.vc-card:hover .vc-card__cta .ui-icon {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------- */
/* Barre de recherche et filtres                                               */
/* -------------------------------------------------------------------------- */
.vc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vc-search {
  position: relative;
  display: block;
  flex: 1 1 280px;
  max-width: 440px;
}

.vc-search > [data-icon] {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.vc-search input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--text-primary);
  font: inherit;
}

.vc-search input:focus {
  outline: none;
  border-color: var(--vc-accent);
  box-shadow: var(--focus-ring);
}

.vc-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.vc-segmented button {
  appearance: none;
  padding: 6px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}

.vc-segmented button:hover {
  color: var(--text-primary);
}

.vc-segmented button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.vc-segmented button.is-active {
  background: var(--surface-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .vc-segmented button.is-active {
  background: var(--ghost-bg-hover);
}

/* -------------------------------------------------------------------------- */
/* Newsletters du cabinet                                                      */
/* -------------------------------------------------------------------------- */
.vc-news-list {
  display: grid;
  gap: 12px;
}

.vc-news {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.vc-news:hover,
.vc-news[open] {
  border-color: var(--vc-line);
}

.vc-news[open] {
  box-shadow: var(--shadow);
}

.vc-news__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
}

.vc-news__summary::-webkit-details-marker {
  display: none;
}

.vc-news__summary:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

.vc-news__text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.vc-news__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.vc-news__summary:hover .vc-news__title {
  color: var(--vc-ink);
}

.vc-news__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.5;
}

.vc-news[open] .vc-news__excerpt {
  display: none;
}

.vc-news__thumb {
  flex: 0 0 auto;
  width: 168px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.vc-news__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--vc-tint);
  color: var(--vc-ink);
  font-size: .85rem;
  font-weight: 700;
}

.vc-news__toggle .ui-icon {
  transition: transform .15s ease;
}

.vc-news[open] .vc-news__toggle .ui-icon {
  transform: rotate(180deg);
}

.vc-news__toggle-close,
.vc-news[open] .vc-news__toggle-open {
  display: none;
}

.vc-news[open] .vc-news__toggle-close {
  display: inline;
}

/* À la une : la newsletter la plus récente. */
.vc-news.is-featured .vc-news__summary {
  align-items: flex-start;
  padding: 22px;
  background: linear-gradient(135deg, var(--vc-tint) 0%, var(--surface-1) 75%);
}

.vc-news.is-featured .vc-date {
  width: 72px;
  height: 72px;
}

.vc-news.is-featured .vc-date__main {
  font-size: 1.35rem;
}

.vc-news.is-featured .vc-news__title {
  font-size: 1.35rem;
}

.vc-news.is-featured .vc-news__excerpt {
  -webkit-line-clamp: 3;
  font-size: .95rem;
}

.vc-news.is-featured[open] .vc-news__thumb {
  display: none;
}

.vc-news__body {
  padding: 0 18px 24px;
  border-top: 1px solid var(--border);
}

.vc-news__hero {
  display: block;
  width: 100%;
  max-width: 820px;
  max-height: 360px;
  margin: 20px auto 0;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Lecture : ligne limitée, interlignage aéré. */
.vc-reading {
  max-width: 72ch;
  margin: 0 auto;
  padding-top: 20px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.vc-reading--plain {
  white-space: pre-line;
}

.vc-reading > :first-child {
  margin-top: 0;
}

.vc-reading h1,
.vc-reading h2,
.vc-reading h3 {
  margin: 1.4em 0 .5em;
  line-height: 1.3;
}

.vc-reading h1 { font-size: 1.35rem; }
.vc-reading h2 { font-size: 1.2rem; }
.vc-reading h3 { font-size: 1.05rem; }

.vc-reading p,
.vc-reading ul,
.vc-reading ol {
  margin: 0 0 .9em;
}

.vc-reading ul,
.vc-reading ol {
  padding-left: 1.3em;
}

.vc-reading li + li {
  margin-top: .3em;
}

.vc-reading a {
  color: var(--vc-ink);
}

.vc-reading img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.vc-reading table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.vc-note {
  margin: .5em 0 1em;
  padding: 10px 14px;
  border-left: 3px solid var(--vc-accent);
  border-radius: 0 10px 10px 0;
  background: var(--vc-tint);
}

/* -------------------------------------------------------------------------- */
/* Congrès & événements                                                        */
/* -------------------------------------------------------------------------- */
.vc-events {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

@media (min-width: 1000px) {
  .vc-events {
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    align-items: start;
  }
}

.vc-panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
}

.vc-cal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vc-cal__month {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: capitalize;
}

.vc-cal__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vc-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--ghost-border);
  border-radius: 10px;
  background: var(--ghost-bg);
  color: var(--ghost-fg);
  cursor: pointer;
}

.vc-icon-btn:hover {
  background: var(--ghost-bg-hover);
}

.vc-icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.vc-today-btn {
  padding: 8px 14px;
}

.vc-cal__dow,
.vc-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.vc-cal__dow div {
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.vc-day {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  min-height: 86px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}

.vc-day.is-weekend {
  background: var(--surface-2);
}

.vc-day:hover {
  border-color: var(--vc-line);
  background: var(--vc-tint);
}

.vc-day:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.vc-day.is-outside {
  opacity: .42;
}

.vc-day.is-today {
  border-color: var(--vc-accent);
}

.vc-day__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
}

.vc-day.is-today .vc-day__num {
  background: var(--vc-accent);
  color: var(--vc-on-accent);
}

.vc-day__events {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vc-pill {
  display: block;
  overflow: hidden;
  padding: 2px 6px;
  border-left: 3px solid var(--tag);
  border-radius: 5px;
  background: color-mix(in oklab, var(--tag) 15%, var(--surface-1));
  color: var(--text-primary);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-pill--more {
  padding-left: 2px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
}

.vc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: .8rem;
}

.vc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vc-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--tag);
}

.vc-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vc-list-head .vc-section-title {
  margin: 0;
}

.vc-link-btn {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vc-ink);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}

.vc-link-btn:hover {
  text-decoration: underline;
}

.vc-events-list {
  display: grid;
  gap: 10px;
}

.vc-event {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.vc-event:hover {
  border-color: color-mix(in oklab, var(--tag) 45%, var(--border));
  box-shadow: var(--shadow-sm);
}

.vc-event:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.vc-event.is-past {
  opacity: .6;
}

.vc-event .vc-date,
.vc-modal .vc-date {
  width: 54px;
  height: 54px;
  border-color: color-mix(in oklab, var(--tag) 35%, var(--border));
  background: color-mix(in oklab, var(--tag) 13%, var(--surface-1));
  color: color-mix(in oklab, var(--tag) 72%, var(--text-primary));
}

.vc-event__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.vc-event__title {
  margin: 0;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
}

.vc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--text-secondary);
  font-size: .82rem;
}

.vc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vc-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 2px 9px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--tag) 14%, var(--surface-1));
  color: color-mix(in oklab, var(--tag) 70%, var(--text-primary));
  font-size: .72rem;
  font-weight: 700;
}

.vc-type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--tag);
}

.vc-event .btn {
  padding: 6px 12px;
  font-size: .85rem;
}

.vc-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* Fenêtre de détail */
.vc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
}

.vc-modal-overlay[aria-hidden="false"] {
  display: flex;
}

.vc-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
}

.vc-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 0;
}

.vc-modal__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.vc-modal__body {
  display: grid;
  gap: 14px;
  padding: 14px 20px 20px;
}

.vc-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 20px;
}

.vc-modal__foot:empty {
  display: none;
}

.vc-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  font-size: .9rem;
}

.vc-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-desc {
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-line;
}

.vc-desc--empty {
  color: var(--text-secondary);
  font-style: italic;
}

.vc-day-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--tag);
  border-radius: 10px;
}

.vc-day-item__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.vc-day-item .btn {
  justify-self: start;
  padding: 6px 12px;
  font-size: .85rem;
}

/* -------------------------------------------------------------------------- */
/* Offres d'emploi                                                             */
/* -------------------------------------------------------------------------- */
.vc-bonus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--vc-line);
  border-radius: var(--radius);
  background: var(--vc-tint);
}

.vc-bonus .vc-icon-tile {
  background: var(--surface-1);
}

.vc-bonus__text {
  flex: 1 1 320px;
  display: grid;
  gap: 8px;
}

.vc-bonus__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.vc-bonus__amount {
  color: var(--vc-ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.vc-bonus__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vc-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  font-size: .84rem;
}

.vc-step strong {
  color: var(--vc-ink);
}

.vc-bonus__note {
  color: var(--text-secondary);
  font-size: .82rem;
}

.vc-offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}

.vc-offer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.vc-offer:hover {
  border-color: var(--vc-line);
  box-shadow: var(--shadow);
}

.vc-offer__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.vc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 600;
}

.vc-chip .ui-icon {
  color: var(--vc-ink);
}

.vc-checks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .92rem;
}

.vc-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.vc-checks .ui-icon {
  margin-top: 1px;
  padding: 3px;
  border-radius: 999px;
  background: var(--vc-tint);
  color: var(--vc-ink);
}

.vc-offer__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.vc-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.vc-more .vc-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.vc-more__text {
  flex: 1 1 240px;
  display: grid;
  gap: 2px;
}

.vc-more__text span {
  color: var(--text-secondary);
  font-size: .9rem;
}

/* -------------------------------------------------------------------------- */
/* Documents RH                                                                */
/* -------------------------------------------------------------------------- */
.vc-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.vc-doc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.vc-doc:link,
.vc-doc:visited {
  color: var(--text-primary);
}

.vc-doc:hover,
.vc-doc:focus-visible {
  transform: translateY(-2px);
  border-color: var(--vc-line);
  box-shadow: var(--shadow);
}

.vc-doc:focus-visible {
  outline: none;
  box-shadow: var(--shadow), var(--focus-ring);
}

.vc-doc__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Pastille de format, colorée selon la famille de fichier. */
.vc-format {
  --fmt: #64748b;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  border: 1px solid color-mix(in oklab, var(--fmt) 35%, var(--border));
  border-radius: 6px 14px 6px 6px;
  background: color-mix(in oklab, var(--fmt) 12%, var(--surface-1));
  color: color-mix(in oklab, var(--fmt) 78%, var(--text-primary));
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.vc-format[data-kind="pdf"] { --fmt: #dc2626; }
.vc-format[data-kind="word"] { --fmt: #2563eb; }
.vc-format[data-kind="excel"] { --fmt: #059669; }
.vc-format[data-kind="slides"] { --fmt: #ea580c; }

[data-theme="dark"] .vc-format { --fmt: #94a3b8; }
[data-theme="dark"] .vc-format[data-kind="pdf"] { --fmt: #f87171; }
[data-theme="dark"] .vc-format[data-kind="word"] { --fmt: #60a5fa; }
[data-theme="dark"] .vc-format[data-kind="excel"] { --fmt: #34d399; }
[data-theme="dark"] .vc-format[data-kind="slides"] { --fmt: #fb923c; }

.vc-doc__head {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.vc-doc__title {
  font-size: 1.02rem;
  line-height: 1.35;
}

.vc-doc:hover .vc-doc__title {
  color: var(--vc-ink);
}

.vc-meta--dotted {
  gap: 4px 0;
}

.vc-meta--dotted span + span::before {
  content: "·";
  margin: 0 8px;
}

.vc-meta--dotted:empty {
  display: none;
}

.vc-doc__desc {
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.5;
}

.vc-doc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.vc-conf {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--badge-danger-bg);
  color: var(--badge-danger-fg);
  font-size: .72rem;
  font-weight: 700;
}

.vc-doc__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--vc-tint);
  color: var(--vc-ink);
  font-size: .85rem;
  font-weight: 700;
}

.vc-doc:hover .vc-doc__open {
  background: color-mix(in oklab, var(--vc-soft) 13%, var(--surface-1));
}

/* Messages (accès fermé, erreur). */
/* Documents RH : Assistant RH, bulle en bas à droite et fenêtre de discussion
   par-dessus la page (position fixe : la page n'est jamais redimensionnée).
   La bulle se place au-dessus du bouton « Un problème ? » (.feedback-fab). */
/* Mascotte : rond marine aux yeux blancs, posée sur fond clair (bulle, en-tête). */
.rh-chat {
  --atryon-avatar: #1B2B4D;
}

[data-theme="dark"] .rh-chat {
  --atryon-avatar: #33497a;
}

.rh-chat__mascot {
  flex: 0 0 auto;
  display: block;
}

.rh-chat__fab {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px 6px 8px;
  border: 1px solid var(--vc-line);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--vc-ink);
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .22);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.rh-chat__fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .28);
}

.rh-chat__fab:focus-visible,
.rh-chat__icon-btn:focus-visible,
.rh-chat__chip:focus-visible,
.rh-chat__action:focus-visible,
.rh-chat__source:focus-visible,
.rh-chat__send:focus-visible {
  outline: 2px solid var(--vc-accent);
  outline-offset: 2px;
}

.rh-chat__panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 36px));
  height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-1);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25), 0 4px 14px rgba(15, 23, 42, .10);
  animation: rh-chat-in .18s ease-out;
}

@keyframes rh-chat-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.rh-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--vc-ink);
}

.rh-chat__id {
  flex: 1 1 auto;
  min-width: 0;
}

.rh-chat__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}

.rh-chat__sub {
  margin: 0;
  font-size: .8rem;
  color: var(--text-secondary);
}

.rh-chat__icon-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.rh-chat__icon-btn:hover {
  background: var(--vc-tint);
}

.rh-chat__icon-btn:disabled {
  opacity: .5;
  cursor: default;
}

.rh-chat__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--vc-tint);
}

.rh-chat__msg {
  margin: 0;
  max-width: 88%;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.rh-chat__msg--me {
  align-self: flex-end;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--vc-accent);
  color: var(--vc-on-accent);
  white-space: pre-line;
}

.rh-chat__msg--bot {
  align-self: flex-start;
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-1);
  color: var(--text-primary);
}

.rh-chat__msg--bot.is-missing {
  border-style: dashed;
}

.rh-chat__msg--bot.is-missing .rh-chat__text {
  color: var(--text-secondary);
}

.rh-chat__msg--bot.is-error {
  border-color: color-mix(in oklab, var(--danger) 45%, var(--border));
}

.rh-chat__msg--bot.is-error .rh-chat__text {
  color: var(--danger);
}

.rh-chat__text {
  margin: 0;
}

.rh-chat__text strong,
.rh-chat__list strong {
  font-weight: 700;
  color: var(--vc-ink);
  white-space: nowrap;
}

/* Pendant la génération : curseur clignotant à la fin du texte. */
.rh-chat__msg--bot.is-streaming > .rh-chat__text:last-child::after,
.rh-chat__msg--bot.is-streaming > .rh-chat__list:last-child > li:last-child::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  border-radius: 1px;
  background: var(--vc-accent);
  animation: rh-chat-caret 1s steps(2, start) infinite;
}

@keyframes rh-chat-caret {
  to { visibility: hidden; }
}

.rh-chat__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.rh-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rh-chat__chip {
  padding: 6px 11px;
  border: 1px solid var(--vc-line);
  border-radius: 999px;
  background: var(--vc-tint);
  color: var(--vc-ink);
  font: inherit;
  font-size: .85rem;
  text-align: left;
  cursor: pointer;
}

.rh-chat__chip:hover {
  border-color: var(--vc-accent);
}

.rh-chat__sources {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-chat__source {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--vc-line);
  border-radius: 10px;
  background: var(--vc-tint);
  color: var(--vc-ink);
  font-size: .85rem;
  text-decoration: none;
}

.rh-chat__source:hover {
  border-color: var(--vc-accent);
}

.rh-chat__source-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

.rh-chat__source-page {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.rh-chat__source-ico,
.rh-chat__source-go {
  flex: 0 0 auto;
  display: inline-flex;
}

.rh-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.rh-chat__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
}

.rh-chat__action:hover {
  background: var(--vc-tint);
  color: var(--vc-ink);
}

.rh-chat__typing {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: .88rem;
}

.rh-chat__dots {
  display: inline-flex;
  gap: 4px;
}

.rh-chat__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: rh-chat-dot 1.2s infinite ease-in-out;
}

.rh-chat__dots i:nth-child(2) { animation-delay: .15s; }
.rh-chat__dots i:nth-child(3) { animation-delay: .3s; }

@keyframes rh-chat-dot {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.rh-chat__form {
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
}

.rh-chat__field {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
}

.rh-chat__field:focus-within {
  border-color: var(--vc-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--vc-accent) 18%, transparent);
}

.rh-chat__input {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 140px;
  padding: 6px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  line-height: 1.4;
  resize: none;
  overflow-y: hidden;
}

.rh-chat__send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--vc-accent);
  color: var(--vc-on-accent);
  cursor: pointer;
}

.rh-chat__send:disabled {
  opacity: .4;
  cursor: default;
}

.rh-chat__hint {
  margin: 0;
  font-size: .75rem;
  color: var(--text-secondary);
}

/* Mobile : fenêtre en plein écran. */
@media (max-width: 640px) {
  .rh-chat__fab {
    right: 12px;
    bottom: 60px;
  }

  .rh-chat__panel {
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .rh-chat__msg {
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-chat__panel,
  .rh-chat__msg--bot.is-streaming > .rh-chat__text:last-child::after,
  .rh-chat__msg--bot.is-streaming > .rh-chat__list:last-child > li:last-child::after,
  .rh-chat__dots i {
    animation: none;
  }
}

.vc-state {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--vc-line);
  border-radius: var(--radius);
  background: var(--vc-tint);
}

.vc-state .vc-icon-tile {
  background: var(--surface-1);
}

.vc-state div {
  display: grid;
  gap: 4px;
}

.vc-state div span {
  color: var(--text-secondary);
  font-size: .9rem;
}

/* -------------------------------------------------------------------------- */
/* Accueil                                                                     */
/* -------------------------------------------------------------------------- */
.home-page {
  gap: 28px;
}

.home-split {
  gap: 20px;
}

/* Côte à côte : titres sur une même ligne, cartes et favoris alignés en haut
   et en bas (les deux blocs partagent les lignes de la grille). */
@media (min-width: 1025px) {
  .home-split {
    grid-template-rows: auto 1fr;
  }

  .home-split > .home-block {
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
}

.home-split .vc-week,
.home-split .vc-favs {
  height: 100%;
}

.home-block {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.home-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.home-block__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.home-block__sub {
  margin: 2px 0 0;
  color: var(--text-secondary);
  font-size: .9rem;
}

/* Cette semaine : 3 cartes côte à côte dès que la place le permet. */
.vc-week {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 720px) {
  .vc-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.vc-spot {
  min-height: 0;
  gap: 10px;
  padding: 18px 16px 16px;
}

.vc-spot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vc-spot .vc-date,
.vc-spot .vc-icon-tile {
  width: 52px;
  height: 52px;
}

.vc-spot .vc-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 1rem;
}

.vc-spot__body {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.45;
}

.vc-spot__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: .85rem;
}

.vc-spot__meta .ui-icon {
  color: var(--vc-ink);
}

.vc-spot__meta > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Outils favoris */
.vc-favs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.vc-favs__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vc-favs__star {
  color: var(--vc-accent);
}

.vc-favs__star svg,
.vc-star.is-active svg {
  fill: currentColor;
}

.vc-favs__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vc-fav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.vc-fav:link,
.vc-fav:visited {
  color: var(--text-primary);
}

.vc-fav:hover,
.vc-fav:focus-visible {
  border-color: var(--vc-line);
  background: var(--vc-tint);
}

.vc-fav:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.vc-fav__ico {
  flex: 0 0 auto;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--vc-accent);
  color: var(--vc-on-accent);
}

.vc-fav__text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vc-fav__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.3;
}

.vc-fav__sub {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-fav__go {
  color: var(--text-secondary);
}

.vc-fav:hover .vc-fav__go,
.vc-fav:focus-visible .vc-fav__go {
  color: var(--vc-ink);
}

.vc-favs__empty {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px dashed var(--vc-line);
  border-radius: 12px;
  background: var(--vc-tint);
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.45;
}

.vc-favs__empty strong {
  color: var(--text-primary);
}

.vc-favs__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  align-self: flex-start;
  text-decoration: none;
}

.vc-favs__more:hover {
  text-decoration: underline;
}

/* Carrousel photos : flèches dessinées. */
.home-cabinet-carousel__nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}

/* Accès rapides : 1, 2 puis 4 colonnes (3 sans la page Documents). */
.vc-shortcuts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 560px) {
  .vc-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .vc-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .no-documents .vc-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.vc-shortcut {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.vc-shortcut:link,
.vc-shortcut:visited {
  color: var(--text-primary);
}

.vc-shortcut:hover,
.vc-shortcut:focus-visible {
  transform: translateY(-2px);
  border-color: var(--vc-line);
  box-shadow: var(--shadow);
}

.vc-shortcut:focus-visible {
  outline: none;
  box-shadow: var(--shadow), var(--focus-ring);
}

.vc-shortcut .vc-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.vc-shortcut__text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.vc-shortcut__title {
  font-weight: 700;
}

.vc-shortcut__desc {
  color: var(--text-secondary);
  font-size: .84rem;
}

.vc-shortcut__go {
  color: var(--vc-ink);
  transition: transform .15s ease;
}

.vc-shortcut:hover .vc-shortcut__go {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------- */
/* Annuaire                                                                    */
/* -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Équipes : même couleur pour toutes (badges, points, initiales). */
.vc--people [data-team] { --team: var(--vc-accent); }

.vc-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.vc-team-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vc-team-head:first-child {
  margin-top: 0;
}

.vc-team-head__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--team);
}

.vc-team-head__count {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 600;
}

.vc-person {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.vc-person:hover,
.vc-person:focus-visible {
  transform: translateY(-2px);
  border-color: var(--vc-line);
  box-shadow: var(--shadow);
}

.vc-person:focus-visible {
  outline: none;
  box-shadow: var(--shadow), var(--focus-ring);
}

.vc-person__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.vc-person__text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.vc-person__name {
  font-weight: 700;
  line-height: 1.3;
}

.vc-person__role {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.35;
}

.vc-person__teams {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.vc-team-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--team) 14%, var(--surface-1));
  color: color-mix(in oklab, var(--team) 82%, var(--text-primary));
  font-size: .74rem;
  font-weight: 600;
}

.vc-person__contact {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.vc-person__line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-secondary);
  font-size: .84rem;
}

.vc-person__line .ui-icon {
  color: var(--vc-ink);
}

.vc-person__line > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Photo ou initiales. */
.vc-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 14px;
  background: color-mix(in oklab, var(--team, var(--vc-accent)) 16%, var(--surface-1));
  color: color-mix(in oklab, var(--team, var(--vc-accent)) 82%, var(--text-primary));
}

.vc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vc-avatar__initials {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.vc-avatar--lg {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

.vc-avatar--lg .vc-avatar__initials {
  font-size: 1.6rem;
}

/* Fiche (tiroir). */
.vc-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vc-profile__text {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.vc-profile__role {
  margin: 0;
  color: var(--drawer-text);
  font-weight: 600;
  line-height: 1.35;
}

.vc-profile__facts {
  margin-top: 6px;
  padding: 14px;
  border: 1px solid var(--drawer-panel-border);
  border-radius: 12px;
  background: var(--drawer-surface);
  color: var(--drawer-text);
}

.vc-profile__facts .ui-icon {
  color: var(--vc-ink);
}

.vc-profile__facts li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------- */
/* Boîte à outils                                                              */
/* -------------------------------------------------------------------------- */
.vc-seg-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vc-seg-fav .vc-star {
  color: var(--vc-accent);
}

.vc-seg-count {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--vc-soft) 13%, var(--surface-1));
  color: var(--vc-ink);
  font-size: .75rem;
  line-height: 20px;
  text-align: center;
}

.vc-segmented--labels {
  justify-self: start;
}

.vc-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
}

.vc-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.vc-tool:link,
.vc-tool:visited {
  color: var(--text-primary);
}

a.vc-tool,
.vc-tool[role="button"] {
  cursor: pointer;
}

a.vc-tool:hover,
a.vc-tool:focus-visible,
.vc-tool[role="button"]:hover,
.vc-tool[role="button"]:focus-visible {
  transform: translateY(-2px);
  border-color: var(--vc-line);
  box-shadow: var(--shadow);
}

.vc-tool:focus-visible {
  outline: none;
  box-shadow: var(--shadow), var(--focus-ring);
}

.vc-tool.is-favorite {
  border-color: var(--vc-line);
}

.vc-tool.is-placeholder {
  border-style: dashed;
  background: color-mix(in oklab, var(--surface-1) 94%, var(--surface-2));
  box-shadow: none;
}

.vc-tool__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vc-tool .vc-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.vc-tool.is-placeholder .vc-icon-tile {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  box-shadow: none;
}

.vc-star-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.vc-star-btn:hover {
  border-color: var(--vc-line);
  color: var(--vc-ink);
}

.vc-star-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.vc-star-btn.is-active {
  border-color: var(--vc-line);
  background: var(--vc-tint);
  color: var(--vc-accent);
}

.vc-star-btn.is-active svg {
  fill: currentColor;
}

.vc-tool__text {
  display: grid;
  gap: 4px;
}

.vc-tool__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.vc-tool__sub {
  color: var(--vc-ink);
  font-size: .82rem;
  font-weight: 600;
}

.vc-tool.is-placeholder .vc-tool__sub {
  color: var(--text-secondary);
}

.vc-tool__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vc-tool__desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.45;
}

.vc-tool__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.vc-tool .vc-card__cta {
  margin-top: 0;
}

.vc-tool .vc-card__cta .ui-icon {
  transition: transform .15s ease;
}

a.vc-tool:hover .vc-card__cta .ui-icon,
.vc-tool[role="button"]:hover .vc-card__cta .ui-icon {
  transform: translateX(3px);
}

.vc-tool__ext {
  color: var(--text-secondary);
  font-size: .78rem;
}

.vc-tool__soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: .85rem;
  font-weight: 600;
}

.vc-empty__btn {
  margin-top: 10px;
}

/* -------------------------------------------------------------------------- */
/* Petits écrans et préférences                                                */
/* -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .vc-head {
    padding: 18px 16px;
  }

  .vc-head .vc-icon-tile {
    width: 44px;
    height: 44px;
  }

  .vc-manage {
    width: 100%;
    justify-content: center;
  }

  .vc-news__summary {
    gap: 12px;
    padding: 14px;
  }

  .vc-news.is-featured .vc-news__summary {
    padding: 16px;
  }

  .vc-news.is-featured .vc-news__title {
    font-size: 1.15rem;
  }

  .vc-news__thumb,
  .vc-news__toggle-open,
  .vc-news__toggle-close,
  .vc-news[open] .vc-news__toggle-close {
    display: none;
  }

  .vc-news__toggle {
    padding: 6px;
  }

  .vc-news__body {
    padding: 0 14px 20px;
  }

  .vc-panel {
    padding: 14px;
  }

  .vc-event {
    flex-wrap: wrap;
  }

  .vc-event .btn {
    margin-left: 68px;
  }

  .vc-state {
    align-items: flex-start;
  }

  .vc-offer__foot .btn,
  .vc-more .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Calendrier sur téléphone : des points de couleur à la place des intitulés. */
@media (max-width: 640px) {
  .vc-cal__dow,
  .vc-cal__grid {
    gap: 4px;
  }

  .vc-day {
    align-items: center;
    min-height: 52px;
    padding: 4px 2px;
  }

  .vc-day__events {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
  }

  .vc-pill {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--tag);
    font-size: 0;
  }

  .vc-pill--more {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-card,
  .vc-card__cta .ui-icon,
  .vc-news,
  .vc-news__toggle .ui-icon,
  .vc-offer,
  .vc-doc,
  .vc-day,
  .vc-event,
  .vc-shortcut,
  .vc-shortcut__go,
  .vc-fav,
  .vc-person,
  .vc-tool,
  .vc-tool .vc-card__cta .ui-icon {
    transition: none;
  }

  .vc-card:hover,
  .vc-card:focus-visible,
  .vc-card:hover .vc-card__cta .ui-icon,
  .vc-doc:hover,
  .vc-doc:focus-visible,
  .vc-shortcut:hover,
  .vc-shortcut:focus-visible,
  .vc-shortcut:hover .vc-shortcut__go,
  .vc-person:hover,
  .vc-person:focus-visible,
  .vc-tool:hover,
  .vc-tool:focus-visible,
  .vc-tool:hover .vc-card__cta .ui-icon {
    transform: none;
  }
}
