/* Thème sombre élégant */
:root{
  --bg:#1A2029; --bg-2:#12161d; --text:#E6EAF2; --muted:#9AA6B2;
  --accent:#8B5CF6; --accent-2:#22D3EE;
  --card:rgba(255,255,255,.04); --card-2:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.09); --shadow:0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box} html{scroll-behavior:smooth}
body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Arial;
  background:radial-gradient(1200px 600px at 70% -10%, rgba(139,92,246,.25), transparent),var(--bg);
  color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* Progress bar ultra-discrète */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: rgba(230, 234, 242, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.1s ease;
  pointer-events: none;
}

.scroll-progress.visible {
  opacity: 1;
}
img{display:block;max-width:100%;height:auto}
figure.screenshot{
  margin:32px auto;
  padding:18px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  max-width:min(960px,100%);
  box-shadow:var(--shadow);
  text-align:center;
}
figure.screenshot img{
  border-radius:12px;
  margin-inline:auto;
  width:100%;
}
figure.screenshot figcaption{
  margin-top:12px;
  color:var(--muted);
  font-size:0.95rem;
  line-height:1.5;
}
a{color:inherit;text-decoration:none}
.container{width:min(1120px,92%);margin-inline:auto}
.section{padding:72px 0;position:relative}
.section-title{font-size:clamp(1.4rem,1.2rem + 1.2vw,2rem);margin:0 0 24px;letter-spacing:.3px}
.lead{font-size:clamp(1rem,.95rem + .4vw,1.125rem);opacity:.95}

/* Header */
.site-header{position:sticky;top:0;z-index:50;backdrop-filter:blur(8px);
  background:linear-gradient(to bottom, rgba(18,22,29,.8), rgba(18,22,29,.3));
  border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{display:flex;align-items:center;gap:10px}.brand .brand-name{font-weight:600;letter-spacing:.3px}
.site-nav{display:flex;gap:22px;align-items:center}
.site-nav a{opacity:.85;transition:opacity .2s ease,transform .2s ease}
.site-nav a:hover{opacity:1;transform:translateY(-1px)}
.menu-toggle{display:none;background:none;border:0;cursor:pointer}
.menu-toggle .bar{display:block;width:22px;height:2px;background:var(--text);margin:4px 0;border-radius:2px}

/* Hero */
.hero{position:relative;padding:70px 0 56px;overflow:hidden}
.hero-inner{text-align:left}
.hero-title{font-size:clamp(1.8rem,1.3rem + 2.2vw,3rem);margin:0 0 10px;position:relative}

/* Typing animation styles */
.hero-title .typing-text {
  background: linear-gradient(135deg, var(--text), var(--accent), var(--accent-2));
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}

.hero-title .typing-cursor {
  display: inline-block;
  background: var(--accent);
  width: 3px;
  height: 1.2em;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: baseline;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-tag{color:var(--muted);margin:0 0 18px}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:2px}
.chip,.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--border);
  background:linear-gradient(180deg,var(--card),var(--card-2));border-radius:999px;box-shadow:var(--shadow);
  transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease,background .3s ease;font-weight:500;
  text-decoration:none}
.chip:hover,.btn:hover{transform:translateY(-3px);border-color:color-mix(in oklab,var(--accent) 40%, white 0%);
  box-shadow:0 8px 25px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.08) inset;
  background:linear-gradient(180deg,color-mix(in oklab,var(--card) 80%,white 20%),var(--card-2))}
.btn.primary{background:linear-gradient(180deg,color-mix(in oklab,var(--accent) 80%, white 0%),var(--accent));
  border-color:transparent;color:#0b0c10}
.btn.primary:hover{box-shadow:0 10px 30px rgba(139,92,246,.35)}
.hero-grid-overlay{pointer-events:none;position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:38px 38px;mask-image:radial-gradient(700px 350px at 60% 0%, black, transparent 70%)}

/* Projects */
.projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.card{background:linear-gradient(180deg,var(--card),var(--card-2));border:1px solid var(--border);border-radius:18px;
  padding:18px;box-shadow:var(--shadow);position:relative;overflow:hidden;
  transition:transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .4s ease, border-color .3s ease;
  cursor:pointer}

.card:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 25px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(139,92,246,.15) inset;
  border-color:rgba(139,92,246,.3)
}

/* Effet de brillance qui suit la souris */
.card::before{
  content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:18px;
  background:radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(139,92,246,.06), transparent 40%);
  opacity:0;transition:opacity .3s ease;pointer-events:none;z-index:1
}
.card:hover::before{opacity:1}

/* Contenu de la carte au-dessus de l'effet */
.card > *{position:relative;z-index:2}
.card::after{content:"";position:absolute;inset:-1px;border-radius:18px;padding:1px;background:
  radial-gradient(600px 220px at 120% -20%, rgba(34,211,238,.18), transparent),
  radial-gradient(500px 180px at -20% 120%, rgba(139,92,246,.18), transparent);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events: none;}
.card h3{margin:0 0 6px;font-size:1.1rem;color:var(--text);font-weight:600;
  transition:transform .3s ease, color .3s ease}
.card:hover h3{transform:translateY(-2px);color:var(--accent)}

.card .meta{color:var(--muted);font-size:.9rem;margin-bottom:10px;
  transition:transform .3s ease .1s, color .3s ease}
.card:hover .meta{transform:translateY(-1px);color:var(--text)}

.card .desc{opacity:.95;margin:10px 0 12px;line-height:1.5;
  transition:transform .3s ease .15s, opacity .3s ease}
.card:hover .desc{transform:translateY(-1px);opacity:1}

.card ul{margin:0 0 12px 18px;padding:0;
  transition:transform .3s ease .2s}
.card:hover ul{transform:translateY(-1px)}

.card .links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;
  transition:transform .3s ease .25s}
.card:hover .links{transform:translateY(-2px)}

.card .thumb{margin:8px 0 12px;transition:transform .3s ease .1s}
.card:hover .thumb{transform:translateY(-2px)}
.card .thumb img{width:100%;border-radius:12px;border:1px solid var(--border);box-shadow:var(--shadow);background:#0f141b;
  transition:box-shadow .3s ease, border-color .3s ease}
.card:hover .thumb img{box-shadow:0 8px 25px rgba(0,0,0,.4);border-color:rgba(139,92,246,.2)}
.link{border:1px solid var(--border);padding:8px 12px;border-radius:10px;display:inline-flex;align-items:center;gap:8px;
  transition:transform .2s ease,border-color .2s ease,background .2s ease;background:rgba(255,255,255,.02)}
.link:hover{transform:translateY(-2px);border-color:color-mix(in oklab,var(--accent-2) 35%, white 0%);background:rgba(255,255,255,.04)}
.link .badge{font-size:.78rem;opacity:.85}

/* Bouton mini en haut de carte */
.card-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mini-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; font-size:.85rem; border-radius:999px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, var(--card), var(--card-2));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.mini-btn:hover{ transform: translateY(-1px); border-color: color-mix(in oklab, var(--accent-2) 35%, white 0%); }
.mini-btn svg{ width:14px; height:14px; opacity:.9; }

/* Enhanced button styles with icons and improved visual hierarchy */
.btn, .chip {
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

/* GitHub button specific styling */
.btn.github {
  background: linear-gradient(180deg, #24292f, #1c2128);
  border-color: rgba(255,255,255,0.1);
  color: #ffffff;
  position: relative;
}

.btn.github:hover {
  background: linear-gradient(180deg, #2c3239, #24292f);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.btn.github::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.btn.github {
  padding-left: 38px; /* Space for icon */
}

/* Primary button enhanced */
.btn.primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 85%, black 15%));
  border: 1px solid color-mix(in oklab, var(--accent) 70%, white 30%);
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn.primary:hover {
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 90%, white 10%), var(--accent));
  border-color: color-mix(in oklab, var(--accent) 60%, white 40%);
  box-shadow: 0 12px 35px rgba(139,92,246,.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

/* Social chips with icons */
.chip {
  position: relative;
  padding-left: 36px;
}

.chip.github::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23E6EAF2' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.chip.linkedin::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23E6EAF2' viewBox='0 0 16 16'%3E%3Cpath d='M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854V1.146zm4.943 12.248V6.169H2.542v7.225h2.401zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248-.822 0-1.359.54-1.359 1.248 0 .694.521 1.248 1.327 1.248h.016zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016a5.54 5.54 0 0 1 .016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225h2.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.chip.huggingface::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='95' height='88' fill='%23E6EAF2' viewBox='0 0 95 88'%3E%3Cpath d='M47.21 0C21.1 0 0 19.64 0 43.86c0 11.98 5.25 22.77 13.65 30.72 1.92 1.82 4.99 1.73 6.81-.19 1.82-1.92 1.73-4.99-.19-6.81-6.5-6.16-10.58-14.89-10.58-24.72 0-18.71 15.21-33.93 33.93-33.93s33.93 15.22 33.93 33.93c0 9.83-4.08 18.56-10.58 24.72-1.92 1.82-2.01 4.89-.19 6.81 1.82 1.92 4.89 2.01 6.81.19 8.4-7.95 13.65-18.74 13.65-30.72C94.42 19.64 73.32 0 47.21 0zM31.5 31.5c-3.45 0-6.25 2.8-6.25 6.25s2.8 6.25 6.25 6.25 6.25-2.8 6.25-6.25-2.8-6.25-6.25-6.25zm31.25 0c-3.45 0-6.25 2.8-6.25 6.25s2.8 6.25 6.25 6.25 6.25-2.8 6.25-6.25-2.8-6.25-6.25-6.25zM47.21 75c-8.84 0-16.37-5.4-19.53-13.06-.65-1.57-2.5-2.32-4.07-1.67-1.57.65-2.32 2.5-1.67 4.07 4.31 10.45 14.56 17.74 26.27 17.74s21.96-7.29 26.27-17.74c.65-1.57-.1-3.42-1.67-4.07-1.57-.65-3.42.1-4.07 1.67C63.58 69.6 56.05 75 47.21 75z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.chip.email::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23E6EAF2' viewBox='0 0 16 16'%3E%3Cpath d='M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Improved focus states for accessibility */
.btn:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Better mobile touch targets */
@media (max-width: 768px) {
  .btn, .chip {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .chip {
    padding-left: 40px;
  }
  
  .btn.github {
    padding-left: 42px;
  }
}

/* Legal */
.legal .legal-list{margin-left:18px}

/* Footer */
.site-footer{border-top:1px solid var(--border);background:linear-gradient(to top, rgba(0,0,0,.18), transparent)}
.site-footer .container{padding:22px 0}
.site-footer a{text-decoration:underline;text-decoration-color:rgba(255,255,255,.2)}

/* Reveal */
[data-reveal]{opacity:0;transform:translateY(10px);transition:opacity .6s ease,transform .6s ease}
[data-reveal].is-visible{opacity:1;transform:none}

/* Progressive Text Reveal */
[data-text-reveal] {
  overflow: visible;
}

[data-text-reveal] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0ms);
  white-space: nowrap;
}

[data-text-reveal].is-revealing .word {
  opacity: 1;
  transform: translateY(0);
}

/* Animation plus subtile pour les éléments sensibles */
.hero-tag .word {
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card .desc .word {
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: normal;
}

/* Timing naturel pour différents contextes */
.lead .word {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Préservation des espaces */
[data-text-reveal] .word {
  margin-right: 0.25em;
}

[data-text-reveal] .word:last-child {
  margin-right: 0;
}

/* Consent banner */
/* === Consent banner (version plus visible) === */
.consent-banner{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(980px, 92%);
  padding: 16px 18px;

  /* moins de transparence + léger blur pour détacher du fond */
  background: linear-gradient(180deg, rgba(16,20,27,.96), rgba(16,20,27,.96));
  backdrop-filter: blur(10px);

  /* contour plus net et halo discret */
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow:
    0 18px 50px rgba(0,0,0,.55),
    0 0 0 1px rgba(139,92,246,.18) inset;
}

.consent-banner p{
  margin: 0 0 12px;
  color: var(--text);         /* texte clair (plus lisible que --muted) */
  line-height: 1.45;
}
.text-link{
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.35);
  opacity:.9;
}
.text-link:hover{ opacity:1; text-decoration-color: rgba(255,255,255,.6); }


.consent-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* boutons un peu plus contrastés dans la bannière */
.consent-banner .btn{ border-color: rgba(255,255,255,.22); }
.consent-banner .btn.primary:hover{ box-shadow: 0 12px 28px rgba(139,92,246,.45); }

@media (max-width: 540px){
  .consent-banner{ padding: 14px; bottom: 12px; }
}


/* Responsive nav */
@media (max-width:860px){
  .menu-toggle{display:block}
  .site-nav{position:absolute;top:100%;right:0;background:linear-gradient(180deg,var(--bg-2),rgba(0,0,0,.4));
    border:1px solid var(--border);border-right:0;border-top:0;border-radius:0 0 0 14px;padding:12px;display:none;
    flex-direction:column;gap:12px;min-width:180px}
  .site-nav.open{display:flex}
}

/* Réduction espace entre hero et projets */
.hero { padding-bottom: 60px; }   /* avant 56px */
#projects.section { padding-top: 45px; }  /* avant 72px */
/* Canvas animé derrière le hero */
/* Canvas animé derrière le hero */
.hero-inner{ position: relative; z-index: 2; }
.hero-grid-overlay{ position:absolute; z-index: 1; }

.hero-canvas{
  position:absolute; inset:0; z-index:0;
  opacity:.35;                   /* douceur */
  pointer-events:none;           /* ne bloque rien */

  /* Masque: fondu sur ~64px en haut pour ne jamais "mordre" le header */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.3) 16px, black 64px);
          mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.3) 16px, black 64px);
}

@media (prefers-reduced-motion: reduce){
  .hero-canvas{ display:none; }
}


/* ===== Mobile nav — sheet propre ===== */
@media (max-width: 860px){
  .menu-toggle{ display:block; z-index:1100; }

  /* panneau flottant */
  .site-nav{
    position: fixed;
    top: 72px;                 /* décollé du header */
    right: 12px;
    width: min(88vw, 360px);
    background: linear-gradient(180deg, rgba(18,22,29,.98), rgba(18,22,29,.92));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    z-index: 1050;
    transition: transform .18s ease, opacity .18s ease;
  }
  .site-nav.open{ opacity:1; transform:none; pointer-events:auto; }

  /* liens = grands tap-targets, contraste */
  .site-nav a{
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.05rem;
    opacity: 1; transform:none;
  }
  .site-nav a:hover,
  .site-nav a:focus{
    background: rgba(255,255,255,.06);
    outline: none;
  }

  /* fond assombri cliquable */
  .nav-scrim{
    position: fixed; inset:0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(1px);
    opacity:0; pointer-events:none;
    transition: opacity .18s ease;
    z-index:1000;
  }
  .nav-scrim.visible{ opacity:1; pointer-events:auto; }

  /* empêche le scroll quand le menu est ouvert */
  body.no-scroll{ overflow:hidden; }

  /* animation burger -> croix */
  .menu-toggle .bar{ transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle.is-open .bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open .bar:nth-child(2){ opacity:0; }
  .menu-toggle.is-open .bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }
}
