@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%; /* Empêche les débordements horizontaux */
}
/* Reset default margins and padding for body and html */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #e0e7ff 100%);
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Assure une hauteur minimale égale à la vue */
}
#particles-js {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}
/* HEADER */
header {
  background: linear-gradient(90deg, #2c3e50, #3498db);
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.bts-logo {
  height: 40px;
  transition: transform 0.3s ease;
}
.bts-logo:hover {
  transform: scale(1.1);
}
.cv-button {
  background: #fff;
  color: #3498db;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.cv-button:hover {
  background: #f1c40f;
  color: #2c3e50;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: 0.3s;
}
nav ul li a:hover {
  color: #f1c40f;
  transform: translateY(-2px);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  padding: 0;
  text-align: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}
.hero::before {
  content: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
  padding: 0 1rem;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 1rem 0;
}
.btn-portfolio {
  display: inline-block;
  background: #fff;
  color: #3498db;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.btn-portfolio:hover {
  background: #2c3e50;
  color: #fff;
  transform: scale(1.05);
}
/* SECTIONS */
section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  clear: both;
}
section h1, section h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  color: #2c3e50;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
}
section h1::after, section h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #3498db;
  margin: 0.5rem auto 0;
}
/* ABOUT */
.about-photo {
  float: right;
  max-width: 200px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-left: 1rem;
  margin-bottom: 1rem;
}
/* CURSUS + CERTIFICATIONS */
ul.cursus-list,
ul.certifications-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 800px;
}
ul.cursus-list li,
ul.certifications-list li {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* COMPETENCES */
.competences h3 {
  color: #3498db;
  text-align: center;
  margin: 1.5rem 0 1rem;
}
.skills-list, .tools-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}
.skills-list li, .tools-list li {
  background: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}
/* VEILLE */
.veille li {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: 0.4s;
}
.veille li:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.veille-table {
  width: 100%;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}
.veille-table th {
  background: #3498db;
  color: #fff;
  font-weight: 600;
  padding: 0.8rem;
}
.veille-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #ddd;
}
.veille-table tr:last-child td {
  border-bottom: none;
}
.veille-table tr:hover {
  background: #f8f9fa;
}
/* PORTFOLIO */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.project {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.project img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.project h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 1rem;
  color: #2c3e50;
}
.project p {
  margin: 0 1rem 1rem;
  color: #666;
}
/* FORMULAIRE */
form {
  max-width: 100%;
  margin: 1.5rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
form input,
form textarea,
form button {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
form button {
  background: #3498db;
  color: #fff;
  border: none;
  font-weight: 600;
  transition: 0.3s;
}
form button:hover {
  background: #2c3e50;
}
/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* FOOTER */
footer {
  background: linear-gradient(90deg, #2c3e50, #34495e);
  color: #ecf0f1;
  text-align: center;
  padding: 1.5rem 0.5rem 1rem;
  margin-top: auto; /* Pousse le footer en bas avec flexbox */
  font-size: 0.85rem;
  position: relative;
  flex-shrink: 0; /* Empêche le footer de rétrécir */
}

footer .social-section {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.linkedin-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #0077b5;
  color: #fff !important;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.linkedin-button:hover {
  background: #005885;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 119, 181, 0.5);
}

.linkedin-button span {
  color: #fff !important;
}

.linkedin-icon {
  transition: transform 0.3s ease;
}

.linkedin-button:hover .linkedin-icon {
  transform: scale(1.1);
}
footer .footer-links {
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
footer .footer-links a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
footer .footer-links a:hover {
  color: #f1c40f;
}
footer .footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #f1c40f;
  transition: width 0.3s ease;
}
footer .footer-links a:hover::after {
  width: 100%;
}
footer .social-icons {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
footer .social-icons a {
  color: #ecf0f1;
  font-size: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}
footer .social-icons a:hover {
  color: #f1c40f;
  transform: scale(1.1);
}
footer .copyright {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
}
/* GITHUB SECTION */
.github-section {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.github-section h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.github-section > p {
  color: #555;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.github-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.github-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
  border-color: #3498db;
}

.github-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e4e8;
}

.github-icon {
  color: #24292e;
  flex-shrink: 0;
}

.github-title {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.github-title h4 {
  margin: 0;
  font-size: 1.3rem;
  color: #3498db;
  font-weight: 600;
}

.github-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #e8f4f8;
  color: #0366d6;
  border: 1px solid #c8e1ff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

.github-description {
  color: #586069;
  line-height: 1.6;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.github-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid #e1e4e8;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #586069;
}

.stat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.stat-dot.python {
  background-color: #3572A5;
}

.stat-dot.html {
  background-color: #e34c26;
}

.stat-percent {
  font-weight: 600;
  color: #24292e;
}

.commit-icon {
  font-size: 1rem;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #3498db, #2980b9);
  color: #fff !important;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.github-link span {
  color: #fff !important;
}

.github-link:hover {
  background: linear-gradient(90deg, #2980b9, #2c3e50);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.github-link .arrow-icon {
  transition: transform 0.3s ease;
}

.github-link:hover .arrow-icon {
  transform: translateX(5px);
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
  }
  nav ul {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
  }
  .bts-logo {
    margin-bottom: 0.5rem;
    height: 30px;
  }
  .cv-button {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  .hero {
    min-height: auto; /* Évite un défilement excessif */
    padding: 2rem 0;
  }
  .hero-content {
    padding: 0 0.5rem;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
  .hero p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
  .btn-portfolio {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  section {
    padding: 1.5rem 0.5rem;
  }
  .about-photo {
    float: none;
    margin: 0 auto 1rem;
    display: block;
    max-width: 150px; /* Réduit la taille pour mobile */
  }
  .project-list {
    grid-template-columns: 1fr; /* Une seule colonne */
  }
  .project img {
    height: auto;
    max-height: 200px; /* Limite la hauteur */
  }
  form {
    padding: 1rem;
    margin: 1rem 0.5rem;
  }
  form input,
  form textarea,
  form button {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  form textarea {
    min-height: 100px;
  }
  footer {
    padding: 1rem 0.5rem 0.5rem;
  }
  footer .footer-links {
    flex-direction: column;
    gap: 0.3rem;
  }
  footer .social-icons {
    gap: 0.3rem;
  }
  .linkedin-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  #particles-js {
    opacity: 0.3; /* Réduit l'opacité au lieu de le cacher */
  }
  /* GitHub section responsive */
  .github-section {
    padding: 1.5rem 1rem;
    margin: 2rem 0 1rem;
  }
  .github-section h3 {
    font-size: 1.5rem;
  }
  .github-card {
    padding: 1rem;
  }
  .github-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .github-icon {
    width: 24px;
    height: 24px;
  }
  .github-title h4 {
    font-size: 1.1rem;
  }
  .github-stats {
    flex-direction: column;
    gap: 0.8rem;
  }
  .github-link {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
  .hero p {
    font-size: clamp(0.8rem, 4vw, 1rem);
  }
  .btn-portfolio {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .veille-table th,
  .veille-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: #2c3e50;
    padding: 1rem 0;
    z-index: 999;
  }
  nav ul.active {
    display: flex;
  }
  nav ul li {
    margin: 0.5rem 0;
    text-align: center;
  }
  nav ul li a {
    font-size: 1rem;
  }
}
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  nav ul {
    display: flex !important;
    position: static;
    background: none;
    padding: 0;
  }
}