/* 🎨 Portfolio BTS SIO - Style Global */

/* ============================================
   1️⃣ CSS VARIABLES - Palette Bleu & Violet
   ============================================ */
:root {
  /* Primary Colors */
  --primary: #6366f1;          /* Indigo */
  --secondary: #8b5cf6;        /* Violet */
  --accent: #3b82f6;           /* Bleu */
  --accent-light: #60a5fa;     /* Bleu clair */

  /* Light Theme */
  --bg-light: #f8fafc;         /* Fond très clair */
  --bg-white: #ffffff;         /* Blanc pur */
  --bg-card: #f1f5f9;          /* Gris très clair */
  --bg-hover: #e2e8f0;         /* Gris léger hover */

  /* Text Colors */
  --text-dark: #1e293b;        /* Texte foncé */
  --text-muted: #64748b;       /* Texte grisé */
  --text-light: #475569;       /* Texte clair */

  /* Borders & Shadows */
  --border: #e2e8f0;           /* Bordure légère */
  --shadow: rgba(99, 102, 241, 0.1);  /* Ombre indigo */
  --shadow-lg: rgba(99, 102, 241, 0.15);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode (optionnel) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --bg-card: #334155;
    --bg-hover: #475569;
    --text-dark: #f8fafc;
    --text-muted: #cbd5e1;
    --border: #475569;
    --shadow: rgba(99, 102, 241, 0.2);
  }
}

/* ============================================
   2️⃣ RESET & BASE
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background: var(--bg-light);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}


/* ============================================
   3️⃣ TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

/* ============================================
   4️⃣ LAYOUTS & CONTAINERS
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-title h2 {
  margin-bottom: 0;
}

/* ============================================
   5️⃣ HEADER & NAVIGATION
   ============================================ */
header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}


/* ============================================
   6️⃣ HERO SECTION
   ============================================ */
.hero {
  /* Reserve space for the sticky header so the hero appears truly centered
     even when the header is present. Adjust the value if your header height changes. */
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.4;
  pointer-events: none;
}

.hero-blur-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  border-radius: 50%;
  top: -200px;
  left: -100px;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-blur-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  right: -50px;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  z-index: 10;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: slideDown 0.8s ease-out;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.4s both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   7️⃣ CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--shadow-lg);
  transform: translateY(-5px);
}

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


/* ============================================
   8️⃣ BOUTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Bouton Primary */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 25px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Bouton Secondary */
.btn-secondary {
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Bouton Outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Bouton Small */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon {
  transition: transform var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ============================================
   9️⃣ SKILLS & COMPETENCES
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.skill-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.skill-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: float 3s ease-in-out infinite;
}

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


/* ============================================
   🔟 PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px var(--shadow-lg);
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

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

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: var(--bg-card);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.project-links a {
  flex: 1;
  text-align: center;
  padding: 0.625rem;
  border-radius: 0.5rem;
  background: var(--bg-card);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}

.project-links a:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   1️⃣1️⃣ EXPERIENCE & EDUCATION
   ============================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
}

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

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 52%;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 52%;
  margin-right: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 4px solid var(--bg-light);
  box-shadow: 0 0 0 4px var(--primary);
  z-index: 10;
}

@media (max-width: 768px) {
  .timeline-dot {
    left: 20px;
  }
}

.timeline-content {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: 0 10px 30px var(--shadow-lg);
  transform: translateY(-4px);
}

.timeline-date {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--text-light);
  font-size: 0.95rem;
}


/* ============================================
   1️⃣2️⃣ STATS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.stat-card:hover::before {
  transform: translate(20px, 20px);
}

.stat-value {
  position: relative;
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  position: relative;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* ============================================
   1️⃣3️⃣ VEILLE TECHNOLOGIQUE
   ============================================ */
.veille-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.veille-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.veille-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--shadow-lg);
  transform: translateY(-5px);
}

.veille-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.veille-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.veille-desc {
  color: var(--text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.veille-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   1️⃣4️⃣ CONTACT FORM
   ============================================ */
.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 1rem;
  padding: 3rem 2rem;
}

.contact-title {
  color: white;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: inherit;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   1️⃣5️⃣ SOCIAL LINKS & FOOTER
   ============================================ */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: var(--primary);
  transform: translateY(-4px);
}

footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  margin-bottom: 1.5rem;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================
   1️⃣6️⃣ RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .section-title::before {
    width: 3px;
    height: 1.5rem;
  }

  .card {
    padding: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .project-links {
    gap: 0.5rem;
  }

  .project-links a {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .social-links {
    gap: 0.5rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ============================================
   1️⃣7️⃣ ANIMATIONS & TRANSITIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

/* ============================================
   1️⃣8️⃣ UTILITIES
   ============================================ */
.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.py-2 { padding: 1rem 0; }
.py-4 { padding: 2rem 0; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection Color */
::selection {
  background: var(--primary);
  color: white;
}

::-webkit-selection {
  background: var(--primary);
  color: white;
}

