/* ===========================
   RESET & STRUCTURE DE BASE
   =========================== */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* ===========================
   FONTS
   =========================== */

@font-face {
  font-family: "AvantGarde";
  src: url("../fonts/AvantGarde-Book.woff2") format("woff2"),
       url("../fonts/AvantGarde-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGarde";
  src: url("../fonts/AvantGarde-ExtraLight..woff2") format("woff2"),
       url("../fonts/AvantGarde-ExtraLight.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGarde";
  src: url("../fonts/AvantGarde-Medium.woff2") format("woff2"),
       url("../fonts/AvantGarde-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGarde";
  src: url("../fonts/AvantGarde-Demi.woff2") format("woff2"),
       url("../fonts/AvantGarde-Demi.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AvantGarde";
  src: url("../fonts/AvantGarde-Bold.woff2") format("woff2"),
       url("../fonts/AvantGarde-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DINCondensed";
  src: url("../fonts/DINCondensed-Bold.woff2") format("woff2"),
       url("../fonts/DINCondensed-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MinionPro";
  src: url("../fonts/MinionPro-Regular.woff2") format("woff2"),
       url("../fonts/MinionPro-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MinionPro";
  src: url("../fonts/MinionPro-Bold.woff2") format("woff2"),
       url("../fonts/MinionPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SignPainter";
  src: url("../fonts/SignPainter-HouseScript.woff2") format("woff2"),
       url("../fonts/SignPainter-HouseScript.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   TOKENS TYPO
   =========================== */

.overline {
  font-family: "DINCondensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.h1 {
  font-family: "AvantGarde", sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 4.3vw, 48px);
  line-height: 1.05;
}

.h1-book {
  font-weight: 400;
}

.lead {
  font-family: "MinionPro", serif;
  font-size: clamp(16px, 1.6vw, 20px);
}

.body {
  font-size: clamp(14px, 1.2vw, 18px);
}

.quote {
  font-style: italic;
}

.display {
  font-family: "SignPainter", cursive;
  font-size: clamp(40px, 7vw, 110px);
  line-height: 1.1;
}

/* ===========================
   VARIABLES
   =========================== */

:root {
  --pp-color-bg: #050509;
  --pp-color-surface: #111119;
  --pp-color-surface-soft: #151525;
  --pp-color-border: rgba(255, 255, 255, 0.12);
  --pp-color-text: #c7c7d8;
  --pp-color-text-muted: #8a8aa0;
  --pp-color-text-invert: #050509;
  --pp-color-heading: #ffffff;
  --pp-color-accent: #f79232;
  --pp-radius-lg: 18px;
  --pp-radius-md: 12px;
  --pp-radius-pill: 999px;
  --pp-header-height: 72px;
}

/* ===========================
   RESET SIMPLE
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.pp-body {
  min-height: 100vh;
  margin: 0;
  /* on fixe le gradient et on évite toute répétition */
  background: radial-gradient(circle at 0% 0%, #1b2738 0, #05060a 55%, #020308 100%) fixed;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #020308;
  color: #e3e6f0;
  font-family: "AvantGarde", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


.pp-body-no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #ff9d4d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===========================
   LAYOUT GLOBAL
   =========================== */

.pp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pp-main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  padding: 96px 20px 80px; /* place pour le header */
}

/* ===========================
   HEADER / NAV
   =========================== */

.pp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */

.pp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pp-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: block;
}

.pp-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.pp-logo-title {
  font-weight: 600;
  font-size: 17px;
  color: #ffffff;
}

.pp-logo-subtitle {
  font-size: 11px;
  color: #a4abbc;
}

/* Nav desktop */

.pp-nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
}

.pp-nav-link {
  font-size: 14px;
  color: #d9deee;
  text-decoration: none;
}

.pp-nav-link:hover,
.pp-nav-link.pp-nav-link-active {
  color: #ffb26e;
}

/* Avatar + dropdown desktop */

.pp-nav-user-wrapper {
  position: relative;
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
}

.pp-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #2f88ff;
  background: radial-gradient(circle at 30% 0%, #384dff 0, #05060a 55%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pp-nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(5, 6, 12, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease-out,
              transform 0.16s ease-out,
              visibility 0.16s ease-out;
  text-align: left;
}

/* Ouverture au survol : avatar + panneau restent cliquables */
.pp-nav-user-wrapper:hover .pp-nav-user-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pp-nav-user-email {
  font-size: 13px;
  color: #f5f6ff;
  margin-bottom: 6px;
  word-break: break-all;
}

.pp-nav-user-logout {
  font-size: 13px;
  color: #ff9d4d;
  text-decoration: none;
}

.pp-nav-user-logout:hover {
  text-decoration: underline;
}


/* ====== User menu desktop (icône E) ====== */

.pp-nav-user {
  position: relative;
  margin-left: 18px;
  display: inline-flex;
  align-items: center;
}

/* Le rond avec la lettre (E) – déjà utilisé dans ton HTML */
.pp-nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid #2f88ff;
  background: radial-gradient(circle at 30% 0%, #384dff 0, #05060a 55%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* La popup avec l'email + Déconnexion */
.pp-nav-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(5, 6, 12, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease-out,
    transform 0.16s ease-out,
    visibility 0.16s ease-out;
  text-align: left;
}

.pp-nav-user-email {
  font-size: 13px;
  color: #f5f6ff;
  margin-bottom: 6px;
  word-break: break-all;
}

.pp-nav-user-logout {
  font-size: 13px;
  color: #ff9d4d;
  text-decoration: none;
}

.pp-nav-user-logout:hover {
  text-decoration: underline;
}

/* État ouvert piloté par le JS : userMenu.classList.add('is-open') */
.pp-nav-user.is-open .pp-nav-user-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}




/* Burger mobile */

.pp-burger-main {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.pp-burger-main span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

/* Animation burger -> croix */

.pp-burger-main.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.pp-burger-main.is-open span:nth-child(2) {
  opacity: 0;
}
.pp-burger-main.is-open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Overlay mobile */

.pp-nav-overlay {
  position: fixed;
  top: var(--pp-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top, #242446 0%, #050509 55%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease-out, visibility 0.18s ease-out;
  z-index: 95;
}

.pp-nav-overlay-open {
  opacity: 1;
  visibility: visible;
}

.pp-nav-overlay-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 24px 32px;
}

.pp-nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.pp-nav-overlay-link {
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
}

.pp-nav-overlay-link:hover {
  color: #ffb26e;
}

/* User info dans le menu mobile */

.pp-nav-mobile-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.pp-nav-mobile-email {
  font-size: 15px;
  color: #f3f4ff;
}


/* Avatar dans le menu mobile */

.pp-nav-mobile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #2f88ff;
  background: radial-gradient(circle at 30% 0%, #384dff 0, #05060a 55%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}






/* ===========================
   CONTENU / CARTES / FORM
   =========================== */

.pp-hero {
  margin-bottom: 24px;
}

.pp-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pp-color-text-muted);
  margin-bottom: 6px;
}

.pp-hero-title {
  font-size: 28px;
  color: var(--pp-color-heading);
  margin: 0 0 10px;
}

.pp-hero-lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--pp-color-text);
  max-width: 560px;
}

/* Cartes */

.pp-auth-grid {
  display: grid;
  gap: 18px;
}

.pp-card {
  background: rgba(12, 12, 22, 0.95);
  border-radius: var(--pp-radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.pp-card-title {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--pp-color-heading);
}

.pp-card-text {
  font-size: 14px;
  color: var(--pp-color-text);
  margin: 0 0 12px;
}

/* Formulaires */

.pp-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pp-form-label {
  font-size: 13px;
  color: var(--pp-color-text-muted);
}

.pp-form-input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(7, 7, 14, 0.96);
  color: var(--pp-color-heading);
  padding: 8px 10px;
  font-size: 14px;
}

.pp-form-input::placeholder {
  color: rgba(199, 199, 216, 0.45);
}

.pp-form-actions {
  margin-top: 4px;
}

.pp-form-helper {
  font-size: 12px;
  color: var(--pp-color-text-muted);
}

/* Boutons */

.pp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--pp-radius-pill);
  border: 0;
  background: linear-gradient(135deg, #f7c151 0%, var(--pp-color-accent) 100%);
  color: var(--pp-color-text-invert);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pp-button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--pp-color-heading);
  border: 1px solid rgba(255, 255, 255, 0.18);
}


/* Boutons de publication social (bleus) */
.pp-btn.pp-btn-publish {
  background-color: #2f80ed;
  border-color: #2f80ed;
  color: #ffffff;
}
.pp-btn.pp-btn-publish:hover {
  background-color: #2569c0;
  border-color: #2569c0;
}




/* Pages auth */

.auth-page {
  padding-bottom: 90px;
}

.auth-intro {
  margin-bottom: 32px;
}

.auth-overline {
  font-family: "DINCondensed", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8f9bb4;
  margin: 0 0 8px;
}

.auth-title {
  font-size: clamp(26px, 4vw, 34px);
  color: #ffffff;
  margin: 0 0 12px;
}

.auth-lead {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  color: #c4cad8;
}


/* Boxes d'onboarding (réutilisables pour la création de post) */
.onb-box {
  margin-bottom: 18px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 7, 16, 0.96);
}

.onb-box-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

/* Du plus foncé (en haut) au plus clair (en bas) */
/* LEVEL 1 — Le plus sombre (proche du style actuel) */
.onb-box--level1 {
  background: radial-gradient(circle at 0 0, #0d1422 0%, #090d17 55%, #05070e 100%);
}

/* LEVEL 2 — Légèrement plus clair mais toujours sombre */
.onb-box--level2 {
  background: radial-gradient(circle at 0 0, #151d2e 0%, #0f141f 55%, #080b14 100%);
}

/* LEVEL 3 — Milieu, bleu-gris + perceptible */
.onb-box--level3 {
  background: radial-gradient(circle at 0 0, #1c2638 0%, #141b28 55%, #0b0f18 100%);
}

/* LEVEL 4 — Plus clair encore, gris acier teinté bleu */
.onb-box--level4 {
  background: radial-gradient(circle at 0 0, #242f42 0%, #192230 55%, #0d121c 100%);
}

/* LEVEL 5 — Le plus clair (mais cohérent avec ton thème) */
.onb-box--level5 {
  background: radial-gradient(circle at 0 0, #2c3850 0%, #1f2938 55%, #101622 100%);
}

/* Forces les backgrounds selon les niveaux (auth-card écrasait les niveaux) */
.auth-card.onb-box--level1 {
  background: radial-gradient(circle at 0 0, #0d1422 0%, #090d17 55%, #05070e 100%);
}

.auth-card.onb-box--level2 {
  background: radial-gradient(circle at 0 0, #151d2e 0%, #0f141f 55%, #080b14 100%);
}

.auth-card.onb-box--level3 {
  background: radial-gradient(circle at 0 0, #1c2638 0%, #141b28 55%, #0b0f18 100%);
}

.auth-card.onb-box--level4 {
  background: radial-gradient(circle at 0 0, #242f42 0%, #192230 55%, #0d121c 100%);
}

.auth-card.onb-box--level5 {
  background: radial-gradient(circle at 0 0, #2c3850 0%, #1f2938 55%, #101622 100%);
}










/* Grille login / signup */

.auth-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.auth-card {
  flex: 1 1 0;
  min-width: 280px;
  background: radial-gradient(circle at 0 0, #20273a 0, #101320 45%, #080913 100%);
  border-radius: 18px;
  padding: 22px 13px 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.auth-card-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: #ffffff;
}

.auth-card-text {
  margin: 0 0 18px;
  font-size: 14px;
  color: #b6bed0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
	padding-top:5px;
}

.auth-field label {
  font-size: 16px;
  color: #cdd4e4;
}

.auth-field input {
  border-radius: 999px;
  border: 1px solid #31384a;
  background: rgba(5, 7, 16, 0.9);
  color: #ffffff;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
}


.auth-field select,
.auth-field textarea {
  border-radius: 999px;
  border: 1px solid #31384a;
  background: rgba(5, 7, 16, 0.9);
  color: #ffffff;
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
}

.auth-field textarea {
  border-radius: 14px;
  min-height: 220px;
  resize: vertical;
}


/* Flèche custom un peu décollée de la bordure */
.auth-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 6px;
}


/* Effet focus identique aux inputs */
.auth-field select:focus,
.auth-field textarea:focus {
  border-color: #ff9d4d;
  box-shadow: 0 0 0 1px rgba(255, 157, 77, 0.2);
}





.auth-field input:focus {
  border-color: #ff9d4d;
  box-shadow: 0 0 0 1px rgba(255, 157, 77, 0.2);
}

.auth-helper {
  margin-top: 8px;
  font-size: 13px;
  color: #aeb6c9;
}

.auth-note {
  margin-top: 16px;
  font-size: 12px;
  color: #8e97ac;
}

/* Boutons auth */

.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: "AvantGarde", system-ui, sans-serif;
}

.pp-btn-primary {
  background: linear-gradient(135deg, #ff9d4d, #ff7c2a);
  color: #050509;
  box-shadow: 0 12px 30px rgba(255, 140, 64, 0.35);
}

.pp-btn-primary:hover {
  filter: brightness(1.05);
}

.pp-btn-social {
  width: 100%;
  justify-content: flex-start;
  background: #ffffff;
  color: #11131a;
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.pp-btn-social-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.pp-btn-social-icon img {
  display: block;
  width: 18px;
  height: 18px;
}

/* ===========================
   FOOTER
   =========================== */

.pp-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 18px 20px 26px;
  margin-top: 24px;
  background: radial-gradient(circle at 50% 0%, #151826 0, #05060a 60%);
}

.pp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.pp-footer-line {
  margin: 2px 0;
  font-size: 11px;
  color: #8188a0;
}

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

@media (max-width: 840px) {
  .pp-header-inner {
    padding-inline: 16px;
  }

  .pp-nav-desktop {
    display: none;
  }

  .pp-burger-main {
    display: flex;
  }

  .pp-main {
    padding: 88px 8px 120px;
  }

  .auth-grid {
    flex-direction: column;
  }

  .pp-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
  }
}

@media (min-width: 841px) {
  .pp-nav-overlay {
    display: none !important;
  }

  .pp-burger-main {
    display: none;
  }

  .pp-auth-grid {
    grid-template-columns: 1.1fr 1.1fr;
  }

  .pp-hero-title {
    font-size: 32px;
  }
}



/*affichage des boutons*/

.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrapper input[type="password"],
.auth-password-wrapper input[type="text"] {
  flex: 1;
  padding-right: 80px;
}

.auth-password-toggle {
  position: absolute;
  right: 18px;
  padding: 4px 10px;
  font-size: 11px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #cfd5ea;
}




/* ------------------------------------------------------------
   SLIDER MEDIAS — POST EDIT
   ------------------------------------------------------------ */

.post-media-slider {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 20px auto 8px;
  overflow: hidden;
  border-radius: 12px;
}

.post-media-slider-track {
  width: 100%;
}

.post-media-slide {
  position: relative;
  width: 100%;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.post-media-slide.is-active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.post-media-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
}

/* Visuel de sélection très visible */
.post-media-slide.is-selected img {
  border: 3px solid #ff9d5c !important;
  box-shadow: 0 0 0 4px rgba(255, 157, 92, 0.7);
}

.post-media-slide.is-selected {
    outline: 4px solid #ff8800;
    outline-offset: -4px;
    border-radius: 12px;
}



/* Badge ("Image client", "Média IA", etc.) */
.post-media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 6px;
  z-index: 2;
}

/* Navigation flèches */
.post-media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
  z-index: 3;
}

.post-media-nav:hover {
  background: rgba(0,0,0,0.65);
}

.post-media-nav-prev {
  left: 8px;
}

.post-media-nav-next {
  right: 8px;
}

/* Points de pagination */
.post-media-dots {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  gap: 6px;
}

.post-media-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.post-media-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

/* Texte "Clique sur une image..." + "Image X / Y..." */
.post-media-slider-help {
  margin-bottom: 8px;
  font-size: 12px;
  color: #ff9d5c;
  text-align: center;
}

.post-media-selected-helper {
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.78);
}

/* Miniatures IA / vidéo */
.ai-media-context {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.ai-media-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.35);
  display: none; /* visible uniquement si une image est sélectionnée */
}

.ai-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wrapper bouton supprimer pour centrage */
.post-media-delete-wrapper {
  margin-top: 10px;
  text-align: center;
}



/* ------------------------------------------------------------
   Boutons : centrage sur mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .pp-form-actions {
    text-align: center;
  }

  .pp-form-actions .pp-btn {
    display: inline-block;
    width: auto;
    max-width: 320px;
	  margin-bottom: 10px;
	  padding: 6px 18px;
  }

  .auth-form > .pp-btn.pp-btn-primary {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}





/* Séparateur dans la box Canaux */
.channel-separator {
  margin: 16px 0 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0)
  );
}

/* Titre des blocs de texte par canal */
.channel-post-title {
  display: block;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}

/* Titres des posts par canal : Facebook / Instagram / TikTok */
.auth-field label.channel-post-title {
  display: block;
  text-align: center;
  font-size: 16px;      /* augmente ici si tu veux encore plus gros */
  font-weight: 600;
  margin: 9px 0 8px;
  color: #ffffff;
}



/* État "génération IA en cours" */
.pp-btn.pp-btn-primary.pp-btn--generating {
    background-image: none !important;
    background-color: #b91c1c !important;  /* rouge */
    border-color: #b91c1c !important;
    position: relative;
    cursor: progress;
    pointer-events: none; /* bloque tous les clics */
    opacity: 0.9;
}

/* Petit loader rond à droite du texte */
.pp-btn.pp-btn-primary.pp-btn--generating::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: transparent;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    animation: pp-btn-spin 0.6s linear infinite;
}

@keyframes pp-btn-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}
