@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
  --bg-dark: #F8FBFF;
  --primary: #0066CC;
  --secondary: #00A3E0;
  --accent: #4DA6FF;
  --text-main: #1A2332;
  --text-muted: #5A6C84;
  
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 102, 204, 0.1);
  --glass-highlight: rgba(0, 102, 204, 0.15);
  --glass-shadow: 0 4px 20px rgba(0, 102, 204, 0.1);
  
  --gradient-main: linear-gradient(135deg, #0066CC 0%, #00A3E0 100%);
  --gradient-glow: conic-gradient(from 180deg at 50% 50%, #0066CC 0deg, #00A3E0 180deg, #0066CC 360deg);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: linear-gradient(135deg, #F8FBFF 0%, #E8F2FF 100%);
  color: var(--text-main);
  position: relative;
}

/* Logo en fond d'écran avec opacité 50% */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/20260103_0622_Logo Fonds Transparent_remix_01ke14vvwze25avmpq4sgmdav2.png');
  background-size: 40%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* Background Animation Effects */
.bg-effect-1, .bg-effect-2 {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  animation: float 20s infinite alternate;
}

.bg-effect-1 {
  top: -300px;
  left: -300px;
  background: var(--gradient-main);
}

.bg-effect-2 {
  bottom: -300px;
  right: -300px;
  background: var(--gradient-main);
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 7rem 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  margin: 0;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0066CC, #00A3E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 20px rgba(0, 102, 204, 0.2));
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Glass Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-highlight);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.card:hover::before {
  opacity: 1;
}

.card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Grid Layouts */
.grid-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  background: var(--gradient-main);
  color: white;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.button::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.button:hover::after {
  opacity: 1;
}

.button-secondary {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: none;
}

.button-secondary:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Inputs */
.input, .note-editor {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input:focus, .note-editor:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.note-editor {
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
}

/* Navigation */
.nav-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  display: flex;
  gap: 1rem;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 100;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}

.nav-item.active {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Icons & Graphics */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.05);
  margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 768px) {
  .header h1 { font-size: 2.5rem; }
  .nav-bar { 
    bottom: 0; 
    left: 0; 
    transform: none; 
    width: 100%; 
    border-radius: 0; 
    justify-content: space-around;
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.95);
  }
  .nav-item { padding: 0.5rem; font-size: 0.9rem; }
  .container { padding-bottom: 6rem; }
}
