/* =========================================================
   Yanissska — portfolio
   Noir profond, bleu électrique, typo Manrope light/extrabold.
   ========================================================= */
:root {
  --black: #000;
  --ground: #0a0a0d;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f5f9;
  --dim: #9a9eb0;
  --faint: #5d6070;
  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, 0.18);

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  --maxw: 1600px;
  --pad: clamp(20px, 5vw, 80px);
  --sec: clamp(96px, 12vw, 170px);

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
h1, h2, h3 { font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 70px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* Tag : petit point bleu + libellé */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--dim);
  margin-bottom: 20px;
}
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.dot { color: var(--accent); }

/* Grain */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* Progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 95; background: var(--accent); pointer-events: none; box-shadow: 0 0 10px var(--accent); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 100px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Glows */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(91, 140, 255, 0.16), transparent 66%);
}
.glow--hero { width: min(60vw, 760px); height: min(60vw, 760px); left: -14%; bottom: -22%; }
.glow--gal { width: min(50vw, 640px); height: min(50vw, 640px); right: -14%; top: -8%; opacity: 0.6; }
.glow--contact { width: min(50vw, 640px); height: min(50vw, 640px); left: -10%; bottom: -20%; opacity: 0.6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em;
  padding: 16px 28px; border-radius: 100px; line-height: 1;
  transition: transform 0.45s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.btn--ghost { color: var(--text); border: 1px solid var(--border-strong); }
.btn--ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 34px -12px rgba(91, 140, 255, 0.8);
}
.btn--primary:hover { background: #6f9bff; transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(91, 140, 255, 0.95); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }
.btn--sm { padding: 12px 20px; font-size: 0.9rem; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding: 22px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.5s, padding 0.45s, border-color 0.5s, transform 0.5s var(--ease);
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-bottom-color: var(--border);
  padding: 14px 0;
}
.nav.hidden { transform: translateY(-100%); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; }
.brand__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 4px; box-shadow: 0 0 12px var(--accent); }
.nav__links { display: flex; gap: clamp(6px, 1vw, 12px); margin-left: auto; }
.nav__links a {
  font-weight: 500; font-size: 0.98rem; color: var(--dim);
  padding: 8px 14px; border-radius: 100px; transition: color 0.3s, background 0.3s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav__mobile { display: none; flex-direction: column; padding: 10px var(--pad) 24px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(18px); }
.nav__mobile a { padding: 16px 0; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; border-bottom: 1px solid var(--border); }
.nav.open { background: rgba(0, 0, 0, 0.92); }
.nav.open .nav__mobile { display: flex; }
@media (max-width: 820px) {
  .nav__links, .nav .btn--sm { display: none; }
  .burger { display: block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__in { position: relative; z-index: 5; width: 100%; padding-top: 120px; padding-bottom: 100px; }
.hero__tag { opacity: 0; animation: up 1s var(--ease) 0.1s forwards; margin-bottom: 28px; }
.hero__title {
  font-size: clamp(2.9rem, 8.6vw, 8.4rem);
  line-height: 0.92;
  max-width: 12ch;
  display: grid;
}
.hero__title > span { opacity: 0; animation: up 1.1s var(--ease) forwards; }
.hero__l1 { font-weight: 300; color: #d7d9e3; letter-spacing: -0.04em; animation-delay: 0.2s !important; }
.hero__l2 {
  animation-delay: 0.32s !important;
  color: transparent; -webkit-text-fill-color: transparent;
  background-clip: text; -webkit-background-clip: text;
  background-image: linear-gradient(180deg, #fff 0%, #dfe6ff 55%, #b5c6ff 100%);
}
.hero__l2 .dot { -webkit-text-fill-color: var(--accent); }
.hero__sub { max-width: 46ch; margin-top: 34px; color: var(--dim); font-size: clamp(1.05rem, 1.35vw, 1.35rem); opacity: 0; animation: up 1s var(--ease) 0.5s forwards; }
.hero__actions { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: up 1s var(--ease) 0.65s forwards; }
@keyframes up { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.cglow {
  position: absolute; z-index: 1; width: 420px; height: 420px; border-radius: 50%; pointer-events: none;
  left: 60%; top: 40%; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.6s; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.16), rgba(91, 140, 255, 0.05) 44%, transparent 70%);
}

/* Anneau — signature visuelle du hero */
.orb {
  position: absolute; z-index: 2; pointer-events: none;
  right: clamp(-6%, 1vw, 24px); top: 50%;
  width: min(42vw, 600px); aspect-ratio: 1;
  transform: translateY(-50%);
  perspective: 1400px;
  opacity: 0; animation: orbIn 1.6s var(--ease) 0.3s forwards;
}
@keyframes orbIn { from { opacity: 0; transform: translateY(-46%) scale(0.92); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.orb__glow { position: absolute; inset: -14%; border-radius: 50%; filter: blur(50px); background: radial-gradient(circle, rgba(91, 140, 255, 0.22), transparent 62%); }
.orb__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, #f6f7fb 0%, #7d8598 9%, #ffffff 18%, #262a36 30%, #cfd6e8 43%, #4f5668 55%, #ffffff 66%, #8f98b0 78%, #f6f7fb 100%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 61.6%, #000 100%);
  mask: radial-gradient(circle, transparent 61%, #000 61.6%, #000 100%);
  transform: rotateX(58deg) rotateZ(-18deg);
  animation: orbSpin 22s linear infinite;
  will-change: transform;
}
.orb__ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, rgba(91, 140, 255, 0.5), rgba(255, 255, 255, 0.1), rgba(91, 140, 255, 0.35), rgba(255, 255, 255, 0.05), rgba(91, 140, 255, 0.5));
  mix-blend-mode: color-dodge; opacity: 0.5;
}
.orb__ring--inner {
  inset: 22%;
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 52.8%, #000 100%);
  mask: radial-gradient(circle, transparent 52%, #000 52.8%, #000 100%);
  transform: rotateX(58deg) rotateZ(40deg);
  animation: orbSpinRev 30s linear infinite;
}
.orb__core {
  position: absolute; inset: 41%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c4d0f0 30%, #2a3350 70%, #05070d 100%);
  box-shadow: 0 0 50px rgba(91, 140, 255, 0.45), 0 24px 40px -10px rgba(0, 0, 0, 0.8);
  animation: bob 6s ease-in-out infinite;
}
@keyframes orbSpin { to { transform: rotateX(58deg) rotateZ(342deg); } }
@keyframes orbSpinRev { to { transform: rotateX(58deg) rotateZ(-320deg); } }
@keyframes bob { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@media (max-width: 820px) {
  .orb { right: -22%; width: 92vw; animation-name: orbInM; }
  @keyframes orbInM { from { opacity: 0; } to { opacity: 0.3; } }
}

/* =========================================================
   Sections
   ========================================================= */
.sec { position: relative; padding: var(--sec) 0; overflow: hidden; }
.sec--line { border-top: 1px solid var(--border); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.sec__title { font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.sec__title--xl { font-size: clamp(3rem, 8vw, 7.2rem); }
.sec__title--lg { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.sec__lead { color: var(--dim); max-width: 46ch; font-size: 1.1rem; }

/* =========================================================
   Galerie
   ========================================================= */
.grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: clamp(20px, 2.4vw, 36px) clamp(16px, 1.8vw, 28px); }
.card { display: block; width: 100%; }
.card__img { display: block;
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--ground); border: 1px solid var(--border);
  transition: transform 0.6s var(--ease), border-color 0.5s, box-shadow 0.6s var(--ease);
}
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card__img::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow 0.5s var(--ease); pointer-events: none;
}
.card:hover .card__img, .card:focus-visible .card__img {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 60px -20px rgba(91, 140, 255, 0.6);
}
.card:hover .card__img img, .card:focus-visible .card__img img { transform: scale(1.06); }

/* =========================================================
   À propos
   ========================================================= */
.bio { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.bio__txt { display: grid; gap: 22px; }
.bio__txt h2 { margin-bottom: 8px; max-width: 14ch; }
.bio__txt p { color: var(--dim); font-size: 1.12rem; max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.facts li {
  padding: 26px 24px; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent);
  display: grid; gap: 10px; transition: border-color 0.4s, transform 0.5s var(--ease);
}
.facts li:hover { border-color: rgba(91, 140, 255, 0.45); transform: translateY(-3px); }
.facts__h { font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1; letter-spacing: -0.03em; }
.facts__l { color: var(--dim); font-size: 0.95rem; }
@media (max-width: 900px) { .bio { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* =========================================================
   Clients
   ========================================================= */
.clients .sec__title { margin-bottom: 44px; max-width: 18ch; }
.marquee { position: relative; z-index: 1; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: clamp(28px, 4vw, 64px); width: max-content; align-items: center; animation: scrollx 50s linear infinite; will-change: transform; padding: 10px 0; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.client { display: flex; align-items: center; gap: 16px; white-space: nowrap; transition: transform 0.4s var(--ease); }
a.client:hover { transform: translateY(-3px); }
a.client:hover .client__nom { color: #fff; }
.client__av {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; color: #fff;
  background: linear-gradient(135deg, #2a3350, #0a0a0d);
  border: 1px solid var(--border-strong);
}
.client__av img { width: 100%; height: 100%; object-fit: cover; }
.client__txt { display: grid; }
.client__nom { display: block; font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.05; color: #d7d9e3; transition: color 0.3s; }
.client__sub { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); margin-top: 4px; }

/* =========================================================
   Témoignages
   ========================================================= */
#temoignages.empty { display: none; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote {
  padding: 32px 30px; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), transparent);
  display: grid; gap: 26px; align-content: space-between;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.quote:hover { border-color: rgba(91, 140, 255, 0.45); transform: translateY(-4px); }
.quote blockquote { font-size: 1.15rem; line-height: 1.5; color: #e4e5ee; text-wrap: pretty; font-weight: 500; }
.quote blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: 0.5; color: var(--accent); margin-bottom: 18px; font-weight: 800; }
.quote footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quote__who { font-weight: 700; font-size: 1rem; }
.quote__role { color: var(--dim); font-size: 0.9rem; margin-top: 2px; }
.quote__tag { margin-left: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--faint); border: 1px dashed var(--border-strong); border-radius: 100px; padding: 4px 10px; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* =========================================================
   Contact
   ========================================================= */
.contact__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__txt { display: grid; gap: 22px; }
.contact__txt .sec__title { max-width: 12ch; margin-bottom: 6px; }
.contact__mail {
  font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.7rem); letter-spacing: -0.03em; width: fit-content;
  padding-bottom: 4px; border-bottom: 2px solid var(--accent); transition: color 0.3s, border-color 0.3s;
}
.contact__mail:hover { color: var(--accent); }

.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.form label em { color: var(--faint); font-style: normal; font-weight: 400; }
.form input, .form textarea {
  width: 100%; font: inherit; color: var(--text); font-size: 1rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px; transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 4px var(--accent-soft); }
.form input:user-invalid, .form textarea:user-invalid { border-color: rgba(255, 120, 120, 0.6); }
.form .btn { justify-self: start; margin-top: 8px; }
.form__status { min-height: 1.4em; color: var(--dim); font-size: 0.95rem; }
.form__status.ok { color: var(--accent); }
.form__status.err { color: #ff9a9a; }
.form__status a { text-decoration: underline; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.socials a {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.92rem; color: var(--dim);
  border: 1px solid var(--border); border-radius: 100px; padding: 11px 18px;
  transition: color 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.socials a:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 900px) { .contact__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--dim); font-size: 0.95rem; }
.footer__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer a { transition: color 0.3s; }
.footer a:hover { color: var(--text); }

/* =========================================================
   Reveal
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal[data-d="1"] { transition-delay: 0.09s; }
.reveal[data-d="2"] { transition-delay: 0.18s; }
.reveal[data-d="3"] { transition-delay: 0.27s; }
.reveal[data-d="4"] { transition-delay: 0.36s; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero__tag, .hero__title > span, .hero__sub, .hero__actions, .orb, .reveal { opacity: 1; transform: none; filter: none; animation: none; }
  .orb { transform: translateY(-50%); }
  .track { animation: none; }
}
