@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4e73df;
  --secondary-color: #1cc88a;
  --light-color: #f8f9fc;
  --dark-color: #5a5c69;
  --font-family: "Poppins", sans-serif;

  /* Variables pour les thèmes */
  --bg-primary: #000000;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2d2d30;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-color: #333333;
  --card-bg: #1e1e1e;
  --shadow: rgba(255, 255, 255, 0.1);
}

/* Thème clair */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-tertiary: #e3e6f0;
  --text-primary: #2d2d30;
  --text-secondary: #5a5c69;
  --text-muted: #858796;
  --border-color: #e3e6f0;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-family);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

main {
  margin-top: 90px;
}

/* Experiences Section Styles */
.experiences-section {
  padding: 80px 0;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-tertiary) 100%
  );
}

.experiences-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.section-title p {
  font-size: 1.1rem;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
}

.experiences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.experiences-column,
.stages-column {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.column-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
}

.column-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.column-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.experience-card,
.stage-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card:hover,
.stage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(78, 115, 223, 0.2);
  border-color: var(--primary-color);
}

.card-image {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.experience-card:hover .card-image img,
.stage-card:hover .card-image img {
  transform: scale(1.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 15px;
}

.card-header h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}

.date-badge {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.card-company,
.card-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #cccccc;
  font-size: 0.95rem;
}

.card-company i,
.card-location i {
  color: var(--primary-color);
  width: 16px;
}

.responsibilities {
  list-style: none;
  margin-top: 15px;
}

.responsibilities li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.responsibilities li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.project-link {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-link i {
  color: var(--secondary-color);
}

.project-link a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link a:hover {
  color: var(--text-primary);
}

/* Bouton téléchargement rapport de stage */
.card-download {
  margin-left: auto;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171 !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.download-link i {
  font-size: 13px;
  color: #f87171 !important;
}

.download-link:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #f87171;
  color: white !important;
  transform: translateY(-1px);
}

.stage-card.placeholder {
  background: rgba(78, 115, 223, 0.1);
  border: 2px dashed var(--primary-color);
  text-align: center;
}

.placeholder-content {
  padding: 20px;
}

.placeholder-content i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.placeholder-content h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.placeholder-content p {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

/*Header Styles - Modern Navbar*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow-color);
  transition: all 0.3s ease;
}

/* Brand Section */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 45px;
  width: 45px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
  border-color: var(--secondary-color);
}

/* Navigation */
.navbar-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.nav-link:hover {
  color: var(--header-text);
  background: rgba(78, 115, 223, 0.2);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-link:hover i {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Modificateur BEM pour l'état actif */
.nav-link--active {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.nav-link--active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

/* Search Container */
.navbar-extras {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-container {
  position: relative;
  width: 250px;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  background: var(--hover-bg);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.2);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: var(--primary-color);
}

/* Search Results */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.search-results.show {
  opacity: 1;
  transform: translateY(0);
}

.search-results-header {
  padding: 15px 20px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-results-header small {
  color: var(--primary-color);
  font-weight: 500;
}

.search-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-result-item:hover,
.search-result-item.selected {
  background: rgba(78, 115, 223, 0.1);
  transform: translateX(5px);
}

.search-result-item.selected {
  border-left: 3px solid var(--primary-color);
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.result-title i {
  color: var(--primary-color);
  font-size: 0.9rem;
}

.result-description {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.result-matches {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.search-no-results {
  padding: 30px 20px;
  text-align: center;
  color: #cccccc;
}

.search-no-results i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.search-no-results p {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.search-no-results small {
  color: var(--text-muted);
}

/* Highlight dans les résultats */
.search-results mark {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-primary);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Scrollbar pour les résultats */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.search .fa-search {
  position: absolute;
  top: 50%;
  left: 10px;
  padding-right: 10px;
  transform: translateY(-50%);
  border-right: 1px solid white;
  color: white;
  font-size: 20px;
  pointer-events: none;
}

/*Banner Styles*/
.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url("") no-repeat;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: 0.5s;
}

.content {
  position: relative;
  max-width: 600px;
  z-index: 2;
  transition: 0.5s;
}

.content.active {
  display: block;
  visibility: visible;
  transform: scale(1);
  transition: 0.5s;
}

.banner .content h4 {
  color: white;
  font-weight: 400;
  font-size: 30px;
}

.banner .content h4 span {
  padding: 0 10px;
  border-right: 1px solid white;
}

.banner .content h4 span:first-child {
  padding-left: 0;
}

.banner .content h4 span:last-child {
  border-right: none;
}

.banner .content p {
  color: white;
  font-size: 1em;
  font-weight: 300;
  line-height: 1.5;
  margin: 10px 0 20px;
}

/* Buttons Styles */
.buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-see {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-see:hover {
  background: #3d5fd8;
  transform: translateY(-2px);
}

.btn-github {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  transition: all 0.3s ease;
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Social Icons */
.sci {
  position: absolute;
  bottom: 50px;
  right: 100px;
  display: flex;
  gap: 15px;
  z-index: 2;
}

.sci li {
  list-style: none;
}

.sci li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.sci li a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  position: relative;
  background: rgba(0, 0, 0, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
