/* ============================================================
   PS Mobile Menu — Stylesheet v1.2
   Slide depuis la droite, 75 % de largeur
   ============================================================ */

/* Reset de base */
.ps-mobile-menu-wrap *,
.ps-mobile-menu-wrap *::before,
.ps-mobile-menu-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Bouton Burger ──────────────────────────────────────── */
.ps-mobile-menu-wrap {
  display: block;
  text-align: right;
}

.ps-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;   /* pas de fond */
  border: none;
  border-radius: 0;
  cursor: pointer;
  padding: 6px;
  z-index: 1000;
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: #0d1b3e !important;            /* icône couleur branding */
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none !important;
}
.ps-burger:hover,
.ps-burger:focus,
.ps-burger:focus-visible,
.ps-burger:active {
  background: transparent !important;
  color: #162b5e !important;
  opacity: 0.75;
  transform: scale(1.05);
  outline: none;
  box-shadow: none !important;
}
.ps-burger-icon {
  display: flex;
  align-items: center;
  color: inherit !important;
  pointer-events: none;
}

/* ── Backdrop ───────────────────────────────────────────── */
.ps-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ps-backdrop.ps-is-open {
  display: block;
}
.ps-backdrop.ps-is-visible {
  opacity: 1;
}

/* ── Overlay ────────────────────────────────────────────── */
.ps-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 420px;
  height: 100%;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 28px 36px 48px;
  overflow-y: auto;
  overflow-x: hidden;

  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;

  background-image:
    radial-gradient(circle at 15% 85%, rgba(168, 196, 224, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(168, 196, 224, 0.05) 0%, transparent 40%);
}
.ps-overlay.ps-is-open {
  transform: translateX(0);
}

/* ── Bouton fermeture ───────────────────────────────────── */
.ps-close {
  align-self: flex-end;
  background: transparent !important;   /* pas de fond */
  border: none;
  border-radius: 0;
  color: #ffffff !important;
  cursor: pointer;
  padding: 6px;
  margin-bottom: 40px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none !important;
}
.ps-close:hover,
.ps-close:focus,
.ps-close:focus-visible,
.ps-close:active {
  background: transparent !important;
  color: #ffffff !important;
  opacity: 0.75;
  transform: rotate(90deg);
  outline: none;
  box-shadow: none !important;
}

/* ── Navigation ─────────────────────────────────────────── */
.ps-nav {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.ps-nav-list {
  list-style: none;
  width: 100%;
}

/* Stagger animation des items */
.ps-overlay.ps-is-open .ps-nav-item {
  animation: psSlideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.1s + var(--item-index, 0) * 0.07s);
}

@keyframes psSlideIn {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ps-nav-item {
  opacity: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ps-nav-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Liens — taille agrandie ────────────────────────────── */
.ps-nav-link {
  display: block;
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);   /* agrandi */
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 0;                             /* plus d'espace vertical */
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.ps-nav-link::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.ps-nav-link:hover,
.ps-nav-link:focus-visible {
  padding-left: 12px;
  outline: none;
}
.ps-nav-link:hover::before,
.ps-nav-link:focus-visible::before {
  transform: translateY(-50%) scaleY(1);
}
.ps-nav-link--current {
  font-style: italic;
}

/* ── Sous-menu ──────────────────────────────────────────── */
.ps-subnav {
  list-style: none;
  padding: 0 0 12px 12px;
}
.ps-subnav-item + .ps-subnav-item {
  margin-top: 6px;
}
.ps-subnav-link {
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.ps-subnav-link:hover {
  opacity: 1;
}

/* ── Réseaux sociaux ────────────────────────────────────── */
.ps-social {
  display: flex;
  gap: 20px;
  padding-top: 28px;
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ps-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.ps-social-link:hover,
.ps-social-link:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  outline: none;
}

/* ── Décorations ────────────────────────────────────────── */
.ps-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.06;
}
.ps-deco--1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #a8c4e0, transparent);
  bottom: -60px;
  left: -60px;
}
.ps-deco--2 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #ffffff, transparent);
  top: 80px;
  left: 20px;
}

/* ── Accessibilité ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ps-overlay,
  .ps-backdrop,
  .ps-nav-link,
  .ps-close,
  .ps-burger {
    transition: none !important;
    animation: none !important;
  }
  .ps-nav-item {
    opacity: 1 !important;
  }
}
