/* ==============================================================================
   MYPROTEC - LANDING PAGE CSS (GLASSMORPHISM CLAIR, GYROPHARES & EFFETS FOIL 3D)
   Direction Artistique : Clair moderne, épuré, minimaliste, institutionnel secours
   ============================================================================== */

:root {
  --lp-blue: #0055b8;
  --lp-blue-dark: #002e6d;
  --lp-blue-light: #0b4ea2;
  --lp-orange: #ff6600;
  --lp-orange-hover: #e65c00;
  --lp-dark: #0f172a;
  --lp-slate: #475569;
  --lp-slate-light: #64748b;
  --lp-bg: #f8fafc;
  --lp-glass-bg: rgba(255, 255, 255, 0.75);
  --lp-glass-border: rgba(255, 255, 255, 0.65);
  --lp-glass-shadow: 0 20px 45px -15px rgba(0, 46, 109, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.8);
  --lp-glass-shadow-hover: 0 25px 50px -12px rgba(0, 46, 109, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.95);
}

/* CONTENEUR GLOBAL PLEIN ÉCRAN LANDING PAGE */
#myprotec-landing-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9990;
  background-color: var(--lp-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 85, 184, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 102, 0, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(2, 132, 199, 0.04) 0px, transparent 60%);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--lp-dark);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#myprotec-landing-page.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==============================================================================
   ANIMATION D'AMBIANCE SIGNATURE : FAISCEAUX GYROPHARES VOLUMÉTRIQUES
   ============================================================================== */
.gyro-ambiance-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gyro-beam-blue {
  position: absolute;
  top: -25%;
  left: -20%;
  width: 140vw;
  height: 140vh;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(0, 85, 184, 0.07) 25deg,
    rgba(11, 78, 162, 0.12) 45deg,
    rgba(0, 85, 184, 0.03) 75deg,
    transparent 110deg,
    transparent 360deg
  );
  filter: blur(55px);
  animation: gyroSweepBlue 32s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform-origin: center center;
  mix-blend-mode: multiply;
}

.gyro-beam-orange {
  position: absolute;
  bottom: -25%;
  right: -20%;
  width: 140vw;
  height: 140vh;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(255, 102, 0, 0.06) 30deg,
    rgba(255, 133, 51, 0.10) 50deg,
    rgba(255, 102, 0, 0.02) 80deg,
    transparent 115deg,
    transparent 360deg
  );
  filter: blur(60px);
  animation: gyroSweepOrange 38s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transform-origin: center center;
  mix-blend-mode: multiply;
}

@keyframes gyroSweepBlue {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(180deg) scale(1.08);
    opacity: 0.95;
  }
  100% {
    transform: rotate(360deg) scale(1);
    opacity: 0.8;
  }
}

@keyframes gyroSweepOrange {
  0% {
    transform: rotate(360deg) scale(1.05);
    opacity: 0.85;
  }
  50% {
    transform: rotate(180deg) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: rotate(0deg) scale(1.05);
    opacity: 0.85;
  }
}

/* ==============================================================================
   SURFACES GLASSMORPHISM CLAIR RAFFINÉ
   ============================================================================== */
.lp-glass {
  background: var(--lp-glass-bg);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--lp-glass-border);
  box-shadow: var(--lp-glass-shadow);
}

.lp-glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--lp-glass-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-glass-card:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--lp-glass-shadow-hover);
  transform: translateY(-2px);
}

.lp-glass-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 100%);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 60px -20px rgba(0, 46, 109, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* ==============================================================================
   CONSOLE DE TÉLÉSCRIPTEUR OPÉRATIONNELLE (MAIN COURANTE EN DIRECT)
   ============================================================================== */
.lp-ticker-feed {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(203, 213, 225, 0.6) transparent;
}

.lp-ticker-feed::-webkit-scrollbar {
  width: 4px;
}

.lp-ticker-feed::-webkit-scrollbar-thumb {
  background-color: rgba(203, 213, 225, 0.6);
  border-radius: 4px;
}

.lp-ticker-item {
  animation: tickerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tickerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================================================================
   L'ACCORDÉON HORIZONTAL DES 6 PÔLES D'ANTENNE
   ============================================================================== */
.poles-accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .poles-accordion-wrap {
    flex-direction: row;
    height: 480px;
    align-items: stretch;
  }
}

.pole-accordion-item {
  position: relative;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 15px 35px -10px rgba(0, 46, 109, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .pole-accordion-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .pole-accordion-item:hover,
  .pole-accordion-item.is-expanded {
    flex: 3.8 1 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 25px 60px -15px rgba(0, 85, 184, 0.12), 0 0 0 1.5px rgba(0, 85, 184, 0.25);
  }
}

/* Contenu replié (icône et étiquette) */
.pole-collapsed-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  width: 100%;
  transition: opacity 0.3s ease;
}

@media (min-width: 1024px) {
  .pole-collapsed-view {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 2.25rem 1rem;
  }

  .pole-accordion-item:hover .pole-collapsed-view,
  .pole-accordion-item.is-expanded .pole-collapsed-view {
    display: none;
  }
}

.pole-vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.05em;
}

/* Contenu déplié (révélé au survol) */
.pole-expanded-view {
  display: none;
  padding: 2rem;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.pole-accordion-item:hover .pole-expanded-view,
.pole-accordion-item.is-expanded .pole-expanded-view {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1023px) {
  .pole-accordion-item.is-expanded .pole-collapsed-view {
    display: none;
  }
  .pole-accordion-item.is-expanded .pole-expanded-view {
    display: flex;
  }
}

/* ==============================================================================
   MUR DES ÉCUSSONS : EFFET 3D TILT & EFFET HOLOGRAPHIQUE SHINY / FOIL
   ============================================================================== */
.showcase-grid-card {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.showcase-inner-card {
  position: relative;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 45px -15px rgba(0, 46, 109, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9);
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
  transform-style: preserve-3d;
  overflow: hidden;
}

.showcase-inner-card:hover {
  box-shadow: 0 35px 70px -20px rgba(0, 85, 184, 0.16), 0 0 0 1px rgba(255, 255, 255, 1);
}

/* Patch d'écusson vectoriel épuré avec 3D transform */
.patch-badge-item {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.patch-badge-item:hover {
  transform: translateZ(28px) scale(1.06);
  filter: drop-shadow(0 15px 25px rgba(0, 46, 109, 0.18));
}

/* Couche Foil Holographique dynamique pour écussons rares & de prestige */
.foil-shiny-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: color-dodge;
  z-index: 5;
}

.patch-badge-item:hover .foil-shiny-layer {
  opacity: 0.85;
}

/* Déclinaisons Foil selon la Rareté */
.foil-historique {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(255, 170, 0, 0.55) 30%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 120, 0, 0.5) 70%,
    rgba(255, 215, 0, 0.1) 100%
  );
  background-size: 200% 200%;
  animation: foilShine 4s linear infinite;
}

.foil-epique {
  background: linear-gradient(
    135deg,
    rgba(147, 51, 234, 0.15) 0%,
    rgba(59, 130, 246, 0.55) 35%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(236, 72, 153, 0.5) 75%,
    rgba(147, 51, 234, 0.15) 100%
  );
  background-size: 200% 200%;
  animation: foilShine 4.5s linear infinite;
}

.foil-rare {
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.1) 0%,
    rgba(6, 182, 212, 0.5) 40%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(14, 165, 233, 0.45) 75%,
    rgba(14, 165, 233, 0.1) 100%
  );
  background-size: 200% 200%;
  animation: foilShine 5s linear infinite;
}

@keyframes foilShine {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Infobulle flottante d'écusson */
#lp-ecusson-tooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.96) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  border-radius: 1.25rem;
  padding: 1rem;
  color: #f8fafc;
}

#lp-ecusson-tooltip.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
