/* ==========================================================================
   CLICAMOUR — PAGES INTERNES (Structure, Dashboard, Chat, Admin)
   Palette Rose Hyper Claire (#D94680 / #F472B6 / #FDF2F8)
   CSS classique & prévisible : zéro dépendance, zéro déformation.
   ========================================================================== */

/* Pages éditoriales (À propos, Comment ça marche, Légal) ------------------ */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 56px;
  align-items: center;
}
.content-heading { max-width: 600px; }
.content-visual {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-lg);
  background: linear-gradient(rgba(25, 15, 22, 0.1), rgba(25, 15, 22, 0.35)),
              var(--site-hero-image) center/cover no-repeat;
  box-shadow: var(--shadow-card);
}
.content-visual-card {
  position: absolute;
  left: -24px;
  bottom: 24px;
  width: min(280px, calc(100% - 30px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.content-visual-card strong { display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 13px; }
.content-visual-card p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.values-list { display: grid; gap: 12px; margin-top: 24px; }
.value-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.value-row > span {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary);
}
.value-row h3 { margin: 0 0 2px; font-size: 14px; }
.value-row p { margin: 0; color: var(--text-muted); font-size: 12px; }

.legal-content {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
}
.legal-content h2 { margin: 24px 0 8px; font-family: var(--font-serif); font-size: 23px; font-weight: 500; color: var(--primary); }
.legal-content p, .legal-content li { color: #4e4046; font-size: 14px; line-height: 1.7; }

/* Authentification --------------------------------------------------------- */
.auth-page {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(440px, 1.1fr);
  background: #fff;
}
.auth-aside {
  min-height: 680px;
  padding: 50px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(25, 15, 22, 0.3), rgba(25, 15, 22, 0.92)),
              var(--site-hero-image) center/cover no-repeat;
}
.auth-aside h1 {
  max-width: 520px;
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  font-weight: 500;
}
.auth-aside p { max-width: 460px; margin: 0; color: #f5e9ef; font-size: 14px; }
.auth-main { display: grid; place-items: center; padding: 48px 30px; }
.auth-card { width: min(520px, 100%); }
.auth-card > h2 { margin: 4px 0; font-family: var(--font-serif); font-size: 32px; font-weight: 500; color: var(--text-main); }
.auth-card > p { margin: 0 0 22px; color: var(--text-muted); font-size: 13px; }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 12px; }
.form-row-between a, .form-switch a, .terms-check a { color: var(--primary); font-weight: 700; }
.form-switch { margin: 2px 0 0; text-align: center; color: var(--text-muted); font-size: 12px; }
.check-label { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 500 !important; }
.check-label input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; flex: 0 0 auto; margin-top: 2px; accent-color: var(--primary); }
.password-help, .privacy-note { margin: -4px 0 0; color: var(--text-muted); font-size: 11px; }
.password-meter { display: block; width: 100%; height: 5px; border-radius: 99px; background: #eee5e8; overflow: hidden; }
.password-meter > span { display: block; width: 0; height: 100%; background: #f472b6; transition: width 0.2s ease; }
.password-meter[data-level="1"] > span { width: 25%; background: #f87171; }
.password-meter[data-level="2"] > span { width: 50%; background: #fbbf24; }
.password-meter[data-level="3"] > span { width: 75%; background: #34d399; }
.password-meter[data-level="4"] > span { width: 100%; background: #10b981; }
.form-message { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 12px; }
.form-message.error { background: #fff0f1; border: 1px solid #f4cfd4; color: #9c2b39; }
.form-message.success { background: #ebf8f2; border: 1px solid #ccebdc; color: #1e7049; }

/* Explorateur de profils -------------------------------------------------- */
.profiles-hero {
  padding: 54px 0 46px;
  background: linear-gradient(180deg, #fff 0%, #fdf4f8 100%);
  border-bottom: 1px solid var(--border);
}
.profiles-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; }
.profiles-hero h1 { max-width: 740px; margin: 6px 0 8px; font-family: var(--font-serif); font-size: clamp(32px, 4.5vw, 50px); line-height: 1.1; font-weight: 500; }
.profiles-hero p { max-width: 620px; margin: 0; color: var(--text-muted); font-size: 14px; }
.profiles-hero-note {
  flex: 0 0 250px; display: flex; align-items: center; gap: 11px;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff;
}
.profiles-hero-note > i { color: var(--primary); font-size: 18px; }
.profiles-hero-note strong, .profiles-hero-note span { display: block; }
.profiles-hero-note strong { font-size: 12px; }
.profiles-hero-note span { color: var(--text-muted); font-size: 10px; }
.profiles-section { padding-top: 42px; }
.profiles-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: start; }
.profiles-filters {
  position: sticky; top: 90px; padding: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-subtle);
}
.filter-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.filter-head div { display: flex; flex-direction: column; }
.filter-head span { color: var(--text-muted); font-size: 10px; }
.filter-head strong { font-size: 13px; color: var(--primary); }
.filter-head > i { color: var(--primary); }
.filter-stack { display: grid; gap: 12px; margin-top: 14px; }
.filter-stack label, .sort-form label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: #4d3f46; }
.filter-stack input, .filter-stack select, .sort-form select {
  width: 100%; height: 40px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
  font-size: 12px;
}
.age-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-stack .primary-button { width: 100%; border: 0; }
.reset-filters { text-align: center; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.reset-filters:hover { color: var(--primary); }
.filter-safety { display: flex; gap: 8px; margin-top: 15px; padding: 11px; border-radius: var(--radius-sm); background: #f0f7f4; color: #2f6652; }
.filter-safety p { margin: 0; font-size: 10px; }
.filter-safety strong { display: block; }
.results-toolbar { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-toolbar > div { display: flex; flex-direction: column; }
.results-toolbar span { color: var(--text-muted); font-size: 11px; }
.results-toolbar strong { font-family: var(--font-serif); font-size: 21px; color: var(--primary); }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { white-space: nowrap; }
.sort-form select { width: 155px; }
.profiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; }
.pagination a:hover, .pagination a.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Espace membre (Account) ------------------------------------------------- */
.account-hero { padding: 38px 0; background: var(--dark); color: #fff; }
.account-hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.account-welcome h1 { margin: 4px 0; font-family: var(--font-serif); font-size: 36px; font-weight: 500; }
.account-welcome p { margin: 0; color: #eedde5; font-size: 13px; }
.completion-card { width: 280px; padding: 16px; border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-md); background: rgba(255,255,255,0.08); }
.completion-head { display: flex; justify-content: space-between; font-size: 12px; }
.completion-head b { color: #fbcfe8; }
.progress-track { height: 6px; margin: 8px 0 6px; border-radius: 99px; background: rgba(255,255,255,0.18); overflow: hidden; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, #f472b6, #d94680); }
.completion-card small { color: #eedde5; font-size: 9px; }
.account-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.account-kpi { display: flex; align-items: center; gap: 12px; padding: 15px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); transition: all 0.2s ease; }
.account-kpi:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-subtle); }
.account-kpi > i { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--primary-light); color: var(--primary); }
.account-kpi strong { display: block; font-family: var(--font-serif); font-size: 20px; line-height: 1; color: var(--primary); }
.account-kpi span { color: var(--text-muted); font-size: 10px; font-weight: 600; }
.dashboard-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 22px; align-items: start; }
.dashboard-sidebar { position: sticky; top: 90px; padding: 14px; border-radius: var(--radius-md); background: var(--dark); color: #fff; }
.dashboard-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.dashboard-user > div { min-width: 0; }
.dashboard-user strong, .dashboard-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-user strong { font-size: 12px; }
.dashboard-user small { color: #caaebc; font-size: 9px; }
.dashboard-sidebar nav { display: grid; gap: 3px; padding-block: 8px; }
.dashboard-sidebar nav a, .dashboard-sidebar > form button { width: 100%; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; color: #eedde5; display: flex; align-items: center; gap: 8px; text-align: left; font-size: 11px; }
.dashboard-sidebar nav a:hover, .dashboard-sidebar nav a.active { background: rgba(255,255,255,0.12); color: #fff; }
.dashboard-sidebar nav a b { margin-left: auto; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 99px; background: var(--primary); font-size: 8px; }
.dashboard-sidebar > form { padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.1); }
.dashboard-card { margin-bottom: 18px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-subtle); scroll-margin-top: 90px; }
.dashboard-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.dashboard-card-head h2, .dashboard-card > h2 { margin: 2px 0; font-family: var(--font-serif); font-size: 23px; font-weight: 500; }
.dashboard-card-head p { margin: 0; color: var(--text-muted); font-size: 11px; }
.account-form { width: 100%; }
.recommendations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.recommendation-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.recommendation-card > a { position: relative; display: block; height: 165px; background: #fdf2f8; }
.recommendation-card img { width: 100%; height: 100%; object-fit: cover; }
.recommendation-score { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: 99px; background: rgba(255,255,255,0.92); color: var(--primary); font-size: 9px; font-weight: 700; }
.recommendation-copy { padding: 10px; }
.recommendation-copy strong { display: block; font-family: var(--font-serif); font-size: 16px; }
.recommendation-copy span { color: var(--text-muted); font-size: 9px; }
.photo-upload-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.photo-upload-form label { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px dashed var(--primary); border-radius: 8px; color: var(--primary); font-size: 11px; font-weight: 600; }
.photo-upload-form input { max-width: 230px; font-size: 10px; }
.account-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.account-photo-grid article { min-width: 0; }
.account-photo { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #fdf2f8; }
.account-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-primary { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 99px; background: rgba(20,14,18,0.75); color: #fff; font-size: 8px; }
.account-photo-grid small { display: block; margin: 4px 0; color: var(--text-muted); font-size: 9px; }
.account-photo-grid article > div:last-child { display: flex; gap: 4px; flex-wrap: wrap; }
.account-photo-grid form button { padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 9px; }
.account-photo-grid form button:disabled { opacity: 0.5; cursor: default; }
.danger-text { color: #a52c3b !important; }
.security-grid { display: grid; grid-template-columns: 1fr 0.75fr; gap: 20px; }
.security-note { padding: 18px; border-radius: var(--radius-md); background: #fdf2f8; }
.security-note i { color: var(--primary); }
.security-note h3 { font-size: 13px; color: var(--primary); }
.security-note p { color: var(--text-muted); font-size: 11px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; background: #fff3ce; color: #6f5619; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.status-pill.status-approved, .status-pill.status-active, .status-pill.status-paid { background: #eaf7f1; color: #176b51; }
.status-pill.status-rejected, .status-pill.status-blocked, .status-pill.status-failed { background: #fff0f1; color: #982b3a; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #d79c3b; }
.status-dot.status-approved { background: #218a68; }
.status-dot.status-rejected, .status-dot.status-blocked { background: #bb3d4c; }

/* Couche finale de l'interface publique et admin.
   Elle centralise les dimensions qui etaient auparavant redefinies par plusieurs feuilles. */
:root {
  --ui-ink: #24171f;
  --ui-muted: #75636d;
  --ui-line: #eadde3;
  --ui-pink: #c93670;
  --ui-pink-dark: #a82358;
  --ui-gold: #b4874c;
  --ui-surface: #ffffff;
  --ui-soft: #fff8fb;
  --ui-shadow: 0 12px 32px rgba(55, 27, 41, 0.08);
}

body {
  color: var(--ui-ink);
  background: #fffdfd;
  font-family: "Manrope", "Inter", "Segoe UI", sans-serif;
}

h1, h2, h3, .brand strong, .hero-modern h1, .profiles-hero h1,
.section-heading h2, .admin-top h1, .admin-panel h2 {
  font-family: "DM Sans", "Manrope", "Inter", sans-serif;
  letter-spacing: -0.035em;
}

.site-header { background: rgba(255, 253, 253, 0.94); border-bottom-color: #eee1e6; }
.desktop-nav { gap: 18px; }
.desktop-nav a { color: #5b4852; font-size: 12px; letter-spacing: 0.01em; }
.brand-mark { border-radius: 11px; background: var(--ui-pink); box-shadow: 0 8px 18px rgba(201, 54, 112, 0.2); }
.brand strong { font-size: 18px; }

.hero.hero-modern {
  min-height: 600px;
  background: linear-gradient(90deg, rgba(30, 17, 25, .94), rgba(30, 17, 25, .67) 54%, rgba(30, 17, 25, .25)), var(--site-hero-image) center/cover no-repeat;
}
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .7fr); gap: 64px; padding: 82px 0 116px; }
.hero-modern h1 { max-width: 680px; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.hero-proof-card { max-width: 370px; justify-self: end; border-radius: 16px; background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.hero-actions .primary-button, .hero-actions .secondary-button { min-height: 46px; border-radius: 8px; }

.quick-search-wrap { margin-top: -54px; }
.quick-search { border-radius: 14px; padding: 18px 20px; box-shadow: var(--ui-shadow); }
.quick-search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.quick-search-fields select, .quick-search-fields input { border-radius: 8px; background: #fff; }

.profile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.profiles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-card { border-radius: 12px; border-color: var(--ui-line); box-shadow: 0 5px 18px rgba(55, 27, 41, .06); }
.profile-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(55, 27, 41, .12); }
.profile-photo { height: 278px; }
.profile-card .profile-body { padding: 16px; }
.profile-heading h3 { font-size: 19px; }
.profile-location, .profile-job { font-size: 11px; }
.profile-bio { color: #594750; font-size: 12px; line-height: 1.55; }
.profile-card-actions { gap: 8px; }
.profile-cta, .profile-wa { min-height: 39px; border-radius: 8px; font-size: 11px; }
.profile-cta { background: var(--ui-pink); }
.profile-cta:hover { background: var(--ui-pink-dark); }
.profile-wa { background: #edf8f1; color: #167546; }

.profiles-hero { padding: 46px 0 40px; background: linear-gradient(180deg, #fff, #fff8fb); }
.profiles-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 30px; }
.profiles-filters { top: 88px; border-radius: 12px; box-shadow: 0 5px 18px rgba(55, 27, 41, .05); }
.filter-stack input, .filter-stack select, .sort-form select { border-radius: 7px; }
.results-toolbar { border-bottom: 1px solid var(--ui-line); padding-bottom: 14px; }

.admin-shell { background: #fbf8fa; }
.admin-nav { background: #291b24; border-radius: 12px; box-shadow: 0 10px 24px rgba(35, 18, 28, .12); }
.admin-panel, .stat-card { border-radius: 12px; border-color: var(--ui-line); box-shadow: 0 5px 18px rgba(55, 27, 41, .05); }
.admin-panel-head a { color: var(--ui-pink); font-weight: 700; }
.stat-icon { background: #fff0f6; color: var(--ui-pink); }
.admin-table { min-width: 680px; }
.admin-table th { background: #fff4f8; color: #684f5b; }
.admin-table td, .admin-table th { padding: 12px 14px; }

a.whatsapp-float {
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #168a52;
  box-shadow: 0 12px 26px rgba(22, 138, 82, .25);
  font-size: 12px;
}
a.whatsapp-float .brand-glyph { width: 22px; height: 22px; }

@media (min-width: 768px) {
  a.whatsapp-float { width: auto; height: 46px; padding: 0 16px; border-radius: 999px; }
  a.whatsapp-float span { display: inline; }
}

@media (max-width: 1100px) {
  .profile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-search-fields button { width: 100%; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 62px 100px; }
  .hero-proof-card { justify-self: start; max-width: 520px; }
  .profiles-layout { grid-template-columns: 1fr; }
  .profiles-filters { position: static; }
  .admin-nav { overflow-x: auto; display: flex; gap: 4px; white-space: nowrap; }
  .admin-nav a, .admin-nav form { flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 560px); }
  .topbar-inner { min-height: 38px; }
  .topbar-badges { display: none; }
  .hero.hero-modern {
    min-height: 640px;
    background-image:
      linear-gradient(180deg, rgba(20, 24, 34, .78) 0%, rgba(20, 24, 34, .94) 76%, rgba(20, 24, 34, .98) 100%),
      var(--site-hero-image);
    background-position: center, 58% center;
  }
  .hero-grid { padding-block: 48px 112px; }
  .hero-modern h1 { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .hero-actions > * { flex: 1 1 100%; }
  .quick-search-wrap { margin-top: -72px; }
  .quick-search-fields { grid-template-columns: 1fr; }
  .real-stats { grid-template-columns: 1fr; }
  .profile-grid, .profiles-grid { grid-template-columns: 1fr; gap: 14px; }
  .profile-photo { height: 330px; }
  .profile-card .profile-body { padding: 14px; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .sort-form { width: 100%; }
  .sort-form select { flex: 1; }
  .admin-grid, .stats-grid, .modern-stats { grid-template-columns: 1fr; }
  .admin-top { align-items: flex-start; flex-direction: column; }
  .admin-today { width: 100%; }
  a.whatsapp-float { right: 14px; bottom: 14px; }
}

/* Panier ------------------------------------------------------------------ */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr); gap: 22px; align-items: start; }
.cart-list { display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.cart-item-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--primary-light); color: var(--primary); }
.cart-item h2 { margin: 0; font-family: var(--font-serif); font-size: 18px; font-weight: 500; }
.cart-item p { margin: 2px 0; color: var(--text-muted); font-size: 11px; }
.cart-controls { display: flex; align-items: center; gap: 6px; }
.cart-controls form { display: flex; gap: 4px; }
.cart-controls input { width: 50px; height: 34px; border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; }
.cart-controls button { height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 10px; color: var(--primary); }
.cart-summary { position: sticky; top: 90px; padding: 20px; border-radius: var(--radius-md); background: var(--dark); color: #fff; }
.cart-summary h2 { margin: 0 0 12px; font-family: var(--font-serif); font-size: 22px; font-weight: 500; color: #fbcfe8; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.12); color: #d4c6cd; font-size: 12px; }
.summary-row.summary-total { border-bottom: 0; color: #fff; font-size: 17px; font-weight: 700; }
.payment-warning { margin: 10px 0; padding: 10px; border-radius: 8px; background: rgba(255,255,255,0.08); color: #eedde5; font-size: 10px; }
.cart-whatsapp { margin-top: 8px; min-height: 40px; display: flex; justify-content: center; align-items: center; gap: 6px; border-radius: 6px; background: var(--whatsapp); color: #fff; font-size: 11px; font-weight: 700; }
.cart-whatsapp:hover { background: var(--whatsapp-hover); color: #fff; }
.cart-whatsapp-note { color: #caaebc; text-align: center; font-size: 8px; }

/* Messagerie -------------------------------------------------------------- */
.inbox-shell { max-width: 900px; }
.inbox-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.inbox-toolbar > div { display: flex; align-items: baseline; gap: 4px; }
.inbox-toolbar strong { font-family: var(--font-serif); font-size: 26px; color: var(--primary); }
.inbox-toolbar span { color: var(--text-muted); font-size: 10px; }
.conversation-list { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-subtle); }
.conversation-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.conversation-row:last-child { border-bottom: 0; }
.conversation-row:hover, .conversation-row.has-unread { background: #fdf2f8; }
.conversation-avatar { position: relative; width: 44px; height: 44px; display: block; }
.conversation-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.conversation-avatar > i { position: absolute; right: -2px; bottom: -1px; color: #1d72b8; background: #fff; border-radius: 50%; }
.conversation-copy { min-width: 0; display: flex; flex-direction: column; }
.conversation-name { font-size: 13px; font-weight: 700; }
.conversation-name small { color: var(--text-muted); font-weight: 400; }
.conversation-preview { color: var(--text-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-meta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; justify-items: end; }
.conversation-meta time { grid-column: 1 / -1; color: var(--text-muted); font-size: 8px; }
.conversation-meta b { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 99px; background: var(--primary); color: #fff; font-size: 8px; }
.conversation-meta > i { color: var(--text-muted); font-size: 8px; }
.modern-empty > span { width: 54px; height: 54px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-light); color: var(--primary); font-size: 20px; }
.chat-page .section { padding-top: 32px; }
.chat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.chat-safety { position: sticky; top: 90px; display: grid; gap: 10px; }
.back-link { font-size: 11px; font-weight: 700; color: var(--primary); }
.chat-profile, .safety-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; text-align: center; }
.chat-profile img { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; object-fit: cover; }
.chat-profile h2 { margin: 8px 0 2px; font-family: var(--font-serif); font-size: 20px; font-weight: 500; }
.chat-profile > a { color: var(--primary); font-size: 10px; font-weight: 700; }
.safety-card { text-align: left; background: var(--dark); color: #fff; }
.safety-card > i { color: #f472b6; }
.safety-card h3 { margin: 8px 0 3px; font-size: 12px; }
.safety-card p { margin: 0; color: #caaebc; font-size: 9px; }
.chat-panel { min-height: 600px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-subtle); }
.chat-header { min-height: 62px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.chat-header .conversation-avatar { width: 38px; height: 38px; }
.chat-header > div { display: flex; flex-direction: column; }
.chat-header strong { font-size: 12px; }
.chat-header small { color: #157347; font-size: 8px; font-weight: 600; }
.status-presence { width: 9px; height: 9px; border-radius: 50%; background: #198754; border: 2px solid #fff; }
.private-pill { margin-left: auto; padding: 4px 7px; border-radius: 99px; background: var(--primary-light); color: var(--primary); font-size: 8px; font-weight: 600; }
.message-stream { flex: 1; max-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding: 16px; background: #fffcfd; }
.chat-date { align-self: center; padding: 3px 7px; border-radius: 99px; background: #fdf2f8; color: var(--primary); font-size: 8px; font-weight: 600; }
.message-bubble { max-width: 76%; padding: 8px 11px 5px; border-radius: 12px; font-size: 11px; }
.message-bubble p { margin: 0; overflow-wrap: anywhere; }
.message-bubble footer { display: flex; justify-content: flex-end; gap: 4px; margin-top: 3px; font-size: 7px; opacity: 0.65; }
.message-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, #f472b6, #d94680); color: #fff; border-bottom-right-radius: 3px; }
.message-bubble.theirs { align-self: flex-start; background: #fdf2f8; color: var(--text-main); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.message-composer { display: grid; grid-template-columns: 1fr 40px; gap: 7px; align-items: end; padding: 10px; border-top: 1px solid var(--border); }
.message-composer textarea { max-height: 110px; resize: none; border: 1px solid var(--border); border-radius: 8px; padding: 9px; font-size: 11px; }
.message-composer button { width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; }
.message-composer button:hover { background: var(--primary-hover); }
.chat-disabled { padding: 12px; background: #fdf2f8; color: var(--text-muted); font-size: 10px; text-align: center; }

/* Tableaux ---------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.orders-table, .admin-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 11px; }
.orders-table th, .orders-table td, .admin-table th, .admin-table td { padding: 10px 11px; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: top; }
.orders-table th, .admin-table th { background: var(--primary-subtle); color: var(--text-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.orders-table tr:last-child td, .admin-table tr:last-child td { border-bottom: 0; }

/* Administration ---------------------------------------------------------- */
.admin-shell { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 60px; }
.admin-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-subtle); }
.admin-nav a, .admin-nav button { min-height: 32px; display: flex; align-items: center; gap: 5px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #55464d; font-size: 10px; font-weight: 700; }
.admin-nav a:hover, .admin-nav button:hover { background: var(--primary-light); color: var(--primary); }
.admin-nav form { margin-left: auto; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.admin-top h1 { margin: 2px 0; font-family: var(--font-serif); font-size: 34px; font-weight: 500; color: var(--text-main); }
.admin-top p { margin: 0; color: var(--text-muted); font-size: 12px; }
.admin-today { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; font-size: 9px; }
.admin-today > span { color: var(--primary); font-weight: 700; }
.admin-today b { font-size: 12px; color: var(--primary); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-card { display: flex; align-items: center; gap: 10px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.stat-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--primary-light); color: var(--primary); font-size: 14px; }
.stat-card > div { min-width: 0; }
.stat-card span { color: var(--text-muted); font-size: 9px; font-weight: 600; }
.stat-card strong { display: block; font-family: var(--font-serif); font-size: 24px; line-height: 1; color: var(--primary); }
.stat-card small { color: var(--text-light); font-size: 8px; }
.admin-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.admin-panel { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-subtle); }
.admin-panel h2 { margin: 0 0 11px; font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--primary); }
.admin-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border-light); }
.admin-panel-head h2 { margin: 2px 0 0; }
.admin-panel-head > a { color: var(--primary); font-size: 9px; font-weight: 700; }
.admin-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-actions button, .admin-edit-link { min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border: 0; border-radius: 5px; background: #eaf7f1; color: #176b51; font-size: 8px; font-weight: 700; }
.admin-actions button.reject { background: #fff0f1; color: #982b3a; }
.admin-actions button.block { background: #f0ebed; color: #53434a; }
.admin-edit-link { background: #eaf2fb; color: #27659a; }
.admin-photo { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.moderation-list > article { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.moderation-list > article:last-child { border-bottom: 0; }
.moderation-list img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.moderation-list strong, .moderation-list span { display: block; }
.moderation-list strong { font-size: 11px; }
.moderation-list span { color: var(--text-muted); font-size: 8px; }
.activity-list article { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.activity-list article:last-child { border-bottom: 0; }
.activity-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; background: var(--primary-light); color: var(--primary); }
.activity-list strong, .activity-list small { display: block; }
.activity-list strong { font-size: 9px; }
.activity-list small { color: var(--text-muted); font-size: 7px; }
.empty-admin { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); }
.empty-admin > i { color: #198754; font-size: 22px; }
.empty-admin strong { color: var(--text-main); margin-top: 8px; }
.empty-admin span { font-size: 9px; }
.review-admin-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.review-admin-list article:last-child { border-bottom: 0; }
.review-admin-list p { margin: 3px 0 0; color: var(--text-muted); font-size: 9px; }
.admin-data-note { color: var(--text-muted); text-align: right; font-size: 8px; }
.audit-privacy { padding: 5px 8px; border-radius: 99px; background: #edf7f3; color: #236b52; font-size: 8px; font-weight: 600; }
.actor-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 99px; background: #f2ecef; font-size: 8px; }
.actor-pill.actor-admin { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.admin-table code { font-size: 8px; color: var(--text-muted); }

.admin-edit-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.admin-edit-head > img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.admin-edit-head > div { flex: 1; }
.admin-edit-head h1 { margin: 2px 0; font-family: var(--font-serif); font-size: 28px; font-weight: 500; color: var(--text-main); }
.admin-edit-head p { margin: 0; color: var(--text-muted); font-size: 10px; }
.admin-form-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); gap: 16px; align-items: start; }
.admin-form-grid > aside { position: sticky; top: 90px; display: grid; gap: 14px; }
.admin-edit-card { max-width: 740px; margin: 0 auto; }
.status-banner { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border-radius: var(--radius-sm); background: var(--primary-subtle); border: 1px solid var(--border); color: var(--primary-hover); font-size: 10px; }

/* Compléments de structure ------------------------------------------------ */
.desktop-only { display: inline-flex; }
.nav-icon { width: 18px; text-align: center; color: var(--primary); }
.brand-on-dark strong { color: #fff; }
.brand-on-dark small { color: #fbcfe8; }
.channel-body, .contact-info-column, .contact-form-wrapper,
.dashboard-content, .profiles-results { min-width: 0; }
.real-stats-note { margin: 6px 2px 0; color: var(--text-muted); text-align: right; font-size: 9px; }
.register-form { width: 100%; }
.inbox-hero { background: linear-gradient(180deg, #fff 0%, #faf3f5 100%); }
.profile-detail-section { background: var(--bg-page); }
.profile-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.demo-message-state { display: flex; align-items: flex-start; gap: 10px; }
.demo-message-state > i { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--primary-light); color: var(--primary); }
.demo-message-state strong { font-size: 12px; }
.demo-message-state p { margin: 2px 0 0; }
.text-action { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.text-action:hover { color: var(--primary); }
.report-disclosure { margin-top: 16px; color: var(--text-muted); font-size: 11px; }
.report-disclosure summary { width: max-content; cursor: pointer; font-weight: 600; }
.report-box { display: grid; grid-template-columns: minmax(130px, 0.7fr) minmax(160px, 1fr) auto; gap: 8px; align-items: center; margin-top: 8px; }
.report-box select, .report-box textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px; background: #fff; font-size: 11px; }
.modern-admin-top { align-items: center; }
.modern-stats { grid-template-columns: repeat(3, 1fr); }

/* Responsive pages internes ---------------------------------------------- */
@media (max-width: 1100px) {
  .profiles-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .profiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-kpis { grid-template-columns: repeat(2, 1fr); }
  .recommendations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .desktop-only { display: none !important; }
  .profile-badges { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .report-box { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 28px; }
  .content-visual { min-height: 360px; order: -1; }
  .content-visual-card { left: 14px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { min-height: 300px; padding: 32px 24px; }
  .auth-main { padding: 36px 20px; }
  .profiles-hero-inner { align-items: flex-start; flex-direction: column; }
  .profiles-hero-note { flex-basis: auto; width: 100%; }
  .profiles-layout { grid-template-columns: 1fr; }
  .profiles-filters { position: static; }
  .filter-stack { grid-template-columns: 1fr 1fr; }
  .filter-stack .primary-button, .filter-stack .reset-filters, .filter-safety { grid-column: 1 / -1; }
  .account-hero-inner { align-items: flex-start; flex-direction: column; }
  .completion-card { width: 100%; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .dashboard-sidebar nav { grid-template-columns: repeat(3, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-safety { position: static; grid-template-columns: 1fr 1fr; }
  .back-link { grid-column: 1 / -1; }
  .security-grid { grid-template-columns: 1fr; }
  .admin-nav { flex-wrap: nowrap; overflow-x: auto; }
  .admin-nav a { white-space: nowrap; }
  .admin-nav form { margin-left: 0; }
  .admin-grid, .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid > aside { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-top { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .legal-content { padding: 22px 16px; }
  .auth-aside { min-height: 240px; padding: 24px 16px; }
  .auth-main { padding: 28px 16px; }
  .auth-aside h1 { font-size: 30px; }
  .filter-stack { grid-template-columns: 1fr; }
  .filter-stack .primary-button, .filter-stack .reset-filters, .filter-safety { grid-column: auto; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .sort-form { width: 100%; justify-content: space-between; }
  .sort-form select { flex: 1; }
  .profiles-grid { grid-template-columns: 1fr; }
  .account-welcome h1 { font-size: 28px; }
  .account-kpis { grid-template-columns: 1fr 1fr; }
  .dashboard-sidebar nav { grid-template-columns: 1fr 1fr; }
  .dashboard-card { padding: 18px; }
  .recommendations-grid { grid-template-columns: 1fr; }
  .account-photo-grid { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 42px minmax(0, 1fr); }
  .cart-item-icon { width: 42px; height: 42px; }
  .cart-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .conversation-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 10px; }
  .conversation-avatar { width: 38px; height: 38px; }
  .conversation-meta time { display: none; }
  .chat-safety { grid-template-columns: 1fr; }
  .chat-profile { display: none; }
  .chat-panel { min-height: 65vh; }
  .message-bubble { max-width: 88%; }
  .stats-grid { grid-template-columns: 1fr; }
  .admin-today { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .admin-today > span { grid-column: 1 / -1; }
  .moderation-list > article { grid-template-columns: 38px minmax(0, 1fr); }
  .moderation-list .admin-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .admin-edit-head { flex-wrap: wrap; align-items: flex-start; }
  .admin-edit-head .outline-button { width: 100%; }
  .review-admin-list article { grid-template-columns: 1fr; }
  .table-scroll { border-radius: 6px; }
  .orders-table, .admin-table { min-width: 650px; }
}

/* ==========================================================================
   Pages internes — Responsive renforcé
   ========================================================================== */

@media (max-width: 1100px) {
  .profiles-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .profiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .profiles-layout { grid-template-columns: 1fr; }
  .profiles-filters {
    position: static;
    width: 100%;
    margin-bottom: 8px;
  }
  .filter-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filter-stack label { margin: 0; }
  .filter-stack .age-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filter-stack .primary-button,
  .filter-stack .reset-filters,
  .filter-safety {
    grid-column: 1 / -1;
  }
  .profiles-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .profiles-hero-note { width: 100%; }
  .profile-detail.modern-detail { gap: 22px; }
  .profile-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .profile-badges {
    flex-wrap: wrap;
    width: 100%;
  }
  .account-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .completion-card { width: 100%; max-width: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .dashboard-sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-safety {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { min-height: 260px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-visual { order: -1; min-height: 280px; }
  .admin-grid,
  .admin-form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .filter-stack { grid-template-columns: 1fr; }
  .filter-stack .age-fields { grid-template-columns: 1fr 1fr; }
  .filter-stack .primary-button,
  .filter-stack .reset-filters,
  .filter-safety { grid-column: auto; }

  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .sort-form {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sort-form select { flex: 1; min-width: 0; }

  .profiles-grid { grid-template-columns: 1fr; }
  .account-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dashboard-sidebar nav { grid-template-columns: 1fr 1fr; }
  .recommendations-grid { grid-template-columns: 1fr; }
  .account-photo-grid { grid-template-columns: 1fr 1fr; }

  .cart-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }
  .cart-controls {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .conversation-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }
  .conversation-meta time { display: none; }

  .chat-safety { grid-template-columns: 1fr; }
  .chat-profile { display: none; }
  .chat-panel { min-height: 60vh; }
  .message-bubble { max-width: 88%; }

  .stats-grid { grid-template-columns: 1fr; }
  .auth-aside { min-height: 200px; padding: 24px 16px; }
  .auth-main { padding: 24px 16px; }
  .auth-aside h1 { font-size: clamp(1.5rem, 7vw, 1.9rem); }

  .legal-content { padding: 20px 14px; }
  .page-hero { padding: 36px 0 28px; }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
}

@media (max-width: 400px) {
  .account-kpis { grid-template-columns: 1fr; }
  .account-photo-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar nav { grid-template-columns: 1fr; }
}

/* Production visual system: slate, off-white and restrained burgundy. */
:root {
  --primary: #8f334f;
  --primary-hover: #72263e;
  --primary-light: #f5ecef;
  --primary-subtle: #fbf7f8;
  --primary-glow: rgba(143, 51, 79, .16);
  --accent-gold: #a8824a;
  --dark: #202733;
  --dark-surface: #293342;
  --text-main: #202733;
  --text-muted: #667080;
  --bg-page: #f7f8fa;
  --bg-soft: #f0f2f5;
  --border: #dde2e8;
  --border-light: #e9edf1;
  --border-hover: #c7a4b0;
  --shadow-card: 0 12px 30px rgba(32, 39, 51, .09);
  --shadow-hover: 0 18px 36px rgba(32, 39, 51, .14);
}

body { background: var(--bg-page); color: var(--text-main); }
.topbar { background: #202733; }
.site-header { background: rgba(247, 248, 250, .96); }
.brand-mark, .join-link, .primary-button, .profile-cta { background: var(--primary); box-shadow: none; }
.brand-mark:hover, .join-link:hover, .primary-button:hover, .profile-cta:hover { background: var(--primary-hover); }
.hero.hero-modern {
  background-color: #202733;
  background-image:
    linear-gradient(90deg, rgba(20, 24, 34, .96) 0%, rgba(35, 27, 39, .82) 43%, rgba(35, 27, 39, .34) 100%),
    linear-gradient(180deg, rgba(20, 24, 34, .12), rgba(20, 24, 34, .48)),
    var(--site-hero-image);
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}
.hero-proof-card { background: rgba(32, 39, 51, .76); border-color: rgba(255,255,255,.22); }
.hero-pill, .eyebrow { color: var(--primary); }
.hero-pill { background: rgba(255,255,255,.1); color: #f4e5ea; }
.hero.hero-modern::before {
  background: linear-gradient(90deg, rgba(20, 24, 34, .12), rgba(20, 24, 34, .04) 58%, rgba(20, 24, 34, .18));
}
.hero-modern h1 em { color: #e6b8c7; }
.quick-search, .profile-card, .profiles-filters, .admin-panel, .stat-card, .dashboard-card { background: #fff; }
.quick-search, .profile-card, .profiles-filters, .admin-panel, .stat-card { border-color: var(--border); }
.profile-card:hover { border-color: #c7a4b0; }
.profile-wa { background: #edf5f0; color: #226843; }
.section-soft, .profiles-hero { background: #eef1f4; }
.section-dark, .cta-banner, .account-hero { background: #202733; }
.service-card.featured, .service-card { border-color: rgba(255,255,255,.14); }
.admin-shell { background: #eef1f4; }
.admin-nav, .dashboard-sidebar { background: #202733; }
.stat-icon, .real-stat-icon { background: #f5ecef; color: var(--primary); }
.admin-table th { background: #f1f3f6; color: #46515f; }
.pagination a:hover, .pagination a.current { background: var(--primary); border-color: var(--primary); }
a.whatsapp-float { background: #168a52; }

/* Logos sociaux: dimensions fixes pour eviter les deformations de la cascade CSS. */
.topbar-social-link,
.social-icon-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  padding: 0 !important;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.topbar-social-link .brand-glyph,
.social-icon-btn .brand-glyph,
.topbar-social-link .brand-icon,
.social-icon-btn .brand-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}
.topbar-social-link.facebook,
.social-icon-btn.facebook { background: #1877f2; color: #fff; }
.topbar-social-link.whatsapp,
.social-icon-btn.whatsapp { background: #25d366; color: #fff; }
.mobile-whatsapp-btn .brand-glyph,
.mobile-facebook-btn .brand-glyph,
.mobile-whatsapp-btn .brand-icon,
.mobile-facebook-btn .brand-icon { width: 20px; height: 20px; flex: 0 0 20px; font-size: 20px; }
.profile-wa .brand-glyph,
.profile-wa .brand-icon { width: 18px; height: 18px; flex: 0 0 18px; font-size: 17px; }
a.whatsapp-float .brand-glyph,
a.whatsapp-float .brand-icon { width: 25px; height: 25px; flex: 0 0 25px; font-size: 25px; }

@media (max-width: 640px) {
  .profile-card .profile-body { padding: 14px; }
  .topbar-actions { gap: 6px; }
  .topbar-social-link { width: 30px !important; height: 30px !important; min-width: 30px; }
  .topbar-social-link .brand-glyph,
  .topbar-social-link .brand-icon { width: 17px; height: 17px; flex-basis: 17px; font-size: 16px; }
}
