/* ── VARIABLES ── */
:root {
  --bg: #f9f7f4;
  --white: #ffffff;
  --ink: #1a1a1a;
  --ink2: #3d3d3d;
  --muted: #8a8680;
  --rule: #dedad4;
  --accent: #1d3a5f;
  --accent-light: #edf1f7;
  --tag-bg: #f0ede8;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── PAGE WRAPPER ── */
.page {
  max-width: 860px;
  margin: 3rem auto;
  background: var(--white);
  box-shadow: 0 2px 40px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
}

/* ── TOP BAND ── */
.top-band {
  background: var(--accent);
  color: white;
  padding: 2.8rem 3rem 2.4rem;
  position: relative;
  overflow: hidden;
}

.top-band::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,0.04);
}

.top-band::after {
  content: '';
  position: absolute;
  right: 60px; bottom: -80px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 30px solid rgba(255,255,255,0.04);
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
}

.name em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}

.job-title {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.summary {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  max-width: 440px;
  line-height: 1.7;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  text-align: right;
  padding-top: 0.4rem;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ci {
  width: 14px; height: 14px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── BODY GRID ── */
.body-grid {
  display: grid;
  grid-template-columns: 1fr 230px;
}

.main-col {
  padding: 2.5rem 3rem 3rem 3rem;
  border-right: 1px solid var(--rule);
}

.side-col {
  padding: 2.5rem 1.8rem 3rem;
  background: var(--bg);
}

/* ── SECTIONS ── */
.section { margin-bottom: 2.8rem; }
.section:last-child { margin-bottom: 0; }

.sec-title {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sec-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── EXPERIENCE ── */
.exp-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.exp-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.exp-item:nth-child(1) { animation-delay: 0.05s; }
.exp-item:nth-child(2) { animation-delay: 0.12s; }
.exp-item:nth-child(3) { animation-delay: 0.19s; }

@keyframes fadeIn { to { opacity: 1; } }

.exp-meta { padding-top: 3px; text-align: right; }

.exp-dates {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.exp-circle {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 5px;
}

.exp-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 0.4rem;
}

.exp-company {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

.exp-loc { font-size: 0.75rem; color: var(--muted); }

.exp-desc {
  margin-top: 0.7rem;
  font-size: 0.83rem;
  color: var(--ink2);
  line-height: 1.7;
}

.exp-desc ul { padding-left: 0; list-style: none; }

.exp-desc ul li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.3rem;
}

.exp-desc ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ── TAGS ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink2);
}

/* ── PROJETS ── */
.proj-item {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.proj-item:last-child { margin-bottom: 0; }

.proj-item:hover {
  border-color: var(--accent);
  box-shadow: 3px 3px 0 var(--accent-light);
}

.proj-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.proj-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.6;
}

/* ── COMPÉTENCES ── */
.skill-cat { margin-bottom: 1.6rem; }
.skill-cat:last-child { margin-bottom: 0; }

.skill-cat-name {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.skill-row { margin-bottom: 0.55rem; }

.skill-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink2);
  margin-bottom: 4px;
}

.skill-pct { font-size: 0.7rem; color: var(--muted); }

.bar { height: 3px; background: var(--rule); border-radius: 2px; overflow: hidden; }

.bar-inner {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.bar-inner.animated { transform: scaleX(1); }

/* ── FORMATION ── */
.edu-item {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.edu-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.edu-year { font-size: 0.7rem; color: var(--accent); font-weight: 500; letter-spacing: 0.08em; }

.edu-degree {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-top: 1px;
}

.edu-school { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }

/* ── LANGUES ── */
.lang-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  color: var(--ink2);
}

.lang-badge {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ── FOOTER BAND ── */
.footer-band {
  background: var(--accent);
  padding: 0.9rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .page { margin: 0; box-shadow: none; }
  .body-grid { grid-template-columns: 1fr; }
  .main-col { padding: 2rem 1.5rem; border-right: none; }
  .side-col { padding: 2rem 1.5rem; border-top: 1px solid var(--rule); }
  .top-band { padding: 2rem 1.5rem; }
  .header-grid { grid-template-columns: 1fr; }
  .contact-block { text-align: left; align-items: flex-start; }
  .footer-band { padding: 0.9rem 1.5rem; flex-direction: column; gap: 0.3rem; }
  .exp-item { grid-template-columns: 60px 1fr; }
}
