/* ==========================================================================
   Navigator — styles communs (accueil Navigator, blog, articles,
   carnet d'adresses, webinaires). Chargé après style.css et home.css.
   Valeurs issues du Figma FSK (frames Navigator, Blogs, Nos partenaires,
   Webinaires, Articles).
   ========================================================================== */

:root {
  --nv-navy: #013c7f;
  --nv-gold: #d9ad4d;
  --nv-gold-dark: #c4963a;
  --nv-teal-light: #cbebe8;
  --nv-grey-bg: #f5f6f8;
  --nv-text: #555555;
  --nv-card-shadow: 0 2px 7.5px rgba(0, 0, 0, 0.25);
  --nv-soft-shadow: 0 2px 12.5px rgba(0, 0, 0, 0.08);
  --nv-radius-leaf: 3.125rem;
}

body {
  background: #fff;
}

/* --------------------------------------------------------------------------
   Largeur : 1296 px comme la maquette (72 px de marge à 1440 px),
   header et footer compris pour aligner les bords
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - clamp(2rem, 12vw, 12rem), 80rem);
}

.nv-container--wide {
  width: min(100% - clamp(2rem, 5vw, 5rem), 96rem);
}

/* --------------------------------------------------------------------------
   Titres « feuille » (fond bleu, coins haut-droit et bas-gauche arrondis)
   -------------------------------------------------------------------------- */
.nv-badge {
  display: inline-block;
  max-width: min(100%, 72rem);
  text-wrap: balance;
  margin: 0;
  padding: 1rem 2.25rem;
  border-radius: 0 var(--nv-radius-leaf) 0 var(--nv-radius-leaf);
  background: var(--nv-navy);
  font-size: var(--text-title-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}

/* Titre de section très long : police réduite pour tenir sur une ligne sur grand écran */
.nv-badge--long {
  max-width: 100%;
  font-size: clamp(1rem, 1.75vw - 0.1rem, 1.5rem);
}

/* Titres de page et de section : même taille partout (badge par défaut) */
.nv-badge--lg {
  padding: 1rem 2.25rem;
}

.nv-badge--sm {
  padding: 0.7rem 1.5rem;
  font-size: var(--text-title-sm);
  border-radius: 0 2rem 0 2rem;
}

.nv-heading {
  margin-bottom: calc(var(--space-lg) + 0.5rem);
}

.nv-heading--center {
  text-align: center;
}

.nv-lead {
  max-width: 62rem;
  margin: var(--space-title) auto 0;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--nv-navy);
}

.nv-heading--center .nv-lead {
  text-align: center;
}

.nv-lead--navy {
  color: var(--nv-navy);
}

/* --------------------------------------------------------------------------
   Boutons or (CTA-Or du Figma)
   -------------------------------------------------------------------------- */
.btn--gold {
  padding: 1rem 1.9rem;
  border-radius: 50px;
  background: var(--nv-gold);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--nv-gold-dark);
  color: #fff;
}

.btn--gold-sm {
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: var(--text-xs);
}

.btn--gold-sm img {
  width: 0.55rem;
  height: auto;
}

.nv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Étiquettes (mots-clés)
   -------------------------------------------------------------------------- */
.nv-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nv-tag {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  background: var(--nv-navy);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.nv-tag--gold {
  background: var(--nv-gold);
}

.nv-tag--ghost {
  padding-inline: 0;
  background: transparent;
  color: var(--nv-navy);
}

/* --------------------------------------------------------------------------
   Hero Navigator (photo pleine largeur)
   -------------------------------------------------------------------------- */
.nv-hero-photo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(20rem, 32vw, 28rem);
  overflow: hidden;
  background: var(--nv-navy);
  color: #fff;
}

.nv-hero-photo__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.nv-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 60, 127, 0) 30%, rgba(1, 60, 127, 0.72) 58%, rgba(1, 60, 127, 0.85) 100%);
}

/* Mobile : le texte couvre toute la photo, on assombrit tout le visuel */
@media (max-width: 47.99rem) {
  .nv-hero-photo::after {
    background: linear-gradient(180deg, rgba(1, 60, 127, 0.7) 0%, rgba(1, 60, 127, 0.88) 100%);
  }
}

.nv-hero-photo__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding-block: var(--space-lg);
}

.nv-hero-photo__panel {
  max-width: 35rem;
}

.nv-logo {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 var(--space-md);
}

.nv-logo__picto {
  width: clamp(4rem, 6.5vw, 6rem);
  height: auto;
}

.nv-logo__name {
  display: block;
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--nv-gold);
}

.nv-logo__by {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.nv-hero-photo__tagline {
  margin: 0 0 var(--space-md);
  font-size: var(--text-lead);
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Hero scindé (fond turquoise + photo) : blog, carnet, vidéos
   -------------------------------------------------------------------------- */
.nv-hero-split {
  display: grid;
  background: var(--nv-teal-light);
}

.nv-hero-split__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-title);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.nv-hero-split__text {
  max-width: 32rem;
  margin: 0;
  font-size: var(--text-lead);
  line-height: 1.45;
  color: var(--nv-navy);
}

/* La photo remplit sa colonne sans imposer sa hauteur naturelle */
.nv-hero-split__media {
  position: relative;
  min-height: 11rem;
}

.nv-hero-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .nv-hero-split {
    grid-template-columns: 1fr 1fr;
    min-height: 22.7rem; /* 363 px comme la maquette */
  }

  .nv-hero-split__content {
    padding-block: var(--space-lg);
  }

  .nv-hero-split__media {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Grilles de cartes
   -------------------------------------------------------------------------- */
.nv-grid {
  display: grid;
  gap: var(--space-lg) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .nv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .nv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Carte article
   -------------------------------------------------------------------------- */
.nv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition);
}

.nv-card:hover,
.nv-card:focus-within {
  transform: translateY(-3px);
}

.nv-card__media {
  aspect-ratio: 382 / 215;
  overflow: hidden;
  border-top-right-radius: var(--nv-radius-leaf);
  background: var(--color-surface-alt);
}

.nv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem 1.4rem;
  background: #fff;
  box-shadow: var(--nv-card-shadow);
}

.nv-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--nv-text);
}

.nv-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
}

.nv-card__author img {
  width: 1.3rem;
  height: auto;
}

.nv-card__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--nv-gold);
}

.nv-card__title a {
  color: inherit;
  text-decoration: none;
}

.nv-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.nv-card:focus-within {
  outline: 3px solid var(--color-accent-teal);
  outline-offset: 4px;
}

.nv-card__title a:focus-visible {
  outline: none;
}

.nv-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--nv-navy);
}

.nv-card__soon {
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--nv-text);
}

.nv-card .nv-tags {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Carte vidéo / webinaire
   -------------------------------------------------------------------------- */
.nv-video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nv-video-card__media {
  aspect-ratio: 418 / 215;
  overflow: hidden;
  border-top-right-radius: var(--nv-radius-leaf);
  background: #000;
}

.nv-video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-video-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.25rem;
  padding: 1.6rem 2rem 1.75rem;
  background: #fff;
  box-shadow: var(--nv-card-shadow);
}

.nv-video-card__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--nv-navy);
}

.nv-video-card__excerpt {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--nv-text);
}

.nv-video-card__label {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--nv-navy);
}

.nv-video-card__speakers {
  margin: -0.5rem 0 0;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.6;
  color: var(--nv-navy);
}

.nv-video-card .nv-tags {
  margin-top: auto;
}

/* Carte vidéo cliquable : le lien du titre couvre toute la carte */
.nv-video-card:has(.nv-video-card__title a) {
  position: relative;
}

.nv-video-card__media {
  position: relative;
}

.nv-video-card__title a {
  color: inherit;
  text-decoration: none;
}

.nv-video-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.nv-video-card__title a:hover,
.nv-video-card__title a:focus-visible {
  text-decoration: underline;
}

.nv-video-card:has(.nv-video-card__title a:focus-visible) {
  outline: 3px solid var(--nv-gold-dark);
  outline-offset: 4px;
}

.nv-video-card__title a:focus-visible {
  outline: none;
}

/* Bouton lecture sur la vignette */
.nv-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.6);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nv-video-card__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.1rem;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

.nv-video-card:hover .nv-video-card__play {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .nv-video-card__play {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Placeholders de contenu (textes à fournir)
   -------------------------------------------------------------------------- */
.nv-placeholder {
  padding: 0 0.25rem;
  border-radius: 3px;
  background: #fff4d6;
  font-style: italic;
  color: #8a6a1f;
}

/* --------------------------------------------------------------------------
   Accueil Navigator
   -------------------------------------------------------------------------- */
.nv-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* Deux sections blanches consécutives : un seul espacement, pas deux */
.nv-section:not(.nv-section--teal):not(.nv-section--grey) + .nv-section:not(.nv-section--teal):not(.nv-section--grey) {
  padding-top: 0;
}

.nv-section--teal {
  background: var(--nv-teal-light);
}

.nv-section--grey {
  background: var(--nv-grey-bg);
}

.nv-split {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.nv-split__text p {
  margin: var(--space-md) 0 0;
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--nv-navy);
}

.nv-split__text .nv-badge + p {
  margin-top: var(--space-title);
}

.nv-split__text .btn {
  margin-top: var(--space-lg);
}

.nv-split__media {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nv-split__media img,
.nv-split__media iframe {
  display: block;
  border: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

@media (min-width: 56rem) {
  .nv-split {
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-2xl);
  }
}

.nv-section__title {
  margin: 0;
  font-size: var(--text-title-lg);
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: var(--nv-navy);
}

.nv-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md) clamp(1.5rem, 5vw, 4rem);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.nv-logos img {
  width: auto;
  height: clamp(5rem, 9vw, 8.75rem);
  object-fit: contain;
}

.nv-logos img[src*="justine-henrion"] {
  border-radius: 50%;
  background: #fff;
}

.nv-perks {
  display: grid;
  gap: var(--space-lg) var(--space-md);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.nv-perk {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  height: 100%;
}

.nv-perk__icon {
  width: auto;
  height: 5rem;
}

.nv-perk__text {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 5.75rem;
  margin: 0;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  background: var(--nv-teal-light);
  font-size: var(--text-base);
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
  color: var(--nv-navy);
}

@media (min-width: 48rem) {
  .nv-perks {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Blog : intro + filtres + pagination
   -------------------------------------------------------------------------- */
.nv-blog-intro {
  background: var(--nv-grey-bg);
}

.nv-blog-intro__title {
  margin: 0 0 var(--space-title);
  font-size: var(--text-title-xl);
  font-weight: 600;
  color: var(--nv-navy);
}

.nv-blog-intro__text {
  max-width: 54rem;
  margin: 0 0 var(--space-lg);
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--nv-navy);
}

.nv-filters {
  display: grid;
  gap: var(--space-sm);
}

.nv-filters__field {
  display: flex;
  flex-direction: column;
}

.nv-filters__input,
.nv-filters__select {
  width: 100%;
  min-height: 3.4rem;
  padding: 0 1rem;
  border: 1px solid var(--nv-gold);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: var(--text-base);
  color: var(--nv-navy);
}

.nv-filters__select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' viewBox='0 0 22 12' fill='none'%3E%3Cpath d='M1 1l10 10L21 1' stroke='%23d9ad4d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem auto;
}

.nv-filters__input::placeholder {
  color: var(--nv-gold);
  opacity: 1;
}

.nv-filters__input:focus-visible,
.nv-filters__select:focus-visible {
  outline: 3px solid var(--color-accent-teal);
  outline-offset: 1px;
}

.nv-filters .btn--gold {
  min-height: 3.4rem;
}

@media (min-width: 48rem) {
  .nv-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .nv-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: var(--space-md);
    align-items: end;
  }
}

.nv-results__status {
  margin: 0 0 var(--space-lg);
  color: var(--nv-text);
}

.nv-results__empty {
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--nv-grey-bg);
  text-align: center;
  color: var(--nv-navy);
}

.nv-pagination {
  margin-top: var(--space-xl);
}

.nv-pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nv-pagination__link {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 999px;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  text-decoration: none;
}

.nv-pagination__link:hover,
.nv-pagination__link:focus-visible {
  color: var(--nv-navy);
  text-decoration: underline;
}

.nv-pagination__link[aria-current="page"] {
  background: #555;
  color: #fff;
}

.nv-pagination__link[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Carnet d'adresses
   -------------------------------------------------------------------------- */
.nv-contact-intro {
  max-width: 62rem;
  margin: 0 auto;
  text-align: center;
  color: var(--nv-navy);
}

.nv-contact-intro p {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.5;
}

.nv-contact-intro strong {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--text-title-sm);
}

.nv-category {
  margin-top: var(--space-xl);
}

.nv-category__head {
  margin-bottom: calc(var(--space-lg) + 0.5rem);
  text-align: center;
}

.nv-partners {
  display: grid;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .nv-partners {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 72rem) {
  .nv-partners {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nv-partner {
  display: flex;
  align-items: stretch;
  gap: 1.3rem;
  height: 100%;
  padding: 1.9rem 1.45rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--nv-soft-shadow);
}

.nv-partner__logo {
  flex: 0 0 6.6rem;
  align-self: center;
  width: 6.6rem;
  height: 6.6rem;
  object-fit: contain;
}

.nv-partner__logo--placeholder {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--nv-teal-light);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--nv-navy);
}

.nv-partner__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  gap: 1.25rem;
  min-width: 0;
}

.nv-partner__name {
  margin: 0;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: var(--nv-navy);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}

.nv-partner__text {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.45;
  color: var(--nv-text);
}

.nv-partner__offer {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
  color: var(--nv-navy);
}

.nv-partner .nv-tags {
  align-self: stretch;
  margin-top: auto;
}

@media (max-width: 29.99rem) {
  .nv-partner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nv-partner__logo {
    align-self: flex-start;
  }

  .nv-partner__body {
    align-self: stretch;
  }
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.nv-article-hero {
  display: grid;
  background: var(--nv-navy);
  color: #fff;
}

.nv-article-hero__media {
  position: relative;
  min-height: 11rem;
}

.nv-article-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nv-article-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) clamp(1rem, 5vw, 4rem);
}

.nv-article-hero__category {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nv-gold);
}

.nv-article-hero__title {
  margin: 0;
  font-size: var(--text-title-xl);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.nv-article-hero__chapo {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.nv-article-hero__byline {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nv-article-hero__byline span {
  color: var(--nv-gold);
}

.nv-article-hero__byline time {
  margin-left: 0.75rem;
}

@media (min-width: 48rem) {
  .nv-article-hero {
    grid-template-columns: 0.82fr 1fr;
    min-height: 22.7rem; /* 363 px comme la maquette */
  }

  .nv-article-hero__media {
    min-height: 0;
  }
}

.nv-prose {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
  padding-block: var(--space-xl);
  font-size: var(--text-md);
  line-height: 1.75;
  color: #222;
}

.nv-prose > * + * {
  margin-top: var(--space-md);
}

.nv-prose p {
  margin-bottom: 0;
}

.nv-prose h2 {
  margin: var(--space-xl) 0 0;
  font-size: var(--text-title-md);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--nv-navy);
}

.nv-prose h3 {
  margin: var(--space-lg) 0 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--nv-navy);
}

/* Écart entre un intertitre d'article et le texte qui suit */
.nv-prose :is(h2, h3, h4) + :is(p, ul, ol) {
  margin-top: 1em;
}

.nv-prose ul {
  padding-left: 1.25rem;
}

.nv-prose a {
  color: var(--nv-navy);
}

.nv-prose strong {
  color: var(--nv-navy);
}

.nv-prose .nv-accent {
  font-weight: 700;
  color: var(--nv-gold-dark);
}

/* Figure : image(s) ou logos dans le fil de l'article */
.nv-figure {
  margin-inline: 0;
}

.nv-figure__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}

.nv-figure img {
  max-width: 100%;
  height: auto;
}

.nv-figure figcaption {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--nv-text);
}

/* Annuaire : fiches courtes avec étiquettes (remplace les tableaux-images) */
.nv-directory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  margin: 0;
  padding: 0;
  border-top: 2px solid #111;
  border-left: 2px solid #111;
  list-style: none;
}

.nv-directory__item {
  padding: 1rem 0.9rem 1.1rem;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  background: #fff;
}

.nv-directory__name {
  margin: 0 0 0.5rem;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #111;
}

.nv-directory__note {
  display: block;
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: none;
}

.nv-directory__tags {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
}

.nv-directory__tags li::before {
  content: "– ";
}

.nv-t--france { color: #5eb8b4; }
.nv-t--etranger { color: #1d3f72; }
.nv-t--enfant { color: #8aa52f; }
.nv-t--adulte { color: #e2702b; }
.nv-t--repit { color: #e5a02a; }
.nv-t--individuel { color: #8a2f73; }
.nv-t--groupe { color: #2f9ac0; }
.nv-t--manuel { color: #2f9ac0; }
.nv-t--electrique { color: #8a2f73; }

/* L'annuaire garde ses propres styles à l'intérieur d'un article */
.nv-prose .nv-directory,
.nv-prose .nv-directory__tags {
  padding: 0;
}

.nv-prose .nv-directory__name {
  margin: 0 0 0.5rem;
  font-size: var(--text-base);
  color: #111;
}

/* Bloc « articles les plus lus » */
.nv-popular {
  padding-block: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Messages de chargement (blog en JS)
   -------------------------------------------------------------------------- */
.nv-loading,
.nv-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: var(--space-lg);
  text-align: center;
  color: var(--nv-text);
}

.nv-error {
  color: #9b2c2c;
}

/* --------------------------------------------------------------------------
   Contenus importés des articles Word
   -------------------------------------------------------------------------- */
.nv-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nv-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: var(--text-base);
  line-height: 1.5;
}

.nv-table th,
.nv-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.nv-table thead th {
  background: var(--nv-navy);
  color: #fff;
}

.nv-table thead th strong {
  color: inherit;
}

.nv-table tbody tr:nth-child(even) {
  background: var(--nv-grey-bg);
}

.nv-prose .nv-figure {
  margin-block: var(--space-md);
}

.nv-prose .nv-figure img {
  display: block;
  max-height: 32rem;
  width: auto;
  border-radius: 8px;
}

.nv-prose h4 {
  margin: var(--space-md) 0 0;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--nv-navy);
}

.nv-article-note {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--nv-text);
}

.nv-prose .nv-figure--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-md);
}

.nv-prose .nv-figure--row img {
  max-width: min(100%, 22rem);
  height: auto;
}

.nv-table th[scope="row"] {
  width: 32%;
  font-weight: 700;
  color: var(--nv-navy);
}

.nv-table__section th {
  background: var(--nv-teal-light);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nv-navy);
}

.nv-partner__role {
  margin: -0.5rem 0 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--nv-navy);
}


/* --------------------------------------------------------------------------
   Lisibilité des articles
   -------------------------------------------------------------------------- */
.nv-prose {
  font-size: var(--text-base);
  line-height: 1.75;
}

/* Longueur de ligne confortable pour le texte, médias et tableaux en pleine largeur */
.nv-prose > p,
.nv-prose > ul:not(.nv-cards):not(.nv-directory),
.nv-prose > ol {
  max-width: 72ch;
}

.nv-prose .nv-cards {
  padding: 0;
}

/* Chapô : premier paragraphe mis en avant */
.nv-prose > .nv-toc + p,
.nv-prose > .nv-back + p {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--nv-navy);
}

.nv-prose h2 {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.nv-prose h3 {
  margin-top: var(--space-lg);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--nv-navy);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.nv-prose li + li {
  margin-top: 0.35rem;
}

.nv-prose li::marker {
  color: var(--nv-gold-dark);
}

.nv-article-hero__reading {
  margin: 0;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.nv-back {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
}

.nv-back a {
  color: var(--nv-navy);
  text-decoration: none;
}

.nv-back a:hover,
.nv-back a:focus-visible {
  text-decoration: underline;
}

.nv-back--end {
  margin-top: var(--space-xl) !important;
}

/* Sommaire */
.nv-toc {
  max-width: 40rem;
  padding: var(--space-md) var(--space-md) var(--space-md) 1.5rem;
  border-left: 4px solid var(--nv-gold);
  border-radius: 0 14px 14px 0;
  background: var(--nv-grey-bg);
}

.nv-toc__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nv-navy);
}

.nv-toc__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: var(--text-base);
  line-height: 1.6;
}

.nv-toc__list li::marker {
  font-weight: 700;
  color: var(--nv-gold-dark);
}

.nv-toc__list a {
  color: var(--nv-navy);
  text-decoration: none;
}

.nv-toc__list a:hover,
.nv-toc__list a:focus-visible {
  text-decoration: underline;
}

/* Encadré d'alerte (Figma : fond turquoise, « ! » cerclé) */
.nv-callout {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md) var(--space-lg) var(--space-md) var(--space-md);
  border-radius: 14px;
  background: var(--nv-teal-light);
  color: var(--nv-navy);
}

.nv-callout__icon {
  display: grid;
  flex: 0 0 2.75rem;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--nv-navy);
  border-radius: 50%;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
  color: var(--nv-navy);
}

.nv-callout[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.nv-callout__body > * {
  margin: 0;
}

.nv-callout__body > * + * {
  margin-top: var(--space-sm);
}

/* Cartes à picto (Figma : picto, titre en capitales, liste sur fond turquoise) */
.nv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0 0;
  padding: 0;
  list-style: none;
}

.nv-cards li + li {
  margin-top: 0;
}

.nv-iconcard {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.nv-iconcard__icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 0.5rem 0.75rem;
  color: var(--nv-navy);
}

.nv-prose .nv-iconcard__title {
  margin: 0 0 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--nv-navy);
}

.nv-iconcard__box {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border-radius: 14px;
  background: var(--nv-teal-light);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--nv-navy);
}

.nv-iconcard__box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.nv-iconcard__box p {
  margin: 0;
}

/* Paire de cartes contrastées (ex. signaux apaisants / excitateurs) */
.nv-duo {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 48rem) {
  .nv-duo {
    grid-template-columns: 1fr 1fr;
  }
}

.nv-duo__card {
  padding: var(--space-md) var(--space-lg);
  border-radius: 14px;
  background: var(--nv-teal-light);
  color: var(--nv-navy);
}

.nv-duo__card--alt {
  background: #fbf1dc;
}

.nv-prose .nv-duo__title {
  margin: 0 0 0.5rem;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nv-duo__card p {
  margin: 0;
}

.nv-duo__card p + p {
  margin-top: 0.6rem;
}

/* Lien ressource avec aperçu */
.nv-resource {
  display: grid;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

@media (min-width: 48rem) {
  .nv-resource:has(img) {
    grid-template-columns: 1fr 16rem;
  }
}

.nv-resource p {
  margin: 0;
}

.nv-resource p + p {
  margin-top: var(--space-xs);
}

.nv-resource img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--nv-soft-shadow);
}

/* Étiquette de sous-partie (Figma : pastille bleue) */
.nv-prose .nv-pill {
  display: inline-block;
  max-width: none;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  background: var(--nv-navy);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: #fff;
}

/* Galerie compacte (vignettes de produits) */
.nv-prose .nv-figure--compact img {
  width: auto;
  max-height: 9rem;
}

.nv-prose .nv-figure--row figcaption {
  flex-basis: 100%;
}

/* Encadré d'information (« ? ») */
.nv-callout--info .nv-callout__icon {
  border-color: var(--nv-gold-dark);
  color: var(--nv-gold-dark);
}

/* Lien externe mis en avant (paragraphe réduit à une URL) */
.nv-link-out {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--nv-navy);
}

.nv-link-out::after {
  content: "↗";
  font-size: 0.9em;
}

.nv-partner__site {
  margin-top: -0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--nv-navy);
}

.nv-partner__site::after {
  content: " ↗";
}

/* Bloc contact Navigator en fin de carnet d'adresses */
.nv-contact-cta {
  max-width: 44rem;
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--nv-teal-light);
  color: var(--nv-navy);
  text-align: center;
}

.nv-contact-cta__text {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-base);
  line-height: 1.5;
}

.nv-contact-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 100%;
}

.nv-contact-cta__icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

.nv-contact-cta__email {
  text-transform: none;
  white-space: nowrap;
}

.nv-contact-cta .btn {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Fiches organismes dans les articles (logo + description)
   -------------------------------------------------------------------------- */
.nv-prose .nv-orgs {
  display: grid;
  gap: var(--space-sm);
  max-width: none;
  margin: var(--space-md) 0;
  padding: 0;
  list-style: none;
}

.nv-prose .nv-orgs > li + li {
  margin-top: 0;
}

.nv-org {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.nv-org__logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 5rem;
  object-fit: contain;
}

.nv-org__body > * {
  margin: 0;
}

.nv-org__body > * + * {
  margin-top: 0.35rem;
}

.nv-org__name {
  font-weight: 700;
  color: var(--nv-navy);
}

@media (min-width: 48rem) {
  .nv-org {
    grid-template-columns: 9rem 1fr;
  }
}

/* Grandes vignettes d'article (ex. « Mythes / Faits ») : image principale large + vignette annexe */
.nv-prose .nv-figure--vignettes {
  display: grid;
  gap: var(--space-md);
  align-items: center;
}

.nv-prose .nv-figure--vignettes img {
  width: 100%;
  max-height: none;
}

.nv-prose .nv-figure--vignettes img + img {
  justify-self: center;
  max-width: 16rem;
}

.nv-prose .nv-figure--vignettes figcaption {
  grid-column: 1 / -1;
}

@media (min-width: 48rem) {
  .nv-prose .nv-figure--vignettes {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }

  .nv-prose .nv-figure--vignettes img + img {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Lightbox des images d'article (voir js/navigator.js)
   -------------------------------------------------------------------------- */
.nv-zoomable {
  cursor: zoom-in;
  transition: opacity var(--transition);
}

.nv-zoomable:hover {
  opacity: 0.9;
}

.nv-zoomable:focus-visible {
  outline: 3px solid var(--color-accent-teal);
  outline-offset: 3px;
}

.nv-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 0;
  background: transparent;
  overflow: auto;
}

.nv-lightbox[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.nv-lightbox::backdrop {
  background: rgba(1, 25, 55, 0.88);
}

/* L'image remplit l'écran (en gardant ses proportions), même si elle est plus petite */
.nv-lightbox__img {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: calc(100vh - 6rem);
  object-fit: contain;
}

/* Mobile : image à sa taille réelle, on fait défiler pour la parcourir */
@media (max-width: 47.99rem) {
  .nv-lightbox[open] {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 4.5rem;
  }

  .nv-lightbox__img {
    width: auto;
    height: auto;
    max-width: none;
  }

  .nv-lightbox__caption {
    position: sticky;
    left: 0;
    max-width: calc(100vw - 2rem);
    text-align: left;
  }
}

.nv-lightbox__caption {
  max-width: 60rem;
  margin: 0;
  font-size: var(--text-sm);
  text-align: center;
  color: #fff;
}

.nv-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 2rem;
  line-height: 1;
  color: var(--nv-navy);
  cursor: pointer;
}

.nv-lightbox__close:focus-visible {
  outline: 3px solid var(--color-accent-teal);
  outline-offset: 2px;
}
