/* ================================================================
   LINKEVENT by LSCS — client.css  v2.0
   Espace client : authentification, dashboard, demandes,
   favoris, profil, paramètres, messagerie wrapper.
   Dépend de global.css (variables, reset, boutons, formulaires).
   ================================================================ */


/* ================================================================
   1. PAGES AUTH — connexion.php / inscription.php
   ================================================================ */
.auth-page {
  min-height: calc(100vh - var(--header-h, 80px));
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg) 60%);
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}

.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl, 28px);
  padding: 40px 44px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow, 0 16px 40px rgba(30,58,95,0.08));
}

.auth-card h1 {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 10px;
}

.auth-subtitle {
  font-size: 15px;
  color: var(--text-s);
  margin-bottom: 24px;
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-s);
}

.auth-form .form-group input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--bg);
  border: 1.5px solid var(--border-gray, #CBD5E1);
  border-radius: var(--r-sm, 10px);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form .form-group input:focus {
  border-color: var(--primary-m, #3B6CB0);
  box-shadow: 0 0 0 3px rgba(59,108,176,0.12);
  background: var(--white);
}

.auth-form .form-group input::placeholder { color: var(--text-t); }

/* Lien "mot de passe oublié" sous le champ */
.form-forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--primary-m);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.14s;
}
.form-forgot:hover { color: var(--primary); text-decoration: underline; }

.auth-bottom-text {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--text-s);
}

.auth-bottom-text a {
  color: var(--primary-m);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-bottom-text a:hover { color: var(--primary); }


/* ================================================================
   2. ALERTES CLIENT
   ================================================================ */
.alert {
  padding: 13px 16px;
  border-radius: var(--r-sm, 10px);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  border-left: 3px solid transparent;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.alert li { margin-bottom: 3px; }

.alert-success { background: var(--success-l, #D1FAE5); color: #022C22;   border-left-color: #10B981; }
.alert-error   { background: var(--danger-l, #FEE2E2);  color: #4C0519;   border-left-color: #E11D48; }
.alert-info    { background: var(--surface-2, #DBEAFE);  color: var(--primary-d, #0F1F35); border-left-color: var(--primary-m, #3B6CB0); }
.alert-warning { background: var(--warn-l, #FEF3C7);    color: #451a03;   border-left-color: #F59E0B; }
.alert-danger  { background: var(--danger-l, #FEE2E2);  color: #4C0519;   border-left-color: #E11D48; }

.mb-3 { margin-bottom: 16px; }


/* ================================================================
   3. STRUCTURE PAGES COMPTE — hero + layout grille
   ================================================================ */
.account-page { min-height: 70vh; }

/* Hero section */
.account-hero {
  background: var(--surface, #EFF6FF);
  border-bottom: 1px solid var(--border, #BFDBFE);
  padding: 36px 0;
}

.account-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.account-hero-card h1 {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 8px;
}

.account-hero-card > div > p {
  font-size: 15px;
  color: var(--text-s);
  margin: 0;
  max-width: 560px;
  line-height: 1.7;
}

.account-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Mini infos sous le titre */
.hero-mini-infos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-mini-infos span {
  font-size: 13px;
  color: var(--text-t);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-mini-infos span::before {
  content: '·';
  color: var(--border-s);
}
.hero-mini-infos span:first-child::before { display: none; }

/* Grid sidebar + contenu */
.account-section { padding: 40px 0 64px; }

.account-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}


/* ================================================================
   4. SIDEBAR CLIENT
   ================================================================ */
.account-sidebar {
  position: sticky;
  top: calc(var(--header-h, 80px) + 20px);
}

.account-sidebar .account-panel {
  overflow: visible;           /* évite la coupure du texte */
  padding: 18px 16px 14px;
}

.account-sidebar .account-panel h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-t);
  margin: 0 0 10px;
  padding: 0 4px;
}

.account-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--r-sm, 10px);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-s);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}

.account-menu a:hover {
  background: var(--surface-2, #DBEAFE);
  color: var(--primary);
}

.account-menu a.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* Lien messages avec badge non-lus */
.sidebar-messages-link {
  justify-content: space-between;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: #E11D48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-pill, 999px);
  line-height: 1;
  margin-left: auto;
}

.account-menu a.active .sidebar-badge {
  background: rgba(255,255,255,0.3);
}


/* ================================================================
   5. PANELS
   ================================================================ */
.account-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-s, 0 8px 20px rgba(30,58,95,0.06));
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.panel-head h2 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.panel-subtext {
  font-size: 13px;
  color: var(--text-t);
  margin: 3px 0 0;
}

.account-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}


/* ================================================================
   6. CARDS DASHBOARD — mon-compte.php
   ================================================================ */
.account-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.dashboard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 14px);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.18s, box-shadow 0.18s;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow, 0 16px 40px rgba(30,58,95,0.08));
}

.dashboard-card .card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-t);
}

.dashboard-card strong {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.dashboard-card p {
  font-size: 12px;
  color: var(--text-t);
  line-height: 1.4;
  margin: 0;
}

/* Kicker générique */
.card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-t);
  display: block;
  margin-bottom: 4px;
}


/* ================================================================
   7. EVENT HIGHLIGHT PANEL — mon-compte.php
   ================================================================ */
.event-highlight-panel .panel-head { background: var(--primary); }
.event-highlight-panel .panel-head h2 { color: #fff; }

.event-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
}

.event-highlight-main {
  padding: 28px 28px 28px 24px;
  border-right: 1px solid var(--border);
}

.event-highlight-main .mini-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-m);
  display: block;
  margin-bottom: 10px;
}

.event-highlight-main h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}

.event-highlight-main p {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.7;
  margin-bottom: 18px;
}

.event-highlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.event-highlight-side {
  padding: 20px 18px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm, 10px);
  padding: 14px;
}

.mini-feature-card strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.mini-feature-card p {
  font-size: 12px;
  color: var(--text-s);
  line-height: 1.5;
  margin: 0;
}


/* ================================================================
   8. SPLIT 2 COLONNES — mon-compte.php
   ================================================================ */
.account-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


/* ================================================================
   9. QUICK ACTIONS
   ================================================================ */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 14px);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.quick-action-card:hover {
  background: var(--surface-2, #DBEAFE);
  border-color: var(--border-s, #93C5FD);
  transform: translateY(-2px);
}

.quick-action-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 4px;
}

.quick-action-card strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.quick-action-card p {
  font-size: 12px;
  color: var(--text-t);
  line-height: 1.4;
  margin: 0;
}


/* ================================================================
   10. INFO GRID — profil, résumé
   ================================================================ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.info-item {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item:nth-child(2n)   { border-right: none; }
.info-item:nth-last-child(-n+2) { border-bottom: none; }

.info-item span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-t);
}

.info-item strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.info-item a {
  color: var(--primary-m);
  text-decoration: none;
  transition: color 0.15s;
}
.info-item a:hover { color: var(--primary); }


/* ================================================================
   11. DASHBOARD LIST — événements & demandes récents
   ================================================================ */
.dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dashboard-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.dashboard-list-card:last-child { border-bottom: none; }
.dashboard-list-card:hover { background: #fafcff; }

.dashboard-list-main { flex: 1; min-width: 0; }

.dashboard-list-main strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-list-main p {
  font-size: 13px;
  color: var(--text-t);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-list-actions,
.dashboard-list-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}


/* ================================================================
   12. NEXT STEPS / TIMELINE
   ================================================================ */
.next-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 22px;
}

.step-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.step-line:last-child { border-bottom: none; }

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-m);
  border: 2px solid var(--primary-l, #DBEAFE);
  flex-shrink: 0;
  margin-top: 4px;
}

.step-line > div strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.step-line > div p {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.65;
  margin: 0;
}


/* ================================================================
   13. INLINE ALERT — profil incomplet
   ================================================================ */
.inline-alert {
  margin: 0 22px 18px;
  padding: 14px 16px;
  background: var(--warn-l, #FEF3C7);
  border-left: 3px solid #F59E0B;
  border-radius: var(--r-sm, 10px);
  font-size: 14px;
}

.inline-alert strong {
  display: block;
  font-weight: 600;
  color: #451a03;
  margin-bottom: 4px;
}

.inline-alert p {
  font-size: 13px;
  color: #78350F;
  margin: 0;
}


/* ================================================================
   14. STATUS BADGES — demandes
   ================================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-pill, 999px);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pending  { background: var(--surface-2, #DBEAFE);  color: var(--primary, #1E3A5F); }
.status-neutral  { background: var(--neutral-l, #F1F5F9);   color: var(--neutral, #334155); }
.status-active   { background: var(--success-l, #D1FAE5);   color: var(--success, #065F46); }
.status-warning  { background: var(--warn-l, #FEF3C7);      color: var(--warn, #92400E); }
.status-success  { background: var(--success-l, #D1FAE5);   color: var(--success, #065F46); }
.status-danger   { background: var(--danger-l, #FEE2E2);    color: var(--danger, #991B1B); }
.status-suspended{ background: var(--danger-l, #FEE2E2);    color: var(--danger, #991B1B); }


/* ================================================================
   15. MES DEMANDES — filtres + liste
   ================================================================ */
.demandes-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.demandes-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-pill, 999px);
  border: 1.5px solid var(--border-gray, #CBD5E1);
  background: var(--white);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-s);
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}

.demandes-filter-pill:hover {
  background: var(--surface);
  border-color: var(--border-s, #93C5FD);
  color: var(--primary);
}

.demandes-filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.demandes-filter-pill span {
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: rgba(0,0,0,0.1);
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.demandes-filter-pill.active span {
  background: rgba(255,255,255,0.25);
}

/* Liste de demandes */
.demandes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.demande-card {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.12s;
}

.demande-card:last-child { border-bottom: none; }
.demande-card:hover { background: #fafcff; }

.demande-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.demande-card-head h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 0;
}

.demande-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.demande-meta-grid .info-item:nth-child(3n)        { border-right: none; }
.demande-meta-grid .info-item:nth-last-child(-n+3)  { border-bottom: none; }

/* Message dans demande */
.demande-message-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm, 10px);
  padding: 14px 16px;
}

.demande-message-box > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-t);
  display: block;
  margin-bottom: 8px;
}

.demande-message-box p {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.7;
  margin: 0;
}

.demande-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ================================================================
   16. REVIEW INLINE BOX — avis dans demande card
   ================================================================ */
.review-inline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--gold-l, #FDF6E3);
  border: 1px solid #E2C97E;
  border-radius: var(--r-md, 14px);
  flex-wrap: wrap;
}

.review-inline-box--done {
  background: var(--success-l, #D1FAE5);
  border-color: #A7F3D0;
}

.review-inline-box__content strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.review-inline-box__content p {
  font-size: 13px;
  color: var(--text-s);
  margin: 0;
  line-height: 1.5;
}

/* Panel invite avis (demande.php) */
.review-invite-panel {}
.review-invite-text   { padding: 0 24px; font-size: 15px; color: var(--text-s); line-height: 1.7; }
.review-invite-subtext{ padding: 0 24px 8px; font-size: 13px; color: var(--text-t); }
.review-meta          { font-size: 13px; color: var(--text-t); padding: 0 24px 16px; }
.review-done-panel    {}


/* ================================================================
   17. FORM — profil, paramètres, avis
   ================================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-s);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border-gray, #CBD5E1);
  border-radius: var(--r-sm, 10px);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s;
  appearance: none;
  padding: 0 14px;
  height: 46px;
}

.form-group textarea {
  height: auto;
  min-height: 130px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.65;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-m, #3B6CB0);
  box-shadow: 0 0 0 3px rgba(59,108,176,0.12);
  background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-t); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* Bouton outline danger pour favoris */
.btn-outline-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-md, 14px);
  border: 1.5px solid #FCA5A5;
  background: transparent;
  color: var(--danger, #991B1B);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-outline-danger:hover {
  background: var(--danger, #991B1B);
  color: #fff;
  border-color: var(--danger);
}


/* ================================================================
   18. PARAMÈTRES — toggle notifications
   ================================================================ */
.settings-form { padding: 0; }

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.setting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}

.setting-row:last-child { border-bottom: none; }
.setting-row:hover { background: var(--surface); }

.setting-row > div { flex: 1; min-width: 0; }

.setting-row strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.setting-row p {
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.55;
  margin: 0;
}

.setting-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
}


/* ================================================================
   19. FAVORIS
   ================================================================ */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
}

.favorite-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s, transform 0.18s;
}

.favorite-card:hover {
  box-shadow: var(--shadow, 0 16px 40px rgba(30,58,95,0.08));
  transform: translateY(-2px);
}

.favorite-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.favorite-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm, 10px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.favorite-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-logo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
}

.favorite-meta { flex: 1; min-width: 0; }

.badge-soft {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill, 999px);
  background: var(--surface-2, #DBEAFE);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.favorite-location {
  font-size: 12px;
  color: var(--text-t);
  margin: 4px 0 0;
}

.favorite-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.favorite-card-body h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.favorite-description {
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.6;
  margin: 0;
  flex: 1;

  /* Troncature 3 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.favorite-date {
  font-size: 11px;
  color: var(--text-t);
  margin: 0;
}

.favorite-card-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.favorite-card-actions .btn { flex: 1; justify-content: center; font-size: 13px; height: 38px; }
.favorite-card-actions form { flex: 1; }
.favorite-card-actions form .btn-outline-danger {
  width: 100%; height: 38px; font-size: 13px;
  border-radius: var(--r-sm, 10px);
}


/* ================================================================
   20. LAISSER AVIS — formulaire
   ================================================================ */
.review-request-summary {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 24px;
}

.review-form .form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-s);
}


/* ================================================================
   21. EMPTY STATE CLIENT
   ================================================================ */
.empty-state-box {
  text-align: center;
  padding: 52px 24px;
  background: var(--surface);
}

.empty-state-box strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--font-title);
}

.empty-state-box p {
  font-size: 14px;
  color: var(--text-t);
  max-width: 380px;
  margin: 0 auto 18px;
  line-height: 1.65;
}


/* ================================================================
   22. WRAPPER MESSAGERIE — messages.php
   ================================================================ */
.client-wrapper {
  display: flex;
  min-height: calc(100vh - var(--header-h, 80px));
}

.client-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.client-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.client-page-title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}


/* ================================================================
   23. PROFIL FORM — sections
   ================================================================ */
.profile-form { display: flex; flex-direction: column; }


/* ================================================================
   25. MESSAGERIE — messages.php
   ================================================================ */

/* Panel conteneur — remplace msg-layout */
.msg-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  height: calc(100vh - var(--header-h, 80px) - 220px);
  min-height: 520px;
}

/* ── Sidebar conversations ── */
.msg-conv-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

.msg-conv-sidebar-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.msg-conv-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.msg-conv-sidebar-count {
  font-size: 12px;
  color: var(--text-t);
}

.msg-conv-list {
  overflow-y: auto;
  flex: 1;
}

.msg-conv-empty {
  padding: 2rem 1.4rem;
  text-align: center;
  color: var(--text-t);
}

.msg-conv-empty p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.msg-conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.14s;
  position: relative;
}

.msg-conv-item:hover { background: var(--surface-2); }

.msg-conv-item.active {
  background: var(--primary);
}

.msg-conv-item.active .msg-conv-name,
.msg-conv-item.active .msg-conv-preview,
.msg-conv-item.active .msg-conv-time { color: #fff; }

.msg-conv-item.active .msg-conv-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}

.msg-conv-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}

.msg-conv-item.active .msg-conv-avatar {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.msg-conv-body { flex: 1; min-width: 0; }

.msg-conv-top {
  display: flex; justify-content: space-between;
  align-items: center; gap: 6px; margin-bottom: 3px;
}

.msg-conv-name {
  font-size: 14px; font-weight: 600;
  color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.msg-conv-time {
  font-size: 11px; color: var(--text-t); flex-shrink: 0;
}

.msg-conv-preview {
  font-size: 12px; color: var(--text-s);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}

.msg-conv-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--primary);
}

.msg-unread-dot {
  position: absolute; top: 14px; right: 14px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--danger-b); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
}

/* ── Zone messages ── */
.msg-zone {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}

.msg-zone-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem;
  color: var(--text-t);
}

.msg-zone-empty strong {
  font-size: 15px; font-weight: 600;
  color: var(--text-s); display: block; margin-bottom: 6px;
}

.msg-zone-empty p { font-size: 13px; line-height: 1.6; margin: 0; }

/* Header conversation */
.msg-zone-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.msg-zone-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

.msg-zone-name {
  font-size: 15px; font-weight: 600; color: var(--text);
}

.msg-zone-sub {
  font-size: 12px; color: var(--text-t);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.msg-zone-info { flex: 1; min-width: 0; }

/* Bulles */
.msg-bubbles {
  flex: 1; overflow-y: auto;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
}

.msg-day-sep {
  text-align: center;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-t);
  margin: 6px 0;
}

.msg-row {
  display: flex; align-items: flex-end; gap: 8px;
}

.msg-row--me { flex-direction: row-reverse; }

.msg-avatar-sm {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}

.msg-bubble-wrap {
  display: flex; flex-direction: column; gap: 3px;
  max-width: 68%;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px; line-height: 1.6;
  word-break: break-word;
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-bubble--me {
  background: var(--primary);
  color: #fff;
  border-bottom-left-radius: var(--r-md);
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 11px; color: var(--text-t);
}

.msg-time--me { text-align: right; }

/* Barre d'envoi */
.msg-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--white);
  flex-shrink: 0;
}

.msg-input-form {
  display: flex; gap: 10px; align-items: flex-end;
}

.msg-input-textarea {
  flex: 1;
  font-family: var(--font-body); font-size: 14px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--r-sm);
  resize: none; outline: none;
  line-height: 1.5;
  min-height: 42px; max-height: 120px;
  color: var(--text); background: var(--bg);
  transition: border-color 0.14s, box-shadow 0.14s;
}

.msg-input-textarea:focus {
  border-color: var(--primary-m);
  box-shadow: 0 0 0 3px rgba(59,108,176,0.12);
}

.msg-input-textarea::placeholder { color: var(--text-t); }

.msg-send-btn { flex-shrink: 0; height: 42px; }

/* ── Responsive messagerie ── */
@media (max-width: 960px) {
  .msg-panel {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }
  .msg-conv-sidebar {
    height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .msg-zone { min-height: 460px; }
}

@media (max-width: 560px) {
  .msg-panel { border-radius: var(--r-md); }
  .msg-conv-sidebar { height: 200px; }
}


/* ================================================================
   26. RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .account-cards         { grid-template-columns: repeat(2, 1fr); }
  .event-highlight-grid  { grid-template-columns: 1fr; }
  .event-highlight-main  { border-right: none; border-bottom: 1px solid var(--border); }
  .event-highlight-side  { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .mini-feature-card     { flex: 1; min-width: 160px; }
}

@media (max-width: 960px) {
  .account-grid          { grid-template-columns: 1fr; }
  .account-sidebar       { position: static; }
  .account-sidebar .account-panel { padding-bottom: 8px; }
  .account-menu          { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .account-menu a        { padding: 7px 12px; font-size: 13px; }
  .account-split         { grid-template-columns: 1fr; }
  .demande-meta-grid     { grid-template-columns: 1fr 1fr; }
  .demande-meta-grid .info-item:nth-child(2n)       { border-right: none; }
  .demande-meta-grid .info-item:nth-last-child(-n+2){ border-bottom: none; }
}

@media (max-width: 768px) {
  .auth-card             { padding: 28px 22px; }
  .auth-form .form-row   { grid-template-columns: 1fr; }
  .account-hero-card     { flex-direction: column; }
  .account-cards         { grid-template-columns: 1fr 1fr; }
  .quick-actions-grid    { grid-template-columns: 1fr 1fr; }
  .favorites-grid        { grid-template-columns: 1fr; }
  .form-grid             { grid-template-columns: 1fr; }
  .info-grid             { grid-template-columns: 1fr; }
  .info-item             { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .info-item:last-child  { border-bottom: none !important; }
  .client-main           { padding: 18px 16px; }
}

@media (max-width: 560px) {
  .account-cards         { grid-template-columns: 1fr; }
  .quick-actions-grid    { grid-template-columns: 1fr; }
  .demandes-filter-pill  { font-size: 12px; padding: 5px 10px; }
  .demande-meta-grid     { grid-template-columns: 1fr; }
  .demande-meta-grid .info-item { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .demande-meta-grid .info-item:last-child { border-bottom: none !important; }
  .review-inline-box     { flex-direction: column; }
  .favorite-card-top     { flex-wrap: wrap; }
}