/* DESIGN: Modern Blue */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border: #e2e8f0;
  --tag-bg: #eff6ff;
  --tag-text: #2563eb;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 2rem; }

.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-left h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.5px; }
.header-left .title { font-size: 1.2rem; font-weight: 300; opacity: 0.9; margin-top: 0.25rem; }

.header-right { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.header-right .contact-item { display: flex; align-items: center; gap: 0.5rem; opacity: 0.9; }
.header-right .icon { width: 18px; text-align: center; opacity: 0.7; }

.years-exp {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.summary-container { padding-top: 2rem; padding-bottom: 0; }
.summary-text {
  background: var(--card);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}

.main {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.sidebar section {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.skill-category { margin-bottom: 1rem; }
.skill-category:last-child { margin-bottom: 0; }
.skill-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
}

.domain-tags .tag { background: #f0fdf4; color: #16a34a; }

.edu-item {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.edu-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.edu-degree { font-weight: 600; font-size: 0.9rem; }
.edu-school { font-size: 0.8rem; color: var(--text-light); }
.edu-period { font-size: 0.75rem; color: var(--text-lighter); }

.lang-item, .hobby-item { font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text); }
.lang-level { color: var(--text-light); font-size: 0.8rem; }

.hobby-item {
  padding-left: 0.8rem;
  position: relative;
  color: var(--text-light);
  font-size: 0.8rem;
}
.hobby-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

.exp-card {
  background: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.exp-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exp-company { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.exp-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-freelance { background: #ecfdf5; color: #059669; }
.badge-cdi { background: #eff6ff; color: #2563eb; }
.badge-stage, .badge-militaire { background: #f5f3ff; color: #7c3aed; }

.exp-role { font-size: 0.95rem; font-weight: 500; color: var(--primary); }
.exp-meta { display: flex; gap: 1.5rem; font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.75rem; }
.exp-description { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 0.5rem; }
.exp-highlights { list-style: none; margin: 0.3rem 0 0.75rem; padding: 0; }
.exp-highlights li {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.exp-highlights li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.exp-stack { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.stack-tag {
  background: #f1f5f9;
  color: var(--text-light);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
}
.stack-tag-important { background: #fef3c7; color: #92400e; }

@media (max-width: 768px) {
  .main { grid-template-columns: 1fr; }
  .header .container { flex-direction: column; text-align: center; }
  .header-right { align-items: center; }
  .header-left h1 { font-size: 2rem; }
}

@media print {
  body { background: white; }
  .container { padding: 0; max-width: 100%; }
  .header { padding: 1.5rem 0; }
  .header-left h1 { font-size: 1.8rem; }
  .main { gap: 1rem; padding-top: 1rem; }
  .sidebar section, .exp-card {
    border: 1px solid #ddd;
    box-shadow: none;
    break-inside: avoid;
    margin-bottom: 0.8rem;
    padding: 1rem;
  }
  .exp-card:hover { box-shadow: none; }
  @page { margin: 1cm; }
}
