* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #0f111a;
  color: #f5f5f5;
  line-height: 1.6;
  padding-top: 50px; /* topbar */
}

a {
  color: #1db954;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   TOPBAR
========================= */
.topbar {
  width: 100%;
  height: 50px;
  background-color: #0f111a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #1db954;
}

.logo-btn,
.menu-btn {
  color: #ffffff;
  background-color: #1db954;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
}

.logo-btn:hover,
.menu-btn:hover {
  background-color: #17a745;
}

/* =========================
   CONTAINER GLOBAL
========================= */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* =========================
   HEADER / LANDING
========================= */
header {
  text-align: center;
  margin-bottom: 60px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffffff;
}

header p {
  font-size: 1.2rem;
  color: #b0b0b0;
}

/* =========================
   SECTIONS
========================= */
section {
  margin-bottom: 60px;
}

section h2 {
  font-size: 2rem;
  color: #1db954;
  margin-bottom: 15px;
  border-bottom: 2px solid #1db954;
  display: inline-block;
  padding-bottom: 5px;
}

section p {
  font-size: 1rem;
  color: #e0e0e0;
}

/* =========================
   QUI SUIS-JE
========================= */
.about-photo {
  width: 180px;
  border-radius: 12px;
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
}

.about-text {
  overflow: hidden;
}

/* =========================
   TIMELINE – EXPÉRIENCES
========================= */
.timeline {
  position: relative;
  margin-top: 40px;
  padding-left: 60px;
}

/* Ligne verticale */
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #1db954;
  border-radius: 2px;
}

/* Item */
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateX(0);
}

/* Icône / point */
.timeline-icon {
  width: 40px;
  height: 40px;
  background-color: #1db954;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  color: #0f111a;
  font-size: 16px;
}

/* Contenu texte */
.timeline-content h3 {
  color: #ffffff;
  margin-bottom: 5px;
}

.timeline-content h4 {
  color: #b0b0b0;
  margin-bottom: 10px;
  font-weight: normal;
}

.timeline-content ul {
  padding-left: 20px;
}

.timeline-content li {
  color: #dddddd;
  margin-bottom: 6px;
}

/* =========================
   PROJETS
========================= */
#projects {
  padding-top: 20px;
}

.projects-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 30px;
}

.project {
  background: #111;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
}

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

.project-description {
  margin-bottom: 1rem;
  color: #ddd;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding-left: 0;
}

.tech-list li {
  background: #1a1a1a;
  padding: 6px 10px;
  border-radius: 6px;
}

/* =========================
   UPTIME KUMA
========================= */
.uptime-frame {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 10px;
  margin-top: 1rem;
}
/* =========================
   SECTION CV / PDF
========================= */
#cv-print {
  margin-top: 60px;
  padding-top: 20px;
}

#cv-print p {
  margin: 15px 0 25px 0;
  color: #cccccc;
}

.cv-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cv-btn {
  background-color: #1db954;
  color: #0f111a;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}


.cv-btn:hover {
  background-color: #17a745;
  color: #0f111a;
}



/* =========================
   MODE IMPRESSION
========================= */
@media print {
  #cv-print {
    margin-top: 0;
  }

  .cv-actions button {
    display: none;
  }

  a {
    color: black;
    text-decoration: none;
  }
}
/* === Diplomes et ecoles ===*/

#education {
  margin-bottom: 80px;
}

#education h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1db954;
  font-size: 2rem;
  border-bottom: 2px solid #1db954;
  padding-bottom: 5px;
}

.education-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.education-item {
  background-color: #111;
  border-radius: 12px;
  padding: 20px 25px;
}

.education-item h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.education-date {
  display: block;
  color: #1db954;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.education-item p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}
.education-item ul {
  margin-top: 10px;
  padding-left: 20px;
}

.education-item li {
  color: #ddd;
  margin-bottom: 6px;
  font-size: 0.95rem;
}



/* === Skills section === */
#skills {
  margin-top: 80px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.skill-card {
  background: #11131d;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.skill-icon {
  font-size: 1.5rem;
}

.skill-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1db954;
}

.skill-card ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.skill-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: #ddd;
  font-size: 0.95rem;
}

.skill-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1db954;
}
/* === Fin des Skills section === */
/* === Compétences relationnelles === */
.skill-card {
  background-color: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.skill-icon {
  font-size: 2rem;
  color: #1db954;
  margin-bottom: 10px;
}

.skill-card h3 {
  color: #1db954;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.skill-card p {
  color: #ccc;
  line-height: 1.5;
  font-size: 0.95rem;
}
/* === Fin des SoftSkills === */


/* =========================
  Code responsive   #Fait d'etre lisible aisement sur mobile et Ordinateur
========================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}

/* Tablette */
@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
}
