*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07080f;
  --bg2:       #0d0f1c;
  --surface:   #111328;
  --border:    rgba(255,255,255,0.07);
  --white:     #ffffff;
  --muted:     rgba(255,255,255,0.45);
  --p1:        #7c6fff;
  --p2:        #ff5fa0;
  --p3:        #38e8c5;
  --radius:    16px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3 { font-family: 'Syne', sans-serif; }

::selection { background: rgba(124,111,255,.45); color: var(--white); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(124,111,255,.5), rgba(255,95,160,.5));
  border-radius: 99px; border: 2px solid var(--bg);
}

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .55s ease, visibility .55s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  display: block;
  font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 60%, var(--p3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: loaderLogo .8s cubic-bezier(.22,1,.36,1) both;
}
.loader-bar {
  display: block; width: 150px; height: 2px;
  background: rgba(255,255,255,.08); border-radius: 99px;
  margin: 1.1rem auto 0; position: relative; overflow: hidden;
}
.loader-bar::after {
  content: ''; position: absolute; inset: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--p1), var(--p2), var(--p3));
  transform: translateX(-101%);
  animation: loaderFill 1.1s .15s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes loaderLogo { from { opacity: 0; transform: translateY(18px) scale(.95); } }
@keyframes loaderFill { to { transform: translateX(0); } }

/* ── GRAIN ── */
#grain {
  position: fixed; inset: -100px; z-index: 9990;
  pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: grainShift 1.4s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-28px,16px); }
  50%  { transform: translate(18px,-22px); }
  75%  { transform: translate(-12px,-14px); }
  100% { transform: translate(0,0); }
}

/* ── SCROLL PROGRESS ── */
#sp {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--p1), var(--p2), var(--p3));
  z-index: 9999;
  transition: width .1s linear;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; height: 68px;
  background: rgba(7,8,15,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background .4s, height .4s;
}
nav.scrolled { background: rgba(7,8,15,0.97); height: 60px; }

.logo {
  font-family: 'Syne', sans-serif; font-size: 1.35rem; font-weight: 800;
  background: linear-gradient(135deg, var(--p1) 0%, var(--p2) 60%, var(--p3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 500;
  position: relative; padding-bottom: 3px; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.5px;
  background: var(--p1); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: .85rem; font-weight: 600; padding: .55rem 1.3rem;
  border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: var(--white);
  transition: opacity .2s, transform .2s;
  box-shadow: 0 0 20px rgba(124,111,255,.3);
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 8rem 5% 5rem;
  position: relative; overflow: hidden;
}

.hero-mesh {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,111,255,.22) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 90%, rgba(255,95,160,.15) 0%, transparent 55%),
              radial-gradient(ellipse 40% 40% at 10% 80%, rgba(56,232,197,.12) 0%, transparent 55%);
  animation: meshShift 12s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0%  { filter: hue-rotate(0deg); }
  100%{ filter: hue-rotate(20deg); }
}

.hero-spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity .5s;
  background: radial-gradient(560px circle at var(--sx, 50%) var(--sy, 40%), rgba(124,111,255,.13), transparent 65%);
}
#hero:hover .hero-spotlight { opacity: 1; }

.blob {
  position: absolute; border-radius: 50%; filter: blur(100px);
  pointer-events: none; animation: blobFloat ease-in-out infinite alternate;
}
.b1 { width: 520px; height: 520px; background: var(--p1); opacity: .08; top: -160px; left: -160px; animation-duration: 14s; }
.b2 { width: 400px; height: 400px; background: var(--p2); opacity: .07; bottom: -100px; right: -100px; animation-duration: 18s; }
.b3 { width: 280px; height: 280px; background: var(--p3); opacity: .08; top: 40%; left: 55%; animation-duration: 10s; }
@keyframes blobFloat {
  0%  { transform: translate(0,0) scale(1); }
  100%{ transform: translate(30px,20px) scale(1.08); }
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(124,111,255,.12); border: 1px solid rgba(124,111,255,.3);
  color: #b8b0ff; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: .45rem 1.1rem; border-radius: 999px;
  margin-bottom: 2rem; position: relative; z-index: 2;
  animation: fadeUp .8s ease both;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--p3); border-radius: 50%;
  animation: pulse 2.2s infinite;
}

#hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -.04em; max-width: 860px;
  position: relative; z-index: 2;
  animation: fadeUp .8s .12s ease both;
}
.grad-text {
  background: linear-gradient(120deg, var(--p1) 0%, var(--p2) 50%, var(--p3) 100%);
  background-size: 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradShift 6s linear infinite;
}
@keyframes gradShift { 0%{background-position:0%} 100%{background-position:200%} }

/* rotating word — crossfade + blur (le texte se répartit naturellement sur plusieurs lignes) */
#rot-word { transition: opacity .3s ease, filter .3s ease; }
#rot-word.word-fade { opacity: 0; filter: blur(8px); }

.hero-sub {
  margin-top: 1.4rem; font-size: 1.1rem; color: var(--muted); max-width: 560px;
  position: relative; z-index: 2;
  animation: fadeUp .8s .24s ease both;
}
.hero-cta {
  margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 2;
  animation: fadeUp .8s .36s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.2rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: var(--white); border: none; cursor: pointer;
  box-shadow: 0 0 30px rgba(124,111,255,.35);
  transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%); transition: transform .5s;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 45px rgba(124,111,255,.5); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.2rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  background: rgba(255,255,255,.05); color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
  transition: background .25s, transform .25s;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

.magnetic { will-change: transform; }

/* ── MARQUEE ── */
.marquee-wrap {
  background: linear-gradient(90deg, var(--p1) 0%, var(--p2) 50%, var(--p3) 100%);
  padding: .75rem 0; overflow: hidden; position: relative;
}
.marquee-wrap::before,.marquee-wrap::after {
  content:''; position:absolute; top:0; width:80px; height:100%; z-index:2;
}
.marquee-wrap::before { left:0; background: linear-gradient(to right, var(--p1), transparent); }
.marquee-wrap::after  { right:0; background: linear-gradient(to left, var(--p3), transparent); }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  color: rgba(255,255,255,.9); letter-spacing: .04em;
}
.marquee-track span::after {
  content: ''; width: 5px; height: 5px;
  background: rgba(255,255,255,.65);
  transform: rotate(45deg);
  margin: 0 1.6rem; flex-shrink: 0;
}
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── SECTIONS ── */
section { padding: 7rem 5%; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--p1), var(--p3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .7rem;
}
h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem;
}
.section-intro { color: var(--muted); font-size: 1rem; max-width: 540px; margin-bottom: 3.5rem; line-height: 1.75; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* ── SERVICES ── */
#services { background: var(--bg2); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: default;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
  z-index: 2;
}
.service-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(124,111,255,.1), transparent 45%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.4); border-color: rgba(124,111,255,.3); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.sc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; letter-spacing: -.01em; }
.service-card p { color: var(--muted); font-size: .92rem; line-height: 1.7; margin-bottom: 1.2rem; }
.sc-price {
  display: inline-block; font-weight: 700; font-size: .88rem;
  background: linear-gradient(90deg, var(--p1), var(--p3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sc-glow {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  filter: blur(80px); opacity: 0; pointer-events: none;
  transition: opacity .4s;
  top: -80px; right: -60px;
}
.service-card:hover .sc-glow { opacity: .08; }

/* ── PROJETS ── */
#projets { background: var(--bg); }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.5rem;
}
.project-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 64px rgba(0,0,0,.45); }

.card-click-hint {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  display: flex; align-items: center; gap: .4rem;
  padding: .38rem .85rem .38rem .7rem;
  background: rgba(7,8,15,.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: .72rem; font-weight: 700; color: #fff;
  letter-spacing: .04em; text-transform: uppercase;
  animation: hintFloat 3s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hintFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}
.project-card:nth-child(2) .card-click-hint { animation-delay: -1s; }
.project-card:nth-child(3) .card-click-hint { animation-delay: -2s; }

.project-thumb {
  height: 190px;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative; overflow: hidden;
}

/* mini browser preview */
.mini-browser {
  width: 76%; max-width: 300px;
  background: rgba(9,11,22,.92);
  border: 1px solid rgba(255,255,255,.14); border-bottom: none;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 18px 50px rgba(0,0,0,.5);
  overflow: hidden; position: relative; z-index: 1;
  transform: translateY(16px);
  transition: transform .45s cubic-bezier(.34,1.3,.64,1);
}
.project-card:hover .mini-browser,
.project-card:focus-visible .mini-browser { transform: translateY(6px) scale(1.03); }
.mb-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 9px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mb-bar i { width: 7px; height: 7px; border-radius: 50%; }
.mb-bar i:nth-child(1) { background: #ff5f57; }
.mb-bar i:nth-child(2) { background: #febc2e; }
.mb-bar i:nth-child(3) { background: #28c840; }
.mb-url {
  margin-left: 6px; flex: 1;
  background: rgba(255,255,255,.06); border-radius: 99px;
  font-size: .58rem; color: rgba(255,255,255,.45);
  padding: 1px 9px; letter-spacing: .02em;
}
.mb-body {
  padding: 12px 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.mb-body::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
  transform: translateX(-100%);
}
.project-card:hover .mb-body::after { animation: mbShimmer 1.2s ease .15s; }
@keyframes mbShimmer { to { transform: translateX(100%); } }
.mb-chip { width: 34%; height: 6px; border-radius: 99px; background: var(--mba, var(--p1)); opacity: .55; }
.mb-title { width: 78%; height: 10px; border-radius: 4px; background: rgba(255,255,255,.25); }
.mb-line { width: 55%; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); }
.mb-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 4px; }
.mb-row i {
  height: 26px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.mb-row i::after {
  content: ''; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 3px;
  border-radius: 99px; background: var(--mba, var(--p1)); opacity: .5;
}

.project-info { padding: 1.6rem; }
.project-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--p1); margin-bottom: .5rem; display: block;
}
.project-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; letter-spacing: -.01em; }
.project-info p { color: var(--muted); font-size: .88rem; line-height: 1.7; }

/* ── PROCESS ── */
#process { background: var(--bg2); }
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
  counter-reset: steps;
}
.process-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 1.8rem;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
  counter-increment: steps;
}
.process-step:hover { border-color: rgba(124,111,255,.35); transform: translateY(-4px); }
.process-step::before {
  content: counter(steps, decimal-leading-zero);
  font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800;
  position: absolute; top: -.4rem; right: 1rem;
  color: rgba(124,111,255,.07); line-height: 1;
}
.ps-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.process-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.process-step p { color: var(--muted); font-size: .88rem; line-height: 1.7; }

/* ── CONTACT ── */
#contact { background: var(--bg); }
.contact-wrapper {
  max-width: 720px; margin: 0 auto; text-align: center;
}

.contact-email-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 2.4rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .98rem;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: var(--white);
  box-shadow: 0 0 40px rgba(124,111,255,.35);
  transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.contact-email-btn::after {
  content:''; position: absolute; inset:0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%); transition: transform .5s;
}
.contact-email-btn:hover::after { transform: translateX(100%); }
.contact-email-btn:hover { transform: translateY(-2px); box-shadow: 0 0 60px rgba(124,111,255,.5); }

.contact-meta {
  margin-top: 1.8rem; color: var(--muted); font-size: .85rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.contact-meta span { display: flex; align-items: center; gap: .4rem; }

/* ── BURGER MENU ── */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem; z-index: 201;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RÉASSURANCE ── */
.reassurance-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1rem 5%;
}
.reassurance-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.75);
  padding: .5rem 1.5rem;
}
.reassurance-item svg { color: var(--p3); flex-shrink: 0; }
.reassurance-sep { width: 1px; height: 20px; background: var(--border); }

/* ── CONTACT 2 COLONNES ── */
.contact-wrapper-2col {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: start;
}
.contact-info { text-align: left; }
.contact-info h2 { font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: .8rem; }
.contact-info > p { color: var(--muted); font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.75; }

/* Form */
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cf-field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.cf-field label { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.6); letter-spacing: .06em; text-transform: uppercase; }
.cf-field input,
.cf-field select,
.cf-field textarea {
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 10px; padding: .75rem 1rem;
  color: var(--white); font-family: 'Inter', sans-serif; font-size: .92rem;
  outline: none; transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(255,255,255,.25); }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  border-color: rgba(124,111,255,.6);
  box-shadow: 0 0 0 3px rgba(124,111,255,.12);
}
.cf-field select { cursor: pointer; }
.cf-field select option { background: var(--bg2); }
.cf-field textarea { resize: vertical; min-height: 110px; }
.cf-submit { width: 100%; justify-content: center; margin-top: .5rem; }

/* ── FOOTER ── */
footer {
  background: var(--bg2); padding: 4.5rem 5% 2rem;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-brand p {
  color: var(--muted); font-size: .88rem; line-height: 1.7;
  max-width: 320px; margin: .8rem 0 1.3rem;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-muted { color: var(--muted); font-size: .9rem; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 1.6rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
  color: var(--muted); font-size: .8rem;
}

/* ── FOOTER SOCIAL ── */
.footer-social { display: flex; gap: .8rem; align-items: center; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background .2s, color .2s, transform .2s;
}
.footer-social a:hover { background: rgba(124,111,255,.2); color: var(--white); transform: translateY(-2px); }

/* ── FLOATING CTA ── */
#float-cta {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 300;
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1.5rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: var(--white); text-decoration: none; font-weight: 600; font-size: .88rem;
  box-shadow: 0 4px 30px rgba(124,111,255,.4);
  transform: translateY(100px); opacity: 0;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .45s;
}
#float-cta.show { transform: translateY(0); opacity: 1; }
#float-cta:hover { box-shadow: 0 8px 40px rgba(124,111,255,.55); transform: translateY(-2px); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.85)} }

/* ── NAV ACTIVE (scrollspy) ── */
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { transform: scaleX(1); }

/* ── FOCUS VISIBLE (clavier) ── */
:focus-visible { outline: none; }
a:focus-visible,
button:focus-visible,
.project-card:focus-visible,
.cf-field input:focus-visible,
.cf-field select:focus-visible,
.cf-field textarea:focus-visible {
  outline: 2px solid var(--p1);
  outline-offset: 3px;
  border-radius: 6px;
}
.project-card:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.project-card:focus-visible .project-view-btn { transform: translateY(0); }

/* ══════════════════════════════
   MODALS — MINI-SITES
══════════════════════════════ */

/* Floating hero elements (orbs + rings) */
.ms-hero-floats { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.ms-orb {
  position:absolute; border-radius:50%;
  filter: blur(70px); opacity:.3;
  animation: orbFloat 9s ease-in-out infinite alternate;
  will-change: transform;
}
.ms-ring {
  position:absolute; border-radius:50%;
  border:1px solid rgba(255,255,255,.14);
  animation: ringFloat 11s ease-in-out infinite alternate;
  will-change: transform;
}
.ms-ring::after {
  content:''; position:absolute; top:-3px; left:50%;
  width:6px; height:6px; border-radius:50%;
  background:rgba(255,255,255,.5);
}
@keyframes orbFloat {
  0%  { transform: translateY(0) scale(1); opacity:.22; }
  100%{ transform: translateY(-26px) scale(1.12); opacity:.34; }
}
@keyframes ringFloat {
  0%  { transform: translateY(0) rotate(0deg); }
  100%{ transform: translateY(-18px) rotate(160deg); }
}

/* Hero variants */
.ms-hero-bella  { background:linear-gradient(135deg,#1a0500 0%,#3d1200 50%,#5c2a00 100%); }
.ms-hero-elise  { background:linear-gradient(135deg,#0d0014 0%,#2a0040 50%,#3d0060 100%); }
.ms-hero-thomas { background:linear-gradient(135deg,#001505 0%,#002d0f 50%,#004a18 100%); }

/* Badge variants */
.bella-badge  { background:rgba(255,140,66,.12); border-color:rgba(255,140,66,.35); color:rgba(255,210,150,.85); }
.elise-badge  { background:rgba(199,125,255,.12); border-color:rgba(199,125,255,.35); color:rgba(225,185,255,.85); }
.thomas-badge { background:rgba(56,232,197,.12); border-color:rgba(56,232,197,.35); color:rgba(150,240,220,.85); }

/* Gradient title texts */
.ms-grad-bella  { background:linear-gradient(135deg,#ff8c42,#ffd700,#ff6030); background-size:200%; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; animation:gradShift 6s linear infinite; }
.ms-grad-elise  { background:linear-gradient(135deg,#c77dff,#ff5fa0,#e040fb); background-size:200%; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; animation:gradShift 6s linear infinite; }
.ms-grad-thomas { background:linear-gradient(135deg,#38e8c5,#00c060,#7c6fff); background-size:200%; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; animation:gradShift 6s linear infinite; }

/* Stats strip */
.ms-strip {
  display:flex; align-items:center; justify-content:space-around; flex-wrap:wrap; gap:1rem;
  padding:1.8rem 3rem;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.ms-strip-item { text-align:center; }
.ms-strip-num, .ms-strip-txt {
  font-family:'Syne',sans-serif; font-size:2rem; font-weight:800; display:inline-block;
}
.ms-strip-item sup { font-family:'Syne',sans-serif; font-size:1rem; font-weight:700; vertical-align:super; }
.ms-strip-item small { display:block; font-size:.75rem; color:var(--muted); margin-top:.2rem; }
.ms-strip-sep { width:1px; height:38px; background:var(--border); flex-shrink:0; }
.bella-strip  .ms-strip-num,.bella-strip  .ms-strip-txt,.bella-strip  sup { background:linear-gradient(90deg,#ff8c42,#ffd700); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.thomas-strip .ms-strip-num,.thomas-strip .ms-strip-txt,.thomas-strip sup { background:linear-gradient(90deg,var(--p3),#00c060); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.strip-star { display:inline-block; color:#ffc861; vertical-align:super; margin-left:.2rem; }
.strip-star svg { display:inline-block; }

/* Desserts row */
.ms-desserts-row {
  display:grid; grid-template-columns:repeat(4,1fr); gap:.8rem; margin-top:1.2rem;
}
.ms-dessert-item {
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  padding:1.1rem .8rem; text-align:center;
  transition:transform .25s, border-color .25s;
}
.ms-dessert-item::before {
  content:''; display:block; width:22px; height:3px; border-radius:99px;
  background:linear-gradient(90deg,#ff8c42,#ffd166);
  margin:0 auto .7rem;
}
.ms-dessert-item:hover { transform:translateY(-4px); border-color:rgba(255,140,66,.3); }
.ms-dessert-item p { font-size:.82rem; color:rgba(255,255,255,.85); font-weight:600; margin-bottom:.25rem; }
.ms-dessert-item b { font-size:.82rem; color:var(--muted); font-weight:600; }

/* Split feature section */
.ms-split-section {
  display:grid; grid-template-columns:1fr 1fr; gap:2.5rem; align-items:center;
  padding:2.5rem 3rem;
}
.ms-split-art {
  border-radius:20px; aspect-ratio:4/3;
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.ms-art-icon {
  width:84px; height:84px; color:rgba(255,255,255,.8);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.4));
  animation: artFloat 5s ease-in-out infinite alternate;
}
@keyframes artFloat {
  0%  { transform: translateY(0) rotate(-3deg); }
  100%{ transform: translateY(-10px) rotate(3deg); }
}
.ms-art-ring {
  position:absolute; width:200%; height:200%;
  border-radius:50%; border:1px solid rgba(255,255,255,.06);
  animation:spin 20s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.ms-split-text h2 { font-family:'Syne',sans-serif; font-size:clamp(1.3rem,3vw,1.9rem); font-weight:800; margin:0.5rem 0 1rem; }
.ms-split-text p { font-size:.88rem; color:rgba(255,255,255,.65); line-height:1.75; margin-bottom:1.4rem; }
.ms-check-list { display:flex; flex-direction:column; gap:.55rem; }
.ms-check {
  display:flex; align-items:center; gap:.6rem;
  font-size:.84rem; color:rgba(255,255,255,.7);
}
.ms-check::before {
  content:''; width:15px; height:15px; flex-shrink:0;
  background-color:#ffb061;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Photos grid 2×3 */
.ms-photos-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.ms-photo {
  border-radius:14px; overflow:hidden; position:relative;
  aspect-ratio:4/3; cursor:default;
  transition:transform .35s ease;
}
.ms-photo:hover { transform:scale(1.03); }
.ms-photo::before {
  content:''; position:absolute; inset:0; z-index:1;
  background:radial-gradient(ellipse 70% 60% at 35% 35%, rgba(255,255,255,.07) 0%, transparent 65%);
  pointer-events:none;
}
.ms-photo-inner {
  position:absolute; inset:0; z-index:2;
  display:flex; align-items:center; justify-content:center;
  transition:transform .4s ease;
}
.ms-photo:hover .ms-photo-inner { transform:scale(1.08); }
.ms-photo-inner svg {
  width:46px; height:46px; color:rgba(255,255,255,.75);
  filter:drop-shadow(0 6px 20px rgba(0,0,0,.5));
  animation:photoFloat 4s ease-in-out infinite alternate;
}
.ms-photo:nth-child(2) .ms-photo-inner svg { animation-delay:-1.3s; }
.ms-photo:nth-child(3) .ms-photo-inner svg { animation-delay:-2.6s; }
.ms-photo:nth-child(4) .ms-photo-inner svg { animation-delay:-0.7s; }
.ms-photo:nth-child(5) .ms-photo-inner svg { animation-delay:-2s; }
.ms-photo:nth-child(6) .ms-photo-inner svg { animation-delay:-3.3s; }
@keyframes photoFloat { 0%{transform:translateY(0) scale(1)} 100%{transform:translateY(-8px) scale(1.06)} }
.ms-photo-cap {
  position:absolute; bottom:0; left:0; right:0; z-index:3;
  background:linear-gradient(0deg,rgba(0,0,0,.85) 0%,transparent 100%);
  padding:.65rem 1rem; font-size:.76rem; font-weight:600;
  color:rgba(255,255,255,.9);
  transform:translateY(100%); transition:transform .3s ease;
}
.ms-photo:hover .ms-photo-cap { transform:translateY(0); }

/* Reviews */
.ms-reviews-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:1.1rem; }
.ms-review {
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:1.3rem; transition:border-color .3s, transform .3s;
}
.ms-review:hover { border-color:rgba(124,111,255,.3); transform:translateY(-3px); }
.ms-review-stars {
  width:90px; height:16px; margin-bottom:.8rem;
  background:linear-gradient(90deg,#ffc861,#ffaa3c);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") repeat-x left center / 18px 16px;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") repeat-x left center / 18px 16px;
}
.ms-review p { font-size:.82rem; color:rgba(255,255,255,.68); line-height:1.65; margin-bottom:.9rem; font-style:italic; }
.ms-review-author { display:flex; align-items:center; gap:.7rem; }
.ms-avatar { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:800; color:#fff; flex-shrink:0; }
.ms-review-author strong { display:block; font-size:.82rem; }
.ms-review-author span { font-size:.73rem; color:var(--muted); }

/* Pillars (Salon Élise) */
.ms-pillars { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:1.1rem; }
.ms-pillar {
  background:var(--surface); border:1px solid var(--border);
  border-radius:16px; padding:1.5rem;
  position:relative; overflow:hidden;
  transition:transform .3s;
}
.ms-pillar::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 80% 80% at 50% -20%, var(--pc,transparent) 0%, transparent 60%); pointer-events:none; }
.ms-pillar:hover { transform:translateY(-4px); }
.ms-pillar-icon { margin-bottom:.9rem; }
.ms-pillar h3 { font-size:.95rem; font-weight:700; margin-bottom:.5rem; }
.ms-pillar p { font-size:.82rem; color:var(--muted); line-height:1.6; }

/* Team (Salon Élise) */
.ms-team-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:1.1rem; }
.ms-team-card {
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:1.5rem; text-align:center; transition:transform .3s, border-color .3s;
}
.ms-team-card:hover { transform:translateY(-4px); border-color:rgba(199,125,255,.3); }
.ms-team-avatar { width:54px; height:54px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.4rem; font-weight:800; color:#fff; margin:0 auto 1rem; box-shadow:0 4px 20px rgba(0,0,0,.35); }
.ms-team-card h3 { font-size:.95rem; font-weight:700; margin-bottom:.2rem; }
.ms-team-role { font-size:.73rem; color:var(--muted); display:block; margin-bottom:.65rem; }
.ms-team-card p { font-size:.8rem; color:rgba(255,255,255,.62); line-height:1.6; }

/* Method steps (FitByThomas) */
.ms-method-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:1.1rem; }
.ms-method-step {
  background:var(--surface); border:1px solid var(--border); border-radius:16px;
  padding:1.4rem; transition:transform .3s, border-color .3s;
}
.ms-method-step:hover { transform:translateY(-4px); border-color:rgba(56,232,197,.3); }
.ms-method-num { width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-family:'Syne',sans-serif; font-size:.9rem; font-weight:800; color:#fff; margin-bottom:.9rem; }
.ms-method-step h3 { font-size:.92rem; font-weight:700; margin-bottom:.45rem; }
.ms-method-step p { font-size:.8rem; color:var(--muted); line-height:1.6; }

/* Footer strip */
.ms-footer-strip { display:flex; flex-wrap:wrap; border-top:1px solid var(--border); }
.ms-fstrip-item { display:flex; align-items:center; gap:.85rem; flex:1; min-width:180px; padding:1.4rem 2rem; border-right:1px solid var(--border); }
.ms-fstrip-item:last-child { border-right:none; }
.fstrip-ic {
  width:42px; height:42px; border-radius:12px; flex-shrink:0;
  background:rgba(255,255,255,.06); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
}
.ms-fstrip-item b { display:block; font-size:.83rem; color:var(--white); margin-bottom:.12rem; }
.ms-fstrip-item p { font-size:.76rem; color:var(--muted); line-height:1.4; margin:0; }
.bella-fstrip  { background:linear-gradient(135deg,rgba(93,28,0,.25),rgba(30,10,0,.25)); }
.elise-fstrip  { background:linear-gradient(135deg,rgba(61,0,96,.25),rgba(13,0,20,.25)); }
.thomas-fstrip { background:linear-gradient(135deg,rgba(0,74,24,.25),rgba(0,21,5,.25)); }

/* ── MODALS ── */
.project-card { cursor: pointer; }
.project-view-btn {
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: var(--white); text-align: center;
  padding: .85rem; font-weight: 600; font-size: .88rem;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.34,1.3,.64,1);
}
.project-card:hover .project-view-btn { transform: translateY(0); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(7,8,15,.85);
  backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  width: 100%; max-width: 880px; max-height: 88vh;
  overflow-y: auto; overflow-x: hidden;
  border-radius: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  position: relative;
  transform: scale(.93) translateY(28px);
  transition: transform .4s cubic-bezier(.34,1.2,.64,1);
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 99px; }

.modal-top-bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: flex-end;
  padding: 1rem 1rem 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg2) 40%, transparent 100%);
}
.modal-close {
  pointer-events: all;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  color: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: rgba(255,255,255,.15); transform: scale(1.1) rotate(90deg); }

body.modal-open { overflow: hidden; }

/* ── MINI-SITE COMMON ── */
.ms-hero {
  min-height: 360px; position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 3rem 3rem 3rem;
  margin-top: -3.5rem;
}
.ms-hero-content { position: relative; z-index: 2; }
.ms-badge {
  display: inline-block;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: .35rem 1rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.7); margin-bottom: 1.2rem;
  animation: fadeUp .5s ease both;
}
.ms-hero h1 {
  font-family: 'Syne', sans-serif; font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: var(--white); margin-bottom: .8rem;
  animation: fadeUp .5s .1s ease both;
}
.ms-hero > .ms-hero-content > p {
  color: rgba(255,255,255,.6); font-size: .98rem; max-width: 400px;
  line-height: 1.7; margin-bottom: 1.5rem;
  animation: fadeUp .5s .2s ease both;
}
.ms-hero-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  animation: fadeUp .5s .3s ease both;
}
.ms-hero-tags span {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: .28rem .85rem;
  font-size: .76rem; font-weight: 500; color: rgba(255,255,255,.75);
}

.ms-section { padding: 2.5rem 3rem; }
.ms-gallery-section { padding: 0 3rem 2.5rem; }
.ms-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--p1), var(--p3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .5rem; display: block;
}
.ms-section h2, .ms-gallery-section h2 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800; letter-spacing: -.03em; margin-bottom: 2rem; color: var(--white);
}

/* Anim inside modal */
.ms-anim { opacity: 0; transform: translateY(18px); }
.modal-overlay.open .ms-anim { animation: msAnim .5s ease forwards; }
.modal-overlay.open .ms-anim-d1 { animation-delay: .1s; }
.modal-overlay.open .ms-anim-d2 { animation-delay: .2s; }
.modal-overlay.open .ms-anim-d3 { animation-delay: .3s; }
@keyframes msAnim { to { opacity:1; transform:translateY(0); } }

/* ── MENU ── */
.ms-menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1.2rem;
}
.ms-menu-cat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.4rem;
}
.ms-menu-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .9rem;
}
.ms-menu-cat h3 {
  font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700;
  margin-bottom: .9rem; color: var(--white);
}
.ms-dish {
  display: flex; justify-content: space-between; align-items: center;
  padding: .45rem 0; border-bottom: 1px solid var(--border);
  font-size: .83rem; color: rgba(255,255,255,.65); gap: .5rem;
}
.ms-dish:last-child { border-bottom: none; }
.ms-dish span:last-child { font-weight: 700; color: var(--white); white-space: nowrap; }

/* ── SERVICES (Salon) ── */
.ms-services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(175px,1fr)); gap: 1.1rem;
}
.ms-svc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.4rem;
  transition: border-color .3s, transform .3s;
}
.ms-svc-card:hover { border-color: rgba(124,111,255,.35); transform: translateY(-4px); }
.ms-svc-icon { margin-bottom: .8rem; }
.ms-svc-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .45rem; }
.ms-svc-card p { font-size: .82rem; color: var(--muted); margin-bottom: .75rem; line-height: 1.6; }
.ms-svc-price {
  font-size: .8rem; font-weight: 700;
  background: linear-gradient(90deg, var(--p1), var(--p3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── PROGRAMS (Coach) ── */
.ms-programs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(195px,1fr)); gap: 1.1rem;
}
.ms-prog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; position: relative;
  transition: transform .3s, border-color .3s;
}
.ms-prog-card:hover { transform: translateY(-5px); border-color: rgba(56,232,197,.3); }
.ms-prog-featured { border-color: rgba(56,232,197,.35); }
.ms-prog-badge-top {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  background: linear-gradient(135deg, var(--p3), var(--p1));
  color: var(--bg); font-size: .68rem; font-weight: 800;
  padding: .22rem .65rem; border-radius: 999px;
}
.ms-prog-header {
  padding: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.prog-ic {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9);
}
.ms-prog-header h3 { font-size: .95rem; font-weight: 700; color: var(--white); }
.ms-prog-body { padding: 1.2rem 1.4rem 1.5rem; }
.ms-prog-ideal { font-size: .76rem; color: var(--muted); margin-bottom: .9rem; }
.ms-prog-list { list-style: none; margin-bottom: 1.1rem; }
.ms-prog-list li {
  font-size: .82rem; color: rgba(255,255,255,.7);
  padding: .25rem 0 .25rem 1.4rem; position: relative;
}
.ms-prog-list li::before {
  content: ''; position: absolute; left: 0; top: .48em;
  width: .85em; height: .85em;
  background-color: #38e8c5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ms-prog-price {
  display: block; font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 800;
  background: linear-gradient(90deg, var(--p3), var(--p1));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── CTA DÉMO (dans les maquettes) ── */
.ms-cta {
  text-align: center;
  padding: 3rem 2rem 3.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(124,111,255,.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  border-top: 1px solid var(--border);
}
.ms-cta-tag {
  display: inline-block;
  background: rgba(124,111,255,.12); border: 1px solid rgba(124,111,255,.3);
  color: #b8b0ff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.ms-cta h3 {
  font-family: 'Syne', sans-serif; font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: .7rem; color: var(--white);
}
.ms-cta p {
  color: var(--muted); font-size: .9rem; line-height: 1.7;
  max-width: 440px; margin: 0 auto 1.6rem;
}
.ms-cta-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 2.1rem; border-radius: 999px; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .95rem;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: var(--white); border: none;
  box-shadow: 0 0 30px rgba(124,111,255,.35);
  transition: transform .25s, box-shadow .25s;
}
.ms-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 45px rgba(124,111,255,.5); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  #grain { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {

  /* ── NAV ── */
  .burger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0; z-index: 198;
    flex-direction: column; gap: 0;
    background: rgba(7,8,15,.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0 1rem;
    transform: translateY(-110%); opacity: 0;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .3s;
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links li a { display: block; padding: .9rem 2rem; font-size: .95rem; color: var(--white); }
  .nav-links li a::after { display: none; }

  /* ── HERO ── */
  section { padding: 5rem 5%; }
  #hero { padding: 6rem 5% 4rem; min-height: auto; text-align: center; }
  #hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-badge { font-size: .7rem; padding: .38rem .9rem; }
  .hero-sub { font-size: .95rem; }
  .hero-cta { flex-direction: column; align-items: center; gap: .8rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: .9rem 1.5rem; }
  .blob { display: none; }
  .hero-spotlight { display: none; }

  /* ── FLOATING CTA ── */
  #float-cta { font-size: .78rem; padding: .6rem 1.1rem; bottom: 1.2rem; right: 1.2rem; }

  /* ── RÉASSURANCE ── */
  .reassurance-strip { flex-direction: column; gap: 0; }
  .reassurance-sep { display: none; }
  .reassurance-item { padding: .65rem 5%; border-bottom: 1px solid var(--border); width: 100%; }
  .reassurance-item:last-child { border-bottom: none; }

  /* ── SERVICES ── */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.6rem 1.4rem; }

  /* ── PROJETS ── */
  .projects-grid { grid-template-columns: 1fr; }

  /* ── PROCESS ── */
  .process-grid { grid-template-columns: 1fr; }

  /* ── CONTACT ── */
  .contact-wrapper-2col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info { text-align: center; }
  .contact-info .contact-meta { justify-content: center; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }

  /* ── FOOTER ── */
  footer { padding: 3.5rem 5% 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* ── MODAL ── */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 24px 24px 0 0; max-height: 92vh; }

  /* ── MINI-SITES ── */
  .ms-hero { padding: 3rem 1.4rem 2.5rem; min-height: 280px; }
  .ms-hero h1 { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .ms-hero-floats { display: none; }
  .ms-hero-tags { gap: .4rem; }
  .ms-hero-tags span { font-size: .7rem; padding: .22rem .7rem; }
  .ms-section { padding: 1.8rem 1.4rem; }
  .ms-gallery-section { padding: 0 1.4rem 1.8rem; }
  .ms-photos-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .ms-photo-cap { transform: translateY(0); font-size: .7rem; padding: .4rem .6rem; }
  .ms-menu-grid { grid-template-columns: 1fr; }
  .ms-desserts-row { grid-template-columns: 1fr 1fr; }
  .ms-strip { padding: 1.2rem 1.4rem; flex-wrap: wrap; gap: 1rem; }
  .ms-strip-sep { display: none; }
  .ms-strip-item { flex: 1; min-width: 40%; }
  .ms-split-section { grid-template-columns: 1fr; padding: 1.8rem 1.4rem; }
  .ms-split-visual { display: none; }
  .ms-reviews-grid { grid-template-columns: 1fr; }
  .ms-services-grid { grid-template-columns: 1fr 1fr; }
  .ms-pillars { grid-template-columns: 1fr; }
  .ms-team-grid { grid-template-columns: 1fr 1fr; }
  .ms-programs-grid { grid-template-columns: 1fr; }
  .ms-method-grid { grid-template-columns: 1fr 1fr; }
  .ms-footer-strip { flex-direction: column; }
  .ms-fstrip-item { border-right: none; border-bottom: 1px solid var(--border); padding: 1rem 1.4rem; }
  .ms-fstrip-item:last-child { border-bottom: none; }
  .ms-section h2, .ms-gallery-section h2 { font-size: 1.4rem; margin-bottom: 1.4rem; }
  .ms-cta { padding: 2.4rem 1.4rem 2.8rem; }
  .ms-cta-btn { width: 100%; justify-content: center; }
}
