:root{
  --bg:#070a14;
  --bg2:#0b1020;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --line:rgba(255,255,255,.10);
  --glass:rgba(255,255,255,.07);
  --shadow:0 28px 95px rgba(0,0,0,.55);

  --blue:#57b8ff;
  --blue2:#2f6bff;

  --r:26px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Sora, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(47,107,255,.16), transparent 55%),
    radial-gradient(900px 700px at 90% 80%, rgba(87,184,255,.12), transparent 55%),
    linear-gradient(180deg,var(--bg),var(--bg2));
  overflow-x:hidden;
}

.wrap{width:min(1120px, calc(100% - 56px)); margin:0 auto}

/* background layers */
.bg{position:fixed; inset:0; z-index:-1; pointer-events:none}
.grain{
  position:absolute; inset:-30%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  transform:rotate(10deg);
  opacity:.12;
  mix-blend-mode:overlay;
}
.orb{position:absolute; width:680px; height:680px; border-radius:50%; filter:blur(62px); opacity:.22}
.o1{left:-280px; top:-280px; background:radial-gradient(circle at 30% 30%, var(--blue2), transparent 60%)}
.o2{right:-340px; bottom:-340px; background:radial-gradient(circle at 30% 30%, var(--blue), transparent 60%)}
.grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity:.10;
  mask-image: radial-gradient(850px 520px at 30% 18%, #000 50%, transparent 75%);
}

/* topbar */
.topbar{
  position:sticky;
  top:18px;
  z-index:50;
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  min-height: 60px;
  border:1px solid var(--line);
  background: rgba(7,10,20,.62);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand{
  display:flex; align-items:center; gap:10px;
  color:var(--text); text-decoration:none; font-weight:900;
}
.brand-dot{
  width:10px; height:10px; border-radius:50%;
  background: linear-gradient(90deg,var(--blue2),var(--blue));
  box-shadow: 0 0 0 6px rgba(47,107,255,.14);
}
.menu{display:flex; gap:18px; align-items:center}
.menu a{
  color:var(--muted); text-decoration:none;
  font-weight:800; font-size:14px;
  padding:10px 12px; border-radius:999px;
}
.menu a:hover{color:var(--text); background: rgba(255,255,255,.04)}


/* navbar underline (active section) */
.menu a{ position: relative; }
.menu a::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:6px;
  height:2px;
  border-radius:999px;
  background: linear-gradient(90deg,var(--blue2),var(--blue));
  opacity:0;
  transform: scaleX(0.35);
  transform-origin:center;
  transition: opacity .18s ease, transform .22s ease;
}
.menu a.nav-active{
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.menu a.nav-active::after{
  opacity:1;
  transform: scaleX(1);
}
/* keep Contact CTA untouched */
.menu a[href="#contact"]::after{ display:none; }
/* mobile */
.burger{
  display:none;
  width:44px; height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.burger span{display:block; width:18px; height:2px; margin:4px auto; background: rgba(255,255,255,.82); border-radius:2px}
.mobile{display:none; margin-top: 10px}
.mobile.open{display:block}
.mobile a{
  display:block;
  padding:12px 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  color: var(--text);
  text-decoration:none;
  font-weight:900;
  margin: 10px 0;
}

/* buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  text-decoration:none;
  font-weight:900;
  font-size:14px;
  color:var(--text);
  cursor:pointer;
}
.btn-primary{
  background: linear-gradient(180deg, rgba(87,184,255,.28), rgba(47,107,255,.10));
  border-color: rgba(87,184,255,.26);
  box-shadow: 0 18px 55px rgba(47,107,255,.22);
}
.btn-ghost{
  background: rgba(255,255,255,.04);
  border-color: var(--line);
}
.btn-sm{padding:10px 12px; font-size:13px}
.full{width:100%}

/* hero */
.hero{
  padding: 88px 0 34px;
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items:start;
}

.cmdline{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  margin-bottom: 18px;
  font-weight:800;
  color: rgba(255,255,255,.72);
}
.prompt{color: var(--blue)}
.cmd{color: rgba(255,255,255,.92)}
.args{color: rgba(255,255,255,.55); font-weight:700}

.title{
  margin:0;
  font-size: clamp(44px, 4.3vw, 62px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.accent{
  background: linear-gradient(90deg,var(--blue2),var(--blue));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}
.soft{color: rgba(255,255,255,.80)}

.subtitle{
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 60ch;
}

.actions{margin-top: 22px; display:flex; gap:12px; flex-wrap:wrap}

/* cards */
.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--glass), rgba(255,255,255,.03));
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card.big{padding:18px}
.card.pad{padding:20px}

.card-head{display:flex; gap:10px; flex-wrap:wrap; margin-bottom: 16px}
.pill{
  padding:8px 12px;
  border-radius: 999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(87,184,255,.26);
  background: rgba(47,107,255,.12);
  color: rgba(255,255,255,.86);
}
.pill.ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
}

.stat{
  padding: 14px 0;
  border-top:1px solid rgba(255,255,255,.06);
}
.stat:first-of-type{border-top:none; padding-top: 0}

.k{font-size:12px; font-weight:900; color: rgba(255,255,255,.55); letter-spacing:.06em; text-transform:uppercase}
.v{margin-top:8px; font-weight:900; color: rgba(255,255,255,.90)}

.kpis{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 20px;
  padding: 14px 14px;
}

/* sections */
.section{padding: 78px 0 8px}
.head h2{margin:0; font-size:28px; letter-spacing:-.01em}
.head p{margin:10px 0 0; color:var(--muted); line-height:1.7}

/* about */
.about{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.p{margin:0 0 12px; line-height:1.85}
.chips{display:flex; gap:10px; flex-wrap:wrap; margin-top: 10px}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.78);
  font-weight:900;
  font-size:12px;
}

.miniList{display:grid; gap:12px; margin-bottom: 14px}
.miniItem{display:flex; gap:12px; align-items:flex-start}
.miniIcon{
  width:34px; height:34px;
  display:grid; place-items:center;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

/* grids */
.grid3{margin-top: 18px; display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px}
.grid2{margin-top: 18px; display:grid; grid-template-columns: repeat(2, 1fr); gap: 12px}

/* project cards */
.project{
  padding: 18px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.project:hover{
  transform: translateY(-3px);
  border-color: rgba(87,184,255,.22);
  background: linear-gradient(180deg, rgba(87,184,255,.09), rgba(255,255,255,.03));
}
.projectTop{display:flex; justify-content:space-between; gap:10px; align-items:flex-start}
.project h3{margin:0; font-size:16px}
.project p{margin:10px 0 0; color:var(--muted); line-height:1.75}
.tagRow{display:flex; gap:8px; flex-wrap:wrap; margin-top: 14px}
.tag{
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.76);
}
.linkRow{display:flex; gap:10px; margin-top: 14px}
.aLink{
  color: rgba(255,255,255,.82);
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  padding: 10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.aLink:hover{border-color: rgba(87,184,255,.22)}

/* skills */
.skillList{display:grid; gap:10px; margin-top: 12px}
.skill{display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid rgba(255,255,255,.06)}
.skill:first-child{border-top:none; padding-top: 0}
.badge{
  font-weight:1000;
  font-size:12px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(87,184,255,.22);
  background: rgba(47,107,255,.12);
  color: rgba(255,255,255,.86);
}

/* timeline */
.timeline{
  margin-top: 18px;
  position: relative;
  padding-left: 18px;
}
.timeline::before{
  content:"";
  position:absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(87,184,255,.45), rgba(255,255,255,.04));
  border-radius: 99px;
}
.tItem{
  position: relative;
  padding: 14px 0 14px 18px;
}
.tItem::before{
  content:"";
  position:absolute;
  left: -1px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--blue2), var(--blue));
  box-shadow: 0 0 0 6px rgba(47,107,255,.12);
}
.tCard{padding: 16px}
.tTop{display:flex; justify-content:space-between; gap:12px; align-items:baseline}
.tTitle{font-weight:1000}
.tDate{font-size:12px; font-weight:900; color: rgba(255,255,255,.55)}
.tDesc{margin: 10px 0 0; color: var(--muted); line-height: 1.75}

/* contact */
.contactRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.contactRow:first-child{border-top:none; padding-top:0}
.bigText{font-weight:1000; font-size:14px; color: rgba(255,255,255,.88)}

/* form */
.form .field{margin-top:12px}
.form label{display:block; font-weight:900; font-size:12px; color: rgba(255,255,255,.70); margin-bottom:8px; letter-spacing:.06em; text-transform:uppercase}
.form input{
  width:100%;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 12px 12px;
  color: var(--text);
  font-family: inherit;
  outline:none;
}
.form input:focus{
  border-color: rgba(87,184,255,.30);
  box-shadow: 0 0 0 5px rgba(47,107,255,.14);
}
.honeypot{display:none}
.form-note{margin-top:10px}
textarea{
  width:100%;
  margin-top: 10px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 12px 12px;
  color: var(--text);
  font-family: inherit;
  outline:none;
  line-height: 1.6;
}
textarea:focus{
  border-color: rgba(87,184,255,.30);
  box-shadow: 0 0 0 5px rgba(47,107,255,.14);
}
.rowBtns{margin-top: 12px}

/* footer */
.footer{
  margin-top: 44px;
  padding: 22px 0 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.55);
}
.footer a{color: rgba(255,255,255,.72); text-decoration:none; font-weight:900}
.footer a:hover{color: rgba(255,255,255,.92)}

.muted{color: var(--muted)}
.tiny{font-size:12px}

/* reveal */
.reveal{
  opacity:0;
  transform: translateY(12px);
  transition: .75s ease;
}
.reveal.show{
  opacity:1;
  transform: translateY(0);
}



/* ===== HERO CENTRÉ (sans carte droite) ===== */
.hero.centered{
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.hero.centered .hero-left{
  max-width: 820px;
}

.hero.centered .cmdline{
  margin-left: auto;
  margin-right: auto;
}

.hero.centered .subtitle{
  margin-left: auto;
  margin-right: auto;
}

.hero.centered .actions{
  justify-content: center;
}

/* Option : on cache les KPI pour un hero ultra clean */
.hero.centered .kpis{
  display: none;
}

/* responsive */
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr; padding-top: 64px}
  .kpis{grid-template-columns: 1fr}
  .about{grid-template-columns: 1fr}
  .grid3{grid-template-columns: 1fr}
  .grid2{grid-template-columns: 1fr}
  .topbar{top:12px}
}
@media (max-width: 900px){
  .menu{display:none}
  .burger{display:block}
}

/* Logo navbar */
.logo{
  height: 75px;
  width: auto;
  display: block;
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}
