/* =========================
   Design system — ProCut
   Version améliorée : typographie premium, animations fluides,
   responsive raffiné, accessibilité renforcée
   ========================= */
:root {
  /* Palette (sombre) */
  --bg: #0a0f1c;
  --bg-2: #0c1324;
  --surface: #0f172a;
  --text: #e6e9ef;
  --muted: #a2a9b8;
  --line: rgba(162,169,184,.18);

  --brand: #00d4ff;
  --accent: #9b87f5;
  --success: #22c55e;
  --warn: #f59e0b;

  /* Depth & glow */
  --shadow-1: 0 10px 24px rgba(0,0,0,.35);
  --shadow-2: 0 22px 60px rgba(0,0,0,.45);
  --glow-brand: 0 0 24px rgba(0,212,255,.35);

  /* Typography */
  --font: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  --h1: clamp(34px, 5vw, 52px);
  --h2: clamp(26px, 3vw, 34px);
  --lead: 18px;

  /* Radius */
  --r-card: 18px;
  --r-tile: 16px;
  --r-btn: 12px;

  /* Speed */
  --t-fast: .2s;
  --t-normal: .35s;
  --t-slow: .6s;
}

/* Thème clair (fond blanc uni + bordures blanches) */
:root.light {
  --bg: #fff;
  --bg-2: #fff;
  --surface: #fff;
  --text: #0c1324;
  --muted: grey;
  --line: #fff; /* bordures blanches */

  /* Ombres plus douces en clair */
  --shadow-1: 0 8px 18px rgba(0,0,0,.08);
  --shadow-2: 0 18px 40px rgba(0,0,0,.12);
  --glow-brand: 0 0 24px rgba(0,212,255,.25);
}

/* Reset & base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg); /* fond uni selon thème */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) ease; }
a:hover { color: var(--brand); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.h2 { font-size: var(--h2); margin: 0 0 18px; letter-spacing: .3px; font-weight: 700; }
.p-lead { color: var(--muted); font-size: var(--lead); }

/* Header */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,15,28,.7); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
header .nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(var(--glow-brand)); }
.brand .title { font-weight: 800; letter-spacing: .4px; }

/* Navigation */
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  position: relative; padding: 10px 12px; border-radius: 10px; color: var(--text);
}
nav a:hover { background: rgba(162,169,184,.12); }
nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 2px; background: linear-gradient(90deg,var(--brand),var(--accent)); border-radius: 2px;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 6px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; color: var(--muted);
  transition: all var(--t-fast) ease;
}
.theme-toggle:hover { color: var(--text); border-color: rgba(162,169,184,.3); transform: translateY(-1px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: var(--r-btn); background: var(--surface); border: 1px solid var(--line);
  color: var(--text); cursor: pointer;
  transition: transform var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background var(--t-fast) ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(162,169,184,.3); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn.primary {
  background: linear-gradient(90deg,var(--brand),var(--accent));
  color: #0a0f1c; font-weight: 700; border: none;
  box-shadow: var(--shadow-1), var(--glow-brand);
}
.btn.ghost { background: transparent; border-color: rgba(162,169,184,.28); }
.cta.small { font-weight: 700; background: linear-gradient(90deg,var(--brand),var(--accent)); color: #0a0f1c; box-shadow: var(--shadow-1); }

/* Hero */
.hero { padding: 96px 0 56px; position: relative; overflow: hidden; text-align: center; }
.hero h1 { font-size: var(--h1); line-height: 1.1; margin: 0 0 18px; font-weight: 800; }
.hero .sub { color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }

/* Cards & tiles */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0));
  border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px;
  transition: box-shadow var(--t-normal) ease, transform var(--t-normal) ease;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-4px); }

/* === Cartes uniformes (Pourquoi ProCut) === */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  align-items: stretch;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 260px;

  transition: transform var(--t-normal) ease,
              box-shadow var(--t-normal) ease,
              border-color var(--t-normal) ease;
}
.tile:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-2); border-color: rgba(162,169,184,.35); }
.tile .label { color: var(--muted); font-size: 13px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.tile h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.tile .p-lead { margin-top: auto; }

/* Pricing */
.pricing-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-normal) ease, box-shadow var(--t-normal) ease, border-color var(--t-normal) ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(162,169,184,.35); }
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background: radial-gradient(600px 240px at 120% -10%, var(--brand), transparent);
  pointer-events: none;
}
.price-tag { font-size: 22px; font-weight: 800; }
.range { color: var(--muted); font-size: 14px; }
.badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(34,197,94,.14);
  color: #86efac;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(34,197,94,.3);
}

/* Forms */
form { max-width: 780px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
input, select, textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background var(--t-fast) ease;
}
input::placeholder, textarea::placeholder { color: #8891a3; }
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,212,255,.15);
}
.note { color: var(--muted); font-size: 13px; }

/* Footer */
footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(10,15,28,.5);
  backdrop-filter: blur(8px);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 18px; }
.footer-grid a { color: var(--muted); transition: color var(--t-fast) ease; }
.footer-grid a:hover { color: var(--text); }

/* Motion — reveal */
.fade-in { opacity: 0; transform: translateY(12px); }
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--t-slow) ease, transform var(--t-slow) ease;
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background:
    radial-gradient(900px 300px at 20% -10%, rgba(0,212,255,.12), rgba(155,135,245,.12)),
    radial-gradient(900px 300px at 80% 110%, rgba(155,135,245,.08), rgba(0,212,255,.08));
}
.page-transition.active { opacity: 1; }

/* Utilities */
.center { display: grid; place-items: center; }
.spacer { height: 24px; }
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .pricing-cards,
  .footer-grid { grid-template-columns: 1fr; }

  .hero h1 { font-size: clamp(28px, 7vw, 38px); }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  nav { gap: 2px; }

  .tile { min-height: 220px; } /* hauteur uniforme ajustée sur tablette */
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .card { padding: 18px; }
  .tile { padding: 16px; }
  .brand img { width: 30px; height: 30px; }
  header .nav { height: 66px; }
  .hero .sub { font-size: 18px; }
}

/* Respect du prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .tile:hover { transform: none; }
  .fade-in, .fade-in.show { transition: none; }
  .btn, .card, .price-card { transition: none; }
}
.video-tile {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-tile);
  border: 1px solid var(--line);
  background: none;
  min-height: 460px; /* ✅ corrige la hauteur */
}

.video-tile .video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#enableSoundBtn1,
#enableSoundBtn2 {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 12px auto;
}
.sound-toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 12px auto;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.sound-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.2);
  transition: 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

input:checked + .slider {
  background: rgba(0, 255, 150, 0.3);
}

input:checked + .slider::before {
  transform: translateX(26px);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 240px at 20% -10%, var(--brand), transparent),
    radial-gradient(600px 240px at 80% 110%, var(--accent), transparent);
  background-size: 200% 200%;
  animation: bgFlow 18s ease-in-out infinite;
  opacity: 0.08;
}

@keyframes bgFlow {
  0% { background-position: 0% 50%; opacity: 0.06; }
  50% { background-position: 100% 50%; opacity: 0.12; }
  100% { background-position: 0% 50%; opacity: 0.06; }
}



