/* Tatua · Premium custom styles · powered by ui-ux-pro-max patterns */

html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  background-color: #0b0b0c;
  position: relative;
  overflow-x: hidden;
}

/* === GRAIN NOISE OVERLAY (premium texture) === */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === SELECTION === */
::selection { background: #10b981; color: #0b0b0c; }

/* === CTA GREEN (vert émeraude pour boutons d'action principaux) === */
/* Utilisé pour tous les boutons conversion (psycho +21% vs rouge selon Hubspot A/B test) */
/* Rouge crimson reste pour décorations, branding, accents typo */
.bg-cta              { background-color: #10b981 !important; }
.bg-cta-hover        { background-color: #14d399 !important; }
.bg-cta-dark         { background-color: #059669 !important; }
.text-cta            { color: #10b981 !important; }
.text-cta-hover      { color: #14d399 !important; }
.border-cta          { border-color: #10b981 !important; }
.ring-cta            { --tw-ring-color: #10b981; }
.from-cta            { --tw-gradient-from: #10b981 var(--tw-gradient-from-position); --tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-cta              { --tw-gradient-to: #10b981 var(--tw-gradient-to-position); }
.via-cta             { --tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), #10b981 var(--tw-gradient-via-position), var(--tw-gradient-to); }
.shadow-cta\/20      { --tw-shadow-color: rgb(16 185 129 / 0.20); --tw-shadow: var(--tw-shadow-colored); }
.shadow-cta\/30      { --tw-shadow-color: rgb(16 185 129 / 0.30); --tw-shadow: var(--tw-shadow-colored); }
.hover\:bg-cta:hover         { background-color: #10b981 !important; }
.hover\:bg-cta-hover:hover   { background-color: #14d399 !important; }
.hover\:text-cta:hover       { color: #10b981 !important; }
.hover\:border-cta:hover     { border-color: #10b981 !important; }

@keyframes pulse-glow-cta {
  0%,100% { box-shadow: 0 0 20px rgba(16,185,129,0.20), 0 0 40px rgba(16,185,129,0.10); }
  50%     { box-shadow: 0 0 32px rgba(16,185,129,0.40), 0 0 64px rgba(16,185,129,0.22); }
}
.animate-pulse-glow-cta { animation: pulse-glow-cta 3s ease-in-out infinite; }

/* === BLOOD ACCENT (3e couleur · rouge tatouage culture) === */
.text-gradient-blood {
  background: linear-gradient(135deg, #10b981 0%, #14d399 50%, #10b981 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}
.text-gradient-mix {
  background: linear-gradient(135deg, #10b981 0%, #10b981 50%, #10b981 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 10s ease infinite;
}
@keyframes pulse-glow-blood {
  0%,100% { box-shadow: 0 0 20px rgba(16,185,129,0.20), 0 0 40px rgba(16,185,129,0.08); }
  50%     { box-shadow: 0 0 32px rgba(16,185,129,0.40), 0 0 64px rgba(16,185,129,0.22); }
}
.animate-pulse-glow-blood { animation: pulse-glow-blood 3s ease-in-out infinite; }

/* === TATTOO FONT SAMPLES (rendu net dans les cards) === */
.font-tattoo, .font-script, .font-swash, .font-hand,
.font-marker, .font-elegant, .font-thin, .font-roman, .font-gothic {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* === DETAILS / FAQ === */
details summary::-webkit-details-marker { display: none; }
details summary { outline: none; cursor: pointer; }
details > div, details > p { animation: fade-in 0.25s ease-out; }

/* === KEYFRAMES === */
@keyframes fade-in     { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-up     { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float-slow  { 0%,100% { transform: translateY(0) translateX(0); } 33% { transform: translateY(-12px) translateX(8px); } 66% { transform: translateY(8px) translateX(-6px); } }
@keyframes gradient-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse-glow  { 0%,100% { box-shadow: 0 0 20px rgba(16,185,129,0.18), 0 0 40px rgba(16,185,129,0.08); } 50% { box-shadow: 0 0 32px rgba(16,185,129,0.35), 0 0 64px rgba(16,185,129,0.18); } }
@keyframes shimmer     { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes scan-line   { 0% { transform: translateY(-100%); opacity: 0; } 10%,90% { opacity: 1; } 100% { transform: translateY(100%); opacity: 0; } }
@keyframes mesh-rotate { from { transform: rotate(0deg) scale(1.5); } to { transform: rotate(360deg) scale(1.5); } }
@keyframes count-up    { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* === ANIMATIONS UTIL === */
.animate-fade-up      { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.animate-fade-in      { animation: fade-in 0.4s ease-out backwards; }
.animate-float-slow   { animation: float-slow 8s ease-in-out infinite; }
.animate-pulse-glow   { animation: pulse-glow 3s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* === ANIMATED GRADIENT BG === */
.bg-gradient-animated {
  background: linear-gradient(135deg, #0b0b0c 0%, #1c1917 25%, #0b0b0c 50%, #292524 75%, #0b0b0c 100%);
  background-size: 400% 400%;
  animation: gradient-shift 22s ease infinite;
}

/* === MESH GRADIENT (premium hero overlay) === */
.bg-mesh-premium { position: relative; }
.bg-mesh-premium::before {
  content: '';
  position: absolute; inset: -50%;
  background:
    radial-gradient(circle at 20% 30%, rgba(16,185,129,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(4,120,87,0.10), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16,185,129,0.05), transparent 60%);
  animation: mesh-rotate 60s linear infinite;
  pointer-events: none; z-index: 0;
}

/* === BUTTON PREMIUM (shimmer + magnetic feel) === */
.btn-premium { position: relative; overflow: hidden; isolation: isolate; transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1); }
.btn-premium::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
.btn-premium:hover { transform: translateY(-1px); }
.btn-premium:active { transform: translateY(0) scale(0.98); }

/* === CARD PREMIUM === */
.card-premium {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.2s ease;
}
.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.10), 0 0 0 1px rgba(16, 185, 129, 0.25);
}

/* === GLASS MORPHISM === */
.glass {
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

/* === FLOATING ORBS === */
.floating-orbs {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.floating-orbs::before,
.floating-orbs::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.floating-orbs::before {
  background: radial-gradient(circle, #10b981, transparent);
  top: -100px; left: -100px;
  animation: float-slow 12s ease-in-out infinite;
}
.floating-orbs::after {
  background: radial-gradient(circle, #047857, transparent);
  bottom: -100px; right: -100px;
  animation: float-slow 16s ease-in-out infinite reverse;
}

/* === SCAN LINE EFFECT === */
.scan-line { position: relative; overflow: hidden; }
.scan-line::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(16,185,129,0.06) 50%, transparent 100%);
  animation: scan-line 4s ease-in-out infinite;
  pointer-events: none;
}

/* === MAGNETIC BUTTON (subtle cursor follow effect via JS hook) === */
.magnetic-btn { transition: transform 0.15s ease-out; will-change: transform; }

/* === RESULT CARD LOCKED === */
.result-card.locked { cursor: pointer; }
.result-card.locked:hover img { animation: pulse-glow 1.5s ease-in-out; }
.blurred-result { position: relative; user-select: none; }

/* === SMOOTH SCROLLBAR === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0b0c; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #292524, #1c1917); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #57534e, #292524); }

/* === LINE CLAMP === */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* === TEXT GRADIENT === */
.text-gradient {
  background: linear-gradient(135deg, #10b981 0%, #fafafa 50%, #10b981 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

/* === COUNT-UP (for stats) === */
.count-up { animation: count-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }

/* === PRICING CARD ACCENT BORDER PULSE === */
@keyframes border-pulse {
  0%, 100% { border-color: rgba(16,185,129,1); box-shadow: 0 0 0 1px rgba(16,185,129,0.3); }
  50%      { border-color: rgba(16,185,129,0.6); box-shadow: 0 0 30px rgba(16,185,129,0.4); }
}
.border-pulse { animation: border-pulse 3s ease-in-out infinite; }

/* === PRO MODE (B2B kiosque) === */
.mode-pro { font-size: 18px; }
.mode-pro button { min-height: 56px; }

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === MOBILE OPTIMIZATIONS === */
@media (max-width: 640px) {
  .floating-orbs::before,
  .floating-orbs::after { width: 250px; height: 250px; filter: blur(60px); }
}

/* ════════════════════════════════════════════════════ */
/* ADVANCED PATTERNS · ui-ux-pro-max premium upgrades   */
/* ════════════════════════════════════════════════════ */

/* === BENTO GRID === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 1rem;
}
.bento-cell {
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: rgba(15, 14, 13, 0.6);
  border: 1px solid rgba(28, 25, 23, 1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.3s;
}
.bento-cell:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.10);
}
.bento-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(16,185,129,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.bento-cell:hover::after { opacity: 1; }

.bento-cell.bento-feature { grid-column: span 2; }
.bento-cell.bento-feature-wide { grid-column: span 3; }
.bento-cell.bento-feature-large { grid-column: span 4; grid-row: span 2; }
.bento-cell.bento-feature-tall { grid-column: span 2; grid-row: span 2; }
.bento-cell.bento-feature-full { grid-column: span 6; }

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-cell.bento-feature,
  .bento-cell.bento-feature-wide,
  .bento-cell.bento-feature-large,
  .bento-cell.bento-feature-tall,
  .bento-cell.bento-feature-full { grid-column: span 2; grid-row: auto; }
}

/* === MARQUEE (infinite scroll text/stats) === */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* === MARQUEE GALLERY (image scroll showcase) === */
.marquee-gallery {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.marquee-gallery-track {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.marquee-gallery-track.reverse {
  animation: marquee-reverse 75s linear infinite;
}
.marquee-gallery:hover .marquee-gallery-track { animation-play-state: paused; }

.marquee-gallery img,
.marquee-gallery .gallery-tile {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  background: #1c1917;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.marquee-gallery .gallery-tile:hover,
.marquee-gallery img:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.25);
}

/* === LETTERING CARDS (marquee Lettrage) === */
.lettering-card {
  flex-shrink: 0;
  width: 220px;
  height: 180px;
  background: #fff;
  color: #0b0b0c;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lettering-card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.30);
}
.lettering-card > div:first-child {
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.lettering-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #78716c;
}

@media (max-width: 640px) {
  .marquee-gallery img,
  .marquee-gallery .gallery-tile { width: 140px; height: 140px; }
  .lettering-card { width: 160px; height: 140px; padding: 0.75rem; }
  /* Hide 2nd marquee on mobile to reduce scroll length */
  .marquee-gallery.mobile-hide { display: none; }
}

/* === MOBILE OPTIMIZATIONS (80% du trafic) === */
@media (max-width: 640px) {
  /* Larger tap targets */
  a, button { -webkit-tap-highlight-color: rgba(16, 185, 129, 0.2); }
  /* Reduce hero font sizes */
  h1.font-display { font-size: 2.5rem; line-height: 1.05; }
  /* Compact stat-card */
  .stat-card { padding: 0.85rem 0.5rem; }
  .stat-card .stat-value { font-size: 1.8rem; }
  /* Compact bento */
  .bento-cell { padding: 1rem; }
  /* No cursor follower on mobile */
  .cursor-dot { display: none !important; }
  /* No tilt on mobile (transform can cause perf issues) */
  .tilt-card { transform: none !important; }
  /* Smaller hero typographic text */
  .hero-bg-text { font-size: 14vw; opacity: 0.02; }
  /* Less padding on sections to reduce overall scroll */
  section.py-24 { padding-top: 3rem; padding-bottom: 3rem; }
  section.py-20 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  section.py-16 { padding-top: 2rem; padding-bottom: 2rem; }
  section.py-12 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}

/* === TESTIMONIALS MOBILE CAROUSEL (horizontal swipe) === */
@media (max-width: 768px) {
  .testimonials-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid > * {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

/* === CURSOR FOLLOWER (subtle accent dot) === */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.5), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  mix-blend-mode: screen;
  opacity: 0;
}
.cursor-dot.active { opacity: 1; }
.cursor-dot.hover { transform: translate(-50%, -50%) scale(2.5); background: radial-gradient(circle, rgba(16,185,129,0.8), transparent 70%); }
@media (hover: none) { .cursor-dot { display: none; } }

/* === HERO TYPOGRAPHIC BACKGROUND (subtle large text) === */
.hero-bg-text {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 900;
  font-size: clamp(8rem, 22vw, 20rem);
  color: rgba(16, 185, 129, 0.03);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

/* === GLOW BORDER (animated gradient border) === */
.glow-border {
  position: relative;
  border-radius: 1.25rem;
}
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(16,185,129,0.6), transparent 40%, transparent 60%, rgba(16,185,129,0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  animation: gradient-shift 8s ease infinite;
  background-size: 200% 200%;
}

/* === STAT CARD (premium presentation) === */
.stat-card {
  position: relative;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15,14,13,0.8), rgba(28,25,23,0.4));
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 1rem;
  backdrop-filter: blur(8px);
}
.stat-card .stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #fafafa 0%, #10b981 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === PARALLAX HOVER (3D card tilt prepared via JS) === */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === ENHANCED HEADINGS (gradient stroke on important titles) === */
.heading-premium {
  background: linear-gradient(180deg, #fafafa 0%, #a8a29e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
