/* =========================
   ZOAICP — Guides front
   ========================= */

.zoa-guide-index,
.zoa-guide-detail {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* ===== Hero index ===== */

.zoa-guide-index-hero {
  margin-bottom: 2rem;
  padding: 1.5rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.zoa-guide-index-hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  color: #1f2937;
}

.zoa-guide-index-intro {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
}

.zoa-guide-index-intro + .zoa-guide-index-intro {
  margin-top: 0.85rem;
}

/* ===== Accès rapides ===== */

.zoa-guide-index-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid #edf1f5;
}

.zoa-guide-index-shortcuts__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: #f8fbfd;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.18s ease;
}

.zoa-guide-index-shortcuts__link:hover {
  background: #ffffff;
  border-color: #cbd8e6;
  color: #df8428;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ===== Bloc aide / par où commencer ===== */

.zoa-guide-index-help {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf1f5;
}

.zoa-guide-index-help__title {
  margin: 0 0 0.95rem;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2937;
}

.zoa-guide-index-help__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.zoa-guide-index-help__card {
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  border: 1px solid #e6edf3;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.zoa-guide-index-help__card h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1f2937;
}

.zoa-guide-index-help__card p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
}

.zoa-guide-index-help__links {
  margin-top: 0.75rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.zoa-guide-index-help__links span {
  color: #94a3b8;
}

.zoa-guide-index-help__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: #f8fbfd;
  color: #1f2937;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.18s ease;
}

.zoa-guide-index-help__links a:hover {
  color: #df8428;
  text-decoration: none;
}

/* ===== Recherche ===== */

.zoa-guide-index-search-wrap {
  margin-top: 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid #edf1f5;
}

.zoa-guide-index-search-wrap__title {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2937;
}

.zoa-guide-index-search {
  position: relative;
}

.zoa-guide-index-search__input {
  width: 100%;
  height: 50px;
  padding: 0 1rem;
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.98rem;
  line-height: 1.2;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.zoa-guide-index-search__input:focus {
  outline: 0;
  border-color: #df8428;
  box-shadow: 0 0 0 3px rgba(223, 132, 40, 0.12);
}

.zoa-guide-index-search__hint {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b7280;
}

/* ===== Tableau périodique ===== */

section.zoa-guide-periodic {
  margin-bottom: 2rem;
  padding: 1.5rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.zoa-guide-periodic h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
  color: #1f2937;
}

.zoa-guide-periodic__intro {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #4b5563;
}

.zoa-guide-periodic__intro + .zoa-guide-periodic__intro {
  margin-top: 0.7rem;
}

.zoa-guide-periodic__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin-top: 1rem;
}

.zoa-guide-periodic__scroll .pt-wrap {
  min-width: 760px;
}

@media (min-width: 768px) {
  .zoa-guide-periodic__scroll {
    overflow-x: visible;
  }

  .zoa-guide-periodic__scroll .pt-wrap {
    min-width: 0;
  }
}

/* ===== Groupes ===== */

.zoa-guide-group {
  margin: 2rem 0 2.25rem;
}

.zoa-guide-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.zoa-guide-group-title {
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 2px solid #5EC6D1;
  flex: 1 1 auto;
}

.zoa-guide-group-count {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #f3f7fa;
  border: 1px solid #e3ebf2;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 600;
}

/* ===== Grid index ===== */

.zoa-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.zoa-guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.2rem;
  background: #ffffff;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.zoa-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #d6dee8;
}

.zoa-guide-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.zoa-guide-card__symbol {
  flex: 0 0 auto;
  min-width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.zoa-guide-card__identity {
  min-width: 0;
}

.zoa-guide-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
}

.zoa-guide-card__name a {
  color: #1f2937;
  text-decoration: none;
}

.zoa-guide-card__name a:hover {
  color: #df8428;
  text-decoration: none;
}

.zoa-guide-card__category {
  font-size: 0.9rem;
  line-height: 1.35;
  color: #6b7280;
}

.zoa-guide-card__meta {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  background: #f8fafc;
  border: 1px solid #ebf0f5;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #374151;
}

.zoa-guide-card__summary {
  flex: 1 1 auto;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
  overflow: hidden;
}

.zoa-guide-card__summary p {
  margin: 0;
}

.zoa-guide-card__summary p:last-child {
  margin-bottom: 0;
}

.zoa-guide-card__actions {
  margin: 1rem 0 0;
}

.zoa-guide-card__actions .btn {
  min-width: 150px;
  border-radius: 10px;
}

a.btn.btn-primary-guide {
  background: linear-gradient(135deg, #2AA7C8, #22C55E);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px color-mix(in srgb, #2AA7C8 24%, transparent);
  vertical-align: middle;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

a.btn.btn-primary-guide:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.has-lottie {
  padding: 0.4rem;
}

/* ===== Tuiles éléments ===== */

.zoa-guide-card__tile {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 78px;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transition: transform .08s ease, box-shadow .08s ease;
  overflow: hidden;
}

.zoa-guide-card:hover .zoa-guide-card__tile {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.zoa-guide-card__tile-z {
  position: absolute;
  top: 3px;
  left: 8px;
  font-size: 11px;
  color: #334155;
  line-height: 1;
}

.zoa-guide-card__tile-sym {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-58%);
  text-align: center;
  font-weight: 600;
  font-size: 24px;
  color: #0f172a;
  line-height: 1;
}

.zoa-guide-card__tile-name {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  text-align: center;
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

/* mêmes couleurs que le tableau périodique */
.zoa-guide-card__tile--hydrogen   { background: #e2eeff; }
.zoa-guide-card__tile--alkali     { background: #d8f8ff; }
.zoa-guide-card__tile--alkaline   { background: #ffe7e7; }
.zoa-guide-card__tile--transition { background: #f3e8fd; }
.zoa-guide-card__tile--post       { background: #d6f9e8; }
.zoa-guide-card__tile--metalloid  { background: #fef7e0; }
.zoa-guide-card__tile--nonmetal   { background: #e2eeff; }
.zoa-guide-card__tile--halogen    { background: #ffe7eb; }
.zoa-guide-card__tile--noble      { background: #ffe7eb; }
.zoa-guide-card__tile--lanthanide { background: #dff3ff; }
.zoa-guide-card__tile--actinide   { background: #ffe6d4; }
.zoa-guide-card__tile--unknown    { background: #e5e7eb; }

/* ===== FAQ ===== */

.zoa-guide-faq {
  margin-top: 2.2rem;
  padding: 1.4rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.zoa-guide-faq h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
  color: #1f2937;
}

.zoa-guide-faq__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.zoa-guide-faq__item {
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #ebf0f5;
  border-radius: 14px;
}

.zoa-guide-faq__item h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: #1f2937;
}

.zoa-guide-faq__item p {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== Détail ===== */

.zoa-guide-article {
  background: #ffffff;
  border: 1px solid #e9edf2;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.zoa-guide-hero {
  margin-bottom: 1.75rem;
}

.zoa-guide-hero__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.zoa-guide-hero__symbol {
  flex: 0 0 auto;
  min-width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.zoa-guide-hero__text {
  min-width: 0;
}

.zoa-guide-hero__text h1 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
}

.zoa-guide-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.zoa-guide-hero__badges .badge {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
}

.zoa-guide-intro {
  margin: 1rem 0 1.2rem;

  color: #374151;
  font-size: 1rem;
  line-height: 1.75;
}

.zoa-guide-intro p:last-child {
  margin-bottom: 0;
}

/* ===== Bloc à retenir ===== */

.zoa-guide-highlight {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #fff8f1 0%, #fffdf9 100%);
  border: 1px solid rgba(223, 132, 40, 0.22);
  border-radius: 14px;
}

.zoa-guide-highlight h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #9a4f09;
}

.zoa-guide-highlight ul {
  margin: 0;
  padding-left: 1.1rem;
}

.zoa-guide-highlight li {
  margin: 0.35rem 0;
  color: #374151;
  line-height: 1.55;
}

/* ===== Sections ===== */

.zoa-guide-section {
  margin: 1.6rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid #edf1f5;
}

.zoa-guide-section:first-of-type {
  margin-top: 1.25rem;
}

.zoa-guide-section h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: #1f2937;
}

.zoa-guide-section p,
.zoa-guide-section li {
  color: #374151;
  line-height: 1.75;
}

.zoa-guide-section ul,
.zoa-guide-section ol {
  padding-left: 1.3rem;
}

.zoa-guide-section p:last-child,
.zoa-guide-section ul:last-child,
.zoa-guide-section ol:last-child {
  margin-bottom: 0;
}

/* Gère les contenus HTML internes type .zoa-kb */
.zoa-guide-section .zoa-kb,
.zoa-guide-section section,
.zoa-guide-intro section {
  color: inherit;
}

.zoa-guide-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.zoa-guide-section table th,
.zoa-guide-section table td {
  padding: 0.7rem 0.8rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.zoa-guide-section table th {
  background: #f8fafc;
  font-weight: 700;
}

/* ===== Guides liés en chips ===== */

.zoa-guide-related {
  margin-top: 1.5rem;
  padding: 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e7edf3;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.zoa-guide-related h2 {
  margin: 0 0 0.9rem;
  font-size: 1.18rem;
  font-weight: 800;
  color: #1f2937;
}

.zoa-guide-related__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.zoa-guide-related__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #dbe5ee;
  background: linear-gradient(180deg, #f8fbfd 0%, #f3f7fb 100%);
  color: #1f2937;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
  transition: all 0.18s ease;
}

.zoa-guide-related__chip:hover {
  background: #ffffff;
  border-color: #cbd8e6;
  color: #df8428;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.zoa-guide-related__chip-name {
  color: inherit;
}

.zoa-guide-related__chip-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(42, 167, 200, 0.10);
  color: #2AA7C8;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.zoa-guide-related__more {
  margin: 1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid #edf1f5;
}

.zoa-guide-related__more a {
  display: inline-flex;
  padding: 0;
  font-weight: 800;
  color: #2AA7C8;
  text-decoration: none;
}

.zoa-guide-related__more a:hover {
  color: #df8428;
  text-decoration: none;
}

/* ===== Utilitaires ===== */

.zoa-guide-index .alert,
.zoa-guide-detail .alert {
  border-radius: 12px;
}

.zoa-guide-card[hidden],
.zoa-guide-group[hidden] {
  display: none !important;
}

/* ===== Responsive ===== */

@media (max-width: 1199px) {
  .zoa-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zoa-guide-index-help__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .zoa-guide-faq__items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .zoa-guide-index-hero,
  .zoa-guide-article,
  .zoa-guide-related,
  .zoa-guide-periodic,
  .zoa-guide-faq {
    padding: 1rem;
    border-radius: 14px;
  }

  .zoa-guide-index-hero h1,
  .zoa-guide-hero__text h1 {
    font-size: 1.55rem;
  }

  .zoa-guide-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .zoa-guide-card {
    padding: 1rem;
  }

  .zoa-guide-card__symbol {
    min-width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .zoa-guide-card__tile {
    width: 60px;
    height: 66px;
    border-radius: 8px;
  }

  .zoa-guide-card__tile-sym {
    font-size: 20px;
  }

  .zoa-guide-card__tile-name {
    font-size: 10px;
  }

  .zoa-guide-hero__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .zoa-guide-hero__symbol {
    min-width: 60px;
    height: 60px;
    border-radius: 14px;
    font-size: 1.2rem;
  }

  .zoa-guide-highlight {
    padding: 0.9rem 1rem;
  }

  .zoa-guide-section h2,
  .zoa-guide-related h2,
  .zoa-guide-group-title,
  .zoa-guide-periodic h2,
  .zoa-guide-faq h2,
  .zoa-guide-index-help__title,
  .zoa-guide-index-search-wrap__title {
    font-size: 1.1rem;
  }

  .zoa-guide-group__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .zoa-guide-group-title {
    width: 100%;
  }

  .zoa-guide-index-shortcuts {
    gap: 0.55rem;
  }

  .zoa-guide-index-shortcuts__link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .zoa-guide-index-search__input {
    height: 46px;
    font-size: 0.95rem;
  }
}

/* =========================
   ZOAICP — Guide détail premium
   ========================= */

.zoa-guide-detail {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.zoa-guide-detail .container,
section.zoa-guide-detail {
  position: relative;
}

.zoa-guide-article {
  background:
    radial-gradient(circle at top right, rgba(42, 167, 200, 0.06), transparent 28%),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.05), transparent 24%),
    #ffffff;
  border: 1px solid #e6edf3;
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.06),
    0 2px 8px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

/* ===== Hero ===== */

.zoa-guide-hero {
  margin-bottom: 1.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #edf1f5;
}

.zoa-guide-hero__back {
  margin: 0 0 1rem;
}

.zoa-guide-hero__back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.18s ease, transform 0.18s ease;
}

.zoa-guide-hero__back a:hover {
  color: #df8428;
  text-decoration: none;
  transform: translateX(-1px);
}

.zoa-guide-hero__head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.zoa-guide-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.zoa-guide-hero__text {
  min-width: 0;
  flex: 1 1 auto;
}

.zoa-guide-hero__text h1 {
  margin: 0 0 0.75rem;
  font-size: 2.3rem;
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  max-width: 860px;
}

.zoa-guide-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.zoa-guide-hero__badges .badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.zoa-guide-hero__badges .badge-info {
  background: linear-gradient(135deg, #2AA7C8, #22C55E);
  color: #fff;
  border: none;
  box-shadow: 0 10px 22px rgba(42, 167, 200, 0.18);
}

.zoa-guide-hero__badges .badge-light {
  background: #ffffff;
  border: 1px solid #dce7ef;
  color: #334155;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* ===== Raccourcis ===== */

.zoa-guide-detail-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.zoa-guide-detail-shortcuts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 0.95rem;
  border: 1px solid #dbe5ee;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f3f7fb 100%);
  color: #1f2937;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.18s ease;
}

.zoa-guide-detail-shortcuts a:hover {
  background: #ffffff;
  border-color: #cbd8e6;
  color: #df8428;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

/* ===== Modèle 3D ===== */

.zoa-guide-hero__right {
  flex: 0 0 280px;
  width: 280px;
  min-height: 230px;
  padding: 0.65rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(42, 167, 200, 0.10), transparent 52%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
  border: 1px solid #dfe8ef;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 12px 28px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoa-guide-mv {
  width: 100%;
  height: 230px;
  display: block;
  border-radius: 14px;
  overflow: hidden;
}

/* ===== Intro ===== */

.zoa-guide-intro {
  margin: 1.15rem 0 1.3rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e8eef4;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  color: #334155;
  font-size: 1rem;
  line-height: 1.85;
}

.zoa-guide-intro p {
  margin: 0 0 1rem;
}

.zoa-guide-intro p:last-child {
  margin-bottom: 0;
}

.zoa-guide-intro strong {
  color: #0f172a;
  font-weight: 700;
}

/* ===== Bloc à retenir ===== */

.zoa-guide-highlight {
  margin-top: 1.1rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, #f3f9ff 0%, #fbfeff 100%);
  border: 1px solid rgba(42, 167, 200, 0.22);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 8px 18px rgba(42, 167, 200, 0.07);
}

.zoa-guide-highlight h2 {
  color: #0f5f73;
}

.zoa-guide-highlight ul {
  margin: 0;
  padding-left: 1.2rem;
}

.zoa-guide-highlight li {
  margin: 0.4rem 0;
  color: #374151;
  line-height: 1.6;
}

.zoa-guide-highlight strong {
  color: #111827;
}

/* ===== Sections en cartes ===== */

.zoa-guide-section {
  margin: 1.3rem 0 0;
  padding: 1.25rem 1.25rem 1.15rem;
  background: #ffffff;
  border: 1px solid #e8eef4;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.zoa-guide-section:first-of-type {
  margin-top: 1.35rem;
}

.zoa-guide-section > h2 {
  margin: 0 0 0.95rem;
  font-size: 1.32rem;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.zoa-guide-section > p,
.zoa-guide-section > div,
.zoa-guide-section li {
  color: #334155;
  line-height: 1.82;
}

.zoa-guide-section > p:last-child {
  margin-bottom: 0;
}

.zoa-guide-section ul,
.zoa-guide-section ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.zoa-guide-section li {
  margin: 0.48rem 0;
}

/* ===== HTML injecté ===== */

.zoa-guide-section .zoa-kb,
.zoa-guide-section section,
.zoa-guide-intro section {
  color: inherit;
}

.zoa-guide-section .zoa-kb h3,
.zoa-guide-section section h3 {
  margin: 1.2rem 0 0.7rem;
  font-size: 1.08rem;
  line-height: 1.3;
  font-weight: 800;
  color: #111827;
}

.zoa-guide-section .zoa-kb h3:first-child,
.zoa-guide-section section h3:first-child {
  margin-top: 0;
}

.zoa-guide-section .zoa-kb p,
.zoa-guide-section section p {
  margin: 0 0 1rem;
  color: #334155;
  line-height: 1.82;
}

.zoa-guide-section .zoa-kb ul,
.zoa-guide-section .zoa-kb ol,
.zoa-guide-section section ul,
.zoa-guide-section section ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.zoa-guide-section .zoa-kb li,
.zoa-guide-section section li {
  margin: 0.45rem 0;
  color: #334155;
  line-height: 1.78;
}

.zoa-guide-section .zoa-kb strong,
.zoa-guide-section section strong {
  color: #0f172a;
  font-weight: 700;
}

/* ===== Tableaux ===== */

.zoa-guide-section table,
.zoa-guide-section .zoa-kb table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: #fff;
  overflow: hidden;
  border-radius: 14px;
}

.zoa-guide-section table th,
.zoa-guide-section table td,
.zoa-guide-section .zoa-kb table th,
.zoa-guide-section .zoa-kb table td {
  padding: 0.78rem 0.88rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.zoa-guide-section table th,
.zoa-guide-section .zoa-kb table th {
  background: #f8fafc;
  font-weight: 700;
  color: #111827;
}

/* ===== Guides liés ===== */

.zoa-guide-related {
  margin-top: 1.5rem;
  padding: 1.3rem;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e7edf3;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.zoa-guide-related h2 {
  margin: 0 0 0.9rem;
  font-size: 1.18rem;
  font-weight: 800;
  color: #1f2937;
}

.zoa-guide-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.zoa-guide-related li {
  margin: 0;
  border-top: 1px solid #edf1f5;
}

.zoa-guide-related li:first-child {
  border-top: none;
}

.zoa-guide-related a {
  display: block;
  /* padding: 0.82rem 0; */
  color: #1f2937;
  text-decoration: none;
  line-height: 1.5;
  font-weight: 700;
  transition: color 0.18s ease, transform 0.18s ease;
}

.zoa-guide-related a:hover {
  color: #df8428;
  text-decoration: none;
  transform: translateX(2px);
}

.zoa-guide-related__more {
  margin: 1rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid #edf1f5;
}

.zoa-guide-related__more a {
  display: inline-flex;
  padding: 0;
  font-weight: 800;
  color: #2AA7C8;
}

.zoa-guide-related__more a:hover {
  color: #df8428;
  transform: none;
}

/* ===== Mobile ===== */

@media (max-width: 991px) {
  .zoa-guide-hero__head {
    flex-direction: column;
    align-items: stretch;
  }

  .zoa-guide-hero__right {
    width: 100%;
    flex: 0 0 auto;
    min-height: 210px;
  }

  .zoa-guide-mv {
    height: 210px;
  }
}

@media (max-width: 767px) {
  .zoa-guide-article,
  .zoa-guide-related {
    padding: 1rem;
    border-radius: 16px;
  }

  .zoa-guide-hero__main {
    flex-direction: column;
    align-items: flex-start;
  }

  .zoa-guide-hero__text h1 {
    font-size: 1.7rem;
    line-height: 1.08;
  }

  .zoa-guide-detail-shortcuts {
    gap: 0.55rem;
  }

  .zoa-guide-detail-shortcuts a {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .zoa-guide-hero__right {
    min-height: 185px;
    padding: 0.4rem;
    border-radius: 14px;
  }

  .zoa-guide-mv {
    height: 185px;
  }

  .zoa-guide-intro,
  .zoa-guide-section,
  .zoa-guide-highlight {
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 14px;
  }

  .zoa-guide-section > h2,
  .zoa-guide-related h2 {
    font-size: 1.12rem;
  }

  .zoa-guide-section .zoa-kb h3,
  .zoa-guide-section section h3 {
    font-size: 1rem;
  }
}

/* ===== Listes avec bulles ===== */

.zoa-guide-section ul,
.zoa-guide-section .zoa-kb ul,
.zoa-guide-intro ul {
  list-style: none;
  padding-left: 0;
  margin: 0.9rem 0 1rem;
}

.zoa-guide-section ul li,
.zoa-guide-section .zoa-kb ul li,
.zoa-guide-intro ul li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.55rem 40px;
  color: #334155;
  line-height: 1.78;
}

.zoa-guide-section ul li::before,
.zoa-guide-section .zoa-kb ul li::before,
.zoa-guide-intro ul li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5EC6D1, #2AA7C8);
  box-shadow: 0 0 0 4px rgba(42, 167, 200, 0.10);
  transform: translateY(-50%);
}

.zoa-guide-section ul li strong,
.zoa-guide-section .zoa-kb ul li strong,
.zoa-guide-intro ul li strong {
  color: #0f172a;
}

/* ===== Produits liés dans les guides ===== */

.zoa-guide-products{
  margin-top: 28px;
}

.zoa-guide-products__intro{
  margin: 0 0 14px;
  color: #5f6b7a;
  line-height: 1.55;
}

.zoa-guide-products__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 14px;
  align-items: stretch;
}

.zoa-guide-product-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 30, 50, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.zoa-guide-product-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 30, 50, 0.08);
  border-color: #d8e0ea;
}

.zoa-guide-product-card__image{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 229px;
  flex: 0 0 210px;
  background: #f7f9fc;
  text-decoration: none;
}

.zoa-guide-product-card__image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.zoa-guide-product-card__placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px;
  text-align: center;
  color: #7a8696;
  font-size: 0.92rem;
  line-height: 1.4;
}

.zoa-guide-product-card__body{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  padding: 14px 16px 16px;
}

.zoa-guide-product-card__title{
  margin: 0;
  min-height: 2.8em;
  font-size: 0.96rem;
  line-height: 1.4;
  font-weight: 600;
}

.zoa-guide-product-card__title a{
  color: #1d2733;
  text-decoration: none;
}

.zoa-guide-product-card__title a:hover{
  color: #df8428;
}

.zoa-guide-product-card__ref{
  min-height: 1.4em;
  font-size: 0.88rem;
  color: #6f7b88;
  line-height: 1.4;
}

.zoa-guide-product-card__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.zoa-guide-product-card__price{
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.zoa-guide-product-card__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
  background: linear-gradient(135deg, #2AA7C8, #22C55E);
  color: #fff;
  border: none;
  box-shadow: 0 10px 22px rgba(42, 167, 200, 0.18);
  min-height: 33px;
  padding: 3px 14px;
}

.zoa-guide-product-card__cta:hover{
  background: #c8731d;
  color: #fff;
  text-decoration: none;
}

.zoa-guide-product-card__cta:active{
  transform: translateY(1px);
}

/* ===== Responsive ===== */

@media (max-width: 991px){
  .zoa-guide-products__grid{
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

@media (max-width: 767px){
  .zoa-guide-product-card__image{
    height: 160px;
    flex-basis: 160px;
  }

  .zoa-guide-product-card__body{
    padding: 12px 14px 14px;
  }

  .zoa-guide-product-card__title{
    font-size: 0.93rem;
  }

  .zoa-guide-product-card__cta{
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 520px){
  .zoa-guide-products__grid{
    grid-template-columns: 1fr;
  }

  .zoa-guide-product-card__image{
    height: 150px;
    flex-basis: 150px;
  }
}

.zoa-guide-hero__topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.zoa-guide-hero__back{
  margin:0;
}

.zoa-guide-share{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.zoa-guide-share .icp-meta-share-label{
  margin:0;
  white-space:nowrap;
}

.zoa-guide-share .icp-meta-share-icons{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.zoa-guide-share .btn.ghost{
  justify-content:center;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  appearance: none;
  border: 1px solid #2AA7C8;
  background: #ffffff00;
  padding: 4px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04) inset;
}

@media (max-width: 767px){
  .zoa-guide-hero__topbar{
    align-items:flex-start;
  }

  .zoa-guide-share{
    margin-left:0;
    width:100%;
    justify-content:flex-start;
  }
}