/* =========================================================
   Ktkarena — Centre d'aide / Article (gabarit figé)
   Layout lecture longue, fond crème, corps 720px.
   Charge APRÈS colors_and_type.css + page-base.css.
   ========================================================= */

body.aide-body {
  background: var(--creme-editorial);
  color: var(--fg-on-light);
}

/* Le React mount-point du header est minuscule (77px) — il faut le
   neutraliser dans le flow pour que `position: sticky` sur le header
   prenne le body comme conteneur, sinon le header scroll avec la page. */
body.aide-body > #header-root,
body.aide-body > #footer-root { display: contents; }

/* On force le header sticky à rester lisible sur fond crème
   pendant les ~50 premiers px (avant qu'il prenne sa version "scrolled") */
body.aide-body .ktk-header {
  background: rgba(244, 239, 230, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
/* On force le header sticky à rester lisible sur fond crème
   pendant les ~50 premiers px (avant qu'il prenne sa version "scrolled").
   On utilise !important pour passer outre le style inline transparent. */
body.aide-body .ktk-header {
  background: rgba(244, 239, 230, 0.72) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
          backdrop-filter: blur(16px) saturate(140%) !important;
  border-bottom: 1px solid rgba(10, 10, 11, 0.06) !important;
}
body.aide-body .ktk-header.is-scrolled {
  background: rgba(10, 10, 11, 0.72) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
          backdrop-filter: blur(16px) saturate(140%) !important;
  border-bottom-color: var(--hairline-on-dark) !important;
}
/* En haut de page (pas encore scrollé) : on force les liens du header
   en charbon pour qu'ils restent lisibles sur fond crème — il faut
   !important car Header.jsx applique sa palette via style inline. */
body.aide-body .ktk-header:not(.is-scrolled) a,
body.aide-body .ktk-header:not(.is-scrolled) .wordmark {
  color: var(--charbon-profond) !important;
}
body.aide-body .ktk-header:not(.is-scrolled) .ktk-nav-link {
  color: rgba(10, 10, 11, 0.70) !important;
}
body.aide-body .ktk-header:not(.is-scrolled) .ktk-nav-link:hover,
body.aide-body .ktk-header:not(.is-scrolled) .ktk-nav-link.is-active {
  color: var(--charbon-profond) !important;
}
/* Le bouton primaire (vert KTK) garde son texte charbon — c'est déjà
   le cas par défaut, on le réaffirme pour la robustesse. */
body.aide-body .ktk-header .btn-primary {
  color: var(--on-signature) !important;
}

/* ---------- 1. FIL D'ARIANE ---------- */
.aide-breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.60);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.aide-breadcrumb a {
  color: rgba(10, 10, 11, 0.60);
  text-decoration: none;
  transition: color 180ms ease;
  padding: 5px 0;
}
.aide-breadcrumb a:hover { color: var(--charbon-profond); }
.aide-breadcrumb .sep { color: rgba(10, 10, 11, 0.30); }
.aide-breadcrumb .current {
  color: var(--charbon-profond);
  font-weight: 500;
}

/* ---------- 2. HEADER DE L'ARTICLE ---------- */
.aide-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 0;
  position: relative;
}
.aide-header__inner {
  max-width: 960px;
}
.aide-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f7510;
  font-weight: 600;
}
.aide-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--charbon-profond);
  margin: 14px 0 22px;
  max-width: 20ch;
  text-wrap: balance;
}
.aide-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 11, 0.60);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.aide-meta > span:not(:last-child)::after {
  content: '·';
  margin: 0 12px;
  color: rgba(10, 10, 11, 0.30);
}

/* Share button (top-right of header) */
.aide-share {
  position: absolute;
  top: 40px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 11, 0.05);
  border: 1px solid rgba(10, 10, 11, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.70);
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.aide-share:hover {
  background: var(--charbon-profond);
  color: var(--signature);
  border-color: var(--charbon-profond);
}
.aide-share svg { width: 14px; height: 14px; }

/* ---------- 3. TL;DR CARD ---------- */
.aide-tldr-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 0;
}
.aide-tldr {
  max-width: 960px;
  background: var(--charbon-doux);
  border-radius: var(--radius-card);
  border-left: 4px solid var(--signature);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-card-dark);
}
.aide-tldr__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--signature);
  display: flex; align-items: center; justify-content: center;
  color: var(--charbon-profond);
}
.aide-tldr__icon svg { width: 16px; height: 16px; }
.aide-tldr__body { flex: 1; min-width: 0; }
.aide-tldr__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signature);
  font-weight: 600;
  margin-bottom: 8px;
}
.aide-tldr__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg-on-dark);
  margin: 0;
  max-width: none;
}

/* ---------- 4. CORPS + 4b. TOC sticky ---------- */
.aide-article-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.aide-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: start;
  gap: 64px;
  align-items: start;
}
@media (min-width: 1200px) {
  .aide-article-grid {
    grid-template-columns: minmax(0, 720px) 240px;
    justify-content: space-between;
  }
}

.aide-body-content { max-width: 720px; min-width: 0; }
.aide-body-content h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--charbon-profond);
  margin: 64px 0 24px;
  scroll-margin-top: 100px;
}
.aide-body-content h2:first-child { margin-top: 0; }
.aide-body-content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--charbon-profond);
  margin: 40px 0 16px;
}
.aide-body-content p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(10, 10, 11, 0.90);
  margin: 0 0 20px;
  max-width: none;
}
.aide-body-content strong {
  color: var(--charbon-profond);
  font-weight: 600;
}

/* listes à puces */
.aide-body-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.aide-body-content ul li {
  position: relative;
  padding-left: 24px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(10, 10, 11, 0.90);
  margin-bottom: 12px;
}
.aide-body-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signature);
}

/* listes numérotées */
.aide-body-content ol {
  list-style: none;
  counter-reset: aideol;
  padding: 0;
  margin: 0 0 28px;
}
.aide-body-content ol li {
  counter-increment: aideol;
  position: relative;
  padding-left: 44px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(10, 10, 11, 0.90);
  margin-bottom: 14px;
  min-height: 28px;
}
.aide-body-content ol li::before {
  content: counter(aideol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  color: #4f7510;
  letter-spacing: 0.04em;
}

/* liens dans le corps */
.aide-body-content a {
  color: rgba(10, 10, 11, 0.92);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid var(--signature);
  padding-bottom: 1px;
  transition: color 180ms, border-color 180ms;
}
.aide-body-content a:hover {
  color: #4f7510;
}
.aide-body-content a.external::after {
  content: ' ↗';
  display: inline-block;
  margin-left: 2px;
  font-weight: 400;
  border: 0;
}

/* code inline */
.aide-body-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(10, 10, 11, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--charbon-profond);
}

/* encadré "à savoir" */
.aide-body-content blockquote,
.aide-body-content .aide-callout {
  margin: 28px 0;
  padding: 20px 24px;
  background: rgba(10, 10, 11, 0.04);
  border-left: 3px solid var(--signature);
  border-radius: 4px;
}
.aide-body-content blockquote p,
.aide-body-content .aide-callout p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 8px;
  font-style: italic;
  color: rgba(10, 10, 11, 0.85);
}
.aide-body-content blockquote p:last-child,
.aide-body-content .aide-callout p:last-child { margin: 0; }
.aide-body-content blockquote strong,
.aide-body-content .aide-callout strong { font-style: normal; }

/* tableaux */
.aide-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  border: 1px solid rgba(10, 10, 11, 0.15);
  border-radius: 8px;
  overflow: hidden;
}
.aide-body-content thead {
  background: var(--charbon-profond);
  color: var(--fg-on-dark);
}
.aide-body-content th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.aide-body-content td {
  padding: 12px 16px;
  border-top: 1px solid rgba(10, 10, 11, 0.10);
  color: rgba(10, 10, 11, 0.90);
}
.aide-body-content tbody tr:nth-child(even) { background: rgba(10, 10, 11, 0.025); }

/* ---------- 5. CAPTURE PLACEHOLDER ---------- */
.aide-screenshot {
  margin: 36px 0;
}
.aide-screenshot__frame {
  width: 100%;
  min-height: 280px;
  background: var(--charbon-doux);
  border: 1px dashed rgba(244, 239, 230, 0.22);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  text-align: center;
}
.aide-screenshot__icon { color: rgba(244, 239, 230, 0.42); }
.aide-screenshot__icon svg { width: 32px; height: 32px; }
.aide-screenshot__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: italic;
  color: rgba(244, 239, 230, 0.62);
  max-width: 54ch;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.aide-screenshot__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(10, 10, 11, 0.55);
  margin-top: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .aide-screenshot__frame { min-height: 200px; padding: 24px 16px; }
}

/* ---------- TOC sticky (≥1200px) ---------- */
.aide-toc { display: none; }
@media (min-width: 1200px) {
  .aide-toc {
    display: block;
    position: sticky;
    top: 100px;
    width: 240px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-left: 16px;
    border-left: 1px solid rgba(10, 10, 11, 0.10);
  }
}
.aide-toc__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.50);
  margin-bottom: 14px;
}
.aide-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aide-toc__list li { margin: 0; }
.aide-toc__list a {
  display: block;
  padding: 8px 0 8px 14px;
  margin-left: -17px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(10, 10, 11, 0.60);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.aide-toc__list a:hover { color: var(--charbon-profond); }
.aide-toc__list li.is-active a {
  color: #4f7510;
  border-left-color: var(--signature);
  font-weight: 500;
}

/* ---------- 6. FAQ INTERNE ---------- */
.aide-faq {
  background: var(--creme-editorial);
  padding: 0 32px 80px;
}
.aide-faq__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.aide-faq__header {
  max-width: 720px;
  margin-bottom: 32px;
}
.aide-faq__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4f7510;
  font-weight: 600;
}
.aide-faq__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--charbon-profond);
  margin: 14px 0 0;
}
.aide-faq__list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aide-faq__item {
  background: rgba(10, 10, 11, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: background 180ms ease;
}
.aide-faq__item:hover { background: rgba(10, 10, 11, 0.05); }
.aide-faq__question {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--charbon-profond);
}
.aide-faq__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.aide-faq__icon::before,
.aide-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--charbon-profond);
  border-radius: 1px;
}
.aide-faq__icon::before { width: 14px; height: 2px; top: 9px; left: 3px; }
.aide-faq__icon::after  { width: 2px; height: 14px; top: 3px; left: 9px; transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1); }
.aide-faq__item.open .aide-faq__icon::after { transform: scaleY(0); }

.aide-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.aide-faq__answer > div {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(10, 10, 11, 0.80);
  padding: 0 24px;
}
.aide-faq__answer > div > p {
  margin: 0 0 16px;
  max-width: none;
  opacity: 0;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1) 60ms;
}
.aide-faq__item.open .aide-faq__answer { grid-template-rows: 1fr; }
.aide-faq__item.open .aide-faq__answer > div { padding-top: 4px; padding-bottom: 22px; }
.aide-faq__item.open .aide-faq__answer > div > p { opacity: 1; }

/* ---------- 7. ARTICLES ASSOCIÉS ---------- */
.aide-related {
  background: var(--charbon-profond);
  color: var(--fg-on-dark);
  padding: 80px 32px;
}
.aide-related__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.aide-related__header {
  max-width: 720px;
  margin-bottom: 40px;
}
.aide-related__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signature);
  font-weight: 600;
}
.aide-related__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg-on-dark);
  margin: 14px 0 0;
}
.aide-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .aide-related__grid { grid-template-columns: 1fr; }
}
.aide-related__card {
  background: var(--charbon-doux);
  border: 1px solid rgba(244, 239, 230, 0.10);
  border-radius: var(--radius-card);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms;
  min-height: 220px;
}
.aide-related__card:hover {
  transform: scale(1.02);
  border-color: rgba(212, 255, 63, 0.30);
}
.aide-related__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(212, 255, 63, 0.20);
  display: flex; align-items: center; justify-content: center;
  color: var(--signature);
}
.aide-related__icon svg { width: 18px; height: 18px; }
.aide-related__subcat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signature);
}
.aide-related__cardtitle {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  color: var(--fg-on-dark);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  max-width: none;
}
.aide-related__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--signature);
  margin-top: auto;
}

/* ---------- 8. FEEDBACK + ESCALADE ---------- */
.aide-feedback {
  background: var(--signature);
  color: var(--charbon-profond);
  padding: 80px 32px;
}
@media (max-width: 720px) {
  .aide-feedback {
    padding: 56px 24px;
  }
}
.aide-feedback__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.aide-feedback__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.65);
  font-weight: 600;
}
.aide-feedback__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--charbon-profond);
  margin: 14px 0 28px;
}
.aide-feedback__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.aide-feedback__btn {
  height: 48px;
  padding: 0 28px;
  border-radius: 12px;
  border: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 180ms ease, opacity 180ms ease;
}
.aide-feedback__btn:hover { transform: translateY(-1px); }
.aide-feedback__btn--yes {
  background: var(--charbon-profond);
  color: var(--fg-on-dark);
}
.aide-feedback__btn--no {
  background: var(--creme-editorial);
  color: var(--charbon-profond);
}
.aide-feedback__btn[aria-pressed="true"] {
  outline: 2px solid var(--charbon-profond);
  outline-offset: 3px;
}
.aide-feedback__form {
  display: none;
  margin-top: 24px;
  text-align: left;
}
.aide-feedback__form.is-open { display: block; }
.aide-feedback__form textarea {
  width: 100%;
  min-height: 96px;
  background: var(--creme-editorial);
  border: 1px solid rgba(10, 10, 11, 0.20);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charbon-profond);
  resize: vertical;
  outline: none;
  transition: border-color 180ms ease;
}
.aide-feedback__form textarea:focus { border-color: var(--charbon-profond); }
.aide-feedback__send {
  margin-top: 12px;
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  border: 0;
  background: var(--charbon-profond);
  color: var(--signature);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 180ms ease;
}
.aide-feedback__send:hover { opacity: 0.9; }
.aide-feedback__thanks {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charbon-profond);
}
.aide-feedback__divider {
  height: 1px;
  background: rgba(10, 10, 11, 0.20);
  width: 100%;
  max-width: 320px;
  margin: 32px auto 22px;
}
.aide-feedback__escalate {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--charbon-profond);
}
.aide-feedback__escalate a {
  color: var(--charbon-profond);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  font-weight: 600;
  display: inline-block;
  padding: 4px 0;
}

/* ---------- Toast partage ---------- */
.aide-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 80px);
  background: var(--charbon-profond);
  color: var(--signature);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--hairline-on-dark);
  z-index: 100;
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), opacity 280ms ease;
  pointer-events: none;
}
.aide-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------- Animations d'entrée (subtiles, sans masquer le contenu) ---------- */
/* Pas de fade-out initial : on garde le contenu lisible même si l'iframe
   met l'animation en pause. Seul un léger glissement vertical est animé. */
@keyframes aideSlideUp {
  from { transform: translateY(10px); }
  to   { transform: translateY(0); }
}
.aide-anim-eyebrow { animation: aideSlideUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 0ms both; }
.aide-anim-title   { animation: aideSlideUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both; }
.aide-anim-meta    { animation: aideSlideUp 500ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both; }
.aide-anim-tldr    { animation: aideSlideUp 400ms cubic-bezier(0.16, 1, 0.3, 1) 280ms both; }

@media (prefers-reduced-motion: reduce) {
  .aide-anim-eyebrow, .aide-anim-title, .aide-anim-meta, .aide-anim-tldr {
    animation: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .aide-breadcrumb { padding: 24px 20px 0; font-size: 10px; }
  .aide-header { padding: 24px 20px 0; }
  /* 40px à 720px (identique à avant), réduit progressivement jusqu'à 30px à 320px */
  .aide-title { font-size: clamp(30px, 9.5vw, 40px); }
  .aide-tldr-wrap { padding: 24px 20px 0; }
  .aide-tldr { padding: 20px; flex-direction: column; gap: 14px; }
  .aide-article-wrap { padding: 56px 20px 64px; }
  .aide-faq { padding: 0 20px 64px; }
  .aide-related { padding: 64px 20px; }
  .aide-share { display: none; }
  .aide-body-content h2 { font-size: 26px; margin: 48px 0 18px; }
  .aide-body-content h3 { font-size: 19px; margin: 32px 0 14px; }

  /* Mots / URLs longs : on casse plutôt que déborder */
  .aide-body-content { overflow-wrap: break-word; }

  /* Tableaux : scroll horizontal au lieu de déborder de l'écran */
  .aide-body-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
  }
  .aide-body-content th,
  .aide-body-content td { padding: 10px 12px; }
}

/* ---------- Très petits écrans (320–480px) ---------- */
@media (max-width: 480px) {
  .aide-breadcrumb { padding: 20px 16px 0; }
  .aide-header { padding: 20px 16px 0; }
  .aide-tldr-wrap { padding: 20px 16px 0; }
  .aide-tldr { padding: 18px 16px; }
  .aide-article-wrap { padding: 48px 16px 56px; }
  .aide-body-content ol li { padding-left: 36px; }
  .aide-faq { padding: 0 16px 56px; }
  .aide-faq__question { padding: 16px 18px; font-size: 16px; }
  .aide-faq__answer > div { padding-left: 18px; padding-right: 18px; }
  .aide-related { padding: 56px 16px; }
  .aide-related__card { min-height: 0; }
  .aide-feedback { padding: 48px 20px; }
}
