/* ============================================================
   MON ESPACE SANTÉ — v5
   Fond bleu clair pleine page · sidebar carte blanche
   Iframe pour les modules : zéro conflit JS
   Responsive : desktop | ≤1199 tablette | ≤767 mobile | ≤400 xs
   ============================================================ */

:root {
  --mes-blue:       #1b6ca8;
  --mes-blue-lt:    #e8f2fb;
  --mes-blue-mid:   #4a90c4;
  --mes-blue-dk:    #124e7a;
  --mes-pink:       #e91e8c;
  --mes-pink-dk:    #c2185b;
  --mes-white:      #ffffff;
  --mes-page-bg:    #e8f2fb;   /* fond bleu clair pleine page */
  --mes-gray-100:   #f1f5f9;
  --mes-gray-200:   #e2e8f0;
  --mes-gray-400:   #94a3b8;
  --mes-gray-600:   #475569;
  --mes-gray-800:   #1e293b;
  --mes-sidebar-w:  250px;
  --mes-radius:     12px;
  --mes-shadow:     0 2px 16px rgba(27,108,168,.12);
  --mes-font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mes-ease:       .18s ease;
}

#mes-portail, #mes-portail * { box-sizing: border-box; }
#mes-portail { font-family: var(--mes-font); color: var(--mes-gray-800); min-height: 100vh; transition: background .3s; }

/* Bande ADCOM+ arrondie sous le portail */
/* Bande ADCOM+ dans le portail principal (dans .mes-content) */
.mes-adcom-credit {
  display: flex; align-items: center; justify-content: center;
  background: #e8f4fd; color: #1b6ca8;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  border-top: 1.5px solid #c3d8ef;
  border-radius: 0 0 var(--mes-radius) var(--mes-radius);
  margin-top: auto;
}
/* Variante auth : boîte autonome avec 4 coins arrondis */
.mes-adcom-credit--auth {
  border-radius: var(--mes-radius);
  border: 1.5px solid #c3d8ef;
  border-top: 1.5px solid #c3d8ef;
  margin: 16px 0;
}
.mes-adcom-credit a { color: #124e7a; font-weight: 700; text-decoration: none; }
.mes-adcom-credit a:hover { text-decoration: underline; }
@media print { .mes-adcom-credit { display: none !important; } }

/* Neutralise les paddings de WPBakery/Salient qui entourent le shortcode */
.entry-content #mes-portail,
.wpb_wrapper #mes-portail,
.vc_column-inner #mes-portail,
.wpb_content_element #mes-portail {
  margin: 0 !important;
  padding: 0 !important;
}
/* Neutralise overflow:hidden des wrappers Salient/WPBakery qui coupe le contenu */
.entry-content:has(#mes-portail),
.wpb_wrapper:has(#mes-portail),
.vc_column-inner:has(#mes-portail),
.wpb_content_element:has(#mes-portail) {
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: var(--mes-page-bg) !important;
}


/* ============================================================
   TOPBAR mobile
   ============================================================ */
.mes-topbar {
  display: none; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--mes-white);
  border-bottom: 2px solid var(--mes-blue-lt);
  position: sticky; top: 0; z-index: 50;
}
.mes-topbar-toggle {
  background: none; border: 1px solid var(--mes-gray-200);
  border-radius: 6px; padding: 5px 7px;
  color: var(--mes-gray-600); cursor: pointer; display: flex; align-items: center;
}
.mes-topbar-logo { display: flex; align-items: center; }
.mes-topbar-title { font-size: .9rem; font-weight: 700; color: var(--mes-blue); }

/* ============================================================
   FOND PLEINE PAGE — échappe les containers du thème
   ============================================================ */
#mes-portail {
  width: 100%;
  min-height: 80vh;
  background: var(--mes-page-bg);
  /* Neutralise les marges/paddings injectés par WPBakery et Salient */
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  /* Brise le conteneur parent pour s'étendre sur toute la largeur */
  position: relative;
}

/* ============================================================
   LAYOUT — pleine largeur, padding réduit
   ============================================================ */
.mes-layout {
  display: flex;
  width: 100%;
  /* Pas de max-width — on utilise toute la largeur disponible */
  padding: 16px calc(20px + var(--mes-pad, 0%)) 40px;
  gap: 20px;
  align-items: flex-start;
}

/* ============================================================
   SIDEBAR — carte blanche, largeur fixe invariable
   ============================================================ */
.mes-sidebar {
  width: 240px;           /* fixe — ne change jamais en desktop */
  min-width: 240px;       /* empêche le shrink */
  max-width: 240px;       /* empêche le grow */
  flex-shrink: 0;
  flex-grow: 0;
  background: var(--mes-white);
  border-radius: var(--mes-radius);
  box-shadow: var(--mes-shadow);
  display: flex; flex-direction: column;
  position: sticky; top: 24px;
  overflow: hidden;
  align-self: flex-start;
}

.mes-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 28px 16px 24px;   /* +~100px de hauteur totale sur la section header */
  border-bottom: 1px solid var(--mes-blue-lt);
  min-height: 90px;          /* hauteur minimum garantie */
}
.mes-brand-icon {
  width: 44px; height: 44px;  /* icône un peu plus grande */
  background: var(--mes-pink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(233,30,140,.30);
}
.mes-brand-name {
  display: block; font-size: .9rem; font-weight: 700;
  color: var(--mes-blue); line-height: 1.25;
}
.mes-brand-role {
  display: block; font-size: .69rem; color: var(--mes-gray-400);
  font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase; margin-top: 3px;
}

/* ── Bloc utilisateur rose (remplace user-block + msg-block) ── */
.mes-user-card {
  margin: 10px 10px 4px;
  background: linear-gradient(135deg, var(--mes-pink), var(--mes-pink-dk));
  border-radius: 10px;
  padding: 14px 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.mes-user-card-avatar {
  width: 48px !important; height: 48px !important;
  border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.5);
  object-fit: cover;
}
.mes-user-card-info { overflow: hidden; }
.mes-user-card-info strong {
  display: block; font-size: .88rem; font-weight: 700;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mes-user-card-info span {
  display: block; font-size: .7rem; color: rgba(255,255,255,.75);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

.mes-nav { padding: 8px 8px 4px; display: flex; flex-direction: column; gap: 2px; }
.mes-nav-btn {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; background: none; border: none;
  border-radius: 7px; cursor: pointer; text-align: left;
  font-family: var(--mes-font); font-size: .86rem; font-weight: 400;
  color: var(--mes-gray-600);
  transition: background var(--mes-ease), color var(--mes-ease);
}
.mes-nav-btn:hover:not([disabled]) { background: var(--mes-blue-lt); color: var(--mes-blue); }
.mes-nav-btn.active { background: var(--mes-blue); color: #fff; font-weight: 600; }
.mes-nav-btn.active .mes-nav-icon { opacity: 1; }
.mes-nav-btn[disabled] { color: var(--mes-gray-400); cursor: default; }
.mes-nav-icon { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; opacity: .65; }
.mes-nav-label { flex: 1; line-height: 1.2; }
.mes-nav-soon-chip {
  font-size: .6rem; background: var(--mes-gray-100); color: var(--mes-gray-400);
  border-radius: 20px; padding: 2px 6px; letter-spacing: .04em;
  text-transform: uppercase; flex-shrink: 0;
}

/* Badge nouveautés */
.mes-nav-badge {
  margin-left: auto;
  background: var(--mes-pink);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
  animation: mes-badge-pop .25s ease;
}
@keyframes mes-badge-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.mes-sidebar-footer {
  padding: 10px 14px 12px; border-top: 1px solid var(--mes-gray-100); margin-top: auto;
}
.mes-deconnect {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--mes-gray-400); text-decoration: none;
  transition: color var(--mes-ease);
}
.mes-deconnect:hover { color: var(--mes-gray-800); }

.mes-sidebar-close {
  position: absolute; top: 10px; right: 10px;
  background: none; border: none; color: var(--mes-gray-400);
  cursor: pointer; font-size: 1.1rem;
  width: 28px; height: 28px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}

/* ============================================================
   CONTENU — carte blanche, pleine hauteur
   ============================================================ */
.mes-content {
  flex: 1; min-width: 0;
  background: var(--mes-white);
  border-radius: var(--mes-radius);
  box-shadow: var(--mes-shadow);
  overflow: visible;
  min-height: 400px;
  display: flex; flex-direction: column;
}

/* Welcome */
.mes-welcome {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}
.mes-welcome-inner { text-align: center; max-width: 380px; }
.mes-welcome-heart { margin-bottom: 18px; display: flex; justify-content: center; }
.mes-welcome-title {
  font-size: 1.35rem; font-weight: 700; color: var(--mes-gray-800);
  margin-bottom: 10px; line-height: 1.3;
}
.mes-welcome-sub {
  font-size: .9rem; color: var(--mes-gray-400);
  line-height: 1.6; margin-bottom: 24px;
}
.mes-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; background: var(--mes-blue); color: #fff;
  border: none; border-radius: 8px;
  font-family: var(--mes-font); font-size: .9rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--mes-ease), transform var(--mes-ease), box-shadow var(--mes-ease);
}
.mes-cta:hover { background: var(--mes-blue-dk); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,108,168,.28); }

/* Loader */
.mes-loader {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 60px;
  color: var(--mes-gray-400); font-size: .88rem;
}
.mes-spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--mes-gray-200);
  border-top-color: var(--mes-blue);
  border-radius: 50%;
  animation: mes-spin .65s linear infinite;
}
@keyframes mes-spin { to { transform: rotate(360deg); } }

/* Iframe — hauteur pilotee par postMessage.
   flex:none = la hauteur inline (height: Npx) est respectee directement.
   Avec flex:1 dans un parent height:auto, le moteur flex ignorait
   la hauteur inline et rendait l'iframe a min-height seulement. */
.mes-frame {
  flex: none;
  width: 100%;
  border: none;
  display: block;
  min-height: 300px;
  height: 300px;   /* valeur initiale avant le premier postMessage */
  overflow: hidden;
}


/* Zone module fallback */
.mes-module-content {
  flex: 1;
  width: 100%;
  min-height: 400px;
  overflow: visible;
}

/* Lien logo sidebar → accueil */
.mes-brand-link {
  display: block; text-decoration: none;
  transition: opacity .2s;
}
.mes-brand-link:hover { opacity: .85; }

/* Carte utilisateur cliquable → Mon profil */
.mes-user-card-clickable { cursor: pointer; }
.mes-user-card-clickable:hover { filter: brightness(1.1); }
.mes-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,46,74,.38); z-index: 99;
}
.mes-overlay.show { display: block; }

/* ============================================================
   RESPONSIVE — tablette ≤1199
   ============================================================ */
@media (max-width: 1199px) {
  .mes-layout { padding: 16px 16px 32px; gap: 16px; }
  /* La sidebar garde sa largeur fixe — on réduit juste les paddings */
}

/* ============================================================
   RESPONSIVE — mobile ≤767
   ============================================================ */
@media (max-width: 767px) {
  .mes-topbar { display: flex; }
  /* Sur mobile : plus de padding lateral, le contenu prend toute la largeur */
  .mes-layout {
    flex-direction: column;
    padding: 0 0 32px;
    gap: 0;
  }

  /* Formulaires 2 colonnes -> auto-responsive via auto-fit minmax (cf. plus bas) */
  .mes-pec-col-right { margin-top: 0; }

  .mes-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 240px; min-width: 240px; max-width: 240px;
    border-radius: 0; z-index: 100;
    transform: translateX(-110%);
    transition: transform .22s ease;
    box-shadow: 4px 0 24px rgba(26,46,74,.2);
    overflow-y: auto;
    align-self: auto;
  }
  .mes-sidebar.open { transform: translateX(0); }
  .mes-sidebar-close { display: flex !important; }

  /* Contenu pleine largeur, pas de min-height fixe (l'iframe se redimensionne) */
  .mes-content {
    width: 100%;
    border-radius: 0;
    min-height: 0;
    box-shadow: none;
    overflow: visible; /* important : permet à l'iframe de s'étirer */
  }
  .mes-frame {
    /* NE PAS mettre height:auto !important : ça efface le height inline du postMessage.
       La hauteur est contrôlee exclusivement via JS (espace-sante.js + bare_page). */
    min-height: 300px;
  }
  .mes-welcome { padding: 32px 16px; }
  .mes-settings-panel { padding: 8px 16px 24px; }
}

/* ============================================================
   RESPONSIVE — xs ≤400
   ============================================================ */
@media (max-width: 400px) {
  .mes-layout { padding: 8px 8px 24px; gap: 8px; }
  .mes-topbar-title { font-size: .8rem; }
  .mes-welcome-title { font-size: 1rem; }
  /* Sur très petit écran la sidebar prend 88% de la largeur */
  .mes-sidebar { width: 88vw !important; min-width: 0 !important; max-width: 88vw !important; }
}

/* ══════════════════════════════════════════════════════════════
   AUTH — Login / Inscription intégrés
══════════════════════════════════════════════════════════════ */
.mes-portail-auth { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
/* Masquer la topbar mobile sur la page de connexion */
.mes-portail-auth .mes-topbar { display: none !important; }

/* Layout auth : sidebar + formulaire côte à côte */
.mes-layout-auth { display: flex; min-height: 520px; }
.mes-sidebar-auth { display: flex; flex-direction: column; width: 260px; flex-shrink: 0; }
.mes-auth-sidebar-body { padding: 24px 20px; flex: 1; }
.mes-auth-tagline { color: rgba(255,255,255,.75); font-size: .85rem; line-height: 1.6; margin: 0; }

.mes-content-auth { flex: 1; padding: 32px 36px; background: #f8fafc; overflow-y: auto; }
.mes-content-auth > * { max-width: 520px; }
/* Les panels 2 colonnes ne sont pas limités en largeur */
#mes-auth-register,
#mes-auth-rejoindre { max-width: 100%; }
.mes-auth-tabs { max-width: 100%; }

/* Onglets */
.mes-auth-tabs { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 2px solid #e2e8f0; }
.mes-auth-tab {
  flex: 1; text-align: center;
  background: none; border: none; padding: 9px 2px; font-size: .78rem; font-weight: 600;
  color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s; line-height: 1.3; word-break: break-word;
}
.mes-auth-tab.active { color: #e91e8c; border-bottom-color: #e91e8c; }
.mes-auth-tab:hover:not(.active) { color: #334155; }

/* Panels */
.mes-auth-panel { display: none; }
.mes-auth-panel.active { display: block; }
.mes-auth-title { font-size: 1.25rem; font-weight: 600; color: #1e293b; margin: 0 0 20px; }

/* Champs */
.mes-auth-field { margin-bottom: 16px; }
.mes-auth-field label { display: block; font-size: .85rem; font-weight: 500; color: #475569; margin-bottom: 5px; }
.mes-auth-field label small { font-weight: 400; color: #94a3b8; }
.mes-auth-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid #cbd5e1; border-radius: 8px;
  font-size: .95rem; color: #1e293b; background: #fff; box-sizing: border-box;
  transition: border-color .2s;
}
.mes-auth-input:focus { outline: none; border-color: #e91e8c; box-shadow: 0 0 0 3px rgba(233,30,140,.1); }

.mes-auth-row { display: flex; gap: 12px; }
.mes-auth-row .mes-auth-field { flex: 1; min-width: 0; }

/* Remember */
.mes-auth-remember { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #475569; margin-bottom: 20px; cursor: pointer; }
.mes-auth-remember input { width: auto; margin: 0; accent-color: #e91e8c; }

/* Bouton submit */
.mes-auth-submit {
  width: 100%; padding: 11px; background: #e91e8c; color: #fff; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s, transform .1s;
}
.mes-auth-submit:hover { background: #c2185b; }
.mes-auth-submit:active { transform: scale(.98); }
.mes-auth-submit:disabled { background: #f9a8d4; cursor: default; }

.mes-auth-links { margin-top: 14px; text-align: center; }
.mes-auth-links a { color: #64748b; font-size: .85rem; text-decoration: none; }
.mes-auth-links a:hover { color: #e91e8c; }

/* Messages */
.mes-auth-error, .mes-auth-success {
  padding: 10px 14px; border-radius: 8px; font-size: .88rem; margin-bottom: 16px;
}
.mes-auth-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.mes-auth-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.mes-auth-hint    { font-size: .78rem; color: #94a3b8; margin: 5px 0 0; }

/* Formulaires 2 colonnes (PEC + Rejoindre)
   Grid auto-responsive : 2 colonnes quand le container fait >= 800px,
   1 colonne automatiquement en dessous (mobile portrait ET paysage).
   Plus besoin de media query qui peut ne pas se declencher selon le contexte. */
.mes-pec-two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  align-items: start;
}
.mes-pec-col-left,
.mes-pec-col-right { min-width: 0; }
.mes-pec-col-right {
  background: #f0f6fc;
  border: 1px solid #d1e3f5;
  border-radius: 12px;
  padding: 20px;
}

/* Recherche médecin */
.mes-doctor-search-wrap { position: relative; }
.mes-doctor-search-input-wrap { position: relative; }
.mes-doctor-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1); max-height: 220px; overflow-y: auto;
}
.mes-dr-item {
  padding: 10px 14px; cursor: pointer; font-size: .88rem; color: #334155;
  border-bottom: 1px solid #f1f5f9; transition: background .15s;
}
.mes-dr-item:last-child { border-bottom: none; }
.mes-dr-item:hover { background: #fdf2f8; color: #e91e8c; }
.mes-dr-none { color: #94a3b8; cursor: default; }
.mes-dr-none:hover { background: none; color: #94a3b8; }

.mes-doctor-selected {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
  padding: 8px 12px; font-size: .88rem; color: #16a34a;
}
.mes-doctor-selected span { flex: 1; }
.mes-doctor-clear { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; }
.mes-doctor-clear:hover { color: #ef4444; }

/* Admin modal */
.mes-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
}
.mes-modal-box {
  background: #fff; border-radius: 8px; padding: 28px 32px;
  width: 520px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.mes-modal-wide { width: 700px; }
.mes-modal-footer { margin-top: 20px; display: flex; gap: 8px; }
.mes-admin-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-top: 16px; }
.mes-admin-box h2 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.mes-td-actions { white-space: nowrap; }
.mes-link-row { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.mes-link-row select { flex: 1; }

/* Responsive auth */
@media (max-width: 640px) {
  .mes-layout-auth { flex-direction: column; }
  .mes-sidebar-auth { width: 100%; }
  .mes-content-auth { padding: 20px 16px; }
  .mes-auth-row { flex-direction: column; gap: 0; }
  .mes-admin-cols { grid-template-columns: 1fr; }
}

/* ── Mot de passe : génération + force + toggle ────────────────────────── */
.mes-gen-pass-btn {
  background: none; border: none; padding: 0; margin-left: 8px;
  font-size: .78rem; font-weight: 500; color: #e91e8c; cursor: pointer;
  text-decoration: underline; vertical-align: middle;
}
.mes-gen-pass-btn:hover { color: #c2185b; }

.mes-pass-input-wrap { position: relative; display: flex; align-items: center; }
.mes-pass-input-wrap .mes-auth-input { padding-right: 42px; }
.mes-pass-toggle {
  position: absolute; right: 10px; background: none; border: none;
  cursor: pointer; font-size: 1rem; line-height: 1; color: #94a3b8; padding: 0;
}
.mes-pass-toggle:hover { color: #475569; }

.mes-pass-strength { margin-top: 6px; }
.mes-pass-strength-bar {
  height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
.mes-pass-strength-bar div {
  height: 100%; border-radius: 2px; transition: width .3s ease, background .3s ease;
}
#mes-pass-strength-label { font-size: .75rem; font-weight: 600; }

/* ── Anti-bot ────────────────────────────────────────────────────────────── */
/* Honeypot : invisible pour les humains */
.mes-hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
/* Question mathématique */
.mes-captcha-field { background: #f8fafc; border: 1.5px dashed #cbd5e1; border-radius: 8px; padding: 12px 14px; }
.mes-captcha-field label { color: #334155 !important; font-size: .88rem !important; }
.mes-captcha-field .mes-auth-field-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mes-captcha-icon { margin-right: 4px; }
.mes-captcha-input { width: 80px !important; max-width: 80px !important; min-width: 0; text-align: center; font-size: 1.1rem !important; font-weight: 600; letter-spacing: .05em; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   BOUTON PARAMÈTRES
   ═══════════════════════════════════════════════════════════ */
.mes-nav-settings {
  margin-top: auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
  opacity: .85;
}
.mes-nav-settings:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   PANEL PARAMÈTRES — 2 colonnes sur desktop, 1 colonne mobile
   ═══════════════════════════════════════════════════════════ */
.mes-settings-panel {
  padding: 12px 32px 28px;
  /* Pas de max-width : on utilise toute la largeur disponible */
  animation: mes-fade-in .2s ease;
}
@keyframes mes-fade-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.mes-settings-header h2  { margin: 0 0 4px; font-size: 1.25rem; color: #1e293b; }
.mes-settings-header p   { margin: 0 0 16px; color: #64748b; font-size: .9rem; }

/* Conteneur des sections : grid 2 colonnes auto-responsive.
   minmax(min(100%, 360px), 1fr) -> passe automatiquement en 1 colonne
   quand le container fait moins de ~760px (= 2×360 + gap). */
.mes-settings-panel > .mes-settings-section,
.mes-settings-panel form .mes-settings-section {
  break-inside: avoid;
}
.mes-settings-panel {
  display: block;
}
.mes-settings-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 20px 28px;
  align-items: start;
}

/* ── Sections ── */
.mes-settings-section { margin-bottom: 0; }
.mes-settings-section h3 {
  font-size: .95rem; font-weight: 700; color: #1e293b;
  margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

/* ── Groupes ── */
.mes-settings-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.mes-settings-group-title {
  font-size: .8rem; font-weight: 700;
  color: #64748b; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 12px;
}

/* ── Lignes toggle ── */
.mes-toggle-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 0; cursor: pointer;
  font-size: .88rem; color: #334155;
  border-bottom: 1px solid #f1f5f9;
  user-select: none;
}
.mes-toggle-row .mes-toggle-wrap { margin-top: 2px; }
.mes-toggle-row:last-child { border-bottom: none; }
.mes-toggle-row.mes-sub { padding-left: 14px; color: #475569; font-size: .83rem; }

/* ── Switch toggle ── */
.mes-toggle-wrap { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; margin-left: 12px; }
.mes-toggle-wrap input { opacity: 0; width: 0; height: 0; }
.mes-toggle-slider {
  position: absolute; inset: 0; background: #cbd5e1;
  border-radius: 24px; cursor: pointer; transition: background .2s;
}
.mes-toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.mes-toggle-wrap input:checked + .mes-toggle-slider { background: #e91e8c; }
.mes-toggle-wrap input:checked + .mes-toggle-slider::before { transform: translateX(18px); }
.mes-toggle-wrap input:disabled + .mes-toggle-slider { opacity: .4; cursor: default; }

/* ── Sous-préfs désactivées ── */
.mes-sub-prefs { overflow: hidden; transition: opacity .2s; }
.mes-sub-prefs-disabled { opacity: .4; pointer-events: none; }

/* ── Statut notifications ── */
.mes-notif-status {
  border-radius: 8px; padding: 10px 14px;
  font-size: .85rem; margin-bottom: 16px; line-height: 1.5;
}
.mes-notif-ok      { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.mes-notif-err     { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.mes-notif-warn    { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.mes-notif-pending { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; text-align: center; padding: 14px; }
.mes-btn-request-notif {
  background: #e91e8c; color: #fff; border: none;
  border-radius: 8px; padding: 10px 20px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  margin-bottom: 6px; display: inline-block;
}
.mes-btn-request-notif:hover { background: #c2185b; }
.mes-notif-pending small { display: block; color: #3b82f6; font-size: .78rem; margin-top: 4px; }
.mes-notif-help-btn {
  margin-top: 8px; background: none; border: 1px solid #fca5a5;
  color: #dc2626; border-radius: 6px; padding: 4px 10px;
  font-size: .78rem; cursor: pointer;
}

/* ── Barre de sauvegarde ── */
.mes-settings-save-bar {
  position: sticky; bottom: 0;
  background: #fff; border-top: 1px solid #e2e8f0;
  padding: 14px 0; margin-top: 8px;
  display: flex; align-items: center; gap: 14px;
}
.mes-settings-save-btn {
  background: #e91e8c; color: #fff; border: none;
  border-radius: 8px; padding: 10px 24px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.mes-settings-save-btn:hover { background: #c2185b; }

@media (max-width: 600px) {
  .mes-settings-panel { padding: 8px 16px 24px; }
}
/* ============================================================
   DASHBOARD PATIENT — mpd-*
   ============================================================ */

.mpd-wrap {
  padding: 32px 40px 48px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .mpd-wrap { padding: 20px 16px 36px; }
}

/* ── Bloc bonjour patient (réutilise le style médecin) ── */
.mpd-hello-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e8edf4;
}
.mpd-hello-cta {
  margin-top: 18px;
}

/* ── Notification messages non lus ── */
.mpd-notif {
  display: flex; align-items: center; gap: 9px;
  background: #fff8fb; border: 1.5px solid #f8bbd0;
  border-radius: 12px; padding: 11px 16px;
  font-size: .84rem; color: #c2185b; font-weight: 500;
  cursor: pointer; margin-bottom: 24px;
  transition: background .15s, transform .15s;
}
.mpd-notif:hover { background: #fce4ec; transform: translateY(-1px); }
.mpd-notif svg { flex-shrink: 0; color: #e91e8c; }
.mpd-notif strong { font-weight: 700; }
.mpd-notif-arrow { margin-left: auto; font-size: .9rem; opacity: .6; }

/* ── En-tête section ── */
.mpd-section-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.mpd-section-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #e8f0fe; color: #1b6ca8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mpd-section-title {
  font-size: .95rem; font-weight: 700; color: var(--mes-gray-800); margin: 0;
}

/* ── Sous-titre passés ── */
.mpd-sub-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--mes-gray-400);
  margin: 22px 0 10px;
}

/* ── Carte RDV ── */
.mpd-rdv-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1.5px solid #e8edf4; border-radius: 14px;
  padding: 13px 16px; margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.mpd-rdv-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); transform: translateY(-1px); }
.mpd-rdv-card--soon  { border-color: #bbdefb; }
.mpd-rdv-card--today { border-color: #e91e8c; background: #fff8fb; }
.mpd-rdv-card--past  { opacity: .55; }

/* Bloc calendrier */
.mpd-rdv-cal {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 46px; height: 52px; border-radius: 11px;
  background: #f0f4ff; flex-shrink: 0;
}
.mpd-rdv-cal--soon  { background: #e3f2fd; }
.mpd-rdv-cal--today { background: #fce4ec; }
.mpd-rdv-cal--past  { background: #f0f0f0; }

.mpd-rdv-month {
  font-size: .58rem; font-weight: 700; letter-spacing: .05em;
  color: var(--mes-gray-400); line-height: 1;
}
.mpd-rdv-day {
  font-size: 1.35rem; font-weight: 800; color: var(--mes-gray-800); line-height: 1.15;
}
.mpd-rdv-cal--today .mpd-rdv-day,
.mpd-rdv-cal--today .mpd-rdv-month { color: #e91e8c; }

/* Corps */
.mpd-rdv-body { flex: 1; min-width: 0; }
.mpd-rdv-title {
  font-size: .9rem; font-weight: 600; color: var(--mes-gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mpd-rdv-sub {
  display: flex; align-items: center; flex-wrap: wrap;
  font-size: .76rem; color: var(--mes-gray-400); margin-top: 2px; gap: 2px;
}
.mpd-rdv-doc   { color: var(--mes-blue); font-weight: 500; }
.mpd-rdv-sep   { color: #d0d7e2; }

/* Pills */
.mpd-rdv-pill {
  flex-shrink: 0; font-size: .68rem; font-weight: 700;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
  background: #e8f0fe; color: #1b6ca8;
}
.mpd-rdv-pill--today  { background: #e91e8c; color: #fff; }
.mpd-rdv-pill--demain { background: #fce4ec; color: #c2185b; }
.mpd-rdv-pill--past   { background: #f0f0f0; color: #aaa; }

/* ── Lien bas ── */
.mpd-link {
  display: inline-block; margin-top: 16px;
  font-size: .82rem; font-weight: 600; color: var(--mes-blue);
  cursor: pointer; text-decoration: none; transition: color .15s;
}
.mpd-link:hover { color: #e91e8c; }

/* ── Empty ── */
.mpd-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px; color: var(--mes-gray-400);
  background: #f8fafc; border-radius: 14px;
  border: 1.5px dashed #e8edf4; text-align: center; gap: 6px; font-size: .85rem;
}
.mpd-empty span { font-size: 1.6rem; }
.mpd-empty p { margin: 0; }

/* ── Layout deux colonnes (Cabinets | Prochains RDV) ────────────────── */
.mpd-wrap.mpd-wrap--wide { max-width: 1100px; }
.mpd-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.mpd-rdv-col { min-width: 0; }
@media (max-width: 860px) {
  .mpd-two-col { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Colonne des cabinets (peut en contenir plusieurs) ──────────────── */
.mpd-cabinets-col {
  display: flex; flex-direction: column; gap: 12px;
}

/* ── Carte cabinet (accordéon) ──────────────────────────────────────── */
.mpd-cabinet-card {
  background: #fff;
  border: 1.5px solid #e8edf4;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(20, 75, 123, 0.04);
  transition: box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.mpd-cabinet-card:hover { box-shadow: 0 4px 14px rgba(20, 75, 123, 0.07); }
/* Cabinet du référent : accent visuel discret */
.mpd-cabinet-card--ref {
  border-color: #c7dcef;
  box-shadow: 0 2px 10px rgba(20, 75, 123, 0.06);
}

/* En-tête cliquable de l'accordéon */
.mpd-cabinet-head {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background .12s;
}
.mpd-cabinet-head:hover { background: #f8fafc; }
.mpd-cabinet-head:focus-visible {
  outline: 2px solid #144B7B;
  outline-offset: -2px;
}
.mpd-cabinet-card--ref .mpd-cabinet-head:hover { background: #f0f7fc; }

.mpd-cabinet-head-icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: #e8f0fe; color: #1b6ca8;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mpd-cabinet-card--ref .mpd-cabinet-head-icon {
  background: #144B7B; color: #fff;
}
.mpd-cabinet-name {
  flex: 1; min-width: 0;
  font-size: 1rem; font-weight: 700;
  color: #144B7B;
  line-height: 1.25; word-break: break-word;
}

/* Chevron animé */
.mpd-cabinet-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: #94a3b8;
  transition: transform .2s ease, color .15s;
  flex-shrink: 0;
}
.mpd-cabinet-head[aria-expanded="true"] .mpd-cabinet-chevron {
  transform: rotate(180deg);
  color: #144B7B;
}

/* Corps de l'accordéon (masqué via [hidden]) */
.mpd-cabinet-body {
  padding: 0 16px 16px;
}
.mpd-cabinet-body[hidden] { display: none; }

/* Adresse : ligne simple cliquable (lien vers Google Maps) */
.mpd-cabinet-addr {
  display: block;
  font-size: .82rem; color: var(--mes-gray-400);
  margin: 4px 0 14px;
  line-height: 1.45;
  text-decoration: none;
}
a.mpd-cabinet-addr {
  color: #1b6ca8;
  text-decoration: underline;
  text-decoration-color: #c7dcef;
  text-underline-offset: 3px;
  transition: color .12s, text-decoration-color .12s;
}
a.mpd-cabinet-addr:hover {
  color: #e91e8c;
  text-decoration-color: #e91e8c;
}

/* ── Liste des médecins dans une carte cabinet ──────────────────────── */
.mpd-doc-list {
  display: flex; flex-direction: column; gap: 6px;
}
.mpd-doc-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  background: #f8fafc;
  border: 1px solid transparent;
}
.mpd-doc-row--ref {
  background: #fff8fb;
  border-color: #fce4ec;
}
.mpd-doc-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e8f0fe; color: #1b6ca8;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mpd-doc-row--ref .mpd-doc-avatar {
  background: #e91e8c; color: #fff;
}

.mpd-doc-info { flex: 1; min-width: 0; }
.mpd-doc-name-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  line-height: 1.25;
}
.mpd-doc-name {
  font-size: .88rem; font-weight: 600; color: var(--mes-gray-800);
}
/* Variante cliquable : nom du médecin ouvre la conversation Mes échanges */
.mpd-doc-name--btn {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: #144B7B;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .12s, text-decoration-color .12s;
}
.mpd-doc-name--btn:hover {
  color: #e91e8c;
  text-decoration-color: #e91e8c;
}
.mpd-doc-name--btn:focus-visible {
  outline: 2px solid #144B7B;
  outline-offset: 2px;
  border-radius: 3px;
}
.mpd-doc-row--ref .mpd-doc-name--btn { color: #c2185b; }
.mpd-doc-row--ref .mpd-doc-name--btn:hover { color: #e91e8c; }
.mpd-doc-badge {
  display: inline-block;
  font-size: .62rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff; background: #e91e8c;
  padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
}
.mpd-doc-spec {
  font-size: .74rem; color: var(--mes-gray-400);
  margin-top: 1px; line-height: 1.3;
}
.mpd-doc-tel {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px;
  font-size: .78rem; font-weight: 600;
  color: #1b6ca8; text-decoration: none;
}
.mpd-doc-tel:hover { color: #e91e8c; }
.mpd-doc-tel svg { flex-shrink: 0; }

/* ── Encart installation PWA dans Paramètres (mobile only) ──────────── */
/* ── Cartes PWA (install / installed / reset) ── */
.mes-pwa-install-card,
.mes-pwa-installed-card,
.mes-pwa-reset-card { display: none; } /* masqué par défaut, JS gère */

/* Styles communs (toutes tailles d'écran) */
.mes-pwa-install-card,
.mes-pwa-installed-card,
.mes-pwa-reset-card {
  flex-direction: row; align-items: center; gap: 14px;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 16px;
}
.mes-pwa-install-card {
  background: linear-gradient(135deg, #e8f2fb 0%, #f0e8fb 100%);
  border: 1.5px solid #c7d7f0;
}
.mes-pwa-installed-card {
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  font-size: .85rem; color: #166534;
}
.mes-pwa-reset-card {
  background: linear-gradient(135deg, #fdf0f8 0%, #f8e8fb 100%);
  border: 1.5px solid #f0c7e0;
}
/* jQuery .show() met display:block — on surcharge pour garantir flex */
.mes-pwa-install-card[style*="display:block"],
.mes-pwa-installed-card[style*="display:block"],
.mes-pwa-reset-card[style*="display:block"] { display: flex !important; }
.mes-pwa-install-card[style*="display:none"],
.mes-pwa-installed-card[style*="display:none"],
.mes-pwa-reset-card[style*="display:none"] { display: none !important; }
.mes-pwa-install-card[style*="display: none"],
.mes-pwa-installed-card[style*="display: none"],
.mes-pwa-reset-card[style*="display: none"] { display: none !important; }

.mes-pwa-ic-icon img { border-radius: 12px; width: 52px; height: 52px; flex-shrink: 0; }
.mes-pwa-ic-body { flex: 1; min-width: 0; }
.mes-pwa-ic-title { font-weight: 700; font-size: .92rem; color: #1e293b; }
.mes-pwa-ic-sub   { font-size: .78rem; color: #64748b; margin-top: 2px; line-height: 1.4; }
.mes-pwa-ic-install-btn {
  background: #1b6ca8; color: #fff; border: none; border-radius: 20px;
  padding: 8px 16px; font-size: .82rem; font-weight: 700; cursor: pointer;
  flex-shrink: 0; white-space: nowrap; transition: background .15s;
}
.mes-pwa-ic-install-btn:hover { background: #155a8a; }

/* ============================================================
   DASHBOARD — Nouvelles règles (médecin + patient v2)
   ============================================================ */

/* ── Notif icône SVG inline ─────────────────────────────────── */
.mpd-notif-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-size: .95rem;
  line-height: 1;
}
.mpd-notif-icon svg { color: #e91e8c; }

/* ── Notif urgente (demande RDV) ────────────────────────────── */
.mpd-notif--urgent {
  background: #fff7ed;
  border-color: #fed7aa;
}
.mpd-notif--urgent:hover { background: #ffedd5; }
.mpd-notif--urgent .mpd-notif-icon svg { color: #ea580c; }

/* ── Section icon pending ───────────────────────────────────── */
.mpd-section-icon--pending svg { color: #d97706; }

/* ── Compteur demandes en attente ───────────────────────────── */
.mpd-pending-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Card demande en attente ─────────────────────────────────── */
.mpd-rdv-card--pending {
  border-color: #fde68a;
  background: #fffbeb;
}
.mpd-rdv-cal--pending {
  background: #f59e0b !important;
  color: #fff !important;
}
.mpd-rdv-pill--pending {
  background: #fef3c7;
  color: #92400e;
}

/* ── Note preview ───────────────────────────────────────────── */
.mpd-rdv-note-preview {
  color: #94a3b8;
  font-style: italic;
}

/* ── Boutons accepter / refuser inline ──────────────────────── */
.mpd-pending-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.mpd-pending-accept,
.mpd-pending-refuse {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
}
.mpd-pending-accept {
  background: #dcfce7;
  color: #16a34a;
}
.mpd-pending-accept:hover { background: #16a34a; color: #fff; transform: scale(1.1); }
.mpd-pending-refuse {
  background: #fee2e2;
  color: #dc2626;
}
.mpd-pending-refuse:hover { background: #dc2626; color: #fff; transform: scale(1.1); }

/* ── Supprimer "Derniers RDV" et lien "Voir tous" ───────────── */
.mpd-sub-title,
.mpd-link { display: none !important; }

/* ── Dashboard médecin — enlever le bouton hello CTA ────────── */
.mpd-wrap--doctor .mpd-hello-cta { display: none; }

/* ── Dashboard patient : raccourci agenda sommeil ── */
.mpd-agenda-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1b6ca8;
  color: #fff !important;
  text-decoration: none !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  transition: background .15s, transform .1s;
  user-select: none;
}
.mpd-agenda-shortcut:hover {
  background: #145086;
  transform: translateY(-1px);
}
/* Empêche mpd-notif d'hériter ses styles par défaut sur ce bouton */
.mpd-agenda-shortcut.mpd-notif {
  border: none;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════════════
   PAGE ATTENTE PATIENT (inscription en attente de validation)
   ════════════════════════════════════════════════════════════════════ */
.mes-pending-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  margin: 0 0 20px;
}
.mes-pending-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: mes-pulse 2s infinite;
}
@keyframes mes-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}
.mes-pending-state h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
}
.mes-pending-state p {
  font-size: .9rem;
  color: #64748b;
  max-width: 400px;
  line-height: 1.6;
  margin: 0 0 8px;
}
.mes-pending-hint {
  font-size: .8rem !important;
  color: #94a3b8 !important;
  margin-top: 8px !important;
}
.mes-pending-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 24px;
  background: #e91e8c;
  color: #fff;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.mes-pending-btn:hover { background: #c0166f; color: #fff; }

/* ── Message attente sur page d'inscription ── */
.mes-auth-pending-wrap {
  text-align: center;
  padding: 24px 16px;
}
.mes-auth-pending-icon {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 12px;
  animation: mes-pulse 2s infinite;
}
.mes-auth-pending-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px;
}
.mes-auth-pending-wrap p {
  font-size: .88rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Hint sous toggle paramètres ── */
.mes-settings-hint {
  display: block;
  font-size: .75rem;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 420px;
}
