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

:root {
  --bg: #131518;
  --card: #1c1f26;
  --card2: #22262f;
  --border: rgba(255, 255, 255, 0.06);
  --accent: #1aafcc;
  --accent2: rgba(26, 175, 204, 0.1);
  --accent3: rgba(26, 175, 204, 0.22);
  --white: #ffffff;
  --grey: #8c8c8e;
  --grey2: #9a9da3;
  --font: "Poppins", sans-serif;
  --radius: 14px;
  --sidebar: 290px;
}

/* ─── ACCESSIBILITÉ ──────────────────────────────────── */
/* Focus visible clavier (RGAA 10.7 / WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link (RGAA 12.7 / WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: #0d1117;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* Texte visible uniquement pour les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--grey);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ─── SIDEBAR ────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar);
  height: 100vh;
  overflow-y: auto;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 100;
}

/* Avatar */
.sb-avatar-wrap {
  text-align: center;
}
.sb-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
}
.sb-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.sb-title {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 500;
  background: var(--accent2);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 100px;
  border: 1px solid var(--accent3);
  margin-top: 5px;
  letter-spacing: 0.4px;
}
.sb-available {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  font-size: 0.66rem;
  color: var(--grey);
}
.lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: lamp 2s infinite;
}
@keyframes lamp {
  0%, 100% { box-shadow: 0 0 8px #22c55e; }
  50%       { box-shadow: 0 0 16px #22c55e; }
}

/* Separator */
.sep {
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

/* Nav */
.sb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--grey);
  text-decoration: none;
  transition: all 0.2s;
}
.sb-nav a .ni {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
}
.sb-nav a:hover,
.sb-nav a.active {
  background: var(--accent2);
  color: var(--accent);
}

/* Contact list */
.sb-block-title {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey2);
  margin-bottom: 8px;
}
.sb-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sb-contacts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-ci {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--card2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}
.sb-cd {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sb-cd .lbl {
  font-size: 0.57rem;
  color: var(--grey2);
  line-height: 1.2;
}
.sb-cd a,
.sb-cd span {
  font-size: 0.72rem;
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
}
.sb-cd a {
  color: var(--accent);
}
.sb-cd a:hover {
  text-decoration: underline;
}

/* Language circles */
.sb-langs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-circle {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.lang-circle svg {
  transform: rotate(-90deg);
  width: 48px;
  height: 48px;
}
.lc-bg {
  fill: none;
  stroke: var(--card2);
  stroke-width: 3.5;
}
.lc-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.3s ease;
}
.lang-circle .lc-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--white);
}
.lang-info .li-name {
  font-size: 0.75rem;
  color: var(--white);
  font-weight: 600;
}
.lang-info .li-level {
  font-size: 0.62rem;
  color: var(--grey);
}

/* ─── SIDEBAR SKILL BARS ─────────────────────────────── */
.sb-skills {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sb-skill-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.sb-skill-name {
  font-size: 0.8rem;
  color: var(--white);
  font-weight: 500;
}
.sb-skill-pct {
  font-size: 0.7rem;
  color: var(--grey2);
}
.sb-skill-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.sb-skill-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #5dd6ea);
  transition: width 1.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.sb-tools-sep {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}
.sb-tools {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sb-tools li {
  font-size: 0.78rem;
  color: var(--grey2);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.sb-tools li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.72rem;
}

/* CV button */
.sb-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  background: var(--accent);
  color: #0d1117;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  margin-top: auto;
}
.sb-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ─── MAIN ───────────────────────────────────────────── */
main {
  margin-left: var(--sidebar);
  flex: 1;
}

/* ─── SECTION ────────────────────────────────────────── */
.section {
  padding: 64px 48px;
  border-bottom: 1px solid var(--border);
}
.section:last-child {
  border-bottom: none;
}

.section-head {
  margin-bottom: 44px;
}
.s-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.s-label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.s-title {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.s-title span {
  color: var(--accent);
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 64px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
#hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center right;
  z-index: 0;
}
#hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #131518 30%,
    rgba(19, 21, 24, 0.82) 55%,
    rgba(19, 21, 24, 0.25) 100%
  );
}
.hero-grid {
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero-greeting::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.hero-name {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
}
.hero-name span {
  color: var(--accent);
}
.hero-typed-wrap {
  margin-top: 10px;
  font-size: 0.95rem;
  min-height: 26px;
}
.hero-typed {
  color: var(--white);
  font-weight: 600;
}
.hero-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero-desc {
  margin-top: 16px;
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--grey);
}
.hero-desc strong {
  color: var(--white);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.hs-item {
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--card2);
}
.hs-item:last-child {
  border-right: none;
}
.hs-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1;
}
.hs-num em {
  color: var(--accent);
  font-style: normal;
  font-size: 1rem;
}
.hs-label {
  font-size: 0.58rem;
  color: var(--grey);
  margin-top: 4px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.btn-accent {
  background: var(--accent);
  color: #0d1117;
}
.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 175, 204, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .hero-grid {
    max-width: 100%;
  }
}

/* ─── SKILLS — DOMAIN CARDS ─────────────────────────── */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.domain-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.domain-card:hover {
  border-color: var(--accent3);
  transform: translateY(-3px);
}
.domain-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.domain-desc {
  font-size: 0.82rem;
  color: var(--grey2);
  line-height: 1.65;
}

/* ─── SKILLS — TECH CARDS ───────────────────────────── */
.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tech-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.tech-card:hover {
  border-color: var(--accent3);
  transform: translateY(-3px);
}
.tc-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}
.tc-desc {
  font-size: 0.82rem;
  color: var(--grey2);
  line-height: 1.65;
  flex: 1;
}
.tc-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.tc-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
}
.tc-logo-white {
  filter: brightness(0) invert(1);
}
.tc-logo-php8 {
  width: 96px;
  height: 38px;
}
.tc-logo-duo {
  display: flex;
  gap: 10px;
  align-items: center;
}
.tc-link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
  margin-top: auto;
}
.tc-link:hover {
  opacity: 0.75;
}
@media (max-width: 900px) {
  .domain-grid,
  .tech-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .domain-grid,
  .tech-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── TIMELINE ───────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
}
.tl-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 18px;
  padding-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.tl-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-line {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 4px;
}
.tl-conn {
  width: 1px;
  flex: 1;
  background: var(--border);
  margin-top: 5px;
}
.tl-item:last-child .tl-conn {
  display: none;
}
.tl-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s;
}
.tl-card:hover {
  border-color: var(--accent3);
}
.tl-period {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tl-now {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  font-size: 0.6rem;
  padding: 2px 7px;
  border-radius: 100px;
  font-weight: 700;
}
.tl-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.tl-company {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 1px;
  margin-bottom: 9px;
}
.tl-desc {
  font-size: 0.81rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.tl-bullets {
  list-style: none;
  margin-bottom: 12px;
}
.tl-bullets li {
  font-size: 0.79rem;
  line-height: 1.7;
  padding-left: 13px;
  position: relative;
  color: var(--grey);
}
.tl-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.65rem;
}
.tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.chip {
  font-size: 0.66rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--accent2);
  color: var(--accent);
  border: 1px solid var(--accent3);
}
@media (max-width: 600px) {
  .tl-item {
    grid-template-columns: 1fr;
  }
  .tl-line {
    display: none;
  }
}

/* ─── EDUCATION ──────────────────────────────────────── */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.edu-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s, transform 0.5s;
}
.edu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.edu-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.edu-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey);
  padding-top: 2px;
}
.edu-degree {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}
.edu-school {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 3px;
}
.edu-spec {
  font-size: 0.73rem;
  color: var(--grey);
  margin-top: 4px;
}
@media (max-width: 600px) {
  .edu-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ─── CONTACT ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

/* Info colonne gauche */
.contact-sub {
  color: var(--grey);
  font-size: 0.86rem;
  line-height: 1.8;
  margin-bottom: 28px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cil-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--card2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.cil-item:not(.cil-item--static):hover {
  border-color: var(--accent3);
  background: var(--accent2);
  transform: translateX(4px);
}
.sb-ci--linkedin,
.cil-icon--linkedin {
  color: #0a66c2;
}
.cil-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cil-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cil-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey2);
  line-height: 1.2;
}
.cil-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Formulaire colonne droite */
.contact-form-wrap {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cf-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.3px;
}
.cf-field label span {
  color: var(--accent);
}
.cf-field input,
.cf-field textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.84rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--grey2);
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent2);
}
.cf-field input:invalid:not(:placeholder-shown),
.cf-field textarea:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}
.cf-submit {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 0.88rem;
  border-radius: 9px;
  gap: 10px;
}
.cf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 175, 204, 0.35);
}
.cf-feedback {
  font-size: 0.82rem;
  min-height: 20px;
  text-align: center;
}
.cf-feedback.success {
  color: #22c55e;
}
.cf-feedback.error {
  color: #ef4444;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cf-row {
    grid-template-columns: 1fr;
  }
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  padding: 22px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--grey2);
}
footer span {
  color: var(--accent);
}

/* ─── FADE UP ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── REDUCED MOTION (RGAA 13.8 / WCAG 2.3.3) ───────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up,
  .tl-item,
  .edu-item {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ─── MOBILE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  main {
    margin-left: 0;
  }
  .sb-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .section,
  #hero {
    padding: 48px 24px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 20px 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
