/* Reset & base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #131722;
  background: #ffffff;
}
body.no-scroll {
  overflow: hidden !important;
}

/* Header */
.nav-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 18px; z-index: 99;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e9ecf5;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-initials{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px;height:40px; border-radius:10px; background:#FF6363; color:#fff;
  font-weight:800; letter-spacing:1px;
}
.header-links ul{ list-style:none; display:flex; gap:16px; margin:0; padding:0; }
.header-links a{ text-decoration:none; color:#1a1f36; font-weight:600; }
.header-links a:hover{ color:#3146a6; }
.fa-bars, .fa-times { cursor: pointer; }

/* Mobile overlay menu */
.nav-screen{
  position: fixed; top:0; right:-285px; width:285px; height:100vh; z-index:100;
  background:#0b1020; color:#fff; padding:18px;
}
.nav-screen .fa-times{ color:#fff; }
.nav-container ul{ list-style:none; padding:12px 0 0 0; margin:0; }
.nav-container li{ margin:12px 0; }
.nav-container a{ color:#fff; text-decoration:none; font-weight:600; }

/* Sections */
.section { padding-top: 64px; }
.content { max-width: 1080px; margin: 0 auto; padding: 36px 18px; }

/* Hero */
.aboutme{
  /* background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0%' stop-color='%230b1020'/><stop offset='100%' stop-color='%23101832'/></linearGradient><pattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'><path d='M40 0H0V40' fill='none' stroke='%2325304d' stroke-width='1'/></pattern></defs><rect width='1600' height='900' fill='url(%23g)'/><rect width='1600' height='900' fill='url(%23grid)' opacity='0.35'/><polyline fill='none' stroke='%233ba0ff' stroke-width='2' stroke-dasharray='3,5' points='0,700 200,660 400,680 600,620 800,640 1000,590 1200,610 1400,560 1600,580'/><polyline fill='none' stroke='%237cf0c5' stroke-width='2' stroke-dasharray='2,6' points='0,540 200,520 400,540 600,500 800,520 1000,480 1200,500 1400,480 1600,500'/></svg>") no-repeat center/cover, #0b1020; */
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0%' stop-color='%230b1020'/><stop offset='100%' stop-color='%23101832'/></linearGradient><pattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'><path d='M40 0H0V40' fill='none' stroke='%2325304d' stroke-width='1'/></pattern></defs><rect width='1600' height='900' fill='url(%23g)'/><rect width='1600' height='900' fill='url(%23grid)' opacity='0.35'/><polyline fill='none' stroke='%233ba0ff' stroke-width='2' stroke-dasharray='3,5' points='0,800 200,760 400,780 600,720 800,740 1000,690 1200,710 1400,660 1600,680'/><polyline fill='none' stroke='%237cf0c5' stroke-width='2' stroke-dasharray='2,6' points='0,640 200,620 400,640 600,600 800,620 1000,580 1200,600 1400,580 1600,600'/></svg>") no-repeat center/cover, #0b1020;
  min-height: 100vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.opaque-bg{ text-align:center; }
.hero-title{ margin: 0 0 8px 0; color:#fff; font-size: 42px; font-weight:800; }
.sep{ color:#FF6363; }
.hero-sub{ color:#b7c3ff; font-weight:500; }
.blinking-cursor{ animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
#moveDown{ position:absolute; bottom:24px; color:#d6dbff; opacity:.9; }
.bounce { animation: bounce 2s infinite; }
@keyframes bounce { 0%,20%,50%,80%,100%{transform:translateY(0);} 40%{transform:translateY(-8px);} 60%{transform:translateY(-4px);} }

/* ===== À PROPOS layout ===== */
.content-about { max-width: 1100px; margin: 0 auto; }
.about-layout{
  display:grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 420px);
  gap:28px; align-items:start; margin-top: 8px;
}
.about-card{
  height: 100%;
  background:#ffffff; border:1px solid #e6e9f3; border-radius:16px; padding:22px;
  box-shadow: 0 10px 22px rgba(17,29,74,.08);
}
.about-card h2{ margin:0 0 10px 0; font-size:22px; }
.about-card p{ margin:0 0 12px 0; color:#4a5164; font-size: 1.1em; }
.about-highlights{ margin:0 0 12px 18px; color:#2c3242; font-size: 1.1em; }
.about-highlights li{ margin:6px 0; }

.about-side{ display:flex; flex-direction:column; gap:18px; }
.photo-card{
  background:#ffffff; border:1px solid #e6e9f3; border-radius:16px; padding:18px;
  box-shadow: 0 10px 22px rgba(17,29,74,.08); display:flex; flex-direction:column; align-items:center; gap:12px;
}
.photo-circle{
  width: 260px; max-width: 60vw; aspect-ratio: 1/1; border-radius: 999px;
  border: 4px solid #9aa8ff; overflow: hidden;
  box-shadow: 0 12px 24px rgba(11,22,70,.15); background:#f3f6ff;
}
.photo-circle img{ width:100%; height:100%; object-fit: cover; display:block; }
.btn-outline{
  background: transparent; border: 1px solid #3146a6; color: #3146a6;
  padding: 8px 12px; border-radius: 10px; cursor:pointer;
}
.btn-outline:hover{ background:#eef2ff; }

.lang-card{
  background:#ffffff; border:1px solid #e6e9f3; border-radius:16px; padding:18px;
  box-shadow: 0 10px 22px rgba(17,29,74,.08);
}
.lang-card h3{ margin:0 0 8px 0; }

/* Trail Stagger langues */
.lang-trail{ margin-top: 10px; display: grid; gap: 14px; }
.lang-row{ display:grid; grid-template-columns: 90px 1fr 54px; align-items: center; gap: 12px; }
.lang-code{ font-weight:700; color:#9fb3ff; letter-spacing:.8px; }
.lang-name{ color:#2c3242; margin-left:6px; }
.lang-bar{ height:22px; background:#1e2746; border-radius: 11px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.lang-fill{
  position:absolute; left:0; top:0; bottom:0; width:0%;
  background: linear-gradient(90deg,#2455f5,#2455f5); border-right:6px solid rgba(0,0,0,.15);
  border-radius: 11px; transition: width 1.2s cubic-bezier(.2,.6,.2,1);
}
.lang-percent{ text-align:right; color:#6c7388; }

/* Compétences (chips) */
.skill-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  padding:8px 12px; border-radius:999px; background:#1f2a4a;
  border: 1px solid rgba(255,255,255,.12); color:#d6dbff; font-size:1em;
}

/* PROJETS */
.projects-toolbar{ margin: 12px 0 18px 0; }
.projects-toolbar input[type="search"]{
  width:100%; max-width:520px; padding:10px 12px; border-radius: 10px; border:1px solid #ddd;
}
.projects-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.project-card{
  background:#fff; border-radius: 16px; box-shadow: 0 8px 20px rgba(10,20,60,.12);
  overflow:hidden; display:flex; flex-direction:column; transition: transform .15s ease, box-shadow .15s ease;
}
.project-card:hover{ transform: translateY(-4px); box-shadow: 0 12px 28px rgba(10,20,60,.18); }
.project-thumb{ width:100%; height: 150px; object-fit: cover; display:block; }
.project-body{ padding: 14px; }
.project-title{ margin:0 0 6px 0; font-size: 18px; }
.project-desc{ margin:0 0 10px 0; color:#5a6275; }
.taglist{ display:flex; flex-wrap:wrap; gap:6px; }
.tag{ font-size:12px; padding:4px 8px; border-radius:999px; background:#eef2ff; color:#3146a6; transition: all .3s ease; }
.tag:hover{ background:#d0dbff; cursor: pointer; transform: scale(1.1); }

/* Modal */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,.5); padding:24px; }
.modal.open{ display:flex; }
.modal-card{ background:#fff; border-radius:16px; max-width: 720px; width:100%; overflow-y:scroll; overflow-x: hidden; max-height: 80vh; }
.modal-content{ padding:18px; }
.modal-actions{ display:flex; gap:10px; margin-top: 10px; flex-wrap:wrap; }
.modal-actions a{ text-decoration:none; padding:8px 12px; border-radius:10px; background:#1f3af5; color:#fff; }
.modal-card .modal-media {  width: 100%; aspect-ratio: 16/9; background:#f0f0f0; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.modal-card .modal-carousel { position:relative; height: 100%; width: 100%; }
.modal-card .modal-carousel img { width:100%; height:100%; object-fit:cover; display:block; position: absolute; }
.modal-card .carousel-controls { position:absolute; top:50%; left:0; right:0; display:flex; justify-content:space-between; transform:translateY(-50%); padding:0 12px; }
.modal-card .carousel-controls button {
  background: rgba(0,0,0,.4); border:none; color:#fff; padding:8px 12px; border-radius:8px; cursor:pointer; transition: all .3s ease; font-size: 2em;
}
.modal-card .carousel-controls button:hover {
  background: rgba(0,0,0,.6);
  transform: scale(1.1);
}
/* Animation pour les éléments du carrousel */
.carousel-item {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.carousel-item.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.carousel-item.slide-in-left {
  transform: translateX(-100%);
}

.carousel-item.slide-in-right {
  transform: translateX(100%);
}

.fa-bars {
  cursor: pointer;
  visibility: hidden;
}

/* Responsive */
@media (max-width: 900px){
  .about-layout{ grid-template-columns: 1fr; }
  .photo-circle{ width: 220px; margin: 0 auto; }
  .fa-bars {
    visibility: visible;
  }
  .header-links {
    display: none;
  }
}


/* Killian - Additionnel */

.skill-chips .chip {
  transition: all .3s ease;
}

.skill-chips .chip:hover {
  background:#3146a6;
  border-color:#3146a6;
  color:#fff;
  cursor: pointer;
  scale: 1.1;
}

/* Footer */
.footer {
  background: #0b1020;
  color: #d6dbff;
  text-align: center;
  padding: 24px 18px;
  font-size: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  margin: 8px 0;
  line-height: 1.6;
}

.footer a {
  color: #9eaeff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #3ba0ff;
}