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

/* BASE */
body {
  font-family: 'Poppins', sans-serif;
  background: #eaeaea;
  color: #333;
  line-height: 1.6;
}

/* CONTAINER */
.cv {
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 0px solid white;
}

/* LEFT COLUMN */
.left {
  width: 35%;
  background: linear-gradient(180deg, #629983, #B0D6C8);
  color: #fff;
  padding: 35px;
}

.profile {
  text-align: center;
  margin-bottom: 30px;
}

.profile img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 0px solid #fff;
  margin-bottom: 15px;
}

.profile h1 {
  font-size: 1.6em;
  font-weight: 600;
}

.profile p {
  font-size: 0.9em;
  opacity: 0.9;
}

/* LEFT SECTIONS */
.left h3 {
  margin: 25px 0 10px;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 5px;
}

.left ul {
  list-style: none;
  font-size: 0.9em;
}

.left ul li {
  margin-bottom: 8px;
}

/* SKILLS */
.skill {
  margin-bottom: 12px;
}

.skill span {
  display: block;
  font-size: 0.85em;
  margin-bottom: 4px;
}

.bar {
  height: 6px;
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
  overflow: hidden;
}

.level {
  height: 100%;
  background: #fff;
}

/* Skill levels */
.level.html { width: 90%; }
.level.js   { width: 75%; }

/* RIGHT COLUMN */
.right {
  width: 65%;
  padding: 40px;
}

.section {
  margin-bottom: 35px;
}

.section h2 {
  color: #629983;
  margin-bottom: 15px;
  font-size: 1.3em;
  position: relative;
}

.section h2::after {
  content: "";
  width: 40px;
  height: 3px;
  background: #629983;
  position: absolute;
  bottom: -5px;
  left: 0;
}

/* TIMELINE */
.timeline {
  border-left: 3px solid #629983;
  padding-left: 20px;
}

.item {
  margin-bottom: 20px;
  position: relative;
}

.item::before {
  content: "";
  width: 12px;
  height: 12px;
  background: #629983;
  border-radius: 50%;
  position: absolute;
  left: -28px;
  top: 6px;
}

.item h4 {
  font-weight: 600;
}

.item span {
  font-size: 0.85em;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cv {
    flex-direction: column;
  }

  .left,
  .right {
    width: 100%;
  }
}
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #629983;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.btn:hover {
  background: #1e3c72;
}

/* Style global */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 2rem;
    background-color: #f5f5f5;
}

/* Titre */
h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #629983  ;
}

/* Grille responsive */
.lectures-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    max-width: 1050px;
    margin: 0 auto;
}

/* Carte livre */
.lecture-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lecture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* Image couverture */
.lecture-card img {

    display: block;
    margin: 0 auto;
    width: 55%;
    height: 260px;
    object-fit: cover;
    padding: 1rem;
}

/* Contenu texte */
.lecture-content {
    padding: 1rem;
    text-align: center;
}

.lecture-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.lecture-author {
    font-size: 0.9rem;
    color: #666;
}

/* Mobile */
@media (max-width: 480px) {
    .lecture-card img {
        height: 220px;
    }
