html,
body {
  margin: 0;
  padding: 0;
  background: #fafaf9;
}

:root {
  --primary: #ffa100;
  --primary-light: #ff1c1c;
  --primary-dark: #ff6c2f;
  --accent: #ff6c2f;
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --text-secondary: #57534e;
  --border: #ffa100;
  --shadow: rgba(255, 161, 0, 0.12);
  --shadow-lg: rgba(255, 161, 0, 0.22);
}
.cyclem-support * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.cyclem-support {
  font-family:
    'Outfit',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.support-header {
  text-align: center;
  padding: 1.4rem 0 1.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  position: relative;
  overflow: visible;
  z-index: 10;
}
.support-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.support-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}
.support-header .support-container {
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}
.support-logo {
  display: block;
  width: 86px;
  max-width: 40vw;
  height: auto;
  margin: 0 auto 0.6rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.14));
}
.support-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}
.support-header p {
  font-size: 0.98rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  font-weight: 300;
  margin-bottom: 0.9rem;
}
.support-search {
  width: min(620px, calc(100% - 2rem));
  margin: 0.9rem auto 0;
  position: relative;
  z-index: 30;
}
.support-search input {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 999px;
  padding: 0 1.2rem 0 3rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  outline: none;
}
.support-search input::placeholder {
  /* 4,76:1 sur le fond quasi blanc du champ, contre 3,78:1 pour l'ancien
     #8a817a : au-dessus du seuil AA, et toujours nettement plus clair que
     --text-secondary pour qu'un placeholder ne passe pas pour une valeur. */
  color: #78716c;
}
.support-search input:focus {
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.support-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 24px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--primary-dark);
  pointer-events: none;
}
.support-search-results {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  background: white;
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-align: left;
  max-height: 360px;
  overflow-y: auto;
  z-index: 50;
}
.support-search-result {
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 161, 0, 0.18);
  transition: background 0.2s;
}
.support-search-result:last-child {
  border-bottom: none;
}
.support-search-result:hover {
  background: var(--bg);
}
.support-search-result-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.support-search-result-path {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.support-search-empty,
.support-search-loading {
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.support-contact-cta {
  text-align: center;
  padding: 1.6rem 1rem 0;
}
.support-contact-cta p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.support-contact-note {
  max-width: 620px;
  margin: 0.75rem auto 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}
.breadcrumb-home-title {
  color: var(--text) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}
.back-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.back-button:hover {
  transform: translateX(-2px);
  box-shadow: 0 4px 12px var(--shadow);
  border-color: var(--primary);
  background: var(--bg);
}
.back-button svg {
  width: 20px;
  height: 20px;
}
.contact-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: 0 6px 14px var(--shadow);
  transition: none;
}
.contact-support-button:hover {
  transform: none;
  box-shadow: 0 6px 14px var(--shadow);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 0.85rem 1.15rem;
  margin: 1rem 0 0;
  color: white !important;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  animation: fadeIn 0.6s ease;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}
.category-card:nth-child(1) {
  animation-delay: 0.05s;
}
.category-card:nth-child(2) {
  animation-delay: 0.1s;
}
.category-card:nth-child(3) {
  animation-delay: 0.15s;
}
.category-card:nth-child(4) {
  animation-delay: 0.2s;
}
.category-card:nth-child(5) {
  animation-delay: 0.25s;
}
.category-card:nth-child(6) {
  animation-delay: 0.3s;
}
.category-card:nth-child(7) {
  animation-delay: 0.35s;
}
.category-card:nth-child(8) {
  animation-delay: 0.4s;
}
.category-card:nth-child(9) {
  animation-delay: 0.45s;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px var(--shadow-lg);
  border-color: var(--accent);
}
.category-card:hover::before {
  opacity: 0.05;
}
.category-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.category-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}
.category-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.list-container {
  animation: fadeIn 0.5s ease;
}
.list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}
.list-item:nth-child(1) {
  animation-delay: 0.05s;
}
.list-item:nth-child(2) {
  animation-delay: 0.1s;
}
.list-item:nth-child(3) {
  animation-delay: 0.15s;
}
.list-item:nth-child(4) {
  animation-delay: 0.2s;
}
.list-item:nth-child(5) {
  animation-delay: 0.25s;
}
.list-item:nth-child(n + 6) {
  animation-delay: 0.3s;
}
.list-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px var(--shadow);
  border-color: var(--primary-light);
}
.list-item-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.list-item-title::before {
  content: '→';
  color: var(--primary);
  font-weight: 600;
  transition: transform 0.3s;
}
.list-item:hover .list-item-title::before {
  transform: translateX(4px);
}
.question-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}
.question-item:nth-child(1) {
  animation-delay: 0.05s;
}
.question-item:nth-child(2) {
  animation-delay: 0.1s;
}
.question-item:nth-child(3) {
  animation-delay: 0.15s;
}
.question-item:nth-child(4) {
  animation-delay: 0.2s;
}
.question-item:nth-child(n + 5) {
  animation-delay: 0.25s;
}
.question-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.2s;
}
.question-header:hover {
  background: var(--bg);
}
.question-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.question-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}
.question-item.active .question-toggle {
  transform: rotate(180deg);
  background: var(--primary);
  color: white;
}
.question-toggle::before {
  content: '▼';
  font-size: 0.75rem;
}
.question-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.question-item.active .question-content {
  max-height: 5000px;
}
.question-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.question-answer h1,
.question-answer h2,
.question-answer h3 {
  color: var(--text);
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}
.question-answer h1 {
  font-size: 1.75rem;
}
.question-answer h2 {
  font-size: 1.5rem;
}
.question-answer h3 {
  font-size: 1.25rem;
}
.question-answer p {
  margin-bottom: 1rem;
}
.question-answer ul,
.question-answer ol {
  margin: 1rem 0 1rem 1.5rem;
}
.question-answer li {
  margin-bottom: 0.5rem;
}
.question-answer a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: all 0.2s;
  cursor: pointer;
}
.question-answer a:hover {
  /* --accent == --primary-dark (#ff6c2f) : un fond plein masquait le texte, de la
     même couleur. On garde une surbrillance mais translucide, pour que le texte
     reste lisible. */
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  background: rgba(255, 108, 47, 0.12);
  padding: 2px 4px;
  margin: 0 -2px;
  border-radius: 3px;
}
.question-answer .contact-support-button,
.question-answer .contact-support-button:hover,
.question-answer .contact-support-button:focus,
.question-answer .contact-support-button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 0 !important;
  padding: 0.85rem 1.15rem !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  font-weight: 600;
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: 0 6px 14px var(--shadow) !important;
  transform: none !important;
  transition: none !important;
}
.question-answer strong,
.question-answer b {
  color: var(--text);
  font-weight: 600;
}
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}
.loading::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-top: 1rem;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid #fecaca;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hidden {
  display: none !important;
}
.screen {
  min-height: 50vh;
}
.support-language {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 35;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}
.support-language button {
  border: none;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: transparent;
  color: white;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.support-language button:hover,
.support-language button.active {
  background: white;
  color: var(--primary-dark);
}
@media (max-width: 768px) {
  .support-header {
    padding: 1.1rem 0 1.3rem;
  }
  .support-language {
    margin-bottom: 0.65rem;
  }
  .support-header h1 {
    font-size: 1.7rem;
  }
  .support-header p {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  .support-logo {
    width: 72px;
    margin-bottom: 0.45rem;
  }
  .support-search {
    width: min(100%, calc(100% - 1.5rem));
    margin-top: 0.75rem;
  }
  .support-search input {
    height: 44px;
    font-size: 0.95rem;
  }
  .support-search-icon {
    top: 22px;
  }
  .support-search-results {
    max-height: 300px;
    border-radius: 16px;
  }
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .category-card {
    padding: 0.85rem 0.45rem;
    border-radius: 12px;
    text-align: center;
  }
  .category-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0 auto 0.55rem;
  }
  .category-icon img {
    width: 23px;
    height: 23px;
  }
  .category-name {
    font-size: 0.82rem;
    line-height: 1.2;
    margin-bottom: 0;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .support-container {
    padding: 1.5rem 1rem;
  }
  .support-header .support-container {
    padding-top: 0;
    padding-bottom: 0;
  }
}


/* ── Static help-center additions (per-URL pages) ─────────────────────────── */
.cyclem-support a { text-decoration: none; }
.category-card, .list-item, .support-search-result { color: inherit; text-decoration: none; }
/* .list-item is now an <a> (was a <div>): keep it block-level so the card
   border/padding wrap the whole row instead of collapsing into inline brackets. */
.list-item { display: block; }
.support-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
.support-topbar-right { display: inline-flex; align-items: center; gap: 0.9rem; }
.support-language .support-lang-link { display: inline-block; border-radius: 999px; padding: 0.38rem 0.65rem; color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1; transition: background .2s, color .2s; }
.support-language .support-lang-link.active, .support-language .support-lang-link:hover { background: #fff; color: var(--primary-dark); }
.support-backapp { color: rgba(255,255,255,0.95); font-size: 0.85rem; font-weight: 600; }
.support-backapp:hover { text-decoration: underline; }
.support-header--compact { padding: 1rem 0 1.15rem; text-align: left; }
.support-header--compact .support-search { margin-left: 0; margin-right: 0; width: 100%; }
.support-brand { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.35rem; color: #fff; letter-spacing: -0.02em; }
.support-page-title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 1.9rem; color: #1a1a1a; margin: 0.2rem 0 1.1rem; letter-spacing: -0.02em; }
.question-title--page { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 1.7rem; color: #1a1a1a; margin: 0 0 1rem; padding: 1.5rem 1.5rem 0; letter-spacing: -0.01em; line-height: 1.25; }
/* One-level-up back link sitting at the head of the breadcrumb. Needs to beat
   the generic '.breadcrumb a' colour/size rule. */
.breadcrumb .back-button { color: var(--primary-dark); font-size: 0; margin-right: 0.1rem; }
.breadcrumb .back-button:hover { color: var(--primary); }
/* Store badges injected in place of the CMS "App Store button / Google Play button"
   list placeholders (see injectStoreButtons). Monochrome logos on a black pill,
   matching the web footer's store badges. */
.support-store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.1rem 0 1.35rem; }
.support-store-badge { display: inline-flex; align-items: center; gap: 10px; background: #111; border: none; border-radius: 12px; padding: 9px 18px; text-decoration: none; }
/* Le style générique des liens de réponse (.question-answer a / a:hover) ajoutait
   un soulignement orange puis, au survol, un fond orange translucide avec padding
   réduit — très moche sur ces pastilles. On neutralise tout effet : le bouton
   reste identique au repos comme au survol (sélecteur assez spécifique pour gagner). */
.question-answer .support-store-badge,
.question-answer .support-store-badge:hover {
  background: #111; color: inherit; border: none; padding: 9px 18px; margin: 0; border-radius: 12px;
}
.support-store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; fill: #fff; }
.support-store-badge__text { display: flex; flex-direction: column; line-height: 1.15; }
.support-store-badge__sub { color: #fff; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.92; }
.support-store-badge__name { color: #fff; font-size: 1.05rem; font-weight: 700; }
.support-related { margin-top: 2rem; }
.support-related h2 { font-size: 1.15rem; font-weight: 700; color: #1a1a1a; margin: 0 0 0.75rem; }
.is-question .question-item { cursor: default; box-shadow: none; }
.is-question .question-content { max-height: none; overflow: visible; }
@media (max-width: 768px) {
  .support-topbar { flex-wrap: wrap; gap: 0.6rem; }
  .support-page-title { font-size: 1.55rem; }
  .question-title--page { font-size: 1.4rem; padding-top: 1.25rem; }
  .breadcrumb .back-button { width: 34px; height: 34px; }
}
