:root{
  --bg:#0e0f13;
  --text:#eef2f7;
  --muted:#b7c0d1;
  --primary:#4c7dff;
  --accent:#11c8a8;
  --radius:18px;
  --shadow:0 10px 30px rgba(0,0,0,.25);
}

*{box-sizing:border-box}
body{
  margin:0;
  background:linear-gradient(180deg,#0b0c10,var(--bg));
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

a{text-decoration:none;color:inherit}

.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 18px;
}

/* ================= HEADER GLOBAL ================= */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(14,15,19,.8);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.header-row{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:70px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo{
  width:36px;
  height:36px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#000;
  font-weight:900;
}

/* NAV centré */
.nav{
  flex:1 1 auto;
}
.nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:10px;
  justify-content:center;
}
.nav a{
  padding:8px 14px;
  border-radius:999px;
  color:var(--muted);
  transition:.2s;
}
.nav a:hover{
  background:rgba(255,255,255,.1);
  color:var(--text);
}
.nav a.active{
  background:var(--primary);
  color:#000;
  font-weight:700;
}

/* Bouton CV */
.btn-cv{
  padding:10px 14px;
  border-radius:10px;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  color:#000;
  font-weight:800;
  box-shadow:var(--shadow);
}

/* MENU MOBILE */
.nav-toggle{
  display:none;
}
.burger{
  display:none;
  margin-left:auto;
  cursor:pointer;
}
.burger span{
  display:block;
  width:26px;
  height:2px;
  background:var(--text);
  margin:5px 0;
}

@media(max-width:760px){
  .nav{
    position:fixed;
    top:70px;
    left:0;
    right:0;
    background:#0e0f13;
    padding:16px;
    border-top:1px solid rgba(255,255,255,.1);
    display:none;
  }
  .nav ul{
    flex-direction:column;
    justify-content:flex-start;
  }
  .burger{
    display:block;
  }
  .btn-cv{
    display:none;
  }
  .nav-toggle:checked ~ .burger + .nav{
    display:block;
  }
}

/* ================= FOOTER GLOBAL ================= */

.site-footer{
  border-top:1px solid rgba(255,255,255,.06);
  padding:26px 0 0;
}

.footer-grid{
  display:grid;
  gap:20px;
  grid-template-columns:2fr 1fr 1fr;
}

.brand-inline{
  display:flex;
  align-items:center;
  gap:8px;
}

.links{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px;
}

.socials{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:10px;
}
.socials a{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:10px;
  background:rgba(255,255,255,.08);
  color:var(--primary);
  transition:.2s;
}
.socials a:hover{
  background:var(--primary);
  color:#000;
}

/* COPYRIGHT CENTRÉ */
.copy{
  width:100%;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  padding:12px 0;
  margin-top:14px;
  border-top:1px solid rgba(255,255,255,.06);
}

/* BOUTON RETOUR EN HAUT */
/* BOUTON RETOUR EN HAUT */
.to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:9999;
  width:46px;
  height:46px;
  border-radius:50%;
  display:none;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  box-shadow:var(--shadow);
  cursor:pointer;

  /* ✔ Centre parfaitement l’icône */
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.to-top svg{
  width:22px;
  height:22px;
  fill:#000;
  display:block; /* évite tout décalage interne */
}


/* MOBILE FOOTER */
@media(max-width:900px){
  .footer-grid{
    grid-template-columns:1fr;
    text-align:left;
  }
}
