/* ================================

   RESET & VARIABLES

================================ */

* {

  margin: 0;

  padding: 0;

  box-sizing: border-box;

}



:root {

  /* Couleurs principales */

  --primary-color: #007bff;

  --primary-dark: #0056b3;

  --primary-light: #4d9fff;

  --secondary-color: #6c63ff;

  --accent-color: #00d4ff;

  

  /* Couleurs de fond */

  --bg-dark: #020509;

  --bg-darker: #000204;

  --bg-light: #070a12;

  --bg-card: #0a0d1a;

  

  /* Couleurs de texte */

  --text-primary: #ffffff;

  --text-secondary: #a0aec0;

  --text-muted: #718096;

  

  /* Autres couleurs */

  --success: #10b981;

  --warning: #f59e0b;

  --error: #ef4444;

  

  /* Espacement */

  --spacing-xs: 0.5rem;

  --spacing-sm: 1rem;

  --spacing-md: 1.5rem;

  --spacing-lg: 2rem;

  --spacing-xl: 3rem;

  --spacing-2xl: 4rem;

  

  /* Border radius */

  --radius-sm: 0.375rem;

  --radius-md: 0.5rem;

  --radius-lg: 1rem;

  --radius-xl: 1.5rem;

  

  /* Transitions */

  --transition-fast: 0.15s ease;

  --transition-base: 0.3s ease;

  --transition-slow: 0.5s ease;

  

  /* Shadows */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);

  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);

  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);

  --shadow-glow: 0 0 15px rgba(0, 123, 255, 0.2);

}



html {

  scroll-behavior: smooth;

}



body {

  font-family: 'Poppins', sans-serif;

  background: var(--bg-dark);

  color: var(--text-primary);

  line-height: 1.6;

  overflow-x: hidden;

  font-size: 0.95rem;

}



/* Background animé */

body::before {

  content: '';

  position: fixed;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: 

    radial-gradient(circle at 20% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),

    radial-gradient(circle at 80% 80%, rgba(108, 99, 255, 0.1) 0%, transparent 50%);

  pointer-events: none;

  z-index: -1;

}



/* ================================

   NAVBAR

================================ */

.navbar {

  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  background: rgba(10, 14, 39, 0.95);

  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);

  padding: 1rem 0;

  z-index: 1000;

  transition: all var(--transition-base);

}



.navbar.scrolled {

  padding: 0.5rem 0;

  box-shadow: var(--shadow-lg);

}



.navbar-container {

  max-width: 1200px;

  margin: 0 auto;

  padding: 0 2rem;

  display: flex;

  justify-content: space-between;

  align-items: center;

}



.navbar-logo {

  display: flex;

  align-items: center;

  gap: 1rem;

  font-size: 1.5rem;

  font-weight: 700;

  color: var(--text-primary);

  text-decoration: none;

}



.logo-img {

  width: 65px;

  height: 65px;

  border-radius: 50%;

  border: 2px solid var(--primary-color);

  transition: transform var(--transition-base);

}



.logo-img:hover {

  transform: scale(1.1) rotate(5deg);

}



.logo-text {

  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}



.mobile-menu-toggle {

  display: none;

  flex-direction: column;

  gap: 0.4rem;

  background: none;

  border: none;

  cursor: pointer;

  padding: 0.5rem;

}



.mobile-menu-toggle span {

  width: 25px;

  height: 3px;

  background: var(--text-primary);

  border-radius: 2px;

  transition: all var(--transition-base);

}



.mobile-menu-toggle.active span:nth-child(1) {

  transform: rotate(45deg) translate(8px, 8px);

}



.mobile-menu-toggle.active span:nth-child(2) {

  opacity: 0;

}



.mobile-menu-toggle.active span:nth-child(3) {

  transform: rotate(-45deg) translate(8px, -8px);

}



.navbar-menu {

  display: flex;

  list-style: none;

  gap: 0.25rem;

  align-items: center;

}



.navbar-item {

  margin: 0;

}



.navbar-link {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  padding: 0.6rem 1rem;

  color: var(--text-secondary);

  text-decoration: none;

  border-radius: var(--radius-lg);

  transition: all var(--transition-base);

  position: relative;

  font-size: 0.95rem;

  white-space: nowrap;

}



.navbar-link svg {

  width: 18px;

  height: 18px;

  flex-shrink: 0;

}



.navbar-link:hover {

  color: var(--text-primary);

  background: rgba(255, 255, 255, 0.05);

}



.navbar-link.active {

  color: var(--text-primary);

  background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(108, 99, 255, 0.2));

  box-shadow: var(--shadow-glow);

}



/* ================================

   MAIN CONTENT

================================ */

.main-content {

  margin-top: 120px;

}



.section {

  padding: var(--spacing-lg) 0;

  min-height: 50vh;

  display: flex;

  align-items: center;

}



.container {

  max-width: 1200px;

  margin: 0 auto;

  padding: 0 2rem;

  width: 100%;

}



.section-title {

  font-size: 2rem;

  font-weight: 700;

  margin-bottom: var(--spacing-xl);

  display: flex;

  align-items: center;

  gap: 1rem;

  color: var(--text-primary);

}



.section-title svg {

  color: var(--primary-color);

}



/* ================================

   HERO SECTION

================================ */

.hero-section {

  padding: 2rem 0 !important;

  min-height: auto !important;

}



.hero-section .container {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: var(--spacing-xl);

  align-items: center;

}



.status-badge {

  display: inline-flex;

  align-items: center;

  gap: 0.75rem;

  padding: 0.75rem 1.5rem;

  background: rgba(0, 123, 255, 0.1);

  border: 1px solid rgba(0, 123, 255, 0.3);

  border-radius: var(--radius-xl);

  margin-bottom: var(--spacing-lg);

  animation: pulse-border 2s ease-in-out infinite;

}



@keyframes pulse-border {

  0%, 100% {

    border-color: rgba(0, 123, 255, 0.3);

  }

  50% {

    border-color: rgba(0, 123, 255, 0.6);

  }

}



.status-dot {

  width: 10px;

  height: 10px;

  background: var(--success);

  border-radius: 50%;

  animation: pulse-dot 2s ease-in-out infinite;

}



@keyframes pulse-dot {

  0%, 100% {

    transform: scale(1);

    opacity: 1;

  }

  50% {

    transform: scale(1.2);

    opacity: 0.8;

  }

}



.status-text {

  color: var(--primary-color);

  font-weight: 500;

  font-size: 0.8rem;

}



.hero-title {

  font-size: 2.5rem;

  font-weight: 700;

  line-height: 1.2;

  margin-bottom: var(--spacing-md);

  text-align: left;

}



.hero-title .highlight {

  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  background-clip: text;

}



.hero-description {

  font-size: 1rem;

  color: var(--text-secondary);

  margin-bottom: var(--spacing-xl);

  line-height: 1.8;

  text-align: left;

}



.hero-buttons {

  display: flex;

  gap: 1rem;

  margin-bottom: var(--spacing-xl);

  flex-wrap: wrap;

}



.btn {

  display: inline-flex;

  align-items: center;

  gap: 0.5rem;

  padding: 1rem 2rem;

  border-radius: var(--radius-lg);

  text-decoration: none;

  font-weight: 600;

  transition: all var(--transition-base);

  cursor: pointer;

  border: none;

  font-size: 1rem;

}



.btn-primary {

  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

  color: var(--text-primary);

  box-shadow: var(--shadow-md);

}



.btn-primary:hover {

  transform: translateY(-2px);

  box-shadow: var(--shadow-lg), var(--shadow-glow);

}



.btn-secondary {

  background: rgba(255, 255, 255, 0.05);

  color: var(--text-primary);

  border: 1px solid rgba(255, 255, 255, 0.2);

}



.btn-secondary:hover {

  background: rgba(255, 255, 255, 0.1);

  border-color: var(--primary-color);

}



.btn-full {

  width: 100%;

  justify-content: center;

}



.hero-social {

  display: flex;

  gap: 1rem;

}



.social-link,

.social-btn {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 50px;

  height: 50px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: var(--radius-md);

  color: var(--text-secondary);

  transition: all var(--transition-base);

  text-decoration: none;

}



.social-link:hover,

.social-btn:hover {

  background: var(--primary-color);

  border-color: var(--primary-color);

  color: var(--text-primary);

  transform: translateY(-3px);

  box-shadow: var(--shadow-glow);

}



.hero-image {

  display: flex;

  justify-content: center;

  align-items: center;

}



.image-wrapper {

  position: relative;

  width: 400px;

  height: 400px;

}



.profile-img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  border-radius: 50%;

  border: 5px solid var(--primary-color);

  box-shadow: var(--shadow-xl), var(--shadow-glow);

  animation: float 6s ease-in-out infinite;

}



@keyframes float {

  0%, 100% {

    transform: translateY(0);

  }

  50% {

    transform: translateY(-20px);

  }

}



.image-decoration {

  position: absolute;

  top: -20px;

  right: -20px;

  width: 120px;

  height: 120px;

  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

  border-radius: 50%;

  opacity: 0.3;

  z-index: -1;

  animation: rotate 10s linear infinite;

}



@keyframes rotate {

  from {

    transform: rotate(0deg);

  }

  to {

    transform: rotate(360deg);

  }

}



/* ================================

   TIMELINE (PARCOURS)

================================ */

.timeline {

  position: relative;

  max-width: 800px;

  margin: 0 auto;

  padding-left: 50px;

}



.timeline::before {

  content: '';

  position: absolute;

  left: 20px;

  top: 0;

  bottom: 0;

  width: 2px;

  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));

}



.timeline-item {

  position: relative;

  margin-bottom: var(--spacing-xl);

}



.timeline-dot {

  position: absolute;

  left: -38px;

  top: 0;

  width: 16px;

  height: 16px;

  background: var(--primary-color);

  border: 4px solid var(--bg-dark);

  border-radius: 50%;

  box-shadow: var(--shadow-glow);

}



.timeline-content {

  background: var(--bg-card);

  padding: var(--spacing-lg);

  border-radius: var(--radius-lg);

  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: all var(--transition-base);

}



.timeline-content:hover {

  transform: translateX(10px);

  border-color: var(--primary-color);

  box-shadow: var(--shadow-lg);

}



.timeline-date {

  color: var(--primary-color);

  font-weight: 600;

  font-size: 0.9rem;

  margin-bottom: var(--spacing-sm);

}



.timeline-content h3 {

  font-size: 1.5rem;

  margin-bottom: var(--spacing-xs);

}



.timeline-content p {

  color: var(--text-secondary);

  margin-bottom: var(--spacing-sm);

}



.timeline-content ul {

  list-style: none;

  padding-left: 0;

}



.timeline-content li {

  color: var(--text-secondary);

  padding-left: 1.5rem;

  position: relative;

  margin-bottom: 0.5rem;

}



.timeline-content li::before {

  content: '▹';

  position: absolute;

  left: 0;

  color: var(--primary-color);

  font-weight: bold;

}



/* ================================

   SKILLS SECTION

================================ */

.skills-grid {

  display: grid !important;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: var(--spacing-lg);

  visibility: visible !important;

  opacity: 1 !important;

}



.skill-category {

  background: rgba(255, 255, 255, 0.03);

  padding: var(--spacing-lg);

  border-radius: var(--radius-lg);

  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: all var(--transition-base);

  display: block !important;

  visibility: visible !important;

  opacity: 1 !important;

}



.skill-category:hover {

  border-color: var(--primary-color);

  transform: translateY(-5px);

  box-shadow: var(--shadow-lg);

}



.skill-category-header {

  display: flex;

  align-items: center;

  gap: 1rem;

  margin-bottom: var(--spacing-lg);

  padding-bottom: var(--spacing-md);

  border-bottom: 2px solid rgba(255, 255, 255, 0.1);

}



.skill-category-header svg {

  color: var(--primary-color);

  width: 24px;

  height: 24px;

}



.skill-category-header h3 {

  font-size: 1.5rem;

  margin: 0;

}



.skill-items {

  display: flex;

  flex-direction: column;

  gap: var(--spacing-md);

}



.skill-item {

  display: flex;

  flex-direction: column;

  gap: 0.5rem;

}



.skill-info {

  display: flex;

  justify-content: space-between;

  color: var(--text-secondary);

  font-size: 0.9rem;

  font-weight: 500;

}



.skill-bar {

  height: 8px;

  background: rgba(255, 255, 255, 0.1);

  border-radius: var(--radius-sm);

  overflow: hidden;

}



.skill-progress {

  height: 100%;

  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));

  border-radius: var(--radius-sm);

  transition: width 1s ease;

  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);

}



/* ================================

   PROJECTS SECTION

================================ */

.projects-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: var(--spacing-lg);

}



.project-card {

  background: var(--bg-card);

  border-radius: var(--radius-lg);

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: all var(--transition-base);

}



.project-card:hover {

  transform: translateY(-10px);

  border-color: var(--primary-color);

  box-shadow: var(--shadow-xl);

}



.project-image {

  position: relative;

  width: 100%;

  height: 250px;

  overflow: hidden;

}



.project-image img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform var(--transition-slow);

}



.project-card:hover .project-image img {

  transform: scale(1.1);

}



.project-overlay {

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: rgba(0, 0, 0, 0.8);

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 1rem;

  opacity: 0;

  transition: opacity var(--transition-base);

}



.project-card:hover .project-overlay {

  opacity: 1;

}



.project-link {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 50px;

  height: 50px;

  background: var(--primary-color);

  border-radius: 50%;

  color: var(--text-primary);

  transition: all var(--transition-base);

}



.project-link:hover {

  background: var(--primary-light);

  transform: scale(1.1);

}



.project-content {

  padding: var(--spacing-lg);

}



.project-content h3 {

  font-size: 1.5rem;

  margin-bottom: var(--spacing-sm);

}



.project-content p {

  color: var(--text-secondary);

  margin-bottom: var(--spacing-md);

  line-height: 1.6;

}



.project-tags {

  display: flex;

  flex-wrap: wrap;

  gap: 0.5rem;

}



.tag {

  padding: 0.375rem 0.75rem;

  background: rgba(0, 123, 255, 0.1);

  color: var(--primary-light);

  border-radius: var(--radius-sm);

  font-size: 0.85rem;

  font-weight: 500;

  border: 1px solid rgba(0, 123, 255, 0.2);

}



.project-card-more {

  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(108, 99, 255, 0.1));

  border: 2px dashed rgba(0, 123, 255, 0.3);

  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 400px;

}



.more-content {

  text-align: center;

  padding: var(--spacing-lg);

}



.more-content svg {

  width: 60px;

  height: 60px;

  color: var(--primary-color);

  margin-bottom: var(--spacing-md);

}



.more-content h3 {

  font-size: 1.5rem;

  margin-bottom: var(--spacing-sm);

}



.more-content p {

  color: var(--text-secondary);

  margin-bottom: var(--spacing-md);

}



/* ================================

   CONTACT SECTION

================================ */

.contact-wrapper {

  display: grid;

  grid-template-columns: 1fr 1.5fr;

  gap: var(--spacing-xl);

}



.contact-info h3 {

  font-size: 2rem;

  margin-bottom: var(--spacing-md);

}



.contact-info > p {

  color: var(--text-secondary);

  margin-bottom: var(--spacing-xl);

  line-height: 1.8;

}



.contact-items {

  display: flex;

  flex-direction: column;

  gap: var(--spacing-lg);

  margin-bottom: var(--spacing-xl);

}



.contact-item {

  display: flex;

  gap: 1rem;

  padding: var(--spacing-md);

  background: var(--bg-card);

  border-radius: var(--radius-lg);

  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: all var(--transition-base);

}



.contact-item:hover {

  border-color: var(--primary-color);

  transform: translateX(10px);

}



.contact-item svg {

  color: var(--primary-color);

  min-width: 24px;

}



.contact-item h4 {

  font-size: 0.9rem;

  color: var(--text-secondary);

  margin-bottom: 0.25rem;

  font-weight: 500;

}



.contact-item a {

  color: var(--text-primary);

  text-decoration: none;

  transition: color var(--transition-fast);

}



.contact-item a:hover {

  color: var(--primary-color);

}



.contact-item p {

  color: var(--text-primary);

  margin: 0;

}



.contact-social {

  display: flex;

  gap: 1rem;

}



.contact-form {

  background: var(--bg-card);

  padding: var(--spacing-xl);

  border-radius: var(--radius-lg);

  border: 1px solid rgba(255, 255, 255, 0.1);

}



.form-group {

  margin-bottom: var(--spacing-lg);

}



.form-group label {

  display: block;

  margin-bottom: 0.5rem;

  color: var(--text-secondary);

  font-weight: 500;

  font-size: 0.9rem;

}



.form-group input,

.form-group textarea {

  width: 100%;

  padding: 0.875rem 1rem;

  background: var(--bg-light);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: var(--radius-md);

  color: var(--text-primary);

  font-family: 'Poppins', sans-serif;

  font-size: 1rem;

  transition: all var(--transition-base);

}



.form-group input:focus,

.form-group textarea:focus {

  outline: none;

  border-color: var(--primary-color);

  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);

}



.form-group textarea {

  resize: vertical;

  min-height: 120px;

}



/* ================================

   FOOTER

================================ */

.footer {

  background: var(--bg-darker);

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  padding: var(--spacing-xl) 0;

  text-align: center;

}



.footer p {

  color: var(--text-secondary);

  margin: 0.5rem 0;

}



.heart {

  color: #ef4444;

  animation: heartbeat 1.5s ease-in-out infinite;

}



@keyframes heartbeat {

  0%, 100% {

    transform: scale(1);

  }

  25% {

    transform: scale(1.2);

  }

  50% {

    transform: scale(1);

  }

}



/* ================================

   RESPONSIVE

================================ */



/* Tablettes et petits laptops */

@media (max-width: 1200px) {

  .navbar-container {

    padding: 0 1.5rem;

  }

  

  .navbar-link {

    padding: 0.6rem 0.75rem;

    font-size: 0.9rem;

  }

  

  .navbar-link span {

    display: inline;

  }

}



/* Tablettes */

@media (max-width: 968px) {

  .navbar-menu {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    flex-direction: column;

    background: rgba(10, 14, 39, 0.98);

    backdrop-filter: blur(10px);

    padding: 6rem 2rem 2rem;

    gap: 0.5rem;

    transform: translateX(-100%);

    transition: transform var(--transition-base);

    border-right: 1px solid rgba(255, 255, 255, 0.1);

    overflow-y: auto;

    z-index: 999;

  }

  

  .navbar-menu.active {

    transform: translateX(0);

  }

  

  .mobile-menu-toggle {

    display: flex;

    z-index: 1001;

  }

  

  .navbar-item {

    width: 100%;

  }

  

  .navbar-link {

    width: 100%;

    padding: 1.25rem 1.5rem;

    font-size: 1.1rem;

    justify-content: flex-start;

  }

  

  .navbar-link svg {

    width: 22px;

    height: 22px;

  }

  

  .hero-section .container {

    grid-template-columns: 1fr;

    text-align: center;

  }

  

  .hero-image {

    order: -1;

  }

  

  .image-wrapper {

    width: 300px;

    height: 300px;

  }

  

  .hero-buttons {

    justify-content: center;

  }

  

  .hero-social {

    justify-content: center;

  }

  

  .hero-title {

    font-size: 2.5rem;

  }

  

  .contact-wrapper {

    grid-template-columns: 1fr;

  }

  

  .section-title {

    font-size: 2rem;

  }

}



@media (max-width: 640px) {

  .container {

    padding: 0 1rem;

  }

  

  .hero-title {

    font-size: 2rem;

  }

  

  .hero-description {

    font-size: 1rem;

  }

  

  .btn {

    padding: 0.875rem 1.5rem;

    font-size: 0.9rem;

  }

  

  .projects-grid {

    grid-template-columns: 1fr;

  }

  

  .skills-grid {

    grid-template-columns: 1fr;

  }

  

  .timeline {

    padding-left: 40px;

  }

  

  .timeline-dot {

    left: -32px;

  }

}



/* ================================

   ANIMATIONS ON SCROLL

================================ */

@keyframes fadeInUp {

  from {

    opacity: 0;

    transform: translateY(30px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}



.fade-in {

  animation: fadeInUp 0.6s ease forwards;

}

