/* =========================================================
   CHIREL DEV — STUDIO PORTFOLIO
   ========================================================= */

:root{
  --bg:#fffdfc;
  --surface:#ffffff;
  --soft:#faf6fb;
  --warm:#fffaf0;
  --text:#10275f;
  --muted:#69748b;
  --purple:#aa72ba;
  --purple-soft:#f1e6f4;
  --yellow:#ecd05f;
  --green:#72c58f;
  --line:#e9e1ec;
  --shadow:0 18px 46px rgba(42,28,58,.07);
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:"DM Sans",sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.has-loading-intro{overflow:hidden}
img{max-width:100%}
a{color:inherit}
button{font:inherit}
.wrap{width:min(1160px,calc(100% - 48px));margin-inline:auto}

.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .55s ease,transform .55s cubic-bezier(.22,.8,.25,1)
}
.reveal.is-visible{opacity:1;transform:none}

/* INTRO */
.loading-intro{
  position:fixed;inset:0;z-index:20000;display:grid;place-items:center;overflow:hidden;
  color:#10275f;
  background:
    radial-gradient(circle at 12% 18%,rgba(243,216,101,.16),transparent 24%),
    radial-gradient(circle at 88% 16%,rgba(190,146,205,.16),transparent 26%),
    #fffdfb;
  transition:opacity .6s ease,visibility .6s ease
}
.loading-intro::before{
  content:"";position:absolute;inset:0;opacity:.24;pointer-events:none;
  background-image:radial-gradient(circle,rgba(70,52,95,.13) .55px,transparent .7px);
  background-size:22px 22px
}
.loading-intro.is-leaving{opacity:0;visibility:hidden;pointer-events:none}
.loading-intro-inner{
  position:relative;z-index:2;width:min(90vw,760px);padding:clamp(28px,4vw,42px);
  border:1px solid rgba(151,103,170,.20);border-radius:22px;background:rgba(255,255,255,.72);
  box-shadow:0 22px 60px rgba(47,34,68,.08);backdrop-filter:blur(7px)
}
.loading-intro-inner::before{
  content:"chirel.dev / loading";display:block;margin-bottom:26px;color:#9c74a8;
  font:700 .68rem/1 var(--mono)
}
.loading-intro-terminal{min-height:118px;display:grid;align-content:center;gap:15px}
.loading-line{margin:0;font-family:var(--mono);white-space:nowrap}
.loading-line-domain{color:#845497;font-size:clamp(2.7rem,7vw,6.2rem);font-weight:800;line-height:1}
.loading-line-stack{color:#182f67;font-size:clamp(.92rem,2vw,1.25rem);font-weight:700}
.loading-prompt{color:#b67bc4;margin-right:8px}
.loading-cursor{color:#d7ad22;margin-left:3px;animation:cursorBlink 1s steps(1) infinite}
.loading-explore{
  display:inline-flex;align-items:center;gap:12px;margin-top:30px;padding:0;border:0;background:transparent;
  color:#10275f;font-weight:800;cursor:pointer;opacity:0;transform:translateY(8px);
  transition:opacity .4s ease,transform .4s ease
}
.loading-explore::before{
  content:"";width:48px;height:2px;border-radius:999px;background:linear-gradient(90deg,#edd05a,#b67bc4)
}
.loading-explore.is-ready{opacity:1;transform:none}
.loading-explore:disabled{pointer-events:none}
.loading-window-wrap{
  position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:22px;
  background:rgba(31,24,44,.16);backdrop-filter:blur(9px);opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .28s ease,visibility .28s ease
}
.loading-window-wrap.is-open{opacity:1;visibility:visible}
.loading-window{
  width:min(560px,94vw);overflow:hidden;border:1px solid rgba(129,89,151,.17);border-radius:24px;
  background:rgba(255,253,249,.98);box-shadow:0 30px 90px rgba(52,37,75,.19);
  transform:translateY(18px) scale(.975);opacity:0;
  transition:transform .38s cubic-bezier(.22,.82,.25,1),opacity .3s ease
}
.loading-window-wrap.is-open .loading-window{transform:none;opacity:1}
.loading-window-bar{
  min-height:48px;display:flex;align-items:center;gap:14px;padding:0 16px;
  border-bottom:1px solid rgba(128,90,150,.1);background:rgba(249,244,251,.72)
}
.loading-window-dots{display:flex;gap:6px}
.loading-window-dots span{width:7px;height:7px;border-radius:50%;background:#d8c2e3}
.loading-window-dots span:nth-child(2){background:#f0d86b}
.loading-window-dots span:nth-child(3){background:#bb8ac7}
.loading-window-path{color:#8d7195;font:700 .68rem/1 var(--mono)}
.loading-window-body{padding:28px 28px 25px}
.loading-window-kicker{display:inline-block;margin-bottom:8px;color:#a36db2;font:700 .74rem/1.3 var(--mono)}
.loading-window-body h2{margin:0 0 8px;font:800 clamp(1.45rem,4vw,2rem)/1.15 "Manrope",sans-serif}
.loading-window-body p{margin:0;color:#687188}
.loading-window-code{display:flex;flex-wrap:wrap;gap:8px 14px;margin:22px 0 19px;color:#273964;font:700 .78rem/1.3 var(--mono)}
.loading-window-code span::before{content:"•";margin-right:7px;color:#d1ae2c}
.loading-window-progress{height:4px;overflow:hidden;border-radius:999px;background:#f2ebf4}
.loading-window-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#efd25b,#b77cc5)}
.loading-window-wrap.is-open .loading-window-progress span{animation:loadingProgress 1.55s cubic-bezier(.22,.75,.25,1) .22s forwards}
.loading-window-body small{display:block;margin-top:9px;color:#9a90a4;font-size:.68rem}
.loading-skip{position:absolute;z-index:7;right:25px;bottom:22px;padding:7px 9px;border:0;background:transparent;color:#8e8194;font-size:.72rem;font-weight:700;cursor:pointer}

/* HEADER */
.site-header{
  position:sticky;top:0;z-index:1000;border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(14px)
}
.header-row{min-height:66px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px}
.brand{display:inline-flex;align-items:center}
.brand img{width:130px;display:block}
.main-nav{justify-self:center;display:flex;gap:28px}
.main-nav a{color:var(--muted);font-size:.83rem;font-weight:700;text-decoration:none}
.main-nav a:hover,.main-nav a.is-active{color:var(--text)}
.header-tools{display:flex;gap:8px}
.theme-toggle,.menu-toggle{
  width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:11px;
  background:var(--surface);color:var(--purple);cursor:pointer
}
.menu-toggle{display:none}
.mobile-nav{display:none}

/* HERO */
.hero{padding:54px 0 64px}
.hero-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.75fr);gap:clamp(46px,7vw,90px);align-items:center}
.hero-status{
  width:fit-content;display:inline-flex;align-items:center;gap:9px;margin-bottom:18px;padding:8px 12px;
  border:1px solid #e5d5e9;border-radius:999px;background:var(--purple-soft);color:#76517f;
  font-size:.76rem;font-weight:800
}
.green-dot,.live i,.business-status i{
  width:7px;height:7px;display:inline-block;border-radius:50%;background:var(--green);
  box-shadow:0 0 0 4px rgba(114,197,143,.12)
}
.hero-role,.section-kicker{
  display:block;margin:0 0 10px;color:var(--purple);font:800 .69rem/1.2 var(--mono);
  letter-spacing:.05em;text-transform:uppercase
}
.hero h1{
  max-width:760px;margin:0;color:var(--text);
  font:800 clamp(2.9rem,5.6vw,5.25rem)/.98 "Manrope",sans-serif;letter-spacing:-.055em
}
.hero h1 span{display:block;color:var(--purple)}
.hero-text{max-width:650px;margin:19px 0 0;color:var(--muted);line-height:1.7}
.hero-cta,.contact-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:25px}
.primary-button,.link-button{display:inline-flex;align-items:center;gap:9px;font-weight:800;text-decoration:none}
.primary-button{min-height:44px;padding:0 17px;border-radius:12px;background:var(--text);color:#fff}
.link-button{color:var(--purple)}
.hero-visual{position:relative}
.visual-main{
  overflow:hidden;border:1px solid var(--line);border-radius:22px;background:var(--surface);box-shadow:var(--shadow)
}
.visual-toolbar{
  min-height:44px;display:flex;align-items:center;gap:12px;padding:0 15px;border-bottom:1px solid var(--line);
  background:var(--soft);color:#918394;font:700 .66rem/1 var(--mono)
}
.dots{display:flex;gap:6px}
.dots i{width:7px;height:7px;border-radius:50%;background:#d7c0dc}
.dots i:nth-child(2){background:#efd467}.dots i:nth-child(3){background:#ba88c5}
.visual-body{padding:28px 24px}
.visual-code{display:grid;grid-template-columns:30px 1fr;gap:10px;color:#897b8f;font:700 .68rem/1.6 var(--mono)}
.visual-code code{color:#5b647c}
.visual-focus{margin-top:34px}
.visual-focus strong{display:block;color:var(--text);font:800 1.8rem/1 "Manrope",sans-serif}
.visual-focus small{display:block;margin-top:9px;color:var(--muted);font:700 .67rem/1.4 var(--mono)}
.floating-note{
  position:absolute;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);
  color:#816f87;font:700 .63rem/1 var(--mono);box-shadow:0 8px 20px rgba(42,28,58,.06)
}
.note-one{left:-22px;bottom:30px;transform:rotate(-3deg)}
.note-two{right:-16px;top:64px;transform:rotate(3deg)}

/* SHARED TITLES */
.section-title-row{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,400px);align-items:end;gap:32px;margin-bottom:32px
}
.section-no{display:block;margin-bottom:7px;color:#ad7cb7;font:800 .62rem/1 var(--mono)}
.section-title-row h2,.about h2,.contact h2{
  margin:0;color:var(--text);font:800 clamp(2rem,4vw,3.35rem)/1.04 "Manrope",sans-serif;letter-spacing:-.04em
}
.section-intro{margin:0;color:var(--muted);line-height:1.62}

/* PROJECTS */
.projects{padding:70px 0;background:var(--soft)}
.project-feature{
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);gap:clamp(34px,5vw,60px);
  align-items:center;padding:22px 0 42px;border-bottom:1px solid var(--line)
}
.project-feature-image{
  display:block;overflow:hidden;aspect-ratio:16/10;border-radius:18px;background:#f1edf3
}
.project-feature-image img,.project-side-image img{
  width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s ease
}
.project-feature-image:hover img,.project-side-image:hover img{transform:scale(1.025)}
.project-topline{
  display:flex;align-items:center;justify-content:space-between;gap:16px;color:#8f8194;font:700 .64rem/1.2 var(--mono)
}
.live{display:inline-flex;align-items:center;gap:7px}
.project-feature h3,.project-side h3{
  margin:12px 0 0;color:var(--text);font-family:"Manrope",sans-serif;letter-spacing:-.04em
}
.project-feature h3{font-size:clamp(2.2rem,4vw,3.8rem);line-height:1}
.project-lead{margin:11px 0 0;color:var(--purple)!important;font-weight:800}
.project-feature-content>p:not(.project-lead),.project-side-copy>p{margin:14px 0 0;color:var(--muted);line-height:1.62}
.stack-line{margin-top:17px;color:#7e7382;font:700 .66rem/1.45 var(--mono)}
.project-links{display:flex;gap:17px;flex-wrap:wrap;margin-top:19px}
.project-links a{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-size:.77rem;font-weight:800;text-decoration:none}
.project-links a:hover{color:var(--purple)}

.project-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:34px;margin-top:34px}
.project-side{display:grid;grid-template-columns:1fr;gap:18px}
.project-side-reverse .project-side-image{order:-1}
.project-index{display:inline-block;margin-right:8px;color:#ad7cb7;font:800 .62rem/1 var(--mono)}
.project-type{color:#8f8194;font:700 .63rem/1 var(--mono)}
.project-side h3{font-size:1.65rem;line-height:1.08}
.project-side-image{display:block;overflow:hidden;aspect-ratio:16/9;border-radius:15px;background:#f1edf3}

/* ABOUT */
.about{padding:70px 0}
.about-layout{
  display:grid;grid-template-columns:120px minmax(0,1.05fr) minmax(320px,.8fr);
  gap:34px 50px;align-items:start
}
.about-copy h2{font-size:clamp(2rem,3.8vw,3.25rem)}
.about-copy p{max-width:660px;margin:15px 0 0;color:var(--muted);line-height:1.7}
.process{padding-left:24px;border-left:1px solid var(--line)}
.process-track{display:grid}
.process-item{display:grid;grid-template-columns:32px 1fr;gap:12px;padding:14px 0}
.process-item+.process-item{border-top:1px solid var(--line)}
.process-item span{color:var(--purple);font:800 .63rem/1.5 var(--mono)}
.process-item strong{display:block;font-size:.92rem}
.process-item p{margin:5px 0 0;color:var(--muted);font-size:.82rem;line-height:1.48}
.about-bottom{
  grid-column:2/-1;display:grid;grid-template-columns:repeat(2,1fr);gap:22px;padding-top:16px;border-top:1px solid var(--line)
}
.about-bottom>div{display:grid;grid-template-columns:110px 1fr;gap:14px}
.about-bottom small{color:var(--purple);font:800 .61rem/1.3 var(--mono)}
.about-bottom span{color:var(--muted);font-size:.81rem}

/* STACK */
.stack{padding:64px 0;background:var(--warm)}
.tech-strip{overflow:hidden;margin-top:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.tech-track{display:flex;align-items:center;gap:0;min-width:max-content}
.tech{
  min-width:128px;display:flex;align-items:center;justify-content:center;gap:8px;padding:18px 16px;
  border-right:1px solid var(--line);background:transparent
}
.tech img{width:18px;height:18px;object-fit:contain}
.tech span{color:#586279;font-size:.74rem;font-weight:700}
.stack-notes{display:flex;flex-wrap:wrap;gap:22px;margin-top:14px;color:#93879a;font:700 .63rem/1 var(--mono)}

/* CONTACT */
.contact{padding:70px 0}
.contact-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(340px,.72fr);gap:clamp(44px,8vw,96px);align-items:center}
.contact-copy>p{max-width:590px;margin:16px 0 0;color:var(--muted);line-height:1.68}
.business-card{width:min(100%,430px);min-height:260px;justify-self:end;perspective:1200px}
.business-card-inner{
  position:relative;width:100%;min-height:260px;transform-style:preserve-3d;
  transition:transform .6s cubic-bezier(.22,.8,.25,1)
}
.business-card.is-flipped .business-card-inner{transform:rotateY(180deg)}
.business-face{
  position:absolute;inset:0;min-height:260px;padding:22px;border:1px solid var(--line);border-radius:20px;
  background:
    radial-gradient(circle at 90% 8%,rgba(178,123,194,.12),transparent 25%),
    radial-gradient(circle at 8% 92%,rgba(239,210,95,.17),transparent 26%),
    var(--surface);
  box-shadow:var(--shadow);backface-visibility:hidden
}
.business-back{display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotateY(180deg)}
.business-back img{width:145px;max-height:145px;object-fit:contain}
.business-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8e8094;font:700 .65rem/1 var(--mono)}
.business-status{display:inline-flex;align-items:center;gap:7px}
.business-links{display:grid;gap:9px;margin-top:23px}
.business-links a{display:flex;align-items:center;gap:11px;min-height:30px;color:#4c5771;font-size:.8rem;font-weight:700;text-decoration:none}
.business-links i{width:18px;color:var(--purple);text-align:center}
.card-flip{display:inline-flex;align-items:center;gap:7px;margin-top:16px;padding:0;border:0;background:transparent;color:var(--purple);font-size:.7rem;font-weight:800;cursor:pointer}

/* FOOTER */
.site-footer{border-top:1px solid var(--line);background:var(--surface)}
.footer-row{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#95899b;font-size:.7rem}
.footer-row span:last-child{font:700 .64rem/1 var(--mono)}

/* DARK */
body.theme-dark{
  --bg:#101118;--surface:#191a24;--soft:#151620;--warm:#14151d;--text:#f4f0f7;--muted:#b7b4c3;
  --purple:#d49be0;--purple-soft:#2b2132;--yellow:#e9ce61;--green:#72c58f;
  --line:rgba(255,255,255,.09);--shadow:0 18px 50px rgba(0,0,0,.18);
  background:var(--bg);color:var(--text)
}
body.theme-dark .tech span,body.theme-dark .business-links a{color:#d3cfd9}
body.theme-dark .icon-theme{filter:invert(1)}
body.theme-dark .loading-intro{
  background:
    radial-gradient(circle at 12% 18%,rgba(243,216,101,.08),transparent 24%),
    radial-gradient(circle at 88% 16%,rgba(190,146,205,.10),transparent 26%),
    #11121a;
  color:#f4f0f7
}
body.theme-dark .loading-intro-inner{background:rgba(27,28,38,.84);border-color:rgba(207,160,220,.16)}
body.theme-dark .loading-line-domain,body.theme-dark .loading-line-stack,body.theme-dark .loading-explore{color:#f2edf5}

/* RESPONSIVE */
@media(max-width:980px){
  .hero-layout,.project-feature,.contact-layout{grid-template-columns:1fr}
  .hero-visual,.business-card{width:min(100%,520px);justify-self:start}
  .about-layout{grid-template-columns:90px 1fr}
  .process{grid-column:2}
  .about-bottom{grid-column:2}
}
@media(max-width:760px){
  .wrap{width:min(100% - 28px,1160px)}
  .main-nav{display:none}
  .menu-toggle{display:grid}
  .mobile-nav{
    position:absolute;left:14px;right:14px;top:calc(100% + 6px);display:grid;gap:3px;padding:8px;
    border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:var(--shadow);
    opacity:0;visibility:hidden;transform:translateY(-8px);transition:.2s ease
  }
  .mobile-nav.is-open{opacity:1;visibility:visible;transform:none}
  .mobile-nav a{padding:10px;border-radius:9px;color:var(--muted);font-weight:700;text-decoration:none}
  .mobile-nav a:hover{background:var(--soft);color:var(--text)}
  .hero{padding:40px 0 48px}
  .hero h1{font-size:clamp(2.5rem,12vw,3.9rem)}
  .section-title-row{grid-template-columns:1fr;gap:10px;margin-bottom:24px}
  .projects,.about,.contact{padding:54px 0}
  .project-pair{grid-template-columns:1fr}
  .about-layout{grid-template-columns:1fr;gap:22px}
  .about-label{display:flex;align-items:center;gap:9px}
  .process,.about-bottom{grid-column:1}
  .process{padding-left:0;padding-top:12px;border-left:0;border-top:1px solid var(--line)}
  .about-bottom{grid-template-columns:1fr}
  .about-bottom>div{grid-template-columns:1fr;gap:4px}
  .tech-strip{overflow-x:auto}
  .business-card{justify-self:stretch}
  .loading-intro-inner{width:min(90vw,560px);padding:24px 20px 26px}
  .loading-line-domain{font-size:clamp(2.35rem,14vw,4.25rem)}
  .loading-line-stack{white-space:normal;max-width:92%;font-size:.82rem;line-height:1.6}
  .loading-window-wrap{align-items:end;padding:12px}
  .loading-window{width:100%;border-radius:22px}
}
@media(max-width:480px){
  .brand img{width:118px}
  .primary-button{width:100%;justify-content:center}
  .floating-note{display:none}
  .project-feature{gap:24px}
  .business-face{padding:18px}
  .footer-row{flex-direction:column;align-items:flex-start;justify-content:center;padding:16px 0}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@keyframes cursorBlink{0%,48%{opacity:1}49%,100%{opacity:0}}
@keyframes loadingProgress{from{width:0}to{width:100%}}


/* =========================================================
   V2 — MENU / PROJECTS / ABOUT / STACK / DARK MODE FIX
   ========================================================= */

/* Menu */
.header-row {
  min-height: 70px !important;
}

.main-nav {
  display: inline-flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 6px !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.main-nav a {
  padding: 8px 11px;
  border-radius: 9px;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--soft);
  color: var(--text);
}

.header-contact {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

/* Projects */
.projects {
  background: var(--soft) !important;
}

.projects-showcase {
  display: grid;
  gap: 22px;
}

.project-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: clamp(34px, 5vw, 62px);
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.project-main-image,
.project-compact-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--soft);
}

.project-main-image {
  aspect-ratio: 16 / 10;
  border-radius: 15px;
}

.project-main-image img,
.project-compact-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.project-main-image:hover img,
.project-compact-image:hover img {
  transform: scale(1.025);
}

.project-main-badge {
  position: absolute;
  left: 13px;
  top: 13px;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--purple);
  font-size: .64rem;
  font-weight: 800;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #8f8194;
  font: 700 .64rem/1.2 var(--mono);
}

.project-main h3,
.project-compact h3 {
  margin: 12px 0 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.project-main h3 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1;
}

.project-main-lead {
  margin: 11px 0 0 !important;
  color: var(--purple) !important;
  font-weight: 800;
}

.project-main-content > p:not(.project-main-lead),
.project-compact-content > p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.project-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-compact {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.project-compact-image {
  min-height: 100%;
}

.project-compact-content {
  padding: 20px;
}

.project-compact h3 {
  font-size: 1.45rem;
  line-height: 1.08;
}

/* About */
.about {
  background: var(--bg) !important;
}

.about-new-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.about-main-copy > p {
  max-width: 670px;
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.7;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin-top: 26px;
}

.about-facts > div {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.about-facts small {
  display: block;
  color: #998b9e;
  font: 700 .61rem/1 var(--mono);
}

.about-facts strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: .9rem;
}

.about-method {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.about-method-title {
  display: block;
  margin-bottom: 4px;
  color: #95879b;
  font: 700 .65rem/1.2 var(--mono);
}

.about-method-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 16px 0;
}

.about-method-row + .about-method-row {
  border-top: 1px solid var(--line);
}

.about-method-row > span {
  color: var(--purple);
  font: 800 .63rem/1.5 var(--mono);
}

.about-method-row strong {
  display: block;
  color: var(--text);
  font-size: .92rem;
}

.about-method-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

/* Stack */
.stack {
  background: var(--warm) !important;
}

.tech-groups {
  display: grid;
  gap: 28px;
}

.tech-group-title {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 800;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}

.tech-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tech-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--purple) 28%, var(--line));
  box-shadow: 0 8px 18px rgba(42,28,58,.05);
}

.tech-card img {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  object-fit: contain;
}

.tech-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Full dark theme coverage */
body.theme-dark .site-header,
body.theme-dark .main-nav,
body.theme-dark .theme-toggle,
body.theme-dark .mobile-nav,
body.theme-dark .project-main,
body.theme-dark .project-compact,
body.theme-dark .business-face,
body.theme-dark .tech-card,
body.theme-dark .site-footer,
body.theme-dark .mini-code-card,
body.theme-dark .visual-main {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
}

body.theme-dark .projects {
  background: var(--soft) !important;
}

body.theme-dark .about {
  background: var(--bg) !important;
}

body.theme-dark .stack {
  background: var(--warm) !important;
}

body.theme-dark .project-main-image,
body.theme-dark .project-compact-image {
  background: #11131b !important;
}

body.theme-dark .project-main-badge {
  background: rgba(25,26,36,.9) !important;
}

body.theme-dark .header-contact,
body.theme-dark .primary-button {
  background: #f2edf5 !important;
  color: #171820 !important;
}

body.theme-dark .main-nav a:hover,
body.theme-dark .main-nav a.is-active {
  background: var(--soft) !important;
  color: var(--text) !important;
}

body.theme-dark .tech-card span,
body.theme-dark .project-main-content > p,
body.theme-dark .project-compact-content > p,
body.theme-dark .about-main-copy > p,
body.theme-dark .about-method-row p,
body.theme-dark .section-intro,
body.theme-dark .contact-copy > p {
  color: var(--muted) !important;
}

body.theme-dark .icon-theme {
  filter: invert(1);
}

/* Responsive */
@media (max-width: 1020px) {
  .project-main {
    grid-template-columns: 1fr;
  }

  .project-secondary-grid {
    grid-template-columns: 1fr;
  }

  .about-new-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-method {
    padding-left: 0;
    padding-top: 20px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tech-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-contact {
    display: none;
  }

  .main-nav {
    display: none !important;
  }

  .project-main {
    padding: 15px;
  }

  .project-compact {
    grid-template-columns: 1fr;
  }

  .project-compact-image {
    aspect-ratio: 16 / 8;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   V3 — NOUVELLE SECTION PROJETS : PROJECT SLIDER
   ========================================================= */

.projects-slider-section {
  background: var(--soft) !important;
}

.project-slider {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-slider-top {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.project-slider-label {
  color: #94869a;
  font: 700 .65rem/1 var(--mono);
}

.project-slider-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: #a393a8;
  font: 700 .65rem/1 var(--mono);
}

.project-slider-count strong {
  color: var(--purple);
  font-size: .86rem;
}

.project-slides {
  position: relative;
}

.project-slide {
  display: none;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: clamp(38px, 6vw, 76px);
  align-items: center;
  min-height: 500px;
  padding: 34px 0;
}

.project-slide.is-active {
  display: grid;
  animation: projectSlideIn .38s cubic-bezier(.22,.8,.25,1);
}

.project-slide-visual {
  position: relative;
}

.project-slide-visual > a {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(42, 28, 58, .07);
}

.project-slide-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .38s ease;
}

.project-slide-visual > a:hover img {
  transform: scale(1.025);
}

.project-slide-tag {
  position: absolute;
  left: 18px;
  bottom: -12px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--purple);
  font: 800 .65rem/1 var(--mono);
  box-shadow: 0 8px 20px rgba(42,28,58,.06);
}

.project-slide-content {
  min-width: 0;
}

.project-slide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  color: #918394;
  font: 700 .64rem/1.2 var(--mono);
}

.project-slide-number {
  display: block;
  margin-bottom: 8px;
  color: #b487be;
  font: 800 .68rem/1 var(--mono);
}

.project-slide h3 {
  margin: 0;
  color: var(--text);
  font: 800 clamp(2.4rem, 4.5vw, 4.3rem)/.98 "Manrope", sans-serif;
  letter-spacing: -.05em;
}

.project-slide-lead {
  margin: 13px 0 0;
  color: var(--purple);
  font-weight: 800;
  line-height: 1.45;
}

.project-slide-description {
  max-width: 570px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.project-slide-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.project-slide-tech span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #7d7182;
  font: 700 .62rem/1 var(--mono);
}

.project-slide-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.project-slide-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: .79rem;
  font-weight: 800;
  text-decoration: none;
}

.project-slide-links a:hover {
  color: var(--purple);
}

.project-primary-link {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--text);
  color: #fff !important;
}

.project-primary-link:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

.project-slider-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
}

.project-slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.project-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #96899b;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.project-dot span {
  font: 800 .59rem/1 var(--mono);
  color: #b18aba;
}

.project-dot strong {
  font-size: .72rem;
  white-space: nowrap;
}

.project-dot:hover,
.project-dot.is-active {
  background: var(--purple-soft);
  color: var(--text);
}

.project-slider-arrows {
  display: flex;
  gap: 8px;
}

.project-slider-arrows button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--purple);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.project-slider-arrows button:hover {
  transform: translateY(-1px);
  background: var(--purple-soft);
}

/* Dark theme */
body.theme-dark .project-slider,
body.theme-dark .project-slider-top,
body.theme-dark .project-slider-nav {
  border-color: var(--line) !important;
}

body.theme-dark .project-slide-tag,
body.theme-dark .project-slide-tech span,
body.theme-dark .project-slider-arrows button {
  background: var(--surface) !important;
  color: var(--text);
  border-color: var(--line) !important;
}

body.theme-dark .project-primary-link {
  background: #f2edf5 !important;
  color: #171820 !important;
}

body.theme-dark .project-slide-visual > a {
  background: var(--surface) !important;
}

/* Responsive */
@media (max-width: 900px) {
  .project-slide {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }

  .project-slide-content {
    max-width: 720px;
  }

  .project-slider-nav {
    align-items: flex-end;
  }

  .project-slider-dots {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 650px) {
  .project-slide {
    padding: 25px 0 30px;
  }

  .project-slide h3 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .project-slide-meta {
    margin-bottom: 16px;
  }

  .project-slider-nav {
    min-height: 68px;
  }

  .project-dot {
    min-width: 42px;
    padding: 0 8px;
  }

  .project-dot strong {
    display: none;
  }

  .project-slider-arrows button {
    width: 38px;
    height: 38px;
  }
}

@keyframes projectSlideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   V4 — ABOUT PLUS FLUIDE + MENU MOBILE À DROITE
   ========================================================= */

/* -------- À propos : suppression de l'effet tableau -------- */
.about-v4 {
  background: var(--bg) !important;
}

.about-v4 .section-title-row {
  margin-bottom: 28px;
}

.about-v4-story {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 30px;
}

.about-v4-copy {
  max-width: 760px;
}

.about-v4-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.about-v4-copy p + p {
  margin-top: 14px;
}

.about-v4-note {
  flex: 0 0 auto;
  max-width: 230px;
  padding: 0 8px 8px 0;
  color: #8e5fa0;
  font: 700 1.3rem/1.1 "Caveat", cursive;
  text-align: right;
  transform: rotate(-2deg);
}

.about-v4-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-v4-step {
  position: relative;
  min-height: 150px;
  padding: 20px 18px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(173,114,186,.08), transparent 42%),
    var(--soft);
}

.about-v4-step:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(236,208,95,.10), transparent 42%),
    var(--surface);
}

.about-v4-step:nth-child(3) {
  background:
    radial-gradient(circle at 100% 0%, rgba(173,114,186,.07), transparent 42%),
    var(--soft);
}

.about-v4-number {
  display: block;
  margin-bottom: 22px;
  color: var(--purple);
  font: 800 .64rem/1 var(--mono);
}

.about-v4-step strong {
  display: block;
  color: var(--text);
  font-size: .98rem;
}

.about-v4-step p {
  max-width: 290px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.5;
}

.about-v4-availability {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-top: 22px;
}

.about-v4-availability span {
  flex: 0 0 auto;
  color: var(--purple);
  font: 800 .64rem/1.3 var(--mono);
}

.about-v4-availability p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

/* Dark */
body.theme-dark .about-v4 {
  background: var(--bg) !important;
}

body.theme-dark .about-v4-step {
  background:
    radial-gradient(circle at 100% 0%, rgba(212,155,224,.09), transparent 42%),
    var(--soft) !important;
}

body.theme-dark .about-v4-step:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0%, rgba(233,206,97,.07), transparent 42%),
    var(--surface) !important;
}

/* -------- Mobile header : vrai alignement à droite -------- */
@media (max-width: 760px) {
  .site-header .header-row {
    width: 100% !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-left: 14px !important;
    padding-right: 8px !important;
    margin-inline: 0 !important;
  }

  .site-header .brand {
    flex: 0 0 auto;
    margin-right: auto !important;
  }

  .site-header .header-tools {
    flex: 0 0 auto;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
  }

  .site-header .menu-toggle {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .site-header .mobile-nav {
    left: 14px !important;
    right: 8px !important;
  }

  .about-v4-story {
    display: block;
    padding-bottom: 24px;
  }

  .about-v4-note {
    max-width: none;
    margin-top: 18px;
    padding: 0;
    text-align: left;
  }

  .about-v4-process {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-v4-step {
    min-height: 0;
    padding: 17px 16px;
  }

  .about-v4-number {
    margin-bottom: 10px;
  }

  .about-v4-availability {
    display: block;
  }

  .about-v4-availability p {
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .site-header .header-row {
    padding-right: 6px !important;
  }

  .site-header .mobile-nav {
    right: 6px !important;
  }
}


/* =========================================================
   V5 — HERO PLUS AÉRÉ + SECOND BOUTON + TITRES SANS NUMÉROS
   ========================================================= */

/* Le post-it "responsive first" ne chevauche plus Full stack */
.hero-visual {
  padding-bottom: 24px;
}

.hero-visual .note-one {
  left: 6px !important;
  bottom: -18px !important;
  z-index: 3;
}

.hero-visual .note-two {
  right: -10px !important;
  top: 54px !important;
}

/* Vrai deuxième bouton "Me contacter" */
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--purple) 45%, var(--line));
  border-radius: 12px;
  background: var(--surface);
  color: var(--purple);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.secondary-button:hover {
  transform: translateY(-1px);
  background: var(--purple-soft);
  border-color: color-mix(in srgb, var(--purple) 65%, var(--line));
}

/* Plus de numéros décoratifs au-dessus des titres de sections */
.section-title-row .section-kicker,
.contact-copy .section-kicker {
  margin-top: 0 !important;
}

/* Le projet n'a plus besoin d'espace réservé au numéro supprimé */
.project-slide-content .project-slide-meta {
  margin-bottom: 16px !important;
}

.project-slide-content h3 {
  margin-top: 0 !important;
}

/* Mode sombre */
body.theme-dark .secondary-button {
  background: var(--surface) !important;
  color: var(--purple) !important;
  border-color: var(--line) !important;
}

body.theme-dark .secondary-button:hover {
  background: var(--purple-soft) !important;
}

/* Mobile */
@media (max-width: 760px) {
  .hero-visual {
    padding-bottom: 0;
  }

  .secondary-button {
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }

  .hero-cta .primary-button,
  .hero-cta .secondary-button {
    width: 100% !important;
    min-width: 0;
    padding-inline: 11px;
  }
}


/* =========================================================
   V6 — POLISH LOGO / DARK / TECH / SWIPE
   ========================================================= */

/* --- Logo verso : recadrage rond --- */
.business-back img {
  width: 158px !important;
  height: 158px !important;
  max-width: 158px !important;
  max-height: 158px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 50% !important;
  clip-path: circle(49% at 50% 50%) !important;
  display: block !important;
}

.business-back .card-flip {
  margin-top: 15px !important;
}

/* --- Stack : une seule grille compacte --- */
.tech-groups,
.tech-strip,
.stack-notes {
  display: none !important;
}

.tech-cloud {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 9px;
  margin-top: 8px;
}

.tech-cloud .tech-card {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.tech-cloud .tech-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--purple) 30%, var(--line));
  box-shadow: 0 8px 18px rgba(42, 28, 58, .05);
}

.tech-cloud .tech-card img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.tech-cloud .tech-card span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .71rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Dark mode : contraste global renforcé --- */
body.theme-dark {
  --text: #f7f3f9 !important;
  --muted: #d1ccd7 !important;
  --purple: #dfa7ea !important;
  --line: rgba(255,255,255,.13) !important;
}

body.theme-dark p,
body.theme-dark .section-intro,
body.theme-dark .hero-text,
body.theme-dark .project-slide-description,
body.theme-dark .about-v4-copy p,
body.theme-dark .about-v4-step p,
body.theme-dark .about-v4-availability p,
body.theme-dark .contact-copy > p,
body.theme-dark .tech-cloud .tech-card span,
body.theme-dark .business-links a {
  color: #d6d1dc !important;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark strong,
body.theme-dark .project-slide-links a:not(.project-primary-link) {
  color: #f8f5fa !important;
}

body.theme-dark .section-kicker,
body.theme-dark .hero-role,
body.theme-dark .project-slide-lead,
body.theme-dark .about-v4-number,
body.theme-dark .about-v4-availability span,
body.theme-dark .card-flip {
  color: #dfa7ea !important;
}

body.theme-dark .project-slide-meta,
body.theme-dark .project-slider-label,
body.theme-dark .project-slider-count,
body.theme-dark .project-dot,
body.theme-dark .visual-toolbar,
body.theme-dark .mini-code-head,
body.theme-dark .mini-code-foot {
  color: #c2bbc8 !important;
}

body.theme-dark .tech-cloud .tech-card,
body.theme-dark .project-slide-tech span,
body.theme-dark .business-face,
body.theme-dark .project-slider-arrows button,
body.theme-dark .secondary-button {
  background: #1b1c26 !important;
  border-color: rgba(255,255,255,.13) !important;
}

body.theme-dark .icon-theme {
  filter: invert(1) brightness(1.15) !important;
}

/* --- Project swipe --- */
.project-slides {
  touch-action: pan-y !important;
  user-select: none;
  -webkit-user-select: none;
}

.project-swipe-hint {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 10px 0 2px;
  color: #9a8da0;
  font: 700 .62rem/1.3 var(--mono);
}

.project-swipe-hint i {
  color: var(--purple);
}

/* Responsive tech grid */
@media (max-width: 1100px) {
  .tech-cloud {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .tech-cloud {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .tech-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .tech-cloud .tech-card {
    min-height: 44px;
    padding: 9px;
  }

  .project-swipe-hint {
    display: flex;
  }

  .project-slide {
    cursor: grab;
  }
}

@media (max-width: 420px) {
  .tech-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =========================================================
   V7 — STACK EN COLONNES PAR CATÉGORIE
   ========================================================= */

.stack-v7 {
  background: var(--warm) !important;
}

/* cache l'ancienne grille si une règle historique subsiste */
.stack-v7 .tech-cloud,
.stack-v7 .tech-groups,
.stack-v7 .tech-strip,
.stack-v7 .stack-notes {
  display: none !important;
}

.stack-columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr .8fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.stack-column {
  min-width: 0;
  padding: 0;
}

.stack-column-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 12px;
  border-bottom: 1px solid var(--line);
}

.stack-column-head span {
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
}

.stack-column-head small {
  color: #9b8da1;
  font: 700 .58rem/1 var(--mono);
  white-space: nowrap;
}

.stack-list {
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 7px 3px;
  border-radius: 9px;
  transition: background .18s ease, transform .18s ease;
}

.stack-item:hover {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  transform: translateX(2px);
}

.stack-item img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
}

.stack-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dark */
body.theme-dark .stack-v7 {
  background: var(--warm) !important;
}

body.theme-dark .stack-column-head {
  border-color: var(--line) !important;
}

body.theme-dark .stack-column-head span {
  color: #f7f3f9 !important;
}

body.theme-dark .stack-column-head small {
  color: #bdb5c2 !important;
}

body.theme-dark .stack-item span {
  color: #d6d1dc !important;
}

body.theme-dark .stack-item:hover {
  background: rgba(255,255,255,.035) !important;
}

/* Responsive */
@media (max-width: 980px) {
  .stack-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
  }
}

@media (max-width: 620px) {
  .stack-columns {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }

  .stack-column-head {
    display: block;
  }

  .stack-column-head small {
    display: block;
    margin-top: 5px;
  }

  .stack-item {
    min-height: 37px;
  }
}

@media (max-width: 430px) {
  .stack-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stack-column-head {
    display: flex;
  }

  .stack-column-head small {
    display: inline;
    margin-top: 0;
  }

  .stack-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 12px;
  }
}


/* =========================================================
   V8 — SUPPRESSION DES PETITS NUMÉROS DÉCORATIFS
   ========================================================= */

.stack-column-head {
  justify-content: flex-start !important;
}

.project-slider-top {
  justify-content: flex-start !important;
}

.project-dot {
  gap: 0 !important;
  padding-inline: 12px !important;
}

.project-dot strong {
  display: inline !important;
}

.about-v4-step {
  padding-top: 18px !important;
}

.about-v4-step strong {
  margin-top: 0 !important;
}

@media (max-width: 650px) {
  .project-dot {
    min-width: auto !important;
    padding-inline: 10px !important;
  }

  .project-dot strong {
    display: inline !important;
  }
}


/* =========================================================
   V9 — STACK SANS LIGNES GRISES + NOUVEAU BOUTON CV
   ========================================================= */

/* -------- Technologies : plus de séparateurs gris -------- */

.stack-columns {
  gap: 14px !important;
}

.stack-column {
  padding: 18px 16px 16px !important;
  border: 0 !important;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 8px 22px rgba(42, 28, 58, .035);
}

.stack-column-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 0 12px !important;
  border-bottom: 0 !important;
}

.stack-category-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(236, 208, 95, .13);
}

.stack-column:nth-child(even) .stack-category-dot {
  background: var(--purple);
  box-shadow: 0 0 0 4px rgba(170, 114, 186, .11);
}

.stack-column-head span:not(.stack-category-dot) {
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
}

.stack-list {
  gap: 5px !important;
  padding-top: 0 !important;
}

.stack-item {
  min-height: 38px !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent;
}

.stack-item:hover {
  background: var(--soft) !important;
  transform: translateX(3px);
}

.stack-item img {
  width: 18px !important;
  height: 18px !important;
}

.stack-item span {
  font-size: .76rem !important;
}

/* -------- Bouton CV -------- */

.cv-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--purple) 38%, var(--line));
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.cv-button i {
  font-size: .9rem;
}

.cv-button:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--purple-soft) 72%, var(--surface));
  border-color: color-mix(in srgb, var(--purple) 60%, var(--line));
  box-shadow: 0 8px 18px rgba(42, 28, 58, .06);
}

/* -------- Mode sombre -------- */

body.theme-dark .stack-column {
  background: #171821 !important;
  box-shadow: none !important;
}

body.theme-dark .stack-item:hover {
  background: rgba(255,255,255,.045) !important;
}

body.theme-dark .cv-button {
  background: #28212f !important;
  color: #dfa7ea !important;
  border-color: rgba(223,167,234,.28) !important;
}

body.theme-dark .cv-button:hover {
  background: #31273a !important;
  border-color: rgba(223,167,234,.48) !important;
}

/* -------- Responsive -------- */

@media (max-width: 620px) {
  .stack-column {
    padding: 15px 14px !important;
  }
}

@media (max-width: 480px) {
  .contact-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }

  .contact-actions .primary-button,
  .contact-actions .cv-button {
    width: 100% !important;
    min-width: 0;
    padding-inline: 10px;
  }

  .cv-button {
    font-size: .74rem;
  }
}


/* =========================================================
   V10 — ABOUT FLOW : SANS LIGNES / SANS BLOCS RIGIDES
   ========================================================= */

.about-v10 {
  background: var(--bg) !important;
}

.about-v10 .section-title-row {
  margin-bottom: 24px !important;
}

.about-v10-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: end;
}

.about-v10-copy {
  max-width: 760px;
}

.about-v10-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.about-v10-copy p + p {
  margin-top: 14px;
}

.about-v10-note {
  max-width: 240px;
  color: #8f61a1;
  font: 700 1.3rem/1.1 "Caveat", cursive;
  text-align: right;
  transform: rotate(-2deg);
}

.about-v10-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.about-v10-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

.about-v10-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: .9rem;
}

.about-v10-step:nth-child(2) .about-v10-icon {
  background: color-mix(in srgb, var(--yellow) 22%, var(--surface));
  color: #a88112;
}

.about-v10-step:nth-child(3) .about-v10-icon {
  background: color-mix(in srgb, var(--purple-soft) 74%, var(--surface));
}

.about-v10-step strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: .94rem;
}

.about-v10-step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.about-v10-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--muted);
}

.about-v10-availability p {
  margin: 0;
  font-size: .84rem;
}

.availability-mini-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(114, 197, 143, .12);
}

/* Désactive les anciens effets de séparation de la section About */
.about-v10 *,
.about-v10 *::before,
.about-v10 *::after {
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.about-v10 .about-v10-icon {
  border: 0 !important;
}

/* Dark */
body.theme-dark .about-v10 {
  background: var(--bg) !important;
}

body.theme-dark .about-v10-copy p,
body.theme-dark .about-v10-step p,
body.theme-dark .about-v10-availability p {
  color: #d6d1dc !important;
}

body.theme-dark .about-v10-step strong {
  color: #f8f5fa !important;
}

body.theme-dark .about-v10-icon {
  background: #2a2131 !important;
  color: #dfa7ea !important;
}

body.theme-dark .about-v10-step:nth-child(2) .about-v10-icon {
  background: #2d291f !important;
  color: #e7c95d !important;
}

/* Mobile */
@media (max-width: 760px) {
  .about-v10-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-v10-note {
    max-width: none;
    text-align: left;
  }

  .about-v10-flow {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 30px;
  }

  .about-v10-step {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .about-v10-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .about-v10-availability {
    margin-top: 28px;
  }
}


/* =========================================================
   V11 — À PROPOS OUVERT : AUCUN RECTANGLE / AUCUNE CARTE
   ========================================================= */

.about-v11 {
  background: var(--bg) !important;
}

.about-v11 .section-title-row {
  margin-bottom: 24px !important;
}

.about-v11-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: end;
}

.about-v11-copy {
  max-width: 790px;
}

.about-v11-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.about-v11-copy p + p {
  margin-top: 14px;
}

.about-v11-note {
  max-width: 245px;
  color: #8f61a1;
  font: 700 1.3rem/1.08 "Caveat", cursive;
  text-align: right;
  transform: rotate(-2deg);
}

.about-v11-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 38px;
}

.about-v11-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.about-v11-mark {
  min-width: 24px;
  padding-top: 1px;
  color: var(--purple);
  font: 800 .82rem/1.2 var(--mono);
}

.about-v11-step:nth-child(2) .about-v11-mark {
  color: #b59124;
}

.about-v11-step strong {
  display: block;
  color: var(--text);
  font-size: .96rem;
}

.about-v11-step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.5;
}

.about-v11-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: .84rem;
}

.about-v11-availability > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(114,197,143,.11);
}

/* Écrase les anciens styles de cartes si le cache CSS les conserve */
.about-v11 .about-v11-step,
.about-v11 .about-v11-step:hover,
.about-v11 .about-v11-mark {
  transform: none !important;
}

body.theme-dark .about-v11 {
  background: var(--bg) !important;
}

body.theme-dark .about-v11-copy p,
body.theme-dark .about-v11-step p,
body.theme-dark .about-v11-availability {
  color: #d6d1dc !important;
}

body.theme-dark .about-v11-step strong {
  color: #f8f5fa !important;
}

body.theme-dark .about-v11-mark {
  color: #dfa7ea !important;
}

body.theme-dark .about-v11-step:nth-child(2) .about-v11-mark {
  color: #e7c95d !important;
}

@media (max-width: 760px) {
  .about-v11-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-v11-note {
    max-width: none;
    text-align: left;
  }

  .about-v11-process {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
  }

  .about-v11-step {
    grid-template-columns: 26px 1fr;
    gap: 10px;
  }

  .about-v11-availability {
    margin-top: 28px;
  }
}


/* =========================================================
   V12 — À PROPOS MINIMAL / PERSONNEL
   ========================================================= */

.about-v12 {
  padding: 72px 0 !important;
  background: var(--bg) !important;
}

.about-v12-head {
  max-width: 920px;
}

.about-v12-head h2 {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  font: 800 clamp(2rem, 4.2vw, 3.7rem)/1.04 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.about-v12-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: end;
  margin-top: 34px;
}

.about-v12-copy {
  max-width: 700px;
}

.about-v12-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.about-v12-copy p + p {
  margin-top: 14px;
}

.about-v12-highlight {
  margin: 0 0 2px;
  color: var(--purple);
  font: 700 clamp(1.45rem, 2.4vw, 2rem)/1.12 "Caveat", cursive;
  transform: rotate(-1.5deg);
}

.about-v12-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 34px;
}

.about-v12-meta span {
  position: relative;
  color: #85778a;
  font: 700 .67rem/1.4 var(--mono);
}

.about-v12-meta span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -14px;
  color: var(--yellow);
}

body.theme-dark .about-v12 {
  background: var(--bg) !important;
}

body.theme-dark .about-v12-head h2 {
  color: #f8f5fa !important;
}

body.theme-dark .about-v12-copy p {
  color: #d6d1dc !important;
}

body.theme-dark .about-v12-highlight {
  color: #dfa7ea !important;
}

body.theme-dark .about-v12-meta span {
  color: #c8c1cd !important;
}

@media (max-width: 760px) {
  .about-v12 {
    padding: 54px 0 !important;
  }

  .about-v12-head h2 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .about-v12-body {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 26px;
  }

  .about-v12-highlight {
    max-width: 320px;
  }

  .about-v12-meta {
    gap: 8px 18px;
    margin-top: 28px;
  }

  .about-v12-meta span:not(:last-child)::after {
    right: -11px;
  }
}

@media (max-width: 480px) {
  .about-v12-meta {
    display: block;
  }

  .about-v12-meta span {
    display: block;
    margin-top: 7px;
  }

  .about-v12-meta span::after {
    display: none !important;
  }
}


/* =========================================================
   V13 — ABOUT AVATAR / COURT / INCARNÉ
   ========================================================= */

.about-v13 {
  padding: 68px 0 !important;
  background: var(--bg) !important;
}

.about-v13-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.about-v13-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.about-v13-avatar-ring {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(236,208,95,.55), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(170,114,186,.22), transparent 48%),
    color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--purple) 24%, var(--line));
  box-shadow: 0 18px 36px rgba(42,28,58,.06);
}

.about-v13-avatar-ring span {
  color: var(--text);
  font: 800 2.4rem/1 "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.about-v13-kicker {
  margin: 0;
  color: var(--purple);
  font: 700 .78rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about-v13 h2 {
  margin: 10px 0 0;
  color: var(--text);
  font: 800 clamp(1.9rem, 4vw, 3rem)/1.03 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.about-v13-intro {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.about-v13-vision {
  max-width: 520px;
  margin: 26px auto 0;
}

.about-v13-vision span {
  display: inline-block;
  margin-bottom: 8px;
  color: #8c7f90;
  font: 700 .62rem/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-v13-vision p {
  margin: 0;
  color: var(--text);
  font: 700 clamp(1.05rem, 2.3vw, 1.3rem)/1.5 "Manrope", sans-serif;
}

.about-v13-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
}

.about-v13-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: #87798d;
  font: 700 .66rem/1.2 var(--mono);
}

body.theme-dark .about-v13 {
  background: var(--bg) !important;
}

body.theme-dark .about-v13-avatar-ring {
  background:
    radial-gradient(circle at 30% 30%, rgba(236,208,95,.18), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(170,114,186,.18), transparent 48%),
    #181922 !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

body.theme-dark .about-v13-avatar-ring span,
body.theme-dark .about-v13 h2,
body.theme-dark .about-v13-vision p {
  color: #f8f5fa !important;
}

body.theme-dark .about-v13-intro {
  color: #d6d1dc !important;
}

body.theme-dark .about-v13-kicker {
  color: #dfa7ea !important;
}

body.theme-dark .about-v13-vision span,
body.theme-dark .about-v13-meta span {
  color: #c8c1cd !important;
}

body.theme-dark .about-v13-meta span {
  background: #1b1c26 !important;
}

@media (max-width: 760px) {
  .about-v13 {
    padding: 54px 0 !important;
  }

  .about-v13-avatar-ring {
    width: 96px;
    height: 96px;
  }

  .about-v13-avatar-ring span {
    font-size: 2rem;
  }

  .about-v13 h2 {
    font-size: clamp(1.8rem, 8.4vw, 2.5rem);
  }

  .about-v13-intro {
    font-size: .96rem;
  }

  .about-v13-vision {
    margin-top: 22px;
  }
}

@media (max-width: 480px) {
  .about-v13-meta {
    gap: 8px 7px;
  }

  .about-v13-meta span {
    font-size: .62rem;
    padding: 7px 10px;
  }
}


/* =========================================================
   V14 — PROJETS : BORDURES + FLÈCHES + TITRES PLUS PETITS
   ========================================================= */

.project-slider {
  overflow: visible !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.project-slider-top {
  min-height: 0 !important;
  padding: 0 !important;
  border-bottom: 0 !important;
}

.project-slides {
  margin-top: 8px;
}

.project-slide {
  min-height: 0 !important;
  padding: 24px !important;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.project-slide-visual > a {
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
  background: var(--surface) !important;
}

.project-slide-tag {
  border-radius: 999px !important;
  box-shadow: none !important;
  background: var(--surface) !important;
}

.project-slide h3 {
  font-size: clamp(2rem, 3.7vw, 3.2rem) !important;
  line-height: 1.02 !important;
}

.project-slide-lead {
  font-size: 1.05rem;
}

.project-slide-description {
  max-width: 520px;
}

.project-slide-tech span {
  background: transparent !important;
  border-radius: 999px !important;
}

.project-primary-link {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
}

/* Navigation projets : style bordures plutôt que fond rempli */
.project-slider-nav {
  min-height: 0 !important;
  margin-top: 14px;
  padding-top: 2px;
  border-top: 0 !important;
  align-items: center !important;
}

.project-slider-dots {
  gap: 8px !important;
  overflow-x: auto;
  scrollbar-width: none;
}

.project-slider-dots::-webkit-scrollbar {
  display: none;
}

.project-dot {
  min-height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #8f8294 !important;
}

.project-dot span {
  display: none !important;
}

.project-dot strong {
  display: inline !important;
  font-size: .72rem !important;
}

.project-dot:hover,
.project-dot.is-active {
  border-color: color-mix(in srgb, var(--purple) 55%, var(--line)) !important;
  background: transparent !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--purple) 20%, transparent);
}

/* Flèches plus visibles */
.project-slider-arrows {
  display: flex !important;
  gap: 10px !important;
  flex: 0 0 auto;
}

.project-slider-arrows button {
  width: 42px !important;
  height: 42px !important;
  border: 1px solid color-mix(in srgb, var(--purple) 40%, var(--line)) !important;
  border-radius: 12px !important;
  background: var(--surface) !important;
  color: var(--purple) !important;
  box-shadow: none !important;
}

.project-slider-arrows button:hover {
  background: var(--purple-soft) !important;
  transform: translateY(-1px);
}

.project-swipe-hint {
  padding-top: 6px !important;
}

/* Dark */
body.theme-dark .project-slide {
  background: #151720 !important;
  border-color: var(--line) !important;
}

body.theme-dark .project-slide-visual > a,
body.theme-dark .project-slide-tag,
body.theme-dark .project-slider-arrows button {
  background: #1b1c26 !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

body.theme-dark .project-dot {
  background: transparent !important;
  border-color: var(--line) !important;
  color: #c9c2ce !important;
}

body.theme-dark .project-dot.is-active,
body.theme-dark .project-dot:hover {
  border-color: rgba(223,167,234,.45) !important;
  color: #f8f5fa !important;
}

@media (max-width: 900px) {
  .project-slide {
    gap: 26px !important;
  }
}

@media (max-width: 650px) {
  .project-slide {
    padding: 18px !important;
    border-radius: 22px;
  }

  .project-slide h3 {
    font-size: clamp(1.7rem, 8.8vw, 2.4rem) !important;
  }

  .project-slide-lead {
    font-size: .94rem;
  }

  .project-slider-nav {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  .project-dot {
    min-height: 38px !important;
    padding-inline: 11px !important;
  }

  .project-slider-arrows button {
    width: 38px !important;
    height: 38px !important;
  }
}


/* =========================================================
   V15 — LOGO RACINE / DARK PLUS LISIBLE / LOADING MOBILE
   ========================================================= */

/* Logo : lien racine déjà corrigé dans le HTML */

/* Mode sombre : préserver les couleurs du logo mais le rendre lisible */
body.theme-dark .brand {
  padding: 5px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
}

body.theme-dark .brand img {
  filter: none !important;
  opacity: 1 !important;
}

/* Page de chargement plus compacte sur mobile */
@media (max-width: 760px) {
  .loading-intro-inner {
    width: min(88vw, 520px) !important;
    padding: 22px 18px 24px !important;
  }

  .loading-intro-inner::before {
    margin-bottom: 20px !important;
    font-size: .60rem !important;
  }

  .loading-intro-terminal {
    min-height: 96px !important;
    gap: 11px !important;
  }

  .loading-line-domain {
    font-size: clamp(1.95rem, 10.5vw, 3.05rem) !important;
    line-height: 1 !important;
  }

  .loading-line-stack {
    max-width: 94% !important;
    font-size: .72rem !important;
    line-height: 1.5 !important;
  }

  .loading-explore {
    margin-top: 24px !important;
    font-size: .82rem !important;
  }

  .loading-explore::before {
    width: 38px !important;
  }

  .loading-window-body {
    padding: 23px 21px 21px !important;
  }

  .loading-window-body h2 {
    font-size: 1.45rem !important;
  }

  .loading-window-body p {
    font-size: .86rem !important;
  }

  .loading-window-code {
    margin: 17px 0 15px !important;
    font-size: .68rem !important;
  }

  .loading-window-body small {
    font-size: .62rem !important;
  }
}

@media (max-width: 430px) {
  .loading-line-domain {
    font-size: clamp(1.8rem, 9.8vw, 2.65rem) !important;
  }

  .loading-line-stack {
    font-size: .68rem !important;
  }
}


/* =========================================================
   V16 — HERO SANS "01" + PROJETS MOBILE PLUS COMPACTS
   ========================================================= */

/* Carte hero : plus de colonne réservée au 01 */
.visual-code {
  display: block !important;
}

.visual-code code {
  display: block;
}

/* -------- Mobile : section projets beaucoup plus compacte -------- */
@media (max-width: 650px) {

  .projects-slider-section {
    padding-top: 42px !important;
    padding-bottom: 46px !important;
  }

  .projects-slider-section .section-title-row {
    margin-bottom: 18px !important;
    gap: 6px !important;
  }

  .projects-slider-section .section-kicker {
    margin-bottom: 6px !important;
    font-size: .62rem !important;
  }

  .projects-slider-section .section-title-row h2 {
    font-size: clamp(1.75rem, 8.8vw, 2.25rem) !important;
    line-height: 1.02 !important;
  }

  .projects-slider-section .section-intro {
    max-width: 94%;
    font-size: .86rem !important;
    line-height: 1.45 !important;
  }

  .project-slides {
    margin-top: 4px !important;
  }

  .project-slide {
    gap: 16px !important;
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .project-slide-visual > a {
    aspect-ratio: 16 / 7.2 !important;
    max-height: 180px !important;
    border-radius: 16px !important;
  }

  .project-slide-tag {
    left: 12px !important;
    bottom: -10px !important;
    padding: 6px 9px !important;
    font-size: .58rem !important;
  }

  .project-slide-content {
    padding-top: 4px;
  }

  .project-slide-meta {
    margin-bottom: 10px !important;
    font-size: .58rem !important;
  }

  .project-slide h3 {
    font-size: clamp(1.5rem, 7.2vw, 1.95rem) !important;
    line-height: 1.02 !important;
  }

  .project-slide-lead {
    margin-top: 8px !important;
    font-size: .86rem !important;
    line-height: 1.35 !important;
  }

  .project-slide-description {
    margin-top: 8px !important;
    font-size: .79rem !important;
    line-height: 1.48 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-slide-tech {
    gap: 5px !important;
    margin-top: 12px !important;
  }

  .project-slide-tech span {
    padding: 5px 7px !important;
    font-size: .55rem !important;
  }

  .project-slide-links {
    gap: 12px !important;
    margin-top: 13px !important;
  }

  .project-slide-links a {
    font-size: .72rem !important;
  }

  .project-primary-link {
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
  }

  .project-swipe-hint {
    padding-top: 7px !important;
    font-size: .56rem !important;
  }

  .project-slider-nav {
    min-height: 0 !important;
    margin-top: 8px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .project-slider-dots {
    gap: 5px !important;
  }

  .project-dot {
    min-height: 34px !important;
    padding-inline: 9px !important;
  }

  .project-dot strong {
    font-size: .64rem !important;
  }

  .project-slider-arrows {
    gap: 6px !important;
  }

  .project-slider-arrows button {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
  }
}

@media (max-width: 420px) {
  .projects-slider-section .section-title-row h2 {
    font-size: 1.7rem !important;
  }

  .project-slide-visual > a {
    max-height: 155px !important;
  }

  .project-slide {
    padding: 12px !important;
  }

  .project-dot strong {
    font-size: .60rem !important;
  }
}


/* =========================================================
   V17 — PASTILLES SOUS LE TITRE + STACK DESKTOP ALIGNÉE
   ========================================================= */

/* -------- À propos -------- */
.about-v13-meta {
  margin-top: 16px !important;
  margin-bottom: 18px !important;
}

.about-v13-intro {
  margin-top: 0 !important;
}

/* -------- Stack desktop -------- */

/* On force 4 colonnes nettes sur ordinateur */
.stack-columns {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

/* Blocs de même hauteur et même rythme */
.stack-column {
  min-width: 0 !important;
  height: 100% !important;
  min-height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 18px 16px 16px !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--surface) 74%, transparent) !important;
}

.stack-column-head {
  flex: 0 0 auto !important;
  margin-bottom: 8px !important;
}

.stack-list {
  flex: 1 1 auto !important;
  align-content: start !important;
}

/* Espacement plus régulier entre les technos */
.stack-item {
  min-height: 37px !important;
  padding: 7px 8px !important;
}

/* Evite que les noms longs cassent l'alignement */
.stack-item span {
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Dark mode */
body.theme-dark .stack-column {
  background: #171821 !important;
}

/* Tablette : 2 colonnes */
@media (max-width: 900px) {
  .stack-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .stack-column {
    min-height: 0 !important;
  }
}

/* Mobile : 1 colonne, plus compact */
@media (max-width: 560px) {
  .stack-columns {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .stack-column {
    min-height: 0 !important;
    padding: 15px 14px !important;
  }

  .stack-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px 10px !important;
  }

  .about-v13-meta {
    margin-top: 14px !important;
    margin-bottom: 16px !important;
  }
}


/* =========================================================
   V19 — IDENTITÉ CHIREL DEV PLUS DISTINCTE DE "ET SI ?"
   Charte : ivoire / bleu nuit / mauve / accents doux
   ========================================================= */

:root {
  --chirel-navy: #071C52;
  --chirel-mauve: #B886C6;
  --chirel-lavender: #F4EAF7;
  --chirel-pink: #FFEDED;
  --chirel-yellow: #FFF5C9;
  --chirel-ivory: #FFFDF3;
  --portfolio-display: "Playfair Display", Georgia, serif;
}

/* ----- Header : moins "app / dashboard", plus signature personnelle ----- */

.site-header {
  background: color-mix(in srgb, var(--chirel-ivory) 92%, transparent) !important;
  border-bottom: 0 !important;
  box-shadow: 0 8px 30px rgba(7, 28, 82, .035) !important;
}

.header-inner {
  min-height: 78px !important;
  gap: 26px !important;
}

.brand {
  flex: 0 0 auto !important;
}

.desktop-nav {
  margin-left: auto !important;
  padding: 0 !important;
  gap: 26px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #5e6474 !important;
  font-size: .76rem !important;
  font-weight: 600 !important;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--chirel-mauve);
  transition: right .2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--chirel-navy) !important;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  right: 0;
}

.header-contact {
  margin-left: 8px !important;
  border-radius: 10px !important;
  background: var(--chirel-navy) !important;
  box-shadow: none !important;
}

.theme-toggle-v2,
.menu-toggle {
  border-radius: 10px !important;
}

/* ----- Typographie : portfolio ≠ Et-si ----- */

.hero h1,
.projects-slider-section .section-title-row h2,
.project-slide h3,
.about-v13 h2,
.stack-section h2,
.contact-section h2,
.contact h2 {
  font-family: var(--portfolio-display) !important;
  letter-spacing: -.025em !important;
}

/* Le hero garde de l'impact mais devient plus éditorial/personnel */
.hero h1 {
  font-weight: 600 !important;
  line-height: .98 !important;
}

.project-slide h3,
.about-v13 h2,
.stack-section h2,
.projects-slider-section .section-title-row h2,
.contact-section h2,
.contact h2 {
  font-weight: 600 !important;
}

/* Le texte courant reste net et web */
body,
button,
input,
textarea {
  font-family: "DM Sans", system-ui, sans-serif;
}

/* Les petits labels techniques restent monospace */
.section-kicker,
.project-slide-meta,
.about-v13-kicker,
.about-v13-vision span,
.about-v13-meta span {
  font-family: var(--mono) !important;
}

/* ----- Équilibre de la charte : un peu plus de bleu nuit ----- */

.project-slide-lead,
.about-v13-vision p,
.stack-column-head span:not(.stack-category-dot) {
  color: var(--chirel-navy) !important;
}

.stack-section {
  background: var(--chirel-ivory) !important;
}

.projects-slider-section {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--chirel-lavender) 40%, #fff) 0%,
      #fff 100%) !important;
}

.about-v13 {
  background: #fff !important;
}

.contact-section,
.contact {
  background:
    linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--chirel-ivory) 74%, #fff) 100%) !important;
}

/* ----- Dark : header et titres restent lisibles ----- */

body.theme-dark .site-header {
  background: rgba(14, 16, 25, .94) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.14) !important;
}

body.theme-dark .desktop-nav a {
  color: #c8c3ce !important;
}

body.theme-dark .desktop-nav a:hover,
body.theme-dark .desktop-nav a.is-active {
  color: #f8f5fa !important;
}

body.theme-dark .projects-slider-section,
body.theme-dark .stack-section,
body.theme-dark .about-v13,
body.theme-dark .contact-section,
body.theme-dark .contact {
  background: var(--bg) !important;
}

body.theme-dark .project-slide-lead,
body.theme-dark .about-v13-vision p,
body.theme-dark .stack-column-head span:not(.stack-category-dot) {
  color: #f7f3f8 !important;
}

/* ----- Mobile : garder le header simple ----- */

@media (max-width: 900px) {
  .header-inner {
    min-height: 72px !important;
  }
}

@media (max-width: 700px) {
  .site-header {
    box-shadow: 0 5px 20px rgba(7, 28, 82, .03) !important;
  }

  .hero h1,
  .projects-slider-section .section-title-row h2,
  .about-v13 h2,
  .stack-section h2,
  .contact-section h2,
  .contact h2 {
    letter-spacing: -.02em !important;
  }
}


/* =========================================================
   V20 — HERO PLUS PERSONNEL / DISTINCT DE "ET SI ?"
   ========================================================= */

/* Le hero n'est plus présenté comme une landing app alignée strictement à gauche */
.hero {
  position: relative;
  overflow: hidden;
}

.hero .wrap,
.hero .container {
  position: relative;
}

/* Décalage visuel : contenu plus "signature" */
.hero-copy,
.hero-content {
  max-width: 780px !important;
}

/* Petite signature au-dessus du titre, sans pastille */
.hero-signature-line {
  margin: 0 0 16px !important;
  color: var(--chirel-mauve, #B886C6) !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

/* Titre : composition plus éditoriale, pas le même rythme qu'Et-si */
.hero h1 {
  max-width: 720px !important;
  margin-left: 0 !important;
  font-family: var(--portfolio-display, "Playfair Display", Georgia, serif) !important;
  font-weight: 600 !important;
  line-height: .94 !important;
}

/* Intro moins large */
.hero-intro,
.hero-description,
.hero-copy > p:not(.hero-signature-line):not(.hero-availability-line) {
  max-width: 590px;
}

/* Boutons : éviter l'effet "deux gros CTA symétriques" d'une landing */
.hero-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
}

.hero-actions > a:first-child {
  border-radius: 10px 10px 10px 2px !important;
}

.hero-actions > a:nth-child(2) {
  min-height: auto !important;
  padding: 8px 4px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--chirel-mauve, #B886C6) !important;
}

/* Disponibilité = petite note, plus de pastille */
.hero-availability-line {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 18px 0 0 !important;
  color: #777483 !important;
  font-size: .76rem !important;
  line-height: 1.4 !important;
}

.hero-availability-line > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #72C58F;
  box-shadow: 0 0 0 4px rgba(114,197,143,.10);
}

/* L'illustration hero se décale légèrement pour casser la grille classique */
@media (min-width: 901px) {
  .hero-grid,
  .hero .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .72fr) !important;
    align-items: center !important;
  }

  .hero-visual {
    transform: translateY(22px) rotate(1deg);
  }
}

/* Dark */
body.theme-dark .hero-signature-line {
  color: #DFA7EA !important;
}

body.theme-dark .hero-availability-line {
  color: #CBC5D0 !important;
}

body.theme-dark .hero-actions > a:nth-child(2) {
  color: #DFA7EA !important;
}

/* Mobile : centré pour être très différent du hero Et-si */
@media (max-width: 700px) {
  .hero-copy,
  .hero-content {
    max-width: none !important;
    text-align: center !important;
  }

  .hero-signature-line {
    margin-bottom: 12px !important;
    font-size: .67rem !important;
  }

  .hero h1 {
    max-width: 540px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-intro,
  .hero-description,
  .hero-copy > p:not(.hero-signature-line):not(.hero-availability-line) {
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-actions {
    justify-content: center !important;
  }

  .hero-availability-line {
    margin: 16px auto 0 !important;
    justify-content: center;
  }

  .hero-visual {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-wrap: wrap !important;
  }

  .hero-actions > a:first-child {
    min-width: 190px;
  }

  .hero-availability-line {
    max-width: 290px;
  }
}


/* =========================================================
   V21 — UNE SEULE LIGNE D'IDENTITÉ DANS LE HERO
   ========================================================= */

.hero-single-identity {
  margin: 0 0 18px !important;
  color: var(--chirel-mauve, #B886C6) !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: .76rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase !important;
}

/* Neutralise l'ancienne signature V20 si elle reste en cache */
.hero .hero-signature-line {
  display: none !important;
}

body.theme-dark .hero-single-identity {
  color: #DFA7EA !important;
}

@media (max-width: 700px) {
  .hero-single-identity {
    margin-bottom: 14px !important;
    font-size: .65rem !important;
    letter-spacing: .055em !important;
    text-align: center !important;
  }
}


/* =========================================================
   V22 — POLISH FINAL : MOINS D'EFFETS, PLUS DE HIÉRARCHIE
   ========================================================= */

/* 1. À PROPOS : métadonnées sans effet "collection de pastilles" */
.about-v13-meta {
  gap: 7px 18px !important;
  margin-top: 15px !important;
  margin-bottom: 19px !important;
}

.about-v13-meta span {
  position: relative !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #817887 !important;
}

.about-v13-meta span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -11px;
  color: var(--chirel-mauve, #B886C6);
}

body.theme-dark .about-v13-meta span {
  background: transparent !important;
  color: #c8c1cd !important;
}

/* 2. PROJETS : technos plus discrètes, moins de capsules */
.project-slide-tech {
  gap: 6px 14px !important;
}

.project-slide-tech span {
  position: relative !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #77717d !important;
}

.project-slide-tech span:not(:last-child)::after {
  content: "·";
  position: absolute;
  right: -9px;
  color: var(--chirel-mauve, #B886C6);
}

body.theme-dark .project-slide-tech span {
  color: #c9c3ce !important;
}

/* Les onglets de projets restent fonctionnels mais plus fins */
.project-dot {
  min-height: 36px !important;
  padding: 0 11px !important;
  border-color: rgba(184, 134, 198, .24) !important;
  box-shadow: none !important;
}

.project-dot.is-active {
  border-color: rgba(184, 134, 198, .62) !important;
  box-shadow: none !important;
}

/* 3. STACK : alléger les grands blocs sans perdre les catégories */
.stack-column {
  box-shadow: 0 10px 26px rgba(7, 28, 82, .035) !important;
  border: 1px solid rgba(184, 134, 198, .12) !important;
}

.stack-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 4. CONTACT : garder la carte de visite comme seul vrai objet graphique */
.contact-card {
  box-shadow: 0 18px 45px rgba(7, 28, 82, .07) !important;
}

/* 5. Hiérarchie générale : réduire légèrement les petits labels */
.section-kicker {
  letter-spacing: .07em !important;
  opacity: .88;
}

/* Mobile */
@media (max-width: 650px) {
  .about-v13-meta {
    display: flex !important;
    justify-content: center !important;
    gap: 6px 16px !important;
  }

  .about-v13-meta span {
    display: inline-block !important;
    margin: 0 !important;
    font-size: .60rem !important;
  }

  .about-v13-meta span:not(:last-child)::after {
    display: block !important;
    right: -10px;
  }

  .project-slide-tech {
    gap: 5px 12px !important;
  }

  .project-slide-tech span {
    font-size: .54rem !important;
  }

  .project-slide-tech span:not(:last-child)::after {
    right: -8px;
  }
}

@media (max-width: 420px) {
  .about-v13-meta {
    gap: 5px 14px !important;
  }

  .about-v13-meta span {
    font-size: .57rem !important;
  }
}


/* =========================================================
   V23 — TYPOGRAPHIE CHIREL DEV
   Fraunces = grands titres / DM Sans = texte / mono = touches tech
   ========================================================= */

:root {
  --portfolio-display: "Fraunces", Georgia, serif !important;
}

.hero h1,
.projects-slider-section .section-title-row h2,
.project-slide h3,
.about-v13 h2,
.stack-section h2,
.contact-section h2,
.contact h2 {
  font-family: "Fraunces", Georgia, serif !important;
  font-variation-settings: "opsz" 72;
  letter-spacing: -.03em !important;
}

.hero h1 {
  font-weight: 600 !important;
}

.projects-slider-section .section-title-row h2,
.project-slide h3,
.about-v13 h2,
.stack-section h2,
.contact-section h2,
.contact h2 {
  font-weight: 600 !important;
}

/* Texte courant : sobre et lisible */
body,
button,
input,
textarea {
  font-family: "DM Sans", system-ui, sans-serif !important;
}

/* Les détails techniques gardent leur identité développeuse */
.section-kicker,
.project-slide-meta,
.about-v13-kicker,
.about-v13-vision span,
.about-v13-meta span,
.hero-single-identity {
  font-family: var(--mono) !important;
}

@media (max-width: 700px) {
  .hero h1,
  .projects-slider-section .section-title-row h2,
  .project-slide h3,
  .about-v13 h2,
  .stack-section h2,
  .contact-section h2,
  .contact h2 {
    font-variation-settings: "opsz" 48;
    letter-spacing: -.025em !important;
  }
}
