/* single-guide premium — version finale avec sous-sommaire A/B/C */

.guide-single-page-v2,
.guide-single-article-v2,
body.single-guide,
body.single-guide #page,
body.single-guide .site {
  background: #f7f8fa !important;
  color: #17283a;
}

/* Hero */
.guide-hero-v2 {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 320px;
  height: 38vw;
  max-height: 440px;
  overflow: hidden;
  background: #102843;
  color: #fff;
}

.guide-hero-v2__media,
.guide-hero-v2__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.guide-hero-v2__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.guide-hero-v2__overlay {
  background: linear-gradient(180deg, rgba(8, 25, 43, 0.22) 0%, rgba(8, 25, 43, 0.52) 100%);
}

.guide-hero-v2__container {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: 24px;
}

.guide-breadcrumbs-v2 {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.84);
}

.guide-breadcrumbs-v2 a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
}

.guide-breadcrumbs-v2 a:hover {
  color: #ffffff;
}

.guide-hero-v2__content {
  max-width: 900px;
}

.guide-hero-v2__kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #dfb775;
}

.guide-hero-v2__title {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #fff;
  max-width: 860px;
}

.guide-hero-v2__excerpt {
  display: none;
}

.guide-hero-v2__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
}

/* Body */
.guide-body-v2 {
  padding: 34px 0 88px;
  background: #f7f8fa;
}

.guide-body-v2__container {
  max-width: 980px;
  margin: 0 auto;
}

/* Sommaire */
.guide-toc-box-v2 {
  background: #ffffff;
  border: 1px solid rgba(23, 40, 58, 0.08);
  box-shadow: 0 18px 40px rgba(9, 27, 49, 0.06);
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 26px;
}

.guide-toc-box-v2__title {
  margin: 0 0 16px;
  color: #a77b3d;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guide-toc-list-v2 {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: guide-main;
  display: grid;
  gap: 10px;
}

.guide-toc-list-v2 > li.level-2 {
  counter-increment: guide-main;
  margin: 0;
  padding: 0;
}

.guide-toc-list-v2 > li.level-2 > a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 12px;
  color: #425263;
  text-decoration: none;
  line-height: 1.45;
}

.guide-toc-list-v2 > li.level-2 > a::before {
  content: counter(guide-main, decimal-leading-zero);
  color: #c99a55;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
}

.guide-toc-sublist-v2 {
  list-style: none;
  margin: 10px 0 2px 54px;
  padding: 0;
  counter-reset: guide-sub;
  display: grid;
  gap: 10px;
}

.guide-toc-sublist-v2 > li.level-3 {
  counter-increment: guide-sub;
  margin: 0;
  padding: 0;
}

.guide-toc-sublist-v2 > li.level-3 > a {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: start;
  gap: 10px;
  color: #5a6876;
  text-decoration: none;
  line-height: 1.42;
}

.guide-toc-sublist-v2 > li.level-3 > a::before {
  content: counter(guide-sub, upper-alpha);
  color: #c99a55;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
}

.guide-toc-list-v2 a:hover,
.guide-toc-sublist-v2 a:hover {
  color: #0f2743;
}

/* Contenu */
.guide-content-shell-v2 {
  background: #ffffff;
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 28px;
  box-shadow: 0 22px 45px rgba(9, 27, 49, 0.08);
  padding: 42px 44px;
}

.guide-content-v2 {
  max-width: 860px;
  margin: 0 auto;
  color: #17283a;
  font-size: 1.08rem;
  line-height: 1.84;
}

.guide-content-v2 > *:first-child {
  margin-top: 0 !important;
}

.guide-content-v2 p {
  margin: 0 0 1.35em;
}

.guide-content-v2 h2 {
  margin: 2.2em 0 0.72em;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #091b31;
}

.guide-content-v2 h3 {
  margin: 1.7em 0 0.62em;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f2743;
}

.guide-content-v2 ul,
.guide-content-v2 ol {
  margin: 0 0 1.4em 1.2em;
  padding: 0;
}

.guide-content-v2 li {
  margin-bottom: 0.55em;
}

.guide-content-v2 strong {
  color: #091b31;
}

.guide-content-v2 a {
  color: #0f2743;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-content-v2 blockquote {
  margin: 1.8em 0;
  padding: 22px 24px;
  border-left: 4px solid #c99a55;
  background: linear-gradient(180deg, #fffaf3 0%, #faf5ee 100%);
  border-radius: 18px;
  color: #425263;
}

.guide-content-v2 table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(9, 27, 49, 0.06);
}

.guide-content-v2 th,
.guide-content-v2 td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(23, 40, 58, 0.08);
  text-align: left;
  background: #fff;
}

.guide-content-v2 th {
  background: #f3f5f8;
  color: #091b31;
  font-weight: 700;
}

.guide-content-v2 img {
  border-radius: 22px;
  margin: 2em auto;
  box-shadow: 0 18px 40px rgba(9, 27, 49, 0.08);
}

/* Related */
.guide-related-v2 {
  padding: 78px 0 90px;
  background: #eef2f6;
  border-top: 1px solid rgba(23, 40, 58, 0.06);
}

.guide-related-v2__heading {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.guide-related-v2__kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a77b3d;
  font-size: 0.8rem;
  font-weight: 700;
}

.guide-related-v2__heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: #091b31;
}

.guide-related-v2__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.guide-related-card-v2 {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  border: 1px solid rgba(23, 40, 58, 0.08);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 22px 45px rgba(9, 27, 49, 0.08);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.guide-related-card-v2__tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(201, 154, 85, 0.12);
  color: #a77b3d;
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
  margin-bottom: 16px;
}

.guide-related-card-v2 h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #091b31;
}

.guide-related-card-v2 p {
  margin: 0 0 18px;
  color: #425263;
}

.guide-related-card-v2__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f2743;
}

.guide-related-card-v2__link::after {
  content: "→";
}

/* Responsive */
@media (max-width: 900px) {
  .guide-hero-v2 {
    min-height: 280px;
    height: 78vw;
    max-height: 420px;
  }

  .guide-hero-v2__container {
    width: calc(100% - 28px);
    padding-bottom: 22px;
  }

  .guide-breadcrumbs-v2 {
    top: 16px;
    font-size: 0.86rem;
  }

  .guide-hero-v2__title {
    font-size: 2.3rem;
  }

  .guide-toc-list-v2 > li.level-2 > a {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .guide-toc-sublist-v2 {
    margin-left: 44px;
  }

  .guide-content-shell-v2 {
    padding: 24px;
  }

  .guide-content-v2 {
    font-size: 1rem;
    line-height: 1.76;
  }

  .guide-related-v2__grid {
    grid-template-columns: 1fr;
  }
}
