/* ============================================================
   PS Read More — Stylesheet v1.1
   Branding : bleu nuit #0d1b3e
   ============================================================ */

.ps-readmore {
  position: relative;
}

/* ── Mise en forme du contenu complet ────────────────────── */
.ps-readmore__full p,
.ps-readmore__preview p {
  margin: 0 0 0.5em 0;
  line-height: 1.7;
}
.ps-readmore__full br {
  display: block;
  content: '';
}

/* ── Texte complet (animation) ───────────────────────────── */
.ps-readmore__full {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              opacity    0.35s ease;
}
.ps-readmore__full.ps-is-open {
  max-height: 3000px;
  opacity: 1;
}

/* Masquer l'extrait quand le full est ouvert */
.ps-readmore__preview.ps-is-hidden {
  display: none;
}

.ps-readmore__ellipsis {
  color: #0d1b3e;
  font-weight: 600;
}

/* ── Bouton ───────────────────────────────────────────────── */
.ps-readmore__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 10px 22px;

  /* Fond transparent, texte foncé */
  background: transparent !important;
  border: 1.5px solid #0d1b3e !important;
  border-radius: 999px;
  color: #0d1b3e !important;

  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;

  -webkit-tap-highlight-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;

  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

/* Flèche CSS */
.ps-readmore__btn::after {
  content: '↓';
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  display: inline-block;
  color: #0d1b3e !important;
}
.ps-readmore__btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Hover */
.ps-readmore__btn:hover {
  background: #0d1b3e !important;
  color: #ffffff !important;
  text-decoration: none;
  border-color: #0d1b3e !important;
}
.ps-readmore__btn:hover::after {
  color: #ffffff !important;
}

/* Focus clavier */
.ps-readmore__btn:focus-visible {
  background: #0d1b3e !important;
  color: #ffffff !important;
  outline: 2px solid #a8c4e0 !important;
  outline-offset: 3px;
}

/* Active / clic — forcé branding, jamais de rose */
.ps-readmore__btn:active,
.ps-readmore__btn:focus:not(:focus-visible) {
  background: #162b5e !important;
  color: #ffffff !important;
  border-color: #162b5e !important;
  transform: scale(0.97);
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.ps-readmore__btn:active::after {
  color: #ffffff !important;
}

/* ── Accessibilité ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ps-readmore__full,
  .ps-readmore__btn,
  .ps-readmore__btn::after {
    transition: none !important;
  }
}
