/* ========================================
   HOME.CSS - Styles page d'accueil
   ======================================== */

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero #starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}

.hero-container {
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin: 1.5rem 0 2rem;
  line-height: 1.8;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.profile-pic {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-1);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ========== TYPEWRITER EFFECT ========== */
.typewriter {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 6px;
  background: var(--accent-1);
  animation: blink 0.8s infinite;
  vertical-align: -0.1em;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* ========== QUI SUIS-JE SECTION ========== */
#qui-suis-je h3 {
  font-size: 1.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ========== TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gradient);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-content {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.timeline-content h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--accent-1);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.timeline-text {
  flex: 1;
}

.timeline-text h3 {
  margin-bottom: 0.5rem;
}

.timeline-text h4 {
  margin-bottom: 0;
}

.timeline-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.timeline-logo:hover {
  transform: scale(1.05);
  border-color: var(--accent-1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-1);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

.skill-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.skill-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

.skill-item:hover .skill-img {
  transform: scale(1.15);
}

.skill-item p {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  text-align: center;
}

.skill-item:hover p {
  color: var(--text-primary);
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

.project-content {
  padding: 2rem;
  flex-direction: column;
  flex: 1;
  display: flex;
}

.project-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  color: var(--accent-1);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 1rem;
}

.project-badge-entreprise {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-2);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.project-text {
  flex: 1;
}

.project-text h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.project-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.project-logo:hover {
  transform: scale(1.05);
  border-color: var(--accent-1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-badge-tech {
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-badge-tech:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-view-btn {
  margin-top: auto;
  width: fit-content;
  text-align: center;
}

.projects-view-all {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ========== SECTION VEILLE ========== */
.veille-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.veille-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.veille-content p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.separator {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-1) 10%,
    var(--accent-2) 50%,
    var(--accent-1) 90%,
    transparent 100%
  );
  margin: 2rem 0;
  border-radius: 2px;
  opacity: 0.5;
}

.veille-content-article {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.veille-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

.veille-text-content h4 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.veille-text-content a {
  width: fit-content;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-size: 0.9rem;
}

.veille-text-content a:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.veille-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.veille-image:hover {
  transform: scale(1.05);
  border-color: var(--accent-1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* ========== RESPONSIVE - TABLETTES ========== */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 100%;
  }

  .hero-stats {
    gap: 2rem;
    justify-content: center;
  }

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

  .profile-pic {
    width: 300px;
    height: 300px;
  }

  .typewriter {
    font-size: 2.5rem;
  }

  .timeline-logo {
    display: none;
  }

  .timeline-header {
    display: block;
  }

  .timeline-text h3 {
    margin-bottom: 0.5rem;
  }

  .timeline-text h4 {
    margin-bottom: 1rem;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  #qui-suis-je h3 {
    font-size: 1.25rem;
  }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .veille-content-article {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .veille-image {
    display: none;
  }

  .veille-text-content {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .project-badge-tech {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .project-logo {
    display: none;
  }

  .project-header {
    display: block;
  }

  .project-text h3 {
    margin-bottom: 1rem;
  }

  .veille-text-content a {
    width: 100%;
    text-align: center;
  }

  .profile-pic {
    width: 200px;
    height: 200px;
  }

  #qui-suis-je h3 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -2.5rem;
  }
}
