/* styles.css - Version Island Navigation */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;700;800&display=swap');

:root {
  /* Palette "Deep Slate" */
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #334155;
  
  /* Accents */
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #0ea5e9;
  --success: #10b981;
  
  /* Typographie */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --border: rgba(255, 255, 255, 0.08);
  --radius: 24px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at top left, rgba(99, 102, 241, 0.15), transparent 50%),
    radial-gradient(at bottom right, rgba(14, 165, 233, 0.1), transparent 50%);
  padding-top: 100px; /* Espace pour le header flottant */
  padding-bottom: 40px;
}

h1, h2, h3 { font-family: 'Outfit', sans-serif; color: #fff; }

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

.text-link {
  color: var(--secondary);
  font-weight: 500;
  border-bottom: 1px dashed rgba(14, 165, 233, 0.3);
}
.text-link:hover { color: var(--primary); border-bottom-style: solid; }

.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- NAVIGATION ÎLOT FLOTTANT (Top) --- */
.floating-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.7); /* Sombre et transparent */
  backdrop-filter: blur(16px);        /* Le flou "verre" */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;               /* Forme de pilule */
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.5);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-item i { font-size: 1.1rem; }

/* Effet survol : le fond s'éclaire légèrement */
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Élément actif */
.nav-item.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Mobile : on cache le texte, on garde les icônes */
@media (max-width: 768px) {
  .nav-item span { display: none; }
  .nav-item { padding: 12px; }
}

/* --- GRILLE BENTO --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}

/* Hero Section */
.hero-card {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: center;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
}

.hero-card h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 1.5rem 0 1rem;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* Photo Card */
.photo-card {
  grid-column: span 1;
  grid-row: span 2;
  padding: 0;
  border: 0;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}
.photo-card:hover img { transform: scale(1.03); }

/* Autres cartes */
.link-card {
  grid-column: span 1;
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  justify-content: space-between;
  cursor: pointer;
}

.stats-card { align-items: center; justify-content: center; text-align: center; }
.stats-number { font-size: 3.5rem; font-weight: 700; color: var(--primary); line-height: 1; }

.tech-card { grid-column: span 2; }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.tech-pill {
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: 0.2s;
}
.tech-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #fff;
  border-color: var(--primary);
}

.contact-card {
  grid-column: span 1;
  background: var(--primary);
  color: white;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
}
.contact-card:hover { background: #4f46e5; }

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-card { height: 400px; }
}
@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .hero-card { grid-column: span 1; }
  .floating-nav { width: 90%; justify-content: space-around; padding: 10px; }
}