.article-container {
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
}


/* =========================================================
   FIL D'ARIANE
   ========================================================= */

.article-breadcrumb-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--black);
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;

  min-height: 52px;

  color: var(--muted);
  font-size: 12px;
}

.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--orange);
}

.article-breadcrumb span:last-child {
  color: rgba(255, 255, 255, 0.48);
}


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

.article-page {
  width: 100%;
  padding: 70px 0 100px;

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(255, 122, 0, 0.06),
      transparent 30%
    ),
    var(--bg);
}

.article {
  overflow: visible;
}


/* =========================================================
   EN-TÊTE
   ========================================================= */

.article-header {
  max-width: 930px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;
  padding: 8px 13px;

  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 999px;

  background: rgba(255, 122, 0, 0.08);
  color: var(--orange);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.article-header h1 {
  margin: 0 0 22px;

  color: var(--white);
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.article-lead {
  max-width: 780px;
  margin: 0 auto;

  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;

  margin-top: 24px;

  color: var(--muted);
  font-size: 12px;
}


/* =========================================================
   IMAGE PRINCIPALE
   ========================================================= */

.article-cover {
  margin: 0 auto 55px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--panel);
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  max-height: 600px;

  object-fit: cover;
  object-position: center;

  display: block;
}

.article-cover figcaption {
  padding: 11px 18px;

  border-top: 1px solid var(--border);

  color: var(--muted);
  background: var(--panel);

  font-size: 11px;
}


/* =========================================================
   LAYOUT ARTICLE + SOMMAIRE
   ========================================================= */

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  gap: 55px;
  justify-content: center;
  align-items: start;
}


/* =========================================================
   SOMMAIRE
   ========================================================= */

.article-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);

  display: flex;
  flex-direction: column;

  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 14px;

  background: var(--panel);
}

.article-toc-title {
  margin-bottom: 12px;

  color: var(--white);

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.article-toc a {
  padding: 9px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  color: var(--muted);

  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.article-toc a:last-child {
  border-bottom: 0;
}

.article-toc a:hover {
  color: var(--orange);
}


/* =========================================================
   CONTENU ÉDITORIAL
   ========================================================= */

.article-content {
  min-width: 0;
}

.article-content > p {
  margin: 0 0 20px;

  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
}

.article-content strong {
  color: var(--white);
}

.article-content section {
  width: 100%;
  margin: 0;
  padding: 58px 0 0;
}

.article-content section h2 {
  margin: 0 0 20px;

  color: var(--white);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-content section h2::before {
  content: "";

  display: inline-block;

  width: 4px;
  height: 1em;

  margin-right: 11px;

  border-radius: 999px;

  background: var(--orange);

  vertical-align: -0.12em;
}

.article-content section p {
  margin: 0 0 17px;

  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.article-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;

  margin: 22px 0 0;
  padding: 0;

  list-style: none;
}

.article-content li {
  position: relative;

  padding: 10px 12px 10px 28px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.025);

  color: var(--muted);
  font-size: 14px;
}

.article-content li::before {
  content: "✓";

  position: absolute;
  left: 11px;
  top: 9px;

  color: var(--orange);
  font-weight: 900;
}


/* =========================================================
   ENCADRÉ
   ========================================================= */

.article-highlight {
  margin: 55px 0 0;
  padding: 25px 28px;

  border: 1px solid var(--borderO);
  border-left: 3px solid var(--orange);
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 122, 0, 0.09),
      rgba(255, 255, 255, 0.02)
    );
}

.article-highlight span {
  display: block;
  margin-bottom: 7px;

  color: var(--orange);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.article-highlight p {
  margin: 0;

  color: var(--muted);
  line-height: 1.7;
}


/* =========================================================
   ZONE D'INTERVENTION
   ========================================================= */

.article-location {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;

  margin-top: 58px;
  padding: 28px;

  border: 1px solid var(--borderO);
  border-radius: var(--radius);

  background:
    linear-gradient(
      135deg,
      rgba(255, 122, 0, 0.08),
      rgba(0, 0, 0, 0.12)
    );
}

.article-location-icon {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 122, 0, 0.13);

  font-size: 21px;
}

.article-location h2 {
  margin: 0 0 12px;

  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.25;
}

.article-location p {
  margin: 0;

  color: var(--muted);
  line-height: 1.75;
}

.article-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 18px;
}

.article-location-list span {
  padding: 7px 10px;

  border: 1px solid var(--border);
  border-radius: 7px;

  background: rgba(255, 255, 255, 0.025);

  color: var(--muted);

  font-size: 11px;
}


/* =========================================================
   LIENS DANS L'ARTICLE
   ========================================================= */

.article-content a:not(.article-bottom-nav a):not(.article-cta a) {
  color: var(--orange);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}


/* =========================================================
   CTA
   ========================================================= */

.article-cta {
  margin-top: 60px;
  padding: 42px 30px !important;

  border: 1px solid var(--borderO);
  border-radius: var(--radius);

  text-align: center;

  background:
    radial-gradient(
      circle at center top,
      rgba(255, 122, 0, 0.14),
      transparent 60%
    ),
    var(--panel2);
}

.article-cta h2 {
  margin: 0 0 12px !important;

  color: var(--white) !important;
  font-size: clamp(1.7rem, 3vw, 2.3rem) !important;
}

.article-cta h2::before {
  display: none !important;
}

.article-cta p {
  max-width: 650px;
  margin: 0 auto !important;

  color: var(--muted);
  line-height: 1.75;
}

.article-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  margin-top: 24px;
  padding: 0 24px;

  border-radius: 8px;

  background: var(--orange);
  color: var(--white) !important;

  text-decoration: none !important;
  font-weight: 800;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.article-cta a:hover {
  transform: translateY(-2px);
  background: #e96f00;
  box-shadow: 0 12px 30px rgba(255, 122, 0, 0.22);
}


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

.article-faq {
  margin-top: 70px;
  padding-top: 55px !important;

  border-top: 1px solid var(--border);
}

.article-faq h2 {
  margin: 0 0 25px !important;

  color: var(--white) !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
}

.article-faq h2::before {
  display: none !important;
}

.article-faq details {
  border-bottom: 1px solid var(--border);
}

.article-faq details:first-of-type {
  border-top: 1px solid var(--border);
}

.article-faq summary {
  position: relative;

  padding: 20px 38px 20px 0;

  color: var(--white);

  cursor: pointer;

  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;

  list-style: none;
}

.article-faq summary::-webkit-details-marker {
  display: none;
}

.article-faq summary::after {
  content: "+";

  position: absolute;
  right: 3px;
  top: 17px;

  color: var(--orange);

  font-size: 22px;
  font-weight: 400;
}

.article-faq details[open] summary::after {
  content: "−";
}

.article-faq details p {
  max-width: 680px;
  margin: 0;
  padding: 0 38px 20px 0;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.75;
}


/* =========================================================
   NAVIGATION BAS D'ARTICLE
   ========================================================= */

.article-bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;

  margin-top: 55px;
  padding-top: 25px;

  border-top: 1px solid var(--border);
}

.article-bottom-nav a {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.article-bottom-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


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

@media (max-width: 900px) {

  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-toc {
    position: static;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }

  .article-toc-title {
    grid-column: 1 / -1;
  }

  .article-toc a {
    padding: 9px 0;
  }
}


@media (max-width: 700px) {

  .article-container {
    width: min(calc(100% - 28px), 1120px);
  }

  .article-page {
    padding: 48px 0 70px;
  }

  .article-header {
    margin-bottom: 30px;
  }

  .article-header h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .article-lead {
    font-size: 1rem;
  }

  .article-meta {
    align-items: center;
    gap: 8px 13px;
  }

  .article-cover {
    margin-bottom: 35px;
    border-radius: 14px;
  }

  .article-cover img {
    max-height: 390px;
  }

  .article-toc {
    display: flex;
    grid-template-columns: none;
  }

  .article-toc a {
    padding: 8px 0;
  }

  .article-content > p {
    font-size: 0.98rem;
  }

  .article-content section {
    padding-top: 45px;
  }

  .article-content section h2 {
    font-size: 1.65rem;
  }

  .article-content ul {
    grid-template-columns: 1fr;
  }

  .article-location {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .article-cta {
    padding: 35px 20px !important;
  }

  .article-bottom-nav {
    flex-direction: column;
  }
}


@media (max-width: 420px) {

  .article-container {
    width: min(calc(100% - 24px), 1120px);
  }

  .article-breadcrumb {
    font-size: 11px;
  }

  .article-cover figcaption {
    padding: 9px 12px;
  }

  .article-toc {
    padding: 15px;
  }

  .article-highlight {
    padding: 22px 20px;
  }
}


/* =========================================================
   RÉDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .article-cta a {
    transition: none;
  }

  .article-cta a:hover {
    transform: none;
  }
}
