body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: -1;
}

/* ── Hero profil ── */
.profil-hero {
  padding: 9rem 3rem 4rem;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: center;
}
.page-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color var(--t);
}
.page-hero-back:hover { color: var(--dim); }
.profil-hero-text h1 { font-size: clamp(2rem,4vw,3.2rem); margin-bottom: .4rem; }
.profil-hero-role {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.profil-hero-desc {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.75;
  max-width: 520px;
}
.profil-hero-img {
  display: flex;
  justify-content: center;
}
.profil-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-bd);
  box-shadow: 0 0 0 8px rgba(0,212,180,0.06), 0 20px 40px rgba(0,0,0,0.4);
  background: var(--surf2);
}

/* ── Sections page ── */
.profil-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 3rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.profil-section-title {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.profil-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Compétences ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.skill-block {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  transition: border-color var(--t);
}
.skill-block:hover { border-color: var(--border-2); }
.skill-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.skill-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.skill-icon svg { width: 18px; height: 18px; }
.skill-block h4 { font-size: 0.95rem; }
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.5;
}
.skill-item::before {
  content: '·';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Outils / technologies ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.tool-chip {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color var(--t), transform var(--t);
}
.tool-chip:hover { border-color: var(--border-2); transform: translateY(-2px); }
.tool-chip img {
  width: 26px; height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.tool-chip span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--dim);
}

/* ── Formation / expériences (timeline) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -1.625rem;
  top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
}
.timeline-date {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.timeline-org {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}
.timeline-org img {
  height: 44px;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(1.1) saturate(0.8);
  opacity: 0.85;
}
.timeline-org span {
  font-size: 0.8rem;
  color: var(--dim);
  font-style: italic;
}
.timeline-title {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.timeline-title a { color: var(--text); transition: color var(--t); }
.timeline-title a:hover { color: var(--accent); }
.timeline-desc {
  font-size: 0.83rem;
  color: var(--dim);
  line-height: 1.7;
  max-width: 620px;
}

/* ── Expériences ── */
.exp-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.exp-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: border-color var(--t);
}
.exp-card:hover { border-color: var(--border-2); }
.exp-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
}
.exp-poste {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.exp-entreprise {
  font-size: 0.82rem;
  color: var(--dim);
  margin-bottom: 0.75rem;
}
.exp-desc {
  font-size: 0.83rem;
  color: var(--dim);
  line-height: 1.7;
}
.exp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.exp-list li {
  font-size: 0.83rem;
  color: var(--dim);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}
.exp-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ── Barres de niveau logiciels / langues ── */
.skills-levels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 620px;
}
.skill-level-row {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  align-items: center;
  gap: 1rem;
}
.skill-level-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.skill-level-bar {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.skill-level-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #34d399);
  border-radius: 99px;
}
.skill-level-label {
  font-size: 0.75rem;
  color: var(--dim);
  text-align: right;
}

@media (max-width: 900px) {
  .profil-hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 3rem; }
  .profil-hero-img { justify-content: flex-start; }
  .profil-avatar { width: 140px; height: 140px; }
  .profil-body { padding: 0 1.5rem 4rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-card { grid-template-columns: 1fr; gap: 0.5rem; }
  .skill-level-row { grid-template-columns: 1fr 80px; }
  .skill-level-name { grid-column: 1 / -1; margin-bottom: -0.25rem; }
}
@media (max-width: 600px) {
  .profil-hero { padding: 6rem 1.25rem 2.5rem; }
  .profil-body { padding: 0 1.25rem 3rem; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
