

/* === CONVERSATION HEADER STRUCTURE (INJECTED – DO NOT REMOVE) === */
.conversation-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.conversation-header-center {
  display: flex;
  justify-content: center;
}

.conversation-count {
  padding: 4px 12px;
  border-radius: 14px;
  background: rgba(0, 180, 255, 0.18);
  color: #00eaff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.35);
}

.conversation-header {
  overflow: visible;
  z-index: 2;
}


/* === SIDEBAR PANELS CORE (PHASE 2) === */
.sidebar-panel {
  position: fixed;
  top: 0;
  left: 72px;
  width: calc(100% - 72px);
  height: 100vh;
  z-index: 200;
}
.sidebar-panel-active { display: block !important; }

:root {
  --unipay-neon: #00eaff;
  --unipay-dark: #0b1220;
  --unipay-bg: #050810;
}

.unipay-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px;
}


:root {
  --up-neon: #00eaff; /* Cyan Unipay */
  --up-neon-dim: rgba(0, 234, 255, 0.3);
  --up-gold: #ffd700; /* Accent bancaire */
  --up-bg: #050810;
}






.unipay-description-glow {
  font-family: 'Fira Code', 'Courier New', monospace; /* Style terminal obligatoire */
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e0e0e0;
  max-width: 750px;
  padding: 15px 25px;
  background: rgba(0, 255, 255, 0.03); /* Léger fond bleuté */
  border-left: 2px solid var(--up-neon);
  border-right: 1px solid rgba(0, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  
  /* État initial */
  opacity: 0;
  clip-path: inset(0 100% 0 0); /* Masqué de droite à gauche */
  
  /* Animation révisée : plus réactive */
  animation: cyberReveal 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cyberReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: brightness(2) contrast(3);
  }
  5%, 10% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: brightness(1) contrast(1);
  }
  90% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: skew(0deg);
  }
  95% {
    opacity: 0.5;
    transform: skew(10deg); /* Effet de déchirement final */
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
}

/* Curseur de scan haute précision */
.unipay-description-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--up-neon);
  box-shadow: 0 0 15px var(--up-neon);
  z-index: 2;
  animation: cursorScan 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cursorScan {
  0%, 0% { left: 0; opacity: 0; }
  5% { opacity: 1; }
  10%, 90% { left: 100%; opacity: 0; }
  100% { left: 100%; opacity: 0; }
}

/* Décoration d'angle pour le côté "Module Militaire/IA" */
.unipay-description-glow::after {
  content: "UNIPAYWEB • CONFIANCE • CONTINUITÉ";
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--up-neon);
  opacity: 0.4;
  padding: 2px 5px;
}




/* 1. CONTENEUR : Décalage à 15vw pour laisser place à ta sidebar */
.unipay-hero-section {
  padding: 60px;
  margin-left: 15vw;
  background: radial-gradient(circle at top left, #101d33 0%, transparent 50%);
  border-left: 2px solid var(--up-neon-dim);
  font-family: 'Segoe UI', Roboto, sans-serif;
}

/* 2. TITRE H1 : Effet de scintillement et typographie tech */
.unipay-title-main {
  font-size: 3.5rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px var(--up-neon-dim);
  animation: titleEntry 1s ease-out;
}

.unipay-title-mobile-break {
  display: none;
}

.text-glitch {
  color: var(--up-neon);
  position: relative;
  font-weight: 900;
}

/* 3. DESCRIPTION P : Effet de terminal et lueur douce */
.unipay-description-glow {
  font-size: 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  position: relative;
  padding-left: 20px;
}

.unipay-description-glow strong {
  color: var(--up-gold);
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* 4. BARRE INDICATRICE : Animation de chargement constante */
.ui-bar-indicator {
  width: 150px;
  height: 4px;
  background: var(--up-neon);
  margin-top: 20px;
  box-shadow: 0 0 15px var(--up-neon);
  animation: pulseWidth 3s infinite ease-in-out;
}

/* ANIMATIONS */
@keyframes titleEntry {
  0% { opacity: 0; filter: blur(7px); }
  100% { opacity: 1; filter: blur(0); }
}

@keyframes pulseWidth {
  0%, 100% { width: 50px; opacity: 0.5; }
  50% { width: 250px; opacity: 1; }
}

/* EFFET DE SCANLINE (Optionnel pour l'immersion) */
.unipay-hero-section::before {
  content: "";
  position: center;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
  z-index: 5;
}
 
 

/*ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp*/

:root {
  --up-neon: #00eaff;
  --up-neon-dim: rgba(0, 234, 255, 0.2);
  --up-bg-dark: #070a13;
  --up-hud-text: rgba(0, 234, 255, 0.7);
}

/* Conteneur principal : Centré et décalé vers la droite */
.unipay-futuristic-wrapper {
  display: flex;
  flex-direction: auto;
  align-items: flex; /* Centrage horizontal */
  gap: 15px;
  padding: 40px 20px;
  /* Le décalage vers la droite (5vw) laisse respirer la sidebar à gauche */
  margin-left: 6vw; 
  width: 100%;
  box-sizing: border-box;
}

/* Base du Module - Format Paysage */
.unipay-module {
  position: relative;
  width: 90%;
  max-width: 600px;
  aspect-ratio: 12 / 9; /* Format paysage strict */
  background: var(--up-bg-dark);
  /* Découpe Cyberpunk (coins biseautés) */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
  box-shadow: 0 0 30px rgba(0, 234, 255, 0.15);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.unipay-module:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 234, 255, 0.3);
}

/* === HUD & DÉCORS === */
.scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
  background-size: 100% 4px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.4;
}

.hud-corner {
  position: absolute;
  width: 30px; height: 30px;
  border: 2px solid var(--up-neon);
  z-index: 6;
}
.hud-corner.top-left { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.hud-corner.bottom-right { bottom: 10px; right: 50px; border-left: none; border-top: none; } /* Décalé pour éviter les boutons */

.hud-overlay-data {
  position: absolute;
  top: 15px; left: 20px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--up-hud-text);
  z-index: 10;
  letter-spacing: 2px;
}

/* Bordure Rotative Interne */
.rotating-border {
  position: absolute;
  inset: 2px;
  background: var(--up-bg-dark);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), calc(100% - 38px) 100%, 0 100%);
  z-index: 2;
}

.unipay-module::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(transparent, transparent, var(--up-neon), transparent);
  animation: radarScan 4s linear infinite;
  z-index: 1;
}

/* === CONTENU === */
.module-content {
  position: absolute;
  inset: 3px;
  z-index: 3;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 37px), calc(100% - 37px) 100%, 0 100%);
}

#video-player-1,
#video-main-v2,
#video-sub-v2,
#current-image-1,
#current-image-v2 {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#video-player-1.is-contain { object-fit: contain; background: #020817; }
.video-main { position: absolute; inset: 0; }
.video-sub { position: absolute; inset: 0; }

.text-bg {
  background: radial-gradient(circle at center, #0a1122 0%, var(--up-bg-dark) 100%);
}

/* Contrôles intégrés avec style Holographique */
.right-controls {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 15;
}

.fut-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--up-neon-dim);
  color: var(--up-neon);
  border-radius: 4px; /* Plus carré, plus tech */
  width: 40px; height: 40px;
  font-size: 16px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); /* Mini coupe Cyberpunk sur les boutons */
}

.fut-btn:hover, .fut-btn:active {
  background: var(--up-neon);
  color: #000;
  box-shadow: 0 0 15px var(--up-neon);
  transform: scale(1.1);
}

/* === TYPOGRAPHIE TEXTE INTELLIGENT === */
.text-immersion-container {
  width: 80%;
  height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.text-paragraph {
  color: #e0f7fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(14px, 1.5vw, 18px); /* Texte responsive */
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(0,234,255,0.4);
  border-left: 3px solid var(--up-neon);
  padding-left: 15px;
  background: linear-gradient(90deg, rgba(0,234,255,0.05) 0%, transparent 100%);
}

@keyframes radarScan {
  100% { transform: rotate(360deg); }
}

/* Transitions globales pour l'immersion JS */
.fade-axis-h { animation: axisH 0.6s ease forwards; }
.fade-axis-v { animation: axisV 0.6s ease forwards; }

@keyframes axisH {
  0% { transform: scaleX(0.9); opacity: 0; filter: blur(10px); }
  100% { transform: scaleX(1); opacity: 1; filter: blur(0); }
}
@keyframes axisV {
  0% { transform: scaleY(0.9); opacity: 0; filter: blur(10px); }
  100% { transform: scaleY(1); opacity: 1; filter: blur(0); }
}



/*gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg£*/

/* Décalage spécifique pour la série B */
.v2-layout {
  margin-left: 15vw; /* Légèrement plus décalé pour créer une profondeur */
}

/* --- OBJET 1.2 (Video PIP) --- */
.pip-container {
  position: absolute;
  bottom: 20px;
  right: 80px; /* Évite les boutons de contrôle */
  width: 25%;
  aspect-ratio: 16/9;
  border: 1px solid var(--up-neon);
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.4);
  z-index: 10;
  overflow: hidden;
  background: #000;
}

/* --- OBJET 2.2 (Text Radial) --- */
.text-radial-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  padding: 40px;
  /* Effet d'apparition par expansion centrale */
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-radial-container.active {
  clip-path: circle(150% at 50% 50%);
}

/* --- OBJET 3.2 (Image Diagonal) --- */
.image-diag-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.diag-mask {
  width: 100%;
  height: 100%;
  /* Masque diagonal évolutif */
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: clip-path 0.7s ease-in-out;
}

.diag-mask.revealed {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

/* =========================================================
   INDEX 20260825 — propriétaire de scroll et six objets stables
   Un seul défilement documentaire; aucune largeur cumulée à 180%.
   ========================================================= */
html.unipay-page-index {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable;
}

html.unipay-page-index body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

html.unipay-page-index body > .page-scope,
html.unipay-page-index .page-scope > main.unipay-active-main {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html.unipay-page-index .unipay-futuristic-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 2vw, 22px);
  box-sizing: border-box;
  width: min(1240px, calc(100% - 32px));
  max-width: 100%;
  margin: 20px auto;
  padding: clamp(12px, 2vw, 22px);
  overflow: hidden;
  overflow-anchor: none;
  contain: layout paint;
}

html.unipay-page-index .unipay-futuristic-wrapper > .unipay-module {
  width: 100%;
  max-width: none;
  min-width: 0;
  overflow: hidden;
  contain: layout paint;
  transform-origin: center;
}

html.unipay-page-index .unipay-futuristic-wrapper > .unipay-module:hover {
  transform: translateY(-3px) scale(1.01);
}

@media (max-width: 820px) {
  html.unipay-page-index .unipay-futuristic-wrapper {
    grid-template-columns: 1fr;
    width: calc(100% - 16px);
    margin: 12px auto;
    padding: 8px;
  }
}

@media (max-width: 720px) {
  html.unipay-page-index body .unipay-hero-section .unipay-title-main {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.3rem, 6vw, 1.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html.unipay-page-index body .unipay-title-mobile-break {
    display: block !important;
  }
}

/* Restauration 20260905 — vitrine dynamique administrable en flux normal. */
html.unipay-page-index .unipay-dynamic-showcase{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  clear:both!important;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  height:auto!important;
  min-height:0!important;
  margin:clamp(30px,5vw,64px) 0 0;
  overflow:visible!important;
  transform:none!important;
}
html.unipay-page-index .unipay-dynamic-showcase>.ecosystem-brief-head{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto 12px;
}
html.unipay-page-index .unipay-dynamic-showcase .fut-btn{
  width:auto;
  min-width:44px;
  min-height:40px;
  height:auto;
  padding:7px 10px;
  font-size:.72rem;
  font-weight:800;
}
@media(max-width:720px){
  html.unipay-page-index .unipay-dynamic-showcase>.ecosystem-brief-head{width:calc(100% - 20px)}
  html.unipay-page-index .unipay-dynamic-showcase .right-controls{right:8px;gap:8px}
  html.unipay-page-index .unipay-dynamic-showcase .fut-btn{max-width:86px;padding:6px 8px;font-size:.66rem}
}
