/* CRACCRAC.fr — Premium 3D • Design 20k */

:root {
  --bg: #08080a;
  --bg-elevated: #0f0f12;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent: #e8b923;
  --accent-soft: rgba(232, 185, 35, 0.15);
  --accent-glow: rgba(232, 185, 35, 0.25);
  --danger: #e85c4d;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-lg: 0 32px 64px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 80px -20px var(--accent-glow);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  position: relative;
  z-index: 10;
}

/* Background layers */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--accent-soft) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 50%, rgba(232, 185, 35, 0.06) 0%, transparent 50%),
    var(--bg);
  pointer-events: none;
  z-index: 0;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Glass */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* Header */
.header {
  position: relative;
  z-index: 100;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  transition: transform var(--transition), color var(--transition);
}

.logo .logo-crac {
  display: inline-block;
}

.logo .tm {
  font-size: 0.5em;
  font-weight: 600;
  margin-left: 0.12em;
  line-height: 1;
  color: var(--text-muted);
  align-self: flex-end;
  transform: translateY(-0.4em);
}

.logo:hover {
  color: var(--accent);
  transform: scale(1.02);
}

.logo:hover .tm {
  color: var(--accent);
}

.tagline {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.urgent-badge,
.fake-notif,
.badge-1987 {
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.urgent-badge {
  color: var(--danger);
  border-color: rgba(232, 92, 77, 0.3);
  background: rgba(232, 92, 77, 0.08);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 auto 1rem;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #f0d050);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Product 3D */
.product-showcase {
  margin: 2.5rem 0;
  perspective: 1200px;
}

.product-3d-wrap {
  display: inline-block;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.product-pack.product-3d {
  position: relative;
  width: 200px;
  height: 260px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateX(-8deg) rotateY(0deg);
  transition: transform 0.1s ease-out;
  cursor: pointer;
}

.product-pack .pack-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  opacity: 0.6;
  filter: blur(24px);
  pointer-events: none;
}

.product-pack .pack-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #d4a574 0%, #b8926a 40%, #9a7b52 100%);
  border-radius: var(--radius-sm);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.1) inset,
    -4px -4px 20px rgba(0, 0, 0, 0.2);
  backface-visibility: hidden;
}

.product-pack .pack-label {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.85);
  text-align: center;
  line-height: 1.25;
}

.pack-label small {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.25rem;
  opacity: 0.9;
}

.crac-pop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--bg);
  background: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.product-pack:hover .crac-pop,
.product-pack.crac-visible .crac-pop {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.livraison-fake {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 24px -4px var(--accent-glow);
}

.cta:hover {
  background: #f0d050;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px var(--accent-glow);
}

/* Section titles */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--text);
}

/* Cards 3D (tilt on hover) */
.card-3d {
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-3d:hover {
  transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateZ(8px);
  box-shadow: var(--shadow-lg);
}

/* Section card (glass panel) */
.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 1.5rem 2rem;
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Avant / Après */
.avant-apres {
  padding: 3rem 1.5rem;
}

.avant-apres .section-title {
  margin-bottom: 2rem;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}

.avant, .apres {
  text-align: center;
}

.comparison p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
}

.vs {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 4rem;
}

.scene {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transition: transform var(--transition);
}

.scene:hover {
  transform: translateZ(12px);
}

.scene-sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
}

.scene-sky-bad {
  background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
}

.scene-sky-ok {
  background: linear-gradient(180deg, #3d4a5c 0%, #2d3748 100%);
}

.scene-room {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62%;
  background: linear-gradient(180deg, #4a3f35 0%, #3d332a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12%;
}

.scene-person {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8%;
}

.scene-head {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #c4a574;
  border: 2px solid #a68b5b;
  margin-bottom: -4px;
}

.scene-body {
  width: 40px;
  height: 32px;
  border-radius: 8px 8px 4px 4px;
  background: #4a5568;
}

.scene-person-sad .scene-body {
  background: #3d4a54;
}

.scene-tear {
  position: absolute;
  top: 4px;
  right: -6px;
  font-size: 10px;
  opacity: 0.9;
  animation: tear-drop 1.5s ease-in-out infinite;
}

@keyframes tear-drop {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(4px); opacity: 0.5; }
}

.scene-table {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 8px;
  background: #5d4e37;
  border-radius: 4px;
}

.scene-plate {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8e0d8;
  border: 3px solid #c4b8a8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -24px;
  margin: 0 auto;
}

.scene-biscotte {
  font-family: var(--font-display);
  font-size: 8px;
  color: #3d2c2e;
  background: linear-gradient(180deg, #e8d5b5 0%, #c4a574 100%);
  padding: 4px 6px;
  border-radius: 3px;
}

.scene-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 600px) {
  .comparison {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .vs { padding-top: 0; }
}

/* Témoignages */
.temoignages {
  padding: 3rem 1.5rem;
  margin-bottom: 1rem;
}

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.temoignage {
  margin: 0;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.temoignage:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.temoignage p {
  font-style: italic;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.temoignage cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Science */
.science {
  padding: 4rem 1.5rem;
  margin-bottom: 3rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.science .section-title {
  color: var(--text);
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.stat:hover {
  border-color: var(--accent-soft);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* FAQ */
.faq-fake {
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}

.faq-list {
  max-width: 560px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0;
}

/* Achat */
.achat {
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.prix-box {
  margin-bottom: 1rem;
}

.ancien-prix {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.nouveau-prix {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
}

.economie {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.badge-dentiste {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.satisfait-rembourse {
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
  color: var(--text-muted);
}

.satisfait-rembourse small {
  font-size: 0.8em;
  opacity: 0.8;
}

.btn-acheter {
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 24px -4px var(--accent-glow);
}

.btn-acheter:hover {
  background: #f0d050;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px var(--accent-glow);
}

.btn-acheter:active {
  transform: translateY(0);
}

.small-print {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  cursor: help;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer p {
  margin: 0.35rem 0;
}

.footer-ref {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-legal {
  margin: 0.5rem 0 !important;
}

.footer-dev {
  margin-top: 1rem !important;
  font-size: 0.8rem !important;
  color: var(--text-muted);
}

.footer-dev a {
  color: var(--accent);
  text-decoration: none;
}

.footer-dev a:hover {
  text-decoration: underline;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Toast */
.fake-purchase-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.fake-purchase-toast .toast-msg {
  padding: 0.75rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.4s ease;
  max-width: 300px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Visitor badge */
.visitor-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9997;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  border-radius: 100px;
  backdrop-filter: blur(12px);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  transition: transform 0.4s ease;
}

.cookie-banner[hidden] {
  transform: translateY(100%);
}

.cookie-banner p {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--text);
}

.cookie-sub {
  font-size: 0.85rem !important;
  color: var(--text-muted);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cookie-btn {
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.cookie-btn:hover {
  background: #f0d050;
  transform: scale(1.02);
}

.cookie-btn-refuse {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.cookie-btn-refuse:hover {
  background: var(--surface-hover);
}

/* Exit popup */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exit-popup[hidden] {
  display: none !important;
}

.exit-popup-inner {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}

.exit-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.exit-popup-inner p {
  margin: 0 0 0.5rem;
  color: var(--text);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none !important;
}

.modal-content {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--accent);
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0;
  color: var(--text);
}

.modal p {
  margin: 0.75rem 0;
  color: var(--text-muted);
}
