/* ========== Fonts ========== */
/* Clash Display via CDN */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
/* DM Sans via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ========== Base ========== */
:root{
  --bg: #080a10;
  --bg2: #0d1120;
  --card: #0f1624;
  --card-hi: #141d2e;       /* cartes "importantes" légèrement plus claires */
  --text: #edf2ff;
  --muted: #8896b3;
  --accent: #7c6ff7;        /* violet vif */
  --accent2: #00d4ff;       /* cyan vif */
  --accent3: #f0522e;       /* orange/rouge pour accentuation rare */
  --border: rgba(255,255,255,.08);
  --border-hi: rgba(124,111,247,.35);   /* bordure accentuée */
  --shadow: 0 16px 48px rgba(0,0,0,.55);
  --shadow-accent: 0 0 40px rgba(124,111,247,.18);
  --radius: 16px;
  --radius2: 22px;
  --max: 1100px;
  --font-display: 'Clash Display', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 900px 500px at 10% 0%,  rgba(124,111,247,.20), transparent 60%),
    radial-gradient(ellipse 700px 400px at 90% 5%,   rgba(0,212,255,.13),   transparent 55%),
    radial-gradient(ellipse 500px 300px at 50% 100%, rgba(240,82,46,.08),    transparent 60%),
    var(--bg2);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
}

/* grain subtil */
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

a{ color:inherit; text-decoration:none; }
p{ margin:0 0 12px; }
h1,h2,h3{ line-height:1.12; margin:0 0 14px; font-family: var(--font-display); }

/* Hiérarchie typographique marquée */
h1{
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.025em;
  /* Dégradé de texte sur le h1 */
  background: linear-gradient(135deg, #ffffff 40%, rgba(124,111,247,.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2{
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
h3{
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.01em;
  font-family: var(--font-display);
}

code{
  background: rgba(124,111,247,.12);
  border: 1px solid rgba(124,111,247,.25);
  padding: 2px 8px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .88em;
  color: var(--accent2);
}

/* ========== Layout ========== */
.container{
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section{ padding: 72px 0; }
.section.alt{
  background:
    linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.012) 100%);
  border-top:  1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

/* ligne décorative gauche sur section alt */
.section.alt::before{
  content:'';
  position:absolute;
  top:0; left:0; bottom:0;
  width:3px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity:.5;
}

.section-title{ margin-bottom: 22px; }
.muted{ color: var(--muted); }
.small{ font-size: .9rem; }

/* ========== Header ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(8,10,16,.60);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -.01em;
  font-size: 1rem;
}
/* Dot animé */
.brand-dot{
  width:11px; height:11px; border-radius:999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 3px rgba(124,111,247,.18), 0 0 12px rgba(124,111,247,.4);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%,100%{ box-shadow: 0 0 0 3px rgba(124,111,247,.18), 0 0 12px rgba(124,111,247,.4); }
  50%{     box-shadow: 0 0 0 5px rgba(124,111,247,.08), 0 0 22px rgba(0,212,255,.5); }
}

.nav{
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a{
  color: var(--muted);
  font-weight: 500;
  font-size: .92rem;
  padding: 6px 12px;
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}

@media (max-width: 720px){
  .nav{ gap: 4px; flex-wrap:wrap; justify-content:flex-end; }
  .nav a{ font-size:.88rem; }
}

/* ========== Hero ========== */
.hero{ padding: 80px 0 20px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 20px;
  align-items: start;
}

/* hero-grid aside — handled inline on the card */

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent2);
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .75rem;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
/* Petit trait avant le kicker */
.kicker::before{
  content:'';
  display:inline-block;
  width:20px; height:2px;
  background: var(--accent2);
  border-radius:2px;
}

.lead{
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 55ch;
  line-height: 1.7;
}
.hero-actions{
  display: flex;
  gap: 10px;
  margin: 22px 0 14px;
  flex-wrap: wrap;
}

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover{
  border-color: rgba(124,111,247,.4);
  color: var(--text);
  background: rgba(124,111,247,.08);
}

/* ── Colored chips (hero) ── */
.chip-sql    { border-color: rgba(0,212,255,.35);  color: #6ee7ff; background: rgba(0,212,255,.07); }
.chip-python { border-color: rgba(255,212,0,.30);  color: #ffe066; background: rgba(255,212,0,.07); }
.chip-bi     { border-color: rgba(255,180,0,.30);  color: #ffd06b; background: rgba(255,180,0,.07); }
.chip-ml     { border-color: rgba(124,111,247,.35); color: #c4bbff; background: rgba(124,111,247,.09); }
.chip-report { border-color: rgba(34,197,94,.30);  color: #86efac; background: rgba(34,197,94,.07); }

.links-row{
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.sep{ color: rgba(255,255,255,.2); }

/* ========== Cards / UI ========== */
.card{
  background: rgba(15,22,36,.82);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover{
  border-color: rgba(124,111,247,.22);
  box-shadow: var(--shadow), var(--shadow-accent);
  transform: translateY(-3px);
}

/* Carte "mise en avant" — plus lumineuse */
.card-hi{
  background: linear-gradient(145deg, rgba(20,29,46,.95), rgba(15,22,36,.9));
  border-color: var(--border-hi);
  box-shadow: var(--shadow), 0 0 60px rgba(124,111,247,.10);
}
.card-hi:hover{
  border-color: rgba(124,111,247,.5);
  box-shadow: var(--shadow), 0 0 80px rgba(124,111,247,.22);
}

.card-body{ padding: 20px; }
.card-title{
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.divider{
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}
.avatar{
  width: 48px; height: 48px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 800;
  font-family: var(--font-display);
  background: rgba(124,111,247,.10);
  border: 1px solid rgba(124,111,247,.25);
  color: var(--accent);
}

/* ========== Buttons ========== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 14px;
  border: 1px solid rgba(124,111,247,.35);
  background: linear-gradient(135deg, rgba(124,111,247,.28), rgba(0,212,255,.16));
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: .92rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover{
  border-color: rgba(124,111,247,.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 20px rgba(124,111,247,.25);
}
.btn:active{ transform: translateY(0); }

/* Bouton plein — CTA principal */
.btn-primary{
  background: linear-gradient(135deg, var(--accent), rgba(0,212,255,.7));
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(124,111,247,.40);
  color: #fff;
}
.btn-primary:hover{
  box-shadow: 0 10px 36px rgba(124,111,247,.55);
  border-color: transparent;
}

.btn-ghost{
  background: rgba(255,255,255,.04);
  border-color: var(--border);
  box-shadow: none;
}
.btn-ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}
.btn-sm{
  padding: 8px 14px;
  border-radius: 11px;
  font-size: .88rem;
}

/* ========== Links ========== */
.link{
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(124,111,247,.35);
  text-underline-offset: 4px;
  transition: text-decoration-color .2s;
}
.link:hover{ text-decoration-color: var(--accent); }

/* ========== Grids ========== */
.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

/* ========== Tags & Lists ========== */
.bullets{
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}
.bullets li{
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
/* puce personnalisée */
.bullets li::before{
  content:'';
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 2px;
  box-shadow: 0 0 6px var(--accent);
}

.tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag{
  font-size: .85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.035);
  border-radius: 999px;
  padding: 5px 11px;
  transition: border-color .2s, color .2s;
}
.tag:hover{
  border-color: rgba(0,212,255,.35);
  color: var(--accent2);
}

/* Accent tag (pour tech principale) */
.tag-accent{
  border-color: rgba(124,111,247,.35);
  background: rgba(124,111,247,.10);
  color: #c4bbff;
}

/* ── Colored tags (tech / domaine) ── */
.tag-sql    { border-color: rgba(0,212,255,.35);  color: #6ee7ff; background: rgba(0,212,255,.07); }
.tag-bi     { border-color: rgba(255,180,0,.30);  color: #ffd06b; background: rgba(255,180,0,.07); }
.tag-dax    { border-color: rgba(240,82,46,.30);  color: #ff8a6e; background: rgba(240,82,46,.07); }
.tag-model  { border-color: rgba(124,111,247,.35); color: #c4bbff; background: rgba(124,111,247,.09); }
.tag-python { border-color: rgba(255,212,0,.30);  color: #ffe066; background: rgba(255,212,0,.07); }
.tag-ml     { border-color: rgba(124,111,247,.35); color: #c4bbff; background: rgba(124,111,247,.09); }
.tag-stream { border-color: rgba(255,75,105,.30); color: #ff9db0; background: rgba(255,75,105,.07); }
.tag-git    { border-color: rgba(34,197,94,.30);  color: #86efac; background: rgba(34,197,94,.07); }
.tag-imdb   { border-color: rgba(251,191,36,.30); color: #fcd34d; background: rgba(251,191,36,.07); }

/* Skills grid */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .skills-grid{ grid-template-columns: 1fr; }
}

/* ========== Tag legend ========== */
.tag-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 14px;
  margin-top: 12px;
  font-size: .75rem;
  color: var(--muted);
  opacity: .65;
}
.tag-legend-title {
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .7rem;
  margin-right: 2px;
}
.tag-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.tag-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
  opacity: .85;
}

/* ========== Note / Callout ========== */
.note{
  margin-top: 18px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.025);
  padding: 14px 18px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .92rem;
}

.callout{
  margin-top: 16px;
  border: 1px solid rgba(124,111,247,.30);
  background: rgba(124,111,247,.07);
  padding: 14px 18px;
  border-radius: var(--radius);
  /* barre latérale */
  border-left: 3px solid var(--accent);
}

/* Callout data (stat en vedette) */
.stat-block{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-block .stat-value{
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-block .stat-label{
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ========== Projects ========== */
.project-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 900px){
  .project-grid{ grid-template-columns: 1fr; }
}

.project-media{
  height: 172px;
  border-top-left-radius: var(--radius2);
  border-top-right-radius: var(--radius2);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
/* Hover shimmer sur project-media */
.project-media::after{
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.04) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .5s;
}
.card:hover .project-media::after{ transform: translateX(100%); }

.placeholder{
  background:
    radial-gradient(ellipse 600px 180px at 20% 30%, rgba(124,111,247,.28), transparent 60%),
    radial-gradient(ellipse 500px 160px at 80% 60%, rgba(0,212,255,.20), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01));
}

.row{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Project pages */
.breadcrumbs{
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .88rem;
}
.breadcrumbs span{ color: var(--accent2); }

.project-hero{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: stretch;
}
.project-cover{
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  min-height: 220px;
  overflow: hidden;
}
@media (max-width: 900px){
  .project-hero{ grid-template-columns: 1fr; }
}

/* Mini blocks */
.mini h3{ margin-bottom: 6px; }
.mini p{ margin:0; color: var(--muted); }

/* ========== Section heading decoration ========== */
.section-label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.section-label::after{
  content:'';
  display:inline-block;
  width:28px; height:1px;
  background: var(--accent);
  opacity: .5;
}

/* ========== Contact ========== */
.contact{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .contact{ grid-template-columns: 1fr; }
}

/* ========== Footer ========== */
.footer{
  border-top: 1px solid var(--border);
  background: rgba(8,10,16,.70);
  padding: 20px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ========== Animations d'entrée ========== */
@keyframes fade-up{
  from{ opacity:0; transform:translateY(18px); }
  to{   opacity:1; transform:translateY(0); }
}

.hero h1{
  animation: fade-up .65s cubic-bezier(.22,1,.36,1) both;
}

/* Titre principal décalé en escalier */
.hero-title span {
  display: block;
}
.hero-title span:nth-child(1) { margin-left: 0px; }
.hero-title span:nth-child(2) { margin-left: 40px; }
.hero-title span:nth-child(3) { margin-left: 80px; }
.hero .kicker{
  animation: fade-up .5s cubic-bezier(.22,1,.36,1) both;
}
.hero .lead{
  animation: fade-up .65s .10s cubic-bezier(.22,1,.36,1) both;
}
.hero .hero-actions{
  animation: fade-up .65s .20s cubic-bezier(.22,1,.36,1) both;
}
.hero .chips{
  animation: fade-up .65s .28s cubic-bezier(.22,1,.36,1) both;
}
.hero .links-row{
  animation: fade-up .65s .35s cubic-bezier(.22,1,.36,1) both;
}
.hero-grid > :last-child{
  animation: fade-up .75s .15s cubic-bezier(.22,1,.36,1) both;
}

/* Réduction des mouvements si préféré */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* ========== Spacing tweaks ========== */
/* Réduit l'espace entre le hero et la section suivante */
.hero + .section,
.hero + .section.alt {
  padding-top: 40px;
}

/* ========== Skill cards avec fond thématique ========== */
.skill-card {
  position: relative;
  overflow: hidden;
}
.skill-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.skill-bg svg {
  position: absolute;
  width: 330px;
  height: 248px;
  filter: blur(4px);
  opacity: 1;
}

/* Positionnements variés par carte */
.skill-lang    .skill-bg svg { bottom: -40px; left: -20px; }
.skill-analyse .skill-bg svg { top: -30px; right: -30px; }
.skill-db      .skill-bg svg { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.skill-bi      .skill-bg svg { bottom: -50px; right: -20px; }
.skill-ml      .skill-bg svg { top: -20px; left: 50%; transform: translateX(-50%); }
.skill-eng     .skill-bg svg { bottom: -30px; left: 30px; }

/* Couleur du SVG héritée via currentColor + dégradé de fond par thème */
.skill-lang    { color: #ffe066; background: linear-gradient(135deg, rgba(255,212,0,.09) 0%, rgba(15,22,36,0) 65%); }
.skill-analyse { color: #6ee7ff; background: linear-gradient(135deg, rgba(0,212,255,.09) 0%, rgba(15,22,36,0) 65%); }
.skill-db      { color: #6ee7ff; background: linear-gradient(135deg, rgba(0,180,255,.09) 0%, rgba(15,22,36,0) 65%); }
.skill-bi      { color: #ffd06b; background: linear-gradient(135deg, rgba(255,180,0,.10) 0%, rgba(15,22,36,0) 65%); }
.skill-ml      { color: #c4bbff; background: linear-gradient(135deg, rgba(124,111,247,.11) 0%, rgba(15,22,36,0) 65%); }
.skill-eng     { color: #86efac; background: linear-gradient(135deg, rgba(34,197,94,.09) 0%, rgba(15,22,36,0) 65%); }

/* Contenu au-dessus du SVG */
.skill-card .card-body {
  position: relative;
  z-index: 1;
}

/* Tags plus lisibles dans les skill cards */
.skill-card .tag {
  background: rgba(13, 18, 30, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.skill-card .tag-sql    { background: rgba(0,212,255,.18); }
.skill-card .tag-bi     { background: rgba(255,180,0,.18); }
.skill-card .tag-dax    { background: rgba(240,82,46,.18); }
.skill-card .tag-model  { background: rgba(124,111,247,.18); }
.skill-card .tag-python { background: rgba(255,212,0,.18); }
.skill-card .tag-ml     { background: rgba(124,111,247,.18); }
.skill-card .tag-stream { background: rgba(255,75,105,.18); }
.skill-card .tag-git    { background: rgba(34,197,94,.18); }


.about-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-bullets li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.about-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-display);
  font-size: .92rem;
}
.about-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  flex-shrink: 0;
}
.about-text {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  padding-left: 13px;
}