 
 
    :root {
      --bg: #f6f7fb;
      --surface: #ffffff;
      --surface-2: #f0f2f8;
      --text: #171923;
      --muted: #6b7280;
      --border: #e5e7eb;
      --primary: #7557ff;
      --primary-strong: #5b3fe0;
      --primary-soft: #eeeaff;
      --accent: #ff7a59;
      --success: #1f9d68;
      --danger: #d64545;
      --shadow: 0 18px 45px rgba(28, 25, 60, 0.08);
      --radius: 22px;
      --radius-sm: 14px;
      --header-bg: rgba(246, 247, 251, 0.86);
    }

    body.dark {
      --bg: #0f1117;
      --surface: #171a22;
      --surface-2: #20242e;
      --text: #f7f7fb;
      --muted: #a7acba;
      --border: #2d3240;
      --primary: #9b87ff;
      --primary-strong: #b4a6ff;
      --primary-soft: #282240;
      --accent: #ff9a80;
      --success: #46c98d;
      --danger: #ff7777;
      --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
      --header-bg: rgba(15, 17, 23, 0.88);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(117, 87, 255, 0.12), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(255, 122, 89, 0.10), transparent 28%),
        var(--bg);
      color: var(--text);
      min-height: 100vh;
      transition: background-color .25s ease, color .25s ease;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(18px);
      background: var(--header-bg);
      border-bottom: 1px solid var(--border);
    }

    .nav {
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 11px;

  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-name {
  display: block;
}

.received-application-badge {
  position: absolute;
  top: -8px;
  right: -13px;

  min-width: 21px;
  height: 21px;

  display: grid;
  place-items: center;

  padding: 0 5px;

  border: 2px solid var(--header-bg);
  border-radius: 999px;

  background: #e53935;
  color: white;

  box-shadow:
    0 5px 14px
    rgba(229, 57, 53, 0.42);

  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
}

.received-application-badge[hidden] {
  display: none;
}


.home-floating-tab
.received-application-badge,
.mobile-bottom-button
.received-application-badge {
  top: 4px;
  right: 6px;
}


/* =========================
   FENÊTRE DES NOTIFICATIONS
========================= */

.notifications-modal {
  width: min(540px, 100%);
}

.notifications-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 18px;
}

.notifications-modal-header h3 {
  margin: 0;
}


/* =========================
   FILTRES NOTIFICATIONS
========================= */

.notifications-toolbar {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 10px;

  margin-bottom: 16px;
}


.notifications-toolbar select {
  min-width: 0;
}


.notifications-toolbar .btn {
  white-space: nowrap;
}


@media (max-width: 560px) {

  .notifications-toolbar {
    grid-template-columns: 1fr;
  }


  .notifications-toolbar .btn {
    width: 100%;
  }

}


.notifications-modal-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 13px;

  background: var(--surface-2);
  color: var(--text);

  font-size: 1.25rem;
  font-weight: 900;
}

.notifications-list {
  display: grid;
  gap: 11px;

  max-height: 60vh;
  overflow-y: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 1fr 38px;
  align-items: center;
  gap: 10px;

  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 15px;

  background: var(--surface-2);
}

.notification-item.notification-unread {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.notification-item.notification-unread::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.notification-item {
  position: relative;
}

.notification-type-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.notification-date {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.notification-open {
  min-width: 0;

  display: grid;
  gap: 5px;

  padding: 0;

  border: 0;
  background: transparent;
  color: var(--text);

  text-align: left;
}

.notification-open strong {
  overflow-wrap: anywhere;
}

.notification-open span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.notification-invitation-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notification-invitation-actions .btn {
  flex: 1 1 140px;
}

.notification-delete {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 11px;

  background: rgba(214, 69, 69, 0.12);
  color: var(--danger);

  font-size: 1.1rem;
  font-weight: 900;
}

.notification-delete:hover {
  background: rgba(214, 69, 69, 0.22);
}

.application-notification-highlight {
  outline: 3px solid var(--primary);
  outline-offset: 4px;

  box-shadow:
    0 0 0 8px
    rgba(117, 87, 255, 0.14);
}


.brand-mark {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      color: white;
      font-weight: 900;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      box-shadow: 0 10px 24px rgba(117, 87, 255, 0.28);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .nav-link {
  position: relative;

  border: 0;
      background: transparent;
      color: var(--muted);
      padding: 10px 13px;
      border-radius: 12px;
      font-weight: 700;
    }

    .nav-link:hover,
    .nav-link.active {
      background: var(--primary-soft);
      color: var(--primary-strong);
    }

    .theme-toggle {
      width: 46px;
      height: 46px;
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--surface);
      color: var(--text);
      display: grid;
      place-items: center;
      box-shadow: var(--shadow);
      font-size: 1.15rem;
    }

    .hero {
      padding: 72px 0 46px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.08fr .92fr;
      align-items: center;
      gap: 46px;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: var(--primary-strong);
      font-weight: 800;
      font-size: .86rem;
    }

    .hero h1 {
      margin: 20px 0 18px;
      max-width: 760px;
      font-size: clamp(2.5rem, 6vw, 5.4rem);
      line-height: .98;
      letter-spacing: -0.055em;
    }

    .hero h1 span {
      background: linear-gradient(135deg, var(--primary), var(--accent));
      -webkit-background-clip: text;
      color: transparent;
    }

    .hero p {
      margin: 0;
      max-width: 660px;
      color: var(--muted);
      font-size: 1.08rem;
      line-height: 1.75;
    }

    .hero-actions {
      margin-top: 28px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .btn {
      border: 0;
      border-radius: 14px;
      padding: 13px 17px;
      font-weight: 800;
      transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    }

    .btn:hover {
      transform: translateY(-1px);
    }

    .btn-primary {
      color: white;
      background: linear-gradient(135deg, var(--primary), var(--primary-strong));
      box-shadow: 0 14px 28px rgba(117, 87, 255, .24);
    }

    .btn-secondary {
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .btn-danger {
      background: rgba(214, 69, 69, .12);
      color: var(--danger);
    }

    .hero-card {
      position: relative;
      min-height: 430px;
      border-radius: 34px;
      padding: 28px;
      overflow: hidden;
      color: white;
      background:
        linear-gradient(145deg, rgba(117, 87, 255, .95), rgba(255, 122, 89, .9));
      box-shadow: 0 30px 80px rgba(59, 39, 128, .28);
    }

    .hero-card::after {
      content: "";
      position: absolute;
      width: 260px;
      height: 260px;
      border-radius: 50%;
      right: -80px;
      bottom: -70px;
      background: rgba(255, 255, 255, .16);
    }

    .hero-card h2 {
      margin: 0 0 10px;
      font-size: 1.75rem;
      letter-spacing: -.03em;
    }

    .hero-card p {
      color: rgba(255,255,255,.86);
      font-size: .98rem;
      line-height: 1.6;
    }

    .mini-stack {
      position: relative;
      z-index: 2;
      display: grid;
      gap: 14px;
      margin-top: 28px;
    }

    .mini-card {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px;
      border-radius: 18px;
      background: rgba(255,255,255,.16);
      border: 1px solid rgba(255,255,255,.22);
      backdrop-filter: blur(12px);
    }

    .mini-icon {
      flex: 0 0 46px;
      width: 46px;
      height: 46px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.2);
      font-size: 1.3rem;
    }

    .mini-card strong,
    .mini-card span {
      display: block;
    }

    .mini-card span {
      margin-top: 3px;
      color: rgba(255,255,255,.78);
      font-size: .88rem;
    }

    .trust-row {
      margin-top: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: .9rem;
      font-weight: 700;
      color: rgba(255,255,255,.9);
      position: relative;
      z-index: 2;
    }

/* =========================
   PROFIL DE LA PERSONNE QUI CHERCHE
========================= */

.seeker-hero-profile {
  position: relative;
  z-index: 2;
  margin-top: 24px;
}

.seeker-hero-top {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
}

.seeker-hero-photo {
  width: 110px;
  height: 110px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.20);
  border: 3px solid rgba(255, 255, 255, 0.55);
  color: white;
  font-size: 2rem;
  font-weight: 900;
}

.seeker-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}


.photo-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  padding: 24px;

  background:
    rgba(5, 7, 12, 0.88);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


.photo-zoom-dialog {
  position: relative;

  max-width: 92vw;
  max-height: 90vh;
}


.photo-zoom-image {
  display: block;

  max-width: 92vw;
  max-height: 88vh;

  object-fit: contain;

  border-radius: 24px;

  box-shadow:
    0 30px 90px
    rgba(0, 0, 0, 0.55);
}


.photo-zoom-close {
  position: absolute;

  top: -16px;
  right: -16px;

  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: white;
  color: #171923;

  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;

  box-shadow:
    0 8px 24px
    rgba(0, 0, 0, 0.28);
}

.seeker-hero-name {
  margin: 0;
  color: white;
  font-size: 1.55rem;
}

.seeker-hero-meta {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.seeker-hero-language {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.seeker-hero-presentation {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.seeker-hero-presentation strong {
  display: block;
  margin-bottom: 7px;
}

.seeker-hero-presentation p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
}

.seeker-profile-preview {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
}

.seeker-profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin: 0;

  color: var(--text);

  font-size: 1rem;
  font-weight: 900;

  cursor: pointer;
  list-style: none;
}

.profile-title-row {
  min-width: 0;
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-form-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: 8px;
}

.profile-form-title-row h3 {
  margin: 0;
}

.profile-completion-status {
  flex-shrink: 1;

  display: grid;
  gap: 4px;

  max-width: 330px;

  padding: 8px 11px;

  border-radius: 14px;

  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.25;

  white-space: normal;
}

.profile-completion-status strong {
  display: block;
}

.profile-completion-status small {
  display: block;

  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;

  opacity: 0.85;
}

.profile-completion-status.complete {
  background: rgba(31, 157, 104, 0.13);
  color: var(--success);
}

.profile-completion-status.incomplete {
  background: rgba(244, 180, 0, 0.16);
  color: #8a5a00;
}

@media (max-width: 560px) {

  .profile-completion-status {
    max-width: 190px;

    padding: 7px 9px;

    font-size: 0.67rem;
  }

  .profile-completion-status small {
    font-size: 0.61rem;
  }

}

.seeker-profile-summary::-webkit-details-marker {
  display: none;
}

.seeker-profile-arrow {
  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  border-radius: 10px;

  background: var(--primary-soft);
  color: var(--primary-strong);

  font-size: 0.75rem;

  transition: transform 0.2s ease;
}

.seeker-profile-preview[open]
  .seeker-profile-summary {
  margin-bottom: 18px;
}

.seeker-profile-preview[open]
  .seeker-profile-arrow {
  transform: rotate(180deg);
}

.seeker-photo-upload {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}

.seeker-photo-preview {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 1.7rem;
  font-weight: 900;
}

.seeker-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.request-owner-profile {
  margin: 17px 0;
  padding: 15px;
  border-radius: 16px;
  background: var(--surface-2);
}

.request-owner-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.request-owner-photo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 900;
}

.request-owner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar img,
.profile-details-photo img,
.request-owner-photo img {
  cursor: zoom-in;
}

.request-owner-name {
  font-weight: 900;
}

.request-owner-meta,
.request-owner-languages {
  margin-top: 4px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.request-owner-bio {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  .seeker-hero-top {
    grid-template-columns: 82px 1fr;
  }

  .seeker-hero-photo {
    width: 82px;
    height: 82px;
    border-radius: 21px;
  }

  .seeker-photo-upload {
    align-items: flex-start;
    flex-direction: column;
  }
}


    .stats {
      padding: 22px 0 60px;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
    }

    .stat {
      padding: 22px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--surface);
      box-shadow: var(--shadow);
    }

    .stat strong {
      display: block;
      font-size: 1.7rem;
      letter-spacing: -.03em;
    }

        .stat span {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-size: .93rem;
    }


    /* =========================
       MENNKAH'APPSTRACAGE
    ========================= */

    .tracking-stat {
      display: grid;
      align-content: center;
      gap: 11px;
    }

    .tracking-stat.tracking-active {
      border-color: var(--success);
      box-shadow:
        0 16px 38px
        rgba(31, 157, 104, 0.16);
    }

    .tracking-stat-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }

    .tracking-stat .tracking-title {
      display: block;
      font-size: 1.08rem;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .tracking-status {
      margin-top: 0 !important;
      font-weight: 800;
    }

        .tracking-privacy {
      color: var(--muted);
      font-size: .75rem;
      line-height: 1.45;
    }

    .tracking-expiration {
  padding: 10px 12px;

  border-radius: 12px;

  background: var(--primary-soft);
  color: var(--primary-strong);

  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.4;
}


.tracking-expiration[hidden],
.tracking-safety-actions[hidden] {
  display: none !important;
}


.tracking-safety-actions {
  display: grid;
  gap: 9px;

  margin-top: 8px;
}


.tracking-safety-actions .btn {
  width: 100%;

  padding: 13px 12px;

  font-size: 0.84rem;
}


.tracking-stop-button {
  font-weight: 900;
}


.tracking-safe-button {
  color: var(--success);

  border-color:
    rgba(31, 157, 104, 0.38);
}


.tracking-close-friend-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

    .tracking-close-friend-actions[hidden],
    .tracking-close-friend-active[hidden] {
      display: none;
    }

    .tracking-close-friend-actions .btn {
      width: 100%;
      padding: 10px 11px;
      font-size: .78rem;
    }

    .tracking-close-friend-active {
      display: grid;
      gap: 8px;
    }

    .tracking-close-friend-status {
      color: var(--success);
      font-size: .76rem;
      font-weight: 900;
      line-height: 1.4;
    }

    .tracking-switch {
      position: relative;
      flex: 0 0 56px;
      width: 56px;
      height: 32px;
      cursor: pointer;
    }

    .tracking-switch input {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .tracking-slider {
      position: absolute;
      inset: 0;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--surface-2);
      transition:
        background-color .2s ease,
        border-color .2s ease;
    }

    .tracking-slider::before {
      content: "";
      position: absolute;
      top: 4px;
      left: 4px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--muted);
      transition:
        transform .2s ease,
        background-color .2s ease;
    }

    .tracking-switch input:checked
      + .tracking-slider {
      border-color: var(--success);
      background: rgba(31, 157, 104, .24);
    }

    .tracking-switch input:checked
      + .tracking-slider::before {
      transform: translateX(24px);
      background: var(--success);
    }

    .tracking-switch input:focus-visible
      + .tracking-slider {
      outline: 3px solid rgba(117, 87, 255, .25);
      outline-offset: 3px;
    }


    .workspace {
      padding: 24px 0 78px;
    }

    .section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

    .section-head h2 {
      margin: 0;
      font-size: clamp(1.8rem, 4vw, 3rem);
      letter-spacing: -.045em;
    }

#workspaceTitle.outings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

#workspaceTitle.outings-toggle::after {
  content: "▼";
  font-size: 0.8rem;
  color: var(--primary-strong);
  transition: transform .2s ease;
}

#workspaceTitle.outings-toggle.open::after {
  transform: rotate(180deg);
}

    .section-head p {
      margin: 7px 0 0;
      color: var(--muted);
      line-height: 1.65;
    }

        .tabs {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;

  display: grid;
  grid-template-columns:
  repeat(2, minmax(0, 1fr));

  gap: 6px;
  padding: 7px;

  border-radius: 18px;

  border:
    1px solid
    rgba(117, 87, 255, 0.30);

  background:
    rgba(255, 255, 255, 0.52);

  box-shadow:
    0 12px 34px
    rgba(28, 25, 60, 0.10);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  overflow: hidden;
}

body.dark .tabs {
  background:
    rgba(23, 26, 34, 0.62);

  border-color:
    rgba(180, 166, 255, 0.28);
}

    .tab-btn {
  width: 100%;
  min-width: 0;
  min-height: 52px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 12px;

  background: transparent;
  color: var(--muted);

  padding: 10px 5px;

  font-size:
    clamp(
      0.72rem,
      1.6vw,
      0.95rem
    );

  font-weight: 800;
  line-height: 1.15;

  white-space: normal;
  text-align: center;
}

    .tab-btn.active {
  background: var(--primary);
  color: white;
}


.tab-btn:focus-visible {
  outline:
    3px solid
    var(--primary);

  outline-offset: 3px;
}

    .tab-panel {
      display: none;
    }

    .tab-panel.active {
      display: block;
      animation: fade .22s ease;
    }

    @keyframes fade {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .panel-grid {
      display: grid;
      grid-template-columns: 1fr .88fr;
      gap: 22px;
      align-items: start;
    }

    .card {
      border: 1px solid var(--border);
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }

    .form-card {
      padding: 26px;
    }

    .request-form-details {
  width: 100%;
}

.request-form-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  cursor: pointer;
  list-style: none;

  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.request-form-summary::-webkit-details-marker {
  display: none;
}

.request-form-arrow {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  flex: 0 0 36px;

  border-radius: 11px;

  background: var(--primary-soft);
  color: var(--primary-strong);

  font-size: .75rem;

  transition: transform .2s ease;
}

.request-form-details[open] .request-form-arrow {
  transform: rotate(180deg);
}

.request-form-details[open] .request-form-summary {
  margin-bottom: 18px;
}

    .form-intro {
      margin: 8px 0 24px;
      color: var(--muted);
      line-height: 1.6;
      font-size: .95rem;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    label {
      color: var(--text);
      font-size: .91rem;
      font-weight: 800;
    }

    input,
    select,
    textarea {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 13px;
      background: var(--surface-2);
      color: var(--text);
      padding: 13px 14px;
      outline: none;
      transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    }

    textarea {
      resize: vertical;
      min-height: 120px;
      line-height: 1.55;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(117, 87, 255, .12);
      background: var(--surface);
    }

    .hint {
      color: var(--muted);
      font-size: .8rem;
      line-height: 1.45;
    }

    .form-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 22px;
    }

    .side-card {
      padding: 24px;
      position: sticky;
      top: 96px;
    }

    .check-list {
      list-style: none;
      padding: 0;
      margin: 20px 0 0;
      display: grid;
      gap: 13px;
    }

    .check-list li {
      display: flex;
      gap: 10px;
      color: var(--muted);
      line-height: 1.5;
    }

    .check {
      flex: 0 0 24px;
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: var(--success);
      background: rgba(31, 157, 104, .12);
      font-weight: 900;
      font-size: .8rem;
    }

    .notice {
      margin-top: 20px;
      padding: 15px;
      border-radius: 15px;
      background: var(--primary-soft);
      color: var(--primary-strong);
      line-height: 1.55;
      font-size: .88rem;
      font-weight: 700;
    }

    .photo-upload {
      display: flex;
      gap: 16px;
      align-items: center;
      padding: 16px;
      border: 1px dashed var(--border);
      border-radius: 16px;
      background: var(--surface-2);
    }

    .avatar-preview {
      width: 88px;
      height: 88px;
      flex: 0 0 88px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      overflow: hidden;
      background: linear-gradient(135deg, var(--primary-soft), rgba(255,122,89,.18));
      border: 3px solid var(--surface);
      box-shadow: 0 8px 20px rgba(0,0,0,.08);
      color: var(--primary-strong);
      font-size: 1.8rem;
      font-weight: 900;
    }

    .avatar-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .search-box {
      padding: 22px;
      margin-bottom: 18px;
    }

    .search-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}


/* RECHERCHE PROFILS
   PC : 4 COLONNES
   TABLETTE : 2
   TELEPHONE : 1 */

.profile-search-grid {
  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );
}

.near-me-top {
  grid-column: 1 / -1;
  width: 100%;
}


@media (max-width: 980px) {

  .profile-search-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

}


@media (max-width: 720px) {

  .profile-search-grid {
    grid-template-columns: 1fr;
  }

  .profile-search-grid .btn {
    width: 100%;
  }

}


.list-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .profile-card,
.request-card {
  overflow: hidden;
}


/* =========================
   CARTE PROFIL FERMÉE
   ========================= */

/*
 * La carte fermée garde :
 * photo
 * prénom + âge
 * genre + ville + taille
 * vérification
 * avis
 */

.profile-card[data-profile-id] .tags,
.profile-card[data-profile-id] .bio,
.profile-card[data-profile-id] .price-row,
.profile-card[data-profile-id] .profile-card-actions {
  display: none;
}

    .profile-cover {
      height: 96px;
      background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.3), transparent 25%),
        linear-gradient(135deg, var(--primary), var(--accent));
    }

    .profile-body {
      padding: 0 20px 20px;
    }

    .profile-avatar {
      width: 84px;
      height: 84px;
      margin-top: -42px;
      border-radius: 50%;
      border: 4px solid var(--surface);
      overflow: hidden;
      display: grid;
      place-items: center;
      background: var(--surface-2);
      color: var(--primary-strong);
      font-size: 1.6rem;
      font-weight: 900;
      box-shadow: 0 10px 22px rgba(0,0,0,.12);
    }

    .profile-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .profile-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
      margin-top: 14px;
    }

    .profile-head h3 {
      margin: 0;
      font-size: 1.15rem;
    }

    .verified {
      font-size: .75rem;
      padding: 6px 8px;
      border-radius: 999px;
      color: var(--success);
      background: rgba(31,157,104,.12);
      font-weight: 900;
      white-space: nowrap;
    }

    .meta {
      margin-top: 7px;
      color: var(--muted);
      font-size: .88rem;
      line-height: 1.5;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 14px;
    }

    .tag {
      padding: 7px 9px;
      border-radius: 999px;
      background: var(--surface-2);
      color: var(--muted);
      font-size: .76rem;
      font-weight: 800;
    }

    .bio {
      min-height: 65px;
      margin: 15px 0;
      color: var(--muted);
      line-height: 1.55;
      font-size: .9rem;
    }

        .price-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding-top: 14px;
      border-top: 1px solid var(--border);
    }

    .profile-card-actions {
      display: grid;
      gap: 8px;
      min-width: 190px;
    }

    .profile-card-actions .btn,
.share-request {
  width: 100%;
}

.share-request {
  margin-bottom: 9px;
}


/* =========================
   FAVORIS
========================= */

.favorite-toggle.active {
  color: var(--danger);
  border-color:
    rgba(214, 69, 69, 0.35);
}

.favorites-section {
  margin-bottom: 30px;
}

.favorites-section h3 {
  margin:
    0 0 16px;
}

.favorite-actions {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;

  margin-top: 15px;
}

@media (max-width: 560px) {

  .favorite-actions {
    grid-template-columns: 1fr;
  }

}

    .shared-content-highlight {
      outline: 3px solid var(--primary);
      outline-offset: 5px;
      box-shadow:
        0 0 0 9px
        rgba(117, 87, 255, 0.14);
    }

    .price strong {
      display: block;
      font-size: 1.1rem;
    }

    .price span {
      color: var(--muted);
      font-size: .78rem;
    }

    .request-card {
  padding: 20px;
}

/* CARTE FERMÉE PAR DÉFAUT
   PC + TABLETTE + TÉLÉPHONE */

.request-card .request-desc[hidden],
.request-card .request-details[hidden],
.request-card .share-request[hidden],
.request-card .request-owner-actions[hidden] {
  display: none !important;
}

/* =========================
   GESTION DES DEMANDES
========================= */

.request-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 15px;
}

.request-status {
  display: inline-flex;
  align-items: center;

  padding: 7px 11px;

  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 900;
}

.request-status-open {
  color: var(--success);
  background: rgba(31, 157, 104, 0.13);
}

.request-status-closed {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.request-status-payment-pending {
  color: #8a5a00;
  background:
    rgba(244, 180, 0, 0.16);
}

.request-status-selected {
  color: #985f00;
  background: rgba(244, 180, 0, 0.16);
}

.request-status-completed {
  color: #286c61;
  background: rgba(40, 108, 97, 0.14);
}

.request-status-cancelled {
  color: var(--danger);
  background: rgba(214, 69, 69, 0.12);
}

.request-owner-actions {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;
  margin-top: 16px;
}

.request-owner-actions .btn {
  width: 100%;
  padding: 10px 8px;
  font-size: 0.78rem;
}

.request-action-complete {
  color: var(--success);
  border-color: rgba(31, 157, 104, 0.35);
}

.request-action-close {
  color: var(--primary-strong);
}

.request-action-duplicate {
  color: var(--text);
}

.request-editing-notice {
  margin-bottom: 18px;
  padding: 13px 15px;

  border: 1px solid var(--primary);
  border-radius: 15px;

  background: var(--primary-soft);
  color: var(--primary-strong);

  font-size: 0.87rem;
  font-weight: 800;
}

@media (max-width: 560px) {
  .request-owner-actions {
    grid-template-columns: 1fr;
  }
}

    .request-top {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 14px;
    }

    .activity-icon {
      flex: 0 0 46px;
      width: 46px;
      height: 46px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      background: var(--primary-soft);
      font-size: 1.25rem;
    }

    .request-title {
      display: flex;
      gap: 12px;
      align-items: center;
    }

    .request-title h3 {
      margin: 0;
      font-size: 1.03rem;
    }

    .request-title p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: .84rem;
    }

    .budget {
      color: var(--primary-strong);
      font-weight: 900;
      white-space: nowrap;
    }

    .request-desc {
      margin: 16px 0;
      color: var(--muted);
      line-height: 1.6;
      font-size: .89rem;
    }

    .request-details {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      margin-bottom: 16px;
    }

    .detail {
      padding: 10px;
      border-radius: 12px;
      background: var(--surface-2);
      color: var(--muted);
      font-size: .8rem;
      line-height: 1.4;
    }

    .detail strong {
      display: block;
      margin-bottom: 2px;
      color: var(--text);
      font-size: .75rem;
    }

    .empty {
      grid-column: 1 / -1;
      padding: 42px 22px;
      text-align: center;
      color: var(--muted);
      border: 1px dashed var(--border);
      border-radius: var(--radius);
      background: var(--surface);
    }

    .safety {
      padding: 64px 0;
    }

    .safety-card {
      padding: 34px;
      display: grid;
      grid-template-columns: .8fr 1.2fr;
      gap: 30px;
      align-items: center;
      background:
        linear-gradient(135deg, rgba(117,87,255,.12), rgba(255,122,89,.10)),
        var(--surface);
    }

    .safety-card h2 {
      margin: 0;
      font-size: 2rem;
      letter-spacing: -.04em;
    }

    .safety-card p {
      color: var(--muted);
      line-height: 1.7;
    }

    .footer {
      padding: 28px 0 44px;
      color: var(--muted);
      font-size: .88rem;
    }

    .footer-row {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      padding-top: 22px;
      border-top: 1px solid var(--border);
    }

    .toast {
      position: fixed;
      z-index: 100;
      right: 20px;
      bottom: 20px;
      max-width: 360px;
      padding: 14px 16px;
      border-radius: 14px;
      color: white;
      background: #222631;
      box-shadow: 0 18px 40px rgba(0,0,0,.25);
      transform: translateY(20px);
      opacity: 0;
      pointer-events: none;
      transition: .24s ease;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      place-items: center;
      padding: 20px;
      background: rgba(5, 7, 12, .66);
      backdrop-filter: blur(8px);
    }

    .modal-backdrop.open {
      display: grid;
    }

    .modal {
      width: min(520px, 100%);
      max-height: 88vh;
      overflow: auto;
      padding: 24px;
      border-radius: 22px;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: 0 28px 80px rgba(0,0,0,.28);
    }

    .modal h3 {
      margin: 0 0 10px;
      font-size: 1.35rem;
    }

    .modal p {
      color: var(--muted);
      line-height: 1.6;
    }

    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 20px;
    }

    .small {
      font-size: .8rem;
      color: var(--muted);
    }

    @media (max-width: 980px) {
      .hero-grid,
      .panel-grid,
      .safety-card {
        grid-template-columns: 1fr;
      }

      .hero-card {
        min-height: auto;
      }

      .side-card {
        position: static;
      }

      .stats-grid,
      .list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .search-grid {
        grid-template-columns: 1fr 1fr;
      }

      .search-grid .btn {
        width: 100%;
      }
    }

    @media (max-width: 720px) {

  html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

  body {
    background: var(--bg);
  }


  /* CONTENEURS */

  .container {
    width: calc(100% - 24px);
    max-width: 100%;
  }


  /* EN-TÊTE MOBILE */

  .topbar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .nav {
  min-height: 58px;
  gap: 7px;
  flex-wrap: wrap;
  padding: 8px 0;
}

  .brand {
    min-width: 0;
    gap: 7px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    border-radius: 11px;

    font-size: 0.72rem;
  }

  .brand-name {
  max-width: none;

  overflow: visible;
  white-space: nowrap;

  font-size: 0.76rem;
}

.received-application-badge {
  top: -4px;
  right: -7px;

  min-width: 18px;
  height: 18px;

  padding: 0 4px;

  font-size: 0.61rem;
}

  .nav-links {
  width: 100%;
  margin-left: 0;
  gap: 5px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;

  overflow: visible;
  padding: 5px 0;
}

.nav-links .nav-link {
  display: inline-flex;
  flex: 0 0 auto;

  padding: 8px 10px;

  font-size: 0.72rem;
  white-space: nowrap;
}

  .theme-toggle {
    width: 36px;
    height: 36px;

    border-radius: 10px;

    font-size: 0.9rem;
    box-shadow: none;
  }

  .user-zone {
    margin-left: 0;
    gap: 5px;
  }

  .connected-user {
    display: none;
  }

  .btn-small {
    padding: 8px 9px;

    border-radius: 10px;

    font-size: 0.7rem;
  }


  /* ACCUEIL */

  .hero {
    padding: 28px 0 24px;
  }

  .hero-grid {
    gap: 22px;
  }

  .eyebrow {
    padding: 7px 9px;

    font-size: 0.72rem;
  }

  .hero h1 {
    margin: 14px 0;

    font-size:
      clamp(
        2rem,
        10vw,
        3.1rem
      );

    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .hero p {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;

    gap: 9px;
    margin-top: 20px;
  }

  .hero-actions .btn {
    width: 100%;
  }


  /* CARTE VIOLETTE */

  .hero-card {
    min-height: auto;

    padding: 20px;

    border-radius: 24px;
  }

  .hero-card h2 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .hero-card p {
    font-size: 0.88rem;
  }

  .seeker-hero-profile {
    margin-top: 18px;
  }

  .seeker-hero-top {
    grid-template-columns: 72px 1fr;

    gap: 12px;
  }

  .seeker-hero-photo {
    width: 72px;
    height: 72px;

    border-radius: 18px;

    font-size: 1.35rem;
  }

  .seeker-hero-name {
    font-size: 1.1rem;
    overflow-wrap: anywhere;
  }

  .seeker-hero-meta {
    margin-top: 5px;

    font-size: 0.78rem;
    line-height: 1.4;
  }

  .seeker-hero-language,
  .seeker-hero-presentation {
    margin-top: 10px;
    padding: 12px;

    border-radius: 14px;

    font-size: 0.84rem;
  }

  .trust-row {
    margin-top: 15px;

    font-size: 0.75rem;
    line-height: 1.4;
  }


  /* PETITES CARTES */

  .stats {
    padding: 8px 0 30px;
  }

  .stats-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 9px;
  }

  .stat {
    min-width: 0;

    padding: 14px;

    border-radius: 16px;
  }

  .stat strong {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .stat span {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .tracking-stat {
    gap: 7px;
  }

  .tracking-stat-head {
    gap: 7px;
  }

  .tracking-stat .tracking-title {
    font-size: 0.82rem;
  }

  .tracking-privacy {
    font-size: 0.66rem;
  }

  .tracking-switch {
    width: 46px;
    height: 26px;
    flex-basis: 46px;
  }

  .tracking-slider::before {
    top: 3px;
    left: 3px;

    width: 18px;
    height: 18px;
  }

  .tracking-switch input:checked
    + .tracking-slider::before {
    transform: translateX(20px);
  }


  /* ESPACE UTILISATEUR */

  .workspace {
    padding: 12px 0 36px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;

    gap: 8px;
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 1.5rem;
    line-height: 1.15;
  }

  .section-head p {
    font-size: 0.86rem;
  }

  /*
   * La barre flottante avec les six dessins
   * remplace cette seconde barre sur mobile.
   */
  .tabs {
    display: none;
  }


  /* FORMULAIRES ET LISTES */

  .stats-grid,
  .list-grid,
  .form-grid,
  .search-grid,
  .panel-grid,
  .outings-layout {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .search-grid,
  .list-grid {
    gap: 12px;
  }

  .form-card,
  .side-card,
  .search-box,
  .outings-column {
    padding: 15px;

    border-radius: 18px;
  }

  .seeker-profile-preview {
    padding: 14px;

    border-radius: 15px;
  }

  input,
  select,
  textarea {
    padding: 12px;

    /*
     * Évite le zoom automatique
     * sur certains téléphones.
     */
    font-size: 16px;
  }

  textarea {
    min-height: 105px;
  }

  .photo-upload,
  .seeker-photo-upload {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-top,
  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .request-details {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .form-actions .btn {
    width: 100%;
  }


  /* FENÊTRES MOBILES */

  .modal-backdrop {
    place-items: end center;

    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 88dvh;

    padding: 18px;

    border-radius: 22px 22px 0 0;
  }


  /* PIED DE PAGE */

  .footer-row {
    flex-direction: column;
  }
}

    /* =========================
       PAGE DE CONNEXION
    ========================= */

    .auth-page {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 24px;
    }

    .auth-page.hidden {
      display: none;
    }

    .app-shell {
      display: none;
    }

    .app-shell.visible {
      display: block;
    }

    .auth-card {
      width: min(480px, 100%);
      padding: 28px;
      border: 1px solid var(--border);
      border-radius: 26px;
      background: var(--surface);
      box-shadow: var(--shadow);
    }

    .auth-brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-bottom: 22px;
      font-size: 1.35rem;
      font-weight: 900;
    }

    .auth-card h1 {
      margin: 0;
      text-align: center;
      font-size: 2rem;
      letter-spacing: -0.04em;
    }

    .auth-card > p {
      margin: 10px 0 24px;
      text-align: center;
      color: var(--muted);
      line-height: 1.6;
    }

    .auth-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      padding: 6px;
      margin-bottom: 22px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--surface-2);
    }

    .auth-tab {
      border: 0;
      border-radius: 11px;
      padding: 12px;
      background: transparent;
      color: var(--muted);
      font-weight: 800;
    }

    .auth-tab.active {
      background: var(--primary);
      color: white;
    }

    .auth-form {
      display: none;
      gap: 16px;
    }

    .auth-form.active {
      display: grid;
    }

    .auth-submit {
  width: 100%;
  margin-top: 5px;
}


/* =========================
   CGU ET CGV
========================= */

.auth-legal-note,
.auth-legal-links {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.auth-legal-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-legal-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;

  margin-top: 14px;
  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}

.auth-legal-consent input {
  width: 18px;
  height: 18px;
  min-width: 18px;

  margin: 2px 0 0;
  padding: 0;

  accent-color: var(--primary);
  box-shadow: none;
}

.auth-legal-consent label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.legal-modal {
  width: min(780px, 100%);
}

.legal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.legal-modal-header h3 {
  margin: 0;
}

.legal-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 13px;

  background: var(--surface-2);
  color: var(--text);

  font-size: 1.25rem;
  font-weight: 900;
}

.legal-content {
  max-height: 62vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;

  /*
   * Firefox :
   * barre fine avec fond transparent.
   */
  scrollbar-width: thin;
scrollbar-color:
  transparent
  transparent;
}


/* Chrome, Edge et Safari */

.legal-content::-webkit-scrollbar {
  width: 6px;
}

.legal-content::-webkit-scrollbar-track {
  background: transparent;
}

.legal-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.legal-content::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

.legal-content h4 {
  margin: 20px 0 7px;
  font-size: 1rem;
}

.legal-content p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}


.user-zone {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .connected-user {
      color: var(--primary-strong);
      font-weight: 800;
    }

.account-name-button {
  max-width: 150px;

  padding: 8px 5px;

  overflow: hidden;

  border: 0;
  border-radius: 10px;

  background: transparent;
  color: var(--primary-strong);

  font-weight: 900;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-name-button:hover {
  background: var(--primary-soft);
}

.account-name-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}


/* =========================
   FENÊTRE MON COMPTE
========================= */

.account-modal {
  width: min(720px, 100%);

  scrollbar-width: thin;
  scrollbar-color:
  transparent
  transparent;
}


/* Chrome, Edge et Safari */

.account-modal::-webkit-scrollbar {
  width: 7px;
}

.account-modal::-webkit-scrollbar-track {
  background: transparent;
}

.account-modal::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.account-modal::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

.account-modal::-webkit-scrollbar-button {
  display: none;

  width: 0;
  height: 0;
}

.account-modal::-webkit-scrollbar-corner {
  background: transparent;
}

.account-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 20px;
}

.account-modal-header h3 {
  margin: 0;
}

.account-modal-close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 13px;

  background: var(--surface-2);
  color: var(--text);

  font-size: 1.25rem;
  font-weight: 900;
}

.account-sections {
  display: grid;
  gap: 16px;
}

.account-section {
  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 17px;

  background: var(--surface-2);
}

.account-section h4 {
  margin: 0 0 8px;
}

.account-section p {
  margin: 0 0 14px;

  color: var(--muted);

  font-size: 0.86rem;
  line-height: 1.55;
}

.account-field {
  display: grid;
  gap: 8px;
}

.account-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 12px;
}

.account-notification-options {
  display: grid;
  gap: 11px;
}

.account-notification-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;

  padding: 10px;

  border-radius: 13px;

  background: var(--surface);
}

.account-notification-option input {
  width: 18px;
  height: 18px;

  margin: 0;
  padding: 0;

  accent-color: var(--primary);
}

.account-verification-status {
  display: inline-flex;
  align-items: center;

  padding: 8px 11px;

  border-radius: 999px;

  background: var(--primary-soft);
  color: var(--primary-strong);

  font-size: 0.82rem;
  font-weight: 900;
}

.account-danger-section {
  border-color: rgba(214, 69, 69, 0.35);
  background: rgba(214, 69, 69, 0.08);
}


/* =========================
   ADMINISTRATION DES LITIGES
========================= */

.admin-disputes-section[hidden] {
  display: none;
}

.admin-disputes-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-dispute-card {
  padding: 16px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--surface);
}

.admin-dispute-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-dispute-head h4 {
  margin: 0 0 5px;
}

.admin-dispute-status {
  padding: 6px 10px;

  border-radius: 999px;

  background: rgba(214, 69, 69, 0.12);
  color: var(--danger);

  font-size: 0.78rem;
  font-weight: 900;
}

.admin-dispute-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
  margin-top: 14px;
}

.admin-dispute-box {
  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 13px;

  background: var(--surface-2);

  overflow-wrap: anywhere;
}

.admin-dispute-box strong {
  display: block;
  margin-bottom: 5px;
}

.admin-dispute-box p {
  margin: 0;
  white-space: pre-wrap;
}

.admin-dispute-proof {
  margin-top: 10px;
  padding: 12px;

  border-left: 4px solid var(--primary);
  border-radius: 12px;

  background: var(--surface-2);
}

.admin-dispute-proof strong {
  display: block;
  margin-bottom: 5px;
}

.admin-dispute-proof p {
  margin: 0;
  white-space: pre-wrap;
}

.admin-dispute-note {
  width: 100%;
  min-height: 100px;

  margin-top: 12px;
}

.admin-dispute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 12px;
}

@media (max-width: 640px) {
  .admin-dispute-head {
    display: grid;
  }

  .admin-dispute-grid {
    grid-template-columns: 1fr;
  }

  .admin-dispute-actions {
    display: grid;
  }

  .admin-dispute-actions .btn {
    width: 100%;
  }
}


@media (max-width: 720px) {
  .account-name-button {
    max-width: 68px;

    padding: 7px 3px;

    font-size: 0.78rem;
  }

  .account-modal {
    max-height: 88dvh;
  }

  .account-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .account-action-row .btn {
    width: 100%;
  }
}

    .btn-small {
      padding: 10px 12px;
      font-size: 0.85rem;
    }

        @media (max-width: 720px) {
      .auth-card {
        padding: 21px;
      }

      .user-zone {
        margin-left: auto;
      }

      .connected-user {
        display: none;
      }

      .btn-small {
        padding: 9px 10px;
      }
    }

    /* CHAMP MOT DE PASSE AVEC ŒIL */

.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 0;
  border-radius: 11px;

  background: transparent;
  color: var(--text);

  font-size: 1.2rem;
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--primary-soft);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* FORCE DU MOT DE PASSE */

.password-strength {
  margin-top: 7px;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--muted);
}

.password-strength.weak {
  color: var(--danger);
}

.password-strength.medium {
  color: #b77900;
}

.password-strength.strong {
  color: var(--success);
}

.password-requirements {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

/* MOT DE PASSE OUBLIÉ */

    .forgot-password-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -5px;
}

    .forgot-password-button {
      border: 0;
      padding: 4px 0;
      background: transparent;
      color: var(--primary-strong);
      font-weight: 800;
      font-size: 0.9rem;
      cursor: pointer;
    }

    .forgot-password-button:hover {
      text-decoration: underline;
    }

        .forgot-password-button:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 4px;
      border-radius: 4px;
    }


    /* =========================
   BARRE FLOTTANTE CONNECTÉE
========================= */

.app-shell.visible {
  padding-bottom: 105px;
}

.home-floating-tabs {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 60;

  width: min(
    820px,
    calc(100% - 24px)
  );

  display: grid;
  grid-template-columns:
  repeat(7, minmax(0, 1fr));

  gap: 6px;
  padding: 7px;

  transform: translateX(-50%);

  border: 1px solid var(--border);
  border-radius: 22px;

  background: var(--surface);

  box-shadow:
    0 20px 55px
    rgba(0, 0, 0, 0.26);

  backdrop-filter: blur(18px);
}

.home-floating-tab {
  position: relative;

  min-width: 0;
  min-height: 62px;

  display: grid;
  place-items: center;

  padding: 9px 7px;

  border: 0;
  border-radius: 15px;

  background: transparent;
  color: var(--muted);

  font-weight: 900;
}

.home-floating-tab:hover {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

.home-floating-tab.active {
  color: white;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-strong)
    );

  box-shadow:
    0 10px 24px
    rgba(117, 87, 255, 0.28);
}

.home-floating-icon {
  display: grid;
  place-items: center;

  font-size: 1.35rem;
  line-height: 1;
}

.home-floating-label {
  display: none;
}


/* =========================
   VERSION MOBILE
========================= */

@media (max-width: 720px) {
  .app-shell.visible {
    padding-bottom:
      calc(
        74px +
        env(safe-area-inset-bottom)
      );
  }

  .home-floating-tabs {
  left: 18px;
  right: 18px;

  bottom: calc(
    10px + env(safe-area-inset-bottom)
  );

  width: auto;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: 2px;
  padding: 4px;

  transform: translateZ(0);
  -webkit-transform: translateZ(0);

  border-radius: 16px;
  overflow: hidden;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  will-change: transform;
}

  .home-floating-tab {
    width: 100%;
    min-width: 0;
    min-height: 46px;

    display: grid;
    place-items: center;

    padding: 0;

    border-radius: 11px;
  }

  .home-floating-icon {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;

  font-size: 0.88rem;
  line-height: 1;
}

  /*
   * Sur mobile :
   * uniquement les 6 dessins.
   */
  .home-floating-label {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
  }

  .home-floating-tab.active {
    transform: none;
  }
}


/* Très petits téléphones */

@media (max-width: 380px) {
  .home-floating-tabs {
    left: 10px;
    right: 10px;

    gap: 1px;
    padding: 3px;
  }

  .home-floating-tab {
    min-height: 43px;
    padding: 0;
  }

    .home-floating-icon {
    font-size: 0.8rem;
  }
}


/* =========================
   NAVIGATION MOBILE
========================= */

.mobile-bottom-nav {
  display: none;
}


@media (max-width: 720px) {

  /*
   * Sur téléphone on masque
   * l'ancienne barre à 6 boutons.
   */

  .home-floating-tabs {
    display: none;
  }


  /*
   * Laisse la place à la nouvelle
   * barre fixe en bas.
   */

  .app-shell.visible {
    padding-bottom:
      calc(
        92px +
        env(safe-area-inset-bottom)
      );
  }


  .mobile-bottom-nav {
  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 70;

  display: grid;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

    padding:
      6px
      6px
      calc(
        6px +
        env(safe-area-inset-bottom)
      );

    border-top:
      1px solid
      var(--border);

    background:
      var(--surface);

    box-shadow:
      0 -8px 30px
      rgba(0, 0, 0, 0.12);
  }


  .mobile-bottom-button {
  position: relative;

  min-width: 0;
    min-height: 58px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 5px 2px;

    border: 0;
    border-radius: 12px;

    background: transparent;

    color: var(--muted);

    font-size: 0.66rem;
    font-weight: 800;

    text-align: center;
  }


  .mobile-bottom-icon {
    display: block;

    font-size: 1.18rem;
    line-height: 1;
  }


  .mobile-bottom-button.active {
    background:
      var(--primary-soft);

    color:
      var(--primary-strong);
  }


  .mobile-bottom-button:active {
    transform:
      scale(0.96);
  }

}


@media (max-width: 380px) {

  .mobile-bottom-button {
    font-size: 0.59rem;
    padding-left: 1px;
    padding-right: 1px;
  }

  .mobile-bottom-icon {
    font-size: 1.05rem;
  }

}


/* =========================
   ACCUEIL PERSONNALISÉ
========================= */

.hero-general,
.safety,
.container > .hero-actions {
  display: none;
}


.home-dashboard {
  padding: 42px 0 30px;
}


.home-dashboard-head {
  margin-bottom: 24px;
}


.home-dashboard-head h1 {
  margin: 15px 0 8px;

  font-size:
    clamp(
      2rem,
      5vw,
      3.8rem
    );

  letter-spacing: -0.045em;
}


.home-dashboard-head p {
  margin: 0;

  color: var(--muted);

  font-size: 1rem;
}


.home-dashboard-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 14px;
}


.home-dashboard-card {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 14px;

  padding: 20px;

  border:
    1px solid
    var(--border);

  background:
    var(--surface);

  color:
    var(--text);

  text-align: left;

  transition:
    transform .18s ease,
    border-color .18s ease;
}


.home-dashboard-card:hover {
  transform:
    translateY(-2px);

  border-color:
    var(--primary);
}


.home-dashboard-icon {
  flex: 0 0 48px;

  width: 48px;
  height: 48px;

  display: grid;

  place-items: center;

  border-radius: 15px;

  background:
    var(--primary-soft);

  font-size: 1.35rem;
}


.home-dashboard-card-content {
  min-width: 0;

  display: grid;

  gap: 4px;
}


.home-dashboard-card-content small {
  color:
    var(--muted);

  font-size: 0.75rem;
  font-weight: 800;
}


.home-dashboard-card-content strong {
  color:
    var(--text);

  font-size: 1.35rem;

  overflow-wrap: anywhere;
}


.home-dashboard-card-content > span {
  color:
    var(--muted);

  font-size: 0.78rem;

  line-height: 1.35;
}


@media (max-width: 980px) {

  .home-dashboard-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

}


@media (max-width: 560px) {

  .home-dashboard {
    padding:
      25px 0 18px;
  }


  .home-dashboard-head {
    margin-bottom: 18px;
  }


  .home-dashboard-head h1 {
    font-size: 2rem;
  }


  .home-dashboard-grid {
    grid-template-columns:
      1fr;

    gap: 10px;
  }


  .home-dashboard-card {
    min-height: 88px;

    padding: 15px;
  }


  .home-dashboard-icon {
    flex-basis: 43px;

    width: 43px;
    height: 43px;

    font-size: 1.15rem;
  }

}


/* =========================
   VÉRIFICATION ET SIGNALEMENT
========================= */

    .security-action-box {
      margin-top: 18px;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--surface);
    }

    .security-action-box strong {
      display: block;
      margin-bottom: 7px;
    }

    .security-action-box p {
      margin: 0 0 13px;
      color: var(--muted);
      line-height: 1.55;
      font-size: .88rem;
    }

    .security-status {
      display: inline-flex;
      align-items: center;
      margin-bottom: 12px;
      padding: 7px 10px;
      border-radius: 999px;
      background: var(--primary-soft);
      color: var(--primary-strong);
      font-size: .8rem;
      font-weight: 900;
    }

    .security-modal {
  width: min(680px, 100%);

  /*
   * Firefox :
   * curseur fin et fond transparent.
   */
  scrollbar-width: thin;
  scrollbar-color:
  transparent
  transparent;
}


/* Chrome, Edge et Safari */

.security-modal::-webkit-scrollbar {
  width: 7px;
}

.security-modal::-webkit-scrollbar-track {
  background: transparent;
}

.security-modal::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.security-modal::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

.security-modal::-webkit-scrollbar-button {
  display: none;

  width: 0;
  height: 0;
}

.security-modal::-webkit-scrollbar-corner {
  background: transparent;
}


.security-modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .security-modal-header h3 {
      margin: 0;
    }

    .security-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 15px;
    }

    .security-form-grid .full {
      grid-column: 1 / -1;
    }

    .security-warning {
      margin: 16px 0;
      padding: 13px;
      border-radius: 14px;
      background: rgba(214, 69, 69, .1);
      color: var(--danger);
      line-height: 1.5;
      font-size: .84rem;
      font-weight: 800;
    }

    .profile-details-actions #reportSelectedProfile,
.profile-details-actions #blockSelectedProfile {
  grid-column: auto;
}

    @media (max-width: 560px) {
      .security-form-grid {
        grid-template-columns: 1fr;
      }

      .security-form-grid .full {
        grid-column: auto;
      }
    }


    /* =========================
       FICHE COMPLÈTE DU PROFIL
    ========================= */


     

    .profile-card[data-profile-id] {
      cursor: pointer;
      transition:
        transform .18s ease,
        border-color .18s ease;
    }

    .profile-card[data-profile-id]:hover {
      transform: translateY(-2px);
      border-color: var(--primary);
    }

    .profile-card-rating {
  display: inline-flex;
  align-items: center;

  margin-top: 9px;

  padding: 7px 10px;

  border:
    1px solid
    rgba(244, 180, 0, 0.30);

  border-radius: 999px;

  background:
    rgba(244, 180, 0, 0.14);

  color: var(--text);

  font-size: .84rem;
  font-weight: 900;
}

    .profile-details-modal {
      width: min(640px, 100%);
    }

    .profile-details-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 20px;
    }

    .profile-details-header h3 {
      margin: 0;
    }

    .profile-modal-close {
      flex: 0 0 42px;
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid var(--border);
      border-radius: 13px;
      background: var(--surface-2);
      color: var(--text);
      font-size: 1.3rem;
      font-weight: 900;
    }

    .profile-details-top {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: 20px;
      align-items: start;
    }

    .profile-details-photo {
      width: 160px;
      height: 160px;
      overflow: hidden;
      display: grid;
      place-items: center;
      border-radius: 22px;
      background:
        linear-gradient(
          135deg,
          var(--primary-soft),
          rgba(255, 122, 89, .18)
        );
      color: var(--primary-strong);
      font-size: 2.5rem;
      font-weight: 900;
    }

    .profile-details-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .profile-details-name {
      margin: 0;
      font-size: 1.55rem;
    }

    .profile-details-meta {
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.6;
    }

    .profile-details-price {
      margin-top: 10px;
      color: var(--primary-strong);
      font-weight: 900;
    }

    .profile-details-rating {
      margin-top: 8px;
      font-weight: 900;
    }

    .profile-details-section {
      margin-top: 20px;
      padding-top: 17px;
      border-top: 1px solid var(--border);
    }

    .profile-details-section strong {
      display: block;
      margin-bottom: 7px;
    }

    .profile-details-section p {
      margin: 0;
      color: var(--muted);
      line-height: 1.6;
    }

    .profile-details-actions {
      display: grid;
      grid-template-columns:
        repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 22px;
    }

    .profile-details-actions .btn {
      width: 100%;
    }

    @media (max-width: 560px) {
      .profile-details-top {
        grid-template-columns: 1fr;
      }

      .profile-details-photo {
        width: 100%;
        height: 280px;
      }

      .profile-details-actions {
        grid-template-columns: 1fr;
      }
    }

/* =========================
   MESSAGERIE PRIVÉE
========================= */

.private-messaging-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.private-messaging-layout[hidden] {
  display: none;
}

.conversations-column,
.private-chat-column {
  min-height: 590px;
  overflow: hidden;
}

.conversations-column {
  padding: 18px;
}

.private-messaging-heading {
  margin-bottom: 16px;
}

.private-messaging-heading h3 {
  margin: 0;
}

.private-messaging-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.conversations-list {
  display: grid;
  gap: 9px;
}

.conversation-button {
  width: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}

.conversation-button:hover,
.conversation-button.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.conversation-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.conversation-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.conversation-information {
  min-width: 0;
}

.conversation-information strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-information span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.private-chat-column {
  display: flex;
  flex-direction: column;
}

.private-chat-empty {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 22px;
}

.private-chat-content {
  height: 590px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.private-chat-content[hidden] {
  display: none;
}

.private-chat-header {
  padding: 17px 19px;
  border-bottom: 1px solid var(--border);
}

.private-chat-header h3 {
  margin: 0;
}

.private-chat-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.private-messages-list {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 18px;

  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.private-messages-list::-webkit-scrollbar {
  width: 7px;
}

.private-messages-list::-webkit-scrollbar-track {
  background: transparent;
}

.private-messages-list::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.private-messages-list::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

.private-messages-list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.private-messages-list::-webkit-scrollbar-corner {
  background: transparent;
}

.private-message-row {
  display: flex;
}

.private-message-row.mine {
  justify-content: flex-end;
}

.private-message-bubble {
  max-width: min(76%, 560px);
  padding: 11px 13px;
  border-radius: 17px 17px 17px 5px;
  background: var(--surface-2);
  color: var(--text);
  overflow-wrap: anywhere;
}

.private-message-row.mine .private-message-bubble {
  border-radius: 17px 17px 5px 17px;
  background: var(--primary);
  color: white;
}

.private-message-bubble p {
  margin: 8px 0 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.private-message-image-link {
  display: block;
  max-width: 100%;
}

.private-message-image {
  display: block;
  width: min(320px, 100%);
  max-height: 320px;
  object-fit: cover;
  border-radius: 13px;
  cursor: zoom-in;
}

.private-message-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 9px 12px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: var(--surface);
  color: var(--primary-strong);

  font-size: 0.88rem;
  font-weight: 800;
}

.private-message-row.mine .private-message-file {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.private-message-file-error {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
}

.private-message-time {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
}

.private-message-row.mine .private-message-time {
  color: rgba(255, 255, 255, 0.72);
}

.private-message-form {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    auto;

  gap: 9px;
  padding: 13px;
  border-top: 1px solid var(--border);
}

.private-message-form textarea {
  grid-column: 1;
  grid-row: 1;

  min-height: 48px;
  max-height: 130px;
  resize: vertical;
}

#privateMessageAttachmentButton {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  white-space: nowrap;
}

.private-message-form button[type="submit"] {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
}

#privateMessageAttachmentName {
  grid-column: 1 / -1;
  grid-row: 2;

  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

#privateMessageAttachmentName[hidden] {
  display: none;
}

.private-chat-security {
  margin: 0;
  padding: 0 15px 13px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 820px) {
  .private-messaging-layout {
    grid-template-columns: 1fr;
  }

  .conversations-column,
  .private-chat-column {
    min-height: auto;
  }

  .private-chat-content {
    height: 68vh;
    min-height: 500px;
  }

  .private-message-form {
    grid-template-columns:
      1fr
      1fr;
  }

  .private-message-form textarea {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #privateMessageAttachmentButton {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  .private-message-form button[type="submit"] {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
  }

  #privateMessageAttachmentName {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .private-message-image {
    width: min(260px, 100%);
    max-height: 260px;
  }

  .private-message-bubble {
    max-width: 88%;
  }
}

    /* =========================
       MES SORTIES ET AVIS
    ========================= */

 

    .outings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.outings-layout[hidden] {
  display: none;
}

    .outings-column {
      padding: 22px;
    }

    .outings-column h3 {
      margin: 0 0 16px;
    }

    .outing-list {
      display: grid;
      gap: 14px;
    }

    .outing-item {
      padding: 17px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--surface-2);
    }

    .outing-item h4 {
      margin: 0 0 7px;
      font-size: 1rem;
    }

    .outing-item p {
      margin: 4px 0;
      color: var(--muted);
      line-height: 1.5;
      font-size: .88rem;
    }

    .outing-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin-top: 13px;
    }

    .outing-status {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: .76rem;
  font-weight: 900;
}


/* =========================
   SUIVI DU PAIEMENT
========================= */

.outing-payment-panel {
  margin-top: 15px;
  padding: 14px;

  border: 1px solid var(--border);
  border-radius: 15px;

  background: var(--surface);
}

.outing-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 15px;
}

.outing-payment-head strong {
  font-size: 0.9rem;
}

.outing-payment-state {
  padding: 6px 9px;

  border-radius: 999px;

  background: var(--surface-2);
  color: var(--muted);

  font-size: 0.72rem;
  font-weight: 900;

  text-align: center;
}

.outing-payment-state.pending {
  background: rgba(244, 180, 0, 0.15);
  color: #8a5a00;
}

.outing-payment-state.success {
  background: rgba(31, 157, 104, 0.13);
  color: var(--success);
}

.outing-payment-state.warning {
  background: rgba(244, 180, 0, 0.15);
  color: #8a5a00;
}

.outing-payment-state.danger {
  background: rgba(214, 69, 69, 0.12);
  color: var(--danger);
}

.outing-payment-steps {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 4px;
}

.outing-payment-step {
  position: relative;

  min-width: 0;

  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;

  color: var(--muted);

  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1.25;

  text-align: center;
}

.outing-payment-step:not(:last-child)::after {
  content: "";

  position: absolute;
  top: 11px;
  left: calc(50% + 13px);
  right: calc(-50% + 13px);

  height: 3px;

  border-radius: 999px;

  background: var(--border);
}

.outing-payment-dot {
  position: relative;
  z-index: 2;

  width: 24px;
  height: 24px;

  display: grid;
  place-items: center;

  border: 3px solid var(--border);
  border-radius: 50%;

  background: var(--surface);
  color: var(--muted);

  font-size: 0.65rem;
  font-weight: 900;
}

.outing-payment-step.completed {
  color: var(--success);
}

.outing-payment-step.completed
  .outing-payment-dot {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.outing-payment-step.completed:not(:last-child)::after {
  background: var(--success);
}

.outing-payment-step.current {
  color: var(--primary-strong);
}

.outing-payment-step.current
  .outing-payment-dot {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.outing-payment-summary {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 8px;
  margin-top: 15px;
}

.outing-payment-amount {
  min-width: 0;

  padding: 10px;

  border-radius: 12px;

  background: var(--surface-2);
}

.outing-payment-amount span {
  display: block;

  color: var(--muted);

  font-size: 0.69rem;
  line-height: 1.35;
}

.outing-payment-amount strong {
  display: block;

  margin-top: 4px;

  color: var(--text);

  font-size: 0.85rem;

  overflow-wrap: anywhere;
}

.outing-refund-status {
  margin-top: 11px;
  padding: 10px 12px;

  border-radius: 12px;

  background: rgba(244, 180, 0, 0.14);
  color: #8a5a00;

  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.outing-refund-status.success {
  background: rgba(31, 157, 104, 0.13);
  color: var(--success);
}

.outing-refund-status.danger {
  background: rgba(214, 69, 69, 0.12);
  color: var(--danger);
}

@media (max-width: 560px) {
  .outing-payment-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .outing-payment-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .outing-payment-step {
    grid-template-columns: 28px 1fr;
    justify-items: start;
    align-items: center;

    text-align: left;
  }

  .outing-payment-step:not(:last-child)::after {
    top: 23px;
    bottom: -9px;
    left: 11px;
    right: auto;

    width: 3px;
    height: auto;
  }

  .outing-payment-summary {
    grid-template-columns: 1fr;
  }
}


.review-stars {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 7px;
    }

    .review-star {
      border: 1px solid var(--border);
      border-radius: 11px;
      padding: 10px 5px;
      background: var(--surface-2);
      color: var(--muted);
      font-size: 1.35rem;
    }

    .review-star.active {
      border-color: var(--primary);
      background: var(--primary-soft);
      color: #f4b400;
    }

    @media (max-width: 820px) {
      .outings-layout {
        grid-template-columns: 1fr;
      }
    }

#profileDetailsBackdrop,
#profileDetailsBackdrop * {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

#profileDetailsBackdrop::-webkit-scrollbar,
#profileDetailsBackdrop *::-webkit-scrollbar {
  width: 10px;
}

#profileDetailsBackdrop::-webkit-scrollbar-track,
#profileDetailsBackdrop *::-webkit-scrollbar-track {
  background: transparent;
}

#profileDetailsBackdrop::-webkit-scrollbar-thumb,
#profileDetailsBackdrop *::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

#profileDetailsBackdrop::-webkit-scrollbar-thumb:hover,
#profileDetailsBackdrop *::-webkit-scrollbar-thumb:hover {
  background: transparent;
}


 
