/* Centre d'aide — layout aligned with FAQ prototype (sidebar + article card) */
html {
  scroll-behavior: smooth;
}

.page-centre-daide {
  background: #f8fafc;
}

.page-centre-daide .hc-help-main-section.section {
  padding-bottom: 0;
  padding-top: 1rem;
}

@media (max-width: 1150px) {
  .page-centre-daide .hc-help-main-section.section {
    padding: 0 !important;
  }
}

.hc-doc-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  box-sizing: border-box;
}

.hc-page-layout {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 24px;
  min-height: calc(100vh - 120px);
  padding: 28px 0 64px;
}

.hc-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hc-sidebar {
  width: min(375px, 100%);
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.05);
}

.hc-sidebar::-webkit-scrollbar {
  width: 4px;
}

.hc-sidebar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.hc-sidebar-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.hc-sidebar-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #1a2332;
}

.hc-sidebar-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}

.hc-sq-group {
  border-bottom: 1px solid #e2e8f0;
}

.hc-sq-group:last-of-type {
  border-bottom: none;
}

.hc-sq-group[open] .hc-sq-chevron {
  transform: rotate(90deg);
}

.hc-sq-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.hc-sq-summary::-webkit-details-marker {
  display: none;
}

.hc-sq-summary:hover {
  background: #f8fafc;
}

.hc-sq-cat {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a2332;
  flex: 1;
}

.hc-sq-chevron {
  font-size: 1.1rem;
  color: #5a6c7d;
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.hc-sq-links {
  display: flex;
  flex-direction: column;
  padding: 4px 8px 12px;
  gap: 2px;
}

.hc-sq-link {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #5a6c7d;
  font-weight: 400;
  line-height: 1.4;
  transition: all 0.15s;
  display: block;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
}

.hc-sq-link:hover,
.hc-sq-link:focus-visible {
  background: #f8fafc;
  color: #0f1728;
  outline: none;
}

.hc-sq-link.active {
  background: #fdf0f0;
  color: #c91c18;
  font-weight: 600;
}

.hc-sidebar-contact {
  margin: 16px 12px 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.hc-sidebar-contact p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 10px;
  line-height: 1.5;
}

.hc-btn-sm-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #c91c18;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: background 0.18s;
  text-decoration: none;
}

.hc-btn-sm-orange:hover {
  background: #a81512;
  color: #fff;
}

.hc-main {
  flex: 1;
  min-width: 0;
  padding: 4px 0 48px;
}

.hc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
  margin-bottom: 24px;
  flex-wrap: wrap;
  scroll-margin-top: 72px;
}

.hc-breadcrumb a {
  color: #c91c18;
  font-weight: 500;
  text-decoration: none;
}

.hc-breadcrumb a:hover {
  text-decoration: underline;
}

.hc-breadcrumb-sep {
  color: #5a6c7d;
  font-size: 0.9rem;
}

.hc-breadcrumb-current {
  color: #5a6c7d;
  font-weight: 400;
}

.hc-panel {
  display: none;
}

.hc-panel.is-active {
  display: block;
}

.hc-article-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 4px 16px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  max-width: 1150px;
  width: 100%;
}

.page-centre-daide .hc-article-card {
  overflow: visible;
}

.hc-article-header {
  padding: 28px 32px 22px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #fdf0f0 0%, #fff 70%);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.hc-article-header h1 {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  color: #1a2332;
  letter-spacing: -0.01em;
}

.hc-article-body {
  padding: 32px 36px 40px;
  font-size: 16px;
  font-family: 'Work Sans', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.hc-article-body p {
  margin-bottom: 14px;
  color: #5a6c7d;
  font-size: 16px;
  line-height: 1.78;
  font-weight: 400;
}

.hc-article-body h4 {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 700;
  margin: 22px 0 9px;
  color: #0f1728;
}

.hc-article-body h4.hc-article-subheading {
  color: #5a6c7d;
}

.hc-article-body ul,
.hc-article-body ol {
  padding-left: 25px;
  margin-bottom: 14px;
}

.hc-article-body ul {
  list-style-type: disc;
}

.hc-article-body li {
  margin-bottom: 7px;
  color: #5a6c7d;
  line-height: 1.7;
  font-size: 16px;
  font-weight: 400;
}

/* Images dans une liste : même bord gauche que le texte du corps (sans retrait ul/ol) */
.hc-article-body ul li .hc-inline-help-img,
.hc-article-body ol li .hc-inline-help-img {
  margin-left: -25px;
  max-width: calc(100% + 25px);
}

.hc-article-body strong {
  color: #5a6c7d;
  font-size: 16px;
  font-weight: 700;
}

.hc-article-body a {
  color: #c91c18;
  font-weight: 500;
  text-decoration: none;
}

.hc-article-body a:hover {
  text-decoration: underline;
}

.hc-article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  font-family: 'Work Sans', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.hc-article-body th {
  background: #0f1728;
  color: #fff;
  padding: 11px 16px;
  font-family: 'Work Sans', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 0.82rem;
  text-align: left;
}

.hc-article-body td {
  padding: 9px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #5a6c7d;
}

.hc-article-body td strong {
  font-size: inherit;
}

.hc-article-body tr:last-child td {
  border-bottom: none;
}

.hc-article-body tr:nth-child(even) td {
  background: #f8fafc;
}

/* Délai livraison : bordure extérieure + grille alignée (en-tête / corps) + drapeaux Twemoji */
.hc-article-body .hc-table-shell {
  width: 100%;
  margin: 18px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  /* visible：避免圆角裁切时表头比表体左右各「少 1px」的亚像素缝 */
  overflow: visible;
  box-sizing: border-box;
  background: #fff;
}

.hc-article-body .hc-table-shell table.hc-data-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  /* separate: avoid collapse border model shifting thead vs tbody columns */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: 'Work Sans', sans-serif;
}

.hc-article-body .hc-table-shell .hc-data-table col.hc-col-dest {
  width: 42%;
}

.hc-article-body .hc-table-shell .hc-data-table col.hc-col-delai {
  width: 38%;
}

.hc-article-body .hc-table-shell .hc-data-table col.hc-col-taux {
  width: 20%;
}

.hc-article-body .hc-table-shell .hc-data-table thead {
  position: relative;
  background: #0f1728;
}

/* 补偿圆角容器裁切：深色表头背景左右各外扩 1px，与表体同宽对齐 */
.hc-article-body .hc-table-shell .hc-data-table thead::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: -1px;
  right: -1px;
  background: #0f1728;
  pointer-events: none;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
}

.hc-article-body .hc-table-shell .hc-data-table th,
.hc-article-body .hc-table-shell .hc-data-table td {
  padding: 10px 14px;
  vertical-align: middle;
  box-sizing: border-box;
  min-width: 0;
}

.hc-article-body .hc-table-shell .hc-data-table th {
  position: relative;
  z-index: 1;
  background: transparent;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  border: none;
  border-top: none;
  border-left: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-right: 1px solid #0f1728;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hc-article-body .hc-table-shell .hc-data-table th:last-child {
  border-right: none;
}

/* 表头左右上角圆角（与外壳 8px 协调，内弧约 7px） */
.hc-article-body .hc-table-shell .hc-data-table thead tr th:first-child {
  border-top-left-radius: 7px;
  overflow: hidden;
  background-color: #0f1728;
}

.hc-article-body .hc-table-shell .hc-data-table thead tr th:last-child {
  border-top-right-radius: 7px;
  overflow: hidden;
  background-color: #0f1728;
}

.hc-article-body .hc-table-shell .hc-data-table thead tr th:first-child:last-child {
  border-top-right-radius: 7px;
}

.hc-article-body .hc-table-shell .hc-data-table td {
  border: none;
  border-top: none;
  border-left: none;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #5a6c7d;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hc-article-body .hc-table-shell .hc-data-table td:last-child {
  border-right: none;
}

.hc-article-body .hc-table-shell .hc-data-table tr:last-child td {
  border-bottom: none;
}

.hc-article-body .hc-table-shell .hc-data-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.hc-article-body .hc-table-shell .hc-data-table td strong {
  font-size: inherit;
}

.hc-article-body .hc-flag-wrap {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.4em;
  line-height: 0;
}

.hc-article-body .hc-flag-img {
  display: block;
  width: 20px;
  height: 14px;
  object-fit: contain;
}

.hc-article-body .hc-branding-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 0;
  box-sizing: border-box;
}

.hc-article-body .hc-brand-card {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 40, 0.04);
}

.hc-article-body .hc-brand-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.hc-article-body .hc-brand-card__img {
  width: 96px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hc-article-body .hc-brand-card__img img {
  width: 96px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.hc-article-body .hc-brand-card__name {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f1728;
  line-height: 1.35;
  margin: 0;
}

.hc-article-body .hc-brand-card__desc {
  font-size: 0.75rem;
  font-weight: 400;
  color: #5a6c7d;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 900px) {
  .hc-article-body .hc-branding-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hc-article-body .hc-branding-grid {
    grid-template-columns: 1fr;
  }
}

/* OEM/ODM — 6 étapes (prototype comment-fonctionne-le-branding…) */
.hc-article-body .hc-oem-flow-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 680px;
  margin-top: 32px;
  font-family: 'Work Sans', sans-serif;
}

.hc-article-body .hc-oem-flow-item {
  display: flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
}

.hc-article-body .hc-oem-flow-badge {
  background: #c91c18;
  color: #fff;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  flex-shrink: 0;
  font-family: 'Work Sans', sans-serif;
}

.hc-article-body .hc-oem-flow-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.hc-article-body .hc-oem-flow-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 2px;
  opacity: 0.9;
}

.hc-article-body .hc-oem-flow-body {
  background: #f8fafc;
  flex: 1;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hc-article-body .hc-oem-flow-text {
  flex: 1;
  min-width: 0;
}

.hc-article-body .hc-oem-flow-title {
  font-weight: 700;
  font-size: 16px;
  color: #5a6c7d;
  line-height: 1.35;
  margin-bottom: 4px;
}

.hc-article-body .hc-oem-flow-desc {
  font-size: 16px;
  font-weight: 400;
  color: #5a6c7d;
  line-height: 1.7;
}

.hc-article-body .hc-inline-help-img {
  display: block;
  margin-top: 1.5rem;
  width: 870px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 870 / 437;
  border-radius: 5px;
  box-sizing: border-box;
}

.hc-article-body .hc-inline-help-img--890 {
  width: 890px;
  aspect-ratio: 890 / 404;
}

.hc-article-body .hc-inline-help-img--890-384 {
  width: 890px;
  aspect-ratio: 890 / 384;
  margin-bottom: 1.5rem;
}

.hc-article-body .hc-inline-help-img--890-455 {
  width: 890px;
  aspect-ratio: 890 / 455;
}

.hc-article-body .hc-inline-help-img--890-454 {
  width: 890px;
  aspect-ratio: 890 / 454;
}

.hc-article-body .hc-inline-help-img--890-486 {
  width: 890px;
  aspect-ratio: 890 / 486;
}

.hc-article-body .hc-inline-help-img--890-368 {
  width: 890px;
  aspect-ratio: 890 / 368;
}

.hc-article-body .hc-inline-help-img--890-380 {
  width: 890px;
  aspect-ratio: 890 / 380;
}

.hc-article-body .hc-inline-help-img--890-415 {
  width: 890px;
  aspect-ratio: 890 / 415;
}

.hc-article-body .hc-inline-help-img--890-390 {
  width: 890px;
  aspect-ratio: 890 / 390;
}

.hc-article-body .hc-inline-help-img--890-462 {
  width: 890px;
  aspect-ratio: 890 / 462;
}

.hc-article-body .hc-article-method-gap-before {
  margin-top: 28px;
}

.hc-article-body .hc-article-address-lead {
  margin-bottom: 20px;
}

.hc-article-body .hc-article-map-wrap {
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e2e8f0;
  line-height: 0;
  margin-bottom: 14px;
}

.hc-article-body .hc-article-map-wrap iframe {
  width: 100%;
  display: block;
  vertical-align: top;
}

.hc-article-body .hc-storage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.hc-article-body .hc-storage-cell {
  padding: 36px 28px;
  text-align: center;
}

.hc-article-body .hc-storage-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.hc-article-body .hc-storage-icon img {
  width: 90px;
  height: 90px;
  display: block;
  object-fit: contain;
}

.hc-article-body .hc-storage-title {
  font-weight: 700;
  font-size: 16px;
  color: #5a6c7d;
  margin-bottom: 12px;
  font-family: "Work Sans", sans-serif;
}

.hc-article-body .hc-storage-desc {
  font-size: 16px;
  color: #5a6c7d;
  line-height: 1.7;
  font-weight: 400;
}

@media (max-width: 768px) {
  .hc-article-body .hc-storage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hc-article-body .hc-storage-grid {
    grid-template-columns: 1fr;
  }

  .hc-article-body .hc-storage-cell {
    padding: 28px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .hc-article-body .hc-storage-cell:last-child {
    border-bottom: none;
  }
}

@media (max-width: 1150px) {
  .hc-page-layout {
    flex-direction: column;
    gap: 20px;
    padding-top: 16px;
  }

  .hc-right {
    display: contents;
  }

  .hc-page-layout .hc-breadcrumb {
    order: 1;
    margin-bottom: 0;
  }

  .hc-page-layout > .hc-sidebar {
    order: 2;
  }

  .hc-page-layout .hc-main {
    order: 3;
  }

  .hc-article-card {
    scroll-margin-top: 72px;
  }

  .hc-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    width: 100%;
  }

  .hc-article-body {
    padding: 24px 20px 32px;
  }

  .hc-article-header {
    padding: 22px 20px 18px;
  }
}
