/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  color: #1a1a2e;
  background: #f0f2f7;
  line-height: 1.5;
}

/* ── Cover ── */
.cover {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15,52,96,0.92) 0%, rgba(26,26,46,0.88) 100%),
    url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1400&auto=format&fit=crop') center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  position: relative;
}
.cover-badge {
  background: rgba(233,69,96,0.85);
  border-radius: 50px;
  padding: 5px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.cover h1 { font-size: 52px; font-weight: 800; letter-spacing: 5px; margin-bottom: 8px; }
.cover h2 { font-size: 17px; font-weight: 300; opacity: 0.8; margin-bottom: 32px; }
.cover-divider { width: 50px; height: 3px; background: #e94560; margin: 0 auto 28px; border-radius: 2px; }
.cover-subtitle { font-size: 13px; opacity: 0.7; margin-bottom: 40px; letter-spacing: 1px; }
.cover-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 13px; opacity: 0.85; }
.cover-contacts span i { margin-right: 6px; color: #e94560; }
.cover-year {
  position: absolute; bottom: 24px;
  font-size: 11px; opacity: 0.4; letter-spacing: 2px; text-transform: uppercase;
}

/* ── Layout ── */
.page { max-width: 900px; margin: 0 auto; padding: 50px 36px; }
.page-break { page-break-before: always; }

.section-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: #e94560; margin-bottom: 4px;
}
.section-title {
  font-size: 24px; font-weight: 700; color: #0f3460;
  margin-bottom: 24px; padding-bottom: 10px;
  border-bottom: 2px solid #e0e4ee;
}

/* ── Nav tabs (sidebar on desktop) ── */
.toc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.toc-item {
  background: #fff; border-radius: 10px; padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid #0f3460;
  font-size: 12px; font-weight: 600; color: #1a1a2e;
}
.toc-item i { color: #e94560; margin-right: 8px; }

/* ── Profile ── */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.profile-card {
  background: #fff; border-radius: 12px; padding: 20px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.profile-card h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #e94560; margin-bottom: 12px; }
.profile-card ul { list-style: none; }
.profile-card ul li { padding: 5px 0; font-size: 12px; color: #444; border-bottom: 1px solid #f2f4f8; }
.profile-card ul li:last-child { border: none; }
.profile-card ul li i { width: 18px; color: #0f3460; margin-right: 6px; }

/* ── Skill chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  background: #0f3460; color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 12px;
  border-radius: 20px;
}
.chip.secondary { background: #e9ecf5; color: #333; }

/* ── Référentiel table ── */
.ref-table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.ref-table th { background: #0f3460; color: #fff; padding: 11px 16px; text-align: left; font-size: 12px; }
.ref-table td { padding: 10px 16px; font-size: 12px; }
.ref-table td:first-child { font-weight: 800; color: #e94560; white-space: nowrap; width: 60px; }
.ref-table tr:nth-child(odd) { background: #f8f9fc; }
.ref-table tr:nth-child(even) { background: #fff; }

/* ── Réalisation card ── */
.card {
  background: #fff; border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  margin-bottom: 30px; overflow: hidden;
}
.card-header {
  background: linear-gradient(90deg, #0f3460 0%, #1a3a6b 100%);
  color: #fff; padding: 18px 24px;
  display: flex; align-items: center; gap: 16px;
}
.card-num {
  background: #e94560; color: #fff; font-size: 18px; font-weight: 800;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.card-header h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.card-header p { font-size: 11px; opacity: 0.7; }
.card-body { padding: 22px 24px; }

/* ── Info boxes ── */
.info-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.info-box { background: #f5f7fa; border-radius: 8px; padding: 10px 13px; }
.info-box label { display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #e94560; margin-bottom: 3px; }
.info-box p { font-size: 11px; color: #333; }

/* ── Task list ── */
.tasks { list-style: none; padding: 0; }
.tasks li {
  padding: 6px 0 6px 18px; position: relative;
  font-size: 12px; color: #444;
  border-bottom: 1px solid #f0f2f7;
}
.tasks li:last-child { border: none; }
.tasks li::before { content: '▸'; position: absolute; left: 0; color: #e94560; font-size: 11px; }

/* ── Competency badges ── */
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.badge { background: #0f3460; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 20px; }
.badge-label { background: #eef0f8; color: #333; font-size: 11px; padding: 3px 11px; border-radius: 20px; }

.sub-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: #0f3460; margin: 14px 0 7px;
}

/* ── CV embed ── */
.cv-wrap { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.cv-wrap embed { border-radius: 8px; }
.cv-dl { display: inline-block; margin-top: 12px; background: #e94560; color: #fff; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-size: 12px; font-weight: 700; }
.cv-dl i { margin-right: 6px; }

/* ── Mapping table ── */
.map-table { width: 100%; border-collapse: collapse; font-size: 12px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.map-table th { background: #0f3460; color: #fff; padding: 11px 10px; text-align: center; font-size: 11px; }
.map-table th:first-child { text-align: left; min-width: 220px; }
.map-table td { padding: 10px; text-align: center; border-bottom: 1px solid #eef0f8; }
.map-table td:first-child { text-align: left; font-weight: 600; background: #f8f9fc; padding-left: 14px; }
.dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.dot.yes { background: #e94560; }
.dot.no  { background: #e0e4ee; }
.map-table tr.total td:first-child { background: #e8f0fb; color: #0f3460; }
.map-table tr.total td { background: #e8f0fb; font-weight: 800; color: #e94560; font-size: 14px; }

/* ── Footer ── */
.footer { text-align: center; color: #aaa; font-size: 11px; padding: 30px 0 20px; border-top: 1px solid #e0e4ee; margin-top: 40px; }

/* ── Print ── */
@media print {
  body { background: #fff; }
  .cover { min-height: 100vh; }
  .card { box-shadow: none; border: 1px solid #e0e4ee; }
  .cv-wrap embed { height: 500px; }
}
