/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');
 
/* ===== RESET + THEME ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
 
:root {
  /* Core palette */
  --ink:          #18181b;
  --ink-light:    #52525b;
  --ink-faint:    #a1a1aa;
  --paper:        #f7f6f3;
  --white:        #ffffff;
 
  /* Accent system */
  --accent:       #1d4e7a;
  --accent-mid:   #2563a8;
  --accent-warm:  #b8804a;
  --accent-warm-light: rgba(184,128,74,.10);
  --accent-light: rgba(29,78,122,.07);
  --accent-glow:  rgba(29,78,122,.12);
 
  /* Surfaces */
  --surface-0: #ffffff;
  --surface-1: #f9f8f5;
  --surface-2: #f3f2ef;
 
  /* Borders */
  --border:       #e6e4de;
  --border-mid:   #d4d2cc;
  --border-strong:#b8b4aa;
 
  /* Shadows — layered, naturalistic */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.05);
 
  /* Radius */
  --r:  5px;
  --r2: 10px;
  --r3: 16px;
 
  /* Transitions */
  --tr:   .22s cubic-bezier(.4,0,.2,1);
  --tr-s: .15s cubic-bezier(.4,0,.2,1);
  --tr-l: .38s cubic-bezier(.4,0,.2,1);
 
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
 
html { scroll-behavior: smooth; }
 
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
 
/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h4, h5, h6, p, span, li, a { font-family: var(--font-body); }
 
a { color: var(--accent-mid); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--accent-warm); }
 
/* ===== NAV ===== */
nav {
  background: rgba(247,246,243,.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--tr), background var(--tr);
}
nav:hover { box-shadow: var(--shadow-md); }
 
.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 66px;
}
 
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  white-space: nowrap;
  position: relative;
}
.nav-brand::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr-l);
}
.nav-brand:hover::after { transform: scaleX(1); }
 
nav ul { list-style: none; display: flex; gap: .2rem; align-items: center; }
 
nav a {
  color: var(--ink-light);
  font-size: .84rem;
  font-weight: 500;
  padding: .42rem .82rem;
  border-radius: var(--r);
  transition: color var(--tr), background var(--tr);
  letter-spacing: .015em;
  position: relative;
}
nav a:hover {
  color: var(--ink);
  background: var(--accent-light);
}
 
/* ===== LAYOUT ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  min-height: calc(100vh - 220px);
}
 
/* ===== SECTION ===== */
.section {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 3.5rem 3.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr-l), border-color var(--tr);
  position: relative;
  overflow: hidden;
}
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-warm) 0%, transparent 60%);
  opacity: .55;
}
.section:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid); }
 
.section h2 {
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 2.25rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  letter-spacing: -.02em;
}
.section h2 span.h2-text {
  display: inline-block;
  position: relative;
  padding-bottom: .6rem;
}
.section h2 span.h2-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-warm);
  border-radius: 2px;
}
 
.section h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 1.6rem 0 .65rem;
}
 
/* ===== INDEX PAGE ===== */
.hero-section {
  text-align: center;
  padding: 6rem 2rem 5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(29,78,122,.06) 0%, rgba(184,128,74,.03) 50%, transparent 72%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(184,128,74,.04) 0%, transparent 60%);
  pointer-events: none;
}
 
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: .6rem;
  animation: fadeUp .7s ease both;
  position: relative;
  z-index: 1;
}
 
.hero-subtitle {
  font-size: 1rem;
  color: var(--ink-faint);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  animation: fadeUp .7s .14s ease both;
  position: relative;
  z-index: 1;
}
 
.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255,255,255,.9);
  margin: 0 auto 3rem;
  display: block;
  animation: fadeUp .7s .28s ease both;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease;
  position: relative;
  z-index: 1;
}
.profile-image:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: var(--shadow-xl), 0 0 0 6px rgba(255,255,255,.9);
}
 
.index-welcome {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.85;
  animation: fadeUp .7s .42s ease both;
  position: relative;
  z-index: 1;
}
.index-welcome a { font-weight: 600; color: var(--accent-mid); }
.center { text-align: center; }
 
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
/* ===== À PROPOS ===== */
.about-academic, .about-bordered, .about-highlight {
  padding: 1.85rem 2rem;
  border-radius: var(--r2);
  margin-bottom: 1.25rem;
  transition: transform var(--tr), box-shadow var(--tr);
}
.about-academic:hover, .about-bordered:hover { transform: translateX(3px); }
 
.about-academic {
  background: rgba(184,128,74,.06);
  border-left: 3px solid var(--accent-warm);
}
.about-bordered {
  background: var(--surface-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.about-highlight {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--accent-warm);
}
 
.about-academic h3, .about-bordered h3 {
  color: var(--ink-faint);
  margin-top: 0;
  font-size: .78rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .6rem;
}
.about-highlight h3 {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 0;
  margin-bottom: .6rem;
}
.about-highlight p { color: var(--white); font-size: 1.05rem; }
 
.about-academic p, .about-bordered p {
  font-size: .97rem;
  color: var(--ink-light);
  line-height: 1.8;
}
.about-academic strong, .about-bordered strong { color: var(--ink); font-weight: 600; }
 
/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-warm), var(--border), transparent);
}
 
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.85rem 2rem;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  transition: border-color var(--tr), box-shadow var(--tr-l), transform var(--tr);
  box-shadow: var(--shadow-xs);
}
.timeline-item:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-md), -3px 0 0 var(--accent-warm);
  transform: translateX(4px);
}
 
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.65rem;
  top: 2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-warm);
  border: 2.5px solid var(--paper);
  box-shadow: 0 0 0 3px var(--border-mid);
  transition: transform var(--tr), box-shadow var(--tr);
}
.timeline-item:hover::before {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px var(--accent-warm-light);
}
 
.timeline-date {
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .85rem;
  display: block;
}
 
.timeline-content { display: flex; gap: 2rem; align-items: flex-start; }
.timeline-text { flex: 1; }
 
.timeline-content h3 {
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: .3rem;
  letter-spacing: -.015em;
}
.timeline-location {
  font-size: .88rem;
  color: var(--ink-light);
  font-weight: 500;
  margin-bottom: 0;
}
.timeline-description {
  margin-top: .8rem;
  color: var(--ink-light);
  font-size: .94rem;
  line-height: 1.75;
}
 
.timeline-image {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: var(--r2);
  background: var(--surface-1);
  padding: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform var(--tr);
}
.timeline-item:hover .timeline-image { transform: scale(1.04); }
 
/* ===== COMPÉTENCES ===== */
.skill-category {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr);
  box-shadow: var(--shadow-xs);
}
.skill-category:hover { border-color: var(--border-mid); box-shadow: var(--shadow-sm); }
 
.skill-header {
  background: var(--surface-0);
  padding: 1.15rem 1.6rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--tr);
  user-select: none;
}
.skill-header:hover { background: var(--accent-light); }
 
.skill-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: .95rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .01em;
}
 
.skill-icon {
  font-size: .8rem;
  color: var(--ink-faint);
  transition: transform var(--tr-l);
  flex-shrink: 0;
}
 
.skill-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .48s cubic-bezier(.4,0,.2,1);
  background: var(--surface-1);
}
.skill-content.active {
  max-height: 2500px;
  border-top: 1px solid var(--border);
}
 
.skill-item {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
  padding: 1.15rem 1.6rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), padding-left var(--tr);
}
.skill-item:last-child { border-bottom: none; }
.skill-item:hover { background: var(--surface-0); padding-left: 2rem; }
 
.skill-item-image {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--surface-0);
  padding: 8px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform var(--tr), box-shadow var(--tr);
}
.skill-item:hover .skill-item-image {
  transform: scale(1.06);
  box-shadow: var(--shadow-sm);
}
 
.skill-item-text h4 {
  color: var(--ink);
  font-size: .93rem;
  margin-bottom: .28rem;
  font-weight: 600;
}
.skill-item-text p {
  color: var(--ink-light);
  font-size: .86rem;
  line-height: 1.65;
}
 
/* ===== PROJETS ===== */
.project-item {
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color var(--tr), box-shadow var(--tr-l), transform var(--tr);
  box-shadow: var(--shadow-xs);
}
.project-item:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
 
.project-header {
  background: var(--surface-0);
  padding: 1.3rem 1.6rem;
  cursor: pointer;
  display: flex;
  gap: 1.35rem;
  align-items: center;
  transition: background var(--tr);
}
.project-header:hover { background: var(--accent-light); }
 
.project-preview-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: transform var(--tr), box-shadow var(--tr);
}
.project-header:hover .project-preview-image {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}
 
.project-header-text { flex: 1; min-width: 0; }
.project-header-text h3 {
  margin: 0 0 .38rem;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -.01em;
}
.project-header-text p {
  margin: .38rem 0 0;
  color: var(--ink-light);
  font-size: .86rem;
}
 
.project-type {
  display: inline-block;
  background: var(--accent-warm-light);
  color: var(--accent-warm);
  padding: .22rem .72rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid rgba(184,128,74,.18);
}
 
.project-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .48s cubic-bezier(.4,0,.2,1);
}
.project-content.active {
  max-height: 2000px;
  padding: 2.25rem 1.6rem;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}
.project-content p {
  margin-bottom: .8rem;
  color: var(--ink-light);
  font-size: .94rem;
  line-height: 1.75;
}
.project-content p strong { color: var(--ink); font-weight: 600; }
 
/* ===== DIVERS ===== */
.passion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
 
.passion-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--tr), box-shadow var(--tr-l), transform var(--tr);
  box-shadow: var(--shadow-sm);
}
.passion-card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
 
.passion-card h3 {
  color: var(--ink);
  font-size: .95rem;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 1.1rem 1.35rem .55rem;
  letter-spacing: .005em;
}
 
.passion-card > p {
  color: var(--ink-light);
  font-size: .86rem;
  padding: 0 1.35rem 1.35rem;
  line-height: 1.7;
}
 
.passion-image {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.passion-card:hover .passion-image { transform: scale(1.03); }
 
.passion-card-reading { grid-column: 1/-1; }
.passion-card-reading h3 {
  padding: 1.35rem 1.6rem .55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.passion-card-reading > p { padding: 0 1.6rem .85rem; }
.passion-card-reading .passion-image { height: 230px; }
 
.books-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1rem;
  padding: .5rem 1.6rem 1.6rem;
}
 
.book-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
.book-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
}
 
.book-cover {
  width: 88px;
  height: 128px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: .85rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.1);
  transition: transform var(--tr), box-shadow var(--tr);
}
.book-item:hover .book-cover {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
 
.book-item h4 { color: var(--ink); font-size: .88rem; font-weight: 600; margin-bottom: .5rem; }
.book-item p { text-align: left; font-size: .8rem; color: var(--ink-light); line-height: 1.6; }
 
.divers-sports-section { margin-top: 3.5rem; }
.divers-sports-section h2 {
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  letter-spacing: -.02em;
}
.divers-sports-section h2 span.h2-text::after {
  height: 2px;
  background: var(--accent-warm);
}
 
/* ===== CONTACT ===== */
.contact-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 2.25rem;
  line-height: 1.8;
}
 
.contact-info { display: flex; flex-direction: column; gap: 1rem; margin: 2.25rem 0; }
 
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.6rem;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr-l);
  box-shadow: var(--shadow-xs);
}
.contact-item:hover {
  border-color: var(--accent-mid);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}
 
.contact-icon {
  font-size: 1.4rem;
  color: var(--accent-mid);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--r);
  flex-shrink: 0;
  transition: background var(--tr), transform var(--tr);
}
.contact-item:hover .contact-icon {
  background: var(--accent-glow);
  transform: scale(1.08);
}
 
.contact-text strong {
  display: block;
  color: var(--ink-faint);
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: .32rem;
}
.contact-text a {
  color: var(--ink);
  font-size: .98rem;
  font-weight: 500;
  transition: color var(--tr);
}
.contact-text a:hover { color: var(--accent-mid); }
 
.contact-alternance {
  margin-top: 2.75rem;
  padding: 2.25rem 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r2);
  text-align: center;
  background: var(--accent-light);
  position: relative;
}
.contact-alternance::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r2);
  background: radial-gradient(ellipse at center, rgba(29,78,122,.04), transparent);
}
.contact-alternance p { color: var(--ink-light); line-height: 2; position: relative; }
.contact-alternance strong { color: var(--ink); }
 
/* ===== CV ===== */
.cv-intro {
  text-align: center;
  font-size: 1rem;
  color: var(--ink-light);
  margin-bottom: 2.25rem;
}
.cv-image-container { text-align: center; margin: 2.25rem 0; }
.cv-image {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--shadow-xl);
  transition: box-shadow var(--tr-l), transform var(--tr-l);
}
.cv-image:hover { box-shadow: var(--shadow-xl), 0 0 0 4px var(--accent-light); transform: scale(1.005); }
.cv-download { text-align: center; margin-top: 2.25rem; }
.cv-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--ink-faint);
  font-size: .84rem;
}
 
/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--r);
  font-weight: 500;
  font-size: .9rem;
  padding: .9rem 2.2rem;
  letter-spacing: .04em;
  transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 100%);
  pointer-events: none;
}
.btn:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.btn:active { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
 
.badges { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.badge {
  display: inline-block;
  background: var(--accent-warm-light);
  color: var(--ink-light);
  border: 1px solid var(--border-mid);
  padding: .38rem .95rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background var(--tr), color var(--tr), transform var(--tr), border-color var(--tr);
}
.badge:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-2px);
}
 
/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.35);
  text-align: center;
  padding: 2.25rem 2rem;
  font-size: .84rem;
  letter-spacing: .04em;
  margin-top: 4.5rem;
}
 
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-content { flex-direction: column; height: auto; padding: 1rem 1.5rem; gap: .75rem; }
  nav ul { justify-content: center; flex-wrap: wrap; gap: .2rem; }
  nav a { font-size: .78rem; padding: .35rem .65rem; }
  .nav-brand { font-size: 1.05rem; }
 
  .hero-title { font-size: 2rem; letter-spacing: -.02em; }
  .hero-section { padding: 3.5rem 1rem 3rem; }
  .container { padding: 1.5rem 1rem; }
  .section { padding: 1.75rem 1.25rem; }
  .section::before { display: none; }
 
  .timeline { padding-left: 1.5rem; }
  .timeline-date { position: static; margin-bottom: .5rem; display: block; }
  .timeline-content { flex-direction: column; gap: 1rem; }
  .timeline-image { width: 58px; height: 58px; }
  .timeline-item:hover { transform: none; }
 
  .passion-grid { grid-template-columns: 1fr; }
  .project-header { flex-direction: column; text-align: center; }
  .project-preview-image { width: 80px; height: 80px; margin: 0 auto; }
  .books-horizontal { grid-template-columns: repeat(2, 1fr); }
 
  .contact-item:hover { transform: none; }
  .timeline-item:hover { box-shadow: var(--shadow-md); }
}
 
@media (max-width: 480px) {
  .section { padding: 1.5rem 1rem; }
  .hero-title { font-size: 1.75rem; }
  .books-horizontal { grid-template-columns: 1fr; }
}