/* =====================================================
   NAIS — Site 3 (App + Landing)
   Charte officielle : noir / blanc / accents pop.
   Typos : Inter · Instrument Serif Italic · Bebas Neue
   ===================================================== */

:root {
  /* Neutres */
  --ink:        #0F0F0F;
  --ink-soft:   #181818;
  --ink-elev:   #1C1C1C;
  --ink-card:   #232323;
  --ink-card-2: #2A2A2A;
  --paper:      #FAFAFA;
  --paper-soft: #E5E3DC;
  --muted:      #9B9B96;
  --muted-2:    #6F6F6B;
  --line:       #2C2C2C;
  --line-soft:  #232323;

  /* Accents pop officiels */
  --lime:       #E2FF0F;
  --cyan:       #00A8BD;
  --teal:       #28FFA2;
  --pink:       #FF2E8C;
  --pink-soft:  #FFB8D8;
  --red:        #FF402D;
  --blue:       #0047FD;
  --blue-soft:  #A2BCFF;
  --indigo:     #2215C2;
  --violet:     #5B118C;

  /* Statut sémantique */
  --st-pending: var(--cyan);
  --st-validated: var(--lime);
  --st-action:  var(--pink);
  --st-cancel:  var(--red);
  --st-active:  var(--lime);
  --st-paused:  var(--muted);
  --st-done:    var(--paper-soft);

  /* Radius */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Décalage pour que les sections ne passent pas sous le header sticky */
:target, #top, #catalogue, #pricing, #footer { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--ink-soft);
  color: var(--paper);
  line-height: 1.5;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto;  }

/* ---------- Typo ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; color: var(--paper); }
.display {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: .92;
  text-transform: uppercase;
}
h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.08; }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
p  { margin: 0; color: var(--paper-soft); }

.serif {
  font-family: "Instrument Serif", "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--pink);
}
.serif.lime  { color: var(--lime); }
.serif.cyan  { color: var(--cyan); }
.serif.blue  { color: var(--blue-soft); }
.serif.paper { color: var(--paper); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--ink-card);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.lead {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--paper-soft);
  line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm  { height: 36px; padding: 0 14px; font-size: 12px; border-radius: 10px; }
.btn-lg  { height: 52px; padding: 19.981px 35.666px; font-size: 15px; border-radius: 399.616px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  font-weight: 600;
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(226,255,15,0.18); }

.btn-pop {
  background: var(--pink);
  color: var(--paper);
  border-color: var(--pink);
  font-weight: 600;
}
.btn-pop:hover { box-shadow: 0 10px 28px rgba(255,46,140,0.25); }

.btn-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-paper:hover { background: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--paper); background: var(--ink-card); }
.btn-ghost.btn-lg { border-color: var(--lime); }
.btn-ghost.btn-lg:hover { border-color: var(--lime); }

.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { border-color: var(--lime); color: var(--lime); }

.btn-arrow { transition: transform .25s var(--ease); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Public Header ---------- */
.public-nav {
  position: sticky; top: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(15,15,15,0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.public-nav .logo img { height: 22px; width: auto; }
.public-nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero (landing) ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 28px clamp(60px, 8vh, 120px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(226,255,15,0.05), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(255,46,140,0.06), transparent 55%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 {
  font-family: "Bebas Neue", "Inter", sans-serif;
  font-size: clamp(52px, 7.4vw, 108px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: 0.005em;
}
.hero h1 .serif { text-transform: none; font-size: 0.85em; line-height: 1; }
.hero-desc { font-size: clamp(15px, 1.2vw, 18px); color: var(--paper-soft); max-width: 600px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-meta {
  display: flex; gap: 22px; margin-top: 12px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span::before {
  content: ""; display: inline-block;
  width: 5px; height: 5px; margin-right: 8px;
  border-radius: 50%; background: var(--lime); vertical-align: middle;
}

/* NAÏS mascot placeholder (CSS robot until PNG is provided) */
.nais-mascot {
  width: clamp(140px, 18vw, 220px);
  aspect-ratio: 1;
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background:
    radial-gradient(circle at 50% 36%, #FFFFFF 0%, #E8E5DC 70%, #C7C5BC 100%);
  position: relative;
  margin: 0 auto;
  box-shadow:
    inset 0 -14px 30px rgba(0,0,0,0.18),
    0 24px 60px rgba(226,255,15,0.12),
    0 4px 0 #6F6F6B inset;
}
.nais-mascot::before, .nais-mascot::after {
  content: "";
  position: absolute;
  top: 40%; width: 18%; height: 18%;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.18), 0 0 0 3px rgba(255,255,255,0.6);
}
.nais-mascot::before { left: 22%; }
.nais-mascot::after  { right: 22%; }
.nais-mascot .smile {
  position: absolute;
  bottom: 22%; left: 50%;
  width: 26%; height: 6%;
  border-radius: 0 0 50% 50%;
  background: var(--ink);
  transform: translateX(-50%);
}
.nais-mascot .antenna {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 16%;
  background: var(--paper);
  border-radius: 4px;
}
.nais-mascot .antenna::after {
  content: "";
  position: absolute; top: -6px; left: -4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: blink 2.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { box-shadow: 0 0 8px var(--lime); }
  50%      { box-shadow: 0 0 18px var(--lime); }
}
.nais-mascot--xs {
  width: 36px; height: 36px;
  border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;
}
.nais-mascot--xs::before, .nais-mascot--xs::after {
  width: 20%; height: 20%;
}

/* ---------- Sections ---------- */
.block { padding: clamp(70px, 9vw, 110px) 0; position: relative; }
.block + .block { border-top: 1px solid var(--line-soft); }
.block-tight { padding: clamp(50px, 6vw, 80px) 0; }

.section-head {
  max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}

/* ---------- Concept / Comment ça marche ---------- */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.concept-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.concept-card:hover { transform: translateY(-3px); border-color: var(--line); }
.concept-card.accent-lime  { border-top: 3px solid var(--lime); }
.concept-card.accent-pink  { border-top: 3px solid var(--pink); }
.concept-card.accent-cyan  { border-top: 3px solid var(--cyan); }
.concept-card.accent-blue  { border-top: 3px solid var(--blue); }
.concept-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 38px;
  line-height: 1;
  color: var(--paper);
}
.concept-card h3 { font-size: 17px; font-weight: 600; }
.concept-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pricing-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: transform .25s var(--ease);
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card.featured {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.pricing-card.featured .pricing-name,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-suffix,
.pricing-card.featured .pricing-features li { color: var(--ink); gap: 10px}
.pricing-card.featured .pricing-desc { color: rgba(255, 255, 255, 0.45); }
.pricing-card.featured .pricing-divider { background: rgba(15,15,15,0.15); }
.pricing-card.featured .btn-primary { background: var(--ink); color: var(--lime); border-color: var(--ink); }

.pricing-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
}
.pricing-name {
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.pricing-price {
  font-family: "Bebas Neue", sans-serif;
  font-size: 52px; line-height: 1;
  letter-spacing: 0;
  color: var(--paper);
}
.pricing-suffix { font-size: 12px; color: var(--muted); margin-left: 6px; }
.pricing-desc { font-size: 13px; line-height: 1.5; color:rgba(255, 255, 255, 0.45); min-height: 38px; }
.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
  font-size: 13px; color: var(--paper);
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li::before {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-top: 3px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 7.2 5.5 10 11.5 4' stroke='%23E2FF0F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.pricing-card.featured .pricing-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 7.2 5.5 10 11.5 4' stroke='%23181818' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pricing-divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.pricing-card .btn { margin-top: auto; border-radius: 100px; }

/* ---------- Catalogue (public + app) ---------- */
.brique-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.brique-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
}
.brique-card:hover { transform: translateY(-2px); border-color: var(--paper-soft); }
.brique-card.is-locked { opacity: 0.6; cursor: default; }
.brique-card.is-locked:hover { transform: none; border-color: var(--line); }

/* ---------- Catalogue groupé par blocs ---------- */
.cat-block { margin-bottom: 44px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-block-intro {
  margin-bottom: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(226,255,15,.05), transparent 65%);
}
.cat-block-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.cat-block-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); display: inline-block; }
.cat-block-headrow { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cat-block-title { font-family: "Bebas Neue", sans-serif; font-size: 40px; line-height: 1; letter-spacing: .01em; }
.cat-block-count {
  font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink);
  background: var(--lime); padding: 3px 10px; border-radius: var(--r-pill); font-weight: 500;
}
.cat-block-tagline { color: var(--paper); font-size: 15px; font-weight: 600; margin-top: 8px; }
.cat-block-desc { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 6px; max-width: 760px; }

.cat-subcat { margin-bottom: 22px; }
.cat-subcat:last-child { margin-bottom: 0; }
.cat-subcat-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--paper);
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.cat-subcat-count {
  font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 1px 8px;
}

/* ---------- Modal détail enrichi ---------- */
.detail-section { margin-top: 18px; }
.detail-h4 {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.detail-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.detail-bullets li { position: relative; padding-left: 20px; font-size: 14px; color: var(--paper); line-height: 1.5; }
.detail-bullets li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.detail-bullets--check li::before { content: "✓"; color: var(--teal); }
.detail-ideal {
  margin-top: 18px; padding: 14px 16px; border-radius: var(--r);
  background: rgba(0,168,189,.06); border: 1px solid rgba(0,168,189,.25);
}
.detail-ideal-label {
  display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 4px; font-weight: 700;
}
.detail-ideal p { margin: 0; font-size: 14px; color: var(--paper); line-height: 1.5; }

@media (max-width: 760px) {
  .cat-block-intro { padding: 18px 16px; }
  .cat-block-title { font-size: 32px; }
  .cat-block { margin-bottom: 32px; }
}
.brique-head { display: flex; justify-content: space-between; align-items: center; }
.brique-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; color: var(--muted-2); letter-spacing: .04em;
}
.brique-status {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--muted);
}
.brique-status.is-prod { color: var(--lime); border-color: rgba(226,255,15,0.35); background: rgba(226,255,15,0.06); }
.brique-status.is-soon { color: var(--cyan); border-color: rgba(0,168,189,0.35); background: rgba(0,168,189,0.06); }
.brique-status.is-locked { color: var(--pink); border-color: rgba(255,46,140,0.35); background: rgba(255,46,140,0.06); }
.brique-title { font-size: 16px; font-weight: 600; color: var(--paper); line-height: 1.3; }
.brique-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.brique-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.brique-tag {
  font-size: 10px; font-weight: 500; letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--ink-elev);
  color: var(--muted);
  text-transform: uppercase;
}
.brique-foot {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.brique-cost { font-size: 13px; color: var(--paper); font-weight: 600; }
.brique-cost.is-min { color: var(--muted); font-weight: 500; }
.brique-cost.is-min::before { content: "À partir de "; font-weight: 400; color: var(--muted-2); }

/* ---------- Filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}
.filter-group {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
}
.filter-chip {
  background: transparent; border: 0;
  font-family: inherit;
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.filter-chip:hover { color: var(--paper); }
.filter-chip.is-active { background: var(--lime); color: var(--ink); font-weight: 600; }

.search-input {
  flex: 1;
  min-width: 200px;
  height: 40px;
  padding: 0 16px 0 38px;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%239B9B96' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 14px;
}
.search-input:focus { outline: 0; border-color: var(--lime); }

/* ---------- Forms ---------- */
.form { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted-2); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 0;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(226,255,15,0.14);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--muted-2); text-align: center; }
.form-error { color: var(--red); font-size: 12px; }
.field-hint { font-size: 12px; color: var(--muted-2); margin-top: 8px; line-height: 1.5; }
.field-hint strong { color: var(--paper); font-weight: 600; }
.label-opt { color: var(--muted-2); font-weight: 400; text-transform: none; letter-spacing: 0; }
.cost-type { font-size: 12px; color: var(--muted); }

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: var(--ink);
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(226,255,15,0.08), transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255,46,140,0.08), transparent 50%);
  pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side .nais-mascot { margin-top: auto; }
.auth-side blockquote {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--paper);
  margin: 0;
  max-width: 360px;
}
.auth-side cite { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); font-style: normal; }
.auth-form-wrap {
  padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--ink-soft);
}
.auth-form { width: 100%; max-width: 380px; margin: 0 auto; }
.auth-form h1 { font-family: "Bebas Neue", sans-serif; font-size: 44px; line-height: .95; }
.auth-form p.lead { margin-top: 10px; margin-bottom: 32px; font-size: 14px; }
.auth-form .form-input { background: var(--ink-card); }
.auth-form .switch {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-form .switch a { color: var(--lime); }

@media (max-width: 760px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 28px; min-height: 280px; }
  .auth-form-wrap { padding: 28px; }
}

/* ============================================
   APP (logged-in) — Header + Sidebar + Main
   ============================================ */
.app {
  min-height: 100svh;
  background: var(--ink-soft);
}
.app-header {
  position: sticky; top: 0;
  z-index: 30;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.app-header .logo img { height: 20px; }
.app-header-right { display: flex; align-items: center; gap: 14px; }

.credit-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  background: var(--ink-card);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--paper);
}
.credit-pill .num { font-weight: 700; color: var(--lime); font-size: 14px; }
.credit-pill .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.credit-pill .upcoming {
  font-size: 11px; color: var(--cyan); padding-left: 10px; margin-left: 6px; border-left: 1px solid var(--line);
}

.profile-menu { position: relative; }
.profile-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 14px 5px 5px;
  font-size: 13px; color: var(--paper);
  cursor: pointer;
}
.profile-btn:hover { border-color: var(--paper-soft); }
.profile-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}
.profile-plan { color: var(--muted); font-size: 11px; }
.profile-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 240px;
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  display: none;
}
.profile-dropdown.is-open { display: block; }
.profile-dropdown a, .profile-dropdown button {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 13px; color: var(--paper);
  border-radius: 8px;
  text-align: left;
}
.profile-dropdown a:hover, .profile-dropdown button:hover { background: var(--ink-elev); }
.profile-dropdown hr { height: 1px; background: var(--line); border: 0; margin: 4px 6px; }
.profile-dropdown .signout { color: var(--red); }

/* Sidebar + main layout */
.app-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100svh - 64px);
}
.app-sidebar {
  background: var(--ink);
  border-right: 1px solid var(--line-soft);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 4px;
  position: sticky;
  top: 64px;
  height: calc(100svh - 64px);
  overflow-y: auto;
}
.sidebar-group-title {
  font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
  padding: 14px 12px 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--paper-soft);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.sidebar-link:hover { background: var(--ink-card); color: var(--paper); }
.sidebar-link.is-active {
  background: var(--ink-card);
  color: var(--lime);
}
.sidebar-link.is-active .ic { color: var(--lime); }
.sidebar-link .ic {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.sidebar-link .count {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px;
  background: var(--ink-elev);
  border-radius: var(--r-pill);
  color: var(--muted);
}
.sidebar-link.is-active .count { background: var(--lime); color: var(--ink); }
.sidebar-divider { height: 1px; background: var(--line-soft); margin: 12px 0; }
.sidebar-footer { margin-top: auto; padding-top: 16px; }

.app-main {
  padding: 32px 32px 80px;
  max-width: none;
  width: 100%;
}
.app-main-inner { max-width: 1200px; margin: 0 auto; }

.page-title {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-title h1 { font-family: "Bebas Neue", sans-serif; font-size: 42px; letter-spacing: 0.005em; }
.page-title p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.page-title-actions { display: flex; gap: 8px; }

/* ---------- Premiers pas (welcome) ---------- */
.welcome {
  background: linear-gradient(135deg, var(--ink-card) 0%, var(--ink-card-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.welcome::before {
  content: "";
  position: absolute; top: -20%; right: -10%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(226,255,15,0.12), transparent 70%);
  pointer-events: none;
}
.welcome-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; position: relative; }
.welcome-text h2 { font-family: "Bebas Neue", sans-serif; font-size: 44px; line-height: .95; margin-bottom: 14px; }
.welcome-text p { font-size: 14.5px; color: var(--paper-soft); line-height: 1.65; margin-bottom: 24px; max-width: 480px; }
.welcome-steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.welcome-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px;
  color: var(--paper-soft);
}
.welcome-steps li::before {
  content: counter(s);
  counter-increment: s;
  width: 22px; height: 22px;
  background: var(--lime); color: var(--ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
  flex-shrink: 0;
}
.welcome-steps { counter-reset: s; }
.welcome-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.welcome-mascot { display: flex; justify-content: center; align-items: center; }
.welcome-mascot-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(226,255,15,0.18)) drop-shadow(0 8px 18px rgba(0,0,0,0.45));
  animation: mascot-float 5.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}

/* Jauge de crédits (dashboard) */
.stat-unit { font-size: 16px; color: var(--muted); font-family: inherit; }
.credit-gauge { margin: 10px 0 2px; }
.credit-gauge-bar { height: 7px; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); overflow: hidden; }
.credit-gauge-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--cyan), var(--lime)); transition: width .5s var(--ease); }
.credit-gauge-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; font-size: 11px; color: var(--muted); }
.credit-gauge-legend .g-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.credit-gauge-legend .g-rest { background: var(--lime); }
.credit-gauge-legend .g-used { background: var(--muted-2); }

/* Toast de confirmation */
.nais-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--lime); color: var(--ink);
  font-size: 13px; font-weight: 600;
  padding: 12px 20px; border-radius: var(--r-pill);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.05);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 1000;
}
.nais-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Dans l'app (dashboard), les sections « block-tight » ne doivent pas reprendre
   le padding géant des sections landing : on impose un rythme vertical homogène. */
.app-main-inner .block-tight { padding: 0; margin-bottom: 28px; }
.app-main-inner .block-tight .section-head { margin-bottom: 14px; }
.app-main-inner > section:last-child { margin-bottom: 0; }

/* ---------- Stat tiles ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat-tile {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-tile .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-tile .val { font-family: "Bebas Neue", sans-serif; font-size: 32px; line-height: 1; color: var(--paper); }
.stat-tile .delta { font-size: 11px; color: var(--lime); margin-top: 2px; }
.stat-tile.accent-pink .val { color: var(--pink); }
.stat-tile.accent-cyan .val { color: var(--cyan); }
.stat-tile.accent-lime .val { color: var(--lime); }

/* ---------- Tasks table ---------- */
.tasks-table {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tasks-header, .task-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr 0.7fr 1fr 1fr 0.6fr;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  font-size: 13px;
}
.tasks-header {
  background: var(--ink-elev);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
}
.task-row { border-bottom: 1px solid var(--line-soft); transition: background .15s var(--ease); }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--ink-elev); }
.task-name {
  display: flex; flex-direction: column; gap: 4px;
}
.task-name strong { font-size: 14px; font-weight: 600; color: var(--paper); }
.task-name span { font-size: 11.5px; color: var(--muted-2); }
.task-type {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--ink-elev); color: var(--muted);
  display: inline-flex; width: fit-content;
}
.task-type.is-rec { background: rgba(0,71,253,0.12); color: var(--blue-soft); }
.task-type.is-onetime { background: rgba(0,168,189,0.12); color: var(--cyan); }
.task-credits { font-weight: 600; color: var(--paper); }
.task-date { color: var(--paper-soft); font-size: 12.5px; }
.task-actions { display: flex; gap: 6px; justify-content: flex-end; }

.status {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--ink-elev);
  color: var(--muted);
  display: inline-flex; width: fit-content;
  white-space: nowrap;
}
.status::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  background: currentColor;
}
.status.pending   { color: var(--cyan);  background: rgba(0,168,189,0.10); }
.status.validated { color: var(--lime);  background: rgba(226,255,15,0.10); }
.status.action    { color: var(--pink);  background: rgba(255,46,140,0.10); }
.status.cancelled { color: var(--red);   background: rgba(255,64,45,0.10); }
.status.inprogress{ color: var(--lime);  background: rgba(226,255,15,0.10); }
.status.active    { color: var(--teal);  background: rgba(40,255,162,0.10); }
.status.paused    { color: var(--muted); background: var(--ink-elev); }
.status.done      { color: var(--paper-soft); background: var(--ink-elev); }

/* ---------- Detail panels ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}
.detail-card {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.detail-card h3 { font-size: 16px; margin-bottom: 16px; }
.kv-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); }
.kv-row .v { color: var(--paper); font-weight: 500; }

/* ---------- Deliverables list ---------- */
.deliverables-list {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.deliverable-row {
  display: grid;
  grid-template-columns: 40px 2fr 1fr 1fr 100px;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.deliverable-row:last-child { border-bottom: 0; }
.deliverable-row:hover { background: var(--ink-elev); }
.deliverable-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink-elev);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.deliverable-name { color: var(--paper); font-weight: 500; }
.deliverable-meta { color: var(--muted); font-size: 12px; }

/* ---------- History timeline ---------- */
.history-list {
  background: var(--ink-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.history-item {
  display: grid;
  grid-template-columns: 110px 32px 1fr 100px;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.history-item:last-child { border-bottom: 0; }
.history-date { color: var(--muted-2); font-size: 12px; }
.history-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime);
  margin: 0 auto;
}
.history-dot.is-out { background: var(--red); }
.history-dot.is-in  { background: var(--lime); }
.history-dot.is-info { background: var(--cyan); }
.history-text { color: var(--paper); }
.history-amount {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px; font-weight: 600;
  text-align: right;
}
.history-amount.is-out { color: var(--red); }
.history-amount.is-in  { color: var(--lime); }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: 4px;
  background: var(--ink-card);
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  margin-bottom: 24px;
  width: fit-content;
}
.tab {
  background: transparent; border: 0;
  font-family: inherit;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  cursor: pointer;
}
.tab.is-active { background: var(--lime); color: var(--ink); font-weight: 600; }

/* ---------- Modal (brief order) ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 60;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  padding: 32px;
}
.modal h2 { font-family: "Bebas Neue", sans-serif; font-size: 36px; margin-bottom: 6px; }
.modal .subtitle { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.modal-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Footer (public) ---------- */
.public-footer {
  border-top: 1px solid var(--line-soft);
  padding: 60px 28px 28px;
  background: var(--ink);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand img { height: 22px; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: var(--muted); max-width: 280px; line-height: 1.6; }
.footer-col-title { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--paper-soft); padding: 5px 0; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  max-width: var(--container);
  margin: 50px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted-2);
}

/* ---------- Final CTA (public) ---------- */
.final-cta {
  background: var(--lime);
  color: var(--ink);
  margin: 0 28px 60px;
  border-radius: var(--r-lg);
  padding: clamp(56px, 7vw, 90px) 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(38px, 5vw, 64px);
  color: var(--ink);
  letter-spacing: 0.005em;
  margin-bottom: 10px;
}
.final-cta h2 .serif { color: var(--ink); font-family: "Instrument Serif", serif; }
.final-cta p { color: var(--ink); max-width: 520px; margin: 0 auto 28px; font-size: 14.5px; }
.final-cta .btn-paper { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.final-cta .btn-paper:hover { background: #1F1F1F; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .concept-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); padding-left: 20px; padding-right: 20px;}
  .brique-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .app-body { grid-template-columns: 200px 1fr; }
  .tasks-header, .task-row { grid-template-columns: 1.6fr 1fr 0.7fr 1fr 1fr 0.5fr; font-size: 12.5px; padding: 12px 16px; gap: 10px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 24px; }
  .welcome-mascot { order: -1; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .public-nav { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .public-nav-cta .btn { padding: 0 12px; height: 36px; font-size: 12px; }

  .app-body { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto;
    flex-direction: row; gap: 4px; overflow-x: auto;
    border-top: 1px solid var(--line);
    border-right: 0;
    padding: 12px 16px;
    background: rgba(15,15,15,0.96);
    z-index: 30;
  }
  .app-sidebar .sidebar-group-title, .app-sidebar .sidebar-divider, .app-sidebar .sidebar-footer { display: none; }
  .sidebar-link { padding: 8px 12px; font-size: 12.5px; }
  .sidebar-link span:not(.count):not(.ic) { display: none; }
  .app-main { padding: 24px 16px 100px; }

  .concept-grid, .brique-grid, .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Pricing en carousel horizontal sur mobile */
  .pricing-grid {
    --card-w: 68vw;
    /* padding latéral = moitié de l'espace restant → chaque carte (1re, featured, dernière) peut se centrer */
    --side-pad: calc((100vw - var(--card-w)) / 2);
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: var(--side-pad);
    padding: 16px var(--side-pad) 12px;
    margin: 0;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-grid .pricing-card {
    flex: 0 0 var(--card-w);
    scroll-snap-align: center;
  }

  .tasks-table { border-radius: var(--r); }
  .tasks-header { display: none; }
  .task-row {
    grid-template-columns: 1fr;
    gap: 8px; padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .task-actions { justify-content: flex-start; flex-wrap: wrap; }
  .deliverable-row { grid-template-columns: 32px 1fr 80px; }
  .deliverable-row > :nth-child(3), .deliverable-row > :nth-child(4) { display: none; }
  .history-item { grid-template-columns: 80px 24px 1fr 80px; gap: 10px; padding: 14px 16px; }

  .credit-pill .lbl, .credit-pill .upcoming { display: none; }
  .profile-plan { display: none; }
  .app-header { padding: 0 14px; }
  .page-title { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-title h1 { font-size: 32px; }

  /* Dashboard : aérer la carte « Premiers pas » et caler la mascotte */
  .welcome { padding: 24px 20px; margin-bottom: 20px; }
  .welcome-text h2 { font-size: 34px; }
  .welcome-mascot-img { max-width: 180px; }
  .welcome-cta { width: 100%; }
  .welcome-cta .btn { flex: 1 1 auto; justify-content: center; }
  .stats-row { gap: 12px; margin-bottom: 20px; }
  .app-main-inner .block-tight { margin-bottom: 20px; }
  .modal, .modal-lg { padding: 22px 18px; }
  .modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .modal-foot .btn { width: 100%; justify-content: center; }
  .thread-compose-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .thread-compose-foot .btn { width: 100%; justify-content: center; }
  .nais-toast { left: 16px; right: 16px; bottom: 90px; transform: translateY(16px); text-align: center; }
  .nais-toast.is-on { transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .nais-mascot .antenna::after { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* =====================================================
   ADD-ONS V2 — composants pour S2 → S8
   ===================================================== */

/* ----- Auth : side panel & progress ----- */
.auth-side-features { list-style:none; padding:0; margin:24px 0 0; display:flex; flex-direction:column; gap:8px; color: var(--paper-soft); font-size:13px; }
.signup-progress { display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
.signup-progress .step { font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); padding:8px 14px; border:1px solid var(--line); border-radius: var(--r-pill); }
.signup-progress .step.is-active { background: var(--ink-elev); color: var(--paper); border-color: var(--paper); }
.auth-form-head { display:flex; justify-content:space-between; margin-bottom:18px; font-size:13px; }
.form-section-title { font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); margin-top:18px; padding-bottom:8px; border-bottom:1px solid var(--line-soft); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width: 600px) { .form-row { grid-template-columns:1fr; } }
.form-checkbox { display:flex; gap:10px; align-items:flex-start; font-size:13px; color: var(--paper-soft); line-height:1.5; cursor:pointer; }
.form-checkbox input { margin-top:3px; accent-color: var(--lime); }
.form-cta-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:8px; }
@media (max-width: 600px) { .form-cta-row { grid-template-columns:1fr; } }

.radio-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
@media (max-width: 480px) { .radio-grid { grid-template-columns:1fr; } }
.radio-card { display:block; padding:14px 14px; border:1px solid var(--line); border-radius:var(--r); cursor:pointer; font-size:13px; color: var(--paper-soft); transition: border-color .2s var(--ease), background .2s var(--ease); }
.radio-card:hover { border-color: var(--paper); }
.radio-card input { display:none; }
.radio-card input:checked + span { color: var(--lime); font-weight:600; }
.radio-card:has(input:checked) { border-color: var(--lime); background: rgba(226,255,15,.05); }

.recommendation-block { margin-top:24px; padding:18px; border:1px dashed var(--lime); border-radius: var(--r); background: rgba(226,255,15,.04); }
.recommendation-eyebrow { font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color: var(--lime); }
.recommendation-title { font-size:18px; font-weight:600; margin:6px 0 8px; }

/* ----- Empty states & badges ----- */
.empty-state { padding:36px 20px; text-align:center; color: var(--muted); border:1px dashed var(--line); border-radius: var(--r); }
.empty-state a { color: var(--paper); text-decoration: underline; }
.badge-new { display:inline-block; padding:2px 8px; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; background: var(--lime); color: var(--ink); border-radius: var(--r-pill); margin-left:8px; }
.badge-pending { display:inline-block; padding:2px 8px; font-size:10px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; background: rgba(0,168,189,.18); color: var(--cyan); border-radius: var(--r-pill); margin-left:8px; }
.badge-info { display:inline-block; padding:2px 8px; font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; background: var(--pink-soft); color: var(--ink); border-radius: var(--r-pill); }

/* ----- Tasks : extras ----- */
.task-brique { font-size:11.5px; color: var(--muted); margin-top:2px; }
.task-reason { margin-top:6px; padding:6px 10px; background: rgba(255,46,140,.08); border-left: 2px solid var(--pink); font-size:12px; color: var(--paper-soft); }
.tag-maint, .tag-link { display:inline-block; margin-top:4px; margin-right:4px; padding:2px 8px; font-size:10.5px; letter-spacing:.06em; border-radius: var(--r-pill); border:1px solid var(--line); color: var(--muted); }
.tag-maint { color: var(--cyan); border-color: rgba(0,168,189,.4); }
.tag-link { color: var(--paper-soft); }

/* ----- Brique : statut + extras ----- */
.brique-status.is-prod { color: var(--teal); border:1px solid rgba(40,255,162,.45); background: rgba(40,255,162,.07); padding:2px 8px; border-radius: var(--r-pill); font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.brique-status.is-locked { color: var(--muted); border:1px solid var(--line); padding:2px 8px; border-radius: var(--r-pill); font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.brique-tag.is-maint { color: var(--cyan); border-color: rgba(0,168,189,.4); }
.brique-cost.is-min { color: var(--muted); font-weight:500; font-style: italic; }
.brique-card.is-locked { opacity: .68; cursor: pointer; }

/* ----- Modal : maintenance block ----- */
.maintenance-block { margin-top:8px; padding:16px; border:1px solid var(--cyan); border-radius: var(--r); background: rgba(0,168,189,.05); }
.maintenance-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.maintenance-list { list-style:none; padding:0; margin:8px 0 12px; display:flex; flex-direction:column; gap:6px; font-size:13px; }
.maintenance-list li { display:flex; justify-content:space-between; gap:8px; }
.maintenance-list li span { color: var(--muted); }

/* ----- Modal : fil d'échanges client ↔ NAIS ----- */
.task-thread { display:flex; flex-direction:column; gap:10px; max-height:260px; overflow-y:auto; padding:4px 2px 2px; margin-top:6px; }
.thread-msg { max-width:88%; padding:10px 13px; border-radius: var(--r); border:1px solid var(--line); }
.thread-msg.is-nais { align-self:flex-start; background: rgba(0,168,189,.07); border-color: rgba(0,168,189,.4); }
.thread-msg.is-me   { align-self:flex-end; background: rgba(226,255,15,.06); border-color: rgba(226,255,15,.35); }
.thread-who { font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; margin-bottom:4px; }
.thread-msg.is-nais .thread-who { color: var(--cyan); }
.thread-msg.is-me .thread-who   { color: var(--lime); }
.thread-who .muted { font-weight:500; letter-spacing:0; text-transform:none; }
.thread-text { font-size:13px; color: var(--paper-soft); line-height:1.5; white-space: pre-wrap; }
.thread-compose { margin-top:12px; }
.thread-compose textarea { width:100%; resize:vertical; min-height:64px; padding:10px 12px; font:inherit; font-size:13px; color: var(--paper); background: var(--ink-card); border:1px solid var(--line); border-radius: var(--r); transition: border-color .2s var(--ease); }
.thread-compose textarea:focus { outline:0; border-color: var(--lime); }
.thread-compose textarea.is-invalid { border-color: var(--pink); }
.thread-compose-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.thread-hint { font-size:11.5px; color: var(--muted); }

/* ----- Header app : crédit pill ----- */
.credit-pill-label { font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color: var(--muted); margin-right:8px; }
.credit-pill-upcoming { font-size:11.5px; color: var(--muted-2); margin-left:8px; padding-left:8px; border-left:1px solid var(--line); }

/* ----- History (ledger) ----- */
.history-list-head { display:grid; grid-template-columns:130px 24px 1fr 100px 100px; gap:10px; padding:10px 16px; font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color: var(--muted); border:1px solid var(--line); border-radius: var(--r) var(--r) 0 0; background: var(--ink-elev); border-bottom:none; }
.history-list { border:1px solid var(--line); border-radius: 0 0 var(--r) var(--r); background: var(--ink-elev); overflow: hidden; }
.history-list .history-item { display:grid; grid-template-columns:130px 24px 1fr 100px 100px; gap:10px; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line-soft); }
.history-list .history-item:last-child { border-bottom:none; }
.history-meta { font-size:11.5px; color: var(--muted-2); margin-top:2px; }
.history-meta a { color: var(--paper-soft); text-decoration: underline; }
.history-balance { font-size:13px; color: var(--paper-soft); text-align:right; font-variant-numeric: tabular-nums; }
.history-amount { font-variant-numeric: tabular-nums; text-align:right; font-weight:600; }
.history-amount.is-in   { color: var(--lime); }
.history-amount.is-out  { color: var(--pink); }
.history-amount.is-info { color: var(--muted); }
.history-dot { width:8px; height:8px; border-radius:50%; background: var(--muted); justify-self:center; }
.history-dot.is-in   { background: var(--lime); }
.history-dot.is-out  { background: var(--pink); }
.history-dot.is-info { background: var(--cyan); }

.ledger-balance { display:flex; justify-content:space-between; align-items:flex-end; padding:18px 20px; margin-bottom:18px; border:1px solid var(--line); border-radius: var(--r); background: var(--ink-elev); }
.ledger-balance-value { font-size:34px; font-weight:600; letter-spacing:-0.02em; }
.ledger-legend { display:flex; gap:14px; font-size:12px; color: var(--muted); }
.ledger-legend .dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align: middle; background: var(--muted); }
.ledger-legend .dot.is-in { background: var(--lime); }
.ledger-legend .dot.is-out { background: var(--pink); }
.ledger-legend .dot.is-info { background: var(--cyan); }

/* ----- Deliverables ----- */
.deliv-group { margin-bottom:24px; border:1px solid var(--line); border-radius: var(--r); background: var(--ink-elev); overflow:hidden; }
.deliv-group-head { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line-soft); font-size:13px; }
.deliverable-actions { justify-self:flex-end; }
.deliverable-row { display:grid; grid-template-columns:40px 1fr auto; gap:14px; align-items:center; padding:12px 18px; border-bottom:1px solid var(--line-soft); }
.deliverable-row:last-child { border-bottom:none; }

/* ----- Legend / fineprint ----- */
.legend-block { margin-top:32px; padding:18px; border:1px dashed var(--line); border-radius: var(--r); background: var(--ink-elev); }
.legend-block h3 { font-size:14px; margin-bottom:10px; }
.legend-block ul { padding-left:18px; margin:0; color: var(--paper-soft); font-size:13px; line-height:1.6; }
.legend-fineprint { margin-top:18px; font-size:12px; color: var(--muted); }

/* ----- Admin ----- */
.app-header--admin { border-bottom: 2px solid var(--pink); }
.admin-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color: var(--pink); border:1px solid rgba(255,46,140,.4); border-radius: var(--r-pill); margin-left:14px; }
.app.is-admin .app-sidebar { border-right: 1px solid var(--line); }
.app.is-admin .sidebar-link.is-active { color: var(--pink); }

.stats-row--four { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 900px) { .stats-row--four { grid-template-columns: repeat(2, 1fr) !important; } }

.funnel { display:flex; flex-direction:column; gap:8px; }
.funnel-step { display:grid; grid-template-columns: 220px 1fr; gap:14px; align-items:center; }
.funnel-label { color: var(--muted); font-size:12.5px; }
.funnel-bar { background: linear-gradient(90deg, var(--lime) 0%, var(--teal) 100%); color: var(--ink); padding:8px 14px; border-radius: var(--r); font-weight:600; font-size:13px; }
.funnel-bar span { display:inline-block; }

.alerts-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.alert-card { padding:14px 16px; border-radius: var(--r); border:1px solid var(--line); background: var(--ink-elev); font-size:13px; color: var(--paper-soft); }
.alert-card.alert-warn { border-color: var(--pink); color: var(--paper); }
.alert-card.alert-ok { border-color: var(--lime); }
.alert-card strong { color: var(--paper); font-size:22px; font-weight:600; margin-right:6px; }

.adm-table { border:1px solid var(--line); border-radius: var(--r); background: var(--ink-elev); overflow:hidden; margin-bottom:18px; }
.adm-head, .adm-row { display:grid; gap:12px; padding:12px 16px; align-items:center; font-size:12.5px; }
.adm-head { background: var(--ink-card); color: var(--muted); font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.adm-row { border-top:1px solid var(--line-soft); }
.adm-head, .adm-row { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 0.9fr; }
.adm-table.cols-7 .adm-head, .adm-table.cols-7 .adm-row { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr 0.9fr; }

[data-admin-users] .adm-row, [data-admin-invoices] .adm-row { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr 0.9fr; }

.adm-load-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:12px; }
.load-card { padding:14px 16px; border:1px solid var(--line); border-radius: var(--r); background: var(--ink-elev); font-size:13px; }

.adm-card { padding:16px; border:1px solid var(--line); border-radius: var(--r); background: var(--ink-elev); }
.adm-card h3 { font-size:14px; margin-bottom:8px; }
.adm-card-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:14px; }
.adm-card.link { display:block; text-decoration:none; transition: border-color .2s var(--ease); }
.adm-card.link:hover { border-color: var(--paper); }
.adm-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; font-size:13px; }
.adm-list li { padding:8px 10px; border-radius: 8px; background: var(--ink-card); }

.support-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:14px; }

.audit-list { border:1px solid var(--line); border-radius: var(--r); background: var(--ink-elev); overflow:hidden; }
.audit-row { display:grid; grid-template-columns: 160px 1fr 140px; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line-soft); font-size:13px; }
.audit-row:last-child { border-bottom:none; }

.adm-publish { padding:18px; border:1px solid var(--line); border-radius: var(--r); background: var(--ink-elev); margin-bottom:24px; }
.adm-publish h3 { font-size:14px; margin-bottom:12px; }

/* ----- Sidebar : variante tab dans le BO ----- */
.app-sidebar .sidebar-link.tab { cursor: pointer; }

/* ----- Page title actions inline ----- */
.page-title-actions .tab { background:none; border:1px solid var(--line); padding:8px 14px; border-radius: var(--r-pill); font-size:12px; color: var(--muted); cursor:pointer; }
.page-title-actions .tab.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ----- Responsive ledger ----- */
@media (max-width: 720px) {
  .history-list-head { display:none; }
  .history-list .history-item { grid-template-columns: 1fr auto; gap:6px; padding:14px; }
  .history-list .history-item > .history-dot { display:none; }
  .history-list .history-item > .history-balance { grid-column: 1 / 3; font-size:11.5px; color: var(--muted); text-align:left; }
}


/* ----- Catalogue : actions de carte + bandeau plan ----- */
.brique-foot { flex-wrap: wrap; }
.brique-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.cat-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; margin-bottom: 26px;
  border: 1px solid var(--cyan); border-radius: var(--r);
  background: rgba(0,168,189,.06);
}
.cat-banner-text { display: flex; flex-direction: column; gap: 3px; }
.cat-banner-text strong { color: var(--paper); font-size: 14px; }
.cat-banner-text .muted { font-size: 12.5px; line-height: 1.5; max-width: 640px; }
@media (max-width: 600px) {
  .cat-banner { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   HOME V2 — REBRAND (page d'accueil publique)
   Sections colorées · highlight blocks · wavemark
   ===================================================== */
:root {
  --brand-blue: #1A2BFF;   /* electric blue (chiffres clés) */
  --brand-teal: #0C3B33;   /* dark teal (pricing bg) */
  --cosmic:     #0B0B12;   /* near-black cosmic base */
}
body.home2 { background: var(--brand-blue); }

/* ---- generic section shell ---- */
.home2 .sec { position: relative; overflow: visible; padding: clamp(72px, 9vw, 124px) 0; }
.home2 .sec-head { max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.home2 .sec-head-center { text-align: center; align-items: center; }
#how .sec-head-center { max-width: 1040px; }
#how .sec-head-center .display2 { max-width: none; }
#how .lead2 { color: #fff; }
.home2 .sec-foot-center { text-align: center; margin-top: clamp(34px, 4vw, 50px); }

.display2 {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-size: clamp(34px, 5vw, 55px);
  color: var(--paper);
}
.display2.reveal.is-in { padding: 5px; }
.lead2 { font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 620px; }
.lead2.reveal.is-in { padding-left: 10px; padding-right: 10px; }
.home2 .sec-head-center .lead2 { margin: 0 auto; }
.lead2.light { color: rgba(255,255,255,0.82); max-width: 990px; }
.lead2.light.reveal.is-in { padding: 5px; }
.cta-sub.reveal.is-in { padding-left: 20px; padding-right: 20px; }

/* highlight block (serif italic on color) */
.hl {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  display: inline-block;
  padding: 0 .22em .08em;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hl-lime { background: var(--lime); color: var(--ink); }
.hl-teal { background: var(--teal); color: var(--ink); }
.hl-pink { background: var(--pink); color: var(--ink); }
.ital { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }
.ital-lime { color: var(--lime); }
.ital-cyan { color: var(--cyan); }

/* pills */
.pill-gradient {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: center;
  font-size: 12px; font-weight: 400; color: var(--paper);
  padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(250, 250, 250, 0.15);
  border: 1px solid rgba(255,255,255,0.14);
}
.pill-gradient .pill-item { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.pill-gradient .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot-lime { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-pink { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.pill-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255,255,255,0.02);
}
.pill-ghost.light { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.pill-ghost.pill-dark {
  background: #0d0d0d;
  border-color: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  gap: 9px;
}
.pill-dot {
  color: var(--lime);
  text-shadow: 0 0 6px var(--lime), 0 0 16px rgba(226,255,15,0.55), 0 0 30px rgba(226,255,15,0.25);
  line-height: 1;
  position: relative; 
  top: -0.05em
}
.pill-dot--pink {
  color: #FF2E8C;
  text-shadow: 0 0 6px #FF2E8C, 0 0 16px rgba(255,46,140,0.55), 0 0 30px rgba(255,46,140,0.25);
}
.pill-dot--green {
  color: #28FFA2;
  text-shadow: 0 0 6px #28FFA2, 0 0 16px rgba(40,255,162,0.55), 0 0 30px rgba(40,255,162,0.25);
}
.pill-dot--lime {
  color: #E2FF0F;
  text-shadow: 0 0 6px #E2FF0F, 0 0 16px rgba(226,255,15,0.55), 0 0 30px rgba(226,255,15,0.25);
}
.pill-dot--cyan {
  color: #00A8BD;
  text-shadow: 0 0 6px #E2FF0F, 0 0 16px rgba(226,255,15,0.55), 0 0 30px rgba(226,255,15,0.25);
}

/* ---- NAV ---- */
.nav2 {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 14px 32px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(16px) saturate(0.15);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav2-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.nav2-logo-img { height: 26px; width: auto; display: block; }
.wavemark { height: 22px; width: auto; color: currentColor; }
.nav2-word { font-family: "Bebas Neue", sans-serif; font-size: 22px; letter-spacing: .12em; }
.nav2-menu { display: flex; gap: 30px; justify-content: center; }
.nav2-menu a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color .2s var(--ease); }
.nav2-menu a:hover { color: var(--paper); }
.nav2-menu a.is-active { color: var(--lime); }
.nav2-cta { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

.btn-dark { background: var(--ink); color: var(--lime); border-color: var(--ink); font-weight: 500; }
.btn-dark:hover { background: #1c1c1c; box-shadow: 0 12px 30px rgba(0,0,0,0.4); }

/* ---- HERO ---- */
.home2 .sec-hero { position: relative; text-align: center; padding: clamp(90px, 13vh, 170px) 0 clamp(70px, 9vh, 130px); border-bottom-left-radius: 15rem; border-bottom-right-radius: 15rem; overflow: hidden; }
.sec-hero { background:
  radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0,71,253,0.30), transparent 60%),
  radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255,46,140,0.18), transparent 55%),
  radial-gradient(ellipse 50% 50% at 15% 40%, rgba(91,17,140,0.25), transparent 55%),
  #1A2BFF;
}
.hero2-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 120%, rgba(226,255,15,0.10), transparent 45%); pointer-events: none; z-index: 0; }
.hero2-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; z-index: 0; pointer-events: none; display: block; }
.hero2-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;  }
.sec-hero .hero2-inner { z-index: 2; }
.hero2-inner { position: relative; width: 100%; max-width: 652px; padding-left: 20px; padding-right: 20px; box-sizing: border-box; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 26px; }
.hero2-title {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 0.92;
  letter-spacing: -1.6px;
  color: var(--paper);
  margin: 0;
}
.hero2-title .hl { font-size: 0.82em; vertical-align: middle; margin-left: .12em; }
.hero2-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero2-sub { font-size: clamp(14px, 1.15vw, 17px); color: rgba(255,255,255,0.66); line-height: 1.7; max-width: 560px; }
.hero2-mascotte {
  position: absolute; right: clamp(8px, 4vw, 70px); bottom: -34px; z-index: 2;
  width: clamp(150px, 17vw, 250px); height: auto; pointer-events: none;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,0.55));
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@media (max-width: 900px) { .hero2-mascotte { display: none; } }

/* ---- COSMIC SECTION (comment ça marche) ---- */
.sec-cosmic { background:
  radial-gradient(ellipse 80% 60% at 20% 10%, rgba(91,17,140,0.40), transparent 55%),
  radial-gradient(ellipse 70% 60% at 85% 30%, rgba(0,71,253,0.32), transparent 55%),
  radial-gradient(ellipse 60% 60% at 50% 100%, rgba(255,46,140,0.18), transparent 55%),
  #0A0A14;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: 0;
}
.cosmic-face {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.34; mix-blend-mode: screen; pointer-events: none; z-index: 0;
}
/* Mobile : zoom sur l'orbe */
@media (max-width: 680px) {
  body.home2 .sec-cosmic { padding-top: 0; }
  .pill-ghost.pill-dark { font-size: 10px;}
  .pill-dot { top: -0.15em; }
  .pill-ghost { font-size: 10px; }
  .cosmic-face { display: none; }
  .sec-cosmic .sec-head-center {
    position: relative;
    padding: 32px 22px;
    margin: 0;
    overflow: hidden;
  }
  .sec-cosmic .sec-head-center::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/cosmic-orb.webp") center / cover no-repeat;
    opacity: 0.34;
    z-index: 0;
    pointer-events: none;
  }
  .sec-cosmic .sec-head-center > * { position: relative; z-index: 1; }
}
.sec-cosmic .container { position: relative; z-index: 1; }
/* Comment ça marche : visage cartoon en bas à droite */
.cosmic-toy-guillaume {
  right: clamp(12px, 4vw, 80px); bottom: clamp(12px, 3vw, 48px);
  width: clamp(108px, 11vw, 158px);
  z-index: 4;
  animation: floatY 7.5s ease-in-out infinite .3s;
}
.steps-wrap { position: relative; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-num {
  position: absolute;
  right: -47.078px;
  bottom: -168.954px;
  font-family: "Bebas Neue", sans-serif; 
  font-weight: 400;
  font-style: normal;
  font-size:450px; 
  line-height: 568.748px;
  color: transparent;
  -webkit-text-stroke-width: 0.92px;
  -webkit-text-stroke-color: #0F0F0F;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.step-card:hover .step-num { transform: translate(-10px, -14px) scale(1.02); opacity: .85; }
.step-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: 45px 24px 24px;
  min-height: 280px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step-card:hover {
  transform: translateY(-12px) scale(1.025);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 12px 30px rgba(226,255,15,0.28), 0 0 0 2px rgba(226,255,15,0.85);
}
.step-card h3 { font-size: 25px; font-weight: 600; line-height: normal; letter-spacing: -0.01em; position: relative; z-index: 1; }
.text-hl-lime { background: var(--lime); color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0.02em 0.18em; border-radius: 2px; }
.text-hl-white { background: #fff; color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0.02em 0.18em; border-radius: 2px; }
.step-card p { font-size: 13px; line-height: 1.55; position: relative; z-index: 1; flex: 1; }
.step-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; margin-top: auto;  }
.step-arrow { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 13px; transition: transform .3s var(--ease); }
.step-card:hover .step-arrow { transform: translate(3px, -3px) rotate(8deg) scale(1.12); }
.step-paper .step-arrow, .step-outline .step-arrow { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.step-lime .step-arrow { background: var(--ink); color: #fff; border-color: var(--ink); }
.step-dark .step-arrow { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tag-pill { display: inline-block; background: var(--lime); color: var(--ink); padding: 0 8px; border-radius: 6px; font-weight: 700; }

.step-paper { background: var(--paper); color: var(--ink); }
.step-paper p { color: #555; } .step-paper h3 { color: var(--ink); }
.step-lime { background: var(--lime); color: var(--ink); }
.step-lime p { color: #3a4a00; } .step-lime h3 { color: var(--ink); }
.step-dark { background: #0E0E16; color: var(--paper); border: 1.5px solid var(--lime); }
.step-dark p { color: var(--muted); }
.step-dark .step-num { -webkit-text-stroke-color: rgba(226,255,15,0.55); text-stroke-color: rgba(226,255,15,0.55); }
.step-outline { background: var(--paper); color: var(--ink); }
.step-outline p { color: #555; } .step-outline h3 { color: var(--ink); }

/* marquee */
.marquee { margin-top: clamp(48px, 6vw, 80px); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-2 { display: flex; flex-direction: column; gap: 12px; }
.marquee-row { overflow: hidden; }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 46s linear infinite; }
.marquee-track.marquee-rev { animation-direction: reverse; }
.marquee-track span {
  display: inline-flex; align-items: center; flex: none;
  font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); padding: 8px 18px; margin: 0 7px;
  border: 1px solid rgba(255,255,255,0.16);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- CATALOGUE ---- */
.sec-catalogue { background: #0A0A0F; isolation: isolate; }
.sec-catalogue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/catalogue-vector.svg') center/cover no-repeat;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.sec-catalogue .container { position: relative; z-index: 1; }
.sec-catalogue .pill-ghost.pill-dark { border-color: #FF2E8C; }

/* ---- CHIFFRES (electric blue) ---- */
.home2 .sec-stats { background: var(--brand-blue); overflow: visible; z-index: 6; }
.stats-watermark {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("img/watermark.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}
.stats-mascotte {
  position: absolute; left: clamp(-30px, -1vw, 10px); bottom: -6px; z-index: 2;
  width: clamp(250px, 30vw, 450px); height: auto; pointer-events: none;
  transform: rotate(5.773deg);
  filter: drop-shadow(0 26px 44px rgba(0,0,0,0.4));
  animation: floatY 7.5s ease-in-out infinite .2s;
}
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-left: clamp(0px, 16vw, 250px); }
@media (max-width: 900px) { .stats-mascotte { display: none; } .stats-grid { padding-left: 0; } .stats-watermark { background-size: 200%; } }
.stat-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(96px, 13vw, 190px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--lime);
  letter-spacing: 0.01em;
}
.stat-cap { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.92); }

/* ---- PRICING (teal) ---- */
.sec-pricing { background: radial-gradient(ellipse 90% 70% at 30% 0%, #114b40, transparent 60%), var(--brand-teal); z-index: 3; }
.sec-pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/pricing-vector.svg') center/cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.sec-pricing .container { position: relative; z-index: 1; }
.home2 .sec-pricing { overflow: visible; }
.sec-pricing .pill-ghost.light { border-color: #28FFA2; }
.sec-pricing .pricing-card { background: #0F0F0F; border-color: rgba(255,255,255,0.1); }
.sec-pricing .pricing-card .pricing-price { color: var(--paper); }
.sec-pricing .pricing-card.featured { background: #0F0F0F; border-color: var(--teal); }
.sec-pricing .pricing-card.featured .pricing-name { color: var(--teal); }
.sec-pricing .pricing-card.featured .pricing-price,
.sec-pricing .pricing-card.featured .pricing-suffix,
.sec-pricing .pricing-card.featured .pricing-features li { color: var(--paper); }
.sec-pricing .pricing-card.featured .pricing-desc { color: rgba(255, 255, 255, 0.45); }
.sec-pricing .pricing-card.featured .pricing-price { color: var(--teal); }
.sec-pricing .pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.14); }
.sec-pricing .pricing-card.featured .pricing-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 7.2 5.5 10 11.5 4' stroke='%2328FFA2' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sec-pricing .pricing-card.featured .btn-primary { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.sec-pricing .pricing-badge { background: var(--teal); color: var(--ink); }
.pricing-fine { text-align: center; margin-top: 30px; font-size: 12.5px; color: rgba(255,255,255,0.5); }

/* ---- FAQ ---- */
.sec-faq { background: #0A0A0F; isolation: isolate; position: relative; z-index: 2; }
.sec-faq::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/faq-vector.svg') center/cover no-repeat;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}
.sec-faq .container { position: relative; z-index: 1; }
.faq-pill-center { display: flex; justify-content: center; margin-bottom: 32px; }
.sec-faq .pill-ghost { border-color: var(--cyan); }
.faq-wrap { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 40px; align-items: start; }
.faq-left { display: flex; flex-direction: column; gap: 20px; }
.faq-left .display2 { margin-bottom: 6px; }
.faq-title-center { text-align: center; margin: 0 auto 32px; max-width: none; }
.faq-list { display: flex; flex-direction: column; padding-left: 30px; padding-right: 30px;}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; font-size: 15px; font-weight: 500; color: var(--paper); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 20px; color: var(--cyan); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-body { padding: 0 4px 20px; font-size: 13.5px; line-height: 1.65; color: var(--cyan); max-width: 620px; }
.faq-right { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 360px; }
.faq-mascot { width: clamp(210px, 25vw, 320px); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)); margin-top: 180px; }
/* étoile rouge (sans texte) — sert de fond à la tasse */
.faq-starburst {
  position: absolute; top: -4%; right: 2%; z-index: 1;
  width: clamp(155px, 18vw, 240px); aspect-ratio: 1;
  background: var(--red);
  clip-path: polygon(50% 0%,61% 18%,82% 12%,79% 34%,100% 50%,79% 66%,82% 88%,61% 82%,50% 100%,39% 82%,18% 88%,21% 66%,0% 50%,21% 34%,18% 12%,39% 18%);
  transform: rotate(8deg);
  animation: floatY 8.5s ease-in-out infinite;
  --rot: 8deg; will-change: transform;
}
/* la tasse "#1 PARTY HARD", posée sur l'étoile, en haut à droite */
.faq-mug {
  position: absolute; top: 0; right: 6%; z-index: 2;
  width: clamp(118px, 13.5vw, 178px); height: auto;
  transform: rotate(-7deg); --rot: -7deg;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,0.4));
  animation: floatY 8.5s ease-in-out infinite;
  will-change: transform;
}

/* ---- TEAM (red) ---- */
.sec-team { background: var(--red); padding-bottom: clamp(60px, 7vw, 96px); isolation: isolate; }
.sec-team::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/team-vector.svg') center/cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.sec-team .container,
.sec-team .team-scroller { position: relative; z-index: 1; }
.sec-team .pill-ghost.light { border-color: #E2FF0F; }
.sec-team .display2 { color: var(--paper); }
.sec-team .hl-lime { color: var(--ink); }
.team-scroller { overflow-x: auto; overflow-y: hidden; padding: 8px 0 24px; scroll-behavior: auto; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.team-scroller::-webkit-scrollbar { display: none; }
.team-scroller.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.team-track { display: flex; width: max-content; }
.team-card { flex: 0 0 240px; margin-right: 20px; background: #f2f2f5; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(0,0,0,0.18); }
.team-scroller.is-dragging .team-card { pointer-events: none; }
.team-photo { height: 300px; background: transparent; overflow: hidden; position: relative; border-bottom-right-radius: 60px; }
.team-photo img { height: 100%; width: 100%; object-fit: cover; object-position: top center; display: block; position: relative; z-index: 1; }
.team-bg-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: "Bebas Neue", sans-serif; font-size: 210px; font-style: normal; font-weight: 400; line-height: 80%; text-align: center; color: #000; opacity: 0.2; z-index: 0; pointer-events: none; user-select: none; }
.team-meta { padding: 18px 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; }
.team-meta strong { font-family: "Bebas Neue", sans-serif; font-size: 38px; line-height: .9; letter-spacing: .01em; margin-bottom: 14px; }
.team-divider { width: 100%; border: none; border-top: 1px solid rgba(0,0,0,0.12); margin: 0 0 14px; align-self: stretch; }
.team-linkedin { display: inline-flex; align-self: center; color: rgba(0,0,0,0.45); border: 1.5px solid rgba(0,0,0,0.2); border-radius: 5px; padding: 2px 3px; transition: color .2s, border-color .2s; }
.team-linkedin:hover { color: #0A66C2; border-color: #0A66C2; }
/* RENAI / mascotte card — large centered name + full-body mascotte per Figma */
.team-card--renai { background: #fafafa; }
.team-card--renai { overflow: hidden; }
.team-card--renai .team-bg-name { color: #03257D; opacity: 0.1; }
/* photo overflows into the white name area, but the card clips anything past its edges */
.team-card--renai .team-photo { border-bottom-right-radius: 65px; overflow: visible; position: relative; }
.renai-img-wrap { position: absolute; z-index: 5; left: 50%; top: 50%; width: 124%; transform: translate(-50%, -50%) rotate(26.2deg); pointer-events: none; }
.renai-img-wrap img { display: block; width: 100%; height: auto; max-width: none; filter: drop-shadow(0 14px 20px rgba(0,0,0,0.28)); }
.team-meta--renai { flex: 1 1 auto; justify-content: center; }
.team-meta--renai strong { font-size: 56px; line-height: 1.3; margin-bottom: 0; }

/* ---- FOOTER ---- */
.footer2 { position: relative; background: #060608; padding: clamp(56px, 7vw, 88px) 0 0; overflow: hidden; }
.footer2-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; align-items: start; padding-left: 20px; padding-right: 20px;}
.footer2-logo { display: inline-block; margin-bottom: 16px; }
.footer2-logo img { height: 30px; width: auto; display: block; }
.footer2-brand p { font-size: 13px; color: var(--muted); max-width: 250px; line-height: 1.6; }
.footer2-title { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.footer2-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,0.72); padding: 6px 0; transition: color .2s var(--ease); }
.footer2-col a:hover { color: var(--lime); }
.footer2-watermark {
  position: relative; z-index: 1; margin: clamp(20px,4vw,50px) 0 0;
  width: 100%; aspect-ratio: 643 / 147;
  background: url("img/logo-nais-lime.svg") no-repeat center / 100% 100%;
}
.footer2-bottom { position: relative; z-index: 2; display: flex; justify-content: center; text-align: center; gap: 16px; padding: 18px 0 18px; font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---- HOME V2 responsive ---- */
@media (max-width: 1000px) {
  .nav2 { grid-template-columns: auto 1fr; }
  .nav2-menu { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-right { order: -1; min-height: 260px; }
  .footer2-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer2-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .nav2 { padding: 12px 16px; }
  .steps-grid { grid-template-columns: 1fr; padding-left: 20px; padding-right: 20px;}
  .step-card { min-height: 165px; }
  .step-num { font-size: 280px; line-height: 240px; right: 0px; bottom: -60px; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer2-grid { grid-template-columns: 1fr 1fr; text-align: center; justify-items: center; }
  .footer2-brand p { margin-left: auto; margin-right: auto; }
  .footer2-bottom { flex-direction: column; gap: 6px; }
  .hero2-title { font-size: clamp(44px, 14vw, 70px); }
  .faq-mascot { margin-top: 0; width: clamp(280px, 70vw, 380px); }
  .home2 .sec { padding-bottom: 20px; padding-top: 40px; }
}

/* =====================================================
   HOME V2 — blocs maquette (dashboard · témoignage · galerie · CTA)
   ===================================================== */

.hl-cyan { background: var(--cyan); color: var(--ink); }

/* ---- APERÇU ESPACE CLIENT (fenêtre navigateur) ---- */
.sec-dash { position: relative; background: transparent;  margin-top: -180px; z-index: 5; }
.sec-dash .container { max-width: min(1600px, 94vw); }
.dash-preview-img {
  position: relative; z-index: 5;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
}
.dash-window {
  position: relative; z-index: 5;
  border-radius: 16px; overflow: hidden;
  background: #0E0E16; border: 1px solid rgba(255,255,255,0.10);
}
.dash-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #15151F; border-bottom: 1px solid rgba(255,255,255,0.07); }
.dash-dots { display: inline-flex; gap: 7px; }
.dash-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a46; display: block; }
.dash-dots i:nth-child(1) { background: #ff5f57; } .dash-dots i:nth-child(2) { background: #febc2e; } .dash-dots i:nth-child(3) { background: #28c840; }
.dash-url { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: rgba(255,255,255,0.5); letter-spacing: .01em; }
.dash-body { display: grid; grid-template-columns: 220px 1fr; min-height: 360px; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 26px 16px; background: #0B0B12; border-right: 1px solid rgba(255,255,255,0.06); }
.dash-nav-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,0.34); padding: 0 12px 14px; }
.dash-nav a { font-size: 14px; color: rgba(255,255,255,0.62); padding: 11px 12px; border-radius: 9px; cursor: pointer; }
.dash-nav a.is-active { background: rgba(255,255,255,0.06); color: var(--paper); font-weight: 500; }
.dash-main { padding: 28px 30px; }
.dash-main-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dash-h { font-size: 22px; font-weight: 700; color: var(--paper); letter-spacing: -0.01em; }
.dash-sub { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.dash-credits { text-align: right; }
.dash-credits-num { font-size: 30px; font-weight: 800; color: var(--paper); letter-spacing: -0.02em; }
.dash-credits-tot { font-size: 14px; color: rgba(255,255,255,0.45); }
.dash-prog { display: block; width: 150px; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.12); margin: 10px 0 0 auto; overflow: hidden; }
.dash-prog i { display: block; height: 100%; background: var(--lime); border-radius: 6px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dash-card { display: flex; flex-direction: column; gap: 7px; padding: 16px 16px 18px; border-radius: 12px; background: #14141D; border: 1px solid rgba(255,255,255,0.06); }
.dash-card-id { font-family: "JetBrains Mono", monospace; font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: .04em; }
.dash-card-name { font-size: 14.5px; font-weight: 600; color: var(--paper); }
.dash-card-cr { font-size: 13px; color: rgba(255,255,255,0.55); }
.dash-badge { align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.dash-badge.is-on { background: rgba(40,255,162,0.16); color: var(--teal); }
.dash-badge.is-plan { background: rgba(226,255,15,0.16); color: var(--lime); }

/* ---- TÉMOIGNAGE (rouge profond, ton sur ton) ---- */
.sec-testi { background: #8E0E0A; position: relative; }
.home2 .sec-testi { overflow: visible; position: relative; z-index: 7; }
.testi-watermark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.sec-testi .container { max-width: none; }
.sec-testi .testi-inner { position: relative; z-index: 2; max-width: none; width: 100%; margin: 0 auto; text-align: center; }
.testi-quote {
  width: 100%;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(34px, 5.4vw, 78px);
  line-height: 0.84; letter-spacing: 0.005em;
  color: #FF402D; text-transform: uppercase;
  margin: 0;
  padding: 0 10px;
  text-align: justify;
}
@media (max-width: 900px) { .testi-quote { text-align: center; } }
.testi-author {
  display: flex;
  width: 100%;
  max-width: 513.473px;
  min-height: 50.474px;
  margin-left: auto;
  margin-right: clamp(20px, 8vw, 120px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FF402D;
  font-family: Inter;
  font-size: clamp(14px, 1.4vw, 18.264px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
}

/* ---- PRICING : mascottes en overlay ---- */
.sec-pricing { position: relative; }
.pricing-head {
  --rot: 0deg;
  position: absolute; right: 0; top: clamp(-220px, -11vw, -90px); z-index: 50;
  width: clamp(130px, 15vw, 220px); height: auto; pointer-events: none;
  filter: drop-shadow(0 28px 46px rgba(0,0,0,0.45));
  will-change: transform;
  animation: floatY 9s ease-in-out infinite .3s;
}
.sec-pricing .container { position: relative; z-index: 1; }
@media (max-width: 1000px) { .pricing-head { display: none; } }

/* ---- GALERIE COSMIQUE ---- */
.sec-gallery { position: relative; width: 100vw; overflow: hidden; }
.gallery-img { display: block; width: 100%; height: auto; }

/* ---- CTA FINAL (bleu électrique) ---- */
.sec-cta { background: var(--brand-blue) url('img/renai-blue.webp') center/cover no-repeat; text-align: center; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-sub { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.6; color: rgba(255,255,255,0.85); max-width: 540px; }
.cta-btns { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.cta-link { font-size: 14px; font-weight: 500; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.cta-link:hover { color: var(--lime); }

/* ---- responsive blocs maquette ---- */
@media (max-width: 900px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .dash-nav-label { width: 100%; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 22px 18px; }
}

/* ---- STICKERS CARTOON FLOTTANTS (toys + mug) ---- */
.toy-face {
  position: absolute; z-index: 4; height: auto;
  width: clamp(120px, 12vw, 188px);
  filter: drop-shadow(0 20px 36px rgba(0,0,0,0.4));
  pointer-events: none;
  will-change: transform;
}
/* base rotation set per-sticker via custom property, kept by the float animation */
.cata-face   { --rot: 5deg;  left: clamp(-12px, 0vw, 24px); top: clamp(150px, 18vw, 270px); width: clamp(130px, 14vw, 210px); animation: floatY 7s ease-in-out infinite; }
.pricing-face{ --rot: -8deg; left: clamp(-8px, 1vw, 30px); top: clamp(40px, 7vw, 120px); width: clamp(92px, 9.5vw, 144px); z-index: 3; animation: floatY 6s ease-in-out infinite .4s; }
.pricing-face-simon{ right: clamp(-8px, 1vw, 30px); bottom: clamp(-12px, 0vw, 20px); width: clamp(92px, 9.5vw, 144px); z-index: 3; animation: floatY 6.5s ease-in-out infinite .6s; }
.faq-face    { --rot: 6deg;  left: clamp(6px, 4vw, 80px); bottom: clamp(-60px, -3vw, -20px); width: clamp(118px, 12vw, 176px); animation: floatY 6.5s ease-in-out infinite .8s; }
/* Témoignage : visage long sur cadre lime, en haut à droite */
.testi-toy {
  right: clamp(20px, 8vw, 150px); top: clamp(-40px, -2.4vw, -14px);
  width: clamp(108px, 11vw, 158px);
  box-sizing: border-box;
  animation: floatY 7.5s ease-in-out infinite .2s;
}
/* Témoignage : second visage en bas à droite */
.testi-toy-antoine {
  right: clamp(0px, 3vw, 60px); bottom: clamp(0px, 1vw, 30px);
  width: clamp(108px, 11vw, 158px);
  box-sizing: border-box;
  animation: floatY 8s ease-in-out infinite .5s;
}
/* Témoignage : visage en bas à gauche */
.testi-toy-arthur {
  left: clamp(20px, 8vw, 150px); bottom: clamp(-90px, -5.4vw, -60px);
  width: clamp(108px, 11vw, 158px);
  box-sizing: border-box;
  animation: floatY 7s ease-in-out infinite .7s;
}

/* flottement doux + léger basculement 3D, en conservant la rotation de base (--rot) */
@keyframes floatY {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0) rotateZ(0deg); }
  50%      { transform: rotate(var(--rot, 0deg)) translateY(-14px) rotateZ(1.2deg); }
}

@media (max-width: 900px) {
  .cata-face { top: clamp(130px, 26vw, 200px); width: clamp(112px, 20vw, 150px); }
}
@media (max-width: 600px) {
  .toy-face { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toy-face, .pricing-head, .faq-mug, .faq-starburst { animation: none !important; transform: rotate(var(--rot, 0deg)); }
}

/* ---- Badge PRO+ (palier supérieur) ---- */
.brique-status.is-pro {
  color: var(--paper); background: var(--pink);
  border: 1px solid var(--pink);
  padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* =====================================================================
   PASTILLES DE PALIER (Bronze / Argent / Or / Custom)
   ===================================================================== */
.tier-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  white-space: nowrap; line-height: 1.5; border: 1px solid transparent;
}
.tier-pill::before { content: "●"; font-size: 8px; line-height: 1; }
.tier-bronze { color: #E3A063; background: rgba(205,127,50,0.12); border-color: rgba(205,127,50,0.45); }
.tier-argent { color: #D7DBE2; background: rgba(199,203,209,0.12); border-color: rgba(199,203,209,0.45); }
.tier-or     { color: #FFD24A; background: rgba(255,210,74,0.14);  border-color: rgba(255,210,74,0.55);
               box-shadow: 0 0 0 1px rgba(255,210,74,0.12) inset; }
.tier-custom { color: var(--paper-soft); background: rgba(229,227,220,0.08); border-color: rgba(229,227,220,0.3); }

/* Groupe de badges à droite de l'en-tête de carte catalogue */
.brique-badges { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* Carte verrouillée : on atténue tout sauf la pastille de palier, qui guide l'upsell */
.brique-card.is-locked .tier-or { opacity: 1; }

/* =====================================================================
   ACCENTS PRICING (Bronze / Argent / Or / Custom)
   ===================================================================== */
.pricing-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pricing-card { position: relative; }
.pricing-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0; opacity: .9;
}

/* =====================================================================
   CAROUSEL DES BLOCS (landing — swipe horizontal)
   ===================================================================== */
.bloc-carousel { position: relative; margin-top: 8px; }
.bloc-cara-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.bloc-cara-track::-webkit-scrollbar { display: none; }
.bloc-cara-card {
  scroll-snap-align: start; flex: 0 0 300px; max-width: 300px;
  background: var(--ink-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 22px 20px;
  border-top: 3px solid var(--muted-2);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bloc-cara-card[data-accent="lime"] { border-top-color: var(--lime); }
.bloc-cara-card[data-accent="cyan"] { border-top-color: var(--cyan); }
.bloc-cara-card[data-accent="teal"] { border-top-color: var(--teal); }
.bloc-cara-card[data-accent="pink"] { border-top-color: var(--pink); }
.bloc-cara-card[data-accent="red"]  { border-top-color: var(--red); }
.bloc-cara-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.32); }
.bloc-cara-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bloc-cara-block { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bloc-cara-block .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bloc-cara-card[data-accent="lime"] .bloc-cara-block { color: var(--lime); }
.bloc-cara-card[data-accent="cyan"] .bloc-cara-block { color: var(--cyan); }
.bloc-cara-card[data-accent="teal"] .bloc-cara-block { color: var(--teal); }
.bloc-cara-card[data-accent="pink"] .bloc-cara-block { color: var(--pink); }
.bloc-cara-card[data-accent="red"]  .bloc-cara-block { color: var(--red); }
.bloc-cara-count { font-size: 11px; font-weight: 700; color: var(--paper); background: rgba(255,255,255,0.06); border: 1px solid var(--line); padding: 2px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.bloc-cara-title { font-size: 20px; font-weight: 700; color: var(--paper); line-height: 1.15; margin: 0; }
.bloc-cara-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; flex: 1; }
.bloc-cara-foot { margin-top: 4px; }
.bloc-cara-nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: none;
  font-size: 20px; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  transition: transform .15s ease, opacity .15s ease;
}
.bloc-cara-nav:hover { transform: translateY(-50%) scale(1.08); }
.bloc-cara-nav.prev { left: -16px; }
.bloc-cara-nav.next { right: -16px; }
.bloc-cara-nav[disabled] { opacity: 0; pointer-events: none; }
.bloc-cara-hint { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 6px; letter-spacing: .02em; }
@media (max-width: 760px) {
  .bloc-cara-card { flex-basis: 80%; max-width: 80%; }
  .bloc-cara-nav { display: none; }
}

/* =====================================================================
   BOUTIQUE DE CRÉDITS À L'UNITÉ
   ===================================================================== */
.shop-intro { max-width: 760px; line-height: 1.6; margin: 4px 0 22px; }
.shop-intro a { color: var(--cyan); font-weight: 600; }
.shop-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 22px; align-items: start; }
.shop-card {
  background: var(--ink-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 26px 24px;
}
.shop-card-head { margin-bottom: 18px; }
.shop-card-head h2 { margin: 8px 0 0; font-size: 24px; }
.shop-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shop-chip {
  min-width: 46px; padding: 9px 14px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--line);
  color: var(--paper); font-weight: 700; font-size: 14px; cursor: pointer;
  transition: all .14s ease;
}
.shop-chip:hover { border-color: var(--muted); }
.shop-chip.is-active { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.shop-stepper { display: flex; align-items: stretch; gap: 12px; }
.shop-step-btn {
  width: 52px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--ink-elev); color: var(--paper); font-size: 26px; font-weight: 600;
  cursor: pointer; transition: all .14s ease; line-height: 1;
}
.shop-step-btn:hover { border-color: var(--lime); color: var(--lime); }
.shop-qty-box {
  flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 8px;
  background: var(--ink-elev); border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 14px;
}
.shop-qty-box input {
  width: 90px; background: transparent; border: none; color: var(--paper);
  font-size: 40px; font-weight: 800; text-align: center; font-family: "Bebas Neue", sans-serif; letter-spacing: .02em;
}
.shop-qty-box input::-webkit-outer-spin-button,
.shop-qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-qty-box input:focus { outline: none; }
.shop-qty-unit { color: var(--muted); font-size: 14px; font-weight: 600; }
.shop-bounds { font-size: 12.5px; margin: 8px 0 0; }
.shop-recap {
  margin: 20px 0; padding: 16px 18px; border-radius: var(--r);
  background: var(--ink-elev); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.shop-recap-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--paper); }
.shop-recap-total { padding-top: 10px; border-top: 1px dashed var(--line); font-size: 16px; }
.shop-recap-total strong { font-size: 20px; color: var(--lime); }
.shop-fine { font-size: 12px; margin: 12px 0 0; line-height: 1.5; }
.shop-aside { display: flex; flex-direction: column; gap: 16px; }
.shop-info-card {
  background: var(--ink-card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
}
.shop-info-card--sub { border-color: rgba(0,168,189,0.35); background: rgba(0,168,189,0.05); }
.shop-info-num { font-family: "Bebas Neue", sans-serif; font-size: 40px; color: var(--paper); line-height: 1; }
.shop-info-card--sub .shop-info-num { color: var(--cyan); }
.shop-info-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 2px 0 10px; }
.shop-info-card p { font-size: 13px; line-height: 1.5; margin: 0 0 12px; }
.shop-info-note {
  background: var(--ink-elev); border: 1px dashed var(--line); border-radius: var(--r);
  padding: 16px 18px;
}
.shop-info-note strong { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.shop-balance-big { font-family: "Bebas Neue", sans-serif; font-size: 30px; color: var(--lime); line-height: 1; }
.shop-balance-big .muted { font-family: "Inter", sans-serif; font-size: 13px; }
@media (max-width: 860px) {
  .shop-grid { grid-template-columns: 1fr; }
}
