/* ===== HERO SIMPLE INTRO ===== */

.tv-blog-page {
    padding-top: 50px;
}

.tv-hero-simple {
    text-align: center;
    padding: clamp(3rem, 10vh, 5rem) 1.5rem clamp(2rem, 7vh, 3.5rem);
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.tv-hero-simple__title {
    font-family: "Dahlia", serif;
    font-weight: bold;
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: #3a322a;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tv-hero-simple__subtitle {
    font-family: "Inter Tight", sans-serif;
    font-size: 1rem;
    color: #6b5f55;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto;
}

/* Mobile */
@media (max-width: 767px) {
    .tv-blog-page {
        padding-top: 50px;
    }

    .tv-hero-simple {
        padding-top: calc(60px + 2rem);
        padding-bottom: 2rem;
    }

    .tv-hero-simple__title {
        font-size: 2.4rem;
    }

    .tv-hero-simple__subtitle {
        font-size: 0.95rem;
    }
}

/* ===== BARRE CATÉGORIES ===== */

.tv-blog-cats-wrap {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 0 0 12px;
background: transparent;   
border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow: visible;
}

.tv-blog-toolbar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tv-blog-toolbar__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;   /* recherche prend tout l'espace, catégories s'adaptent */
    align-items: center;
    column-gap: 14px;
    width: 100%;
}

.tv-blog-cats-nav {
  position: relative;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.tv-blog-cats {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.tv-blog-cats--primary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  overflow: visible;
  white-space: nowrap;
  padding-top: 0;
}

.tv-blog-cats--primary > .tv-blog-cats__link:not(.tv-blog-cats__link--more) {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.tv-blog-cats--children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding-left: 0;
}

.tv-blog-cats__link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(32, 28, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #6a5f55;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.88rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.tv-blog-cats__link:hover,
.tv-blog-cats__link:focus-visible {
  background: #f3efe9;
  border-color: rgba(78, 67, 56, 0.14);
  color: #54493f;
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.04);
}

.tv-blog-cats__link:hover .tv-blog-cats__count,
.tv-blog-cats__link:focus-visible .tv-blog-cats__count {
  background: rgba(78, 67, 56, 0.08);
  color: #75695e;
}

.tv-blog-cats__link.is-active {
  background: #d58d2a;
  border-color: #d58d2a;
  color: #fffaf2;
}

.tv-blog-cats__link.is-active:hover,
.tv-blog-cats__link.is-active:focus-visible {
  background: #d58d2a;
  border-color: #d58d2a;
  color: #fffaf2;
  box-shadow: none;
}

.tv-blog-cats__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(32, 28, 24, 0.05);
  color: #8c8177;
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  flex: 0 0 auto;
}

.tv-blog-cats__link.is-active .tv-blog-cats__count {
  background: #fff3df;
  color: #b56d12;
}

.tv-blog-cats-popover-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.tv-blog-cats__link--more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  color: #62574d;
  font-weight: 450;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.tv-blog-cats__link--more:hover,
.tv-blog-cats__link--more:focus-visible {
  background: #f3efe9;
  border-color: rgba(78, 67, 56, 0.14);
  color: #54493f;
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.04);
}

.tv-blog-cats__icon,
.tv-blog-cats__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b6d60;
  flex: 0 0 auto;
}

.tv-blog-cats__chevron {
  margin-left: 1px;
  transition: transform 180ms ease;
}

.tv-blog-cats__link--more[aria-expanded="true"] .tv-blog-cats__chevron {
  transform: rotate(180deg);
}

/* ===== RECHERCHE ===== */

.tv-blog-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 14px 0 40px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(32, 28, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4e4338;
  box-shadow: none;
}

.tv-blog-search:hover,
.tv-blog-search:focus-within {
  background: #f3efe9;
  border-color: rgba(78, 67, 56, 0.14);
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.04);
}

.tv-blog-search__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b6d60;
  transform: translateY(-50%);
  pointer-events: none;
}

.tv-blog-search .tv-blog-search__input,
.tv-blog-search input[type="search"] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: #4e4338;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.9rem;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tv-blog-search .tv-blog-search__input:focus,
.tv-blog-search .tv-blog-search__input:focus-visible,
.tv-blog-search .tv-blog-search__input:active,
.tv-blog-search input[type="search"]:focus,
.tv-blog-search input[type="search"]:focus-visible,
.tv-blog-search input[type="search"]:active {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

.tv-blog-search .tv-blog-search__input::placeholder,
.tv-blog-search input[type="search"]::placeholder {
  color: #8a7d71;
  opacity: 1;
  font-size: 0.84rem;
}

.tv-blog-search .tv-blog-search__input::-webkit-search-decoration,
.tv-blog-search .tv-blog-search__input::-webkit-search-cancel-button,
.tv-blog-search .tv-blog-search__input::-webkit-search-results-button,
.tv-blog-search .tv-blog-search__input::-webkit-search-results-decoration,
.tv-blog-search input[type="search"]::-webkit-search-decoration,
.tv-blog-search input[type="search"]::-webkit-search-cancel-button,
.tv-blog-search input[type="search"]::-webkit-search-results-button,
.tv-blog-search input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.tv-blog-search .tv-blog-search__input::-ms-clear,
.tv-blog-search .tv-blog-search__input::-ms-reveal,
.tv-blog-search input[type="search"]::-ms-clear,
.tv-blog-search input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

/* ===== POPOVER CATÉGORIES — VERSION FINALE ===== */

.tv-blog-cats-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  width: 360px;
  max-width: min(360px, calc(100vw - 40px));
}

.tv-blog-cats-popover__panel {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(32, 28, 24, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 40px rgba(31, 26, 23, 0.08),
    0 4px 12px rgba(31, 26, 23, 0.05);
  backdrop-filter: blur(10px);
}

.tv-blog-cats-popover__scroll {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 109, 96, 0.30) transparent;
}

.tv-blog-cats-popover__scroll::-webkit-scrollbar {
  width: 8px;
}

.tv-blog-cats-popover__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.tv-blog-cats-popover__scroll::-webkit-scrollbar-thumb {
  background: rgba(123, 109, 96, 0.28);
  border-radius: 999px;
}

.tv-blog-cats-popover__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}

.tv-blog-cats-popover__section + .tv-blog-cats-popover__section {
  border-top: 1px solid rgba(32, 28, 24, 0.05);
}

.tv-blog-cats-popover__parent,
.tv-blog-cats-popover__child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  border-radius: 12px;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.tv-blog-cats-popover__parent {
  min-height: 40px;
  padding: 0 12px;
  color: #5f5348;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.tv-blog-cats-popover__parent:hover,
.tv-blog-cats-popover__parent:focus-visible {
  background: #f6f1eb;
  color: #4e4338;
}

.tv-blog-cats-popover__parent.is-active {
  background: rgba(213, 141, 42, 0.14);
  color: #9a5b0f;
}

.tv-blog-cats-popover__sublist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding-left: 18px;
  margin-top: 2px;
}

.tv-blog-cats-popover__child {
  position: relative;
  min-height: 34px;
  padding: 0 12px 0 18px;
  color: #6a5f55;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
}

.tv-blog-cats-popover__child-dot {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(123, 109, 96, 0.55);
  transform: translateY(-50%);
  flex: 0 0 auto;
}

.tv-blog-cats-popover__child:hover,
.tv-blog-cats-popover__child:focus-visible {
  background: #f8f4ef;
  color: #3b342e;
}

.tv-blog-cats-popover__child.is-active {
  background: rgba(213, 141, 42, 0.10);
  color: #9a5b0f;
}

.tv-blog-cats-popover__label {
  min-width: 0;
  white-space: normal;
}

.tv-blog-cats-popover__meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(32, 28, 24, 0.05);
  color: #8c8177;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 auto;
}

.tv-blog-cats-popover__parent.is-active .tv-blog-cats-popover__meta,
.tv-blog-cats-popover__child.is-active .tv-blog-cats-popover__meta {
  background: #fff3df;
  color: #b56d12;
}

/* ===== ARCHIVE / LISTE ===== */

.tv-blog-subcats {
  width: 100%;
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 0 20px;
}

.tv-blog-subcats__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  color: #7b6d60;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.tv-blog-archive {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 64px;
  font-family: "Inter Tight", sans-serif;
}

.tv-blog-pagination {
  margin-top: 32px;
}

.tv-blog-search-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 2px;
}

.tv-blog-search-meta__text {
  margin: 0;
  color: #5f5348;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
}

.tv-blog-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.tv-blog-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(32, 28, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #4e4338;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.tv-blog-load-more:hover,
.tv-blog-load-more:focus-visible {
  background: #f3efe9;
  border-color: rgba(78, 67, 56, 0.14);
  color: #473d34;
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.04);
}

.tv-blog-load-more:disabled {
  opacity: 0.6;
  cursor: wait;
  box-shadow: none;
}

.tv-blog-empty {
  margin: 0;
  color: #5f5348;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.96rem;
  line-height: 1.5;
}

.tv-blog-archive.is-search-loading .tv-posts-grid {
  opacity: 0.68;
  transition: opacity 180ms ease;
}

/* ===== GRILLE ARTICLES ===== */

.tv-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tv-post-card {
  margin: 0;
}

.tv-post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 320px;
  border: 0;
  border-radius: 20px;
  text-decoration: none;
  background: #1f1a17;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(31, 26, 23, 0.08), 0 8px 24px rgba(31, 26, 23, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
   -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    clip-path: inset(0 round 20px);
}

.tv-post-card__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transform: scale(1);
  transition: transform 320ms ease, filter 320ms ease;
}

.tv-post-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background: linear-gradient(to top, rgba(15, 12, 10, 0.88) 0%, rgba(15, 12, 10, 0.68) 34%, rgba(15, 12, 10, 0.14) 72%, rgba(15, 12, 10, 0) 100%);
  border-radius: inherit;
}

.tv-post-card__category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.tv-post-card__category--top {
  align-self: flex-end;
  margin-left: auto;
}

.tv-post-card__content {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  color: #fff;
}

.tv-post-card__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 500;
}

.tv-post-card__date {
  white-space: nowrap;
}

.tv-post-card__title {
  margin: 0;
  color: #fff;
  font-family: "Inter Tight", sans-serif;
  font-size: 1.08rem;
  line-height: 1.15;
}

.tv-post-card__excerpt {
  display: block;
  overflow: hidden;
  max-height: 3.2em;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.95;
  transition: max-height 260ms ease, opacity 180ms ease, transform 180ms ease;
}

.tv-post-card__excerpt p {
  margin: 0;
}

.tv-post-card__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  color: #fff;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 180ms ease, transform 180ms ease;
}

.tv-post-card__media:hover img,
.tv-post-card__media:focus-visible img {
  transform: scale(1.025);
  filter: brightness(0.86);
}

.tv-post-card__media:hover .tv-post-card__excerpt,
.tv-post-card__media:focus-visible .tv-post-card__excerpt {
  max-height: 14em;
  opacity: 1;
}

.tv-post-card__media:hover .tv-post-card__link,
.tv-post-card__media:focus-visible .tv-post-card__link {
  opacity: 1;
  transform: translateY(-1px);
}

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

@media (max-width: 1180px) {
  .tv-blog-toolbar__row {
    grid-template-columns: 320px minmax(0, 1fr);
    column-gap: 10px;
  }

  .tv-blog-cats--primary {
    gap: 8px;
  }

  .tv-blog-cats__link,
  .tv-blog-cats__link--more {
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .tv-blog-cats__count {
    margin-left: 4px;
  }
}

@media (max-width: 1024px) {
  .tv-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tv-blog-toolbar__row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tv-blog-search {
    width: 100%;
  }

  .tv-blog-cats--primary {
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    overflow-x: visible;
    padding-top: 0;
  }

  .tv-blog-cats-popover {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .tv-blog-hero {
    width: 100%;
    margin: 0 0 18px;
    min-height: 300px;
    border-radius: 0;
  }

  .tv-blog-hero__media {
    filter: brightness(0.75);          /* ← plus clair, l'image reste visible */
  }

  .tv-blog-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(14, 12, 10, 0.05) 0%,      /* encore plus transparent en haut */
      rgba(14, 12, 10, 0.35) 70%,
      rgba(14, 12, 10, 0.65) 100%
    );
  }

  .tv-blog-hero__inner {
    min-height: 300px;
    padding: 80px 20px 40px;
    align-items: center;               /* centrage vertical */
    justify-content: center;           /* centrage horizontal */
    text-align: center;                /* texte centré */
  }

  .tv-blog-hero__content {
    max-width: 100%;
    text-align: center;                /* titre et intro centrés */
  }

  .tv-blog-hero__title {
    margin: 0 0 10px;
    font-size: 2.2rem;
    line-height: 1.05;
    text-shadow: 0 2px 14px rgba(0,0,0,0.5);
  }

  .tv-blog-hero__intro {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.45;
    opacity: 0.9;
    margin: 0 auto;                    /* assure le centrage du bloc */
}

  .tv-blog-cats-wrap {
    margin-top: 0;
    padding: 0 0 12px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    overflow: visible;
  }

  .tv-blog-toolbar {
    padding: 0 16px;
  }

  .tv-blog-search {
    height: 36px;
    padding: 0 14px 0 38px;
  }

  .tv-blog-search__icon {
    left: 13px;
  }

  .tv-blog-search .tv-blog-search__input,
  .tv-blog-search input[type="search"] {
    font-size: 0.86rem;
  }

  .tv-blog-cats {
    gap: 8px;
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .tv-blog-cats--primary {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    overflow: visible;
    white-space: nowrap;
    padding-top: 0;
  }

  .tv-blog-cats--primary > *:not(:first-child):not(:last-child) {
    display: none;
  }

  .tv-blog-cats--primary > :first-child,
  .tv-blog-cats--primary > :last-child {
    display: inline-flex;
    margin-left: 0;
  }

  .tv-blog-cats-popover-wrap {
    position: static;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .tv-blog-cats__link,
  .tv-blog-cats__link--more {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.81rem;
    min-width: 0;
  }

  .tv-blog-cats__link--more {
    gap: 5px;
  }

  .tv-blog-cats__count {
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    margin-left: 3px;
    font-size: 0.52rem;
  }

  .tv-blog-cats-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .tv-blog-cats-popover__panel {
    padding: 8px;
    border-radius: 16px;
  }

  .tv-blog-cats-popover__scroll {
    max-height: 52vh;
  }

  .tv-blog-cats-popover__sublist {
    padding-left: 14px;
  }

  .tv-blog-cats-popover__parent {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .tv-blog-cats-popover__child {
    min-height: 32px;
    padding: 0 10px 0 16px;
    font-size: 0.8rem;
  }

  .tv-blog-cats-popover__child-dot {
    left: 7px;
  }

  .tv-blog-cats-popover__meta {
    min-width: 16px;
    height: 16px;
    font-size: 0.54rem;
  }

  .tv-blog-subcats {
    padding: 0 16px;
    margin-top: 10px;
  }

  .tv-blog-subcats__eyebrow {
    margin-bottom: 8px;
    font-size: 0.82rem;
  }

  .tv-blog-archive {
    padding: 16px 16px 56px;
  }

  .tv-blog-search-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }

  .tv-blog-search-meta__text {
    font-size: 0.88rem;
  }

  .tv-blog-load-more {
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.86rem;
  }

  .tv-blog-load-more-wrap {
    margin-top: 22px;
  }

  .tv-posts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tv-post-card__media {
    min-height: 280px;
    border-radius: 18px;
  }

  .tv-post-card__overlay {
    padding: 12px;
  }

  .tv-post-card__content {
    gap: 6px;
  }

  .tv-post-card__title {
    font-size: 1rem;
  }

  .tv-post-card__excerpt {
    max-height: 4.8em;
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 1;
  }

  .tv-post-card__media:hover .tv-post-card__excerpt,
  .tv-post-card__media:focus-visible .tv-post-card__excerpt {
    max-height: 12em;
  }

  .tv-post-card__link {
    font-size: 0.76rem;
  }

  .tv-post-card__category {
    padding: 0.34rem 0.68rem;
    font-size: 0.69rem;
  }

  .tv-post-card__meta {
    gap: 8px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tv-post-card__media,
  .tv-post-card__media img,
  .tv-post-card__excerpt,
  .tv-post-card__link,
  .tv-blog-cats__chevron,
  .tv-blog-load-more,
  .tv-blog-archive.is-search-loading .tv-posts-grid {
    transition: none;
  }
}

[hidden] {
  display: none !important;
}

/* ===== SEARCH BAR — FINAL CLEAN OVERRIDE ===== */

.tv-blog-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 72px 0 40px !important;
  overflow: hidden !important;
  border: 1px solid rgba(32, 28, 24, 0.08) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #4e4338 !important;
  box-shadow: none !important;
  isolation: isolate !important;
}

.tv-blog-search:hover,
.tv-blog-search:focus-within {
  background: #f3efe9 !important;
  border-color: rgba(78, 67, 56, 0.14) !important;
  box-shadow: 0 1px 3px rgba(31, 26, 23, 0.04) !important;
}

.tv-blog-search__icon {
  position: absolute !important;
  top: 50% !important;
  left: 14px !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #7b6d60 !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

.tv-blog-search .tv-blog-search__input,
.tv-blog-search input[type="search"] {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #4e4338 !important;
  font-family: "Inter Tight", sans-serif !important;
  font-size: 0.9rem !important;
  line-height: 1 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.tv-blog-search .tv-blog-search__input:focus,
.tv-blog-search .tv-blog-search__input:focus-visible,
.tv-blog-search input[type="search"]:focus,
.tv-blog-search input[type="search"]:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.tv-blog-search .tv-blog-search__input::placeholder,
.tv-blog-search input[type="search"]::placeholder {
  color: #8a7d71 !important;
  opacity: 1 !important;
  font-size: 0.84rem !important;
}

.tv-blog-search .tv-blog-search__input::-webkit-search-decoration,
.tv-blog-search .tv-blog-search__input::-webkit-search-cancel-button,
.tv-blog-search .tv-blog-search__input::-webkit-search-results-button,
.tv-blog-search .tv-blog-search__input::-webkit-search-results-decoration,
.tv-blog-search input[type="search"]::-webkit-search-decoration,
.tv-blog-search input[type="search"]::-webkit-search-cancel-button,
.tv-blog-search input[type="search"]::-webkit-search-results-button,
.tv-blog-search input[type="search"]::-webkit-search-results-decoration {
  display: none !important;
  -webkit-appearance: none !important;
}

.tv-blog-search .tv-blog-search__input::-ms-clear,
.tv-blog-search .tv-blog-search__input::-ms-reveal,
.tv-blog-search input[type="search"]::-ms-clear,
.tv-blog-search input[type="search"]::-ms-reveal {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.tv-blog-search .tv-blog-search__submit,
.tv-blog-search .tv-blog-search__reset {
  all: unset;
  position: absolute !important;
  top: 50% !important;
  z-index: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  transform: translate3d(0, -50%, 0) !important;
  background: transparent !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.tv-blog-search .tv-blog-search__submit {
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  color: #9b8d82 !important;
}

.tv-blog-search .tv-blog-search__reset {
  right: 38px !important;
  width: 22px !important;
  height: 22px !important;
  color: #b1a49a !important;
}

.tv-blog-search .tv-blog-search__submit-icon,
.tv-blog-search .tv-blog-search__submit svg,
.tv-blog-search .tv-blog-search__reset svg {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
  pointer-events: none !important;
}

.tv-blog-search .tv-blog-search__submit:hover,
.tv-blog-search .tv-blog-search__submit:focus-visible,
.tv-blog-search .tv-blog-search__reset:hover,
.tv-blog-search .tv-blog-search__reset:focus-visible {
  background: rgba(32, 28, 24, 0.04) !important;
  border-color: transparent !important;
}

.tv-blog-search .tv-blog-search__submit:hover,
.tv-blog-search .tv-blog-search__submit:focus-visible {
  color: #5f5348 !important;
}

.tv-blog-search .tv-blog-search__reset:hover,
.tv-blog-search .tv-blog-search__reset:focus-visible {
  color: #6b5f55 !important;
}

.tv-blog-search .tv-blog-search__submit:focus-visible,
.tv-blog-search .tv-blog-search__reset:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 2px rgba(213, 141, 42, 0.18) !important;
}

.tv-blog-search button::-moz-focus-inner {
  border: 0 !important;
  padding: 0 !important;
}

@media (max-width: 767px) {
  .tv-blog-search {
    height: 36px !important;
    padding: 0 66px 0 38px !important;
  }

  .tv-blog-search__icon {
    left: 13px !important;
  }

  .tv-blog-search .tv-blog-search__submit {
    right: 7px !important;
    width: 26px !important;
    height: 26px !important;
  }

  .tv-blog-search .tv-blog-search__reset {
    right: 32px !important;
    width: 20px !important;
    height: 20px !important;
  }
}

.tv-blog-search .tv-blog-search__reset[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .tv-blog-search .tv-blog-search__input,
  .tv-blog-search input[type="search"] {
    font-size: 16px !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.tv-blog-pagination {
  margin: 36px auto 56px;
  display: flex;
  justify-content: center;
}

.tv-blog-pagination__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tv-blog-pagination__item {
  margin: 0;
  padding: 0;
}

.tv-blog-pagination a,
.tv-blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(68, 57, 49, 0.14);
  background: #fffdf9;
  color: #8a7d71;
  font-family: "Inter Tight", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.tv-blog-pagination a:hover {
  background: #f4ede4;
  border-color: rgba(145, 112, 74, 0.26);
  color: #332b25;
}

.tv-blog-pagination a:focus-visible {
  outline: 2px solid rgba(216, 146, 46, 0.32);
  outline-offset: 3px;
  background: #f4ede4;
  border-color: rgba(145, 112, 74, 0.32);
  color: #332b25;
}

.tv-blog-pagination .current {
  background: #d8922e;
  border-color: #d8922e;
  color: #fffaf4;
  font-weight: 500;
}

.tv-blog-pagination .dots {
  min-width: auto;
  height: 40px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: rgba(75, 65, 57, 0.55);
}

.tv-blog-pagination .prev,
.tv-blog-pagination .next {
  padding: 0 15px;
}

@media (max-width: 767px) {
  .tv-blog-pagination {
    margin-top: 28px;
    margin-bottom: 44px;
  }

  .tv-blog-pagination__list {
    gap: 6px;
  }

  .tv-blog-pagination a,
  .tv-blog-pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .tv-blog-pagination .prev,
  .tv-blog-pagination .next {
    padding: 0 12px;
  }
}

/* ===================================================
   Section "Les derniers articles"
   Centrage et séparation visuelle
   =================================================== */

/* Section "Les derniers articles" */
.tv-latest-posts {
    max-width: var(--tv-container-width, 1200px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border: 1px solid #e8e4df;          /* ← bordure légère */
    border-radius: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

/* Titre */
/* En-tête de la section : badge + lien */
.tv-latest-posts__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

/* Badge "Derniers articles" */
.tv-latest-posts__title {
    display: inline-block;
    margin: 0;
    padding: 0.4rem 1.2rem;
    font-family: "Inter Tight", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5a534c;
    background: #f5f2ef;
    border: none;
    border-radius: 999px;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
}

/* Lien "Voir tout" à droite */
.tv-latest-posts__view-all {
    font-family: "Inter Tight", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6a5f55;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.tv-latest-posts__view-all:hover {
    color: #3a322a;
    border-bottom-color: #d8922e;
}

/* Grille */
.tv-latest-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 767px) {
    .tv-latest-posts {
        max-width: calc(100% - 32px);   /* 16px de marge de chaque côté */
        margin-left: auto;
        margin-right: auto;
        padding: 1.8rem 1.2rem;
    }
    .tv-latest-posts__grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   Séparateur entre "Derniers articles" et la suite
   =================================================== */

/* 
   Ajoute un léger fond, une bordure supérieure et
   un padding pour distinguer la zone d’archive.
   Tu peux ajuster selon ton design.
*/
.tv-blog-archive {
    border-top: none;                     /* on supprime la ligne pleine largeur */
    position: relative;
    padding-top: 3rem;
    margin-top: 2rem;
}

/* ===== BANNIÈRE NEWSLETTER ===== */
.tv-newsletter-cta {
    position: relative;
    background: url('https://tunisiavision.com/wp-content/uploads/2026/04/cta-newsletter.webp') center center / cover no-repeat;
    background-color: #4a2c1a;
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    min-height: 360px;
    padding: 3rem;
}

.tv-newsletter-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
    border-radius: inherit;
}

.tv-newsletter-cta__title,
.tv-newsletter-cta__subtitle,
.tv-newsletter-cta__form,
.tv-newsletter-cta__legal {
    position: relative;
    z-index: 1;
}

.tv-newsletter-cta__title {
    font-family: "Inter Tight", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1.2;
    color: #ffffff;
}

.tv-newsletter-cta__subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    margin-top: 0.25rem;
    color: #ffffff;
}

.tv-newsletter-cta__form {
    margin-top: 1.8rem;
}

/* Conteneur du champ */
.tv-newsletter-cta__field {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
    border: 0.5px solid #ffffff;
    border-radius: 50px;
    overflow: hidden;
    background: transparent;
    padding-right: 8px;
}

/* Input */
.tv-newsletter-cta__field input {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1.25rem;
    border: none !important;
    background: transparent !important;
    color: #ffffff !important;
    font-family: "Inter Tight", sans-serif;
    font-size: 0.9rem;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.tv-newsletter-cta__field input::placeholder {
    color: #ffffff !important;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Bouton : cercle parfait */
#tv-cta-btn {
    all: unset;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    margin: 4px 0;
    flex-shrink: 0;
}

/* SVG dans le bouton */
#tv-cta-btn svg {
    display: block;
    width: 18px;
    height: 18px;
}

#tv-cta-btn svg path {
    stroke: #1a1a1a;
    transition: stroke 0.2s;
}

/* Survol : fond transparent, contour blanc, flèche blanche */
#tv-cta-btn:hover {
    background: transparent;
    box-shadow: 0 0 0 0.5px #ffffff;
}

#tv-cta-btn:hover svg path {
    stroke: #ffffff;
}

/* Mention légale */
.tv-newsletter-cta__legal {
    margin-top: 1.2rem;
    font-size: 0.72rem;
    color: #ffffff;
    opacity: 0.8;
    max-width: 400px;
    line-height: 1.5;
}

.tv-newsletter-cta__legal a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tv-newsletter-cta__legal a:hover {
    opacity: 1;
}

/* Mobile */
@media (max-width: 767px) {
    .tv-newsletter-cta {
        max-width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
        min-height: 400px;
        background-position: center top;
        padding: 2.5rem 1.5rem;
    }

    .tv-newsletter-cta__title {
        font-size: 1.8rem;
    }

    .tv-newsletter-cta__subtitle {
        font-size: 0.9rem;
    }

    .tv-newsletter-cta__field {
        max-width: 100%;
    }

    .tv-newsletter-cta__field input {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    #tv-cta-btn {
        width: 36px;
        height: 36px;
    }

    #tv-cta-btn svg {
        width: 18px;
        height: 18px;
    }

    .tv-newsletter-cta__legal {
        max-width: 100%;
        font-size: 0.68rem;
    }
}
/* Fond blanc cassé sur toute la page blog */
body.tv-blog-body {
    background-color: #f9f7f4;
}

@media (min-width: 1025px) {
    .tv-posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
/* Temps de lecture estimée */
.tv-post-card__meta-sep {
    opacity: 0.5;
    margin: 0 0;       /* plus d'espace horizontal */
}
.tv-post-card__reading-time {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}