/* =====================================================
   SUPPORT.CSS — Premium concierge layout
   Nécessite base.css + layout.css + dashboard.css

   SECTIONS :
   ① Split layout (sup-split-*)
   ② Concierge card (sup-card-*)
   ③ Form (sup-form-*)
   ④ Category pills (sup-cat-*)
   ⑤ Preview (sup-preview)
   ⑥ Actions strip
   ⑦ Responsive
===================================================== */


/* ─────────────────────────────────────────────────────
   ① SPLIT LAYOUT — concierge card + form side by side
───────────────────────────────────────────────────── */

.sup-split {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 1.1rem;
  align-items: stretch;
}


/* ─────────────────────────────────────────────────────
   ② CONCIERGE CARD — left panel with contact info
───────────────────────────────────────────────────── */

.sup-card {
  border-radius: var(--radius-5);
  padding: 1.4em 1.3em;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  position: relative;
  overflow: hidden;
}

.sup-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    radial-gradient(circle at 80% 100%,
      color-mix(in srgb, var(--accent) 8%, transparent), transparent 50%);
  pointer-events: none;
  opacity: .6;
}

.sup-card > * { position: relative; }

/* Email block — hero element */
.sup-email-block {
  text-align: center;
  padding: 1em 0 .8em;
}

.sup-email-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto .6em;
  border-radius: var(--radius-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 8%, transparent);
}

.sup-email-addr {
  font-size: .92rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .01em;
  word-break: break-all;
}

.sup-email-label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: .2em;
}

/* Divider */
.sup-divider {
  height: 1px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Detail rows */
.sup-detail {
  display: flex;
  align-items: center;
  gap: .6em;
}

.sup-detail-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  flex: 0 0 auto;
}

.sup-detail-body { flex: 1; min-width: 0; }

.sup-detail-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-2, var(--muted));
}

.sup-detail-value {
  font-size: .84rem;
  font-weight: 800;
  color: var(--text);
  margin-top: .05em;
}

/* Tips list */
.sup-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.sup-tips li {
  display: flex;
  align-items: flex-start;
  gap: .45em;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
}

.sup-tips-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
  margin-top: .45em;
  box-shadow: 0 0 0 2px var(--accent-bg);
}

/* Footer — mailto direct link */
.sup-card-footer {
  margin-top: auto;
  padding-top: .6em;
  text-align: center;
}

.sup-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: .76rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .15em;
  transition: opacity var(--duration-2);
}

.sup-card-link:hover { opacity: .7; }


/* ─────────────────────────────────────────────────────
   ③ FORM — right panel
───────────────────────────────────────────────────── */

.sup-form-panel {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.sup-form-card {
  border-radius: var(--radius-5);
  padding: 1.3em 1.2em;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.sup-form-title {
  display: flex;
  align-items: center;
  gap: .5em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--muted-2, var(--muted));
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sup-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.65;
}

.sup-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding-top: .2rem;
}

/* Hint — fixed height, fade only */
.sup-hint {
  font-size: .76rem;
  color: var(--warning);
  font-weight: 600;
  height: 1.1em;
  line-height: 1.1em;
  overflow: hidden;
  transition: opacity .15s ease;
}


/* ─────────────────────────────────────────────────────
   ④ CATEGORY PILLS
───────────────────────────────────────────────────── */

.sup-cat-row {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}

.sup-cat-pill {
  font-size: .72rem;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  flex: 1 1 0;
  padding: .38em .6em;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--muted) 14%, transparent);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-1) var(--ease-out);
}

.sup-cat-pill:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--text);
}

.sup-cat-pill--active {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  font-weight: 800;
}

.sup-cat-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-bg), 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent);
}


/* ─────────────────────────────────────────────────────
   ⑤ PREVIEW — mailto preview strip
───────────────────────────────────────────────────── */

.sup-preview {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .55em .8em;
  border-radius: var(--radius-3);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.4;
  transition: opacity .2s ease;
}

.sup-preview b { color: var(--text); font-weight: 800; }


/* ─────────────────────────────────────────────────────
   ⑥ ACTIONS STRIP
───────────────────────────────────────────────────── */

.sup-actions-strip {
  padding: 1em 1.4em;
  border-radius: var(--radius-4);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

.sup-actions-text { font-size: .88rem; color: var(--muted); line-height: 1.55; margin: 0; }

.sup-actions-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .2em;
  transition: opacity var(--duration-2);
}

.sup-actions-link:hover { opacity: .72; }


/* ─────────────────────────────────────────────────────
   ⑦ RESPONSIVE
   Breakpoints alignés sur le design system :
   900 → 820 → 700 → 620 → 560 → 480 → 380
───────────────────────────────────────────────────── */

/* ── Tablette paysage / petits laptops (≤ 900px) ── */
@media (max-width: 900px) {
  .sup-split {
    grid-template-columns: 1fr;
  }

  /* Card goes horizontal — email + details inline */
  .sup-card {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .85rem;
    padding: 1.1em 1.1em;
  }

  .sup-email-block {
    flex: 1;
    min-width: 180px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: .75em;
    padding: 0;
  }

  .sup-email-icon { margin: 0; width: 40px; height: 40px; }

  .sup-divider { display: none; }

  .sup-detail { flex: 0 0 auto; }

  /* Hide tips + footer on tablet — keep it clean */
  .sup-tips { display: none; }
  .sup-card-footer { display: none; }
}

/* ── Tablette (≤ 820px) ── */
@media (max-width: 820px) {
  .sup-email-addr { font-size: .86rem; }

  .sup-detail-value { font-size: .8rem; }
  .sup-detail-icon { width: 26px; height: 26px; }
  .sup-detail-icon svg { width: 12px; height: 12px; }

  .sup-form-card { padding: 1.1em 1em; }

  .sup-cat-pill { font-size: .68rem; padding: .25em .55em; }
}

/* ── Tablette portrait / grands mobiles (≤ 700px) ── */
@media (max-width: 700px) {
  .sup-card { padding: .95em .9em; gap: .7rem; }

  .sup-form-card { padding: 1em .95em; }

  .sup-preview { font-size: .72rem; padding: .5em .7em; }

  .sup-form-title { font-size: .74rem; }

  .sup-textarea { min-height: 130px; }
}

/* ── Mobile (≤ 620px) ── */
@media (max-width: 620px) {
  .sup-email-icon { width: 36px; height: 36px; }
  .sup-email-icon svg { width: 18px; height: 18px; }

  .sup-email-addr { font-size: .82rem; }
  .sup-email-label { font-size: .68rem; }

  .sup-detail-label { font-size: .64rem; }
  .sup-detail-value { font-size: .78rem; }

  .sup-cat-pill { font-size: .66rem; padding: .22em .5em; }
  .sup-cat-row { gap: .25rem; }
}

/* ── Petit mobile (≤ 560px) ── */
@media (max-width: 560px) {
  /* Card stacks vertical again */
  .sup-card {
    flex-direction: column;
    align-items: stretch;
  }

  .sup-email-block {
    flex-direction: column;
    text-align: center;
  }

  .sup-email-icon { margin: 0 auto; }

  /* Details go side by side */
  .sup-card > .sup-detail {
    width: 100%;
  }

  /* Form actions stack */
  .sup-form-actions {
    flex-direction: column-reverse;
  }

  .sup-form-actions > * { width: 100%; justify-content: center; }

  .sup-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: .3em;
    font-size: .7rem;
  }

  .sup-actions-strip {
    flex-direction: column;
    text-align: center;
    padding: .85em 1em;
  }

  .sup-hint { font-size: .72rem; }
}

/* ── Très petit mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .sup-card { padding: .8em .75em; gap: .6rem; }

  .sup-email-icon { width: 34px; height: 34px; }
  .sup-email-icon svg { width: 16px; height: 16px; }
  .sup-email-addr { font-size: .78rem; }

  .sup-detail-icon { width: 24px; height: 24px; }
  .sup-detail-icon svg { width: 11px; height: 11px; }
  .sup-detail-label { font-size: .6rem; }
  .sup-detail-value { font-size: .76rem; }

  .sup-form-card { padding: .85em .8em; gap: .75rem; }
  .sup-form-title { font-size: .7rem; }

  .sup-cat-pill { font-size: .62rem; padding: .2em .45em; }

  .sup-textarea { min-height: 110px; }

  .sup-preview { font-size: .68rem; padding: .4em .6em; }

  .sup-hint { font-size: .68rem; }

  .sup-actions-text { font-size: .82rem; }
}

/* ── Micro mobile (≤ 380px) ── */
@media (max-width: 380px) {
  .sup-card { padding: .7em .65em; gap: .5rem; }

  .sup-email-icon { width: 30px; height: 30px; }
  .sup-email-icon svg { width: 14px; height: 14px; }
  .sup-email-addr { font-size: .74rem; }
  .sup-email-label { font-size: .64rem; }

  .sup-detail-icon { width: 22px; height: 22px; }
  .sup-detail-label { font-size: .58rem; }
  .sup-detail-value { font-size: .72rem; }

  .sup-form-card { padding: .7em .65em; gap: .65rem; }
  .sup-form-title { font-size: .66rem; }

  .sup-cat-pill { font-size: .58rem; padding: .18em .38em; }
  .sup-cat-row { gap: .2rem; }

  .sup-textarea { min-height: 100px; font-size: .82rem; }

  .sup-preview { font-size: .64rem; }

  .sup-hint { font-size: .64rem; }

  .sup-actions-strip { padding: .7em .8em; }
  .sup-actions-text { font-size: .78rem; }
}