/* PN_MAGAZINE_WAHOU_v1_3 — Mobile premium + PageFlip + Zoom */

body.mwx-active { background: #0A0A0A; margin: 0; padding: 0; overflow-x: hidden; }
body.mwx-active > *:not(.mwx-root):not(script) { display: none !important; }

.mwx-root {
  font-family: 'Barlow', -apple-system, sans-serif;
  color: #fff; min-height: 100vh; position: relative; padding-bottom: 80px;
}

.mwx-hero {
  position: relative; min-height: 100vh;
  background: radial-gradient(ellipse at 50% 45%, #1F1410 0%, #0A0A0A 70%);
  overflow: hidden; display: flex; flex-direction: column;
}

.mwx-topbar {
  flex-shrink: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-top, 0));
  display: flex; justify-content: space-between; align-items: center;
  z-index: 10; position: relative;
}
.mwx-topbar a { color: #fff; text-decoration: none; font-size: 22px; display: inline-flex; align-items: center; }
.mwx-badge-new {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: rgba(224,138,48,0.18);
  border: 1px solid rgba(224,138,48,0.4); border-radius: 50px;
  color: #E08A30; font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  animation: mwx-bob 4s ease-in-out infinite;
}
.mwx-badge-new::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #E08A30;
  box-shadow: 0 0 8px #E08A30; animation: mwx-pulse 2s ease-in-out infinite;
}
@keyframes mwx-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-3px) } }
@keyframes mwx-pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.4 } }

.mwx-particles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.mwx-particle {
  position: absolute; bottom: -10px;
  width: var(--size, 8px); height: var(--size, 8px);
  border-radius: 50%; background: var(--bg, #E08A30);
  box-shadow: 0 0 12px var(--bg, #E08A30), 0 0 24px rgba(224,138,48,0.3);
  opacity: 0; animation: mwx-rise var(--duration, 4s) ease-out var(--delay, 0s) infinite;
  left: var(--start-x, 50%); will-change: transform, opacity;
}
.mwx-particle.star { background: transparent; box-shadow: none; color: var(--bg, #FFD580); font-size: var(--size, 10px); border-radius: 0; line-height: 1; }
@keyframes mwx-rise {
  0% { transform: translate(0, 0) scale(0.4) rotate(0deg); opacity: 0; }
  10% { opacity: 1; } 70% { opacity: 1; }
  100% { transform: translate(var(--drift, 0), -110vh) scale(1.2) rotate(180deg); opacity: 0; }
}

.mwx-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 5; padding: 20px; min-height: 0;
}

.mwx-stack-page {
  position: absolute; left: 50%; top: 50%;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.mwx-stack-page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mwx-stack-page.p3 { width: 200px; height: 290px; transform: translate(-50%, -50%) translate(70px, -10px) rotate(10deg); opacity: 0.5; z-index: 1; }
.mwx-stack-page.p2 { width: 210px; height: 305px; transform: translate(-50%, -50%) translate(35px, -8px) rotate(6deg); opacity: 0.75; z-index: 2; }

.mwx-cover {
  position: relative; width: min(240px, 60vw); height: min(340px, 56vh);
  background: #fff; color: #1A1A1A; border-radius: 8px;
  overflow: hidden; z-index: 4; transform: rotate(-3deg);
  box-shadow: 0 30px 70px rgba(0,0,0,0.7), 0 0 0 1px rgba(224,138,48,0.5);
  animation: mwx-float 6s ease-in-out infinite; cursor: pointer;
}
@keyframes mwx-float { 0%,100% { transform: rotate(-3deg) translateY(0) } 50% { transform: rotate(-3deg) translateY(-8px) } }

.mwx-halo {
  position: absolute; inset: -40px; border-radius: 16px;
  background: radial-gradient(ellipse at center, rgba(224,138,48,0.4) 0%, rgba(224,138,48,0.1) 40%, transparent 70%);
  animation: mwx-glow 2.4s ease-in-out infinite; z-index: 3; pointer-events: none;
}
@keyframes mwx-glow { 0%,100% { opacity: 0.6; transform: scale(0.95) } 50% { opacity: 1; transform: scale(1.08) } }

.mwx-shimmer {
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  animation: mwx-shine 4s ease-in-out infinite; pointer-events: none;
}
@keyframes mwx-shine { 0%,40% { left: -100% } 100% { left: 120% } }

.mwx-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mwx-cover-content {
  position: absolute; inset: 0; padding: 18px 16px;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.88) 60%, rgba(255,255,255,0.97) 100%);
  z-index: 2;
}
.mwx-cover.has-real-cover .mwx-cover-content {
  background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(0,0,0,0.85) 100%);
  color: #fff;
}

.mwx-cover-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mwx-cover-meta { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: #1A1A1A; font-weight: 600; }
.mwx-cover.has-real-cover .mwx-cover-meta { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.mwx-cover-avatar { width: 30px; height: 30px; border-radius: 50%; background: #E08A30; color: #1A1A1A; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; }
.mwx-cover-bottom { margin-top: auto; }
.mwx-cover.has-real-cover .mwx-cover-bottom * { color: #fff !important; }
.mwx-cover-prelude { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 12px; color: #C57220; margin-bottom: 4px; }
.mwx-cover-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: -0.005em; line-height: 0.95; text-transform: uppercase; color: #1A1A1A; }
.mwx-cover-bar { height: 2px; width: 36px; background: #E08A30; margin: 10px 0; }
.mwx-cover-sub { font-family: 'DM Serif Display', serif; font-style: italic; font-size: 12px; color: #5C5950; line-height: 1.3; }

.mwx-bottom-cta { flex-shrink: 0; padding: 12px 0 22px; text-align: center; position: relative; z-index: 6; }
.mwx-bottom-cta button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: #E08A30; color: #1A1A1A;
  border: none; border-radius: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; box-shadow: 0 8px 24px rgba(224,138,48,0.5);
  transition: transform 0.2s;
}
.mwx-bottom-cta button:active { transform: scale(0.96); }
.mwx-bottom-cta .info { margin-top: 10px; color: rgba(255,255,255,0.55); font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

.mwx-section { background: #F5F1E8; color: #1A1A1A; padding: 24px 20px; }
.mwx-section + .mwx-section { background: #fff; border-top: 1px dashed #E5E1D8; }
.mwx-eyebrow { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #C57220; font-weight: 600; margin-bottom: 8px; }
.mwx-section h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; line-height: 1.2; color: #1A1A1A; margin: 0 0 10px; letter-spacing: -0.005em; text-transform: uppercase; }
.mwx-section h2 em { font-family: 'DM Serif Display', serif; font-style: italic; color: #C57220; font-weight: 400; text-transform: none; }
.mwx-section p { font-size: 13.5px; line-height: 1.55; color: #5C5950; margin: 0; }

.mwx-agent { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mwx-agent-avatar { width: 48px; height: 48px; border-radius: 50%; background: #1A1A1A; color: #E08A30; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; }
.mwx-agent-name { font-weight: 700; font-size: 14px; color: #1A1A1A; }
.mwx-agent-role { font-size: 12px; color: #8B8579; margin-top: 2px; }
.mwx-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mwx-tag { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 10px; background: #F5F1E8; color: #5C5950; border-radius: 50px; font-weight: 600; }

.mwx-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0));
  background: #1A1A1A; border-top: 2px solid #E08A30;
  display: flex; gap: 8px; z-index: 100;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
}
.mwx-sticky-cta a { flex: 1; padding: 11px 6px; border-radius: 10px; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: 'Barlow Condensed', sans-serif; transition: transform 0.15s; }
.mwx-sticky-cta a:active { transform: scale(0.95); }
.mwx-sticky-cta a span { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mwx-sticky-cta a i { font-size: 20px; }
.mwx-sticky-cta a.tel { background: #E08A30; color: #1A1A1A; }
.mwx-sticky-cta a.mail { background: #fff; color: #1A1A1A; }
.mwx-sticky-cta a.wa { background: #25D366; color: #fff; }

/* ═══════════════ FLIPBOOK ═══════════════ */
.mwx-flipbook { position: fixed; inset: 0; background: #0A0A0A; z-index: 1000; display: none; flex-direction: column; }
.mwx-flipbook.open { display: flex; animation: mwx-zoom-in 0.4s ease-out; }
@keyframes mwx-zoom-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.mwx-flipbook-head {
  padding: 14px 18px calc(14px + env(safe-area-inset-top, 0));
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative; z-index: 10; gap: 10px;
}
.mwx-flipbook-head .title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mwx-flipbook-head button { background: transparent; border: none; color: #fff; cursor: pointer; padding: 4px 8px; line-height: 1; display: flex; align-items: center; }
.mwx-flipbook-head button.zoom-btn { font-size: 20px; }
.mwx-flipbook-head button.close-btn { font-size: 28px; }
.mwx-flipbook-head button:active { color: #E08A30; }

.mwx-pageflip-wrap { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; padding: 8px; }
#mwxPageFlip { width: 100%; height: 100%; max-width: 500px; }
#mwxPageFlip .page { background: #fff; overflow: hidden; }
#mwxPageFlip .page img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }

.mwx-flip-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); z-index: 5; }
.mwx-flip-loading::before { content: ''; width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.15); border-top-color: #E08A30; border-radius: 50%; animation: mwx-spin 0.9s linear infinite; margin-bottom: 14px; }
@keyframes mwx-spin { to { transform: rotate(360deg); } }
.mwx-flip-loading.hidden { display: none; }

.mwx-flip-footer {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0));
  display: flex; justify-content: space-between; align-items: center;
  color: rgba(255,255,255,0.6);
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 10;
}
.mwx-flip-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: 18px; transition: background 0.2s;
}
.mwx-flip-arrow:active { background: #E08A30; color: #1A1A1A; }
.mwx-flip-arrow:disabled { opacity: 0.25; cursor: not-allowed; }

/* ═══════════════ ZOOM OVERLAY ═══════════════ */
.mwx-zoom-overlay {
  position: fixed; inset: 0;
  background: #000;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  animation: mwx-zoom-fade-in 0.3s ease-out;
}
@keyframes mwx-zoom-fade-in { from { opacity: 0; } to { opacity: 1; } }

.mwx-zoom-content {
  position: relative;
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: none;
}
.mwx-zoom-content img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
}

.mwx-zoom-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0)); right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff;
  border: none; font-size: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; backdrop-filter: blur(8px);
}
.mwx-zoom-close:active { background: #E08A30; color: #1A1A1A; }

.mwx-zoom-counter {
  position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0)); left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5); color: #fff;
  padding: 6px 14px; border-radius: 50px;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 10; backdrop-filter: blur(8px);
}

.mwx-zoom-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7); color: #fff;
  padding: 10px 18px; border-radius: 50px;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 9; pointer-events: none;
  animation: mwx-hint-show 3s ease-out forwards;
  backdrop-filter: blur(8px);
}
@keyframes mwx-hint-show {
  0% { opacity: 0; transform: translate(-50%, -40%); }
  15% { opacity: 1; transform: translate(-50%, -50%); }
  85% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

/* Burst de particules */
.mwx-burst { position: fixed; pointer-events: none; z-index: 2500; }
.mwx-burst-p {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #E08A30; box-shadow: 0 0 8px #E08A30;
  animation: mwx-burst-anim 0.8s ease-out forwards;
}
@keyframes mwx-burst-anim {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--bx), var(--by)) scale(0); opacity: 0; }
}
/* === PN_MAGAZINE_WAHOU_v1_4 — image-rendering pour netteté retina === */
#mwxPageFlip .page img,
.mwx-zoom-overlay img,
.mwx-cover-img,
.mwx-stack-page img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
/* Bloque le zoom Safari natif dans l'overlay zoom */
.mwx-zoom-overlay,
.mwx-zoom-content,
.mwx-zoom-overlay img {
  touch-action: none !important;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}