/* ============================
   LAYOUT CV (2 colonnes)
   ============================ */
.cv-layout {
  display: grid;
  grid-template-columns: 30% 1fr;
  margin: 40px;
  margin-left: 20px;
  padding-bottom: 60px;
  gap: 36px;
  align-items: start;
}

.cv-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.cv-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .cv-layout {
    grid-template-columns: 1fr;
	margin: 20px;
  }
}

/* ============================
   SECTIONS SPÉCIFIQUES AU CV
   ============================ */
.cv-about p {
  line-height: 1.55em;
  opacity: 0.9;
}

.cv-xp .job {
  margin-bottom: 24px;
}

.cv-education ul {
  margin-top: 10px;
}

/* ============================
   ICÔNES FLUENT
   ============================ */
.job-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.job-icon {
  width: 44px;
  height: 44px;
  opacity: 0.95;
  transition: filter 0.3s ease, transform 0.3s ease;
}

body.theme-light .job-icon {
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.15)) saturate(1.15);
}

body.theme-dark .job-icon {
  filter: drop-shadow(0 0 6px rgba(77,163,255,0.55)) brightness(1.25) saturate(1.3);
}

.job-icon:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 10px rgba(77,163,255,0.75)) brightness(1.35);
}

/* ============================
   WIDGET STACK
   ============================ */
.stack-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.stack-item {
  background: rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 16px 22px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  cursor: pointer;
}

body.theme-dark .stack-item {
  background: rgba(10,25,45,0.65);
}

.stack-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(77,163,255,0.4);
}

.stack-item img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(77,163,255,0.55));
}

.stack-item span {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  color: var(--accent);
}

/* ITEM ACTIF */
.stack-item.active {
  transform: translateY(-4px);
  box-shadow: 0 0 14px rgba(77,163,255,0.55);
}

.stack-item.active img {
  filter: drop-shadow(0 0 10px rgba(77,163,255,0.85));
}

.stack-item.active span {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(77,163,255,0.55);
}

/* ============================
   PANNEAU DE DÉTAILS STACK
   ============================ */
#stack-details-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: 12px;
  transition: max-height 0.45s ease, opacity 0.35s ease;
}

#stack-details-panel.open {
  max-height: 500px;
  opacity: 1;
}

body.theme-light #stack-details-panel {
  background: rgba(255,255,255,0.55);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body.theme-dark #stack-details-panel {
  background: rgba(10,25,45,0.65);
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

/* ============================
   COMPÉTENCES
   ============================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill {
  background: var(--card);
  padding: 18px 20px;
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  min-height: 95px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(77,163,255,0.35);
}

.skill span {
  margin-top: 4px;
  font-size: 0.9em;
  color: var(--accent);
  opacity: 0.85;
}