/* ========== Reset ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== Base Styles ========== */
body {
  background: #f9f9f9;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  padding: 20px;
}

.container {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 800px;
  padding: 30px;
}

/* ========== Header / Profil ========== */
.header .profile {
  align-items: center;
  display: flex;
  margin-bottom: 20px;
}

.photo {
  border: 3px solid #0056b3;
  border-radius: 50%;
  height: 120px;
  margin-right: 20px;
  object-fit: cover;
  width: 120px;
}

.info h1 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.info .title {
  color: #555;
  font-style: italic;
  margin-bottom: 10px;
}

/* ========== Sections ========== */
section {
  margin-bottom: 25px;
}

h2 {
  border-bottom: 2px solid #0056b3;
  color: #0056b3;
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

/* ========== Listes de compétences & langues ========== */
.skills,
.languages {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
}

.skills li,
.languages li {
  background: #e6f0ff;
  border-radius: 4px;
  margin: 5px;
  padding: 8px 12px;
}

/* ========== Expériences & Études ========== */
.job,
.education {
  margin-bottom: 15px;
}

.job h3,
.education h3 {
  font-size: 1.1rem;
  margin-bottom: 3px;
}

.period {
  color: #777;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* ========== Contact ========== */
.contact li {
  list-style: none;
  margin-bottom: 4px;
}

/* ========== Footer ========== */
footer {
  color: #777;
  font-size: 0.9rem;
  margin-top: 30px;
  text-align: center;
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .header .profile {
    flex-direction: column;
    text-align: center;
  }

  .photo {
    margin-bottom: 15px;
    margin-right: 0;
  }
}
