/* DESIGN TOKENS - PREMIUM 2026 */
:root {
  --bg-color: #05050a; /* Noir sidéral abyssal */
  --text-color: #e2e8f0; /* Blanc stellaire */
  --primary-color: #00f0ff; /* Cyan Néon (Zero Gravity) */
  --accent-color: #bf00ff; /* Magenta cosmique */
  --glass-bg: rgba(10, 10, 20, 0.5);
  --glass-border: rgba(0, 240, 255, 0.15); /* Bordure subtile cyan */
  --picto-color: rgba(0, 240, 255, 0.15);
  --shadow-color: rgba(0, 0, 0, 0.7);
  
  --font-title: 'Space Grotesk', sans-serif;
  --font-text: 'Outfit', sans-serif;
}

[data-theme="light"] {
  --bg-color: #f8fafc; /* Blanc lunaire */
  --text-color: #0f172a; /* Bleu nuit très profond */
  --primary-color: #0ea5e9; /* Bleu électrique spacial */
  --glass-bg: rgba(255, 255, 255, 0.6); 
  --glass-border: rgba(14, 165, 233, 0.2);
  --picto-color: rgba(14, 165, 233, 0.1);
  --shadow-color: rgba(15, 23, 42, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-text);
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

/* Arrière-plan Riches avec SVGs flottants (Thème Web Agency) */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 200vw; height: 200vh;
  z-index: -1;
  background-image: url('images/bg-space.svg');
  background-size: 600px;
  color: var(--picto-color);
  opacity: 1;
  animation: bg-space-drift 90s linear infinite, bg-pulse 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes bg-space-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100vw, -100vh); }
}

@keyframes bg-pulse {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Halos Lumineux (Le véritable Wow effect) */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -2;
  opacity: 0.6;
  animation: float-orb 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
  pointer-events: none;
}
.orb-1 {
  top: -20%; left: -10%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 60%);
}
.orb-2 {
  bottom: -20%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, var(--accent-color) 0%, transparent 60%);
  animation-delay: -5s;
}
.orb-3 {
  top: 40%; left: 30%; width: 30vw; height: 30vw;
  background: radial-gradient(circle, #00e5ff 0%, transparent 60%);
  animation-delay: -10s;
  opacity: 0.3;
}
[data-theme="light"] .glow-orb { opacity: 0.15; } /* Très subtil en clair */

@keyframes float-orb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15vw, 15vh) scale(1.3); }
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
h1 { 
  font-size: 4.5rem; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -2px; 
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.4); 
}
[data-theme="light"] h1 { text-shadow: none; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary-color); }
p { font-size: 1.15rem; line-height: 1.6; opacity: 0.85; margin-bottom: 1.5rem; font-weight: 300; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* Navbar */
nav {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
}
.logo-container { display: flex; align-items: center; text-decoration: none; }
.logo-image { height: 90px; width: auto; filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6)); transition: filter 0.3s ease, transform 0.3s ease; }
.logo-container:hover .logo-image { filter: drop-shadow(0 0 25px rgba(0, 240, 255, 1)); transform: scale(1.05); }

/* Theme Toggling for Logo */
.logo-light { display: none; }
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.6)); }

.theme-toggle {
  background: none; border: 1px solid var(--glass-border); color: var(--text-color);
  padding: 0.5rem 1.5rem; border-radius: 30px; cursor: pointer; font-family: var(--font-text); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle:hover { background: var(--text-color); color: var(--bg-color); transform: scale(1.05); }

/* Hero */
.hero {
  min-height: 70vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: 150px; position: relative;
}
.hero-content { max-width: 900px; transform: translateY(-5vh); }

/* Bento Grid */
.bento-section { padding: 60px 0; }
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* Amélioration massive des cartes Bento */
.bento-card {
  position: relative; 
  background: var(--glass-bg); 
  border: 1px solid var(--glass-border);
  border-radius: 24px; 
  padding: 2rem; 
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; 
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s, background 0.4s; 
  cursor: pointer;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px var(--shadow-color), inset 0 1px 0 rgba(255,255,255,0.05);
}

.bento-card:hover { 
  transform: translateY(-15px) scale(1.03); 
  box-shadow: 0 30px 60px var(--shadow-color), 0 0 40px rgba(0, 240, 255, 0.2); 
  background: var(--bg-color); 
  border-color: var(--primary-color);
}

/* Image overlays */
.bento-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center; z-index: 0; 
  opacity: 0.35; transition: all 0.6s;
}
[data-theme="light"] .bento-card::before { 
  opacity: 0.85; /* Images très visibles en light mode */
  mix-blend-mode: normal; 
}
.bento-card:hover::before { 
  opacity: 0.6; 
  transform: scale(1.05); /* Effet zoom subtil */
}
[data-theme="light"] .bento-card:hover::before { 
  opacity: 1; /* Transparence totale au survol en light mode */
}

.bento-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, var(--bg-color) 10%, transparent 100%); z-index: 1;
}
.bento-content { position: relative; z-index: 2; }
.bento-content h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary-color); }
.bento-content p { font-size: 1.15rem; margin-bottom: 0; }

/* Stat Cards (Mini Dashboard) - Haute Lisibilité */
.stat-card {
  background: rgba(15, 15, 20, 0.85); /* Presque opaque pour masquer le fond agité */
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px var(--shadow-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.3s;
}
[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.95);
}
.stat-card:hover { transform: translateY(-5px); }
.stat-card h3 {
  font-size: 3rem; margin: 0 0 0.5rem 0;
  text-shadow: 0 0 20px currentColor; /* Halo coloré */
}
.stat-card p {
  margin: 0; font-size: 0.95rem; text-transform: uppercase; 
  letter-spacing: 1px; font-weight: 700; color: var(--text-color);
}

.card-creation::before { background-image: url('images/creation.png'); }
.card-redesign::before { background-image: url('images/redesign.png'); }
.card-tools::before { background-image: url('images/tools.png'); }

/* Contact Form */
.contact-section { padding: 60px 0 100px 0; text-align: center; }
.contact-form {
  max-width: 600px; margin: 0 auto; background: var(--glass-bg);
  border: 1px solid var(--glass-border); padding: 3rem; border-radius: 20px; 
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 40px var(--shadow-color), inset 0 1px 0 rgba(255,255,255,0.05);
}
.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight:600; opacity: 0.7;}
/* Amélioration de l'Accessibilité des formulaires (Backend & Frontend) */
.form-control, .input-group input, .input-group textarea {
  width: 100%; padding: 0.8rem 1rem; 
  background: rgba(255, 255, 255, 0.08) !important; /* Plus de contraste */
  border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Bordure nette */
  border-radius: 8px; color: var(--text-color) !important; font-family: var(--font-text); 
  transition: all 0.3s; outline: none;
}
[data-theme="light"] .form-control, [data-theme="light"] .input-group input, [data-theme="light"] .input-group textarea {
  background: rgba(0, 0, 0, 0.05) !important; 
  border: 1px solid rgba(0, 0, 0, 0.3) !important;
}
.form-control:focus, .input-group input:focus, .input-group textarea:focus { 
  border-color: var(--primary-color) !important; 
  background: rgba(255, 255, 255, 0.15) !important; 
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
[data-theme="light"] .form-control:focus, [data-theme="light"] .input-group input:focus, [data-theme="light"] .input-group textarea:focus { 
  background: rgba(0, 0, 0, 0.1) !important; 
}
select.form-control option, select option {
  background: var(--bg-color); color: var(--text-color);
}

button, .btn {
  background: var(--text-color); color: var(--bg-color); border: none; padding: 1rem 3rem;
  font-size: 1.1rem; font-family: var(--font-text); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 40px; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s; margin-top: 1rem; display: inline-block; text-decoration: none;
}
button:hover, .btn:hover { transform: scale(1.05); box-shadow: 0 10px 20px var(--shadow-color); }
.btn-small { padding: 0.5rem 1rem; font-size: 0.8rem; margin:0;}








/* Native Intersection Observer Reveal */
.reveal-on-scroll, .bento-card { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-on-scroll.visible, .bento-card.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE DESIGN (Mobile & Tablet) */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem !important; letter-spacing: 0 !important; line-height: 1.3 !important; word-break: break-word; }
  h2 { font-size: 1.8rem !important; word-break: break-word; line-height: 1.3; }
  p { font-size: 1.1rem !important; }
  
  /* Navbar sur une seule ligne (Premium Mobile) */
  nav { padding: 0.8rem 1rem !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; gap: 5px; }
  .logo-image { height: 40px !important; } 
  .burger-menu { display: none; }
  .nav-links { width: auto; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; margin-top: 0; align-items: center; }
  .btn, button, .theme-toggle { padding: 0.4rem 0.8rem !important; font-size: 0.75rem !important; white-space: nowrap; margin: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
  
  .hero { 
    display: block !important; 
    padding-top: 140px !important; 
    padding-bottom: 60px !important;
    min-height: auto !important; 
    height: auto !important;
  }
  .hero-content { 
    transform: none !important; 
    padding: 0 1.5rem; 
    width: 100%; 
    margin: 0 auto;
  }
  
  .bento-section { 
    margin-top: 20px !important; 
    padding: 40px 15px !important; 
  }
  .bento-grid { display: flex; flex-direction: column; gap: 2rem; }
  .bento-card { min-height: auto !important; padding: 2rem !important; }
  
  .contact-section { padding: 60px 15px !important; }
  .contact-form { padding: 2rem 1.5rem !important; }
}
