:root{--blue-1:#3c6091;--blue-2:#1e3a5f;--bg:#f6f8fb;--text:#2f3640;--muted:#6b7280;--card:#fff;--bd:#e8edf3}
body{background:var(--bg)}
.profile-hero{position:relative}
.profile-hero .hero-bg{background:linear-gradient(135deg,var(--blue-1) 0%,var(--blue-2) 100%);height:180px}
@media (min-width:992px){.profile-hero .hero-bg{height:220px}}
.profile-hero .hero-inner{position:relative;margin-top:-70px;display:grid;justify-items:center}
.avatar-wrap{width:120px;height:120px;border-radius:50%;background:transparent;display:grid;place-items:center;box-shadow:0 12px 30px rgba(0,0,0,.15);border:none}
.hero-name{color:#1f2937;font-weight:700;margin:12px 0 4px}
.hero-sub{color:var(--muted);font-size:.95rem}
.dot-sep{position:relative;padding:0 8px}
.dot-sep+.dot-sep::before{content:"•";position:absolute;left:-2px;color:rgba(0,0,0,.25)}
.profile-tabs{margin-top:14px}

/* Nouveau conteneur pour les coches de navigation */
.tabs-wrapper{position:relative;display:flex;align-items:center;gap:8px}

.tabs-container{flex:1;overflow:hidden}

.tabs-list{list-style:none;display:flex;gap:10px;padding:6px;margin:0;overflow-x:auto;background:var(--card);border:1px solid var(--bd);border-radius:16px;box-shadow:0 10px 24px rgba(0,0,0,.06);scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}

.tabs-list::-webkit-scrollbar{display:none}

/* Coches de navigation */
.tabs-nav-btn{background:var(--card);border:1px solid var(--bd);border-radius:12px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:var(--blue-1);cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px rgba(0,0,0,.06);position:relative;z-index:2}

.tabs-nav-btn:hover{background:linear-gradient(135deg,rgba(60,96,145,.12),rgba(30,58,95,.08));transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.1)}

.tabs-nav-btn:active{transform:translateY(0);box-shadow:0 4px 8px rgba(0,0,0,.06)}

.tabs-nav-btn:disabled,.tabs-nav-btn[style*="not-allowed"]{pointer-events:none}

.tabs-nav-btn i{font-size:0.9rem}

.tabs-nav-left{margin-right:4px}
.tabs-nav-right{margin-left:4px}

/* Adaptation mobile pour les coches */
@media (max-width: 768px){
  .tabs-nav-btn{width:36px;height:36px}
  .tabs-nav-btn i{font-size:0.8rem}
  .tabs-wrapper{gap:6px}
}

.profile-tabs a{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;color:#334155;text-decoration:none;white-space:nowrap;transition:.2s ease}
.profile-tabs a i{color:var(--blue-1)}
.profile-tabs a.active,.profile-tabs a:hover{background:linear-gradient(135deg,rgba(60,96,145,.12),rgba(30,58,95,.08));color:#0f172a}
.profile-content{margin-top:18px}
.cardx{background:var(--card);border:1px solid var(--bd);border-radius:16px;overflow:hidden;margin-bottom:18px;box-shadow:0 10px 24px rgba(0,0,0,.06)}
.cardx-head{padding:18px 18px 0px 18px;position:relative}
.cardx-head::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--blue-1) 0%,var(--blue-2) 100%)}
.cardx-head h2{font-size:1.25rem;margin:0 0 14px 0;padding-bottom:14px;border-bottom:1px solid var(--bd);color:#0f172a}
.cardx-body{padding:18px}
.info-grid{display:grid;gap:10px}
.info-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px dashed #eef2f7}
.info-row:last-child{border-bottom:none}
.info-label{color:var(--muted);display:flex;align-items:center;gap:8px}
.info-value{color:#111827;font-weight:600}
.btnx{background:linear-gradient(135deg,var(--blue-1),var(--blue-2));color:#fff;border:none;padding:10px 14px;border-radius:12px;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:.2s ease}
.btnx:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(60,96,145,.25);color:#fff}
.btnx.ghost{background:#fff;color:#0f172a;border:1px solid var(--bd)}
.btnx.danger{background:linear-gradient(135deg,#dc3545,#ea6666);color:#fff;border:none}
.btnx.danger:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(220,53,69,.25);color:#fff}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:768px){.stats-grid{grid-template-columns:repeat(2,1fr)}}
.statx{padding:16px;border:1px solid var(--bd);border-radius:14px;background:#fafcff;transition:.2s ease}
.statx:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(60,96,145,.12)}
.statx-top{display:flex;justify-content:flex-end}
.pill{font-size:.75rem;background:#e9f1ff;color:#214b82;padding:4px 8px;border-radius:999px}
.statx-num{font-size:2rem;font-weight:800;color:#1f2937;line-height:1.2}
.statx-label{color:var(--muted)}
.quick-links{display:grid;gap:8px;padding:12px}
.quick-link{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;text-decoration:none;color:#0f172a;border:1px solid var(--bd);background:#fff;transition:.2s ease}
.quick-link:hover{background:#f4f7fb;transform:translateY(-1px)}
.tab-pane{display:none}
.tab-pane.show{display:block}

/* Toast notifications (style global du projet) */
.toast-container{z-index:9999}
.toast-notification{background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.15);padding:1rem;margin-bottom:.5rem;min-width:300px;transform:translateX(100%);transition:transform .3s ease;display:flex;align-items:center}
.toast-notification.show{transform:translateX(0)}
.toast-notification.success{border-left:4px solid #28a745}
.toast-notification.error{border-left:4px solid #dc3545}
.toast-content{display:flex;align-items:center;width:100%}
.toast-icon{margin-right:.75rem;font-size:1.2rem}
.toast-notification.success .toast-icon{color:#28a745}
.toast-notification.error .toast-icon{color:#dc3545}
.toast-message{flex:1;font-weight:500;color:#2c3e50}

/* Messagerie intégrée */
.conversation-list{background:#fff;border:1px solid var(--bd);border-radius:12px;overflow:hidden}
.conversation-item{transition:background-color .15s ease}
.conversation-item:hover{background:#f7f9fc}
.conversation-item.active{background:linear-gradient(135deg,rgba(60,96,145,.08),rgba(30,58,95,.06))}
.conversation-zone{background:#fff;border:1px solid var(--bd);border-radius:12px}
@media (max-width: 768px){
  .conversation-zone{border-radius:12px;}
}

    /* Styles pour les cartes de session */
    .session-card {
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 15px;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
      }
      
      .session-card.current {
        border-color: var(--primary-color);
        background-color: #e7f3ff;
      }
      
      .device-icon {
        font-size: 1.5em;
        margin-right: 10px;
      }
      
      .session-info {
        font-size: 0.9em;
        color: #6c757d;
      }
      
      .btn-delete-session {
        font-size: 0.8em;
      }

/* ====================== */
/* Messagerie intégrée++  */
/* ====================== */
.messagerie-embed { 
  position: relative; 
  animation: fadeIn 0.4s ease-out;
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.messagerie-embed .messagerie-embed-container { 
  background: transparent; 
}

/* En-tête messagerie */
.messagerie-embed .messagerie-header {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 1.5rem;
}

/* Alerte sécurité sous la messagerie */
.messagerie-embed + .safety-note,
.safety-note {
  line-height: 1.4;
}
.safety-note i { 
  position: relative; 
  top: 0.1rem; /* léger ajustement pour aligner avec la 1ère ligne */
}

.messagerie-embed .messagerie-stats {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.messagerie-embed .messagerie-stats .unread-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #dc3545;
  font-weight: 600;
}

.messagerie-embed .messagerie-stats .unread-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #dc3545;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Bouton nouvelle conversation */
.messagerie-embed .btn-new-conversation {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(60,96,145,.2);
}

.messagerie-embed .btn-new-conversation:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(60,96,145,.3);
  color: #fff;
}

/* Layout adaptatif */
.messagerie-layout {
  min-height: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  background: #fff;
  margin-bottom: 1.5rem;
}

/* Liste des conversations */
.messagerie-embed .conversation-list { 
  max-height: 520px; 
  overflow-y: auto; 
  background: #fff;
  border-right: 1px solid var(--bd);
}

.messagerie-embed .conversation-item { 
  position: relative;
  transition: all .2s ease; 
  border-left: 3px solid transparent;
  cursor: pointer;
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.messagerie-embed .conversation-item:hover { 
  background: #f8fafc;
  border-left-color: rgba(60,96,145,.3);
  transform: translateX(2px);
}

.messagerie-embed .conversation-item.active { 
  background: linear-gradient(135deg,rgba(60,96,145,.1),rgba(30,58,95,.08)); 
  border-left-color: var(--blue-1);
  box-shadow: inset 3px 0 0 var(--blue-1);
}

.messagerie-embed .conversation-item .conversation-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #6c757d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.875rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transition: transform 0.2s ease;
  overflow: hidden;
}

.messagerie-embed .conversation-item .conversation-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.messagerie-embed .conversation-item .conversation-avatar i {
  color: #fff;
  font-size: 1rem;
}

.messagerie-embed .conversation-item .conversation-avatar i.fa-users {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.messagerie-embed .conversation-item:hover .conversation-avatar {
  transform: scale(1.05);
}

.messagerie-embed .conversation-item .conversation-info {
  flex: 1;
  min-width: 0;
}

.messagerie-embed .conversation-item .conversation-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messagerie-embed .conversation-item .conversation-meta {
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.messagerie-embed .conversation-item .conversation-type {
  background: rgba(60,96,145,.1);
  color: var(--blue-1);
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Badges de statut (remplacement du badge Privé) */
.messagerie-embed .conversation-item .conversation-status-badge{
  display:inline-flex;
  align-items:center;
  gap:0.35rem;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.messagerie-embed .conversation-item .conversation-status-badge.verified{
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.messagerie-embed .conversation-item .conversation-status-badge.unverified{
  background: linear-gradient(135deg, #dc3545, #ea6666);
  color: #fff;
}
.messagerie-embed .conversation-item .conversation-status-badge.founder{
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
}

.messagerie-embed .conversation-item .badge { 
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #dc3545;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(220,53,69,.3);
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Zone de conversation active */
.messagerie-embed .conversation-zone {
  display: flex;
  flex-direction: column;
  height: 600px;
  background: #fff;
}

/* En-tête de conversation */
.messagerie-embed .conversation-header { 
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-bottom: 1px solid var(--bd);
  padding: 1rem 1.25rem;
  backdrop-filter: saturate(180%) blur(10px); 
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.messagerie-embed #embed-conversation-avatar { 
  width: 40px;
  height: 40px;
  border-radius: 50%; 
  background: #6c757d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 0.875rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  font-size: 0.85rem;
  overflow: hidden;
}

.messagerie-embed #embed-conversation-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.messagerie-embed #embed-conversation-avatar i {
  color: #fff;
  font-size: 0.9rem;
}

.messagerie-embed #embed-conversation-avatar.group {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
}

.messagerie-embed .conversation-header-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.125rem 0;
}

.messagerie-embed .conversation-header-info .text-muted {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Zone messages */
.messagerie-embed #embed-messages-container { 
  flex: 1;
  overflow-y: auto; 
  padding: 1.25rem;
  background: linear-gradient(135deg, #fafbfc, #f8fafc);
}

.messagerie-embed .message-item {
  margin-bottom: 1.5rem;
  animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.messagerie-embed .message-bubble {
  max-width: 85%;
  min-width: 120px;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: relative;
  word-wrap: break-word;
  line-height: 1.5;
  font-size: 0.95rem;
  text-align: left; /* contenu toujours aligné à gauche */
}

.messagerie-embed .message-bubble.own {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: #fff;
  margin-left: auto; /* bulle à droite */
  border-bottom-right-radius: 8px;
}

.messagerie-embed .message-bubble.other {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(0,0,0,.06);
  border-bottom-left-radius: 8px;
}

.messagerie-embed .message-bubble.own::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: var(--blue-2);
  border-right: 0;
  margin-bottom: -8px;
}

.messagerie-embed .message-bubble.other::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-left: 0;
  margin-bottom: -8px;
}

.messagerie-embed .message-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.messagerie-embed .message-bubble.own + .message-meta {
  justify-content: flex-end;
  color: rgba(255,255,255,.7);
}

.messagerie-embed .message-sender {
  font-weight: 600;
  color: var(--blue-1);
}

/* Zone de saisie */
.messagerie-embed .message-input-area {
  padding: 1rem 1.25rem;
  background: #fff;
  border-top: 1px solid var(--bd);
}

.messagerie-embed #embed-message-form .input-group { 
  background: #f8fafc; 
  border: 2px solid var(--bd); 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: all 0.2s ease;
}

.messagerie-embed #embed-message-form .input-group:focus-within {
  border-color: var(--blue-1);
  box-shadow: 0 0 0 3px rgba(60,96,145,.1);
}

.messagerie-embed #embed-message-form textarea.form-control { 
  border: none; 
  box-shadow: none; 
  padding: 0.875rem 1rem;
  background: transparent;
  resize: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

.messagerie-embed #embed-message-form textarea.form-control:focus { 
  outline: none; 
  box-shadow: none; 
}

.messagerie-embed #embed-message-form textarea.form-control::placeholder {
  color: var(--muted);
  font-style: italic;
}

.messagerie-embed #embed-message-form .btn.btn-primary { 
  border-radius: 0; 
  padding: 0 1.25rem; 
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.messagerie-embed #embed-message-form .btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-2), var(--blue-1));
  transform: scale(1.02);
}

.messagerie-embed #embed-message-form .btn.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* État vide */
.messagerie-embed .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

.messagerie-embed .empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.messagerie-embed .empty-state h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #64748b;
}

.messagerie-embed .empty-state p {
  font-size: 0.9rem;
  margin: 0;
}

/* Bouton retour (mobile) */
.messagerie-embed #embed-back-btn { 
  color: var(--blue-1);
  padding: 0.375rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.messagerie-embed #embed-back-btn:hover { 
  color: var(--blue-2);
  background: rgba(60,96,145,.1);
}

/* État de chargement */
.messagerie-embed .loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--muted);
}

.messagerie-embed .loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(60,96,145,.2);
  border-top: 3px solid var(--blue-1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scrollbar améliorée */
.messagerie-embed .conversation-list::-webkit-scrollbar,
.messagerie-embed #embed-messages-container::-webkit-scrollbar { 
  width: 6px; 
}

.messagerie-embed .conversation-list::-webkit-scrollbar-thumb,
.messagerie-embed #embed-messages-container::-webkit-scrollbar-thumb { 
  background: rgba(60,96,145,.3); 
  border-radius: 3px;
}

.messagerie-embed .conversation-list::-webkit-scrollbar-thumb:hover,
.messagerie-embed #embed-messages-container::-webkit-scrollbar-thumb:hover { 
  background: rgba(60,96,145,.5); 
}

.messagerie-embed .conversation-list::-webkit-scrollbar-track,
.messagerie-embed #embed-messages-container::-webkit-scrollbar-track { 
  background: rgba(60,96,145,.05); 
}

/* Responsive Design */
@media (max-width: 768px){
  .messagerie-embed {
    margin-bottom: 1.5rem;
  }
  
  .messagerie-layout {
    min-height: 540px;
    margin-bottom: 1rem;
  }
  
  .messagerie-embed .conversation-list { 
    max-height: 380px;
    border-right: none;
    border-bottom: 1px solid var(--bd);
  }
  
  .messagerie-embed .conversation-zone {
    height: 540px;
  }
  
  .messagerie-embed #embed-messages-container { 
    padding: 1rem;
  }
  
  .messagerie-embed .message-bubble {
    max-width: 90%;
    min-width: 100px;
    padding: 0.875rem 1.125rem;
  }
  
  .messagerie-embed .conversation-item {
    padding: 0.875rem;
  }
  
  .messagerie-embed .conversation-item .conversation-avatar {
    width: 36px;
    height: 36px;
    margin-right: 0.75rem;
  }
  
  .messagerie-embed .conversation-item .conversation-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .messagerie-embed .conversation-item .conversation-avatar i {
    font-size: 0.9rem;
  }
  
  .messagerie-embed .message-input-area {
    padding: 0.875rem 1rem;
  }
  
  .messagerie-embed #embed-message-form textarea.form-control {
    padding: 0.75rem;
    font-size: 16px; /* Évite le zoom sur iOS */
  }
}

/* ====================== */
/*   Onglet Vérification */
/* ====================== */

/* Interface utilisateur vérifié */
.verification-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  position: relative;
  overflow: hidden;
}

.verification-success::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.verification-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
  animation: verificationPulse 2s ease-in-out infinite;
}

@keyframes verificationPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.verification-icon i {
  color: #fff;
  font-size: 2.5rem;
}

.verification-title {
  color: #065f46;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.verification-subtitle {
  color: #047857;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0;
}

.verification-benefits {
  margin-top: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  transition: all 0.3s ease;
  height: 100%;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(5, 150, 105, 0.15);
  border-color: #10b981;
}

.benefit-item i {
  color: #10b981;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.benefit-item h4 {
  color: #065f46;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: #047857;
  font-size: 0.9rem;
  margin: 0;
}

.verified-badge-info {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-display {
  margin-bottom: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.status-badge.verified {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.status-badge.verified:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Interface utilisateur non vérifié */
.verification-intro {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  text-align: center;
}

.verification-icon-unverified {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #64748b, #475569);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(100, 116, 139, 0.2);
}

.verification-icon-unverified i {
  color: #fff;
  font-size: 2rem;
}

.verification-intro .verification-title {
  color: #334155;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.verification-intro .verification-subtitle {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Carte d'information */
.info-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.info-content h5 {
  color: #334155;
  font-weight: 700;
  margin-bottom: 1rem;
}

.verification-benefits-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.verification-benefits-list li {
  color: #475569;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.verification-benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue-1);
  font-weight: bold;
}

/* Méthodes de vérification */
.verification-method {
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.verification-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.verification-method .cardx-head {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.verification-method .cardx-head h3 {
  color: #334155;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
}

.verification-method .cardx-head h3 i {
  color: var(--blue-1);
}

.method-description {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Formulaire de vérification */
.verification-form .form-label {
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.verification-form .form-control,
.verification-form .form-select {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fff;
}

.verification-form .form-control:focus,
.verification-form .form-select:focus {
  border-color: var(--blue-1);
  box-shadow: 0 0 0 3px rgba(60, 96, 145, 0.1);
  outline: none;
}

.verification-form .form-control:disabled,
.verification-form .form-select:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}

/* Notice de maintenance */
.maintenance-notice {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.maintenance-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.maintenance-icon i {
  color: #fff;
  font-size: 1.25rem;
}

.maintenance-notice h4 {
  color: #92400e;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.maintenance-notice p {
  color: #a16207;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Zone d'upload de fichiers */
.file-upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  background: #f8fafc;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-area:hover:not(.disabled) {
  border-color: var(--blue-1);
  background: #f0f8ff;
}

.file-upload-area.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f1f5f9;
}

.file-upload-area i {
  color: #64748b;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.file-upload-area p {
  color: #64748b;
  margin: 0;
  font-size: 0.9rem;
}

/* Boutons */
.btnx.disabled {
  background: #94a3b8 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  transform: none !important;
  opacity: 0.7;
}

.btnx.disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Alertes personnalisées */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #f87171;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #60a5fa;
}

.alert .d-flex {
  align-items: flex-start;
}

.alert i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* Responsive Design pour vérification */
@media (max-width: 768px) {
  .verification-title {
    font-size: 1.5rem;
  }
  
  .verification-subtitle {
    font-size: 1rem;
  }
  
  .verification-icon {
    width: 60px;
    height: 60px;
  }
  
  .verification-icon i {
    font-size: 2rem;
  }
  
  .verification-icon-unverified {
    width: 55px;
    height: 55px;
  }
  
  .verification-icon-unverified i {
    font-size: 1.5rem;
  }
  
  .benefit-item {
    padding: 1rem 0.75rem;
    margin-bottom: 1rem;
  }
  
  .benefit-item i {
    font-size: 1.5rem;
  }
  
  .benefit-item h4 {
    font-size: 1rem;
  }
  
  .verified-badge-info {
    padding: 1rem;
  }
  
  .status-badge {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .verification-method {
    margin-bottom: 1rem;
  }
  
  .verification-form .row.g-3 {
    --bs-gutter-x: 1rem;
  }
  
  .file-upload-area {
    padding: 1.5rem 1rem;
  }
  
  .maintenance-notice {
    padding: 1rem;
  }
  
  .info-content h5 {
    font-size: 1rem;
  }
  
  .alert {
    padding: 0.875rem 1rem;
  }
}

/* ====================== */
/*   Carte Discussions   */
/* ====================== */

/* Liste des discussions utilisateur */
.discussions-user-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.discussion-user-item {
  background: #fff;
  border: 1px solid var(--bd);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.discussion-user-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.discussion-user-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(60, 96, 145, 0.12);
  border-color: rgba(60, 96, 145, 0.3);
}

.discussion-user-item:hover::before {
  opacity: 1;
}

.discussion-user-content {
  padding: 18px;
}

.discussion-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.discussion-user-title {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.discussion-user-link {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.discussion-user-link:hover {
  color: var(--blue-1);
  text-decoration: none;
}

.discussion-user-time {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 8px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.discussion-user-excerpt {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.discussion-user-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.discussion-user-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.discussion-user-stat i {
  color: var(--blue-1);
  font-size: 0.9rem;
}

.discussion-user-stat.solution {
  color: #059669;
}

.discussion-user-stat.solution i {
  color: #10b981;
}

/* État vide des discussions */
.empty-discussions {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}

.empty-discussions-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  transition: all 0.3s ease;
}

.empty-discussions-icon i {
  color: var(--blue-1);
  font-size: 2.5rem;
  opacity: 0.7;
}

.empty-discussions h4 {
  color: #374151;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.empty-discussions p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.empty-discussions:hover .empty-discussions-icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

/* Pagination personnalisée */
.discussions-pagination {
  border-top: 1px solid var(--bd);
  padding-top: 1.5rem;
}

.pagination-custom {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pagination-custom li {
  display: flex;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
}

.pagination-btn:hover {
  background: linear-gradient(135deg, rgba(60, 96, 145, 0.08), rgba(30, 58, 95, 0.06));
  border-color: rgba(60, 96, 145, 0.3);
  color: var(--blue-1);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(60, 96, 145, 0.15);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  color: #fff;
  border-color: var(--blue-1);
  box-shadow: 0 4px 15px rgba(60, 96, 145, 0.3);
}

.pagination-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(60, 96, 145, 0.4);
}

.pagination-prev,
.pagination-next {
  min-width: 44px;
  font-weight: 600;
}

.pagination-dots {
  color: var(--muted);
  padding: 0 8px;
  font-weight: 600;
}

.pagination-info {
  text-align: center;
  margin-top: 1rem;
}

.pagination-info .text-muted {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive Design pour discussions */
@media (max-width: 768px) {
  .discussion-user-content {
    padding: 16px;
  }
  
  .discussion-user-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .discussion-user-time {
    align-self: flex-end;
    font-size: 0.8rem;
  }
  
  .discussion-user-title {
    font-size: 1rem;
  }
  
  .discussion-user-excerpt {
    font-size: 0.9rem;
  }
  
  .discussion-user-stats {
    gap: 12px;
  }
  
  .discussion-user-stat {
    font-size: 0.8rem;
  }
  
  .empty-discussions {
    padding: 2rem 1rem;
  }
  
  .empty-discussions-icon {
    width: 60px;
    height: 60px;
  }
  
  .empty-discussions-icon i {
    font-size: 2rem;
  }
  
  .empty-discussions h4 {
    font-size: 1.1rem;
  }
  
  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  
  .pagination-prev,
  .pagination-next {
    min-width: 40px;
  }
  
  .pagination-info .text-muted {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .discussions-user-list {
    gap: 12px;
  }
  
  .discussion-user-header {
    gap: 6px;
  }
  
  .discussion-user-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .pagination-custom {
    gap: 4px;
  }
  
  .pagination-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.8rem;
  }
  
  .pagination-prev,
  .pagination-next {
    min-width: 36px;
  }
}

/* ====================== */
/*   Succès & Badges      */
/* ====================== */
.achievements-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (min-width: 992px){
  .achievements-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 576px){
  .achievements-grid{ grid-template-columns:1fr; }
}
.achievement-item{
  display:flex; align-items:stretch; gap:12px;
  border:1px solid var(--bd); border-radius:12px; background:#fff;
  padding:12px; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.achievement-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(60,96,145,.12);
  border-color: rgba(60,96,145,.3);
}
.achievement-item.locked{ opacity: .85; }
.achievement-icon{
  width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  color: var(--blue-1); flex-shrink:0;
}
.achievement-icon i{ font-size:1.2rem; }
.achievement-content{ flex:1; min-width:0; }
.achievement-title{ font-weight:700; color:#1f2937; margin-bottom:2px; font-size:1rem; }
.achievement-desc{ color: var(--muted); }
.achievement-progress{ margin-top:8px; }
.achievement-progress .progress{ height:8px; border-radius:10px; background:#eef2f7; }
.achievement-progress .progress-bar{ background: linear-gradient(135deg, var(--blue-1), var(--blue-2)); }

/* Ajustements alignement Succès & Badges */
.achievement-item{ align-items:flex-start; }
.achievement-item .badge{ align-self:flex-start; margin-left:auto; }