/* Kessler Industries - Theme Global */
/* Import Orbitron and Rajdhani fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

/* Color Palette & global sizes */
:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #1a1a1a;
  --accent-dark: #2d2d2d;
  --cyber-cyan: #00d4ff;
  --cyber-red: #ff0040;
  --cyber-yellow: #ffcc00;
  --neon-green: #00ff88;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --text-muted: #666666;
  --glass-bg: rgba(45, 45, 45, 0.1);
  --border-cyber: rgba(0, 212, 255, 0.3);

  /* Useful sizes */
  --avatar-size: 100px;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, var(--primary-dark) 100%);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 25% 25%, var(--cyber-cyan) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, var(--cyber-red) 0%, transparent 50%);
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

/* Typography Overrides */
.title, .subtitle {
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
}

.subtitle {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Navigation */
.navbar.is-dark {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-cyber);
  box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}

.navbar-brand .navbar-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.5rem;
}

.logo-text {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--cyber-cyan);
  text-shadow: 0 0 10px var(--cyber-cyan);
  letter-spacing: 2px;
}

.logo-subtext {
  font-family: 'Orbitron', monospace;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
  margin-top: -5px;
}

.navbar-item {
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-item:hover {
  color: var(--cyber-cyan);
  background: transparent !important;
  text-shadow: 0 0 8px var(--cyber-cyan);
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cyber-cyan);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

/* HERO SECTION (fusion propre pour animation + overlay) */
.cyber-hero {
  background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
  position: relative;
  overflow: hidden;
  background-color: #0b0b12; /* fallback */
}

/* couche animée (cyberpulse) */
.cyber-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, var(--cyber-cyan) 50%, transparent 100%),
    linear-gradient(0deg, transparent 0%, var(--cyber-red) 50%, transparent 100%);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
  animation: cyberpulse 4s ease-in-out infinite alternate;
}

/* Ensure content above video/overlays */
.cyber-hero .hero-body,
.cyber-hero .container {
  position: relative;
  z-index: 2;
}

@keyframes cyberpulse {
  0% { opacity: 0.05; }
  100% { opacity: 0.1; }
}

.cyber-title {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: 4rem;
  color: var(--cyber-cyan);
  letter-spacing: 4px;
  margin-bottom: 1rem;
  position: relative;
}

.cyber-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-bottom: 3rem;
}

/* Glitch Effect */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch::before {
  animation: glitch-1 2s infinite;
  color: var(--cyber-red);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 2s infinite;
  color: var(--cyber-yellow);
  z-index: -2;
}

@keyframes glitch-1 {
  0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translate(0); }
  15% { transform: translate(-2px, 0); }
  50% { transform: translate(2px, 0); }
}

@keyframes glitch-2 {
  0%, 20%, 21%, 62%, 63%, 99%, 100% { transform: translate(0); }
  21% { transform: translate(2px, 0); }
  63% { transform: translate(-2px, 0); }
}

/* Hero Stats */
.hero-stats {
  margin-top: 4rem;
}

.stat-box {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
  border-color: var(--cyber-cyan);
}

.stat-number {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cyber-cyan);
  text-shadow: 0 0 10px var(--cyber-cyan);
}

.stat-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* Sections */
.cyber-section {
  background: var(--secondary-dark);
  border-top: 1px solid var(--border-cyber);
  position: relative;
}

.cyber-section-alt {
  background: var(--primary-dark);
  border-top: 1px solid var(--border-cyber);
  position: relative;
}

.cyber-section-title {
  font-family: 'Orbitron', monospace;
  color: var(--cyber-cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 15px var(--cyber-cyan);
  margin-bottom: 3rem;
}

.cyber-section-title i {
  opacity: 0.8;
}

/* Content */
.cyber-content {
  color: var(--text-primary);
}

.cyber-content h3 {
  font-family: 'Orbitron', monospace;
  margin-bottom: 1.5rem;
}

.cyber-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.cyber-quote {
  background: var(--glass-bg);
  border-left: 4px solid var(--cyber-cyan);
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(5px);
}

.cyber-quote p {
  font-size: 1.2rem;
  color: var(--cyber-cyan);
  margin-bottom: 0;
}

.cyber-quote footer {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Data Panel */
.cyber-data-panel {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.data-grid {
  display: grid;
  gap: 1rem;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-item:last-child {
  border-bottom: none;
}

.data-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.data-value {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  color: var(--cyber-cyan);
}

/* Cards */
.cyber-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
}

.cyber-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
  border-color: var(--cyber-cyan);
}

.cyber-card .card-header {
  background: rgba(0, 212, 255, 0.1);
  border-bottom: 1px solid var(--border-cyber);
}

.cyber-card .card-header-title {
  color: var(--text-primary);
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  letter-spacing: 1px;
}

.cyber-card .card-content {
  background: transparent;
}

.cyber-card .title {
  margin-bottom: 1rem;
}

.cyber-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.tags .tag {
  background: var(--accent-dark);
  color: var(--text-secondary);
  border: 1px solid var(--border-cyber);
  font-size: 0.8rem;
}

.stats-mini {
  background: var(--glass-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-mini div {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stats-mini div:last-child {
  margin-bottom: 0;
}

/* News */
.cyber-news-item {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cyber-news-item:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.cyber-news-item .media-left {
  margin-right: 1.5rem;
}

.cyber-news-item strong {
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
}

.cyber-news-item small {
  color: var(--text-muted);
}

.cyber-news-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Ticker */
.cyber-ticker {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ticker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item:last-child {
  border-bottom: none;
}

.ticker-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.ticker-value {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  color: var(--text-primary);
}

/* Financial Panel */
.cyber-financial-panel {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
}

.stat-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  border-color: var(--cyber-cyan);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
}

.stat-info .stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.stat-info .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Reports */
.cyber-reports {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  height: 100%;
}

.report-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.report-item:hover {
  border-color: var(--cyber-cyan);
  transform: translateX(5px);
  color: var(--text-primary);
}

.report-icon {
  font-size: 1.5rem;
}

.report-info {
  flex: 1;
}

.report-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.report-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.report-action {
  color: var(--text-muted);
}

.contact-investor {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
}

.contact-investor p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-investor i {
  color: var(--cyber-cyan);
}

/* Footer */
.cyber-footer {
  background: var(--primary-dark);
  border-top: 1px solid var(--border-cyber);
  color: var(--text-secondary);
}

.footer-brand .title {
  margin-bottom: 0.5rem;
}

.footer-brand .subtitle {
  color: var(--text-muted);
  font-style: italic;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cyber-cyan);
}

.cyber-divider {
  border-color: var(--border-cyber);
  margin: 2rem 0 1rem 0;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .cyber-title {
    font-size: 2.5rem;
  }

  /* Ne pas casser la grille Bulma : basculer la direction du flex */
  .hero-stats .columns {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-box {
    margin-bottom: 1rem;
  }

  .cyber-section {
    padding: 3rem 0;
  }

  .cyber-data-panel,
  .cyber-financial-panel,
  .cyber-reports {
    margin-bottom: 2rem;
  }
}

/* Animation on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Google Sheets iframe styling */
.cyber-iframe-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

/* Contact Cards */
.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
  border-color: var(--cyber-cyan);
}

.contact-avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  border: 3px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.contact-card:hover .contact-avatar {
  transform: scale(1.1);
}

.cyan-avatar {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.red-avatar {
  background: rgba(255, 0, 64, 0.15);
  border-color: var(--cyber-red);
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.4);
}

.yellow-avatar {
  background: rgba(255, 204, 0, 0.15);
  border-color: var(--cyber-yellow);
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}

.green-avatar {
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--neon-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.black-avatar {
  background: rgba(0, 0, 0, 0.15);
  border-color: var(--primary-dark);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.avatar-initials {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 10px currentColor;
}

.cyan-avatar .avatar-initials { color: var(--cyber-cyan); }
.red-avatar .avatar-initials { color: var(--cyber-red); }
.yellow-avatar .avatar-initials { color: var(--cyber-yellow); }
.green-avatar .avatar-initials { color: var(--neon-green); }

/* Avatar image helper */
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact Info / company */
.contact-info {
  width: 100%;
}

.contact-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.contact-title {
  color: var(--cyber-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-company {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}

.contact-company p {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--text-secondary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-company p:last-child { margin-bottom: 0; }

.contact-company i {
  font-size: 14px;
  margin-right: 0.5rem;
  width: 16px;
  flex-shrink: 0;
}

.contact-details {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  word-break: break-all;
}

.contact-details p:last-child { margin-bottom: 0; }

.contact-details i {
  color: var(--cyber-cyan);
  margin-right: 0.5rem;
  width: 16px;
  flex-shrink: 0;
}

.global-contact-box {
  background: var(--glass-bg);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-item {
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-item span {
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-dark); }
::-webkit-scrollbar-thumb {
  background: var(--cyber-cyan);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--cyber-red); }

/* ===== CONTACT MODALS ===== */

/* Modal Container */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* conteneur modal */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.contact-modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9998; /* juste en dessous du contenu modal mais au-dessus du reste */
}

/* Modal Content */
.modal-content {
  position: relative;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
  border: 2px solid var(--cyber-cyan);
  border-radius: 16px;
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.3),
    0 0 60px rgba(0, 212, 255, 0.2),
    inset 0 0 60px rgba(0, 212, 255, 0.05);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: modalSlideUp 0.4s ease-out;
  z-index: 9999; /* au-dessus de l'overlay */
}

@keyframes modalSlideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


.modal-close:hover {
  background: var(--cyber-red);
  color: var(--primary-dark);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 30px rgba(255, 0, 64, 0.6);
}

/* Modal Header */
.modal-header {
  text-align: center;
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid var(--border-cyber);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
}

.modal-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid;
  position: relative;
  transition: transform 0.3s ease;
}

.modal-avatar::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
}

.modal-avatar .avatar-initials {
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 0 0 20px currentColor;
}

.modal-name {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px var(--cyber-cyan);
  letter-spacing: 2px;
}

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  color: var(--cyber-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Modal Body */
.modal-body {
  padding: 2rem;
  overflow-y: auto;
  max-height: calc(90vh - 200px);
}

.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb {
  background: var(--cyber-cyan);
  border-radius: 3px;
}

/* Modal Bio Section */
.modal-bio {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
}

.modal-bio h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  color: var(--cyber-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 0 0 10px var(--cyber-cyan);
  letter-spacing: 1px;
}

.modal-bio h3 i { font-size: 1.5rem; }

.modal-bio p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  text-align: justify;
}

.modal-bio p:last-child { margin-bottom: 0; }

/* Modal Contact Form */
.modal-contact-form {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-cyber);
  border-radius: 12px;
}

.modal-contact-form h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  color: var(--cyber-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-shadow: 0 0 10px var(--cyber-cyan);
  letter-spacing: 1px;
}

.modal-contact-form h3 i { font-size: 1.5rem; }

/* Couleur accentuée pour <strong> dans modal-bio */
.modal-bio strong {
  color: #5cbe00;
  font-weight: 700;
}

/* Cyber Form Styles */
.cyber-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background: rgba(0, 212, 255, 0.05);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Rajdhani', sans-serif;
}

/* Cyber Button */
.cyber-btn {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
  border: 2px solid var(--cyber-cyan);
  color: var(--cyber-cyan);
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
  margin-top: 0.5rem;
}

.cyber-btn:hover {
  background: var(--cyber-cyan);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.cyber-btn:active { transform: translateY(0); }
.cyber-btn i { font-size: 1.2rem; }


/* Responsive Modal tweaks */
@media screen and (max-width: 768px) {
  .contact-modal { padding: 1rem; }
  .modal-content { max-height: 95vh; border-radius: 12px; }
  .modal-header { padding: 2rem 1.5rem 1.5rem; }
  .modal-avatar { width: 100px; height: 100px; }
  .modal-avatar .avatar-initials { font-size: 2rem; }
  .modal-name { font-size: 1.5rem; }
  .modal-title { font-size: 1rem; }
  .modal-body { padding: 1.5rem; max-height: calc(95vh - 180px); }
  .modal-bio, .modal-contact-form { padding: 1rem; }
  .modal-bio h3, .modal-contact-form h3 { font-size: 1.1rem; }
  .modal-close { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* Success Message Animation */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.95) 0%, rgba(0, 212, 255, 0.95) 100%);
  color: var(--primary-dark);
  padding: 2rem 3rem;
  border-radius: 12px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  z-index: 10000;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.6);
  animation: successPop 0.5s ease-out;
  text-align: center;
}

@keyframes successPop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* PORTRAIT DARLENE MODAL */
.darlene-photo-panel { border-radius: 4px; text-align: center; }
.darlene-portrait {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 4px;
  filter: grayscale(10%) brightness(1.1) contrast(1.1);
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

/* HERO VIDEO (kept but simplified) */
.hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 120%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: contrast(1.05) saturate(1.05) brightness(0.85);
  will-change: transform;
}

/* Improve text contrast if necessary */
.cyber-title,
.cyber-subtitle,
.stat-box {
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

/* Hide video and use poster on small screens */
@media (max-width: 768px) {
  .hero-video { display: none; }
  .cyber-hero {
    background-image: url('/assets/img/hero-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* Respect users' reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .glitch::before,
  .glitch::after,
  .cyber-hero::before {
    animation: none;
  }
}

/* Google Sheets iframe styling kept minimal */
.cyber-iframe-wrapper { display: flex; justify-content: center; align-items: center; padding: 1rem; background: rgba(0,0,0,0.3); border-radius: 12px; overflow: hidden; }

/* Animation on small components (use sparingly) */
.fade-in-up { animation: fadeInUp 0.6s ease-out; }


/* APPARITION PROGRESSIVE DES STATS DU HERO (TEST) */

.hero-stat-section {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
  /* on lance l'animation différée qui rend visible à la fin */
  animation: hero-reveal 600ms ease 2s forwards;
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

/* ===== CONTACT BUTTONS (PROFILE & MESSAGE) ===== */

/* Container for buttons */
.contact-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Base style for contact buttons */
.contact-btn {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 2px solid;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 180px;
}

.contact-btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.contact-btn:hover i {
  transform: scale(1.15);
}

/* Glowing effect on hover */
.contact-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: 0;
}

.contact-btn:hover::before {
  width: 300px;
  height: 300px;
}

.contact-btn span,
.contact-btn i {
  position: relative;
  z-index: 1;
}

/* Profile Button - Cyan Theme */
.btn-profile {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.05) 100%);
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
  box-shadow: 
    0 0 15px rgba(0, 212, 255, 0.2),
    inset 0 0 15px rgba(0, 212, 255, 0.05);
}

.btn-profile:hover {
  background: var(--cyber-cyan);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.5),
    0 5px 20px rgba(0, 212, 255, 0.3);
  border-color: var(--cyber-cyan);
}

/* Cibler l'icône à l'intérieur du bouton au survol */
.btn-profile:hover i {
  color: var(--primary-dark);
}

.btn-profile:active {
  transform: translateY(-1px);
}

/* Message Button - Neon Green Theme */
.btn-message {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.05) 100%);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 
    0 0 15px rgba(0, 255, 136, 0.2),
    inset 0 0 15px rgba(0, 255, 136, 0.05);
}

.btn-message:hover {
  background: var(--neon-green);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 
    0 0 30px rgba(0, 255, 136, 0.5),
    0 5px 20px rgba(0, 255, 136, 0.3);
  border-color: var(--neon-green);
}

/* Cibler l'icône à l'intérieur du bouton au survol */
.btn-message:hover i {
  color: var(--primary-dark);
}

.btn-message:active {
  transform: translateY(-1px);
}

/* Responsive adjustments for contact buttons */
@media screen and (max-width: 768px) {
  .contact-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .contact-btn {
    min-width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* Animation for button appearance */
@keyframes buttonFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-btn {
  animation: buttonFadeIn 0.4s ease-out;
}