/* ==========================================================================
   Iconic Studio — Portfolio
   ========================================================================== */

:root {
  --bg: #08080c;
  --bg-alt: #0c0c13;
  --surface: #121219;
  --surface-2: #181822;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f3f7;
  --text-dim: #a5a5b5;
  --text-faint: #6f6f80;

  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --accent-grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --accent-soft: rgba(139, 92, 246, 0.12);
  --accent-2-soft: rgba(34, 211, 238, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 24px 60px -24px rgba(139, 92, 246, 0.5);
  --container: 1180px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background grid texture */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
  white-space: nowrap;
}
/* Balayage lumineux au survol */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.btn-primary {
  background: var(--accent-grad);
  color: #08080c;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(139, 92, 246, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--accent); transform: translateY(-2px); }
.btn-ghost::after { background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.09) 50%, transparent 75%); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
  width: 100%;
  margin-top: 8px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); transform: translateY(-2px); }
.btn-outline::after { background: linear-gradient(100deg, transparent 25%, rgba(34, 211, 238, 0.1) 50%, transparent 75%); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Bouton « Visite guidée » — plus grand que les CTA standard, halo respirant tant
   que la visite n'a jamais été lancée (classe .pulse posée par tour.js) */
.btn-tour {
  padding: 19px 36px;
  font-size: 1.05rem;
  /* <button> par défaut en line-height:normal — on réaligne sur les .btn <a> */
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.07));
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 10px 30px -14px rgba(139, 92, 246, 0.55);
}
.btn-tour:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 42px -14px rgba(139, 92, 246, 0.8);
}
.btn-tour::after { background: linear-gradient(100deg, transparent 25%, rgba(34, 211, 238, 0.14) 50%, transparent 75%); }
.btn-tour .tour-spark { color: var(--accent-2); flex-shrink: 0; }
.btn-tour.pulse { animation: tourGlow 2.8s var(--ease-out) infinite; }
.btn-tour.pulse:hover { animation: none; }
/* Le halo passe par box-shadow : il déborde du bouton malgré son overflow: hidden */
@keyframes tourGlow {
  0%   { box-shadow: 0 10px 30px -14px rgba(139, 92, 246, 0.55), 0 0 0 0 rgba(139, 92, 246, 0.5); }
  70%  { box-shadow: 0 10px 30px -14px rgba(139, 92, 246, 0.55), 0 0 0 14px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 10px 30px -14px rgba(139, 92, 246, 0.55), 0 0 0 0 rgba(139, 92, 246, 0); }
}
.btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* Flèche qui glisse — micro-interaction sur les CTA */
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 8, 12, 0.5);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease-in-out, border-color .3s ease-in-out, box-shadow .3s ease-in-out;
}
.site-header.scrolled {
  background: rgba(8, 8, 12, 0.82);
  border-color: var(--border);
  box-shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.95);
}
/* Filet dégradé qui n'apparaît qu'une fois la page défilée */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.45), rgba(34, 211, 238, 0.45), transparent);
  opacity: 0;
  transition: opacity .3s ease-in-out;
}
.site-header.scrolled::after { opacity: 1; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding .3s ease-in-out;
}
.site-header.scrolled .header-inner { padding-top: 12px; padding-bottom: 12px; }
.logo { transition: opacity .25s ease-in-out; }
.logo:hover { opacity: .82; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.logo-accent { color: var(--accent-2); font-weight: 500; opacity: .8; }

.logo-img { display: block; height: 34px; width: auto; }
.logo-fallback { display: none; align-items: center; gap: 10px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding: 9px 15px;
  border-radius: 999px;
  transition: color .25s ease-in-out, background .25s ease-in-out;
}
/* Soulignement dégradé : esquissé au survol, plein sur la page active */
.nav-link::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link:hover::after { transform: scaleX(0.55); }
.nav-link:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: all .2s ease;
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(139, 92, 246, 0.1); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 16px; height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 100px;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}
.hero-orb-1 { width: 420px; height: 420px; background: var(--accent); top: -120px; left: -80px; }
.hero-orb-2 { width: 380px; height: 380px; background: var(--accent-2); top: 60px; right: -120px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 30px); }
}

.hero-inner { max-width: 780px; }

/* Lighter hero used on inner pages (Services, Réalisations, Tarifs, Contact) */
.page-hero { padding: 158px 0 64px; }
.page-hero .hero-orb { opacity: 0.22; }
.page-hero .hero-title { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 16px; }
.page-hero .hero-sub { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--text);
  margin-bottom: 22px;
}
.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

/* Entrée « Visite guidée » : détachée des CTA principaux pour rester lisible */
.hero-tour {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-tour-note {
  font-size: 0.88rem;
  color: var(--text-faint);
  max-width: 280px;
  line-height: 1.5;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-alt);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.trust-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-tags span {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--text); }
.section-desc { font-size: 1.02rem; margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.section-more { margin-top: 40px; text-align: center; }

/* ---------- Stack band ---------- */
.stack-band {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stack-band .grid { gap: 32px 24px; }
.stack-band-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.stack-col h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 14px;
}
.stack-col .trust-tags { gap: 8px; }
.stack-col .trust-tags span {
  font-size: 0.78rem;
  padding: 6px 12px;
  transition: border-color .25s ease, color .25s ease;
}
.stack-col:hover .trust-tags span {
  border-color: var(--border-strong);
  color: var(--text);
}

.card {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
/* Halo qui suit le curseur — piloté par --mx / --my depuis main.js */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.16), transparent 65%);
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

/* Service cards */
.service-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--accent-2);
  background: linear-gradient(145deg, rgba(139,92,246,0.15), rgba(34,211,238,0.08));
  border: 1px solid var(--border);
  transition: transform .35s var(--ease-spring), border-color .3s ease, box-shadow .3s ease;
}
.card:hover .service-icon {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 10px 26px -12px rgba(34, 211, 238, 0.6);
}
.service-card h3 { font-size: 1.2rem; }
.service-card h3 .tag-live { margin-left: 8px; }
/* Carte de service phare, pleine largeur (page Services) */
.service-lead { grid-column: 1 / -1; padding-top: 42px; }
.service-lead .service-list { columns: 2; column-gap: 28px; }
.service-lead .service-list li { break-inside: avoid; margin-bottom: 10px; }
.service-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
/* Pied de carte de service : tarif de départ + CTA devis (page Services) */
.service-card.has-foot { display: flex; flex-direction: column; }
.service-card.has-foot .service-list { flex-grow: 1; }
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.service-foot .price { margin: 0; font-size: 1.02rem; }
.service-foot .btn { margin-top: 0; width: auto; }
.service-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent-grad);
}

/* ---------- Portfolio ---------- */
.filter-tabs { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.filter-btn:active { transform: scale(0.95); }
.filter-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.filter-btn.active {
  background: var(--accent-grad);
  color: #08080c;
  border-color: transparent;
  box-shadow: 0 8px 22px -10px rgba(139, 92, 246, 0.7);
}

.work-card { padding: 0; overflow: hidden; }
.work-thumb {
  height: 170px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-size: cover;
  transition: transform .5s var(--ease-out);
}
.work-card:hover .work-thumb { transform: scale(1.06); }
/* Voile qui remonte sur la vignette au survol */
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 8, 12, 0.7), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.work-card:hover .work-thumb::after { opacity: 1; }
.work-badge { position: relative; z-index: 1; }
.work-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.thumb-1 { background: radial-gradient(circle at 30% 20%, #7c3aed, transparent 60%), radial-gradient(circle at 80% 80%, #22d3ee, transparent 55%), #14121f; }
.thumb-2 { background: radial-gradient(circle at 70% 30%, #f472b6, transparent 55%), radial-gradient(circle at 20% 80%, #8b5cf6, transparent 55%), #141220; }
.thumb-3 { background: radial-gradient(circle at 50% 0%, #22d3ee, transparent 60%), radial-gradient(circle at 80% 90%, #6366f1, transparent 55%), #101422; }
.thumb-4 { background: radial-gradient(circle at 20% 80%, #f472b6, transparent 55%), radial-gradient(circle at 80% 20%, #7c3aed, transparent 60%), #171220; }
.thumb-5 { background: radial-gradient(circle at 80% 20%, #22d3ee, transparent 55%), radial-gradient(circle at 20% 80%, #6366f1, transparent 60%), #0f1420; }
.thumb-6 { background: radial-gradient(circle at 30% 70%, #8b5cf6, transparent 55%), radial-gradient(circle at 70% 20%, #f472b6, transparent 55%), #161022; }
.thumb-7 { background: radial-gradient(circle at 25% 25%, #22d3ee, transparent 55%), radial-gradient(circle at 75% 75%, #8b5cf6, transparent 60%), #101a1f; }
.thumb-8 { background: radial-gradient(circle at 75% 25%, #f472b6, transparent 55%), radial-gradient(circle at 25% 75%, #22d3ee, transparent 55%), #14101f; }

.work-body { padding: 24px; }
.work-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.work-body p { font-size: 0.9rem; margin-bottom: 16px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-row span {
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.work-card.hidden { display: none; }
/* Réapparition animée après un changement de filtre */
.work-card.pop { animation: cardPop .45s var(--ease-out) both; }
@keyframes cardPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Process ---------- */
.process-grid { position: relative; }
.process-step {
  position: relative;
  overflow: hidden;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .3s ease;
}
/* Liseré dégradé qui se dessine en haut au survol */
.process-step::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.process-step:hover::after { transform: scaleX(1); }
.process-num {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-2);
  display: inline-block;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.9rem; margin: 0; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.why-list { margin-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #08080c;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.why-item h4 { font-size: 1rem; margin-bottom: 4px; }
.why-item p { font-size: 0.88rem; margin: 0; }

.why-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.visual-card {
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.visual-card-1 { margin-left: 40px; }
.visual-card-3 { margin-right: 40px; }
.visual-label { font-size: 0.85rem; color: var(--text-dim); }
.visual-value {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Panel highlight (Bots Discord) ---------- */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.panel-content .section-desc { margin-bottom: 24px; }
.panel-list { margin: 0 0 28px; }

.panel-mock {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.panel-mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.panel-mock-bar .url {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-family: var(--font-body);
}
.panel-mock-body { display: grid; grid-template-columns: 84px 1fr; }
.panel-mock-side { padding: 18px 12px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.panel-mock-side span { height: 8px; border-radius: 4px; background: var(--border-strong); }
.panel-mock-side span:first-child { width: 60%; background: var(--accent-2); opacity: .6; }
.panel-mock-main { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.panel-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.panel-mock-stat {
  height: 54px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.08));
}
.panel-mock-chart {
  flex-grow: 1;
  min-height: 110px;
  border-radius: 10px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.panel-mock-chart::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.16), transparent 70%),
    linear-gradient(100deg, transparent 0 15%, rgba(34, 211, 238, 0.16) 40%, transparent 70%);
  clip-path: polygon(0 78%, 14% 55%, 28% 66%, 42% 34%, 58% 50%, 72% 24%, 86% 42%, 100% 18%, 100% 100%, 0 100%);
}

/* ---------- Contact (Contact page) ---------- */
.contact-hub {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  align-items: start;
}
.contact-panel { padding: 30px; }
.contact-panel > h3 {
  font-size: 1.12rem;
  margin: 0 0 6px;
}
.contact-panel-sub {
  font-size: 0.88rem;
  color: var(--text-faint);
  margin: 0 0 24px;
}
.contact-panel .field:last-of-type { margin-bottom: 22px; }

/* Colonne de droite : canaux directs, sans répéter la mise en carte du formulaire */
.contact-direct { display: flex; flex-direction: column; gap: 14px; }
.direct-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s ease-in-out, transform .25s var(--ease-out), background .25s ease-in-out;
}
a.direct-row:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }
.direct-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent-2);
}
.direct-body { flex: 1; min-width: 0; }
.direct-body strong { display: block; font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 2px; }
.direct-body span { display: block; font-size: 0.82rem; color: var(--text-faint); overflow-wrap: anywhere; }
.direct-row .arrow { flex-shrink: 0; color: var(--text-faint); transition: transform .25s var(--ease-out), color .25s ease-in-out; }
a.direct-row:hover .arrow { transform: translateX(3px); color: var(--accent-2); }

/* Copie de l'adresse email en un clic */
.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .25s ease-in-out, border-color .25s ease-in-out, background .25s ease-in-out;
}
.copy-btn:hover { color: var(--text); border-color: var(--accent); background: rgba(139, 92, 246, 0.1); }
.copy-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.copy-btn.copied { color: var(--accent-2); border-color: rgba(34, 211, 238, 0.5); background: var(--accent-2-soft); }
.copy-btn .copy-ok { display: none; }
.copy-btn.copied .copy-ok { display: inline; }
.copy-btn.copied .copy-idle { display: none; }


/* ---------- Pricing ---------- */
.pricing-card { display: flex; flex-direction: column; position: relative; }

/* ---------- Grille 3 colonnes à seconde rangée centrée (services & tarifs) ----------
   Base de 6 colonnes : chaque carte en occupe 2, ce qui permet de recentrer les
   deux dernières cartes sous les trois premières au lieu de les laisser à gauche. */
.tri-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  align-items: stretch;
}
.tri-grid > * { grid-column: span 2; }
.tri-grid > *:nth-child(4) { grid-column: 2 / span 2; }
.tri-grid > *:nth-child(5) { grid-column: 4 / span 2; }

/* ---------- Carte mise en avant (service phare) ---------- */
.card.featured {
  position: relative;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-glow);
}
.card.featured:hover { box-shadow: 0 0 0 1px var(--accent) inset, 0 30px 70px -24px rgba(139, 92, 246, 0.65); }
.card.featured::before {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.2), transparent 65%);
}
/* Débord vertical : la carte phare dépasse de sa rangée, sans casser l'alignement */
.tri-grid > .card.featured {
  margin-top: -18px;
  margin-bottom: -18px;
  padding-top: 42px;
}
.card-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-grad);
  color: #08080c;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 22px -10px rgba(139, 92, 246, 0.9);
}
.pricing-card h3 { font-size: 1.1rem; }
.price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.price span { color: var(--accent-2); }
.price-desc { font-size: 0.9rem; }
.pricing-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 4px; flex-grow: 1; }
.pricing-list li {
  font-size: 0.87rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-size: 0.8rem;
}

/* Grille comparative des prestations (page Tarifs) — les 4 offres tiennent
   dans un seul écran ; le détail secondaire vit dans l'accordéon .pricing-more */
.pricing-grid .pricing-card { padding: 26px 22px; gap: 0; }
.pricing-grid > .pricing-card.featured { padding-left: 24px; padding-right: 24px; }
.pricing-card-name {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.pricing-grid .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 2rem;
  margin: 0;
  line-height: 1;
}
.price-from {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-grid .price-desc {
  font-size: 0.86rem;
  margin: 12px 0 0;
  min-height: 3.6em;
}
.pricing-sep { height: 1px; background: var(--border); margin: 20px 0 18px; }
.pricing-grid .pricing-list { gap: 11px; margin: 0; }
.pricing-grid .pricing-list li { font-size: 0.85rem; padding-left: 24px; }
.pricing-grid .pricing-list li::before {
  content: "";
  top: 5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.4);
}
/* Coche dessinée en CSS, pour garder des puces légères et homogènes */
.pricing-grid .pricing-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 9px;
  width: 4px; height: 7px;
  border: solid var(--accent-2);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

/* Accordéon natif : les majorations et options n'écrasent plus la carte */
.pricing-more {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.pricing-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .25s ease-in-out;
}
.pricing-more > summary::-webkit-details-marker { display: none; }
.pricing-more > summary:hover { color: var(--text); }
.pricing-more > summary::after {
  content: "";
  width: 7px; height: 7px;
  border: solid var(--text-faint);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease-out), border-color .25s ease-in-out;
}
.pricing-more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.pricing-more > summary:hover::after { border-color: var(--accent-2); }
.pricing-more-body { padding-top: 14px; animation: moreIn .3s ease-in-out; }
@keyframes moreIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pricing-more-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 8px;
}
.pricing-more-body .pricing-more-title:not(:first-child) { margin-top: 16px; }
.mini-list { display: flex; flex-direction: column; gap: 7px; }
.mini-list li {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.mini-list li strong { color: var(--accent-2); font-weight: 600; white-space: nowrap; }
.mini-list li.is-off { color: var(--text-faint); }
.mini-list li.is-off em { font-style: normal; color: var(--text-faint); font-size: 0.74rem; text-align: right; }
/* CTA collé au bas de la carte : les boutons restent alignés même si la carte
   phare est plus haute que ses voisines */
.pricing-grid .pricing-more { margin-bottom: 20px; }
.pricing-grid > .pricing-card > .btn { margin-top: auto; width: 100%; }

/* Bandeau de réassurance paiement */
.pay-trust {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 26px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(600px circle at 12% 0%, rgba(99, 91, 255, 0.14), transparent 60%),
    var(--surface);
}
.pay-trust-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  border: 1px solid rgba(99, 91, 255, 0.4);
  background: rgba(99, 91, 255, 0.12);
  color: #a5a0ff;
}
.pay-trust-body { flex: 1 1 380px; }
.pay-trust-body h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pay-trust-body p { font-size: 0.87rem; margin: 0; }
.pay-badge {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Pastille « en ligne » — fonctionnalité active, par opposition à .pay-badge (à venir) */
.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: var(--accent-2-soft);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-live::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
  70%  { box-shadow: 0 0 0 5px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

/* Encart de réassurance paiement, réutilisé sur le formulaire de devis */
.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.secure-note svg { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.secure-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-faint);
}
.secure-note strong { color: var(--text-dim); }
.pay-trust-marks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-faint);
}
.pay-trust-marks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  white-space: nowrap;
}
.pay-trust-marks svg { color: var(--accent-2); }

/* ---------- CTA / Contact ---------- */
.cta-section { text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner .section-kicker { justify-content: center; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.cta-inner .assurance { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-top: 48px; background: var(--bg-alt); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.88rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  transition: all .2s ease;
}
.footer-socials a:hover { color: var(--text); border-color: var(--border-strong); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--text-faint); }

/* ---------- Reveal animation ---------- */
/* --d : délai injecté par main.js pour l'effet en cascade dans une grille */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .7s var(--ease-out) var(--d, 0ms),
    transform .7s var(--ease-out) var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; will-change: auto; }

/* Variantes directionnelles */
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal-zoom { transform: scale(0.94); }

/* ---------- Compteurs animés (stats du hero) ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- Barre CTA collante (pages de conversion) ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 780;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 12, 19, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out), opacity .3s ease;
  opacity: 0;
}
.sticky-cta.visible { transform: translate(-50%, 0); opacity: 1; }
.sticky-cta p { margin: 0; font-size: 0.88rem; color: var(--text-dim); white-space: nowrap; }
.sticky-cta strong { color: var(--text); font-family: var(--font-head); }
.sticky-cta-close {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1rem;
  line-height: 1;
}
.sticky-cta-close:hover { color: var(--text); }

@media (max-width: 700px) {
  .sticky-cta { gap: 10px; padding-left: 16px; }
  .sticky-cta p { display: none; }
}

/* ---------- Bandeau de réassurance ---------- */
.assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.assurance span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.assurance svg { color: var(--accent-2); flex-shrink: 0; }

/* ---------- FAQ (accordéon) ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
}
.faq-q:hover { color: var(--accent-2); }
.faq-q:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
  transition: transform .3s var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent-2);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; transition: opacity .3s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-icon::after { opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-out);
}
.faq-a p { margin: 0; padding: 0 24px 22px; font-size: 0.92rem; }

/* ---------- Devis : formulaire (page devis.html) ---------- */
.quote-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 40px;
  align-items: start;
}

.quote-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 36px;
}
.quote-step { margin-bottom: 38px; }
.quote-step:last-of-type { margin-bottom: 28px; }
.quote-step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.quote-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #08080c;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.quote-step-head h2 { font-size: 1.1rem; margin: 0; }
.quote-step-hint { font-size: 0.86rem; color: var(--text-faint); margin: 0 0 20px; padding-left: 40px; }

/* Cartes de choix de service */
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .25s ease, transform .25s var(--ease-out), background .25s ease;
}
.choice:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-mark {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s ease, background .2s ease;
}
.choice-mark::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-grad);
  transform: scale(0);
  transition: transform .25s var(--ease-spring);
}
.choice-body strong { display: block; font-family: var(--font-head); font-size: 0.98rem; margin-bottom: 3px; }
.choice-body span { font-size: 0.82rem; color: var(--text-faint); }
.choice-price { display: block; font-size: 0.82rem; color: var(--accent-2); margin-top: 6px; font-weight: 600; }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(34, 211, 238, 0.05));
}
.choice:has(input:checked) .choice-mark { border-color: var(--accent); }
.choice:has(input:checked) .choice-mark::after { transform: scale(1); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice:has(input:disabled):hover { border-color: var(--border); transform: none; }

/* Cellule regroupant une option et son lien de démo */
.choice-cell { display: flex; flex-direction: column; gap: 8px; }
.choice-cell .choice { flex-grow: 1; }
.choice-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  padding-left: 4px;
}
.choice-link:hover .arrow { transform: translateX(3px); }

/* Mention affichée quand une option n'est pas ouverte pour la prestation choisie */
.choice-body .opt-note {
  display: block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--accent-2);
}
.choice-body .opt-note:empty { display: none; }

/* Champs */
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.field label .opt { color: var(--text-faint); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a5a5b5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}
.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--accent-3);
  margin-top: 7px;
}
.field.invalid input,
.field.invalid textarea { border-color: var(--accent-3); }
.field.invalid .field-error { display: block; }
.char-count { display: block; text-align: right; font-size: 0.76rem; color: var(--text-faint); margin-top: 7px; }

/* Encart Discord recommandé */
.discord-push {
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.14), rgba(34, 211, 238, 0.05));
  padding: 26px;
  margin-bottom: 32px;
}
.discord-push-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.discord-push-head h3 { margin: 0; font-size: 1.05rem; }
.discord-push-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-grad);
  color: #08080c;
}
.discord-push p { font-size: 0.9rem; margin-bottom: 16px; }
.discord-push .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.discord-push-note {
  font-size: 0.84rem;
  color: var(--text-faint);
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Récapitulatif collant */
.quote-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.recap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
}
.recap h3 { font-size: 1rem; margin-bottom: 18px; }
.recap-list { display: flex; flex-direction: column; gap: 14px; }
.recap-row { display: flex; justify-content: space-between; gap: 14px; font-size: 0.88rem; }
.recap-row dt { color: var(--text-faint); flex-shrink: 0; }
.recap-row dd { margin: 0; text-align: right; color: var(--text); font-weight: 500; }
.recap-row dd.empty { color: var(--text-faint); font-weight: 400; font-style: italic; }
.recap-total {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.recap-total span { font-size: 0.85rem; color: var(--text-dim); }
.recap-total strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Zone de soumission */
.quote-submit { border-top: 1px solid var(--border); padding-top: 26px; }
.quote-submit .btn-primary { width: 100%; padding: 16px; font-size: 1rem; }
.quote-legal { font-size: 0.8rem; color: var(--text-faint); margin: 14px 0 0; text-align: center; }

/* États de retour */
.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  margin-bottom: 20px;
  line-height: 1.55;
}
.form-status.show { display: flex; }
.form-status.ok { background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.35); color: var(--text); }
.form-status.err { background: rgba(244, 114, 182, 0.1); border: 1px solid rgba(244, 114, 182, 0.35); color: var(--text); }
.form-status svg { flex-shrink: 0; margin-top: 2px; }
.form-status a { color: var(--accent-2); text-decoration: underline; }

/* Écran de confirmation */
.quote-done { display: none; text-align: center; padding: 60px 32px; }
.quote-done.show { display: block; animation: cardPop .5s var(--ease-out) both; }
.quote-done-icon {
  width: 68px; height: 68px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-grad);
  color: #08080c;
}
.quote-done h2 { font-size: 1.5rem; }
.quote-done p { max-width: 460px; margin-left: auto; margin-right: auto; }
.quote-done .cta-buttons { margin-top: 24px; }

/* Spinner du bouton d'envoi */
.btn .spinner {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(8, 8, 12, 0.3);
  border-top-color: #08080c;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .quote-layout { grid-template-columns: 1fr; gap: 28px; }
  .quote-aside { position: static; }
}
@media (max-width: 620px) {
  .quote-form { padding: 24px 20px; }
  .choice-grid, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
}

/* ---------- Guided tour ---------- */
.tour-trigger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.tour-trigger:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-2); }
.tour-trigger svg { color: var(--accent-2); flex-shrink: 0; }
/* Halo pulsé pour attirer l'œil lors de la première visite */
.tour-trigger.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  animation: tourPulse 2.4s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes tourPulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 9, 0.78);
  backdrop-filter: blur(3px);
  z-index: 900;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.tour-overlay.visible { opacity: 1; pointer-events: auto; }

.tour-spotlight {
  position: relative;
  z-index: 950;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 6px var(--accent),
    0 0 34px 6px rgba(139, 92, 246, 0.45),
    0 25px 60px -15px rgba(0, 0, 0, .7);
  animation: spotlightIn .45s var(--ease-out) both;
}
@keyframes spotlightIn {
  from { box-shadow: 0 0 0 4px var(--bg), 0 0 0 14px rgba(139, 92, 246, 0), 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* ---------- Carte d'étape ---------- */
.tour-tooltip {
  position: fixed;
  top: -9999px;
  left: -9999px;
  z-index: 960;
  width: min(400px, calc(100vw - 32px));
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(139, 92, 246, 0.2);
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out);
}
.tour-tooltip.visible { opacity: 1; transform: none; }

/* Barre de progression en haut de la carte */
.tour-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.07);
}
.tour-progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent-grad);
  border-radius: 0 3px 3px 0;
  transition: width .45s var(--ease-out);
}

.tour-body { padding: 24px 24px 20px; }

.tour-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tour-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-2-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
}
.tour-step-count {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-faint);
  margin: 0;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.tour-title { font-size: 1.15rem; margin: 0 0 10px; }
.tour-text { font-size: 0.92rem; margin: 0 0 16px; line-height: 1.65; }

/* Point clé mis en avant dans l'étape */
.tour-tip {
  display: none;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border-left: 2px solid var(--accent-2);
}
.tour-tip.show { display: flex; }
.tour-tip svg { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }

/* Pastilles de navigation directe */
.tour-dots { display: flex; gap: 5px; margin-bottom: 18px; flex-wrap: wrap; }
.tour-dot {
  width: 7px; height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background .25s ease, transform .25s var(--ease-spring), width .25s var(--ease-out);
}
.tour-dot:hover { background: var(--text-dim); transform: scale(1.3); }
.tour-dot.done { background: rgba(139, 92, 246, 0.55); }
.tour-dot.current { width: 20px; border-radius: 999px; background: var(--accent-grad); }
.tour-dot:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tour-skip { background: none; border: none; color: var(--text-faint); font-size: 0.82rem; cursor: pointer; padding: 4px; font-family: var(--font-body); transition: color .2s ease; }
.tour-skip:hover { color: var(--text-dim); text-decoration: underline; }
.tour-nav { display: flex; gap: 8px; }
.tour-prev:disabled { opacity: 0.35; cursor: not-allowed; }
.tour-prev:disabled:hover { transform: none; }

/* Raccourcis clavier */
.tour-keys {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-align: center;
  margin: 12px 0 0;
}
.tour-keys kbd {
  font-family: var(--font-body);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .tour-trigger span { display: none; }
  .tour-trigger { padding: 12px; }
  .tour-body { padding: 20px 18px 16px; }
  .tour-keys { display: none; }
  .tour-actions { justify-content: center; }
  .tour-nav { width: 100%; }
  .tour-nav .btn { flex: 1; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-orb { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Deux cartes par rangée, la dernière recentrée */
  .tri-grid { grid-template-columns: repeat(4, 1fr); }
  .tri-grid > *:nth-child(4) { grid-column: auto / span 2; }
  .tri-grid > *:nth-child(5) { grid-column: 2 / span 2; }
  .pricing-grid .price-desc { min-height: 0; }
  .contact-hub { grid-template-columns: 1fr; }
  .why-grid, .panel-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 72px; left: 16px; right: 16px;
    background: rgba(10, 10, 16, 0.86);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    transform: translateY(-10px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease-in-out, transform .28s var(--ease-out);
  }
  .main-nav.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
  .main-nav .nav-link {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.98rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: color .25s ease-in-out, background .25s ease-in-out,
                opacity .3s ease-in-out var(--nav-d, 0ms), transform .3s var(--ease-out) var(--nav-d, 0ms);
  }
  /* Les liens se posent en cascade une fois le panneau ouvert */
  .main-nav.open .nav-link { opacity: 1; transform: translateY(0); }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-link:hover { background: rgba(255, 255, 255, 0.06); }
  .main-nav .nav-link.active {
    background: linear-gradient(120deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.08));
    box-shadow: inset 2px 0 0 var(--accent);
  }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* Empilement : la carte phare passe en tête */
  .tri-grid { grid-template-columns: 1fr; }
  .tri-grid > *,
  .tri-grid > *:nth-child(4),
  .tri-grid > *:nth-child(5) { grid-column: auto; }
  .tri-grid > .card.featured { order: -1; margin-top: 0; margin-bottom: 0; padding-top: 42px; }
  .service-lead .service-list { columns: 1; }
  .pay-trust { padding: 22px; gap: 18px; }
  .hero { padding-top: 140px; }
  .hero-tour { gap: 12px; }
  .hero-tour .btn-tour { width: 100%; }
  .hero-tour-note { max-width: none; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
}
