/* ==============================================================================
   MEPtools.ia — Espace Vitrine GedMEP (10e Module Transverse ISO 19650)
   Style & Animation Motion Design
   ============================================================================== */

:root {
  --ged-cyan: #0ea5e9;
  --ged-cyan-glow: rgba(14, 165, 233, 0.45);
  --ged-emerald: #10b981;
  --ged-emerald-glow: rgba(16, 185, 129, 0.4);
  --ged-amber: #f59e0b;
  --ged-purple: #8b5cf6;
  --ged-bg-dark: #0a0f18;
  --ged-card-bg: rgba(15, 23, 42, 0.85);
  --ged-border: rgba(56, 189, 248, 0.18);
  --ged-border-hover: rgba(56, 189, 248, 0.5);
}

.gedmep-showcase-section {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 32px auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.gedmep-showcase-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 40px;
  background: radial-gradient(circle at 85% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
              linear-gradient(145deg, #0d1524 0%, #080d16 100%);
  border: 1px solid var(--ged-border);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .gedmep-showcase-container {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 48px 56px;
  }
}

/* --- Effet de grille géométrique en arrière-plan --- */
.gedmep-showcase-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.7;
}

/* ==============================================================================
   BLOC ÉDITORIAL (GAUCHE)
   ============================================================================== */
.gedmep-editorial {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Badge NOUVEAU */
.gedmep-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  backdrop-filter: blur(8px);
}

.gedmep-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: gedPulseDot 2s ease-in-out infinite;
}

@keyframes gedPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Titre */
.gedmep-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .gedmep-title {
    font-size: 36px;
  }
}

.gedmep-title-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #00e5ff 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Description */
.gedmep-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 580px;
}

/* Pills caractéristiques */
.gedmep-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.gedmep-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.25s ease;
}

.gedmep-pill:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateY(-1px);
}

.gedmep-pill-icon {
  font-size: 14px;
}

/* Boutons d'action */
.gedmep-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.gedmep-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.gedmep-cta-btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.6s;
}

.gedmep-cta-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 26px rgba(14, 165, 233, 0.55),
              0 0 12px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.gedmep-cta-btn:hover::before {
  left: 100%;
}

.gedmep-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  transition: color 0.2s ease;
}

.gedmep-secondary-link:hover {
  color: #38bdf8;
}

/* ==============================================================================
   ANIMATION INTERACTIVE EN ÉTOILE (DROITE)
   ============================================================================== */
.gedmep-motion-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.gedmep-svg-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  display: block;
  overflow: visible;
}

/* Lignes animées */
.ged-link-line {
  stroke: rgba(56, 189, 248, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  animation: gedFlowLine 25s linear infinite;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.ged-link-line.active {
  stroke: #38bdf8;
  stroke-width: 2.8;
  filter: drop-shadow(0 0 6px #0ea5e9);
  animation-duration: 8s;
}

@keyframes gedFlowLine {
  to {
    stroke-dashoffset: -300;
  }
}

/* Ondes pulsantes du noyau central */
.ged-pulse-wave {
  fill: none;
  stroke: var(--ged-cyan);
  stroke-width: 1;
  opacity: 0.4;
  transform-origin: 250px 250px;
  animation: gedWaveExpand 3.6s ease-out infinite;
}

.ged-pulse-wave:nth-child(2) {
  animation-delay: 1.2s;
}
.ged-pulse-wave:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes gedWaveExpand {
  0% {
    r: 44px;
    opacity: 0.6;
    stroke-width: 1.5;
  }
  100% {
    r: 96px;
    opacity: 0;
    stroke-width: 0.5;
  }
}

/* Nœud Central GedMEP */
.ged-center-group {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ged-center-group:hover {
  transform: scale(1.05);
}

.ged-center-circle {
  fill: url(#gedCenterGrad);
  stroke: #0284c7;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 18px rgba(14, 165, 233, 0.55));
  transition: filter 0.3s ease;
}

.ged-center-group:hover .ged-center-circle {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 28px rgba(14, 165, 233, 0.85));
}

/* Nœuds satellites */
.ged-satellite-group {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.ged-satellite-group:hover,
.ged-satellite-group.active {
  transform: scale(1.18);
}

.ged-satellite-circle {
  fill: #0f172a;
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1.5;
  transition: all 0.25s ease;
}

.ged-satellite-group:hover .ged-satellite-circle,
.ged-satellite-group.active .ged-satellite-circle {
  fill: #1e293b;
  stroke: #38bdf8;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7));
}

/* Panneau HUD dynamique sous le diagramme */
.gedmep-hud-panel {
  width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(10px);
  min-height: 48px;
  transition: all 0.2s ease;
}

.gedmep-hud-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gedmep-hud-icon {
  font-size: 18px;
}

.gedmep-hud-text {
  font-weight: 600;
  color: #f1f5f9;
}

.gedmep-hud-subtext {
  font-size: 12px;
  color: #94a3b8;
}

.gedmep-hud-status {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  white-space: nowrap;
}
