/*
Theme Name: Digit'alt F11 Pro
Version: 2.0
Description: Thème avancé avec effets glassmorphism et animations fluides
*/

:root {
  --accent: #0b72ff;
  --accent-dark: #0953cc;
  --accent-light: #3d8fff;
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --bg: #0f1720;
  --bg-lighter: #1a2332;
  --card: #111827;
  --muted: #9ca3af;
  --text: #e6eef8;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { 
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg); 
  color: var(--text); 
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================
   CANVAS BACKGROUND
   ============================================ */
#bg-canvas { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* ============================================
   OVERLAY GRADIENT
   ============================================ */
.page-overlay { 
  position: fixed; 
  inset: 0; 
  background: linear-gradient(
    180deg, 
    rgba(2, 6, 23, 0.4) 0%,
    rgba(15, 23, 32, 0.5) 50%,
    rgba(2, 6, 23, 0.6) 100%
  );
  z-index: 1; 
  pointer-events: none;
  backdrop-filter: blur(1px);
}

/* ============================================
   CONTAINER
   ============================================ */
.container { 
  position: relative; 
  z-index: 2; 
  max-width: 1200px; 
  margin: 0 auto;
  padding: 32px 24px;
  animation: fadeInUp 0.8s var(--transition-smooth);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header.site-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 24px;
  padding: 20px 0;
  margin-bottom: 40px;
  position: relative;
}

header.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 58, 237, 0.3) 50%,
    transparent
  );
}

.brand { 
  display: flex; 
  align-items: center; 
  gap: 16px;
  transition: transform 0.3s var(--transition-smooth);
}

.brand:hover {
  transform: translateX(5px);
}

.logo { 
  width: 64px; 
  height: 64px; 
  border-radius: 12px; 
  background: linear-gradient(135deg, var(--accent), var(--purple)); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 700; 
  font-size: 24px;
  color: white;
  box-shadow: 
    0 4px 20px rgba(11, 114, 255, 0.3),
    0 0 40px rgba(124, 58, 237, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.logo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo:hover {
  transform: scale(1.05) rotate(-5deg);
  box-shadow: 
    0 8px 30px rgba(11, 114, 255, 0.5),
    0 0 60px rgba(124, 58, 237, 0.4);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav.main-navigation {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav.main-navigation a { 
  color: var(--muted); 
  text-decoration: none; 
  padding: 10px 18px; 
  border-radius: 10px; 
  border: 1px solid transparent;
  background: rgba(124, 58, 237, 0.08);
  backdrop-filter: blur(10px);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

nav.main-navigation a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 58, 237, 0.3),
    transparent
  );
  transition: left 0.5s;
}

nav.main-navigation a:hover::before {
  left: 100%;
}

nav.main-navigation a:hover { 
  color: var(--text);
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

nav.main-navigation a.active,
nav.main-navigation a.current-menu-item { 
  color: white;
  background: linear-gradient(135deg, rgba(11, 114, 255, 0.3), rgba(124, 58, 237, 0.3));
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 
    0 4px 15px rgba(124, 58, 237, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ============================================
   CARDS (GLASSMORPHISM)
   ============================================ */
.card { 
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 20px; 
  padding: 32px; 
  margin-bottom: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(124, 58, 237, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 58, 237, 0.5),
    transparent
  );
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(124, 58, 237, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 { 
  margin: 0 0 16px 0;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: clamp(20px, 3vw, 24px); margin-top: 24px; }

p.lead { 
  color: var(--muted); 
  margin: 16px 0 24px;
  font-size: 18px;
  line-height: 1.7;
}

/* ============================================
   BUTTONS & CTA
   ============================================ */
.cta,
button.cta { 
  display: inline-block; 
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white; 
  padding: 14px 28px; 
  border-radius: 12px; 
  text-decoration: none; 
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: 
    0 4px 15px rgba(11, 114, 255, 0.4),
    0 0 30px rgba(124, 58, 237, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta:hover::before {
  width: 300px;
  height: 300px;
}

.cta:hover { 
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(11, 114, 255, 0.6),
    0 0 50px rgba(124, 58, 237, 0.4);
}

.cta:active {
  transform: translateY(0) scale(0.98);
}

/* ============================================
   FORMS
   ============================================ */
input,
textarea,
select { 
  background: rgba(255, 255, 255, 0.03);
  color: var(--text); 
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px; 
  padding: 14px 18px; 
  width: 100%; 
  outline: none;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s var(--transition-smooth);
  backdrop-filter: blur(10px);
}

/* Exclure les boutons et checkboxes */
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
button {
  width: auto;
  padding: initial;
}

input:focus,
textarea:focus,
select:focus { 
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 0 0 3px rgba(11, 114, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Placeholder styling */
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

input:focus::placeholder,
textarea:focus::placeholder {
  opacity: 0.4;
}

/* ============================================
   SOUND BUTTON
   ============================================ */
.sound-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(11, 114, 255, 0.15));
  backdrop-filter: blur(10px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s var(--transition-bounce);
  box-shadow: 
    0 4px 20px rgba(124, 58, 237, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sound-btn:hover { 
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(11, 114, 255, 0.25));
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 8px 30px rgba(124, 58, 237, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sound-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(11, 114, 255, 0.4));
  border-color: rgba(124, 58, 237, 0.8);
  animation: pulse-sound 2s infinite;
}

@keyframes pulse-sound {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(124, 58, 237, 0.7), 0 0 40px rgba(124, 58, 237, 0.3);
  }
}

.sound-btn svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sound-btn.active .sound-wave {
  animation: soundWave 1s ease-in-out infinite;
}

.sound-btn.active .wave-1 { animation-delay: 0s; }
.sound-btn.active .wave-2 { animation-delay: 0.15s; }

@keyframes soundWave {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

#sound-visualizer { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  pointer-events: none; 
  z-index: 999;
}

/* ============================================
   FOOTER
   ============================================ */
footer.site-footer { 
  margin-top: 60px;
  padding: 24px 0;
  color: var(--muted); 
  font-size: 14px; 
  text-align: center;
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  position: relative;
}

footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 58, 237, 0.5),
    transparent
  );
}

/* ============================================
   LINKS IN CONTENT
   ============================================ */
.entry-content a,
.card a:not(.cta) {
  color: var(--accent-light);
  text-decoration: none;
  position: relative;
  font-weight: 500;
  transition: all 0.3s var(--transition-smooth);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-content a::after,
.card a:not(.cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--transition-smooth);
  border-radius: 2px;
}

.entry-content a:hover::after,
.card a:not(.cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.entry-content a:hover,
.card a:not(.cta):hover {
  filter: brightness(1.2);
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

/* ============================================
   LISTS
   ============================================ */
.entry-content ul,
.entry-content ol {
  margin: 20px 0 20px 24px;
}

.entry-content li {
  margin-bottom: 12px;
  line-height: 1.7;
  position: relative;
  padding-left: 8px;
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 12px;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.entry-content ol {
  counter-reset: item;
  list-style: none;
}

.entry-content ol li {
  counter-increment: item;
}

.entry-content ol li::before {
  content: counter(item);
  position: absolute;
  left: -24px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  header.site-header { 
    flex-direction: column; 
    align-items: flex-start;
    gap: 16px;
  }
  
  nav.main-navigation {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    
  }
  
  nav.main-navigation a {
    flex: 1;
    text-align: center;
    min-width: 80px;
  }
  
  .card {
    padding: 24px;
    border-radius: 16px;
  }
  
  .sound-btn {
    width: 56px;
    height: 56px;
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 16px;
  }
  
  .logo {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.fade-in {
  animation: fadeIn 1s var(--transition-smooth);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}
.visible {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s, transform 0.5s;
}



/* Selection personnalisée */
::selection {
  background: rgba(124, 58, 237, 0.4);
  color: white;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--purple));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-light), var(--purple));
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, border 0.2s;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

nav a.active,
nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);

  transform: translateY(-2px);
  filter: brightness(1.2);
}
nav a:active {
  transform: translateY(0);
  box-shadow: none;
  filter: brightness(1);
}

/* Fin du fichier CSS */
