/* ============================================
   LOFI JAPANESE — Simon Lacroix
   Mint Green + Purple | Light Mode
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700&family=Noto+Serif+JP:wght@200;300;400;500;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-base: #1a1a2e;
  --bg-surface: rgba(26, 26, 46, 0.7);
  --mint: #5de0b8;
  --mint-soft: rgba(93, 224, 184, 0.15);
  --mint-glow: rgba(93, 224, 184, 0.25);
  --text-primary: #edf5f0;
  --text-secondary: #b0c4b8;
  --text-muted: #6b8078;
  --accent: #7c3aed;
  --accent-bright: #8b5cf6;
  --accent-deep: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --accent-hot: #a855f7;
  --card-bg: rgba(124, 58, 237, 0.9);
  --card-bg-soft: rgba(93, 224, 184, 0.06);
  --border: rgba(93, 224, 184, 0.15);
  --border-hover: rgba(93, 224, 184, 0.4);
  --grain-opacity: 0.08;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-base);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.8;
  letter-spacing: 0.02em;
  cursor: default;
}

body.is-loading {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: white;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* --- Video Background --- */
#video-bg {
  position: fixed;
  top: -2%;
  left: -2%;
  width: 104vw;
  height: 104vh;
  object-fit: cover;
  z-index: -3;
  filter: brightness(0.58) saturate(0.8) contrast(1.08) blur(6px);
}

/* --- Overlays --- */
.overlay-grain {
  display: none !important;
}

.overlay-dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(93, 224, 184, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 0%, rgba(124, 58, 237, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(124, 58, 237, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at center, rgba(26, 26, 46, 0.35) 0%, rgba(10, 10, 25, 0.82) 100%);
}

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(26, 26, 46, 0.5);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s ease;
}

nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(26, 26, 46, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo .nav-icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(93, 224, 184, 0.4));
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--accent-bright));
  box-shadow: 0 0 10px var(--mint-glow);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--mint);
  text-shadow: 0 0 15px var(--mint-glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
  padding: 5px;
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(4.5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-4.5px);
}

/* --- Main Content --- */
main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 11rem 3rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Page Transition --- */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
  display: flex;
}

.page-transition .slice {
  flex: 1;
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(93, 224, 184, 0.15) 50%, var(--bg-base) 100%);
  transform: scaleY(0);
  transform-origin: top;
}

/* --- Content Styling --- */
#content {
  opacity: 0;
}

/* Hero intro container (wraps h1 + subtitle + intro paragraph) */
#content .hero-intro {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(93, 224, 184, 0.12);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

#content .hero-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--accent-bright), transparent);
  opacity: 0.6;
}

#content .hero-intro > *:last-child {
  margin-bottom: 0;
}

/* Hero header (before first HR) */
#content .hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 1rem;
}

#content .hero-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--accent-bright));
  box-shadow: 0 0 12px var(--mint-glow);
  border-radius: 2px;
}

#content .hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.6vw, 0.85rem);
  font-weight: 400;
  color: var(--mint);
  margin-bottom: 1.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Hero intro paragraph */
#content .hero-intro p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 300;
}

/* Fallback for h1/h2 without hero class */
#content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 1rem;
}

#content h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--accent-bright));
  box-shadow: 0 0 12px var(--mint-glow);
  border-radius: 2px;
}

#content h2 {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
}

/* Section Cards — glass morphism */
#content .section-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(93, 224, 184, 0.12);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
}

#content .section-card:hover {
  border-color: rgba(93, 224, 184, 0.3);
  box-shadow: 0 8px 40px rgba(93, 224, 184, 0.08), inset 0 0 0 1px rgba(93, 224, 184, 0.08);
  transform: translateY(-2px);
}

#content .section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--accent-bright), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

#content .section-card:hover::before {
  opacity: 1;
}

/* Remove bottom margin on last child inside card */
#content .section-card > *:last-child {
  margin-bottom: 0;
}

/* H3 inside cards */
#content .section-card h3:first-child {
  margin-top: 0;
}

#content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--mint);
  margin: 2rem 0 1rem;
  position: relative;
  padding-left: 1.5rem;
}

#content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background: linear-gradient(180deg, var(--mint) 0%, var(--accent-bright) 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px var(--mint-glow);
}

#content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 300;
}

#content .section-card p:only-of-type {
  font-size: 1.1rem;
}

#content strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* HRs are consumed by wrapSections, hidden if any remain */
#content hr {
  display: none;
}

/* Blockquotes */
#content blockquote {
  border: 1px solid var(--border);
  border-left: 3px solid var(--mint);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  background: rgba(93, 224, 184, 0.04);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  position: relative;
}

#content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -0.2rem;
  left: 1rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--mint);
  opacity: 0.15;
  line-height: 1;
}

#content blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.8;
}

/* Lists */
#content ul, #content ol {
  padding-left: 0;
  margin-bottom: 1.5rem;
  list-style: none;
}

#content li {
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 0.75rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
}

#content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 6px var(--mint-glow);
}

/* Code tags / badges */
#content code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-bright));
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: none;
  display: inline-block;
  margin: 0.2rem 0.15rem;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

/* Links */
#content a {
  color: var(--mint);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

#content a:hover {
  border-bottom-color: var(--mint);
  text-shadow: 0 0 8px var(--mint-glow);
}

/* --- Item Cards Grid --- */
.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.item-grid-full {
  grid-template-columns: 1fr;
}

.item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--accent-bright), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.item-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(93, 224, 184, 0.1);
}

.item-card:hover::before {
  opacity: 1;
}

.item-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  background: transparent;
  padding: 0 0 0.25rem 0;
  margin-bottom: 0.85rem;
  border: none;
  border-radius: 0;
  text-shadow: 0 0 10px var(--mint-glow);
}


.item-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.item-card h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.item-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-card p {
  font-size: 0.95rem !important;
  color: var(--text-secondary) !important;
  margin-bottom: 0.75rem !important;
  line-height: 1.6 !important;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.item-tags code {
  font-size: 0.65rem !important;
  padding: 0.2rem 0.5rem !important;
  margin: 0 !important;
}

/* --- Home Category Sections --- */
.home-category-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(93, 224, 184, 0.06);
}

.home-category-section:last-child {
  border-bottom: none;
}

.category-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* --- Service Link Cards --- */
.service-link-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-bottom: 0.75rem;
}

.service-link-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(93, 224, 184, 0.08);
}

.service-icon {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--mint);
  opacity: 0.7;
  min-width: 2.5rem;
  text-align: center;
  transition: opacity 0.3s;
}

.service-link-card:hover .service-icon {
  opacity: 1;
  text-shadow: 0 0 12px var(--mint-glow);
}

.service-link-card h3 {
  flex: 1;
  margin: 0 !important;
  padding-left: 0 !important;
  font-size: 1.2rem !important;
}

.service-link-card h3::before {
  display: none;
}

.service-arrow {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.service-link-card:hover .service-arrow {
  color: var(--mint);
  transform: translateX(5px);
}

/* --- Voir tout & Back buttons --- */
.btn-voir-tout,
.btn-back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--mint);
  text-decoration: none;
  letter-spacing: 0.1em;
  padding: 0.6rem 0;
  margin-top: 0.5rem;
  border-bottom: 1px solid transparent !important;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-voir-tout:hover,
.btn-back:hover {
  text-shadow: 0 0 12px var(--mint-glow);
  border-bottom-color: var(--mint) !important;
}

/* --- Decorative Elements --- */
.deco-kanji {
  position: fixed;
  font-family: var(--font-serif);
  color: rgba(93, 224, 184, 0.12);
  font-size: 18rem;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.deco-kanji.top-right {
  top: -2rem;
  right: -3rem;
}

.deco-kanji.bottom-left {
  bottom: -3rem;
  left: -2rem;
}

/* --- Vertical Text Deco --- */
.vertical-text {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  opacity: 0.3;
  z-index: 1;
  pointer-events: none;
}

/* --- Footer --- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

footer .footer-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 1rem;
  opacity: 0.6;
  filter: drop-shadow(0 0 6px rgba(93, 224, 184, 0.3));
}

/* --- Loading Screen --- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-base);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

#loader .loader-icon {
  width: 64px;
  height: 64px;
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(93, 224, 184, 0.55));
}

#loader .loader-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.25em;
  opacity: 0;
  margin-top: 0.25rem;
}

#loader .loader-line {
  width: 140px;
  height: 1px;
  background: rgba(93, 224, 184, 0.15);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

#loader .loader-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--mint), var(--accent-bright), transparent);
  animation: loaderShimmer 1.4s ease-in-out infinite;
}

@keyframes loaderShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}


/* --- Magnetic Buttons --- */
.magnetic-wrap {
  display: inline-block;
}

/* --- Reveal animations --- */
.reveal-line {
  overflow: hidden;
}

.reveal-line span {
  display: inline-block;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  main {
    padding: 9rem 1.5rem 3rem;
  }

  .vertical-text {
    display: none;
  }

  .deco-kanji {
    font-size: 10rem;
  }

  #content h1 {
    font-size: 2.2rem;
  }
}

/* ========== Lead form (service pages, portfolio items, contact) ========== */
.lead-form {
  margin: 3rem 0 1.5rem;
  padding: 2rem;
  background: rgba(215, 185, 132, 0.06);
  border: 1px solid rgba(215, 185, 132, 0.35);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.lead-form h3 {
  margin: 0 0 .5rem;
  font-family: 'Shippori Mincho', serif;
  color: #d7b984;
  font-size: 1.6rem;
}
.lead-form-intro {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, .72);
  font-size: .95rem;
}
.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 640px) {
  .lead-form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 1.4rem; }
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .78);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  box-sizing: border-box;
  padding: .8rem 1rem;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(215, 185, 132, .25);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.lead-form textarea {
  resize: vertical;
  min-height: 6rem;
  line-height: 1.5;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: rgba(255, 255, 255, .35); }
.lead-form input:hover,
.lead-form textarea:hover,
.lead-form select:hover { border-color: rgba(215, 185, 132, .45); }
.lead-form input:focus,
.lead-form textarea:focus,
.lead-form select:focus {
  outline: none;
  border-color: rgba(215, 185, 132, .7);
  background: rgba(0, 0, 0, .45);
  box-shadow: 0 0 0 3px rgba(215, 185, 132, .12);
}
.lead-form-full {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1.2rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .78);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lead-form-full > span { display: block; }
.lead-form-consent {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin: 1rem 0 .25rem;
  padding: .85rem 1rem;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
}
.lead-form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: .2rem;
  accent-color: #d7b984;
  cursor: pointer;
}
.lead-form-consent:hover { border-color: rgba(215, 185, 132, .35); }
.lead-form-submit {
  padding: .85rem 2rem;
  background: rgba(215, 185, 132, .08);
  border: 1px solid rgba(215, 185, 132, .5);
  border-radius: 8px;
  color: #d7b984;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .18s ease;
}
.lead-form-submit:hover:not(:disabled) {
  background: rgba(215, 185, 132, .18);
  border-color: rgba(215, 185, 132, .85);
  color: #f0d9a8;
  transform: translateY(-1px);
}
.lead-form-submit:disabled { opacity: .6; cursor: wait; }
.lead-form-status {
  margin-top: 1rem;
  font-size: .92rem;
  min-height: 1.2em;
}
.lead-form-status.is-success { color: #8fc7ab; }
.lead-form-status.is-error   { color: #e89a9a; }
.lead-form-status.is-pending { color: rgba(255, 255, 255, .6); }

/* =================================================
 * Item media — screenshot, CTA, video, signature
 * ================================================= */
.item-screenshot-link,
.item-screenshot-bare {
  display: block;
  width: 100%;
  height: auto;
  margin: 2.25rem 0;
  border-radius: 14px;
  overflow: hidden;
}
.item-screenshot { display: block; width: 100%; height: auto; margin: 0; border-radius: 14px; }
.item-screenshot-link > .item-screenshot,
.item-screenshot-bare > .item-screenshot { border-radius: inherit; }
.item-screenshot-link {
  position: relative;
  isolation: isolate;
  line-height: 0;
  cursor: pointer;
  transform: translateZ(0);
  transition: box-shadow .35s ease;
}
.item-screenshot-link img,
.item-screenshot-bare img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.item-screenshot-link img {
  transition:
    transform .9s cubic-bezier(.2, .7, .2, 1),
    filter .55s ease;
  will-change: transform, filter;
}

/* Mint outline glow */
.item-screenshot-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .35s ease, box-shadow .55s ease;
  z-index: 2;
}

/* Sweeping shine across the image */
.item-screenshot-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.06) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  transition: opacity .25s ease;
}

.item-screenshot-link:hover {
  box-shadow: none;
}
.item-screenshot-link:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}
.item-screenshot-link:hover::before {
  border-color: rgba(143, 199, 171, 0.55);
  box-shadow: inset 0 0 22px rgba(143, 199, 171, 0.18);
}
.item-screenshot-link:hover::after {
  opacity: 1;
  animation: itemShineSweep 1.1s cubic-bezier(.2, .7, .2, 1) forwards;
}
.item-screenshot-link:active img { transform: scale(1.015); transition-duration: .15s; }

@keyframes itemShineSweep {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .item-screenshot-link,
  .item-screenshot-link img { transition: none; }
  .item-screenshot-link:hover img { transform: none; filter: none; }
  .item-screenshot-link:hover::after { animation: none; opacity: 0; }
}

#content .item-cta-row,
.item-cta-row { margin: 1.25rem 0 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.item-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(143, 199, 171, 0.55);
  background: linear-gradient(135deg, rgba(143, 199, 171, 0.18), rgba(215, 185, 132, 0.14));
  color: var(--mint, #8fc7ab);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.item-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 199, 171, 0.85);
  color: #f8fffb;
  box-shadow: 0 0 18px var(--mint-glow, rgba(143, 199, 171, 0.35));
}

/* Bandes-annonces — custom video player */
.item-video {
  margin: 1.25rem 0 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(143, 199, 171, 0.28);
  background: #000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(143, 199, 171, 0.12);
}
.item-video-player {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  background: #000;
  outline: none;
}
.item-video-player::-webkit-media-controls-panel {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}

/* Signatures — preview + copy */
.signature-preview {
  background: #ffffff;
  color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin: 1rem 0;
  overflow-x: auto;
}
.signature-preview a { color: inherit; }
.signature-code-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.signature-copy-status {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .78rem;
  color: var(--mint, #8fc7ab);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.signature-code-details {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.signature-code-details summary {
  cursor: pointer;
  padding: .65rem .9rem;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  user-select: none;
}
.signature-code-details summary:hover { color: var(--mint, #8fc7ab); }
.signature-code {
  margin: 0;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
