#div_aide_lateral{
    position:fixed;
    display:none;
    top:0;
    right:0;
    z-index:1049;
    height:100%;
    width: min(480px, 95vw);
    background: var(--bkg-color, #fff);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}
/* État initial / fermeture — slide hors écran à droite (collapse, pas fade) */
#div_aide_lateral.aide-offscreen,
.eb-dashboard-v2 #div_aide_lateral.aide-offscreen,
body.eb-has-topbar-v2 #div_aide_lateral.aide-offscreen{
    transform: translateX(100%) !important;
}
/* Voile d'attente du « ? » (_aide_open_placeholder) : la coquille vide du
   panneau, à sa place exacte et avec sa glissade, pour que le panneau la
   remplace sans saut ni nouvelle entrée par la droite. */
#div_aide_loading{
    position:fixed;
    top:0;
    right:0;
    z-index:1049;
    height:100%;
    width: min(480px, 95vw);
    background: var(--bkg-color, #fff);
    box-shadow: 0 10px 20px rgba(0,0,0,.19), 0 6px 6px rgba(0,0,0,.23);
    display:flex;
    align-items:center;
    justify-content:center;
    transition: transform 0.3s ease-in-out;
}
.eb-dashboard-v2 #div_aide_loading,
body.eb-has-topbar-v2 #div_aide_loading{
    top:52px;
    height:calc(100vh - 52px);
    width:400px;
    z-index:9998;
    background: var(--eb-surface, #fff);
    box-shadow: var(--eb-shadow-drawer, 0 10px 20px rgba(0,0,0,.19));
}
#div_aide_loading.aide-offscreen{
    transform: translateX(100%);
}
/* Prévenir le débordement du contenu (#9781 — sidebar croppée) */
#div_aide_lateral *,
#div_aide_lateral img,
#div_aide_lateral table {
    max-width: 100%;
    box-sizing: border-box;
}
#div_aide_lateral .div-scroll {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* V2 topbar: start below the topbar */
body.eb-has-topbar-v2 #div_aide_lateral {
    top: 56px;
    height: calc(100% - 56px);
}

#div_aide_lateral .collapse-menu2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bkg-color1);
    height: 44px;
    line-height: 44px;
    text-align: center;
    color: var(--txt-color10);
    cursor: pointer;
    border-top: 1px solid var(--eb-border);
}

#div_aide_lateral nav, #div_aide_lateral .collapse-menu2{
    width: 100%;
}
#div_aide_lateral .collapse-menu2 a{
    /* « black » : le lien « Licence » disparaissait sur le pied sombre. */
    color: var(--eb-text-secondary);
    font-weight: 600;
    font-size: small;
}
@media (hover: hover){#div_aide_lateral .collapse-menu2 a:hover{
    text-decoration: unset;
    color: var(--txt-color11);
}}
#div_aide_lateral nav .div-scroll{
    padding-top: 12px;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100% - 44px) !important;
    height: auto !important;
}

/* Tabs full width, no gaps */
#div_aide_lateral .table-responsive.table-nav {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--eb-border) !important;
}
#div_aide_lateral .nav-tabs.sub-tabs {
    margin: 0;
    padding: 0;
    border: none;
}
#div_aide_lateral .nav-tabs .nav-item {
    flex: 1;
    text-align: center;
}
#div_aide_lateral .nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 12px 8px;
    width: 100%;
}
/* `left: auto` — sous 920px, css/main.css donne à `.navbar-lateral` (le menu
   latéral V1) `left: -270px`. Le <nav id='nav_aide'> porte cette classe et
   .navbar est en position:relative : son contenu glissait de 270px vers la
   gauche, coupé par le panneau, fermeture comprise, avec 270px de blanc à
   droite. dashboard-modern.css ne l'annulait que sous .eb-dashboard-v2 :
   personnel.php (body.eb-has-topbar-v2 seul) restait cassé. Même parade que
   #div_recap_lateral (modules/recrutement/css/style.css).
   Banc : modules/aide/test/panneau_aide_etroit_browser_test.cjs */
#div_aide_lateral nav.navbar-lateral {
    padding: 0;
    margin: 0;
    width: 100%;
    left: auto;
}

.navtop-hover-keep {
    border-radius: 5px;
    text-decoration: none;
    color: var(--txt-color11);
    font-size: 15px;
}

#div_aide_lateral img, #div_aide_lateral iframe{
    max-width: 100%;
    height:auto;
}

/* Vidéo produit en tête de l'article (module_aide.js, _aide_video_html).
   Le cadre porte le 16:9 : la règle ci-dessus (`height:auto`) ramène sinon
   l'iframe à ses 150 px par défaut. */
#div_aide_lateral .eb-aide-video-frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #111827;
    cursor: pointer;
}
#div_aide_lateral .eb-aide-video-frame img,
#div_aide_lateral .eb-aide-video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
/* Image de repli (YouTube) sans bouton lecture incrusté. */
#div_aide_lateral .eb-aide-video-nue::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 74%;  /* à droite : la moitié gauche porte le titre incrusté */
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: #FA7070 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") no-repeat 55% 50% / 34px;
    box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
#div_aide_lateral button.eb-aide-video-frame:focus-visible {
    outline: 3px solid #FA7070;
    outline-offset: 2px;
}

/* bouton aide */
#a_get_aide.size_animation:not(.navtop-hover-keep) {
  -webkit-transition: all 0.35s ease-in-out;
  -moz-transition: all 0.35s ease-in-out;
  transition: all 0.35s ease-in-out;

  -moz-animation: shakeme 3s infinite;
  -o-animation: shakeme 3s infinite;
  -webkit-animation: shakeme 3s infinite;
  animation: shakeme 3s infinite;
}
@media (hover: hover){#a_get_aide.size_animation:hover{
  text-decoration: none;
}}
@keyframes shakeme {
  0% {
    -webkit-transform: scale(1);
  }
  10% {
    -webkit-transform: scale(0.6);
  }
  20% {
    -webkit-transform: scale(0.7);
    color: var(--txt-color11);
  }
  30% {
    -webkit-transform: scale(0.4);
  }
  40% {
    -webkit-transform: scale(1);
    color: var(--txt-color11);
  }
}


/* Les styles du didacticiel (.tuto_*, #steps, @keyframes clickhere) ont été
   retirés — le didacticiel sort du module aide et sera recréé dans le produit
   de base (cf. upgrade v7.1). Ci-dessous, seuls restent les styles utilisés
   par le panneau latéral d'aide et les stats qui ne sont pas liés au tuto. */

/* Scroll du panneau latéral d'aide — conservé (utilisé par getAide()). */
#div_aide_lateral .div-scroll {
  overflow-y: auto !important;
  max-height: calc(100% - 44px) !important;
}
#div_aide_lateral nav.navbar-lateral:has(> .div-scroll) {
  overflow: visible !important;
}

/* ── Expert produit promotion (Assistance tab) #9781 ── */
.eb-expert-promo {
  text-align: left;
}
.eb-expert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--eb-primary-light);
  color: var(--eb-primary);
  font-size: 22px;
}
/* Hero avec avatar gradient */
.eb-expert-hero {
  padding: 18px 12px 12px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(99,102,241,0.05) 100%);
  border-radius: 12px;
  margin-bottom: 16px;
}
.eb-expert-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  color: #fff;
  font-size: 36px;
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}
.eb-expert-tagline {
  color: var(--eb-text-secondary);
  font-size: var(--eb-fs-base);
  line-height: 1.4;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
/* Liste de features avec icônes colorées */
.eb-expert-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eb-expert-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--eb-surface);
  border: 1px solid var(--eb-border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}
@media (hover: hover){.eb-expert-feature:hover{
  border-color: #3B82F6;
  box-shadow: 0 2px 8px rgba(59,130,246,0.1);
  transform: translateY(-1px);
}}
.eb-expert-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59,130,246,0.1);
  color: #3B82F6;
  font-size: 16px;
  flex-shrink: 0;
}
.eb-expert-feature-title {
  font-weight: 600;
  font-size: var(--eb-fs-base);
  color: var(--eb-text);
  margin-bottom: 2px;
}
.eb-expert-feature-desc {
  font-size: var(--eb-fs-sm);
  color: var(--eb-text-secondary);
  line-height: 1.3;
}
/* ── Chatbot aide : chips de questions suggérées (#9750 bis) ── */
.eb-aide-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.eb-aide-chat-suggestions .small {
  width: 100%;
}
.eb-aide-chip {
  border: 1px solid var(--eb-border);
  background: var(--eb-surface);
  color: var(--eb-text);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
@media (hover: hover){.eb-aide-chip:hover{
  border-color: #3B82F6;
  background: rgba(59,130,246,0.06);
  color: #3B82F6;
}}
.eb-aide-chat-suggestions.d-none { display: none !important; }

/* ── Mobile (<768px) : largeur plein écran, padding compact ── */
@media (max-width: 767px) {
  #div_aide_loading { width: 100vw !important; }
  #div_aide_lateral {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  #div_aide_lateral nav, #div_aide_lateral .collapse-menu2 {
    width: 100% !important;
  }
  #div_aide_lateral .div-scroll {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* #12461 — L'anti-zoom sort du bloc de mise en page ci-dessus. Le reste (largeur
   100vw, retraits compacts) doit RESTER conditionné à l'écran étroit : l'étendre
   au tactile mettrait le panneau d'aide en pleine largeur sur une tablette. La
   taille du champ, elle, dépend de l'appareil et pas de la place — un iPhone
   tourné dépasse 768px et le zoom revenait à chaque frappe. */
@media (max-width: 767px), (hover: none) {
  #div_aide_lateral .eb-aide-chat-form input {
    font-size: 16px; /* évite le zoom iOS au focus */
  }
}

#content_assistance .btn_rdv {
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(59,130,246,0.25);
  transition: all 0.2s ease;
}
@media (hover: hover){#content_assistance .btn_rdv:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59,130,246,0.35);
}}
#assistance_rdv {
  background: var(--bkg-color1, #f8fafc);
  border-radius: 10px;
  border: 1px dashed var(--bor-color17, #E2E8F0);
}

/* Card "Rendez-vous en visio" (paramétrage module aide) :
   - hauteur naturelle (pas de stretch avec d'éventuelles cards voisines)
   - dropdown selectpicker plus large pour ne pas tronquer "Responsable (Prénom Nom)" */
.aide-module-wrapper .row { align-items: flex-start; }
.aide-module-wrapper .card-body { padding-bottom: 16px; }
.aide-module-wrapper .bootstrap-select { min-width: 280px; }
.aide-module-wrapper .bootstrap-select > .dropdown-toggle { width: 100%; }
/* ── Revue des écrans du 24/10/2026 ──────────────────────────────────────
   Article : texte à la taille de l'application (16 px et un titre de 20 px
   faisaient du panneau la page la plus grosse de l'écran), intertitres d'un
   cran au-dessus du texte.
   Coaching : `.small` de css/main.css (10 px en italique) rendait « Il vous
   reste : 3 rendez-vous », le solde compris, presque illisible ; les blocs
   sont resserrés. */
#div_aide_lateral #content_aide {
    margin-top: var(--eb-space-3) !important;
    color: var(--eb-text);
    font-size: var(--eb-fs-md);
    line-height: 1.55;
}
#div_aide_lateral #content_aide > h5:first-child {
    margin-bottom: var(--eb-space-2) !important;
    font-size: var(--eb-fs-xl);
    font-weight: 600;
    line-height: 1.35;
}
#div_aide_lateral #content_aide :is(h1, h2, h3, h4, h5, h6):not(:first-child) {
    margin: var(--eb-space-4) 0 var(--eb-space-1);
    font-size: var(--eb-fs-lg);
    font-weight: 600;
}
#div_aide_lateral #content_aide p {
    margin-bottom: var(--eb-space-2);
}
#div_aide_lateral #content_aide :is(ul, ol) {
    margin-bottom: var(--eb-space-2);
    padding-left: 18px;
}
#div_aide_lateral #content_aide li + li {
    margin-top: 2px;
}
#div_aide_lateral .small {
    font-size: var(--eb-fs-sm);
    font-style: normal;
}
#div_aide_lateral #content_coaching {
    margin-top: var(--eb-space-3) !important;
}
#div_aide_lateral #content_coaching .eb-expert-promo {
    padding-bottom: 0 !important;
}
#div_aide_lateral #content_coaching .eb-expert-hero {
    margin-bottom: 0 !important;
    padding: 14px 12px 12px;
}
#div_aide_lateral #content_coaching .eb-expert-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: var(--eb-space-2) !important;
    background: var(--eb-primary);
    font-size: 26px;
    box-shadow: none;
}
#div_aide_lateral #coaching_rdv {
    margin-top: var(--eb-space-1) !important;
}
#div_aide_lateral #coaching_rdv .gap-2 {
    gap: var(--eb-space-1) !important;
}
#div_aide_lateral #coaching_rdv #nb_rdv {
    color: var(--eb-text);
    font-size: var(--eb-fs-md);
}
#div_aide_lateral #content_coaching .border-top {
    border-color: var(--eb-border) !important;
}
#div_aide_lateral #content_coaching .text-muted {
    color: var(--eb-text-secondary) !important;
}
@media (hover: hover) {
    #div_aide_lateral .collapse-menu2 a:hover {
        color: var(--eb-primary);
    }
}

/* ------------------------------------------------------------------
   Onglet « Nouveautés » (module_aide.js, _aide_nouv_*)
   ------------------------------------------------------------------ */
#div_aide_lateral .eb-nouv-pastille {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    vertical-align: super;
    border-radius: 50%;
    background: var(--eb-danger, #DC2626);
}
#div_aide_lateral .eb-nouv-pastille[hidden] { display: none; }
#div_aide_lateral .eb-nouv { padding: 0 6px; }
#div_aide_lateral .eb-nouv-intro {
    font-size: 0.82rem;
    color: var(--eb-text-secondary);
    margin-bottom: 10px;
}
#div_aide_lateral .eb-nouv-recherche { position: relative; margin-bottom: 10px; }
#div_aide_lateral .eb-nouv-recherche > i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--eb-text-secondary);
    pointer-events: none;
}
/* !important : dashboard-modern.css impose son retrait à tout .form-control. */
#div_aide_lateral .eb-nouv-recherche input.form-control { padding-left: 30px !important; }
/* Puces de catégories : une ligne qui défile, jamais deux étages. */
#div_aide_lateral .eb-nouv-cats {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 6px;
    scrollbar-width: thin;
}
#div_aide_lateral .eb-nouv-cat {
    flex: 0 0 auto;
    border: 1px solid var(--eb-border);
    background: var(--eb-surface, transparent);
    color: var(--eb-text-secondary, #475569);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
}
#div_aide_lateral .eb-nouv-cat i { font-size: 0.72rem; opacity: .75; }
#div_aide_lateral .eb-nouv-cat.active {
    border-color: var(--eb-primary, #2563EB);
    background: var(--eb-primary-light, #EFF6FF);
    color: var(--eb-primary, #2563EB);
}
#div_aide_lateral .eb-nouv-mois {
    position: sticky;
    top: -12px;
    z-index: 1;
    margin: 14px -6px 4px;
    padding: 6px 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--eb-text-secondary);
    background: var(--bkg-color, #fff);
}
#div_aide_lateral .eb-nouv-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--eb-border);
}
#div_aide_lateral .eb-nouv-item:last-child { border-bottom: 0; }
#div_aide_lateral .eb-nouv-icone {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    background: var(--eb-primary-light, #EFF6FF);
    color: var(--eb-primary, #2563EB);
}
#div_aide_lateral .eb-nouv-cat-personnel .eb-nouv-icone     { background: rgba(124,58,237,.12); color: #7C3AED; }
#div_aide_lateral .eb-nouv-cat-logistique .eb-nouv-icone    { background: rgba(217,119,6,.12);  color: #B45309; }
#div_aide_lateral .eb-nouv-cat-interventions .eb-nouv-icone { background: rgba(220,38,38,.12);  color: #DC2626; }
#div_aide_lateral .eb-nouv-cat-finances .eb-nouv-icone      { background: rgba(5,150,105,.12);  color: #047857; }
#div_aide_lateral .eb-nouv-cat-communication .eb-nouv-icone { background: rgba(8,145,178,.12);  color: #0E7490; }
#div_aide_lateral .eb-nouv-cat-mobile .eb-nouv-icone        { background: rgba(219,39,119,.12); color: #BE185D; }
#div_aide_lateral .eb-nouv-cat-admin .eb-nouv-icone         { background: rgba(100,116,139,.15); color: #475569; }
#div_aide_lateral .eb-nouv-corps { min-width: 0; flex: 1; }
#div_aide_lateral .eb-nouv-meta { font-size: 0.74rem; color: var(--eb-text-secondary); }
#div_aide_lateral .eb-nouv-badge {
    background: var(--eb-danger, #DC2626);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    vertical-align: 1px;
}
#div_aide_lateral .eb-nouv-titre {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 2px 0 3px;
    line-height: 1.3;
}
#div_aide_lateral .eb-nouv-texte {
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.45;
}
#div_aide_lateral .eb-nouv-lien {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Visite guidée de l'écran, en tête de l'onglet Aide (module_aide.js,
   _aide_tour_html) : remplace l'ancienne icône « itinéraire » de la barre. */
#div_aide_lateral .eb-aide-tour {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 4px 16px;
    padding: 12px;
    border: 1px solid var(--eb-border, #e2e8f0);
    border-radius: var(--eb-radius-md);
    background: var(--eb-bg, #f8fafc);
    text-align: left;
}
#div_aide_lateral .eb-aide-tour-ico {
    flex: none;
    font-size: var(--eb-fs-lg);
    color: var(--eb-primary, #3b82f6);
}
#div_aide_lateral .eb-aide-tour-txt {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
#div_aide_lateral .eb-aide-tour-txt span {
    font-size: var(--eb-fs-sm);
    color: var(--eb-text-muted, #64748b);
}
#div_aide_lateral .eb-aide-tour .btn {
    flex: none;
    min-height: 36px;
}

/* ── Rendez-vous à venir (panneau Coaching + paramétrage du module) ─────────
   Une carte par rendez-vous : pastille de date teintée selon le mode (bleu
   pour une visio, vert pour un appel), heure de début et de fin, la personne
   attendue avec ses initiales, puis la façon de s'y rendre. Couleurs tirées
   des jetons --eb-* : le mode sombre suit tout seul. */
.eb-rdv-bloc {
  --eb-rdv-accent: var(--eb-primary, #2563EB);
  text-align: left;
}
.eb-rdv-entete { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.eb-rdv-entete-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  background: color-mix(in srgb, var(--eb-primary, #2563EB) 12%, transparent);
  color: var(--eb-primary, #2563EB); font-size: 14px;
}
.eb-rdv-titre { margin: 0; font-size: 1rem; font-weight: 700; color: var(--eb-text, #1E293B); letter-spacing: -.01em; }
.eb-rdv-compte {
  margin-left: auto; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eb-primary, #2563EB); color: #fff; font-size: .75rem; font-weight: 700;
}
.eb-rdv-liste {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.eb-rdv-bloc--panneau .eb-rdv-liste { grid-template-columns: 1fr; gap: 10px; }

.eb-rdv {
  --eb-rdv-accent: var(--eb-primary, #2563EB);
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; row-gap: 12px;
  padding: 14px; border-radius: 14px;
  background: var(--eb-surface, #fff);
  border: 1px solid var(--eb-border, #E2E8F0);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px -6px rgba(15,23,42,.10);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.eb-rdv:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--eb-rdv-accent) 35%, var(--eb-border, #E2E8F0));
  box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 10px 24px -10px color-mix(in srgb, var(--eb-rdv-accent) 45%, transparent);
}
.eb-rdv--telephone { --eb-rdv-accent: var(--eb-success, #10B981); }
.eb-rdv--autre     { --eb-rdv-accent: var(--eb-text-secondary, #64748B); }

/* Pastille de date, façon feuillet de calendrier */
.eb-rdv-date {
  display: flex; flex-direction: column; align-items: center; overflow: hidden;
  width: 56px; height: 62px; border-radius: 12px; align-self: start;
  background: color-mix(in srgb, var(--eb-rdv-accent) 9%, var(--eb-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--eb-rdv-accent) 22%, transparent);
}
.eb-rdv-mois {
  width: 100%; padding: 3px 0 2px; text-align: center;
  background: var(--eb-rdv-accent); color: #fff;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.eb-rdv-jour {
  flex: 1; display: flex; align-items: center;
  font-size: 1.45rem; font-weight: 800; line-height: 1; color: var(--eb-text, #1E293B);
  font-variant-numeric: tabular-nums;
}

.eb-rdv-corps { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.eb-rdv-haut { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eb-rdv-quand {
  font-size: .95rem; font-weight: 700; color: var(--eb-text, #1E293B);
}
.eb-rdv-quand::first-letter { text-transform: uppercase; }
.eb-rdv-chip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  font-size: .7rem; font-weight: 600;
  color: var(--eb-rdv-accent);
  background: color-mix(in srgb, var(--eb-rdv-accent) 12%, transparent);
}
.eb-rdv-chip i { font-size: .68rem; }
.eb-rdv-heure {
  font-size: .85rem; font-weight: 600; color: var(--eb-text, #1E293B);
  font-variant-numeric: tabular-nums;
}
.eb-rdv-type { font-size: .78rem; color: var(--eb-text-secondary, #64748B); }
.eb-rdv-qui { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.eb-rdv-avatar {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .66rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, hsl(var(--eb-rdv-teinte, 220) 70% 58%), hsl(calc(var(--eb-rdv-teinte, 220) + 35) 65% 48%));
  box-shadow: 0 0 0 2px var(--eb-surface, #fff);
}
.eb-rdv-nom {
  font-size: .82rem; font-weight: 500; color: var(--eb-text, #1E293B);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* La façon de s'y rendre : toute la largeur de la carte */
.eb-rdv-rejoindre, .eb-rdv-appel, .eb-rdv-attente { grid-column: 1 / -1; }
.eb-rdv-attente {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--eb-primary, #2563EB) 35%, var(--eb-border, #E2E8F0));
  color: var(--eb-text-secondary, #64748B); font-size: .8rem;
}
.eb-rdv-attente i { color: var(--eb-primary, #2563EB); font-size: .78rem; }
.eb-rdv-rejoindre {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; text-decoration: none !important;
  color: #fff !important; font-size: .88rem; font-weight: 600;
  background: linear-gradient(135deg, var(--eb-primary, #2563EB), color-mix(in srgb, var(--eb-primary, #2563EB) 70%, #7C3AED));
  box-shadow: 0 6px 16px -8px var(--eb-primary, #2563EB);
  transition: filter .15s ease, box-shadow .15s ease;
}
.eb-rdv-rejoindre:hover { filter: brightness(1.06); box-shadow: 0 8px 20px -8px var(--eb-primary, #2563EB); }
.eb-rdv-rejoindre:focus-visible { outline: 2px solid var(--eb-primary, #2563EB); outline-offset: 2px; }
.eb-rdv-rejoindre .eb-rdv-fleche { margin-left: auto; font-size: .8rem; transition: transform .15s ease; }
.eb-rdv-rejoindre:hover .eb-rdv-fleche { transform: translateX(3px); }
.eb-rdv-appel {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--eb-success, #10B981) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--eb-success, #10B981) 22%, transparent);
}
.eb-rdv-appel-ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eb-success, #10B981); color: #fff; font-size: .78rem;
}
.eb-rdv-appel-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.eb-rdv-appel-txt strong { font-size: .72rem; font-weight: 600; color: var(--eb-text-secondary, #64748B); }
.eb-rdv-appel-txt a {
  font-size: .85rem; font-weight: 600; color: var(--eb-text, #1E293B) !important;
  font-variant-numeric: tabular-nums; text-decoration: none;
}
.eb-rdv-appel-txt a:hover { text-decoration: underline; }

/* Séance en cours : un liseré qui pulse doucement */
.eb-rdv--en-cours { border-color: var(--eb-rdv-accent); }
.eb-rdv--en-cours .eb-rdv-quand { color: var(--eb-rdv-accent); }
.eb-rdv--en-cours .eb-rdv-quand::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; vertical-align: middle;
  border-radius: 50%; background: var(--eb-rdv-accent);
  animation: eb-rdv-pulse 1.6s ease-in-out infinite;
}
@keyframes eb-rdv-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .eb-rdv, .eb-rdv-rejoindre, .eb-rdv-fleche { transition: none; }
  .eb-rdv:hover { transform: none; }
  .eb-rdv--en-cours .eb-rdv-quand::before { animation: none; }
}
