/* ================= RESET ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================= VARIABLES ================= */
:root {
  --bg: #f4f6f8;
  --sidebar-bg: #1f2937;
  --card-bg: #ffffff;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-light: #d1d5db;

  --accent: #3b82f6;

  --radius: 16px;
  --gap: 24px;
}

/* ================= GLOBAL ================= */
body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* ================= LAYOUT ================= */
.cv {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
}

/* ================= SIDEBAR ================= */
.sidebar {
  background: var(--sidebar-bg);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 30px;

  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ================= PROFIL ================= */
.profile {
  text-align: center;
}

.profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
}

.profile h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.profile .title {
  color: #9ca3af;
  margin: 6px 0 12px;
}

.profile .about {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ================= CARTES ================= */
.card {
  background: var(--card-bg);
  color: var(--text-main);
  border-radius: var(--radius);
  padding: 26px;

  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}

.card h3 {
  margin-bottom: 18px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}

/* ================= CONTENU ================= */
.content {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ================= ITEMS ================= */
.item {
  margin-bottom: 18px;
}

.item:last-child {
  margin-bottom: 0;
}

.item-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.date {
  color: var(--text-muted);
  font-size: .85rem;
}

/* ================= CONTACT ================= */
.list {
  list-style: none;
}

.list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.list a,
.list span {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

/* 👉 HOVER CONTACT */
.list a {
  position: relative;
}

.list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}

.list a:hover::after {
  width: 100%;
}

.list li:hover {
  transform: translateX(4px);
  transition: transform .15s ease;
}

/* ================= TAGS ================= */
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  background: var(--accent);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .cv {
    grid-template-columns: 1fr;
  }

  .sidebar {
    text-align: center;
  }
}
