/*
Theme Name: Core
Theme URI: https://domain.com
Author: Jérémie Helme
Author URI: https://domain2.com
Description: Propulse Template du 01 novembre 2022
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: no-tag
*/

/* ============================================================
   Styles Core V2 (ex-thème enfant)
   ============================================================ */
*/

/* diminuer la taille des disclaimers */
.mentions {
  font-size: 0.9em !important;
}

/* diminuer la taille de l'iframe video sur desktop */
@media screen and (min-width: 800px) {
  .video-iframe {
    max-width: 70%;
  }
}

/* style des listes : patch temporaire, listes numerotees à fixer*/
.text li {
  list-style: disc;
  margin: 0% 0% 0% 4%;
}

.article-content ul {
  margin-left: 2%;
}

/* fix logo*/
#logo img {
  max-height: 70px;
}

@media only screen and (max-width: 800px) {
  #logo img {
    max-height: 40px;
  }
}

/* image en avant premium content */
img.cover {
  border-radius: 10px;
  box-shadow: rgb(0 0 0 / 5%) 0px 6px 24px 0px, rgb(0 0 0 / 8%) 0px 0px 0px 1px;
  aspect-ratio: 2/1;
  object-fit: cover;
  max-width: 500px;
}

/*forminator*/
.forminator-button-next {
  background-color: unset;
  color: var(--title-color);
  border: none;
  padding: 0;
  font-size: 18px;
  text-decoration: underline;
  text-align: left;
  margin-top: 2%;
}

.forminator-button-next:hover {
  border: none;
}

button.forminator-button.forminator-button-back {
  display: none;
}

select {
  border: solid 2px grey;
  padding: 5px;
  margin: 10px;
  cursor: pointer;
}

select:hover {
  background: #f2f2f2;
}

label.forminator-label {
  font-size: 18px;
  font-weight: 500;
}

.forminator-custom-form {
  margin-top: 20px;
}

.forminator-response-message {
  font-size: 18px;
  color: var(--button-color);
}

.forminator-field.forminator-merge-tags {
  padding: 5%;
  box-shadow: rgb(0 0 0 / 16%) 0px 1px 4px;
}

.forminator-email--field {
  display: block;
  border: 1px solid var(--button-color);
  border-radius: 5px;
  padding: 1%;
  min-width: 100%;
  margin: 2% 0;
}

.forminator-row textarea {
  display: block;
  border: 1px solid var(--button-color);
  border-radius: 5px;
  padding: 1%;
  min-width: 100%;
  margin: 2% 0;
}

.forminator-response-message.forminator-show.forminator-success {
  padding: 2%;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  margin-bottom: 1%;
  margin-top: 1%;
}

.forminator-error-message {
  color: #bf0000;
  display: block;
}

.premium-content img.w-full.h-full {
  object-fit: contain;
}

.thumbnail {
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

h3 {
  padding-bottom: 2%;
}

nav ul li a:visited {
  color: inherit;
}

nav ul li a:active {
  color: var(--button-color);
}

.grise {
  background: #ECECEC;
  padding: 3% !important;
  font-size: 40px;
  line-height: 1em;
  border-radius: 15px;
}

.premium-small.premium-content .premium-title {
  font-size: 18px !important;
  line-height: 22px !important;
  color: #3e3e3e !important;
  font-weight: 700;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/*faq*/
#ui-datepicker-div {
  background: white !important;
}


/*fix list*/
ul li {
  list-style-type: initial;
  margin-left: 25px;
  padding-bottom: 10px
}

ol li {
  list-style-type: decimal;
  margin-left: 25px;
  padding-bottom: 10px
}

ol a {
  font-size: inherit;
}

/*menu*/

nav ul li {
  list-style: none;
  margin: revert;
  padding: revert;
}

li.current-menu-item>a,
li.current-menu-item>a:link,
li.current-menu-item>a:visited {
  color: var(--button-color);
}

@media only screen and (max-width: 600px) {
  .popup-content {
    padding: 0;
  }

  .item-content.px-2\.5.mb-5 {
    padding: 0;
  }
}

@media only screen and (min-width: 450px) {
  iframe#Proform-links {
    min-width: 450px;
    min-height: 600px;
  }
}

@media only screen and (max-width: 450px) {
  iframe#Proform-links {
    min-height: 740px;
  }
}

.wp-block-separator {
  color: rgb(var(--secondary-color-tw));
  border: 1px solid;
  margin-bottom: 20px;
  max-width: 40%;
}


/*tailwind add*/
.text-center {
  text-align: center;
}

/*Classe pour bouton en avant header*/
@media screen and (min-width: 800px) {
  .CTA-link {
    background: white;
    padding: 13px;
    border-radius: 10px;
    color: black !important;
  }
}

.title-icon {
  width: 50px;
  fill: var(--title-color);
}

.error-content {
  max-width: 900px;
  margin: auto;
}

a.custom.button:hover {
  color: var(--button-color);
}

.bulle {
  margin-bottom: 20px;
}

iframe#Proform-subscription {
  min-height: 550px;
}

@media (max-width:600px) {
  iframe#Proform-subscription {
    min-height: 800px;
  }
}

.ombre {
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  padding: 3%;
  border-radius: 10px;
  margin: 5%;
}

.parent .premium-list.grid.mt-5 {
  padding-bottom: 10px;
}

@media screen and (min-width: 600px) {
  .border-t.flex-grow {
    border-top: 1px solid #d1d1d1;
    margin-right: 20px;
  }
}

.thumbnail.premium-card {
  position: relative !important;
}

.espace-perso a,
.espace-perso a:hover {
  margin-left: 15px;
  color: white !important;
  background: var(--button-color);
  padding: 10px;
  border-radius: 10px;
}

.category-image {
  height: 200px;
  display: block;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* ============================
   Template Formation
   ============================ */

.formation-wrapper {
  display: flex;
  min-height: calc(100vh - 200px);
  background: #f9fafb;
  position: relative;
  border-top: 1px solid #e5e7eb;
}

/* --- Formation header (titre + progression) --- */
.formation-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.formation-header-title {
  flex: 0 0 25%;
  margin: 0 !important;
}

.formation-header-progress {
  flex: 0 0 75%;
  max-width: 75%;
}

/* --- Overlay mobile --- */
.formation-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.formation-overlay.is-visible {
  display: block;
}

/* --- Sidebar --- */
.formation-sidebar {
  width: 320px;
  min-width: 320px;
  background: white;
  border-right: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
}

.formation-sidebar-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.formation-sidebar-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  color: #6b7280;
}

.formation-sidebar-close:hover {
  background: #f3f4f6;
}

/* --- Sidebar header --- */
.formation-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.formation-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.formation-progress-label {
  font-size: 13px;
  color: #6b7280;
}

.formation-progress-count {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.formation-progress-bar-wrapper {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.formation-progress-bar {
  height: 100%;
  background: var(--button-color, #3b82f6);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* --- Search --- */
.formation-search-wrapper {
  position: relative;
  margin-top: 16px;
}

.formation-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.formation-sidebar .formation-search {
  width: 100%;
  padding: 10px 12px 10px 44px !important;
  font-size: 14px;
  background: white;
  outline: none;
  box-sizing: border-box;
}

.formation-search:focus {
  border-color: var(--button-color, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* --- Modules --- */
.formation-modules {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.formation-module {
  margin-bottom: 16px;
}

.formation-module-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-align: left;
}

.formation-module-toggle:hover {
  background: #f3f4f6;
}

.formation-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.formation-module-title {
  flex: 1;
}

/* --- Lessons --- */
.formation-lessons {
  margin-top: 4px;
}

.formation-lesson {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.formation-lesson:hover:not([disabled]) {
  background: #f3f4f6;
}

.formation-lesson.is-active {
  background: #eff6ff;
  border-left: 4px solid var(--button-color, #3b82f6);
}

.formation-lesson[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.formation-lesson-status {
  margin-top: 2px;
  flex-shrink: 0;
}

.formation-lesson-info {
  flex: 1;
  min-width: 0;
}

.formation-lesson-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.formation-lesson-type-icon {
  flex-shrink: 0;
  color: #6b7280;
}

.formation-lesson-title {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
}

.formation-lesson.is-active .formation-lesson-title {
  color: var(--button-color, #1d4ed8);
}

.formation-lesson-unlock {
  display: block;
  font-size: 12px;
  color: var(--title-color);
  margin-top: 2px;
}

.formation-lesson-progression {
  color: #9ca3af;
}

/* --- Colonne droite (contenu + nav) --- */
.formation-main-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* --- Contenu principal --- */
.formation-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.formation-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
}

.formation-welcome h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.formation-welcome p {
  font-size: 16px;
  color: #6b7280;
}

.formation-lesson-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.formation-lesson-container {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px;
  width: 100%;
  box-sizing: border-box;
}

.formation-lesson-main-title {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
  line-height: 1.3;
}

/* --- Locked message --- */
.formation-locked-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  margin-bottom: 24px;
}

.formation-locked-msg svg {
  color: var(--title-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.formation-locked-title {
  font-weight: 600;
  color: #9a3412;
  margin-bottom: 4px;
}

.formation-locked-text {
  font-size: 14px;
  color: #c2410c;
}

/* --- Video --- */
.formation-video-wrapper {
  margin-bottom: 32px;
}

.formation-video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #111827;
  border: none;
}

/* --- Article --- */
.formation-article {
  margin-bottom: 32px;
  line-height: 1.7;
}

/* --- Navigation --- */
.formation-nav {
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.formation-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.formation-nav-btn:hover:not([disabled]) {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.formation-nav-complete {
  background: var(--button-color, #3b82f6);
  color: white;
  border-color: var(--button-color, #3b82f6);
}

.formation-nav-complete:hover:not([disabled]) {
  background: transparent !important;
  border-color: var(--button-color, #3b82f6) !important;
  color: var(--button-color, #3b82f6) !important;
}

.formation-nav-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.formation-empty {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  padding: 32px 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .formation-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .formation-header-title {
    flex: none;
    width: 100%;
  }

  .formation-header-progress {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .formation-wrapper {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 80px);
  }

  .formation-header-progress {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .formation-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    min-height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .formation-sidebar.is-open {
    transform: translateX(0);
  }

  .formation-sidebar-sticky {
    position: static;
    height: auto;
    overflow-y: visible;
  }

  .formation-sidebar-close {
    display: block;
  }

  .formation-content {
    min-height: calc(100vh - 140px);
  }

  .formation-lesson-container {
    padding: 20px 16px;
  }

  .formation-lesson-main-title {
    font-size: 22px;
  }

  .formation-nav {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .formation-nav-btn {
    padding: 10px 12px;
    font-size: 13px;
    gap: 6px;
    justify-content: center;
  }

  .formation-nav-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ── Revue PDF viewer (dFlip popup) ── */
.revue-pdf-download { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ──────────────────────────────────────────────────────────────────────────
   REVUE CARD — Editorial magazine kiosk
   ────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Mono:wght@400;500&display=swap');

:root {
    --revue-accent: var(--button-color, #b8312f);
    --revue-ink: #1a1612;
    --revue-paper: #f6f1e8;
    --revue-mute: #6b6259;
}

/* — Revue grid: max 4 columns — */
.premium-list:has(.revue-card) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 36px 16px !important;
}
@media (min-width: 640px) {
    .premium-list:has(.revue-card) {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px 20px !important;
    }
}
@media (min-width: 1024px) {
    .premium-list:has(.revue-card) {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 48px 24px !important;
    }
}
/* Reset the legacy flex-basis sizing inherited from .premium-list .premium-small */
.premium-list:has(.revue-card) .premium-small {
    flex-basis: auto !important;
    min-height: 0 !important;
    width: 100% !important;
}

/* — outer card link — */
.revue-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    perspective: 1100px;
    isolation: isolate;
    transform: translateZ(0);
    opacity: 0;
    animation: revue-card-in .7s cubic-bezier(.16,.84,.32,1) forwards;
}
.revue-card:nth-child(1)  { animation-delay: .04s }
.revue-card:nth-child(2)  { animation-delay: .08s }
.revue-card:nth-child(3)  { animation-delay: .12s }
.revue-card:nth-child(4)  { animation-delay: .16s }
.revue-card:nth-child(5)  { animation-delay: .20s }
.revue-card:nth-child(6)  { animation-delay: .24s }
.revue-card:nth-child(7)  { animation-delay: .28s }
.revue-card:nth-child(8)  { animation-delay: .32s }
.revue-card:nth-child(n+9) { animation-delay: .36s }

@keyframes revue-card-in {
    from { opacity: 0; transform: translateY(18px) }
    to   { opacity: 1; transform: translateY(0) }
}

/* — cover (PDF first-page or placeholder) — */
.revue-card__cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #d8cfc1;
    border-radius: 2px 6px 6px 2px;
    overflow: hidden;
    transform-origin: 8% 50%;
    transition: transform .55s cubic-bezier(.2,.8,.2,1),
                box-shadow .55s cubic-bezier(.2,.8,.2,1);
    box-shadow:
        0 1px 0 rgba(0,0,0,.05),
        0 6px 14px -6px rgba(20,15,10,.18),
        0 22px 40px -22px rgba(20,15,10,.25);
}

.revue-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: saturate(1.02);
    transition: transform .9s cubic-bezier(.2,.8,.2,1);
}

/* spine — left edge "binding" of a magazine */
.revue-card__spine {
    position: absolute;
    inset: 0 auto 0 0;
    width: 12px;
    background:
        linear-gradient(90deg,
            rgba(0,0,0,.32) 0%,
            rgba(0,0,0,.18) 18%,
            rgba(0,0,0,0)   55%,
            rgba(255,255,255,.08) 80%,
            rgba(0,0,0,.06) 100%);
    pointer-events: none;
    z-index: 2;
}

/* paper sheen — diagonal highlight that sweeps on hover */
.revue-card__sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255,.32) 48%,
        rgba(255,255,255,0) 62%);
    transform: translateX(-110%);
    transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 3;
}

/* drop-shadow under the card that lifts on hover */
.revue-card__shadow {
    position: absolute;
    left: 6%; right: 6%;
    bottom: -14px;
    height: 24px;
    background: radial-gradient(ellipse at center,
        rgba(20,15,10,.35) 0%,
        rgba(20,15,10,0) 70%);
    filter: blur(6px);
    opacity: .55;
    transition: opacity .55s ease, transform .55s ease;
    z-index: -1;
}

/* number badge — vintage kiosk sticker */
.revue-card__badge {
    position: absolute;
    top: 12px;
    right: -8px;
    z-index: 4;
    padding: 6px 12px 7px 14px;
    background: var(--revue-accent);
    color: #fff;
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 2px 6px -1px rgba(20,15,10,.35);
    transform: translateZ(0);
}
.revue-card__badge::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 0;
    height: 0;
    border-left: 8px solid color-mix(in srgb, var(--revue-accent) 70%, black);
    border-bottom: 6px solid transparent;
}
.revue-card__badge-prefix {
    opacity: .7;
    margin-right: 1px;
    font-size: .65rem;
}

/* lock badge — discreet, top-left */
.revue-card__lock {
    position: absolute;
    top: 10px;
    left: 18px;
    z-index: 4;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20,15,10,.7);
    color: #fff;
    border-radius: 50%;
    backdrop-filter: blur(6px);
}

/* — placeholder (no image, no PDF preview) — */
.revue-card__placeholder {
    position: absolute;
    inset: 0;
    padding: 22px 22px 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 25% 18%, rgba(255,255,255,.10) 0, transparent 55%),
        linear-gradient(165deg, var(--revue-accent) 0%, color-mix(in srgb, var(--revue-accent) 75%, black) 100%);
    color: #fff;
}
.revue-card__placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: .35;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.revue-card__placeholder-num {
    font-family: 'DM Mono', monospace;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .12em;
    color: rgba(255,255,255,.7);
    align-self: flex-start;
}
.revue-card__placeholder-month {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-size: .9rem;
    font-weight: 400;
    color: rgba(255,255,255,.8);
    letter-spacing: .02em;
}
.revue-card__placeholder-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* — meta block under cover — */
.revue-card__meta {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 2px;
}
.revue-card__date {
    font-family: 'DM Mono', monospace;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--revue-mute);
}
.revue-card__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.005em;
    color: var(--revue-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s ease;
}

/* — hover: lift + tilt + sheen sweep — */
.revue-card:hover .revue-card__cover {
    transform: rotateY(-6deg) translateY(-6px) scale(1.015);
    box-shadow:
        0 1px 0 rgba(0,0,0,.05),
        0 14px 30px -10px rgba(20,15,10,.28),
        0 38px 60px -28px rgba(20,15,10,.4);
}
.revue-card:hover .revue-card__img {
    transform: scale(1.04);
}
.revue-card:hover .revue-card__sheen {
    transform: translateX(110%);
}
.revue-card:hover .revue-card__shadow {
    opacity: .8;
    transform: translateY(4px) scaleX(.92);
}
.revue-card:hover .revue-card__title {
    color: var(--revue-accent);
}

/* locked state: subtle desaturation */
.revue-card.is-locked .revue-card__img {
    filter: saturate(.85) brightness(.94);
}

/* responsive: slightly tighter spacing on mobile */
@media (max-width: 640px) {
    .revue-card__title { font-size: 1rem }
    .revue-card__date { font-size: .65rem }
    .revue-card__placeholder-title { font-size: 1.15rem }
}
/* ── Blog list (category-blog / display_mode=blog) ── */
.premium-list--blog { display: block; }

.blog-item { padding: 28px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.blog-item__inner { display: flex; flex-direction: row; gap: 24px; align-items: stretch; }
.blog-item__thumb {
    flex-shrink: 0; width: 200px; display: block;
    position: relative; min-height: 130px;
}
.blog-item__thumb img {
    width: 200px; height: 100%; object-fit: cover;
    border-radius: 8px; display: block; position: absolute; inset: 0;
}
.blog-item__body { flex: 1; min-width: 0; }
.blog-item__themas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-item__thema {
    font-size: .75rem; font-weight: 700; color: var(--button-color, #e63);
    text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
}
.blog-item__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.blog-item__title a { text-decoration: none; color: inherit; }
.blog-item__excerpt { color: #555; margin: 0 0 12px; line-height: 1.65; font-size: .95rem; }
.blog-item__meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: #999; flex-wrap: wrap; }
.blog-item__meta-sep { color: #bbb; }

/* ── Pagination library redesign ── */
#library #pagination {
    max-width: 100% !important;
    margin-top: 48px;
}
#library #pagination > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
#library #pagination .btn-prev,
#library #pagination .btn-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.15);
    background: #fff;
    transition: border-color .15s, background .15s, transform .15s;
    flex-shrink: 0;
}
#library #pagination .btn-prev:hover,
#library #pagination .btn-next:hover {
    border-color: var(--button-color, #333);
    background: var(--button-color, #333);
    transform: scale(1.08);
}
#library #pagination .btn-prev:hover svg,
#library #pagination .btn-next:hover svg {
    stroke: #fff;
}
#library #pagination .btn-prev svg,
#library #pagination .btn-next svg {
    width: 18px;
    height: 18px;
    stroke: var(--button-color, #333);
    transition: stroke .15s;
    display: block;
}
#library #pagination .current {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 80px;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
#library #pagination .current .page-current {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--button-color, #333);
    line-height: 1;
}
#library #pagination .current .page-sep {
    font-size: 1rem;
    color: #ccc;
    font-weight: 400;
}
#library #pagination .current .page-total {
    font-size: 1rem;
    font-weight: 600;
    color: #aaa;
}

/* ── Breadcrumb page indicator ── */
.article-breadcrumb__sep--page,
.article-breadcrumb__page {
    display: none;
}

/* ── Revue : bannière prochain numéro ────────────────────── */
.revue-banner {
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 12px;
    background: var(--background-color-secondary, #f8f6f2);
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: inset 4px 0 0 var(--button-color, #555), 0 1px 4px rgba(0,0,0,.05);
    margin-bottom: 8px;
    overflow: hidden;
}
.revue-banner--delay {
    box-shadow: inset 4px 0 0 #e8a020, 0 1px 4px rgba(0,0,0,.05);
    background: #fffcf7;
}
.revue-banner__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 14px 20px;
    border-right: 1px solid rgba(0,0,0,.08);
    gap: 1px;
    min-width: 72px;
}
.revue-banner__count-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--button-color, #333);
    font-variant-numeric: tabular-nums;
}
.revue-banner__count-unit {
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aaa;
}
.revue-banner__body {
    padding: 14px 18px;
    line-height: 1.45;
}
.revue-banner__title {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--button-color, #333);
    margin-bottom: 3px;
}
.revue-banner--delay .revue-banner__title {
    color: #c07010;
}
.revue-banner__text {
    font-size: .83rem;
    color: #888;
    line-height: 1.4;
}
.revue-banner--delay .revue-banner__text {
    color: #a07840;
}
.revue-banner__icon {
    flex-shrink: 0;
    padding: 14px 0 14px 18px;
    color: #e8a020;
}

/* ── Revue : dernier numéro — hero pleine largeur ─────────── */
.revue-results--desc .premium-list .premium-small:first-child {
    grid-column: 1 / -1;
    position: relative;
}

/* Badge "Dernier numéro" dans la colonne méta */
.revue-results--desc .premium-list .premium-small:first-child .revue-card__meta::before {
    content: 'Dernier numéro';
    display: inline-block;
    width: fit-content;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--button-color, #555);
    padding: 3px 8px 3px 8px;
    border-radius: 4px;
    line-height: 1.6;
    margin-bottom: 2px;
}

/* Layout horizontal : couverture + méta côte à côte */
.revue-results--desc .premium-list .premium-small:first-child .revue-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
@media (min-width: 640px) {
    .revue-results--desc .premium-list .premium-small:first-child .revue-card {
        gap: 32px;
        padding: 24px;
    }
}

/* Couverture : largeur fixe, ratio conservé */
.revue-results--desc .premium-list .premium-small:first-child .revue-card__cover {
    width: 110px;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .revue-results--desc .premium-list .premium-small:first-child .revue-card__cover {
        width: 140px;
    }
}

/* Méta : occupe l'espace restant */
.revue-results--desc .premium-list .premium-small:first-child .revue-card__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    padding-top: 4px;
}
.revue-results--desc .premium-list .premium-small:first-child .revue-card__date {
    font-size: .78rem;
    font-weight: 600;
    color: var(--button-color, #555);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.revue-results--desc .premium-list .premium-small:first-child .revue-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--revue-ink, #1a1612);
    -webkit-line-clamp: unset;
}

/* ── Revue : orphelins de grille — remplissage du trou de fin de ligne ── */
/* Desktop 4-col : dernier item en col 3 → span 2 */
@media (min-width: 1024px) {
    .revue-results--desc .premium-list:has(.revue-card) .premium-small:last-child:nth-child(4n) {
        grid-column: span 2;
    }
}
/* Tablette 3-col : dernier item en col 2 → span 2 */
@media (min-width: 640px) and (max-width: 1023px) {
    .revue-results--desc .premium-list:has(.revue-card) .premium-small:last-child:nth-child(3n) {
        grid-column: span 2;
    }
}
/* Mobile 2-col : dernier item en col 1 → span 2 */
@media (max-width: 639px) {
    .revue-results--desc .premium-list:has(.revue-card) .premium-small:last-child:nth-child(2n) {
        grid-column: span 2;
    }
}

/* ── Revue : ligne résultats + tri ──────────────────────── */
.revue-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,.07);
    gap: 16px;
}
.revue-results-header .results-label {
    margin: 0;
    font-size: .82rem;
    color: #999;
    font-weight: 500;
}
.revue-results-header .results-label #results-count {
    font-weight: 700;
    color: #333;
    font-size: .95rem;
}

/* ── Revue header (legacy — keep for back compat) ────────── */
.revue-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}
@media (min-width: 768px) {
    .revue-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
}

/* Featured dernière revue */
.revue-header__featured {
    flex-shrink: 0;
    width: 140px;
}
@media (min-width: 768px) {
    .revue-header__featured {
        width: 160px;
    }
}
.revue-header__featured-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--button-color, #555);
    margin-bottom: 10px;
}
.revue-header__featured .revue-card {
    transform: scale(1.04);
    transform-origin: top left;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}

/* Colonne droite : countdown + sort */
.revue-header__next {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
}

/* Countdown / retard */
.revue-next {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--background-color-secondary, #f8f6f2);
}
.revue-next--countdown {
    border-left: 3px solid var(--button-color, #555);
}
.revue-next--delay {
    border-left: 3px solid #e8a020;
    color: #7a5000;
}
.revue-next--delay .revue-next__icon {
    color: #e8a020;
    flex-shrink: 0;
    margin-top: 2px;
}
.revue-next__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    flex-shrink: 0;
}
.revue-next__days {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--button-color, #333);
}
.revue-next__unit {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    margin-top: 2px;
}
.revue-next__title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
    color: inherit;
}
.revue-next__text {
    font-size: .82rem;
    line-height: 1.5;
    color: #666;
}
.revue-next--delay .revue-next__text {
    color: inherit;
}

/* Sort toggle revue */
.revue-sort {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.revue-sort__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: transparent;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: background .15s, color .15s, border-color .15s;
    font-family: inherit;
}
.revue-sort__btn.is-active,
.revue-sort__btn.active {
    background: var(--secondary-color, #333);
    border-color: var(--secondary-color, #333);
    color: #fff;
}
.revue-sort__btn:hover:not(.is-active):not(.active) {
    border-color: var(--secondary-color, #333);
    color: var(--secondary-color, #333);
}

/* ── Badge membre (single post) ─────────────────────────── */
.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.member-badge--locked {
    background: #fff3cd;
    color: #7a5000;
    border: 1px solid #f0d070;
}
.member-badge--unlocked {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
