:root {
  --bg: #030303;
  --bg-soft: #0a0a0e;
  --accent: #f3d27a;
  --accent-soft: rgba(243,210,122,0.38);
  --accent-strong: #ffe6a7;
  --border-soft: rgba(255,255,255,0.12);
  --text-main: #fff8eb;
  --text-soft: #f4e4c1;
  --text-muted: #c1af86;
  --text-gold: #ffe7b0;
  --text-gold-deep: #f2c16e;
  --radius-card: 28px;
  --card-fill: linear-gradient(165deg, rgba(14,14,16,0.98), rgba(4,4,6,0.96));
  --card-border-gradient: linear-gradient(135deg, rgba(255,215,141,0.18), rgba(32,32,32,0.85), rgba(255,215,141,0.12));
  --card-shadow: 0 25px 55px rgba(0,0,0,0.88), 0 0 20px rgba(0,0,0,0.55);
  --glow-gold: rgba(255,214,150,0.2);
  --glow-ember: rgba(230,174,98,0.18);
  --vh: 1vh;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at 18% 10%, rgba(18,18,18,0.35), rgba(0,0,0,0) 45%),
    radial-gradient(circle at 78% 6%, rgba(20,22,28,0.25), rgba(0,0,0,0) 38%),
    linear-gradient(180deg, #050505 0%, #030303 45%, #010101 100%);
  color: var(--text-main);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: calc(var(--vh) * 100);
}
body::before,
body::after {
  content: "";
  position: fixed;
  width: 45vw;
  height: 45vw;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.25;
  z-index: -3;
  pointer-events: none;
  mix-blend-mode: screen;
  animation:
    auroraFloat 18s ease-in-out infinite,
    auroraSparkle 4s ease-in-out infinite alternate;
  box-shadow: 0 0 60px rgba(10,10,10,0.6);
}
body::before {
  top: -30%;
  left: -20%;
  background: radial-gradient(circle, rgba(32,32,34,0.4), rgba(3,3,3,0));
}
body::after {
  bottom: -30%;
  right: -12%;
  background: radial-gradient(circle, rgba(26,28,40,0.35), rgba(3,3,3,0));
  animation-delay: -6s;
}

@keyframes auroraFloat {
  0% { transform: translate3d(0,0,0) scale(0.9); opacity: 0.28; }
  40% { transform: translate3d(6%, -4%, 0) scale(1.05); opacity: 0.4; }
  70% { transform: translate3d(-4%, 6%, 0) scale(0.95); opacity: 0.32; }
  100% { transform: translate3d(0,0,0) scale(0.9); opacity: 0.28; }
}
@keyframes auroraSparkle {
  0% { filter: blur(120px); opacity: 0.2; }
  50% { filter: blur(110px); opacity: 0.32; }
  100% { filter: blur(120px); opacity: 0.24; }
}

a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover {
  color: var(--text-main);
  text-shadow: 0 0 14px rgba(255,214,150,0.3);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(140deg, rgba(10,10,12,0.94), rgba(3,3,3,0.85));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  padding-top: env(safe-area-inset-top, 0);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  color: transparent;
  background: linear-gradient(115deg, rgba(170,126,60,0.95), rgba(118,84,32,0.95));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 18px rgba(255,214,150,0.2),
    0 0 32px rgba(0,0,0,0.55);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.nav-link {
  padding: .35rem .95rem;
  border-radius: 999px;
  font-size: .82rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(18,18,18,0.95), rgba(6,6,6,0.9));
  box-shadow: inset 0 0 12px rgba(255,255,255,0.04);
  color: var(--text-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.65),
    inset 0 0 14px rgba(255,214,150,0.18);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 1.1rem;
  touch-action: manipulation;
}

/* Layout */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem calc(3.5rem + env(safe-area-inset-bottom, 0));
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

html.nav-open.nav-open-ios,
body.nav-open-ios {
  overflow: auto;
}

.section {
  padding: 2.5rem 0 1.8rem;
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: 0;
  width: 120px;
  background: linear-gradient(180deg, rgba(5,5,6,0), rgba(32,32,32,0.25), rgba(5,5,6,0));
  opacity: 0.4;
  filter: blur(40px);
  pointer-events: none;
}
.section::after {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  right: 0;
  width: 140px;
  background: linear-gradient(180deg, rgba(5,5,6,0), rgba(24,24,28,0.3), rgba(5,5,6,0));
  opacity: 0.35;
  filter: blur(45px);
  pointer-events: none;
}
.section > * {
  position: relative;
  z-index: 1;
}

/* Palette typographique dorée */
h1, h2, h4, h5, h6 {
  margin: 0 0 .7rem;
  color: var(--text-main);
  text-shadow:
    0 12px 30px rgba(0,0,0,0.65),
    0 0 18px rgba(255,214,150,0.35);
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.2rem;
  background: linear-gradient(115deg, rgba(170,126,60,0.95), rgba(118,84,32,0.95));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  font-size: 2.3rem;
  color: var(--text-main);
}

p {
  margin: 0 0 .7rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-size: .96rem;
}

ul {
  margin: .1rem 0 .4rem;
  padding-left: 1.2rem;
  color: var(--text-soft);
  font-size: .95rem;
}

strong,
em {
  color: var(--text-main);
  text-shadow: 0 0 12px rgba(255,214,150,0.2);
}

label,
small {
  color: var(--text-soft);
}

/* Hero */

.hero {
  padding-top: 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.hero-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: .45rem;
  padding: .5rem 1.55rem;
  border-radius: 999px;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(135deg, rgba(20,20,22,0.9), rgba(5,5,5,0.85));
  box-shadow:
    inset 0 0 12px rgba(255,255,255,0.05),
    0 12px 24px rgba(0,0,0,0.55);
  margin: 0 auto 0.9rem;
}
.hero-pill-label {
  background: linear-gradient(115deg, rgba(170,126,60,0.95), rgba(118,84,32,0.95));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 14px rgba(255,214,150,0.25),
    0 0 32px rgba(0,0,0,0.55);
}

.hero-title {
  font-size: clamp(1.9rem, 2.5vw, 2.3rem);
  line-height: 1.08;
  margin-bottom: 0.7rem;
  letter-spacing: 0.1em;
  word-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-main);
  text-shadow:
    0 10px 24px rgba(0,0,0,0.7),
    0 0 14px rgba(255,214,150,0.15);
  white-space: nowrap;
}

.hero-sub {
  max-width: 610px;
  margin: 0 auto;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(248,239,223,0.9);
  text-align: center;
  text-shadow:
    0 8px 18px rgba(0,0,0,0.55);
}

@media (max-width: 960px) {
  .hero-title {
    white-space: normal;
    word-spacing: 0.1em;
    letter-spacing: 0.035em;
  }
}

.hero-actions {
  margin-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.hero-cta-group {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 220px;
  align-items: stretch;
}

.hero-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-main);
  text-decoration: none;
  font-size: .88rem;
  letter-spacing: 0.01em;
  width: 100%;
  background: linear-gradient(160deg, rgba(14,14,16,0.95), rgba(5,5,5,0.85));
  box-shadow:
    0 10px 35px rgba(0,0,0,0.75),
    inset 0 0 20px rgba(255,255,255,0.04);
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.hero-cta:hover {
  border-color: rgba(255,214,150,0.4);
  color: var(--text-main);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.8),
    0 0 30px rgba(255,214,150,0.25);
  transform: translateY(-2px);
}
.hero-cta-linkedin {
  background: linear-gradient(160deg, rgba(14,14,16,0.95), rgba(5,5,5,0.85));
  color: var(--text-main);
}
.hero-cta-linkedin:hover {
  border-color: rgba(255,214,150,0.4);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.8),
    0 0 30px rgba(255,214,150,0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(18,18,20,0.95), rgba(4,4,4,0.85));
  color: var(--text-main);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.75),
    inset 0 0 18px rgba(255,255,255,0.08);
}

.btn-outline {
  background: rgba(10,10,12,0.4);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-soft);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.4rem 0 .6rem;
}

.card,
.pill-card {
  border-radius: var(--radius-card);
  border: 1px solid transparent;
  background:
    var(--card-fill) padding-box,
    var(--card-border-gradient) border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.pill-card {
  display: block;
  padding: .8rem 1.1rem;
  text-decoration: none;
  font-size: .88rem;
  color: var(--text-main);
}

.pill-card strong {
  font-size: .95rem;
  background: linear-gradient(115deg, rgba(170,126,60,0.95), rgba(118,84,32,0.95));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pill-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 22px rgba(255,214,150,0.28),
    0 30px 46px rgba(0,0,0,0.7);
}
.pill-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 50%;
  height: 160%;
  background: radial-gradient(circle, rgba(255,237,209,0.22), rgba(255,214,150,0));
  transform: rotate(35deg);
  opacity: 0.6;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.pill-card:hover::after {
  transform: rotate(10deg) translateX(-10%);
  opacity: 0.95;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.6rem;
}

.tag {
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(14,14,16,0.8);
  font-size: .8rem;
  text-decoration: none;
  color: var(--text-soft);
}

.tag:hover {
  border-color: rgba(255,214,150,0.6);
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
}

.hero-photo-card {
  width: 260px;
  height: 260px;
  border-radius: 28px;
  padding: .7rem;
  border: 2px solid rgba(255,214,150,0.55);
  background: radial-gradient(circle at top left, rgba(255,214,150,0.25), rgba(5,5,6,0.96));
  box-shadow:
    0 25px 50px rgba(0,0,0,0.85),
    0 0 40px rgba(255,214,150,0.2);
  opacity: 0;
  transform: scale(1.08);
  position: relative;
  overflow: hidden;
  animation: heroPhotoReveal 1.6s ease-out forwards;
  animation-delay: 0.5s;
}

.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  background: radial-gradient(circle at 30% 20%, rgba(255,214,150,0.38), rgba(20,18,14,0.35) 55%, rgba(0,0,0,0) 80%);
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.98);
  transition: opacity 1.5s ease, transform 1.5s ease;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) brightness(0.98);
  transition: filter 1.2s ease, transform 1.2s ease;
}

.hero-photo::selection {
  background: transparent;
}

body.loaded .hero-photo-card::after {
  opacity: 0.65;
  transform: scale(1.03);
}

body.loaded .hero-photo {
  filter: saturate(1.18) brightness(1.05);
  transform: scale(1.01);
}

@keyframes heroPhotoReveal {
  0% { opacity: 0; transform: scale(1.2) translateY(20px); filter: blur(4px); }
  40% { opacity: 0.6; transform: scale(1.08) translateY(5px); filter: blur(2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* Grid & cards */

.grid {
  display: grid;
  gap: 1.3rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .8rem;
  font-size: .88rem;
}

.table th,
.table td {
  padding: .55rem .7rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}

.card {
  display: block;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--text-main);
}
.card::before {
  content: "";
  position: absolute;
  inset: -40% 15% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(255,240,210,0.42), rgba(5,5,6,0));
  opacity: 0.5;
  filter: blur(12px);
  transition: transform .4s ease, opacity .4s ease;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 30% -30% -40%;
  background: radial-gradient(circle, rgba(255,214,150,0.32), rgba(5,5,6,0));
  opacity: 0.4;
  transform: rotate(20deg);
  transition: transform .4s ease, opacity .4s ease;
  pointer-events: none;
}

.card h3 {
  margin-top: 0;
  margin-bottom: .4rem;
 	font-size: 1.02rem;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow:
    0 0 22px rgba(255,214,150,0.32),
    0 32px 52px rgba(0,0,0,0.82);
}
.card:hover::before {
  transform: translateY(10%) scale(1.1);
  opacity: 0.65;
}
.card:hover::after {
  transform: translateY(-10%) rotate(5deg);
  opacity: 0.55;
}

.small {
  font-size: .84rem;
  color: var(--text-muted);
}

.card .small a,
.card .small a:visited {
  color: var(--text-main);
  background: rgba(255,255,255,0.12);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.card .small a:hover,
.card .small a:focus-visible {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 0 14px rgba(255,214,150,0.45);
}
.card .small .source-link,
.card .small .source-link:visited {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  border-radius: 16px;
  padding: 0.45rem 0.75rem;
}
.card .small .source-link + .source-link {
  margin-top: 0.45rem;
}
.card .small .source-link .source-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,248,235,0.85);
}
.card .small .source-link .source-cta {
  font-size: 0.85rem;
  font-weight: 600;
}
.card.project-card .small {
  color: var(--text-main);
  background: rgba(255,255,255,0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.card.project-card:hover .small {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 0 14px rgba(255,214,150,0.45);
}

/* CV */

.cv-frame {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 1rem;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(24,24,26,0.95), rgba(4,4,5,0.9));
  box-shadow: 0 25px 45px rgba(0,0,0,0.75);
}
  .cv-view {
    width: 100%;
    height: 480px;
    border: 0;
    display: block;
    background: #070708;
    pointer-events: none;
    user-select: none;
    filter: blur(4px);
    transform: scale(1.02);
  }
.cv-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: radial-gradient(circle at 30% 20%, rgba(10,10,12,0.35), rgba(0,0,0,0)) rgba(2,2,3,0.78);
  opacity: 1;
  transition: opacity 0.3s ease, background 0.3s ease;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  mix-blend-mode: normal;
  box-shadow: inset 0 0 45px rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
}
.cv-veil:hover {
  opacity: 1;
  background: radial-gradient(circle at 40% 30%, rgba(14,14,16,0.28), rgba(0,0,0,0)) rgba(0,0,0,0.82);
}
.cv-hint {
  font-size: 0.92rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(8,8,10,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  box-shadow:
    0 0 22px rgba(0,0,0,0.7),
    inset 0 0 14px rgba(255,255,255,0.05);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 1.5rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
  font-size: .8rem;
  color: var(--text-soft);
  text-align: left;
  text-shadow:
    0 0 6px rgba(255,214,150,0.12),
    0 10px 18px rgba(0,0,0,0.55);
}

/* Responsive */

@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .hero-right {
    align-items: center;
    justify-content: center;
  }
  .hero-cta-group {
    width: 100%;
    max-width: 320px;
  }
  .hero-right .hero-actions {
    justify-content: center;
  }
  .container {
    padding-top: 4.2rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    padding: 1rem;
    gap: 0.65rem;
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(12,12,14,0.96), rgba(4,4,6,0.92));
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 30px 45px rgba(0,0,0,0.85);
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    text-align: center;
  }
  .burger {
    display: block;
    position: relative;
    z-index: 11;
  }
}








.cv-access-note {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(115deg, rgba(170,126,60,0.95), rgba(118,84,32,0.95));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.3rem 0 0.8rem;
  text-shadow:
    0 0 14px rgba(255,214,150,0.2),
    0 0 30px rgba(0,0,0,0.4);
}
