/* =======================
   THEME & GLOBAL
   ======================= */
:root{
  --bg:#0f1620;
  --fg:#e6eaf0;
  --muted:#9db2cc;
  --line:#223046;
  --accent:#7f93ac;
  --accent-strong:#b7c7dc;
  --card:#18212e;
  --card-hover:#1b2634;
  --wrap:1100px;
  --r:18px;
  --shadow:0 18px 60px rgba(0,0,0,.35);
  --gap:56px;
}
:root.light{
  --bg:#ffffff;
  --fg:#0b0c10;
  --muted:#5b616e;
  --line:#e6eaf0;
  --accent:#5b6b80;
  --accent-strong:#3f4f66;
  --card:#f7f9fc;
  --card-hover:#fff;
  --shadow:0 12px 36px rgba(0,0,0,.06);
}

*{ box-sizing:border-box; }
html,body{ height:100%; scroll-behavior:smooth; }
body{ margin:0; font-family:"Raleway", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--fg); background:var(--bg); }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 clamp(16px,3vw,40px); }
.wrap > *{ max-width:100%; }

/* widen content on very large screens */
@media (min-width:1366px){ :root{ --wrap:1280px; } }
@media (min-width:1600px){ :root{ --wrap:1440px; --gap:64px; } }
@media (min-width:1900px){ :root{ --wrap:1560px; --gap:72px; } }
@media (min-width:2200px){ :root{ --wrap:1800px; --gap:80px; } }

/* =======================
   HEADER / NAV
   ======================= */
.site-nav{ position:sticky; top:0; z-index:100; background:color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter:blur(8px); border-bottom:1px solid var(--accent); }
.site-nav .top{ display:flex; align-items:center; justify-content:space-between; height:56px; }
.brand{ color:var(--fg); text-decoration:none; font-weight:800; letter-spacing:.5px; flex-shrink:0; }
.brand .dot{ width:10px; height:10px; background:var(--accent); border-radius:50%; display:inline-block; margin-right:8px; box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }

#menuToggle{ display:none; }
#navlinks{ display:flex; align-items:center; gap:16px; white-space:nowrap; }
#navlinks a{ color:var(--fg); text-decoration:none; padding:8px 5px; border-bottom:2px solid transparent; }
#navlinks a.active{ border-color:var(--accent-strong); }

.btn{ display:inline-block; text-decoration:none; padding:10px 16px; border-radius:999px; border:1px solid var(--line); color:var(--fg); background:var(--card); line-height:1; }
.btn.primary{ background:var(--fg); color:var(--bg); }
.btn.ghost{ background:var(--card); }
.btn.header{ padding:8px 12px; }

.icon-btn{ border:1px solid var(--line); background:var(--card); color:var(--fg); border-radius:8px; padding:6px 10px; }

/* mobile menu */
@media (max-width:1100px){
  #menuToggle{ display:inline-block; }
  #navlinks{
    position:fixed; right:16px; top:64px; background:var(--card);
    border:1px solid var(--line); border-radius:14px; padding:10px;
    display:none; flex-direction:column; gap:10px; box-shadow:var(--shadow);
  }
  #navlinks.open{ display:flex; }
}

/* toggle switch */
.toggle{ display:inline-flex; align-items:center; cursor:pointer; }
.toggle input{ display:none; }
.toggle .track{ width:56px; height:28px; border-radius:999px; background:color-mix(in srgb, var(--fg) 10%, var(--bg)); border:1px solid var(--line); display:inline-block; position:relative; box-shadow:inset 0 2px 8px rgba(0,0,0,.25); }
.toggle .thumb{ width:24px; height:24px; border-radius:50%; background:color-mix(in srgb, var(--fg) 90%, var(--bg)); position:absolute; top:2px; left:2px; box-shadow:0 3px 10px rgba(0,0,0,.4); transition:left .2s ease; }
:root.light .toggle .thumb{ background:#fff; }
.toggle input:checked + .track .thumb{ left:30px; }

/* =======================
   HERO
   ======================= */
.hero{ padding:40px 0 56px; border-bottom:1px solid var(--accent); }

.hero-grid{
  display:grid; gap:var(--gap);
  grid-template-columns:minmax(360px,1fr) clamp(240px,24vw,360px);
  align-items:center;
}
.left{ min-width:0; }
.hello{ margin:0 0 14px; color:var(--muted); font-weight:600; letter-spacing:.4px; }
.name{ margin:0 0 10px; font-size:clamp(36px,5vw,52px); line-height:1.05; }
.role-wrap{ max-width:100%; margin-bottom:8px; }

/* typing line — stable & no mid-word breaks */
.role{
  margin:10px 0 18px;
  font-size:clamp(44px, 9.2vw, 88px);
  line-height:1.06;
  font-weight:900; letter-spacing:.3px;
  min-height:3.2em;
}
.role .caret{ display:none; }
.role #typing{
  display:inline-block;
  padding-right:.45ch;
  border-right:2px solid var(--fg);
  animation:caretBlink 1s steps(2,start) infinite;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
  -webkit-hyphens:none; hyphens:none;
}
@keyframes caretBlink{
  0%,49%{ border-color:var(--fg); }
  50%,100%{ border-color:transparent; }
}

.lead{ margin:0 0 24px; color:var(--muted); max-width:70ch; font-size:18px; }
.cta .btn{ min-width:160px; text-align:center; }

/* photo - always a square frame */
.photo-wrap{
  width:100%; aspect-ratio:1 / 1;
  border-radius:28px; overflow:hidden; box-shadow:var(--shadow);
  border:1px solid var(--line); justify-self:end;
}
.photo-wrap img{ width:100%; height:100%; object-fit:cover; display:block; }

/* =======================
   SECTIONS & CARDS
   ======================= */
.section{ padding:52px 0; border-bottom:1px solid var(--accent); }
.section.alt{ background:color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.section-head{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.section-title{ margin:0; font-size:22px; }

.stack{ display:grid; gap:18px; }
.card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--r);
  padding:20px; box-shadow:var(--shadow); transform:translateY(6px); opacity:0;
}
.card-hd{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.logo{ width:84px; height:84px; object-fit:contain; filter:drop-shadow(0 2px 10px rgba(0,0,0,.25)); }
.card .meta{ color:var(--muted); font-size:14px; }
.card ul{ margin:8px 0 0; padding-left:18px; }
.card li{ margin:6px 0; }

.hover-float{ transition:transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease; }
.hover-float:hover{ transform:translateY(-6px); background:var(--card-hover); box-shadow:0 22px 70px rgba(0,0,0,.45); border-color:var(--accent); }

.edu-grid{ display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:900px){ .edu-grid{ grid-template-columns:1fr 1fr; } }

.reveal.visible{ transform:translateY(0); opacity:1; transition:all .6s ease; }

/* =======================
   RESPONSIVE TWEAKS
   ======================= */

/* Tablet: shrink photo a bit in 2-column layout */
@media (max-width:1024px){
  .hero-grid{ grid-template-columns:1fr 320px; gap:36px; }
  .photo-wrap{ width:280px; height:280px; }
}

/* Stack on one column (phones & small tablets) — FIX for ~913px */
@media (max-width:920px){
  .hero-grid{ grid-template-columns:1fr; }
  .right{ justify-self:center; }
  .photo-wrap{
    width:clamp(240px, 60vw, 320px);
    aspect-ratio:1 / 1;
    height:auto;
    margin:8px auto 0;
  }
  .carousel.small .slide{ flex-basis:46%; max-width:46%; }
}

/* Very small phones */
@media (max-width:480px){
  .name{ font-size:34px; }
  .role{ font-size:44px; min-height:3.8em; }
  .cta{ display:flex; flex-wrap:wrap; gap:10px; }
  .cta .btn{ min-width:48%; }
}
@media (max-width:360px){ .cta .btn{ min-width:100%; } }

/* hero larger on big desktops */
@media (min-width:1600px){
  .hero-grid{ grid-template-columns:minmax(520px,1fr) 420px; gap:var(--gap); }
  .photo-wrap{ width:360px; height:360px; }
}
@media (min-width:1900px){
  .hero-grid{ grid-template-columns:minmax(560px,1fr) 460px; }
  .photo-wrap{ width:400px; height:400px; }
}

/* carousel generic */
.carousel{ position:relative; margin-top:14px; background:transparent !important; }
.carousel::before{ content:none !important; }
.track{ display:flex; gap:12px; overflow:hidden; scroll-behavior:smooth; background:transparent !important; }
.carousel.small .slide{ flex:0 0 28%; max-width:28%; padding:22px; font-size:18px; }
.slide{
  flex:0 0 70%; max-width:70%;
  background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:40px; font-size:22px; text-align:center; margin:8px 0; box-shadow:var(--shadow);
}
.cnav{ position:absolute; top:50%; transform:translateY(-50%); background:var(--card); border:1px solid var(--line); width:36px; height:36px; border-radius:50%; color:var(--fg); display:flex; align-items:center; justify-content:center; }
.cnav.prev{ left:-6px; } .cnav.next{ right:-6px; }
.dots{ display:flex; justify-content:center; gap:8px; margin-top:6px; }
.dots button{ width:8px; height:8px; border-radius:50%; border:0; background:color-mix(in srgb, var(--accent-strong) 35%, transparent); }
.dots button.active{ background:var(--accent-strong); }

/* links & footer */
.text-link{ color:var(--accent-strong); text-decoration:none; border-bottom:1px solid color-mix(in srgb, var(--accent-strong) 30%, transparent); }
.text-link:hover{ border-bottom-color:var(--accent-strong); }
.site-footer{ padding:36px 0; text-align:center; color:var(--muted); }

/* reduce motion */
@media (prefers-reduced-motion:reduce){ *{ animation:none !important; transition:none !important; } }

/* =======================
   CTA BUTTONS (shared)
   ======================= */
.cta a.btn,
.cta button.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 18px; border-radius:999px; border:1px solid var(--line);
  background:var(--card); color:var(--fg); text-decoration:none;
  font:inherit; -webkit-appearance:none; appearance:none; line-height:1; cursor:pointer;
}
.cta a.btn:hover,
.cta button.btn:hover{ box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.cta .btn.primary{ background:var(--accent); border-color:var(--accent); color:var(--bg); }

/* =======================
   SKILL FINDER (launcher + modal)
   ======================= */
#sf-toggle{ bottom:150px; }
#sf-launcher{
  position:fixed; right:22px; bottom:22px; z-index:120;
  width:56px; height:56px; border-radius:50%;
  border:1px solid var(--line); background:var(--card);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow); cursor:pointer;
}
#sf-launcher animated-icons{ pointer-events:none; display:block; }

#sf-modal[aria-hidden="true"]{ display:none; }
#sf-modal{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  display:flex; align-items:flex-end; justify-content:flex-end;
  padding:80px 24px 24px; z-index:130;
}
#sf-modal .sf-panel{
  width:min(520px, 92vw); max-height:70vh; overflow:hidden;
  border:1px solid var(--line); background:var(--card); color:var(--fg);
  border-radius:16px; box-shadow:var(--shadow);
  display:flex; flex-direction:column;
}
.sf-hd{ display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--line); }
.sf-x{ background:transparent; color:var(--fg); border:0; font-size:22px; line-height:1; cursor:pointer; }
.sf-body{ padding:12px 16px; overflow:auto; display:flex; flex-direction:column; gap:10px; }
.sf-msg{ background:var(--bg); border:1px solid var(--line); padding:10px 12px; border-radius:12px; }
.sf-msg.bot{ background:color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.sf-input{ display:flex; gap:10px; padding:12px; border-top:1px solid var(--line); }
#sf-q{ flex:1; padding:10px 12px; border-radius:999px; border:1px solid var(--line); background:var(--bg); color:var(--fg); }

/* subtle highlight when scrolling to a card */
.hl-pulse{ box-shadow:0 0 0 3px color-mix(in srgb, var(--accent-strong) 45%, transparent), var(--shadow) !important; transition:box-shadow .6s ease; }

/* =======================
   HERO BADGES
   ======================= */
.hero-badges{
  display:flex; flex-wrap:wrap; gap:16px;
  margin:16px 0 8px;
}
.hero-badges .badge{
  display:inline-flex; align-items:center; justify-content:center;
  padding:18px 24px; border-radius:999px; border:1px solid var(--line);
  background:var(--card); color:var(--fg); text-decoration:none;
  white-space:nowrap; flex:0 0 auto; width:auto;
  box-shadow:var(--shadow); transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  font-weight:650;
}
.badge:hover{ transform:translateY(-2px); background:var(--card-hover); border-color:var(--accent); box-shadow:0 18px 55px rgba(0,0,0,.35); }

.badge-lg{ min-width:clamp(260px,35vw,520px); font-size:clamp(16px,1.6vw,22px); line-height:1.1; }

@media (max-width:900px){ .badge-lg{ min-width:100%; } }
@media (max-width:560px){
  .hero-badges{ flex-direction:column; }
  .hero-badges .badge{ width:100%; }
}

/* === FINAL PATCH — typing 100% stable + photo safe vers 930px === */

/* 1) Empêcher toute césure “au milieu des mots” et stabiliser la hauteur */
.role{
  font-size: clamp(42px, 8.8vw, 88px);
  line-height: 1.06;
  min-height: 2.4em;
  margin: 10px 0 18px;
}
.role-wrap{ min-width: 0; }

/* 2) Caret en pseudo-élément (ne change jamais la largeur du texte) */
.role .caret{ display: none !important; }
.role #typing{
  position: relative;
  padding-right: 0 !important;
  border-right: 0 !important;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  -webkit-hyphens: none; hyphens: none;
}
.role #typing::after{
  content: "";
  position: absolute;
  top: 0.08em;
  right: -0.12em;
  width: 2px; height: 1em;
  background: var(--fg);
  animation: typingCaretBlink 1s steps(2, start) infinite;
}
@keyframes typingCaretBlink{ 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* 3) Photo : jamais de “bandeau” autour de 913–940px */
@media (max-width: 1000px){
  .hero-grid{ grid-template-columns: 1fr; }
  .right{ justify-self: center; }
  .photo-wrap{
    width: clamp(240px, 60vw, 320px) !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin: 8px auto 0;
  }
}
.photo-wrap{ height: auto !important; }

/* Caret piloté en JS */
.role{ position: relative; }
.role #typing{
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  -webkit-hyphens: none;
  hyphens: none;
  padding-right: 0;
}
.role #typing::after{ content: none !important; }
.role .caret{ display: block !important; }

.caret{
  position: absolute;
  width: 2px;
  background: var(--fg);
  animation: blink 1s steps(2, start) infinite;
  pointer-events: none;
}
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

.role{ position: relative; line-height: 1.06; }
#typing{
  position: relative;
  padding-right: .45ch;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  -webkit-hyphens: none; hyphens: none;
}
.role .caret{ display: none !important; }
#typing::after{
  content: "" !important;
  position: absolute;
  right: 0;
  bottom: .08em;
  width: 2px;
  height: 1em;
  background: var(--fg);
  animation: blink 1s steps(2, start) infinite;
}

@media (max-width: 600px){
  .role{
    font-size: clamp(36px, 10vw, 44px);
    min-height: calc(2 * 1.06em);
    margin: 8px 0 14px;
  }
}

/* Skills carousel — flèches bien cliquables et centrage propre */
.carousel{ position:relative; overflow:hidden; }
.track{ display:flex; gap:12px; scroll-behavior:smooth; }
.cnav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:999px;
  border:1px solid var(--line); background:color-mix(in srgb,var(--card) 92%, transparent);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow); z-index:3; cursor:pointer;
}
.cnav.prev{ left:8px; }
.cnav.next{ right:8px; }
.cnav:focus{ outline:2px solid color-mix(in srgb,var(--accent) 60%, transparent); }
.carousel.small .slide{ flex:0 0 86%; max-width:86%; }
@media (min-width: 700px){ .carousel.small .slide{ flex-basis: 48%; max-width:48%; } }
@media (min-width: 1100px){ .carousel.small .slide{ flex-basis: 31%; max-width:31%; } }
#skillDots{ display:flex; justify-content:center; gap:8px; margin-top:6px; }
#skillDots button{ width:8px; height:8px; border-radius:50%; border:0;
  background: color-mix(in srgb, var(--accent-strong) 35%, transparent); }
#skillDots button.active{ background: var(--accent-strong); }
.track::-webkit-scrollbar{ display:none; }

/* ===== Contact refonte ===== */
.contact-grid{ display:grid; gap:18px; }
.email-row{ display:flex; align-items:center; gap:10px; }
.email-row .email{ font-size:18px; }

.icon-pill{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:8px;
  border:1px solid var(--line); background:var(--card);
  box-shadow: var(--shadow); cursor:pointer;
}
.icon-pill img{ display:block; }

.cta-row{ display:flex; align-items:center; gap:26px; flex-wrap:wrap; }

/* gros boutons en pastille */
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:999px;
  text-decoration:none; font-weight:600;
  background: color-mix(in srgb, var(--fg) 18%, var(--card));
  color: var(--bg); border: 0;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pill:hover{ transform: translateY(-1px); box-shadow: 0 18px 55px rgba(0,0,0,.35); }
.btn-linkedin img{ order: 2; margin-left: 6px; }
.btn-cv img{ order: 0; margin-right: 6px; }

@media (max-width: 700px){
  .cta-row{ gap:12px; }
  .pill{ width:100%; justify-content:center; }
}
.contact-inline{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top: 6px;
}
.email{ font-size:18px; }

.icon-pill,
.pill{
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.icon-pill.light{
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:10px; border:1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 26%, var(--card));
}
.icon-pill.light:hover{ background: color-mix(in srgb, var(--fg) 34%, var(--card)); transform: translateY(-1px); }
.pill-light{
  background: color-mix(in srgb, var(--fg) 22%, var(--card));
  color: var(--bg);
  border: 1px solid color-mix(in srgb, var(--fg) 28%, var(--line));
}
.pill-light:hover{
  background: color-mix(in srgb, var(--fg) 30%, var(--card));
  transform: translateY(-1px);
}
.btn-linkedin img{ order:2; margin-left:6px; }
.btn-cv img{ order:0; margin-right:6px; }

@media (min-width: 900px){
  .contact-actions{ justify-self: end; margin-right: clamp(120px, 14vw, 320px); }
}
@media (min-width: 1600px){
  .contact-actions{ margin-right: clamp(220px, 18vw, 420px); }
}

/* header brand avec logo */
.brand{ display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.5px; }
.brand .dot{ display:none; }
.brand-logo{ width:30px; height:30px; display:block; }
.site-nav .top{ height:60px; }

/* === Hero background: OGL particles === */
.hero{ position: relative; overflow: hidden; }
.hero > .wrap{ position: relative; z-index: 1; }
#hero-bg{
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
#hero-bg canvas{ width:100% !important; height:100% !important; display:block; }

/* ===========================
   ✨ Hero badges — GLOW effect
   =========================== */
.hero-badges .badge{
  position: relative;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  /* multi-shadow pour un glow doux */
  box-shadow:
    0 10px 30px rgba(0,0,0,.35),
    0 0 22px color-mix(in srgb, var(--accent) 30%, transparent),
    0 0 60px color-mix(in srgb, var(--accent-strong) 22%, transparent);
  isolation:isolate; /* pour gérer le pseudo-élément sous le contenu */
}
.hero-badges .badge::before{
  content:"";
  position:absolute; inset:-3px;
  border-radius:inherit;
  background:
    radial-gradient(140% 120% at 50% 0%,
      color-mix(in srgb, var(--accent-strong) 46%, transparent) 0%,
      transparent 65%);
  filter: blur(14px);
  opacity:.55;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
  z-index:-1; pointer-events:none;
}
.hero-badges .badge:hover{
  box-shadow:
    0 16px 48px rgba(0,0,0,.45),
    0 0 30px color-mix(in srgb, var(--accent) 42%, transparent),
    0 0 90px color-mix(in srgb, var(--accent-strong) 32%, transparent);
}
.hero-badges .badge:hover::before{
  opacity:.85; transform: translateY(-2px);
}

/* ===========================
   About — Languages & Certificates
   =========================== */
.about-block{ margin: 8px 0 16px; }
.minor-title{
  margin:0 0 8px; font-size:14px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--muted);
}

/* Languages chips */
.lang-list{
  list-style:none; padding:0; margin:0 0 4px;
  display:flex; flex-wrap:wrap; gap:10px 12px;
}
.lang-list li{ display:flex; align-items:center; gap:8px; }
.lang-chip{
  display:inline-flex; align-items:center; justify-content:center;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 12%, var(--card));
  font-weight:800; letter-spacing:.2px;
}
.lang-level{ color:var(--muted); font-size:.95em; }

/* Certificates list */
.cert-list{
  list-style:none; padding:0; margin:6px 0 0;
  display:grid; gap:10px;
}
.cert-link{
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-radius:12px;
  border:1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color:var(--fg); text-decoration:none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.cert-link::before{ content:"🔗"; font-size:16px; opacity:.9; }
.cert-link:hover{
  border-color: var(--accent);
  background: color-mix(in srgb, var(--card) 86%, transparent);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
  transform: translateY(-1px);
}

/* =========================================================
   ★ HERO — Star halo buttons (gris clair)
   - halos animés + glow en pulse
   - intensité réglable via --star-opacity
   ========================================================= */

/* Neutralise l'ancien glow des badges ciblés */
.hero-badges .badge.star-badge{
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.hero-badges .badge.star-badge::before{ display:none; }

/* --- Bouton halo --- */
.star-btn{
  /* Variables personnalisables */
  --star-color: #e6e7eb;          /* gris clair du halo */
  --star-speed: 6s;               /* vitesse du défilement des halos */
  --star-thickness: 2px;          /* épaisseur du contour externe */
  --star-opacity: .55;            /* intensité du halo */
  --star-glow-min: color-mix(in srgb, var(--star-color) 18%, transparent);
  --star-glow-max: color-mix(in srgb, var(--star-color) 32%, transparent);

  position: relative;
  display: inline-block;
  vertical-align: middle;
  border-radius: 999px;
  overflow: hidden;
  padding: var(--star-thickness) 0;
  isolation: isolate;
}

/* Zone intérieure du “pill” */
.star-btn > .inner{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6em;
  line-height: 1.7;
  padding: 0 1.6em;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--fg) 15%, var(--line));
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--fg);
  font-weight: 700;

  /* Glow doux + pulse (en gris clair) */
  box-shadow:
    0 10px 34px rgba(0,0,0,.32),
    0 0 16px var(--star-glow-min);
  animation: star-pulse 2.6s ease-in-out infinite;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease;
}

/* Survol : petit lift + glow renforcé (toujours gris) */
.hero-badges .badge.star-badge:hover .inner{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--star-color) 30%, var(--line));
  box-shadow:
    0 12px 38px rgba(0,0,0,.38),
    0 0 22px var(--star-glow-max);
}

/* Halos : haut→droite et bas→gauche */
.star-btn::after,
.star-btn::before{
  content: "";
  position: absolute;
  width: 200%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--star-color), transparent 12%);
  opacity: var(--star-opacity);
  pointer-events: none;
  z-index: 0;
}
.star-btn::after{
  top: -12px;
  left: -100%;
  animation: star-right var(--star-speed) linear infinite;
}
.star-btn::before{
  bottom: -12px;
  right: -100%;
  animation: star-left var(--star-speed) linear infinite;
  animation-delay: calc(var(--star-speed) / 2);
}

/* Pulse du glow (gris clair) */
@keyframes star-pulse{
  0%,100%{
    box-shadow:
      0 10px 34px rgba(0,0,0,.32),
      0 0 14px var(--star-glow-min);
  }
  50%{
    box-shadow:
      0 14px 42px rgba(0,0,0,.42),
      0 0 24px var(--star-glow-max);
  }
}

/* Défilement des halos */
@keyframes star-right{
  from{ transform: translateX(0%);   opacity:.9; }
  to  { transform: translateX(100%); opacity:0; }
}
@keyframes star-left{
  from{ transform: translateX(0%);    opacity:.9; }
  to  { transform: translateX(-100%); opacity:0; }
}

/* Accessibilité focus */
.hero-badges .badge.star-badge:focus-visible .inner{
  outline: 2px solid var(--star-glow-max);
  outline-offset: 2px;
}

/* ============================================
   Tailles des boutons (grands)
   ============================================ */
.hero-badges{ gap:22px; }

.hero-badges .badge.star-badge .star-btn > .inner{
  font-size: clamp(18px, 1.6vw, 22px);
}

/* Mobile : plein largeur */
@media (max-width:560px){
  .hero-badges .badge.star-badge{ display:block; width:100%; }
  .hero-badges .badge.star-badge .star-btn{ display:block; width:100%; }
  .hero-badges .badge.star-badge .star-btn > .inner{
    width:100%;
    justify-content:center;
  }
}
/* ============================
   CONTACT — alignement + gris clair + responsive
   (patch safe à coller en fin de fichier)
   ============================ */

/* Barre : email à gauche, actions à droite */
.contact-bar{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap: 16px 24px;
}

/* Groupes */
.contact-left{
  display:flex; align-items:center; gap:10px; min-width:0;
}
.contact-actions{
  display:flex; align-items:center; gap:14px;
  justify-self:end;           /* pousse à droite */
  margin-right:0 !important;  /* override anciens margins */
}

/* Gris plus clair pour les boutons LinkedIn / CV */
.pill-light{
  background: color-mix(in srgb, var(--fg) 38%, var(--card)); /* plus clair */
  color: var(--bg);
  border: 1px solid color-mix(in srgb, var(--fg) 46%, var(--line));
  box-shadow: var(--shadow);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pill-light:hover{
  background: color-mix(in srgb, var(--fg) 46%, var(--card));
  border-color: color-mix(in srgb, var(--fg) 54%, var(--line));
  transform: translateY(-1px);
}

/* Bouton "copier" à côté de l'email : même gris clair */
.icon-pill.light{
  background: color-mix(in srgb, var(--fg) 38%, var(--card));
  border: 1px solid color-mix(in srgb, var(--fg) 46%, var(--line));
}
.icon-pill.light:hover{
  background: color-mix(in srgb, var(--fg) 46%, var(--card));
}

/* Thème clair : un peu moins contrasté */
:root.light .pill-light,
:root.light .icon-pill.light{
  background: color-mix(in srgb, var(--fg) 14%, var(--card));
  border-color: color-mix(in srgb, var(--fg) 22%, var(--line));
  color: var(--fg);
}

/* Tailles confortables */
.pill-light{ padding: 12px 20px; border-radius: 999px; font-weight: 700; }
.btn-linkedin img{ order:2; margin-left:6px; }
.btn-cv img{ order:0; margin-right:6px; }

/* ====== Responsive ====== */
/* Tablette : garde sur une ligne si possible, sinon wrap */
@media (max-width: 900px){
  .contact-bar{ grid-template-columns: 1fr; }
  .contact-actions{ justify-self:start; flex-wrap: wrap; }
}

/* Mobile : boutons pleine largeur, bien centrés */
@media (max-width: 560px){
  .contact-actions a.pill-light{
    width: 100%;
    justify-content: center;
  }
}


