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

:root {
  --bg: #ffffff;
  --bg-alt: #f9f9f8;
  --bg-card: #ffffff;
  --text: #191919;
  --text-muted: #787774;
  --text-light: #b0aca6;
  --accent: #2383e2;
  --accent-light: #eef4fd;
  --border: #ebebea;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.07);
  --font: 'Inter', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* ─────────────────────────────────────
   LAYOUT
───────────────────────────────────── */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Conteneur large pour Outils (pleine largeur avec marges confortables) */
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Conteneur étroit pour Contact */
.container-narrow {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: .9rem;
}

/* ─────────────────────────────────────
   NAV
───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: transparent;
  pointer-events: none;
}

.nav-logo {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .15s;
}

.nav-logo:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-pill {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  pointer-events: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2px;
}

.nav-links a {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 13px;
  border-radius: 999px;
  transition: background .15s, color .15s;
  display: block;
}

.nav-links a:hover {
  background: rgba(0,0,0,.05);
  color: var(--text);
}

.nav-links a.active {
  background: var(--text);
  color: #fff;
}

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Photo */
.hero-photo-wrap {
  margin-bottom: 28px;
}

.hero-photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
  overflow: hidden;
}

.hero-photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Animation d'entrée hero ── */
@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-tag,
.hero-title,
.hero-headline,
.hero-actions {
  animation: hero-enter .6s cubic-bezier(.22,.68,0,1.2) both;
}

.hero-tag      { animation-delay: .05s; }
.hero-title    { animation-delay: .2s;  }
.hero-headline { animation-delay: .35s; }
.hero-actions  { animation-delay: .5s;  }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-tag::before,
.hero-tag::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--border);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg);
  opacity: 1;
  transition: opacity .4s ease, border-color .2s ease, color .2s ease;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-hint:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─────────────────────────────────────
   HIGHLIGHTS
───────────────────────────────────── */
.highlights {
  background: var(--bg-alt);
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid var(--border);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 36px 28px;
  border-right: 1px solid var(--border);
}

.highlight-item:last-child {
  border-right: none;
}

.highlight-icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 14px;
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.highlight-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.highlight-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─────────────────────────────────────
   BUTTONS
───────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #333;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg);
}

.btn-ghost:hover {
  border-color: #ccc;
  color: var(--text);
}

/* ─────────────────────────────────────
   ABOUT
───────────────────────────────────── */
.about-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.about-title-row .section-title {
  margin-bottom: 0;
}

.about-avatar {
  width: 52px;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: .93rem;
}

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.skills-list li {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-list li:first-child {
  border-top: 1px solid var(--border);
}

.skills-list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─────────────────────────────────────
   PARCOURS
───────────────────────────────────── */
.parcours-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 16px;
  flex-wrap: wrap;
}

.cv-download {
  flex-shrink: 0;
  white-space: nowrap;
}

.parcours-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1px 1fr;
  gap: 0 28px;
  padding-bottom: 40px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--border);
  margin-top: 6px;
  position: relative;
  left: -4px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item-muted .timeline-dot {
  background: var(--border);
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-period {
  font-size: .73rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .03em;
}

.timeline-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
  margin-top: 2px;
}

.timeline-title {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-top: 4px;
  color: var(--text);
}

.timeline-company {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.timeline-missions {
  list-style: none;
  padding: 0;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-missions li {
  font-size: .8rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.55;
}

.timeline-missions li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-light);
}

.timeline-item-muted .timeline-title,
.timeline-item-muted .timeline-company {
  opacity: .4;
}

/* ── Aside ── */
.parcours-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 76px;
}

.aside-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-title {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.edu-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.edu-year {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-light);
  min-width: 36px;
  padding-top: 2px;
}

.edu-name {
  font-size: .83rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

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

.skills-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skills-tags li {
  font-size: .73rem;
  font-weight: 500;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: 6px;
}

.lang-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
}

.lang-name {
  font-weight: 500;
  color: var(--text);
}

.lang-level {
  font-size: .72rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ─────────────────────────────────────
   OUTILS
───────────────────────────────────── */
.tools-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tools-category {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 24px;
  align-items: start;
}

.tools-category:last-child {
  border-bottom: none;
}

.tools-cat-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 22px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 10px;
  cursor: default;
  transition: background .15s;
}

.tool-item:hover {
  background: var(--border);
}

.tool-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.tool-icon-text {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.tool-name {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  transition: color .15s;
}

.tool-item:hover .tool-name {
  color: var(--text);
}

/* ─────────────────────────────────────
   PROJECTS
───────────────────────────────────── */
.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Project card ── */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ── Browser chrome ── */
.project-gallery-wrap {
  flex-shrink: 0;
}

.browser-chrome {
  background: #e8e8e6;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  height: 18px;
  background: rgba(255,255,255,.75);
  border-radius: 5px;
  max-width: 180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.browser-favicon {
  width: 12px;
  height: 12px;
  object-fit: contain;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

/* ── Gallery / slider ── */
.project-gallery {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16/10;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
}

.gallery-track img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  display: block;
}


.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .15s;
  border: none;
  padding: 0;
}

.gallery-dot.active {
  background: #fff;
}

/* ── Project content ── */
.project-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-number {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: .08em;
}

/* Carte avec logo (sans screenshots) */
.project-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f0ee 0%, #e8e8e4 100%);
  padding: 48px 24px;
  border-bottom: 1px solid var(--border);
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  letter-spacing: .04em;
}

.project-title-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-logo-img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  object-fit: contain;
}

/* Carte sans galerie (projet en poste) */
.project-card-text .project-content {
  padding: 28px;
}

.project-context {
  font-size: .73rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: .03em;
  margin-bottom: -4px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--text);
}

.project-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── WIP card ── */
.project-wip {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  opacity: .5;
  transition: opacity .2s;
}

.project-wip:hover {
  opacity: .8;
}

.project-wip .card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.wip-avatar {
  width: 48px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.project-tech {
  margin-top: 14px;
  font-size: .72rem;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  color: var(--text-muted);
  letter-spacing: .02em;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  margin: 2px 0;
}

.card-features li {
  font-size: .78rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.card-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .72rem;
}

.card-icon {
  font-size: 1.3rem;
}

.card-title {
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
}

.card-desc {
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  font-size: .7rem;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-links {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.link-btn {
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity .15s;
}

.link-btn:hover {
  opacity: .7;
}

/* ─────────────────────────────────────
   CONTACT
───────────────────────────────────── */
.contact-container {
  text-align: center;
}

.contact-avatar {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin: 0 auto 20px;
}

.contact-container .section-title {
  margin-bottom: 8px;
}

.contact-container .section-sub {
  margin-bottom: 12px;
}

.contact-location {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.linkedin-cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.linkedin-or {
  font-size: .78rem;
  color: var(--text-light);
  letter-spacing: .04em;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0A66C2;
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}

.btn-linkedin:hover {
  background: #004182;
  transform: translateY(-1px);
}

/* ─────────────────────────────────────
   CONTACT FORM
───────────────────────────────────── */
.contact-container {
  max-width: 560px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: .88rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  resize: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35,131,226,.1);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}


/* ─────────────────────────────────────
   BACK TO TOP
───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, background .15s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--bg-alt);
  color: var(--text);
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
.footer {
  padding: 28px 24px;
  text-align: center;
  font-size: .75rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────
   ANIMATIONS
───────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 680px) {
  .nav {
    padding: 0 20px;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding: 5px 8px;
    font-size: .75rem;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-item {
    padding: 24px 20px;
  }

  .highlight-item:nth-child(2) {
    border-right: none;
  }

  .highlight-item:nth-child(1),
  .highlight-item:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .parcours-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .parcours-aside {
    position: static;
  }

  .parcours-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tools-category {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tools-cat-label {
    padding-top: 0;
  }

  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-list {
    grid-template-columns: 1fr;
  }
}
