/* 
 * PORTFOLIO - STYLE CSS PRINCIPAL
 * Design moderne, responsive et professionnel
 * Palette: Bleu Tech avec touches de Vert
 * Auteur: Portfolio Étudiant
 * Date: 2025
 */

/* ==================== VARIABLES CSS ==================== */
:root {
  /* Couleurs principales - BLEU TECH */
  --primary-color: #2563eb;
  /* Bleu vif moderne */
  --primary-dark: #1e40af;
  /* Bleu foncé */
  --primary-light: #3b82f6;
  /* Bleu clair */

  /* Couleurs secondaires */
  --secondary-color: #64748b;
  --accent-color: #10b981;
  /* Vert émeraude pour les accents */

  /* Couleurs de fond */
  --bg-primary: #ffffff;
  --bg-secondary: #eff6ff;
  /* Bleu très pâle */
  --bg-dark: #1e3a8a;
  /* Bleu très foncé */
  --bg-card: #ffffff;

  /* Couleurs de texte */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;

  /* Bordures et ombres */
  --border-color: #dbeafe;
  /* Bordure bleu pâle */
  --shadow-sm: 0 1px 2px 0 rgba(37, 99, 235, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(37, 99, 235, 0.2);

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Typographie */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Conteneur principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ==================== TYPOGRAPHIE ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

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

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Menu hamburger pour mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all var(--transition-normal);
}

/* ==================== SECTIONS COMMUNES ==================== */
section {
  padding: 5rem 0;
}

.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  margin-top: 70px;
}

.page-header h1 {
  color: white;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

/* ==================== BOUTONS ==================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* ==================== HERO SECTION (PAGE ACCUEIL) ==================== */
.hero {
  padding: 10rem 0 5rem;
  margin-top: 70px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero-text h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.profile-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-circle i {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.fade-in.delay-1 {
  animation-delay: 0.2s;
}

.fade-in.delay-2 {
  animation-delay: 0.4s;
}

.fade-in.delay-3 {
  animation-delay: 0.6s;
}

/* ==================== ABOUT SECTION ==================== */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon i {
  font-size: 1.8rem;
  color: white;
}

.about-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

/* ==================== SKILLS PREVIEW ==================== */
.skills-preview {
  background: var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.skill-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-item h3 {
  margin-bottom: 0.5rem;
}

.skill-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: block;
  color: inherit;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  color: inherit;
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-secondary);
}

/* ==================== SKILLS SECTION (PAGE COMPÉTENCES) ==================== */
.skills-section {
  background: var(--bg-secondary);
}

.skill-category {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.category-title i {
  font-size: 2rem;
}

.skills-list {
  display: grid;
  gap: 1.5rem;
}

.skill-badge {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--primary-color);
  border-radius: 0.5rem;
  transition: all var(--transition-fast);
}

.skill-badge:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(5px);
}

.skill-badge:hover .skill-name {
  color: white;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-bar {
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 5px;
  transition: width 1s ease;
}

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

.tech-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.tech-item:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.soft-skill-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  text-align: center;
}

.soft-skill-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.soft-skill-card h4 {
  margin-bottom: 0.5rem;
}

.soft-skill-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==================== PROJETS ACADÉMIQUES ==================== */
.academic-projects {
  background: var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.project-icon i {
  font-size: 1.8rem;
  color: white;
}

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

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  color: var(--primary-color);
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.9rem;
}

.project-meta i {
  margin-right: 0.25rem;
}

/* ==================== PROGRAMMES SECTION ==================== */
.programs-section {
  background: var(--bg-secondary);
}

.program-item {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.program-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.program-icon {
  width: 70px;
  height: 70px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.program-icon.tryhackme {
  background: linear-gradient(135deg, #ea0000, #c70000);
}

.program-icon.rootme {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.program-icon.keskia {
  background: linear-gradient(135deg, #2563eb, #1e40af);
}

.program-icon.general {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.program-info h3 {
  margin-bottom: 0.25rem;
}

.program-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.program-status.active {
  background: var(--primary-color);
  color: white;
}

.program-status.completed {
  background: var(--primary-color);
  color: white;
}

.program-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.program-achievements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.achievement {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.achievement i {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.achievement strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.achievement p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.program-skills {
  margin-bottom: 1.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.program-link:hover {
  gap: 0.75rem;
}

/* Qualifications */
.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.qualification-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.qualification-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.qualification-icon i {
  font-size: 1.8rem;
  color: white;
}

.qualification-card h3 {
  margin-bottom: 0.5rem;
}

.qualification-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.qualification-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.qualification-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.benefit-item i {
  color: var(--primary-color);
  flex-shrink: 0;
}

/* ==================== CERTIFICATIONS ==================== */
.certifications-section {
  background: var(--bg-secondary);
}

.cert-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat-card i {
  font-size: 3rem;
  color: var(--primary-color);
}

.stat-info h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-info p {
  color: var(--text-secondary);
}

.cert-category {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.cert-list {
  display: grid;
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
  transition: all var(--transition-normal);
}

.cert-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.cert-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-badge i {
  font-size: 1.8rem;
  color: white;
}

.cert-details h3 {
  margin-bottom: 0.5rem;
}

.cert-org {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cert-org i {
  margin-right: 0.5rem;
}

.cert-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cert-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.cert-year i {
  font-size: 1.5rem;
}

/* Certifications en cours */
.ongoing-certs {
  background: var(--bg-primary);
}

.ongoing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.ongoing-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.ongoing-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ongoing-card h3 {
  margin-bottom: 0.5rem;
}

.ongoing-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.progress-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent-color);
  color: white;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==================== PROJETS SECTION ==================== */
.project-filters {
  background: var(--bg-secondary);
  padding: 2rem 0;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.projects-section {
  background: var(--bg-primary);
}

.project-item {
  background: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay i {
  font-size: 3rem;
  color: white;
}

.project-content {
  padding: 2rem;
}

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

.project-header h3 {
  flex: 1;
}

.project-type {
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-type.professional {
  background: var(--primary-color);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  padding: 0.4rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.project-features h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-features ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.project-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.project-features li i {
  color: var(--primary-color);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary-color);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all var(--transition-normal);
}

.btn-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-link.disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

.btn-link.disabled:hover {
  transform: none;
}

/* Projets en cours */
.upcoming-projects {
  background: var(--bg-secondary);
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.upcoming-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.upcoming-card i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.upcoming-card h3 {
  margin-bottom: 0.5rem;
}

.upcoming-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--bg-secondary);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 5px;
  transition: width 1s ease;
}

.progress-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==================== PASSIONS SECTION ==================== */
.passions-intro {
  background: var(--bg-secondary);
  padding: 3rem 0;
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
}

.passions-section {
  background: var(--bg-primary);
}

.passion-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.passion-item.right {
  grid-template-columns: 1fr auto;
}

.passion-item.right .passion-content {
  order: -1;
}

.passion-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.passion-icon i {
  font-size: 3rem;
  color: white;
}

.passion-content h2 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.passion-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.passion-details {
  display: grid;
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.detail-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.detail-item span {
  color: var(--text-primary);
  font-weight: 500;
}

/* Citations */
.quotes-section {
  background: var(--bg-secondary);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.quote-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-card i {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.2;
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  line-height: 1.8;
}

.quote-author {
  text-align: right;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Valeurs */
.values-section {
  background: var(--bg-primary);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.value-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.value-card h3 {
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-buttons .btn {
  background: white;
  color: var(--primary-color);
}

.cta-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-circle {
    width: 250px;
    height: 250px;
  }

  .profile-circle i {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    background: var(--bg-primary);
    padding: 2rem;
    gap: 0;
    transition: left var(--transition-normal);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

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

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

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

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

  .profile-circle i {
    font-size: 5rem;
  }

  section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 6rem 0 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .cert-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .cert-year {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }

  .passion-item,
  .passion-item.right {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .passion-item.right .passion-content {
    order: 0;
  }

  .passion-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }

  .passion-icon i {
    font-size: 2.5rem;
  }

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

  .filters {
    justify-content: flex-start;
  }
}

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

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .about-card,
  .project-card,
  .program-item {
    padding: 1.5rem;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .profile-circle {
    width: 150px;
    height: 150px;
  }

  .profile-circle i {
    font-size: 4rem;
  }
}

/* ==================== UTILITIES ==================== */
.hidden {
  display: none !important;
}

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

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* ==================== PRINT STYLES ==================== */
@media print {

  .header,
  .nav-toggle,
  .footer,
  .btn,
  .cta-section {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}