/* ==================================================================
   KARAT — Design system
   Noir profond + or, style luxe premium.
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --bg-soft: #141414;
  --bg-card: #171717;
  --line: #2a2723;
  --gold: #d4af37;
  --gold-light: #f5d77e;
  --gold-grad: linear-gradient(120deg, #d4af37 0%, #f5d77e 55%, #d4af37 100%);
  --text: #f4f1ea;
  --text-dim: #b7b2a6;
  --text-mute: #837e72;
  --danger: #e5675f;
  --success: #6fbf8b;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-gold: 0 18px 50px -12px rgba(212, 175, 55, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* transition douce a l'ouverture des pages */
  animation: pageIn 0.5s var(--ease) both;
}

/* Fondu à l'ouverture — SANS transform : un transform persistant sur <body>
   (fill-mode both) ferait de <body> le bloc conteneur des éléments position:fixed
   et décalerait les fenêtres modales/tiroirs dès que la page défile. */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}

.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Boutons ---------------------------------------------- */
.btn {
  --_pad-y: 13px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--_pad-y) 26px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.3px;
  border: 1px solid transparent; border-radius: 50px; cursor: pointer;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, color 0.3s, background 0.3s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold-grad); color: #1a1400; font-weight: 600;
  background-size: 180% 100%;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* effet de brillance doree qui traverse les boutons principaux */
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: shine 0.9s var(--ease); }
@keyframes shine { to { left: 130%; } }

/* Confirmation « enregistré » : le bouton passe au vert avec une coche. */
.btn.btn-saved, .btn-primary.btn-saved {
  background: linear-gradient(135deg, #1e9e5a, #34c77b) !important;
  color: #fff !important; box-shadow: 0 8px 26px rgba(30, 158, 90, .4) !important;
  animation: savedPop .35s var(--ease);
}
.btn.btn-saved::after { display: none; }
@keyframes savedPop { 0% { transform: scale(.96); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

.btn-outline-gold { background: transparent; border-color: rgba(212,175,55,.45); color: var(--gold-light); }
.btn-outline-gold:hover { background: rgba(212,175,55,.08); border-color: var(--gold); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }

/* ---------- En-tete ---------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 13, 13, 0.82); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; }
.mark { overflow: visible; }
/* Logo « gemme » HYPER VISIBLE : tourne en 3D, rebondit et pulse en or. */
.brand .mark { width: 34px; height: 34px; transform-origin: center; animation: markSpin 3.2s ease-in-out infinite; }
@keyframes markSpin {
  0%, 40%   { transform: perspective(340px) rotateY(0deg) scale(1);    filter: drop-shadow(0 0 0 rgba(245,215,126,0)); }
  60%       { transform: perspective(340px) rotateY(180deg) scale(1.28); filter: drop-shadow(0 0 12px rgba(245,215,126,.95)); }
  78%, 100% { transform: perspective(340px) rotateY(360deg) scale(1);    filter: drop-shadow(0 0 0 rgba(245,215,126,0)); }
}
/* Reflet de lumière qui balaye la pierre. */
.mark-sheen { transform: translateX(-34px); animation: markSheen 3.2s ease-in-out infinite; }
@keyframes markSheen { 0%, 10% { transform: translateX(-34px); } 38%, 100% { transform: translateX(104px); } }
/* Grande étincelle qui éclate sur la gemme. */
.mark-glint { transform-box: fill-box; transform-origin: center; opacity: 0; animation: markGlint 3.2s ease-in-out infinite; }
@keyframes markGlint {
  0%, 20% { opacity: 0; transform: scale(.2) rotate(0deg); }
  32% { opacity: 1; transform: scale(1.6) rotate(35deg); }
  46%, 100% { opacity: 0; transform: scale(.2) rotate(70deg); }
}
/* Facettes qui flashent en vague, bien lumineuses. */
.mark-facets polygon { opacity: 0; mix-blend-mode: screen; animation: facetShimmer 1.9s ease-in-out infinite; }
.mark-facets polygon:nth-child(1) { animation-delay: 0s; }
.mark-facets polygon:nth-child(2) { animation-delay: .12s; }
.mark-facets polygon:nth-child(3) { animation-delay: .24s; }
.mark-facets polygon:nth-child(4) { animation-delay: .36s; }
.mark-facets polygon:nth-child(5) { animation-delay: .48s; }
.mark-facets polygon:nth-child(6) { animation-delay: .6s; }
.mark-facets polygon:nth-child(7) { animation-delay: .72s; }
@keyframes facetShimmer { 0%, 50%, 100% { opacity: 0; } 16% { opacity: .85; } }
/* Survol : coup d'éclat supplémentaire. */
.brand:hover .mark { animation: markPop .6s var(--ease); }
@keyframes markPop { 40% { transform: scale(1.2) rotate(-6deg); } 100% { transform: scale(1); } }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.92rem; letter-spacing: 0.4px; position: relative; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--gold-grad); transition: width 0.35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }

/* ---------- Hero ------------------------------------------------- */
.hero { position: relative; padding: 190px 0 120px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; max-width: 130vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.05) 32%, transparent 62%);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 50px;
  font-size: 0.8rem; color: var(--text-dim); margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.02);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -0.5px; margin-bottom: 24px; }
.hero h1 span { display: inline-block; }
.hero-sub { max-width: 620px; margin: 0 auto 38px; font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text-dim); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 0.85rem; color: var(--text-mute); }
.hero-mock {
  margin: 0 auto; max-width: 900px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg)); padding: 14px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  transition: transform .25s var(--ease); will-change: transform;
}

/* ---------- Héro : visuel animé + décorations flottantes ---------- */
.hero-visual { position: relative; margin: 70px auto 0; max-width: 900px; }
/* Barre de progression de lecture (en haut de page) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gold-grad); z-index: 200; box-shadow: 0 0 12px rgba(212,175,55,.6);
  transition: width .1s linear;
}
/* Reflet doré animé sur le mot en or du titre */
.hero h1 .gold-text {
  background: linear-gradient(100deg, #d4af37 0%, #fff3cf 25%, #f5d77e 50%, #fff3cf 60%, #d4af37 80%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: goldShine 4.5s linear infinite;
}
@keyframes goldShine { to { background-position: 220% center; } }
/* Halo qui respire */
.hero-glow { animation: haloPulse 7s ease-in-out infinite; }
@keyframes haloPulse { 0%,100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }

/* Barres du mini-graphique qui montent au chargement */
.hero-mock svg g rect { transform-box: fill-box; transform-origin: bottom; animation: growBar 1s var(--ease) both; }
.hero-mock svg g rect:nth-child(1){animation-delay:.35s}.hero-mock svg g rect:nth-child(2){animation-delay:.43s}
.hero-mock svg g rect:nth-child(3){animation-delay:.51s}.hero-mock svg g rect:nth-child(4){animation-delay:.59s}
.hero-mock svg g rect:nth-child(5){animation-delay:.67s}.hero-mock svg g rect:nth-child(6){animation-delay:.75s}
.hero-mock svg g rect:nth-child(7){animation-delay:.83s}.hero-mock svg g rect:nth-child(8){animation-delay:.91s}
@keyframes growBar { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Cartes flottantes (notification de commande, vente encaissée) */
.float-card {
  position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 14px; background: rgba(20,20,20,.92);
  border: 1px solid rgba(212,175,55,.4); box-shadow: 0 18px 40px -12px rgba(0,0,0,.8);
  backdrop-filter: blur(6px); font-size: .82rem; color: var(--text);
  animation: floatY 5s ease-in-out infinite;
}
.float-card b { color: var(--gold-light); font-size: .95rem; }
.float-card span { color: var(--text-mute); font-size: .74rem; }
.fc-order { top: 8%; left: -34px; animation-delay: .2s; }
.fc-sale { bottom: 12%; right: -30px; animation-delay: 1.4s; }
.fc-visits { top: 40%; right: -46px; animation-delay: .8s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Jetons de devise qui flottent */
.float-coin {
  position: absolute; z-index: 2; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: .92rem;
  color: #3a2d05; background: radial-gradient(circle at 32% 28%, #ffe9a8, #d4af37 60%, #b8901f);
  box-shadow: 0 12px 30px -8px rgba(212,175,55,.6), inset 0 2px 6px rgba(255,255,255,.5);
  border: 1px solid #f5d77e; animation: floatSpin 6s ease-in-out infinite;
}
.coin-1 { top: -26px; right: 12%; animation-delay: .1s; }
.coin-2 { bottom: -24px; left: 10%; width: 52px; height: 52px; font-size: .8rem; animation-delay: 1s; }
@keyframes floatSpin { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }

/* Étincelles — limitées au héro de la page d'accueil (ne pas toucher les
   mini-graphiques « sparkline » du tableau de bord qui portent aussi .spark). */
.hero-sparkles { position: absolute; inset: -30px; z-index: 1; pointer-events: none; }
.hero-sparkles .spark { position: absolute; width: 10px; height: 10px; background: var(--gold-light); border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(245,215,126,.8); opacity: 0; animation: twinkle 3.4s ease-in-out infinite; }
.hero-sparkles .spark:nth-child(1){top:12%;left:6%;animation-delay:0s}.hero-sparkles .spark:nth-child(2){top:70%;left:2%;animation-delay:.7s}
.hero-sparkles .spark:nth-child(3){top:24%;right:4%;animation-delay:1.3s}.hero-sparkles .spark:nth-child(4){bottom:8%;right:16%;animation-delay:2s}
.hero-sparkles .spark:nth-child(5){bottom:18%;left:22%;animation-delay:2.6s;width:7px;height:7px}
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Bandeau paiements (défilement continu) --------------- */
.pay-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 26px 0; overflow: hidden; }
.pay-strip .eyebrow { text-align: center; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.pay-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 50px;
  border: 1px solid var(--line); background: var(--bg-card); white-space: nowrap; font-weight: 500; color: var(--text-dim); }
.pay-chip .pc-coin { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-grad); flex-shrink: 0;
  box-shadow: 0 0 10px rgba(212,175,55,.4); }

/* Léger effet de survol « brillance » sur les icônes de fonctionnalités */
.feature-card:hover .feature-ic { animation: iconPop .5s var(--ease); }
@keyframes iconPop { 0%{transform:scale(1)}40%{transform:scale(1.18) rotate(-6deg)}100%{transform:scale(1)} }

@media (max-width: 760px) {
  .float-card, .float-coin { display: none; }
  .hero-visual { margin-top: 46px; }
}

/* ---------- Etapes (comment ca marche) --------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  padding: 34px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); position: relative; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.4); box-shadow: var(--shadow-gold); }
.step-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; }
.step-icon { width: 42px; height: 42px; margin: 8px 0 18px; color: var(--gold); }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.94rem; }
.step-line { position: absolute; top: 52px; right: -13px; color: var(--line); z-index: 2; }

/* ---------- Cartes fonctionnalites ------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  padding: 34px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-card); transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.feature-card:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(212,175,55,.45); box-shadow: var(--shadow-gold); }
.feature-ic {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(212, 175, 55, 0.09); border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold); margin-bottom: 20px;
}
.feature-ic svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Chiffres --------------------------------------------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700; line-height: 1; }
.stat .label { color: var(--text-dim); margin-top: 10px; letter-spacing: 0.5px; }

/* ---------- Modeles de boutiques --------------------------------- */
.template-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.template {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.template:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.4); box-shadow: var(--shadow-gold); }
.template-thumb { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.template-thumb svg { width: 100%; height: 100%; }
.template-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.template:hover .template-thumb img { transform: scale(1.05); }
.template-body { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.template-body h3 { font-size: 1.25rem; }
.template-body .cat { font-size: 0.78rem; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; }
.template .btn { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Tarifs ----------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 38px 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); border-color: rgba(212,175,55,.4); }
.plan.featured {
  border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,.07), var(--bg-card));
  transform: scale(1.04); box-shadow: var(--shadow-gold);
}
.plan.featured:hover { transform: scale(1.04) translateY(-6px); }
.plan-tag {
  align-self: flex-start; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: #1a1400; background: var(--gold-grad); padding: 5px 12px; border-radius: 50px; margin-bottom: 16px; font-weight: 600;
}
.plan h3 { font-size: 1.7rem; margin-bottom: 6px; }
.plan .plan-desc { color: var(--text-mute); font-size: 0.88rem; min-height: 40px; }
.plan .price { margin: 18px 0 6px; }
.plan .price .amount { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; }
.plan .price .cur { font-size: 1rem; color: var(--text-dim); }
.plan .price .per { color: var(--text-mute); font-size: 0.9rem; }
.plan .price-alt { color: var(--text-mute); font-size: 0.85rem; margin-bottom: 22px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin: 8px 0 28px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--text-dim); }
.plan li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; margin-top: 34px; color: var(--text-mute); font-size: 0.9rem; }

/* ---------- Temoignages ------------------------------------------ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.testimonial:hover { transform: translateY(-5px); border-color: rgba(212,175,55,.35); box-shadow: var(--shadow-gold); }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial p { color: var(--text); font-size: 1rem; margin-bottom: 20px; font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; color: #1a1400; font-weight: 600; font-family: var(--serif); }
.testimonial .who .name { font-weight: 500; }
.testimonial .who .role { color: var(--text-mute); font-size: 0.82rem; }

/* ---------- FAQ -------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--bg-card); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); cursor: pointer;
  padding: 20px 24px; font-family: var(--sans); font-size: 1.05rem; font-weight: 400;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-q .chev { transition: transform 0.35s var(--ease); color: var(--gold); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.96rem; }

/* ---------- CTA final -------------------------------------------- */
.cta-band { text-align: center; }
.cta-inner {
  border: 1px solid rgba(212,175,55,.3); border-radius: 24px; padding: 66px 30px;
  background: radial-gradient(circle at 50% 0%, rgba(212,175,55,.1), var(--bg-card) 60%);
}
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.cta-inner p { color: var(--text-dim); max-width: 520px; margin: 0 auto 30px; }

/* ---------- Pied de page ----------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 34px; background: var(--bg-soft); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin: 16px 0 20px; max-width: 300px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--text-dim); transition: all 0.3s; }
.socials a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 0.85rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ==================================================================
   Animations au scroll (fondu + glissement vers le haut)
   ================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* ==================================================================
   Formulaires / pages auth
   ================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside {
  position: relative; padding: 60px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, #100f0c, #0d0d0d 60%); border-right: 1px solid var(--line); overflow: hidden;
}
.auth-aside .aside-glow { position: absolute; bottom: -20%; left: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(212,175,55,.14), transparent 62%); pointer-events: none; }
.auth-aside .brand { font-size: 1.9rem; position: relative; }
.aside-body { position: relative; z-index: 1; }
.aside-body h2 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 18px; }
.aside-body p { color: var(--text-dim); max-width: 380px; }
.aside-points { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.aside-points li { display: flex; gap: 12px; color: var(--text-dim); }
.aside-points svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.aside-foot { position: relative; z-index: 1; color: var(--text-mute); font-size: 0.85rem; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 0.88rem; margin-bottom: 30px; transition: color 0.3s; }
.auth-back:hover { color: var(--gold-light); }
.auth-card h1 { font-size: 2.2rem; margin-bottom: 8px; }
.auth-card .lead { color: var(--text-dim); margin-bottom: 30px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 0.3px; }
.field input, .field select {
  width: 100%; padding: 13px 15px; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--sans); font-size: 0.96rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.14); }
.field input::placeholder { color: #5f5b51; }
.field .hint { font-size: 0.78rem; color: var(--text-mute); margin-top: 6px; }
.field .err { font-size: 0.8rem; color: var(--danger); margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field.invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-inline { display: flex; align-items: center; justify-content: space-between; }

/* choix du tarif (inscription) */
.plan-choice { display: grid; gap: 10px; margin-bottom: 8px; }
.plan-opt { position: relative; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plan-opt label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.3s; margin: 0;
}
.plan-opt .p-name { color: var(--text); font-size: 0.98rem; }
.plan-opt .p-price { color: var(--text-mute); font-size: 0.85rem; }
.plan-opt input:checked + label { border-color: var(--gold); background: rgba(212,175,55,.07); }
.plan-opt input:checked + label .p-price { color: var(--gold-light); }
.plan-opt input:focus-visible + label { box-shadow: 0 0 0 3px rgba(212,175,55,.14); }

.form-msg { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 18px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(229,103,95,.1); border: 1px solid rgba(229,103,95,.35); color: #f0a29c; }
.form-msg.success { background: rgba(111,191,139,.1); border: 1px solid rgba(111,191,139,.35); color: #a6e0bd; }
.form-msg.info { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.3); color: var(--gold-light); }

.auth-alt { text-align: center; margin-top: 24px; color: var(--text-dim); font-size: 0.92rem; }
.auth-alt a { color: var(--gold-light); }
.link-gold { color: var(--gold-light); }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-mute); cursor: pointer; padding: 4px; }
.pw-toggle:hover { color: var(--gold); }

/* code de verification (6 cases) */
.code-inputs { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 8px; }
.code-inputs input {
  width: 100%; aspect-ratio: 1; text-align: center; font-size: 1.6rem; font-family: var(--serif); font-weight: 600;
  background: var(--bg-soft); color: var(--gold-light); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.code-inputs input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.14); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(26,20,0,.35); border-top-color: #1a1400; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================================================================
   Paiement / verrouillage
   ================================================================== */
.pay-methods { display: grid; gap: 12px; margin: 20px 0; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt label { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s; }
.pay-opt input:checked + label { border-color: var(--gold); background: rgba(212,175,55,.07); }
.pay-opt .pm-logo { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; flex: none; }
.pay-opt .pm-name { font-size: 0.98rem; }
.pay-opt .pm-desc { font-size: 0.82rem; color: var(--text-mute); }
.lock-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(229,103,95,.08); border: 1px solid rgba(229,103,95,.3); color: #f0a29c; margin-bottom: 24px; font-size: 0.92rem; }
.lock-banner svg { flex: none; }

/* ==================================================================
   Tableau de bord
   ================================================================== */
.dash { min-height: 100vh; }
.dash-top { position: sticky; top: 0; z-index: 40; background: rgba(13,13,13,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.dash-top-inner { max-width: 1320px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash-brand-row { display: flex; align-items: center; gap: 12px; }
.side-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; color: var(--text); padding: 7px; cursor: pointer; }
.dash-scrim { display: none; }
.dash-tabbar { display: none; }
.dash-user { display: flex; align-items: center; gap: 12px; }
.dash-visit { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--text-dim); border: 1px solid var(--line); padding: 8px 14px; border-radius: 50px; transition: all .3s; }
.dash-visit:hover { border-color: var(--gold); color: var(--gold-light); }
.dash-user .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); color: #1a1400; display: grid; place-items: center; font-weight: 600; font-family: var(--serif); }
.dash-user .meta .name { font-size: 0.9rem; }
.dash-user .meta .shop { font-size: 0.78rem; color: var(--text-mute); }
.trial-bar { background: linear-gradient(90deg, rgba(212,175,55,.12), rgba(212,175,55,.04)); border-bottom: 1px solid var(--line); }
.trial-bar .inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; flex-wrap: wrap; }
.trial-bar .txt { color: var(--gold-light); font-size: 0.9rem; }
.trial-bar.locked { background: rgba(229,103,95,.1); border-color: rgba(229,103,95,.3); }
.trial-bar.locked .txt { color: #f0a29c; }
.dash-body { padding: 36px 0 80px; }
.dash-title { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dash-title h1 { font-size: 2.1rem; }
.dash-title p { color: var(--text-dim); }
.period-note { color: var(--text-mute); font-size: 0.82rem; border: 1px solid var(--line); padding: 6px 12px; border-radius: 50px; }

/* --- KPI --- */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 18px; }
@media (max-width: 1180px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
.kpi-today { background: linear-gradient(180deg, rgba(212,175,55,.08), var(--bg-card)); border-color: rgba(212,175,55,.3); }
.kpi { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.kpi:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.35); box-shadow: var(--shadow-gold); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.kpi .k-label { color: var(--text-mute); font-size: 0.74rem; letter-spacing: 0.5px; text-transform: uppercase; }
.kpi .k-val { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .k-unit { font-size: 0.9rem; color: var(--text-dim); font-family: var(--sans); }
.kpi .k-sub { color: var(--text-mute); font-size: 0.78rem; margin-top: 6px; }
.kpi .k-spark { margin-top: 12px; height: 34px; }
.kpi .spark { width: 100%; height: 34px; display: block; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 0.76rem; font-weight: 500; padding: 3px 8px; border-radius: 50px; font-variant-numeric: tabular-nums; }
.delta svg { width: 12px; height: 12px; }
.delta.up { color: #8fe0ad; background: rgba(111,191,139,.12); }
.delta.down { color: #f0a29c; background: rgba(229,103,95,.12); }

/* --- Panneaux --- */
.panel { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); margin-bottom: 18px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-head h3 { font-size: 1.22rem; }
.panel-sub { color: var(--text-mute); font-size: 0.82rem; margin-top: 3px; }
.panel-link { color: var(--gold-light); font-size: 0.85rem; }
.panel-link:hover { text-decoration: underline; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* --- Sélecteur de période --- */
.period-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 50px; background: var(--bg-soft); }
.period-btn { background: none; border: none; color: var(--text-dim); font-family: var(--sans); font-size: 0.82rem; padding: 6px 14px; border-radius: 50px; cursor: pointer; transition: all .3s; }
.period-btn:hover { color: var(--text); }
.period-btn.active { background: var(--gold-grad); color: #1a1400; font-weight: 600; }

/* --- Graphique d'aire --- */
.panel-chart { position: relative; }
.chart-area { position: relative; width: 100%; }
.area-chart { width: 100%; height: auto; display: block; overflow: visible; }
.area-chart .grid { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.area-chart .ytick { fill: var(--text-mute); font-size: 10px; font-family: var(--sans); }
.area-chart .xtick { fill: var(--text-mute); font-size: 10px; font-family: var(--sans); text-anchor: middle; }
.area-chart .avg-line { stroke: rgba(245,215,126,.4); stroke-width: 1; stroke-dasharray: 4 4; }
.area-chart .avg-label { fill: var(--text-mute); font-size: 10px; font-family: var(--sans); }
.area-chart .crosshair { stroke: rgba(245,215,126,.5); stroke-width: 1; stroke-dasharray: 3 3; }
.area-chart .hover-dot { fill: #F5D77E; stroke: #0d0d0d; stroke-width: 2; }
.area-chart .hover-layer { transition: opacity .2s; }
.chart-tip { position: absolute; transform: translate(-50%, -130%); pointer-events: none; background: #0f0f0f; border: 1px solid var(--gold);
  border-radius: 10px; padding: 8px 12px; white-space: nowrap; transition: opacity .2s; box-shadow: 0 10px 30px rgba(0,0,0,.6); z-index: 5; }
.chart-tip .t-label { display: block; color: var(--text-mute); font-size: 0.72rem; }
.chart-tip .t-val { display: block; color: var(--gold-light); font-weight: 600; font-size: 0.95rem; font-variant-numeric: tabular-nums; }

/* --- Ventes par catégorie --- */
.cat-list { display: grid; gap: 16px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.cat-name { font-size: 0.92rem; }
.cat-val { font-size: 0.8rem; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.cat-track { height: 9px; background: var(--bg-soft); border-radius: 50px; overflow: hidden; }
.cat-bar { height: 100%; border-radius: 50px; transition: width 1s var(--ease); }

/* --- Meilleures ventes --- */
.top-list { list-style: none; display: grid; gap: 16px; }
.top-list .t-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.top-list .t-name { font-size: 0.92rem; }
.top-list .t-rev { color: var(--gold-light); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.top-list .t-track { height: 6px; background: var(--bg-soft); border-radius: 50px; overflow: hidden; }
.top-list .t-bar { height: 100%; background: var(--gold-grad); border-radius: 50px; transition: width 1s var(--ease); }
.top-list .t-sales { font-size: 0.76rem; color: var(--text-mute); margin-top: 5px; }

/* --- Tunnel de conversion --- */
.funnel { display: grid; gap: 16px; }
.funnel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.funnel-name { font-size: 0.92rem; }
.funnel-val { font-size: 0.9rem; color: var(--text); font-variant-numeric: tabular-nums; }
.funnel-step { color: var(--gold-light); font-size: 0.78rem; margin-left: 4px; }
.funnel-track { height: 12px; background: var(--bg-soft); border-radius: 50px; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 50px; transition: width 1s var(--ease); }

/* --- Donut « Sources de trafic » --- */
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-chart { flex: none; width: 150px; }
.donut { width: 150px; height: 150px; display: block; }
.donut-seg { transition: opacity .5s var(--ease); }
.donut-total { fill: var(--text); font-family: var(--serif); font-size: 22px; font-weight: 700; }
.donut-cap { fill: var(--text-mute); font-size: 9px; font-family: var(--sans); letter-spacing: .5px; }
.donut-legend { list-style: none; flex: 1; min-width: 160px; display: grid; gap: 11px; }
.donut-legend li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.donut-legend .lg-name { color: var(--text-dim); }
.donut-legend .lg-val { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }

/* ==================================================================
   Espace d'administration : coquille + menu latéral + sections
   ================================================================== */
.dash-shell { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 244px 1fr; gap: 0; align-items: start; }
.dash-side { position: sticky; top: 66px; align-self: start; padding: 24px 16px; border-right: 1px solid var(--line); min-height: calc(100vh - 66px); display: flex; flex-direction: column; }
.side-nav { display: grid; gap: 3px; }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; color: var(--text-dim); font-family: var(--sans); font-size: 0.94rem; padding: 11px 14px; border-radius: 11px; cursor: pointer; transition: all .22s; }
.side-link svg { width: 19px; height: 19px; flex: none; }
.side-link:hover { background: var(--bg-card); color: var(--text); }
.side-link.active { background: rgba(212,175,55,.12); color: var(--gold-light); font-weight: 500; }
.side-link.active svg { color: var(--gold); }
/* Barre d'accent à gauche de l'élément actif (comme la référence) */
.side-link.active::before { content: ''; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; border-radius: 3px; background: var(--gold-grad); }

/* Sélecteur de boutique en haut du menu */
.side-shop-wrap { position: relative; margin-bottom: 16px; }
.side-shop { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); cursor: pointer; text-align: left; font-family: var(--sans); transition: border-color .2s; }
.side-shop:hover { border-color: rgba(212,175,55,.4); }
.side-shop-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(212,175,55,.12); color: var(--gold); }
.side-shop-ic svg { width: 20px; height: 20px; }
.side-shop-txt { min-width: 0; flex: 1; }
.side-shop-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-shop-sub { font-size: .74rem; color: var(--text-mute); }
.side-shop-chev { color: var(--text-mute); flex: none; transition: transform .25s var(--ease); }
.side-shop[aria-expanded="true"] .side-shop-chev { transform: rotate(180deg); }

.shop-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); box-shadow: 0 20px 50px -12px rgba(0,0,0,.7); }
.shop-menu-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .7px; color: var(--text-mute); padding: 6px 10px 8px; }
.shop-menu-list { display: grid; gap: 3px; }
.shop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: none; background: none; color: var(--text-dim); font-family: var(--sans); font-size: .9rem; text-align: left; border-radius: 10px; cursor: pointer; transition: background .2s; }
.shop-item:hover { background: var(--bg-soft); color: var(--text); }
.shop-item.active { color: var(--gold-light); background: rgba(212,175,55,.1); }
.shop-item-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-item-cur { font-size: .68rem; color: var(--text-mute); border: 1px solid var(--line); border-radius: 50px; padding: 1px 7px; flex: none; }
.shop-item .check { width: 15px; height: 15px; flex: none; color: var(--gold); }
.shop-menu-add { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed var(--line); background: none; color: var(--gold-light); font-family: var(--sans); font-size: .88rem; border-radius: 10px; cursor: pointer; transition: all .2s; }
.shop-menu-add:hover { border-color: var(--gold); background: rgba(212,175,55,.06); }

/* Libellé de section (BOUTIQUE EN LIGNE, COMPTE…) */
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .8px; color: var(--text-mute); padding: 10px 14px 5px; margin-top: 8px; }

/* Sous-élément (Pixels sous Marketing) */
.side-sub { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; color: var(--text-mute); font-family: var(--sans); font-size: .88rem; padding: 8px 14px 8px 30px; border-radius: 11px; cursor: pointer; transition: all .22s; }
.side-sub:hover { background: var(--bg-card); color: var(--text); }
.side-sub-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.side-badge { margin-left: auto; font-size: 0.72rem; color: var(--text-mute); background: var(--bg-soft); padding: 1px 8px; border-radius: 50px; min-width: 8px; text-align: center; }
.side-link.active .side-badge { color: var(--gold-light); background: rgba(212,175,55,.15); }
.side-badge.alert { color: #1a1400; background: var(--gold-grad); font-weight: 700; animation: badgePulse 1.8s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,.5); } 50% { box-shadow: 0 0 0 5px rgba(212,175,55,0); } }
.tel-link { color: var(--gold-light); }
.tel-link:hover { text-decoration: underline; }
.dash-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 24px); background: var(--bg-card); border: 1px solid var(--gold); color: var(--text); padding: 13px 22px; border-radius: 50px; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: all .4s var(--ease); z-index: 90; box-shadow: 0 16px 44px rgba(0,0,0,.55); }
.dash-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Carte d'activation des notifications de commande */
.notif-card { display: flex; align-items: center; gap: 16px; margin: 0 0 22px;
  padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(212,175,55,.35);
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.03)); }
.notif-card.is-on { border-color: rgba(52,199,123,.4); background: linear-gradient(135deg, rgba(52,199,123,.12), rgba(52,199,123,.03)); }
.notif-ic { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
.notif-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.notif-txt strong { color: var(--text); }
.notif-txt span { color: var(--text-mute); font-size: 0.88rem; }
.notif-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
@media (max-width: 620px) {
  .notif-card { flex-direction: column; align-items: flex-start; text-align: left; }
  .notif-actions { width: 100%; }
  .notif-actions .btn-primary { flex: 1; }
}
.side-foot { margin-top: auto; padding-top: 20px; }
.side-plan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 3px; }
.side-plan-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-mute); }
.side-plan-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }

.dash-content { padding: 34px 30px 80px; min-width: 0; }
.dash-section { display: none; }
.dash-section.active { display: block; animation: sectionIn .4s var(--ease); }
@keyframes sectionIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- Table produits : cellules & actions --- */
.small { font-size: 0.78rem; }
.orders td .muted.small { margin-top: 2px; }
.products-table td { vertical-align: top; }
.row-actions { white-space: nowrap; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 9px; color: var(--text-dim); padding: 7px; cursor: pointer; transition: all .25s; margin-left: 6px; }
.icon-btn svg { width: 16px; height: 16px; display: block; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.pill.info { color: #8fc7e6; background: rgba(59,158,219,.14); }
.pill.muted-pill { color: var(--text-mute); background: rgba(255,255,255,.05); }
.pill.muted-pill::before { background: currentColor; }

/* Sélecteur de statut de commande (pastille cliquable) */
.stsel { display: inline-flex; align-items: center; gap: 2px; border-radius: 50px; padding: 2px 6px 2px 12px; }
.stsel::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stsel select { background: transparent; border: none; color: inherit; font-family: var(--sans); font-size: 0.82rem; padding: 5px 4px; cursor: pointer; -webkit-appearance: none; appearance: none; outline: none; }
.stsel select option { color: #14110c; background: #f4f1ea; }
.stsel.tone-good { color: #8fe0ad; background: rgba(111,191,139,.12); }
.stsel.tone-warning { color: #e6c67e; background: rgba(229,178,93,.14); }
.stsel.tone-info { color: #8fc7e6; background: rgba(59,158,219,.14); }
.stsel.tone-critical { color: #f0a29c; background: rgba(229,103,95,.12); }
.cod { font-size: 0.76rem; color: var(--text-mute); white-space: nowrap; }

/* --- Commandes en cartes (style appli) --- */
.order-cards { display: grid; gap: 14px; }
.orders-empty { text-align: center; padding: 40px 20px; }
.ord-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ord-card:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.ord-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ord-idblock { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ord-name { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; color: var(--text); }
.ord-ref { font-size: 0.8rem; color: var(--text-mute); }
.ord-amount { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.ord-phone { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 0.9rem; color: var(--gold-light); text-decoration: none; }
.ord-phone svg { width: 16px; height: 16px; flex: none; }
.ord-phone:hover { text-decoration: underline; }
.ord-place { margin-top: 9px; font-size: 0.9rem; color: var(--text-dim); }
.ord-items { margin-top: 6px; font-size: 0.9rem; color: var(--text-mute); }
.ord-foot { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.ord-foot .stsel { flex: 1; padding: 10px 14px 10px 16px; border-radius: 14px; position: relative; }
.ord-foot .stsel select { flex: 1; width: 100%; font-size: 0.95rem; font-weight: 600; padding: 4px 2px; }
.ord-foot .stsel::after { content: '⇅'; margin-left: auto; opacity: .55; font-size: 0.9rem; }
.ord-del { flex: none; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line); background: transparent; color: var(--text-mute); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.ord-del svg { width: 20px; height: 20px; }
.ord-del:hover { border-color: var(--danger); color: var(--danger); background: rgba(229,103,95,.08); }

/* Ligne de commande cliquable */
.order-row { cursor: pointer; transition: background .2s; }
.order-row:hover { background: rgba(212,175,55,.06); }

/* Modale détail de commande */
.order-box { max-width: 560px; }
.order-detail { padding: 26px 28px 30px; }
.od-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.od-ref { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--text); }
.od-date { color: var(--text-mute); font-size: .82rem; margin-top: 2px; }
.od-status { flex-shrink: 0; }
.od-sec { padding: 18px 0; border-bottom: 1px solid var(--line); }
.od-sec:last-child { border-bottom: none; padding-bottom: 0; }
.od-sec h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--text-mute); margin-bottom: 12px; }
.od-rows { display: grid; gap: 8px; }
.od-row { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem; color: var(--text-dim); }
.od-row span:last-child { color: var(--text); text-align: right; }
.od-contact { display: flex; gap: 8px; margin-top: 14px; }
.od-items { display: grid; gap: 10px; }
.od-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.od-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.od-item-name { color: var(--text); font-size: .94rem; }
.od-variant { color: var(--gold-light); font-size: .8rem; border: 1px solid rgba(212,175,55,.3); border-radius: 50px; padding: 1px 8px; margin-left: 4px; }
.od-item-qty { color: var(--text-mute); font-size: .8rem; }
.od-item-price { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-totals .od-row { padding: 3px 0; }
.od-total { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--text); padding-top: 10px !important; margin-top: 6px; border-top: 1px solid var(--line); }
.od-total span:last-child { color: var(--gold-light); }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state p { color: var(--text); }
.empty-state .muted { color: var(--text-mute); font-size: 0.9rem; margin-top: 6px; }
.dash-empty { color: var(--text-mute); text-align: center; padding: 34px 10px; font-size: 0.9rem; line-height: 1.7; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* --- Formulaire produit --- */
.product-form { border-color: rgba(212,175,55,.3); }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pf-grid .field, .product-form .field { margin-bottom: 14px; }
.product-form textarea, .store-cols textarea, #sec-shipping textarea { width: 100%; padding: 12px 14px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--sans); font-size: 0.95rem; resize: vertical; }
.product-form textarea:focus, .store-cols textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,.14); }
.pf-check { display: flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 0.9rem; cursor: pointer; margin: 4px 0 8px; }
.pf-check input { width: 17px; height: 17px; accent-color: var(--gold); }
.pf-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.pf-label { display: block; font-size: 0.85rem; color: var(--text-dim); margin: 6px 0 10px; }

/* --- Livraison --- */
.ship-zones { display: grid; gap: 10px; margin-bottom: 16px; }
.ship-row { display: flex; align-items: center; gap: 10px; }
.ship-row .zone-name { flex: 1; padding: 11px 13px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--sans); }
.ship-row .zone-fee { display: flex; align-items: center; gap: 6px; color: var(--text-mute); font-size: 0.85rem; }
.ship-row .zone-fee-in { width: 100px; padding: 11px 13px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--sans); font-variant-numeric: tabular-nums; }
.ship-row input:focus { outline: none; border-color: var(--gold); }

/* --- Ma boutique : thèmes + aperçu --- */
.store-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: start; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-card { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); cursor: pointer; transition: all .3s; }
.theme-card:hover { border-color: rgba(212,175,55,.5); transform: translateY(-2px); }
.theme-card.selected { border-color: var(--gold); background: rgba(212,175,55,.06); }
.theme-swatch { position: relative; width: 52px; height: 52px; border-radius: 11px; flex: none; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.theme-swatch .sw-accent { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.theme-swatch .sw-dot { position: absolute; top: 9px; left: 9px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid; }
.theme-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.theme-name { font-size: 0.95rem; color: var(--text); }
.theme-desc { font-size: 0.76rem; color: var(--text-mute); line-height: 1.4; }
.theme-check { position: absolute; top: 10px; right: 12px; color: var(--gold); opacity: 0; transition: opacity .25s; font-weight: 700; }
.theme-card.selected .theme-check { opacity: 1; }

.store-preview-panel { position: sticky; top: 84px; }
.store-preview { border-radius: 14px; padding: 16px; border: 1px solid var(--line); min-height: 340px; transition: background .4s, color .4s; }
.sp-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; }
.sp-logo { width: 26px; height: 26px; border-radius: 7px; }
.sp-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; flex: 1; }
.sp-cart { font-size: 0.72rem; border: 1px solid; border-radius: 50px; padding: 4px 12px; }
.sp-hero { text-align: center; padding: 26px 10px 22px; }
.sp-tag { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; margin-bottom: 16px; }
.sp-btn { display: inline-block; padding: 9px 22px; border-radius: 50px; color: #1a1400; font-size: 0.82rem; font-weight: 600; }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sp-card { border-radius: 10px; padding: 8px; }
.sp-img { aspect-ratio: 1; border-radius: 7px; margin-bottom: 8px; }
.sp-line { height: 7px; border-radius: 4px; margin-bottom: 5px; }
.sp-line.short { width: 60%; }

.orders-summary { grid-template-columns: repeat(4, 1fr); }
.orders-summary .kpi .k-val { margin-top: 8px; }

@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  .side-toggle { display: inline-flex; }
  .dash-side { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: 260px; background: var(--bg); transform: translateX(-100%); transition: transform .35s var(--ease); border-right: 1px solid var(--line); min-height: 100vh; }
  .dash-side.open { transform: translateX(0); box-shadow: 30px 0 60px rgba(0,0,0,.5); overflow-y: auto; }
  /* Voile sombre derrière le menu ouvert (fermeture au toucher). */
  .dash-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .dash-scrim.open { opacity: 1; pointer-events: auto; }
  .dash-content { padding: 26px 18px 96px; }
  /* Barre d'onglets fixe en bas (navigation type appli). */
  .dash-tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: linear-gradient(180deg, rgba(20,18,14,.96), rgba(10,10,11,.99)); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); justify-content: space-around; align-items: stretch;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
  .dash-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; color: var(--text-mute); font-family: var(--sans); font-size: .66rem; font-weight: 500;
    letter-spacing: .2px; cursor: pointer; padding: 6px 2px 4px; position: relative; transition: color .2s; -webkit-tap-highlight-color: transparent; }
  .dash-tab svg { width: 23px; height: 23px; transition: transform .2s, color .2s; }
  .dash-tab.active { color: var(--gold-light, #f5d77e); }
  .dash-tab.active svg { color: var(--gold, #d4af37); transform: translateY(-1px); }
  .dash-tab:active svg { transform: scale(.9); }
  .tab-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px;
    display: none; align-items: center; justify-content: center; border-radius: 50px;
    background: var(--gold-grad, linear-gradient(120deg,#d4af37,#f8e6a5)); color: #1a1400;
    font-size: .58rem; font-weight: 700; line-height: 1; }
  .tab-badge.on { display: flex; }
  .store-cols { grid-template-columns: 1fr; }
  .store-preview-panel { position: static; }
  .dash-visit span, .dash-visit { font-size: 0.8rem; }
}
@media (max-width: 640px) {
  .dash-top-inner { padding: 11px 14px; gap: 8px; }
  .dash-user .meta, .dash-user .avatar { display: none; }
  .dash-user { gap: 8px; }
  .dash-title h1 { font-size: 1.7rem; }
  .kpi .k-val { font-size: 1.7rem; }
  .panel { padding: 20px 16px; }
}
@media (max-width: 560px) {
  .pf-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .orders-summary { grid-template-columns: 1fr 1fr; }
  .dash-visit { display: none; }
}

/* --- Table des commandes --- */
.table-wrap { overflow-x: auto; }
.orders { width: 100%; border-collapse: collapse; min-width: 640px; }
.orders th { text-align: left; font-family: var(--sans); font-weight: 500; font-size: 0.74rem; letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-mute); padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.orders td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--text-dim); }
.orders tr:last-child td { border-bottom: none; }
.orders tr { transition: background .25s; }
.orders tbody tr:hover { background: rgba(255,255,255,.02); }
.orders .num, .orders th.num { text-align: right; }
.orders .mono { font-variant-numeric: tabular-nums; color: var(--text); }
.orders .cell-prod { color: var(--text); }
.orders .muted { color: var(--text-mute); }

/* Vignette produit dans le tableau */
.prod-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prod-cell-txt { min-width: 0; }
.prod-cell-txt strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Sous-titre court sur une seule ligne (jamais la description complète) */
.prod-sub { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.prod-thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.prod-thumb.emblem { display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gold-light); background: rgba(212,175,55,.1); }

/* Champ photo du produit */
.pf-image { display: flex; align-items: center; gap: 16px; }
.pf-image-preview { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  border: 1px dashed var(--line); background: rgba(255,255,255,.03); display: flex; align-items: center;
  justify-content: center; text-align: center; }
.pf-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.pf-image-preview span { font-size: 0.76rem; color: var(--text-mute); padding: 0 8px; }
.pf-image-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Galerie du produit (jusqu'à 3 photos) dans le formulaire */
.pf-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pf-gal-empty { font-size: 0.78rem; color: var(--text-mute); border: 1px dashed var(--line); border-radius: 12px;
  padding: 22px 18px; width: 100%; text-align: center; background: rgba(255,255,255,.02); }
.pf-gal-item { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.pf-gal-item.main { border-color: var(--gold); }
.pf-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-gal-badge { position: absolute; left: 0; bottom: 0; right: 0; background: var(--gold-grad); color: #1a1400;
  font-size: 0.6rem; font-weight: 700; text-align: center; padding: 2px 0; }
.pf-gal-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
  background: rgba(0,0,0,.65); color: #fff; font-size: 0.95rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pf-gal-x:hover { background: var(--danger); }

/* Identité visuelle : logo + bannière */
.brand-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-up { display: flex; flex-direction: column; gap: 10px; }
.brand-up-label { font-size: 0.82rem; color: var(--text-dim); }
.brand-preview { border: 1px dashed var(--line); border-radius: 12px; background: rgba(255,255,255,.03); overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; }
.brand-preview span { font-size: 0.78rem; color: var(--text-mute); }
.brand-preview.logo { width: 96px; height: 96px; }
.brand-preview.logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-preview.banner { width: 100%; height: 118px; }
.brand-preview.banner img { width: 100%; height: 100%; object-fit: cover; }
.brand-up-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 620px) { .brand-uploads { grid-template-columns: 1fr; } }

/* Éditeur d'adresse de boutique (slug) */
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: rgba(255,255,255,.03); }
.slug-input input { flex: 1; border: none; background: transparent; padding: 11px 14px; color: var(--text);
  font-size: 0.92rem; min-width: 0; }
.slug-input input:focus { outline: none; }
.slug-suffix { display: inline-flex; align-items: center; padding: 0 14px; font-size: 0.9rem;
  color: var(--gold-light); background: rgba(212,175,55,.08); border-left: 1px solid var(--line);
  white-space: nowrap; }
.field.invalid .slug-input { border-color: #e6675f; }

/* Marketing (Facebook / Instagram) */
.mkt-lead { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; margin: 0 0 16px; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03);
  padding: 10px 12px; color: var(--text-dim); font-size: 0.82rem; font-family: var(--mono, ui-monospace, monospace); }
.copy-row input:focus { outline: none; border-color: var(--gold); }
.copy-row .btn { white-space: nowrap; }
.mkt-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mkt-share-l { font-size: 0.82rem; color: var(--text-mute); }
.mkt-guide { margin-top: 26px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(212,175,55,.05); }
.mkt-guide h4 { margin: 0 0 12px; font-size: 0.95rem; color: var(--gold-light); }
.mkt-guide ol { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.mkt-guide li { font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }

/* ==================================================================
   Nouvelles sections : Analyses, Paiement, Comptabilité, API, Paramètres
   ================================================================== */
/* Déconnexion dans le menu latéral */
.side-logout { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text-dim);
  font-family: inherit; font-size: 0.9rem; cursor: pointer; transition: all .2s; }
.side-logout:hover { border-color: #e6675f; color: #f0a29c; }
.side-logout svg { width: 18px; height: 18px; }

/* Barres horizontales (meilleures ventes, villes) */
.bar-list { display: grid; gap: 14px; }
.bar-row .bar-head { display: flex; justify-content: space-between; font-size: 0.86rem; margin-bottom: 6px; }
.bar-name { color: var(--text); } .bar-val { color: var(--text-mute); white-space: nowrap; }
.bar-track { height: 8px; border-radius: 50px; background: rgba(255,255,255,.05); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 50px; transition: width .7s var(--ease); }

/* Barres de statut */
.status-bars { display: grid; gap: 12px; }
.sbar-top { display: flex; justify-content: space-between; font-size: 0.84rem; margin-bottom: 5px; color: var(--text-dim); }
.sbar-track { height: 7px; border-radius: 50px; background: rgba(255,255,255,.05); overflow: hidden; }
.sbar-fill { height: 100%; border-radius: 50px; background: var(--gold); }
.sbar.tone-good .sbar-fill { background: #6fbf8b; } .sbar.tone-warning .sbar-fill { background: #e6b25d; }
.sbar.tone-info .sbar-fill { background: #3b9edb; } .sbar.tone-critical .sbar-fill { background: #e6675f; }

/* Paiement */
.pay-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.pay-method .pay-ic { font-size: 22px; }
.pay-method strong { display: block; font-size: 0.92rem; } .pay-method span { font-size: 0.8rem; color: var(--text-mute); }
.pay-method .pill { margin-left: auto; }
.pay-recent { display: grid; gap: 10px; }
.pay-line { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pay-line:last-child { border-bottom: none; } .pay-line strong { display: block; font-size: 0.86rem; }

/* Comptabilité — graphe CA vs dépenses */
.dual-chart { padding-top: 8px; }
.dc-cols { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 0 4px; }
.dc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; }
.dc-bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; width: 100%; justify-content: center; }
.dc-bar { width: 42%; max-width: 18px; border-radius: 4px 4px 0 0; min-height: 2px; position: relative; transition: height .6s var(--ease); }
.dc-bar.rev { background: linear-gradient(180deg, #F5D77E, #D4AF37); }
.dc-bar.exp { background: rgba(255,255,255,.18); }
.dc-tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 0.7rem; background: #000; color: #fff; padding: 3px 7px; border-radius: 5px; margin-bottom: 4px; }
.dc-bar:hover .dc-tip { display: block; }
.dc-label { font-size: 0.72rem; color: var(--text-mute); }
.dc-legend { display: flex; gap: 20px; justify-content: center; margin-top: 14px; font-size: 0.82rem; color: var(--text-dim); }
.dc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.dc-dot.rev { background: #D4AF37; } .dc-dot.exp { background: rgba(255,255,255,.3); }

.exp-list { display: grid; gap: 10px; max-height: 340px; overflow-y: auto; }
.exp-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.exp-row:last-child { border-bottom: none; } .exp-row strong { display: block; font-size: 0.86rem; }
.exp-amt { display: flex; align-items: center; gap: 10px; }

/* API & Webhooks */
.dev-list { display: grid; gap: 10px; margin-top: 14px; }
.dev-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.dev-item-b { min-width: 0; } .dev-item-b strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.dev-item-a { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.dev-reveal { margin: 14px 0; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--gold);
  background: rgba(212,175,55,.08); }
.dev-reveal p { font-size: 0.84rem; margin: 0 0 10px; color: var(--gold-light); }
.endpoint-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.endpoint-list code { font-size: 0.8rem; color: var(--text-dim); background: rgba(255,255,255,.04);
  padding: 6px 10px; border-radius: 7px; display: block; }
code { font-family: ui-monospace, monospace; }

/* Zone de danger + boutons */
.danger-zone { margin-top: 28px; padding: 18px 20px; border: 1px solid rgba(230,103,95,.35); border-radius: 14px;
  background: rgba(230,103,95,.05); }
.danger-zone h4 { margin: 0 0 8px; color: #f0a29c; font-size: 0.95rem; }
.danger-zone p { font-size: 0.83rem; color: var(--text-mute); margin: 0 0 14px; line-height: 1.5; }
.danger-zone .btn { margin-right: 10px; margin-top: 4px; }
.btn-danger { background: #e6675f; color: #fff; border: 1px solid #e6675f; }
.btn-danger:hover { background: #d4544c; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; padding: 4px 10px; border-radius: 50px; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { color: #8fe0ad; background: rgba(111,191,139,.12); }
.pill.warning { color: #e6c67e; background: rgba(229,178,93,.14); }
.pill.critical { color: #f0a29c; background: rgba(229,103,95,.12); }

/* En-tête statut du Pixel */
.pixel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
/* Champ + bouton « Créer un Pixel » sur une ligne */
.pixel-row { display: flex; gap: 10px; align-items: stretch; }
.pixel-row input { flex: 1; min-width: 0; }
.pixel-row .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 520px) { .pixel-row { flex-direction: column; } }

/* Interrupteur Activé / Désactivé */
.switch-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer; user-select: none; }
.switch-label { color: var(--text-dim); font-size: .92rem; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 50px; background: #2c2c2c; border: 1px solid var(--line); transition: background .3s var(--ease); }
.switch-track::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8a8a8a; transition: transform .3s var(--ease), background .3s; }
.switch input:checked + .switch-track { background: linear-gradient(135deg, #1e9e5a, #34c77b); border-color: transparent; }
.switch input:checked + .switch-track::before { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px rgba(212,175,55,.4); }
.switch-note { color: var(--text-mute); font-style: normal; font-size: .8rem; }

/* ---------- Marketing : onglets, KPI pub, sections ---------------- */
.mkt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.mkt-tab { padding: 8px 16px; border-radius: 50px; border: 1px solid var(--line); background: var(--bg-card);
  color: var(--text-dim); font-family: var(--sans); font-size: .88rem; cursor: pointer; transition: all .25s var(--ease); }
.mkt-tab:hover { color: var(--text); border-color: rgba(212,175,55,.4); }
.mkt-tab.active { background: var(--gold-grad); color: #1a1400; border-color: transparent; font-weight: 600; }

.ad-kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
.ad-kpi-grid .kpi { padding: 20px 18px; }
.ad-kpi-grid .k-ic { width: 18px; height: 18px; color: var(--text-mute); }
.ad-kpi-grid .k-val { font-size: 1.5rem; }
@media (max-width: 1080px) { .ad-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ad-kpi-grid { grid-template-columns: repeat(2, 1fr); } }

/* Ligne dépliable (Pixels) */
.mkt-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  cursor: pointer; text-align: left; color: inherit; font-family: var(--sans); transition: border-color .3s; }
.mkt-row:hover { border-color: rgba(212,175,55,.4); }
.mkt-row-txt h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mkt-row-txt p { color: var(--text-mute); font-size: .88rem; margin-top: 3px; }
.mkt-row-chev { color: var(--text-mute); flex-shrink: 0; transition: transform .3s var(--ease); }
.mkt-row[aria-expanded="true"] .mkt-row-chev { transform: rotate(90deg); }
.mkt-collapse { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.mkt-collapse-inner { padding: 22px 4px 6px; }

/* En-têtes de sous-sections + mini-formulaires */
.mkt-sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 30px 0 14px; }
.mkt-sec-head h3 { font-size: 1.3rem; }
.mkt-sec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 20px; margin-bottom: 16px; }
.entry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 720px) { .entry-grid { grid-template-columns: repeat(2, 1fr); } }

/* Cartes comptes publicitaires */
.acc-list { display: grid; gap: 12px; }
.acc-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); padding: 18px 20px; }
.acc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.acc-card h4 { font-size: 1.1rem; }
.acc-card .acc-meta { color: var(--text-mute); font-size: .82rem; margin-top: 2px; }
.acc-rows { margin: 14px 0 4px; display: grid; gap: 6px; }
.acc-rows .acc-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--text-dim); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.acc-rows .acc-row span:last-child { color: var(--text); }
.acc-sync { width: 100%; margin-top: 12px; }

/* Liste des campagnes */
.camp-list { display: grid; gap: 12px; }
.camp-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); padding: 16px 20px; }
.camp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.camp-card h4 { font-size: 1.08rem; display: flex; align-items: center; gap: 8px; }
.camp-plat { font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-mute); border: 1px solid var(--line); padding: 2px 8px; border-radius: 50px; }
.camp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.camp-stats .cs { }
.camp-stats .cs-label { font-size: .72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .4px; }
.camp-stats .cs-val { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-top: 2px; }
.camp-empty { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-card); padding: 30px; text-align: center; color: var(--text-mute); }
@media (max-width: 560px) { .camp-stats { grid-template-columns: repeat(2, 1fr); } }

/* ==================================================================
   Menu mobile
   ================================================================== */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: linear-gradient(165deg, #15130f 0%, #0a0a0b 62%);
  display: flex; flex-direction: column; padding: 26px 26px 36px; transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto; }
.mobile-menu.open { transform: translateX(0); }
/* En-tête du menu : logo + fermeture */
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.mm-head .brand { font-size: 1.4rem; }
.mm-head .brand .mark { width: 30px; height: 30px; }
/* Liens de navigation (uniquement les liens directs, pas les boutons) */
.mobile-menu > a { font-family: var(--serif); font-size: 1.55rem; padding: 15px 4px; border-bottom: 1px solid var(--line);
  color: var(--text-dim); display: flex; align-items: center; justify-content: space-between; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.mobile-menu > a::after { content: '›'; font-family: var(--sans); color: var(--gold); opacity: .5; font-size: 1.4rem; }
.mobile-menu > a:active, .mobile-menu > a:hover { color: var(--gold-light); padding-left: 12px; }
.mobile-menu .m-cta { margin-top: auto; padding-top: 30px; display: grid; gap: 12px; }
.mobile-close { background: none; border: 1px solid var(--line); border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: var(--text); cursor: pointer; transition: border-color .2s; }
.mobile-close:hover { border-color: var(--gold); color: var(--gold-light); }

/* ==================================================================
   Modale d'apercu de modele
   ================================================================== */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); animation: fadeIn 0.3s ease; }
.modal-box { position: relative; z-index: 1; width: 100%; max-width: 760px; max-height: 90vh; overflow: auto;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px;
  animation: modalIn 0.4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-preview { aspect-ratio: 16/9; overflow: hidden; border-radius: 20px 20px 0 0; }
.modal-preview svg { width: 100%; height: 100%; }
.modal-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-content { padding: 26px 30px 30px; }
.modal-content .cat { color: var(--gold); font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; }
.modal-content h3 { font-size: 1.8rem; margin: 6px 0 10px; }
.modal-content p { color: var(--text-dim); margin-bottom: 22px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(13,13,13,.7); border: 1px solid var(--line); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { border-color: var(--gold); color: var(--gold); }

/* ==================================================================
   Responsive (mobile d'abord respecte : on adapte les grandes vues)
   ================================================================== */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .steps, .feature-grid, .template-grid, .pricing-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .step-line { display: none; }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-6px); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .dash-cols { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .steps, .feature-grid, .template-grid, .pricing-grid, .testimonial-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .row-2 { grid-template-columns: 1fr; }
  .hero { padding: 150px 0 90px; }
  .auth-main { padding: 32px 18px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==================================================================
   Respect de prefers-reduced-motion
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn-primary::after { display: none; }
}
