/* ==================== CENTRE D'AIDE (/aide) ==================== */

/* Fond blanc sur les pages du centre d'aide */
body:has(.aide-hero-section) {
  background-color: #FFFFFF;
}

.aide-hero-inner,
.aide-categories-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 5%;
}

.aide-hero-inner.is-narrow {
  max-width: 760px;
}

/* ==================== HERO ==================== */

.aide-hero-section {
  padding: 3.5rem 0 1rem;
  background: #FFFFFF;
}

.aide-hero-section.is-category,
.aide-hero-section.is-article {
  padding-bottom: 0.5rem;
}

.aide-back-wrap {
  margin-bottom: 1.75rem;
}

.aide-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #171717;
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.aide-back-btn svg {
  width: 18px;
  height: 18px;
}

.aide-back-btn:hover {
  opacity: 0.7;
}

.aide-hero-title {
  font-family: Ppmori, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: #171717;
  margin: 0 0 1rem;
}

.aide-hero-subtitle {
  font-family: Ppmori, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 300;
  color: #525252;
  margin: 0 0 2rem;
  max-width: 620px;
}

/* Fil d'ariane */
.aide-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: Ppmori, sans-serif;
  font-size: 13px;
  color: #737373;
  margin-bottom: 1.5rem;
}

.aide-breadcrumb a {
  color: #737373;
  text-decoration: none;
}

.aide-breadcrumb a:hover {
  color: #171717;
}

.aide-breadcrumb-sep {
  color: #C7C7C7;
}

.aide-breadcrumb-current {
  color: #171717;
}

/* ==================== RECHERCHE ==================== */

.aide-search-wrap {
  position: relative;
  max-width: 560px;
  margin-bottom: 0.5rem;
}

.aide-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.aide-search-input {
  color: #25272c;
  letter-spacing: -0.18px;
  background-color: #ffffff;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
  width: 100%;
  padding: 13px 14px 13px 44px;
  font-family: Ppmori, sans-serif;
  font-size: 15px;
  line-height: 20px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.aide-search-input:focus {
  border-color: #171717;
  outline: none;
  box-shadow: 0 0 0 3px rgba(114, 227, 173, 0.25);
}

.aide-search-input::placeholder {
  color: #999;
}

/* Résultats */
.aide-search-results {
  max-width: 560px;
  margin-top: 10px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(23, 23, 23, 0.08);
  overflow: hidden;
}

.aide-search-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.aide-search-item[hidden] {
  display: none;
}

.aide-search-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.12s;
}

.aide-search-link:hover {
  background-color: #f6f6f6;
}

.aide-search-item-title {
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  color: #171717;
}

.aide-search-item-cat {
  font-family: Ppmori, sans-serif;
  font-size: 12px;
  color: #8a8a8a;
  white-space: nowrap;
}

.aide-search-empty {
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  color: #737373;
  padding: 16px;
  margin: 0;
  text-align: center;
}

/* ==================== GRILLE CATÉGORIES ==================== */

.aide-categories-section {
  padding: 2.5rem 0 5rem;
}

.aide-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.aide-cat-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid #ededed;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.aide-cat-card:hover {
  border-color: #d9d9d9;
  box-shadow: 0 10px 30px rgba(23, 23, 23, 0.07);
  transform: translateY(-2px);
}

.aide-cat-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d3a26;
}

.aide-cat-icon.is-large {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.aide-cat-body {
  flex: 1 1 auto;
  min-width: 0;
}

.aide-cat-title {
  font-family: Ppmori, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #171717;
  margin: 0 0 6px;
  line-height: 1.25;
}

.aide-cat-desc {
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #6b6b6b;
  margin: 0 0 10px;
  line-height: 1.45;
}

.aide-cat-count {
  font-family: Ppmori, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #097c4f;
  background: rgba(114, 227, 173, 0.16);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-block;
}

.aide-cat-arrow {
  flex: 0 0 auto;
  color: #b5b5b5;
  transition: transform 0.15s, color 0.15s;
}

.aide-cat-card:hover .aide-cat-arrow,
.aide-article-card:hover .aide-cat-arrow {
  color: #171717;
  transform: translate(2px, -2px);
}

/* ==================== PAGE CATÉGORIE ==================== */

.aide-cat-hero-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.aide-cat-body-section {
  padding: 2rem 0 5rem;
}

.aide-cat-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.aide-cat-sidebar {
  position: sticky;
  top: 100px;
}

.aide-cat-sidebar-title {
  font-family: Ppmori, sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  margin: 0 0 12px;
}

.aide-cat-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aide-cat-nav-link {
  display: block;
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  color: #525252;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.12s, color 0.12s;
}

.aide-cat-nav-link:hover {
  background-color: #f6f6f6;
  color: #171717;
}

.aide-cat-nav-link.is-active {
  background-color: #171717;
  color: #fff;
}

/* Liste d'articles */
.aide-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aide-article-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.aide-article-card:hover {
  border-color: #d9d9d9;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.06);
}

.aide-article-title {
  font-family: Ppmori, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #171717;
  margin: 0 0 4px;
  line-height: 1.3;
}

.aide-article-excerpt {
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #6b6b6b;
  margin: 0;
  line-height: 1.45;
}

/* État vide */
.aide-empty-state {
  border: 1px dashed #dcdcdc;
  border-radius: 14px;
  padding: 40px 28px;
  text-align: center;
}

.aide-empty-title {
  font-family: Ppmori, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #171717;
  margin: 0 0 8px;
}

.aide-empty-desc {
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #6b6b6b;
  margin: 0 0 20px;
}

.aide-empty-actions,
.aide-article-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.aide-empty-btn {
  display: inline-flex;
  align-items: center;
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  border: 1px solid #171717;
  transition: opacity 0.15s;
}

.aide-empty-btn:hover {
  opacity: 0.85;
}

.aide-empty-btn.is-ghost {
  background: #fff;
  color: #171717;
}

/* Autres catégories (maillage) */
.aide-related-cats {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid #ededed;
}

.aide-related-cats-title,
.aide-related-title {
  font-family: Ppmori, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #171717;
  margin: 0 0 16px;
}

.aide-related-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.aide-related-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Ppmori, sans-serif;
  font-size: 14px;
  color: #171717;
  text-decoration: none;
  padding: 12px 14px;
  border: 1px solid #ededed;
  border-radius: 10px;
  transition: border-color 0.15s;
}

.aide-related-cat:hover {
  border-color: #171717;
}

.aide-related-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ==================== PAGE ARTICLE ==================== */

.aide-article-page-title {
  font-family: Ppmori, sans-serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  color: #171717;
  margin: 0 0 12px;
}

.aide-article-meta {
  font-family: Ppmori, sans-serif;
  font-size: 13px;
  color: #8a8a8a;
  margin: 0;
}

.aide-article-section {
  padding: 1.5rem 0 3rem;
}

.aide-article-empty {
  font-family: Ppmori, sans-serif;
  font-size: 15px;
  color: #6b6b6b;
}

.aide-article-cta {
  margin-top: 40px;
  padding: 28px;
  border-radius: 14px;
  background: #f7f7f5;
  text-align: center;
}

.aide-article-cta-text {
  font-family: Ppmori, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #171717;
  margin: 0 0 16px;
}

.aide-related-section {
  padding: 0 0 5rem;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
  .aide-cat-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .aide-cat-sidebar {
    position: static;
  }
  .aide-cat-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .aide-hero-title {
    font-size: 30px;
  }
  .aide-article-page-title {
    font-size: 26px;
  }
  .aide-categories-grid,
  .aide-related-cats-grid {
    grid-template-columns: 1fr;
  }
  .aide-cat-hero-head {
    align-items: flex-start;
    gap: 14px;
  }
  .aide-article-card {
    flex-direction: row;
  }
}
