/*
Theme Name:  Aide-au-top member
Theme URI:   https://nounou-top.fr
Description: Espace membre NounouTop — Dashboard layout (Sidebar + Navbar + Content)
Version:     1.0.0
Author:      NounouTop
Text Domain: aide-top-member
*/

/* ============================================================
   DESIGN SYSTEM TOKENS — NounouTop (source : CLAUDE.md)
   ============================================================ */
:root {
  /* --- Couleurs --- */
  --white:            #ffffff;
  --blue-600-main:    #2da3ed;   /* Couleur principale marque, bordures accentuation */
  --main-800:         #1b4159;   /* Texte titres, texte foncé principal */
  --blue-100:         #eef8fe;   /* Fonds légers, tags, badges */
  --blue-200:         #DDF0FC;   /* Fond tags/badges (DS Figma) */
  --blue-800:         #0e6ba6;   /* Texte sur fond bleu clair, liens, tags */
  --main-600:         #507186;   /* Texte description, meta (DS Figma) */
  --main-300:         #A0B9C9;   /* Bordures legeres, outline boutons sur fond colore */
  --main-700:         #36596F;   /* Texte tab inactif (DS Figma) */
  --grey-800:         #052032;   /* Titres de rubrique (DS Figma) */
  --grey-500:         #5f707c;   /* Texte secondaire, mentions */


  /* --- Variables supplémentaires layout --- */
  --bg-content:       #E5F0F6;   /* Fond zone contenu principale */

  /* --- Variables alertes --- */
  --bs-alert-bg:      rgb(249.8, 249, 226.6);
  --bs-alert-bg-blue: #eff8fe;

  /* --- Typographie --- */
  --font-title:       'Rubik', sans-serif;
  --font-body:        'Inter', sans-serif;

  --fonts-title-h1:   40px;
  --fonts-title-h2:   28px;
  --fonts-title-h3:   22px;
  --fonts-title-h4:   15px;
  --fonts-title-h5:   17px;
  --fonts-text-large: 21px;
  --fonts-text-default: 17px;
  --fonts-text-s:     16px;
  --fonts-text-xs:    14px;

  /* --- Border-radius --- */
  --border-radius-tag:    8px;
  --border-radius-pill:   50px;
  --border-radius-card:   16px;

  /* --- Spacing (échelle 4/8/16/24/40/48/64/80) --- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   16px;
  --space-4:   24px;
  --space-5:   40px;
  --space-6:   48px;
  --space-7:   64px;
  --space-8:   80px;

}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Empêche les médias de dépasser leur conteneur */
img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* Empêche le scroll horizontal causé par des éléments dépassant la largeur du viewport */
  overflow-x: hidden;
  max-width: 100%;
  background-color: var(--bg-content);
  color: var(--main-800);
  font-family: var(--font-body);
  font-size: var(--fonts-text-default);
  font-weight: 500;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--main-800);
  margin: 0;
}

h1 { font-size: var(--fonts-title-h1); }
h2 {
  font-family: var(--font-body);  /* DS: Inter pour h2 */
  font-weight: 700;
  font-size: 1.375rem;            /* DS: 22px */
  color: var(--main-800);
}
h3 { font-size: var(--fonts-title-h3); }
h4 {
  font-size: var(--fonts-title-h4);
  text-transform: uppercase;
  letter-spacing: 1.8px;
}
h5 { font-size: var(--fonts-title-h5); }

a {
  color: var(--blue-800);
  text-decoration: none;
}

a:hover {
  color: var(--blue-600-main);
}

p {
  font-family: var(--font-body);
  font-size: var(--fonts-text-default);
  color: var(--main-800);
}

/* ============================================================
   TAG / BADGE — Composant DS NounouTop
   ============================================================ */
.nt-tag,
.nt-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background-color: var(--blue-100);
  color: var(--blue-800);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  border-radius: var(--border-radius-tag);
  padding: var(--space-1) var(--space-2);
  height: 24px;
}

/* ============================================================
   BOUTON — Style textuel DS NounouTop
   ============================================================ */
.btn-nt,
button.nt {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  color: var(--main-800);
  cursor: pointer;
}


/* ============================================================
   TYPOGRAPHIE RESPONSIVE — Breakpoints DS NounouTop
   ============================================================ */

/* Tablet MD (≤ 992px) */
@media (max-width: 992px) {
  :root {
    --fonts-title-h1: 38px;
    --fonts-title-h2: 31px;
    --fonts-title-h3: 24px;
    --fonts-title-h4: 17px;
    --fonts-title-h5: 19px;
  }
}

/* Mobile HDM (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --fonts-title-h1: 36px;
    --fonts-title-h2: 28px;
    --fonts-title-h3: 23px;
    --fonts-title-h4: 17px;
    --fonts-title-h5: 19px;
  }
}

/* Mobile XS/XXS (≤ 480px) */
@media (max-width: 480px) {
  :root {
    --fonts-title-h1: 33px;
    --fonts-title-h2: 26px;
    --fonts-title-h3: 21px;
    --fonts-title-h4: 17px;
    --fonts-title-h5: 19px;
  }
}


/* ============================================================
   BOUTONS — DS Figma : 3 types × 4 formes × 2 tailles
   Types    : primary, secondary, ghost
   Formes   : label, label+icon-right, icon-left+label, icon-only
   Tailles  : default (40px), small (32px)
   ============================================================ */
.nt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  color: var(--main-800);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.15s ease;
}
.nt-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none;
}
.nt-btn i {
  font-size: 16px;
  flex-shrink: 0;
}

/* --- Primary : fond main-800, texte + icones blancs --- */
.nt-btn--primary {
  background: var(--main-800);
  color: var(--white);
}

/* --- Secondary : outline main-300, texte main-800 --- */
.nt-btn--secondary,
.nt-btn--outline {
  border: 1px solid var(--main-300);
  color: var(--main-800);
}
.nt-btn--secondary:hover,
.nt-btn--outline:hover {
  background: var(--main-800);
  border-color: var(--main-800);
  color: var(--white);
  opacity: 1;
}

/* --- Ghost : pas de fond ni bordure, texte main-800 --- */
.nt-btn--ghost {
  color: var(--main-800);
}
.nt-btn--ghost:hover {
  opacity: 0.6;
}

/* --- Icon-only : carre 40×40 --- */
.nt-btn--icon-only {
  width: 40px;
  padding: 0;
}

/* --- Small : 32px height --- */
.nt-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.nt-btn--sm.nt-btn--icon-only {
  width: 32px;
  padding: 0;
}

/* ============================================================
   STRETCHED LINK — Rend toute la card cliquable
   ============================================================ */
.nt-card {
  position: relative;
}
.nt-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ============================================================
   WORDPRESS NATIVE OVERRIDES
   Remap les composants Gutenberg vers notre DS.
   ============================================================ */

/* --- Boutons Gutenberg → .nt-btn--primary --- */
a.wp-block-button__link,
a.wp-element-button,
.wp-block-button__link,
.wp-element-button,
.wp-block-file a.wp-block-file__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: var(--main-800) !important;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.15s ease;
}
a.wp-block-button__link:hover,
a.wp-block-button__link:focus,
a.wp-block-button__link:visited,
a.wp-element-button:hover,
a.wp-element-button:focus,
a.wp-element-button:visited,
.wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-file a.wp-block-file__button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: var(--white) !important;
  text-decoration: none !important;
  background: var(--main-800) !important;
}

/* Outline variant */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline a.wp-block-button__link {
  background: transparent !important;
  border: 1px solid var(--main-300) !important;
  color: var(--main-800) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline a.wp-block-button__link:hover {
  background: var(--main-800) !important;
  border-color: var(--main-800) !important;
  color: var(--white) !important;
  text-decoration: none !important;
  opacity: 1;
}

/* --- Titres Gutenberg --- */
.wp-block-heading {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--main-800);
}

/* --- Listes --- */
.wp-block-list {
  padding-left: 20px;
  color: var(--main-800);
}
.wp-block-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.wp-block-list li::marker {
  color: var(--blue-600-main);
}

/* --- Citations --- */
.wp-block-quote {
  border-left: 4px solid var(--blue-600-main);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--blue-100);
  border-radius: 0 8px 8px 0;
  font-style: normal;
}
.wp-block-quote p {
  font-family: var(--font-body);
  font-size: var(--fonts-text-default);
  color: var(--main-800);
  margin: 0;
}
.wp-block-quote cite {
  font-family: var(--font-body);
  font-size: var(--fonts-text-xs);
  color: var(--main-600);
  font-style: normal;
  display: block;
  margin-top: 8px;
}

/* --- Séparateur --- */
.wp-block-separator {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 32px 0;
  opacity: 1;
}
.wp-block-separator.is-style-wide {
  border-top-width: 1px;
}
.wp-block-separator.is-style-dots {
  border: none;
  text-align: center;
  color: var(--main-300);
}

/* --- Images --- */
.wp-block-image img {
  border-radius: 8px;
}
.wp-block-image figcaption {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--main-600);
  text-align: center;
  margin-top: 8px;
}

/* --- Tableaux --- */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fonts-text-s);
}
.wp-block-table th {
  background: var(--main-800);
  color: var(--white);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
}
.wp-block-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--main-800);
}
.wp-block-table tr:nth-child(even) td {
  background: #f8fafc;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: transparent;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background: #f8fafc;
}

/* --- Colonnes --- */
.wp-block-columns {
  gap: 24px;
}

/* --- Groupe / Cover --- */
.wp-block-group {
  border-radius: 8px;
}
.wp-block-cover {
  border-radius: 8px;
  overflow: hidden;
}

/* --- Code --- */
.wp-block-code {
  background: #1b4159;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 8px;
  font-size: 14px;
  overflow-x: auto;
}

/* --- Pullquote --- */
.wp-block-pullquote {
  border-top: 4px solid var(--blue-600-main);
  border-bottom: 4px solid var(--blue-600-main);
  padding: 24px 0;
  text-align: center;
}
.wp-block-pullquote p {
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--main-800);
}


/* ============================================================
   PAGE HEADER — Icône + Titre + Sous-titre
   ============================================================ */

.nt-page-header {
  display: flex;
  margin-top: 1rem;
  flex-direction: column;
  gap: 24px;
  margin-bottom: var(--space-4);
}
.nt-page-header__icon {
  display: none;
}
.nt-page-header__text {
  min-width: 0;
}
.nt-page-header__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 40px;
  color: var(--grey-800);
  line-height: 1.1;
  margin: 0;
}
.nt-page-header__subtitle {
  font-family: var(--font-body);
  font-size: var(--fonts-text-default);
  color: var(--grey-500);
  margin: var(--space-2) 0 0;
}

/* ============================================================
   FILTER PILLS — Navigation par catégorie
   ============================================================ */

.nt-subcat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-3) 0 var(--space-4) 0;
}

.nt-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: 40px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--main-800);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nt-filter-pill:hover {
  background: var(--blue-100);
  border-color: var(--blue-200, #DDF0FC);
  color: var(--main-800);
  text-decoration: none;
}
.nt-filter-pill.is-active {
  background: var(--blue-600-main);
  border-color: var(--blue-600-main);
  color: var(--white);
  box-shadow: none;
}

/* ============================================================
   CARD GRID — Grille responsive
   ============================================================ */

.nt-card-grid {
  display: grid;
  gap: 24px;
}
.nt-card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.nt-card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 992px) {
  .nt-card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .nt-card-grid--3,
  .nt-card-grid--2 { grid-template-columns: 1fr; }
}

/* ============================================================
   CARD — Composant carte générique
   ============================================================ */

.nt-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 16px 0 rgba(14, 107, 166, 0.10);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.nt-card:hover {
  box-shadow: 0 6px 24px rgba(14, 107, 166, 0.16);
  transform: translateY(-2px);
}

.nt-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.nt-card__media img,
.nt-card__img {
  width: 100%;
  height: 164px;
  object-fit: cover;
  display: block;
}
.nt-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 164px;
  background: var(--blue-100);
  color: var(--blue-600-main);
  font-size: 32px;
}

.nt-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.nt-card--no-fav .nt-card__body {
  padding-top: 16px;
}

.nt-card__tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  height: 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 14px;
  background: var(--blue-200, #DDF0FC);
  color: var(--blue-800);
}

.nt-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 22.4px;
  color: var(--main-800);
  margin: 0;
}
.nt-card__title a {
  color: inherit;
  text-decoration: none;
}
.nt-card__title a:hover {
  color: var(--blue-600-main);
}

.nt-card__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--main-600, #507186);
  margin: 0;
}

.nt-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--main-600, #507186);
  margin-top: auto;
}
.nt-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nt-card__meta-item i {
  font-size: 14px;
}
.nt-card__meta-sep {
  color: var(--main-600, #507186);
}

.nt-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: var(--main-800);
  color: var(--white);
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.nt-card__cta:hover {
  opacity: 0.88;
  text-decoration: none;
  color: var(--white);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.nt-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 300px;
  padding: var(--space-4);
  background-color: var(--white);
  border-radius: var(--border-radius-card);
  box-shadow: 0 2px 12px rgba(27, 65, 89, 0.06);
}
.nt-empty-state__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--blue-600-main);
}
.nt-empty-state__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: var(--fonts-title-h2);
  color: var(--main-800);
}
.nt-empty-state__text {
  font-family: var(--font-body);
  font-size: var(--fonts-text-default);
  color: var(--grey-500);
  max-width: 480px;
  margin: 0;
}

/* ============================================================
   BADGE CATÉGORIE (blog/articles)
   ============================================================ */

.nt-actu-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  max-width: fit-content;
  border-radius: var(--border-radius-tag);
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
}
.nt-actu-badge--lg {
  font-size: var(--fonts-text-xs);
  padding: 5px 12px;
}

/* ============================================================
   META — Date, auteur, temps de lecture
   ============================================================ */

.nt-actu-meta__date,
.nt-actu-meta__author,
.nt-actu-meta__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: var(--fonts-text-xs);
  color: var(--grey-500);
}
.nt-actu-meta__sep {
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1;
  user-select: none;
}

/* ============================================================
   SINGLE ARTICLE — Layout centré 800px (blog + aide)
   ============================================================ */

.nt-single-actu__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.nt-single-actu__inner .nt-aide-article {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-card);
  padding: var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.nt-single-actu__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.nt-single-actu__meta-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
}

.nt-single-actu__media {
  border-radius: var(--border-radius-card);
  overflow: hidden;
  background-color: var(--blue-100);
}

.nt-single-actu__thumbnail {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.nt-single-actu__video-wrapper {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
}

.nt-single-actu__video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Contenu éditorial — lisibilité optimale */
.nt-single-actu__inner .nt-prose {
  font-family: var(--font-body);
  font-size: var(--fonts-text-default);
  color: var(--main-800);
  line-height: 1.75;
}

/* Articles liés — pleine largeur du nt-main-content */
.nt-single-related {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 2px solid rgba(27, 65, 89, 0.08);
}

@media (max-width: 768px) {
  .nt-single-actu__inner .nt-aide-article {
    padding: var(--space-4) var(--space-3);
  }
}

/* ============================================================
   PAGINATION
   ============================================================ */

.nt-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: var(--space-5);
  font-family: var(--font-body);
}
.nt-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: var(--fonts-text-xs);
  font-weight: 600;
  color: var(--main-800);
  text-decoration: none;
  transition: background 0.15s ease;
}
.nt-pagination .page-numbers:hover {
  background: var(--blue-100);
}
.nt-pagination .page-numbers.current {
  background: var(--blue-600-main);
  color: var(--white);
}
.nt-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ============================================================
   CENTRE D'AIDE
   ============================================================ */

.nt-main-content {
    padding: var(--space-5) var(--space-7);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
  .nt-main-content {
    padding: var(--space-4) var(--space-3);
  }
}

/* ---- Centre d'aide — fond blanc ---- */
.post-type-archive-aide,
.tax-categorie_aide,
.single-aide {
  background-color: #ffffff !important;
}

/* ---- Hero header aide (archive) ---- */
.nt-aide-hero {
  background: var(--blue-100, #EEF8FE);
  padding: 48px 32px;
  border-radius: 20px;
  margin-bottom: 40px;
}

/* Header visiteur : titre + sous-titre centrés */
.nt-aide-hero__visitor {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-4);
  padding: var(--space-4) 0 0;
}
.nt-aide-hero__title {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--main-800, #1b4159);
  line-height: 1.15;
  margin: 0 0 12px;
}
.nt-aide-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--main-600, #507186);
  margin: 0;
}
.nt-aide-hero__visitor + .nt-aide-search--hero {
  margin-left: auto;
  margin-right: auto;
}

/* Hero taxonomy : compact, texte aligné gauche */
.nt-aide-hero--taxonomy {
  padding: 36px 32px !important;
  text-align: left !important;
}
.nt-aide-hero__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--main-600, #507186);
  margin-bottom: 14px;
}
.nt-aide-hero__breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--main-600, #507186);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nt-aide-hero__breadcrumb-link:hover {
  color: var(--main-800, #1b4159);
  text-decoration: none;
}
.nt-aide-hero__breadcrumb-sep {
  font-size: 10px;
  color: var(--main-300, #A0B9C9);
}
.nt-aide-hero__breadcrumb-current {
  color: var(--main-800, #1b4159);
  font-weight: 600;
}
.nt-aide-hero__title--taxonomy {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 36px);
  color: var(--main-800, #1b4159);
  line-height: 1.15;
  margin: 0 0 8px;
}
.nt-aide-hero--taxonomy .nt-aide-hero__subtitle {
  margin-bottom: 24px;
  max-width: 640px;
}
.nt-aide-hero--taxonomy .nt-aide-search--hero {
  margin: 0;
  max-width: 560px;
}

/* ---- Barre de recherche ---- */
.nt-aide-search {
  position: relative;
  max-width: 560px;
  margin: 0 0 var(--space-5);
}

.nt-aide-search--hero {
  margin: 0 auto;
}

.nt-aide-search__icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--grey-400);
  pointer-events: none;
}

.nt-aide-search__input {
  width: 100%;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6);
  border: 1.5px solid var(--grey-200);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fonts-text-default);
  color: var(--main-800);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}

.nt-aide-search__input:focus {
  border-color: var(--blue-600-main);
}

/* ---- Grille de catégories (archive) ---- */
.nt-aide-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.nt-aide-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--grey-150, #e8e8e8);
  border-radius: var(--border-radius-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--main-800);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.nt-aide-cat-card:hover {
  border-color: var(--blue-600-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--main-800);
}

.nt-aide-cat-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nt-aide-cat-card__icon .nt-aide-cat-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nt-aide-cat-card__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: var(--fonts-title-h4);
  margin: 0 0 var(--space-1);
  color: var(--main-800);
}

.nt-aide-cat-card__desc {
  font-size: var(--fonts-text-xs);
  color: var(--grey-500);
  margin: 0 0 var(--space-1);
  line-height: 1.5;
}

.nt-aide-cat-card__count {
  font-size: var(--fonts-text-xs);
  font-weight: 600;
  color: var(--blue-600-main);
}

.nt-aide-cat-card__arrow {
  font-size: 18px;
  color: var(--grey-400);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.nt-aide-cat-card:hover .nt-aide-cat-card__arrow {
  transform: translateX(4px);
  color: var(--blue-600-main, #2DA3ED);
}

/* ---- Titre de section aide ---- */
.nt-aide-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: var(--fonts-title-h3);
  font-weight: 600;
  color: var(--main-800);
  margin: 0 0 var(--space-3);
}

.nt-aide-section__title i {
  color: var(--blue-600-main);
  font-size: 1.1em;
}

/* ---- Bannière Featured (pleine largeur) ---- */
.nt-aide-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-5);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, #eef2ff 0%, #f8faff 100%);
  border: 1.5px solid var(--blue-100, #dbeafe);
  border-radius: var(--border-radius-card);
  text-decoration: none;
  color: var(--main-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nt-aide-banner:hover {
  border-color: var(--blue-600-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  color: var(--main-800);
}

.nt-aide-banner__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
}

.nt-aide-banner__icon .nt-aide-cat-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nt-aide-banner__body {
  flex: 1;
  min-width: 0;
}

.nt-aide-banner__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--fonts-title-h3);
  margin: 0 0 var(--space-1);
  color: var(--main-800);
}

.nt-aide-banner__desc {
  font-size: var(--fonts-text-sm);
  color: var(--grey-600);
  margin: 0;
  line-height: 1.6;
}

.nt-aide-banner__right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nt-aide-banner__count {
  font-size: var(--fonts-text-sm);
  font-weight: 600;
  color: var(--blue-600-main);
  white-space: nowrap;
}

.nt-aide-banner__arrow {
  font-size: 22px;
  color: var(--blue-600-main);
  transition: transform 0.2s ease;
}

.nt-aide-banner:hover .nt-aide-banner__arrow {
  transform: translateX(4px);
}

@media (max-width: 600px) {
  .nt-aide-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .nt-aide-banner__right {
    align-self: flex-end;
  }
}

/* ---- Articles populaires (liste verticale) ---- */
.nt-aide-popular {
  margin-top: var(--space-5);
}

.nt-aide-popular__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-200);
  border-radius: var(--border-radius-card);
  overflow: hidden;
}

.nt-aide-popular__item + .nt-aide-popular__item {
  border-top: 1px solid var(--grey-100);
}

.nt-aide-popular__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  text-decoration: none;
  color: var(--main-800);
  transition: background 0.15s ease;
}

.nt-aide-popular__link:hover {
  background: var(--grey-50);
  text-decoration: none;
  color: var(--main-800);
}

.nt-aide-popular__icon {
  font-size: 18px;
  color: var(--blue-600-main);
  flex-shrink: 0;
}

.nt-aide-popular__body {
  flex: 1;
  min-width: 0;
}

.nt-aide-popular__title {
  display: block;
  font-weight: 500;
  font-size: var(--fonts-text-sm);
  color: var(--main-800);
}

.nt-aide-popular__cat {
  display: block;
  font-size: var(--fonts-text-xs);
  color: var(--grey-500);
  margin-top: 2px;
}

.nt-aide-popular__arrow {
  font-size: 14px;
  color: var(--grey-400);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.nt-aide-popular__link:hover .nt-aide-popular__arrow {
  transform: translateX(3px);
}

/* ---- Liens retour communs ---- */
.nt-aide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fonts-text-xs);
  font-weight: 600;
  color: var(--grey-500);
  text-decoration: none;
  transition: color 0.15s ease;
  margin-bottom: var(--space-3);
}

.nt-aide-back:hover {
  color: var(--blue-600-main);
  text-decoration: none;
}

/* ---- Layout 2 colonnes (taxonomy) ---- */
.nt-aide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  align-items: start;
}

/* ---- Sidebar aide (base — single article : flex 300px) ---- */
.nt-aide-sidebar {
  flex: 0 0 300px;
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: var(--space-4);
  background-color: var(--white);
  border-radius: var(--border-radius-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
/* Taxonomy : la grid gere la largeur, on simplifie */
.nt-aide-layout .nt-aide-sidebar {
  flex: none;
  max-height: none;
  overflow-y: visible;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  top: var(--space-4);
}

.nt-aide-sidebar__heading {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--fonts-text-s);
  color: var(--main-800);
  margin: 0 0 var(--space-3);
  padding: 0 0 var(--space-2);
  border-bottom: 1px solid var(--grey-200);
}

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

.nt-aide-sidebar__link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fonts-text-xs);
  color: var(--grey-600);
  text-decoration: none;
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.5;
}

.nt-aide-sidebar__link:hover {
  background: var(--grey-50);
  color: var(--blue-600-main);
  text-decoration: none;
}

.nt-aide-sidebar__item.is-active > .nt-aide-sidebar__link {
  color: var(--blue-600-main);
  font-weight: 600;
  background: var(--blue-100);
  border-left-color: var(--blue-600-main);
}

/* Sous-liste dans la sidebar (enfants) */
.nt-aide-sidebar__sublist {
  list-style: none;
  padding: 0 0 0 var(--space-3);
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nt-aide-sidebar__link--child {
  font-size: var(--fonts-text-xs);
  padding-left: var(--space-3);
}

/* ---- Contenu principal (taxonomy) ---- */
.nt-aide-content {
  min-width: 0;
}

/* ---- En-tête de page catégorie ---- */
.nt-aide-taxonomy__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: var(--fonts-title-h1);
  color: var(--main-800);
  margin: 0 0 var(--space-2);
}

.nt-aide-taxonomy__desc {
  font-size: var(--fonts-text-default);
  color: var(--grey-500);
  margin: 0 0 var(--space-5);
  line-height: 1.7;
}

.nt-aide-taxonomy__subtitle {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: var(--fonts-title-h4);
  color: var(--main-800);
  margin: var(--space-5) 0 var(--space-3);
}

/* ---- Liste des articles (taxonomy) ---- */
.nt-aide-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nt-aide-article-link {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--border-radius-card);
  text-decoration: none;
  color: var(--main-800);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nt-aide-article-link:hover {
  border-color: var(--blue-600-main);
  background: var(--blue-100);
  text-decoration: none;
  color: var(--main-800);
}

.nt-aide-article-link__icon {
  font-size: 18px;
  color: var(--blue-600-main);
  flex-shrink: 0;
}

.nt-aide-article-link__title {
  font-weight: 600;
  font-size: var(--fonts-text-s);
}

.nt-aide-article-link__excerpt {
  font-size: var(--fonts-text-xs);
  color: var(--grey-500);
}

.nt-aide-article-link__arrow {
  font-size: 16px;
  color: var(--grey-400);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.nt-aide-article-link:hover .nt-aide-article-link__arrow {
  color: var(--blue-600-main, #2DA3ED);
  transform: translateX(4px);
}

/* ---- Résultats de recherche ---- */
.nt-aide-search-results {
  margin-top: var(--space-3);
}

.nt-aide-search-results__count {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--grey-500);
  margin: 0 0 var(--space-3);
}

.nt-aide-article-link__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nt-aide-article-link__cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-400);
}

/* ---- Article single ---- */
.nt-aide-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fonts-text-xs);
  color: var(--grey-400);
  margin-bottom: var(--space-5);
}

.nt-aide-breadcrumb a {
  color: var(--grey-500);
  text-decoration: none;
}

.nt-aide-breadcrumb a:hover {
  color: var(--blue-600-main);
}
.nt-aide-breadcrumb i {
  font-size: 10px;
  color: var(--main-300, #A0B9C9);
}
.nt-aide-breadcrumb [aria-current="page"] {
  color: var(--main-800, #1B4159);
  font-weight: 600;
}

.nt-aide-article {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--border-radius-card);
  padding: var(--space-6) var(--space-7);
}

.nt-aide-article__title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: var(--fonts-title-h1);
  color: var(--main-800);
  margin: 0 0 var(--space-5);
}

.nt-aide-article__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--grey-200);
}

/* ---- Images / médias dans les articles aide ---- */
.nt-aide-article__body .wp-block-image {
  text-align: center;
}

.nt-aide-article__body .wp-block-image img {
  max-width: 300px;
  height: auto;
}

/* ---- Layout 2 colonnes — single article ---- */
.nt-actu-single {
  display: flex;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ---- Sidebar avancée — inner components ---- */
.nt-aide-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.nt-aide-sidebar__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--grey-500, #5f707c);
  text-decoration: none;
  transition: color 0.15s ease;
  margin-bottom: var(--space-1);
}
.nt-aide-sidebar__back:hover {
  color: var(--main-800, #1B4159);
  text-decoration: none;
}
.nt-aide-sidebar__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nt-aide-sidebar__cat-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  color: var(--main-800, #1B4159);
  margin: 0 0 4px;
}
.nt-aide-sidebar__other-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--grey-500, #5f707c);
  margin: 16px 0 4px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}
.nt-aide-sidebar__item {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--main-600, #507186);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nt-aide-sidebar__item:hover {
  background-color: var(--blue-100, #EEF8FE);
  color: var(--main-800, #1B4159);
  text-decoration: none;
}
.nt-aide-sidebar__item.is-active {
  background-color: var(--blue-100, #EEF8FE);
  color: var(--blue-800, #0E6BA6);
  font-weight: 600;
}
.nt-aide-sidebar__cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--main-800, #1B4159);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.nt-aide-sidebar__cat-link:hover {
  background-color: var(--blue-100, #EEF8FE);
  text-decoration: none;
}
.nt-aide-sidebar__cat-link i {
  font-size: 12px;
  color: var(--grey-500, #5f707c);
}

/* ---- Bouton retour mobile (single) ---- */
.nt-actu-back-mobile {
  display: none;
}

/* ---- Contenu principal (single article) ---- */
.nt-guide-content {
  flex: 1;
  min-width: 0;
}

/* ---- Articles liés (single) ---- */
.nt-single-actu__related {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--grey-200, #e5e7eb);
}
.nt-single-actu__related-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: var(--fonts-title-h3);
  color: var(--main-800);
  margin: 0 0 var(--space-4);
}
.nt-single-actu__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3);
}

/* ---- CTA Contact — RDV Maeva ---- */
.nt-aide-contact-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--blue-100, #EEF8FE);
  border: 1px solid #D7EBFC;
  border-radius: 20px;
  padding: 28px 32px;
  margin-top: 40px;
}
.nt-aide-contact-cta__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--blue-800, #0E6BA6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(14, 107, 166, 0.10);
}
.nt-aide-contact-cta__body {
  flex: 1;
  min-width: 0;
}
.nt-aide-contact-cta__title {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--main-800, #1B4159);
  margin: 0 0 6px;
  line-height: 1.3;
}
.nt-aide-contact-cta__desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--main-600, #507186);
  margin: 0;
  line-height: 1.5;
}
.nt-aide-contact-cta__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--main-800, #1B4159);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nt-aide-contact-cta__btn:hover {
  background: var(--blue-800, #0E6BA6);
  color: #FFFFFF;
  text-decoration: none;
}

/* ---- État vide ---- */
.nt-aide-empty {
  font-size: var(--fonts-text-default);
  color: var(--grey-400);
  text-align: center;
  padding: var(--space-6);
}

/* ---- Bouton mobile "Parcourir les thématiques" ---- */
.nt-aide-drawer-btn {
  display: none; /* Visible uniquement sur mobile */
}

/* ---- Bottom Drawer — Catégories aide (mobile) ---- */
.nt-aide-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nt-aide-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nt-aide-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.nt-aide-drawer.is-open {
  transform: translateY(0);
}

.nt-aide-drawer__handle {
  width: 36px;
  height: 4px;
  background: var(--grey-300);
  border-radius: 2px;
  margin: 10px auto 0;
}

.nt-aide-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--grey-200);
}

.nt-aide-drawer__title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--main-800);
}

.nt-aide-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--grey-100);
  border-radius: 50%;
  color: var(--grey-600);
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s ease;
}

.nt-aide-drawer__close:hover {
  background: var(--grey-200);
}

.nt-aide-drawer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex: 1;
}

.nt-aide-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fonts-text-s);
  color: var(--grey-600);
  text-decoration: none;
  border-bottom: 1px solid var(--grey-100);
  transition: background 0.15s ease, color 0.15s ease;
}

.nt-aide-drawer__link:hover {
  background: var(--grey-50);
  color: var(--blue-600-main);
  text-decoration: none;
}

.nt-aide-drawer__item.is-active .nt-aide-drawer__link {
  color: var(--blue-600-main);
  font-weight: 700;
  background: var(--blue-100);
  border-left: 3px solid var(--blue-600-main);
}

.nt-aide-drawer__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-400);
}

.nt-aide-drawer__item.is-active .nt-aide-drawer__count {
  color: var(--blue-600-main);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nt-aide-hero {
    padding: 32px 20px;
    margin-bottom: 28px;
  }

  .nt-aide-layout {
    grid-template-columns: 1fr;
  }

  /* Taxonomy : cacher sidebar, montrer drawer */
  .nt-aide-layout .nt-aide-sidebar {
    display: none;
  }

  /* Single article : sidebar sous le contenu */
  .nt-actu-single {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  .nt-actu-single .nt-aide-sidebar {
    flex: auto;
    width: 100%;
    position: static;
    max-height: none;
    order: 2;
  }
  .nt-actu-single .nt-aide-sidebar__back {
    display: none;
  }
  .nt-actu-single > main {
    order: 1;
  }
  .nt-actu-back-mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-500, #6b7280);
    text-decoration: none;
    margin-bottom: var(--space-3);
  }
  .nt-actu-back-mobile:hover {
    color: var(--main-700);
    text-decoration: underline;
  }

  .nt-aide-contact-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }
  .nt-aide-contact-cta__btn {
    width: 100%;
    justify-content: center;
  }

  .nt-aide-drawer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--fonts-text-xs);
    font-weight: 600;
    color: var(--blue-600-main);
    background: var(--blue-100);
    border: 1px solid var(--blue-200, #bfd4fe);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .nt-aide-drawer-btn:hover {
    background: var(--blue-200, #bfd4fe);
  }

  .nt-aide-categories {
    grid-template-columns: 1fr;
  }

  .nt-aide-article {
    padding: var(--space-4) var(--space-3);
  }

  .nt-aide-article-link {
    grid-template-columns: auto 1fr auto;
  }

  .nt-aide-article-link__excerpt {
    display: none;
  }
}

/* Desktop : masquer drawer + overlay */
@media (min-width: 769px) {
  .nt-aide-drawer,
  .nt-aide-drawer-overlay {
    display: none !important;
  }
}


/* ============================================================
   ADMIN BAR — Masquage mobile (UX dev)
   782px = breakpoint natif où WP passe la barre en 46px.
   CSS pur → fonctionne aussi en resize navigateur desktop.
   ============================================================ */
@media screen and (max-width: 782px) {
  #wpadminbar {
    display: none !important;
  }
  html {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body {
    margin-top: 0 !important;
  }
}

/* ============================================================
   BLOC GUTENBERG — Alertes Métier (.nt-alerte-box)
   ============================================================ */

.nt-alerte-box {
    border-radius: 12px;
    padding: 0;
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
}

.nt-alerte-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.nt-alerte-header i {
    font-size: 1.1rem;
}

.nt-alerte-content {
    padding: 0.75rem 1.25rem 1rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
}

.nt-alerte-content p:last-child {
    margin-bottom: 0;
}

.nt-alerte-content ul,
.nt-alerte-content ol {
    margin: 0;
    padding-left: 1.25rem;
}

/* ── Variantes de couleur ── */

/* Conseil — bleu */
.nt-alerte-box.type-conseil {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.nt-alerte-box.type-conseil .nt-alerte-header {
    background: #dbeafe;
    color: #1e40af;
}

/* Le saviez-vous — violet */
.nt-alerte-box.type-saviez_vous {
    border-color: #ddd6fe;
    background: #f5f3ff;
}
.nt-alerte-box.type-saviez_vous .nt-alerte-header {
    background: #ede9fe;
    color: #5b21b6;
}

/* Pour rappel — gris/ardoise */
.nt-alerte-box.type-rappel {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.nt-alerte-box.type-rappel .nt-alerte-header {
    background: #e2e8f0;
    color: #334155;
}

/* Pour résumer — vert */
.nt-alerte-box.type-resume {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.nt-alerte-box.type-resume .nt-alerte-header {
    background: #dcfce7;
    color: #166534;
}

/* Bon à savoir — ambre/orange */
.nt-alerte-box.type-bon_a_savoir {
    border-color: #fde68a;
    background: #fffbeb;
}
.nt-alerte-box.type-bon_a_savoir .nt-alerte-header {
    background: #fef3c7;
    color: #92400e;
}

/* Attention — rouge */
.nt-alerte-box.type-attention {
    border-color: #fecaca;
    background: #fef2f2;
}
.nt-alerte-box.type-attention .nt-alerte-header {
    background: #fee2e2;
    color: #991b1b;
}

