:root{
  --sidebar-w: 300px;
  --bg: #0b1220;
  --bg-2: #0f1a2e;
  --text: #e8eefc;
  --muted: rgba(232,238,252,.75);
  --line: rgba(255,255,255,.12);
  --accent: #2ea8ff;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111;
  background: #fff;
}

/* Sidebar */
.sidebar{
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #08101d, #060b14);
  color: var(--text);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 24px 20px;
  overflow: auto;
  z-index: 20;
}

.profile{ text-align: center; }
.profile__img{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  border: 6px solid rgba(255,255,255,.10);
}
.profile__name{
  margin: 14px 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.social{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px 0 18px;
}
.social a{
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.10);
}

.social a{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    transition: all .2s ease;
}

.social a img{
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: .9;
    transition: transform .2s ease, opacity .2s ease;
}

.social a:hover{
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.35);
}

.social a:hover img{
    transform: scale(1.1);
    opacity: 1;
}

/* Menu */
.menu{
  display: grid;
  gap: 6px;
  margin-top: 14px;
}
.menu__link{
  display: flex;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  align-items: center;
  gap: 10px;
}
.menu__link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.menu__link.is-active{
  background: rgba(46,168,255,.12);
  border-color: rgba(46,168,255,.25);
  color: var(--text);
}

.menu__icon{
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: .85;
    transition: transform .2s ease, opacity .2s ease;
}

.menu__link:hover .menu__icon{
    transform: scale(1.1);
    opacity: 1;
}

/* Page layout */
.page{
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* Hero */
.hero{
  position: relative;
  min-height: 50vh;
  background: url("..\\img\\intro_bg\\earth-from-space.jpg") center/cover no-repeat;
  display: grid;
  place-items: center;
}
.hero__overlay{
  position: absolute; inset: 0;
  background: rgba(5,10,20,.55);
}
.hero__content{
  position: relative;
  text-align: left;
  width: min(980px, calc(100% - 64px));
  color: white;
}
.hero__title{
  font-size: clamp(38px, 5vw, 64px);
  margin: 0 0 10px;
  letter-spacing: .2px;
}
.hero__subtitle{
  margin: 0;
  font-size: clamp(18px, 2.2vw, 26px);
  color: rgba(255,255,255,.9);
}
.typed{
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* Sections */
.section{ padding: 72px 0; }
.section--muted{ background: #f6f8ff; }
.container{
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
}
.section__title{
  font-size: 28px;
  margin: 0 0 18px;
}

/* 2 colonnes */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

/* Resume */
.resume__title{ margin: 0 0 12px; font-size: 18px; }
.resume-item{
  position: relative;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(46,168,255,.35);
  margin: 0 0 18px;
}
.resume-item::before{
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(46,168,255,.9);
}
.resume-item h5{ margin: 0; font-size: 16px; }
.resume-item__meta{
  margin: 6px 0 10px;
  font-size: 13px;
  color: rgba(0,0,0,.65);
}

/* Portfolio cards (simple) */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card{
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.card__thumb{ height: 160px; background: #e8eefc; }
.card__body{ padding: 14px; }

/* Mobile */
.nav-toggle{
  position: fixed;
  top: 14px; left: 14px;
  z-index: 30;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: white;
  display: none;
}

@media (max-width: 980px){
  .nav-toggle{ display: inline-grid; place-items: center; }
  .sidebar{
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: min(86vw, 340px);
  }
  body.nav-open .sidebar{ transform: translateX(0); }
  .page{ margin-left: 0; }
  .grid-2{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
}

/* ===== Section À propos ===== */

.about{
  max-width: 900px;
  margin: 0 auto;
}

.about-block{
  margin-top: 36px;
}

.about-block h3{
  margin-bottom: 14px;
  font-size: 20px;
}

.about-block p{
  margin: 0;
  line-height: 1.7;
  color: rgba(0,0,0,.75);
}

.about-block ul{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: rgba(0,0,0,.75);
  line-height: 1.7;
}

.about-quotes blockquote{
  margin: 18px 0;
  padding: 16px 20px;
  border-left: 3px solid #2ea8ff;
  background: rgba(0,0,0,.03);
  font-style: italic;
  border-radius: 8px;
}

.about-quotes cite{
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
  color: rgba(0,0,0,.6);
}


/* ====== Skills (clair / fond blanc) ====== */
.section {
  padding: 72px 0;
  background: #fff; /* fond principal blanc */
}

.container{
  width: min(980px, calc(100% - 64px));
  margin: 0 auto;
}

.section-head h2{
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: .2px;
}

.muted{
  margin: 0 0 22px;
  color: rgba(0,0,0,.65);
  line-height: 1.6;
  max-width: 70ch;
}

/* Grille */
.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Carte */
.skill-card{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}

/* petit liseré propre (optionnel mais joli) */
.skill-card::before{
  content:"";
  position:absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(46,168,255,.9), rgba(46,168,255,.0));
}

.skill-card__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-card h3{
  margin: 0;
  font-size: 18px;
}

.skill-card p{
  margin: 0 0 12px;
  color: rgba(0,0,0,.72);
  line-height: 1.55;
}

/* Badge “pill” */
.pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46,168,255,.25);
  background: rgba(46,168,255,.10);
  color: rgba(0,0,0,.78);
  white-space: nowrap;
}

/* Chips */
.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.06);
  color: rgba(0,0,0,.75);
}

/* Hover clean */
.skill-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Responsive */
@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .container{ width: min(980px, calc(100% - 32px)); }
}

/* ====== Support / Donations ====== */
.section--alt { background: #f7f9ff; }

.donation-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.donation-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.donation-title{
  margin: 0 0 14px;
  font-size: 20px;
  text-align: center;
}

.qr{
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.qr img{
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.donation-row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.donation-row--link{
  grid-template-columns: 1fr;
  justify-items: center;
}

.donation-label{
  color: rgba(0,0,0,.65);
  font-size: 14px;
  white-space: nowrap;
}

.donation-code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy{
  border: 1px solid rgba(0,0,0,.10);
  background: #1f6feb;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn-copy:hover{ filter: brightness(1.03); }
.btn-copy:active{ transform: translateY(1px); }

.copy-hint{
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: rgba(0,0,0,.65);
  text-align: center;
}

.paypal-link{
  color: #6a1bb1;
  text-decoration: underline;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}

.paypal-link:hover{
  background: rgba(106,27,177,.08);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 980px){
  .donation-grid{ grid-template-columns: 1fr; }
  .qr img{ width: 160px; height: 160px; }
}

.donation-row--vertical{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  align-items: center; 
}

.donation-row--vertical .btn-copy{
  align-self: center; 
}


/* ===== Contact cards ===== */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.contact-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  text-align: center;
}

.contact-avatar{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  border: 10px solid #f1f1f1;
  display: block;
  margin: 0 auto 14px;
}

.contact-avatar--bw{
  filter: grayscale(1);
}

.contact-name{
  margin: 10px 0 10px;
  font-size: 24px;
  letter-spacing: .2px;
}

.contact-name--upper{
  text-transform: uppercase;
}

.contact-text{
  margin: 0 auto 18px;
  max-width: 44ch;
  color: rgba(0,0,0,.72);
  line-height: 1.6;
}

.contact-btn{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.contact-btn--primary{
  background: #0b66c3;
  color: #fff;
}

.contact-btn--dark{
  background: #2b2f36;
  color: #fff;
}

.contact-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  transition: transform .15s ease, filter .15s ease;
}

@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* ===== Footer minimal multi-liens ===== */
.footer-minimal{
  border-top: 1px solid rgba(0,0,0,.05);
  padding: 28px 0;
  background: #fafafa;
}

.footer-inner{
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px; /* espace entre les lignes */
}

.footer-main{
  margin: 0;
  font-size: 14px;
  color: rgba(0,0,0,.65);
}

.footer-links{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a{
  font-size: 13px;
  color: rgba(0,0,0,.55);
  text-decoration: none;
}

.footer-links a:hover{
  text-decoration: underline;
}

.footer-links a:not(:last-child)::after{
  content: "·";
  margin-left: 18px;
  color: rgba(0,0,0,.35);
}

/* ===== Centres d’intérêt ===== */

.interests-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.interest-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.interest-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.interest-icon{
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.interest-icon img{
  width: 42px;
  height: 42px;
  object-fit: contain;
  transition: transform .2s ease;
}

.interest-card:hover .interest-icon img{
  transform: scale(1.1);
}

.interest-card h3{
  margin: 0 0 10px;
  font-size: 18px;
}

.interest-card p{
  margin: 0;
  font-size: 14px;
  color: rgba(0,0,0,.65);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 1100px){
  .interests-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px){
  .interests-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .interests-grid{
    grid-template-columns: 1fr;
  }
}

/* ===== Page Crédits / Contributeurs ===== */
.contrib{
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 20px;
}

.contrib__header h1{
  margin: 0 0 10px;
  font-size: 32px;
}

.contrib__header p{
  margin: 8px 0;
  color: rgba(0,0,0,.70);
  line-height: 1.6;
}

.contrib__back a{
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-weight: 700;
  color: rgba(0,0,0,.80);
}

.contrib__back a:hover{
  text-decoration: underline;
}

.contrib__section{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.contrib__section h2{
  margin: 0 0 12px;
  font-size: 20px;
}

.contrib__list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.contrib__list a{
  color: rgba(0,0,0,.80);
  text-decoration: none;
}

.contrib__list a:hover{
  text-decoration: underline;
}


/* ===== Projects (stats card style) ===== */
.stats-card{
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(46,168,255,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(120,70,255,.16), transparent 55%),
    linear-gradient(180deg, #0a1222, #070c16);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 44px rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);
}

.stats-card__top{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Pills (dark) */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

.pill strong{ color: #fff; font-weight: 800; }

.pill--ok{
  border-color: rgba(60,220,140,.28);
  background: rgba(60,220,140,.08);
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(60,220,140,1);
  box-shadow: 0 0 0 6px rgba(60,220,140,.12);
}

/* Grid stats */
.stats-card__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat{
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}

.stat__label{
  font-size: 13px;
  color: rgba(255,255,255,.70);
  margin-bottom: 8px;
}

.stat__value{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .2px;
  margin-bottom: 4px;
  color: #fff;
}

.stat__hint{
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

/* Bottom row */
.stats-card__bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}

/* Chips (dark) */
.stats_chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats_chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

/* ===== CTA Projets centré ===== */
.projects-cta{
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* Bouton propre */
.btn{
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}

.btn--primary{
  background: #2ea8ff;
  color: #fff;
  border: 1px solid transparent;
}

.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(46,168,255,.35);
}


/* ===== Bouton CV spécial ===== */
.menu__link--cv{
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2ea8ff, #6a5cff);
    color: #fff !important;
    font-weight: 700;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(46,168,255,.25);
    transition: all .2s ease;
}

.menu__link--cv .menu__icon{
    filter: brightness(0) invert(1);
}

.menu__link--cv:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(46,168,255,.35);
}