:root {
  --banner-h: 250px;
  /* small horizontal tweak for avatar centering: change to e.g. 2px or -2px if needed */
  --avatar-offset: 0px;
  --tilt-max: 12deg;
  --radius: 14px;
  --gap: 16px;
}

:root[data-theme=light] {
  --ink: #0e0e0e;
  --bg: #ffffff;
  --card: #f4f4f4;
  --border: #e6e6e6;
  --muted: #7f8894;
  color-scheme: light;
}

:root[data-theme=dark] {
  --ink: #e9e9e9;
  --bg: #0b0b0b;
  --card: #141414;
  --border: #242424;
  --muted: #9aa3ad;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --ink: #e9e9e9;
    --bg: #0b0b0b;
    --card: #141414;
    --border: #242424;
    --muted: #9aa3ad;
  }
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}

.wrap {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink);
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg), transparent 35%) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.nav .brand {
  font-weight: 700;
}
.nav .links {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.nav .theme-menu {
  position: relative;
}
.nav .links a {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s ease;
}
.nav .links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: oklch(88% 0.06 220deg);
  transform: scaleX(0);
  transform-origin: 10% 50%;
  transition: transform 0.25s ease;
}
.nav .links a:hover::after, .nav .links a:focus-visible::after {
  transform: scaleX(1);
}
.nav .theme-toggle,
.nav-toggle {
  /* shared nav button styles so both controls appear identical */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px; /* keeps SVG sizing comfortable */
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { display: block; }
.nav-toggle svg { display: block; }

/* Hide the mobile nav toggle and mobile links by default on desktop
  They are enabled in the mobile media query below. */
.nav-toggle { display: none; }

/* Collapsible mobile links (hidden by default on small screens) */
.nav .links[aria-hidden="true"] {
  display: none;
}
.nav .menu[role=menu] {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: linear-gradient(180deg, color-mix(in oklab, var(--card), transparent 6%), var(--card));
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent 20%);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  gap: 6px;
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.12), 0 2px 8px rgba(2,6,23,0.06);
  transform-origin: top right;
  transform: translateY(-6px) scale(.98);
  opacity: 0;
  transition: transform 180ms cubic-bezier(.22,.9,.33,1), opacity 180ms ease;
}

/* Ensure the menu honor the [hidden] attribute and is visually hidden by default */
.nav .menu[hidden] {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* When visible, play entrance animation */
.nav .menu[role=menu]:not([hidden]) {
  display: grid;
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Menu items */
.nav .menu [role=menuitem] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 120ms ease;
}
.nav .menu [role=menuitem]:hover,
.nav .menu [role=menuitem]:focus {
  background: color-mix(in oklab, var(--ink) 8%, transparent 92%);
  transform: translateY(-1px);
  outline: none;
}
.nav .menu [role=menuitem].active {
  background: color-mix(in oklab, var(--ink) 10%, transparent 90%);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 6%, transparent 94%);
}

/* Make the icon a bit smaller inside menu items */
.nav .menu [role=menuitem] svg { width: 14px; height: 14px; }

/* Make inline SVG icons follow the current color (so they turn white in dark theme) */
.nav svg {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor; /* important: uses --ink from the nearest ancestor */
  transition: color 160ms ease, fill 160ms ease, opacity 160ms ease;
}

/* Slightly increase contrast of the icon button on hover/focus */
.nav .theme-toggle:focus, .nav .theme-toggle:hover {
  outline: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* BANNIÈRE */
.banner{
  position: relative;
  min-height: var(--banner-h);
  display:grid;
  place-items:center;
  text-align:center;
  overflow: visible;
  isolation:isolate;
}

/* Ensure the inner wrap can be used as a positioning context if desired */
.banner .wrap { position: relative; }

/* Note: .avatar is positioned relative to .banner (full-width) so .banner .wrap
   does not need to be positioned. This ensures the avatar centers across the page. */

.banner::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?q=80&w=1920&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
  z-index:-1;
}

.banner h1{
  margin:0;
  font-size: clamp(24px, 3vw + 12px, 40px);
  letter-spacing:.5px;
  color:#fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.banner .subtitle{
  margin-top:8px;
  opacity:.92;
  color:#f1f1f1;
}

/* AVATAR chevauchant */
.avatar{
  position:absolute;
  /* center relative to the viewport/banner using left:50% + translateX(-50%) */
  left: 50%;
  bottom: -70px;
  transform: translateX(-50%);
  z-index: 10; /* sit above banner background */
  pointer-events: auto; /* allow clicks on the avatar if needed */
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  overflow:hidden;
  background:#222 center/cover no-repeat;
}

.avatar img{ width:100%; height:100%; object-fit: cover; display:block; }


.section {
  padding: 56px 0;
}

.grid {
  display: grid;
  gap: var(--gap);
  /* Let the grid auto-fit items so when there are fewer than 3 cards they
     expand to fill the row. Constrain the overall grid width so we never
     show more than 3 columns on wide screens. */
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  /* maximum width equals 3 columns (3 * min width) + 2 gaps between them */
  max-width: calc(3 * 360px + 2 * var(--gap));
  margin-inline: auto; /* center the grid when it's narrower than the container */
}

.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in oklab, oklch(100% 0.00011 271.152) 40%, transparent), transparent 40% 60%, color-mix(in oklab, oklch(100% 0.00011 271.152) 28%, transparent));
  opacity: 0;
  transition: opacity 0.25s ease;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  padding: 1px;
}
.card .card-inner {
  position: relative;
  padding: 16px;
  transform-style: preserve-3d;
}
.card .card-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, oklch(88% 0.06 220deg), transparent 80%) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.card:hover, .card:focus-within {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.card:hover::after, .card:focus-within::after {
  opacity: 0.55;
}
.card:hover .card-inner::before, .card:focus-within .card-inner::before {
  opacity: 0.25;
}
.card:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, oklch(88% 0.06 220deg) 40%, transparent), 0 6px 16px rgba(0, 0, 0, 0.12);
}

#contact a {
  position: relative;
}
#contact a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: oklch(75.536% 0.15349 231.667);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s ease;
}
#contact a:hover::after, #contact a:focus-visible::after {
  transform: scaleX(1);
}

.section ul {
  list-style: none;
  padding-left: 0;
}
.section ul li {
  position: relative;
  padding-left: 1.15rem;
}
.section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 6px;
  background: color-mix(in oklab, oklch(88% 0.06 220deg) 55%, var(--ink));
  box-shadow: 0 0 0 3px color-mix(in oklab, oklch(88% 0.06 220deg) 28%, transparent);
}

.section .card {
  opacity: 0;
  transform: translateY(16px);
}

.section.in-view .card {
  animation: fadeUp 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.section.in-view .card:nth-child(1) {
  animation-delay: 0.05s;
}

.section.in-view .card:nth-child(2) {
  animation-delay: 0.12s;
}

.section.in-view .card:nth-child(3) {
  animation-delay: 0.18s;
}

.section.in-view .card:nth-child(4) {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}/*# sourceMappingURL=styles.css.map */

/* Responsive adjustments */
@media (max-width: 880px) {
  :root { --banner-h: 200px; }
  .nav .wrap { gap: 12px; min-height: 56px; }
  .nav .links {
    /* right-aligned dropdown (don't stretch full width) */
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--card), transparent 6%), var(--card));
    border: 1px solid color-mix(in oklab, var(--border) 80%, transparent 20%);
    border-radius: 14px;
    padding: 8px; /* match .nav .menu */
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.12), 0 2px 8px rgba(2,6,23,0.06);
  }
  .nav .links[aria-hidden="false"] { display: flex; }
  .nav .links a { padding: 8px 10px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav .theme-menu { order: 3; }
  .nav .links { margin-left: 0; }

  .banner { min-height: 180px; }
  .avatar { width: 96px; height: 96px; bottom: -48px; border-width: 3px; }

  .wrap { width: calc(100% - 24px); }
  .grid { gap: 12px; grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
}

@media (max-width: 420px) {
  :root { --banner-h: 160px; }
  .banner h1 { font-size: clamp(18px, 4vw + 8px, 26px); }
  .avatar { width: 80px; height: 80px; bottom: -40px; }
  .card .card-inner { padding: 12px; }
}