/* =========================================================
   AISTUDIO — Feuille de style principale
   Palette : noir / gris / blanc — inspiration éditoriale
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Instrument+Serif:ital@1&display=swap');

:root{
  --bg:#0a0a0b;
  --bg-soft:#0f0f11;
  --surface:#17171a;
  --surface-2:#1f1f23;
  --border:rgba(255,255,255,.09);
  --border-strong:rgba(255,255,255,.18);
  --text:#f5f5f6;
  --text-dim:#a3a3ab;
  --text-faint:#6c6c74;
  --white:#ffffff;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:26px;
  --radius-pill:999px;

  --shadow-soft:0 30px 80px rgba(0,0,0,.55);
  --ease:cubic-bezier(.16,1,.3,1);

  --container:1200px;

  --glass-bg:rgba(255,255,255,.035);
  --glass-bg-hover:rgba(255,255,255,.065);
  --glass-border:rgba(255,255,255,.13);
  --glass-blur:blur(20px);

  /* Accent métallisé/vert — repris du logo AISTUDIO */
  --accent:#22c55e;
  --accent-2:#0891b2;
  --accent-glow:rgba(34,197,94,.35);
  --metal-gradient:linear-gradient(135deg, #d9f99d 0%, #4ade80 25%, #22c55e 50%, #0ea5a3 75%, #0891b2 100%);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ margin:0; font-weight:700; letter-spacing:-0.02em; }
p{ margin:0; }
button{ font-family:inherit; }

em, .accent-serif{
  font-family:'Instrument Serif', Georgia, serif;
  font-style:italic;
  font-weight:400;
  background:var(--metal-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}

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

/* ---------- Background texture ---------- */
.noise-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(255,255,255,.035), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(255,255,255,.03), transparent 60%);
}

/* Fond décoratif "nodes/workflow" (esprit éditeur de nodes type ComfyUI) */
.nodes-bg{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
  opacity:.16;
  mask-image:linear-gradient(to bottom, transparent, black 12%, black 75%, transparent);
  -webkit-mask-image:linear-gradient(to bottom, transparent, black 12%, black 75%, transparent);
}
.nodes-bg img{
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width:min(1800px, 160vw);
  max-width:none;
  height:auto;
}
@media (max-width:640px){
  .nodes-bg{ opacity:.1; }
}

/* Cartes en "nodes" — petits points de connexion façon éditeur de workflow */
.feature-card, .product-card, .vip-benefit{
  position:relative;
}
.feature-card::before, .feature-card::after,
.product-card::before, .product-card::after,
.vip-benefit::before, .vip-benefit::after{
  content:'';
  position:absolute;
  top:50%;
  width:8px; height:8px;
  border-radius:50%;
  transform:translateY(-50%);
  z-index:2;
  pointer-events:none;
  transition:box-shadow .3s var(--ease);
}
.feature-card::before, .product-card::before, .vip-benefit::before{
  left:4px;
  background:var(--accent);
  box-shadow:0 0 6px 1px var(--accent-glow);
}
.feature-card::after, .product-card::after, .vip-benefit::after{
  right:4px;
  background:var(--white);
  box-shadow:0 0 6px 1px rgba(255,255,255,.25);
}
.feature-card:hover::before, .product-card:hover::before, .vip-benefit:hover::before{
  box-shadow:0 0 12px 2px var(--accent-glow);
}
.feature-card:hover::after, .product-card:hover::after, .vip-benefit:hover::after{
  box-shadow:0 0 12px 2px rgba(255,255,255,.4);
}
@media (max-width:640px){
  .feature-card::before, .feature-card::after,
  .product-card::before, .product-card::after,
  .vip-benefit::before, .vip-benefit::after{ display:none; }
}

/* Fils reliant les nodes entre elles (tracés en JS, cf. main.js) */
.wire-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
  overflow:visible;
}
.wire-svg path{
  fill:none;
  stroke-width:1.5;
  opacity:.55;
  transition:opacity .3s var(--ease);
}
@media (max-width:640px){
  .wire-svg{ display:none; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:48px;
  padding:0 26px;
  border-radius:var(--radius-pill);
  font-weight:600;
  font-size:14.5px;
  letter-spacing:-0.01em;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-primary{
  background:var(--white);
  color:#0a0a0b;
}
.btn-primary:hover{ background:#e2e2e4; box-shadow:0 0 26px 2px var(--accent-glow); }
.btn-ghost{
  background:transparent;
  border-color:var(--border-strong);
  color:var(--text);
}
.btn-ghost:hover{ border-color:var(--white); }
.btn-block{ width:100%; }
.btn-sm{ height:40px; padding:0 20px; font-size:13.5px; }

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  border-bottom:1px solid transparent;
  background:rgba(10,10,11,.7);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  transition:border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled{
  border-bottom-color:var(--border);
  background:rgba(10,10,11,.92);
}
.site-header .container{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  font-size:19px;
  letter-spacing:-0.02em;
}
.logo-mark{
  width:42px;
  height:42px;
  border-radius:11px;
  display:block;
  transition:transform .3s var(--ease);
}
.logo:hover .logo-mark{ transform:scale(1.06); }
.logo-wide{
  height:34px;
  width:auto;
  display:block;
  transition:transform .3s var(--ease);
}
.logo:hover .logo-wide{ transform:scale(1.04); }
.logo .dot{
  width:8px;height:8px;border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 10px 1px var(--accent-glow);
  display:inline-block;
}
.main-nav{
  display:flex;
  align-items:center;
  gap:36px;
}
.main-nav a{
  font-size:14.5px;
  font-weight:500;
  color:var(--text-dim);
  transition:color .2s var(--ease);
  position:relative;
}
.main-nav a:hover, .main-nav a.is-active{ color:var(--white); }
.main-nav a.is-active::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-27px;
  height:2px;
  background:var(--metal-gradient);
}
.header-actions{
  display:flex;
  align-items:center;
  gap:14px;
}
.header-actions .link-signin{
  font-size:14.5px;
  font-weight:500;
  color:var(--text-dim);
}
.header-actions .link-signin:hover{ color:var(--white); }

.nav-toggle{
  display:none;
  width:40px;height:40px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border-strong);
  background:transparent;
  align-items:center;
  justify-content:center;
  color:var(--white);
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:110px 0 90px;
  text-align:center;
  overflow:hidden;
}
.hero-glow{
  position:absolute;
  top:-260px; left:50%;
  transform:translateX(-50%);
  width:900px; height:600px;
  background:radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
  filter:blur(10px);
  pointer-events:none;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 16px;
  border:1px solid rgba(34,197,94,.3);
  border-radius:var(--radius-pill);
  font-size:13px;
  font-weight:600;
  color:var(--text-dim);
  margin-bottom:28px;
}
.eyebrow .dot{ width:6px;height:6px;border-radius:50%; background:var(--accent); box-shadow:0 0 8px 1px var(--accent-glow); }

.hero h1{
  font-size:clamp(38px, 6.2vw, 74px);
  line-height:1.05;
  max-width:900px;
  margin:0 auto;
}
.hero p.lead{
  max-width:560px;
  margin:26px auto 0;
  color:var(--text-dim);
  font-size:18px;
  line-height:1.6;
}
.hero-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:38px;
  flex-wrap:wrap;
}
.hero-badges{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:56px;
}
.pill-tag{
  padding:9px 16px;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--radius-pill);
  font-size:13px;
  color:var(--text-dim);
  font-weight:500;
}

/* ---------- Section scaffolding ---------- */
.section{ padding:100px 0; position:relative; }
.section-tight{ padding:70px 0; }
.section-head{
  max-width:640px;
  margin:0 0 56px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{
  font-size:clamp(28px, 4vw, 42px);
  line-height:1.15;
  background:var(--metal-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.section-head p{
  color:var(--text-dim);
  font-size:16.5px;
  margin-top:16px;
  line-height:1.65;
}
.section-divider{
  height:1px;
  background:var(--border);
  border:0;
  margin:0;
}

/* ---------- Feature / value cards ---------- */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:22px;
  position:relative;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:22px;
}
.feature-card{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  padding:32px 28px;
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.feature-card:hover{
  border-color:var(--border-strong);
  background:var(--glass-bg-hover);
  box-shadow:0 0 0 1px var(--accent-glow), 0 24px 60px rgba(8,145,178,.15);
  transform:translateY(-4px);
}
.feature-icon{
  width:44px;height:44px;
  border-radius:12px;
  background:var(--surface-2);
  border:1px solid var(--border-strong);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;
}
.feature-card h3{ font-size:18.5px; margin-bottom:10px; }
.feature-card p{ color:var(--text-dim); font-size:14.5px; line-height:1.65; }

/* ---------- Product cards ---------- */
.grid-products{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
  position:relative;
}
.product-card{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.product-card:hover{ border-color:var(--border-strong); background:var(--glass-bg-hover); box-shadow:0 0 0 1px var(--accent-glow), 0 24px 60px rgba(8,145,178,.15); transform:translateY(-4px); }
.product-thumb{
  aspect-ratio:4/3;
  position:relative;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(160deg, #202024, #0c0c0d 70%);
  display:flex;align-items:center;justify-content:center;
  border-bottom:1px solid var(--border);
}
.product-thumb .glyph{
  font-family:'Instrument Serif', serif;
  font-style:italic;
  font-size:44px;
  color:rgba(255,255,255,.5);
}
.product-tag{
  position:absolute;
  top:14px; left:14px;
  padding:5px 11px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:var(--white);
  color:#0a0a0b;
  border-radius:var(--radius-pill);
}
.product-body{
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:14px;
  flex:1;
}
.product-body h3{ font-size:18px; }
.product-body p{ color:var(--text-dim); font-size:14px; line-height:1.6; }
.product-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto;
  padding-top:10px;
}
.product-price{
  font-weight:700;
  font-size:16px;
  background:var(--metal-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.product-price span{ color:var(--text-faint); font-weight:500; font-size:12.5px; }
.product-card{ cursor:pointer; }
.product-meta{ display:none; }

/* ---------- Product detail modal ---------- */
.product-modal-overlay{
  position:fixed;
  inset:0;
  z-index:300;
  background:rgba(6,6,7,.72);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:64px 20px;
  overflow-y:auto;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s var(--ease);
}
.product-modal-overlay.is-open{ opacity:1; pointer-events:auto; }
.product-modal{
  width:100%;
  max-width:480px;
  background:var(--bg-soft);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  padding:28px;
  position:relative;
  transform:translateY(16px) scale(.98);
  transition:transform .3s var(--ease);
  box-shadow:0 40px 100px rgba(0,0,0,.5);
}
.product-modal-overlay.is-open .product-modal{ transform:translateY(0) scale(1); }
.product-modal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
}
.product-modal-tag{
  padding:5px 11px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:var(--white);
  color:#0a0a0b;
  border-radius:var(--radius-pill);
}
.product-modal-close{
  width:36px; height:36px;
  border-radius:10px;
  border:1px solid var(--border-strong);
  background:transparent;
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.product-modal-close:hover{ border-color:var(--white); background:var(--glass-bg-hover); }
.product-modal h2{ font-size:24px; margin-bottom:6px; }
.product-modal-tagline{ color:var(--text-dim); font-size:14.5px; line-height:1.6; margin-bottom:20px; }
/* Before/after compare slider — two stacked layers (image or, until real
   examples are ready, a labelled placeholder), split by a draggable line.
   Drag, or click/tap anywhere in it, to move the split. */
/* Width/height are set inline by JS once the uploaded media's real
   dimensions are known (js/product-modal.js: fitCompareBox), so the box
   always matches the actual footage instead of forcing a fixed shape —
   these are just the placeholder-state fallback before that runs. */
.product-compare{
  position:relative;
  width:220px;
  height:293px;
  max-width:100%;
  margin:0 auto 20px;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  overflow:hidden;
  cursor:ew-resize;
  user-select:none;
  touch-action:none;
  transition:width .2s var(--ease), height .2s var(--ease);
}
.product-compare-layer{
  position:absolute; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-faint);
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(155deg, #202024, #0c0c0d 75%);
}
.product-compare-layer img, .product-compare-layer video{ width:100%; height:100%; object-fit:cover; display:block; }
.product-compare-caption-wrap{
  display:none;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.product-compare-layer.is-placeholder .product-compare-caption-wrap{ display:flex; }
.product-compare-caption-wrap svg{ opacity:.5; }
.product-compare-caption{ font-size:12px; letter-spacing:.02em; }
.product-compare-after{ z-index:1; }
.product-compare-before{ z-index:2; clip-path:inset(0 50% 0 0); background-color:#141416; }
.product-compare-tag{
  position:absolute;
  top:10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:var(--radius-pill);
  background:rgba(0,0,0,.55);
  color:var(--white);
}
.product-compare-before .product-compare-tag{ left:10px; }
.product-compare-after .product-compare-tag{ right:10px; }
.product-compare-handle{
  position:absolute;
  top:0; bottom:0;
  left:50%;
  width:2px;
  background:var(--white);
  transform:translateX(-50%);
  z-index:3;
  pointer-events:none;
}
.product-compare-grip{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:34px; height:34px;
  border-radius:50%;
  background:var(--white);
  color:#0a0a0b;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.4);
}
.product-modal-bullets{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:22px;
  list-style:none;
}
.product-modal-bullets li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  color:var(--text-dim);
  line-height:1.5;
}
.product-modal-bullets li::before{
  content:"";
  width:6px; height:6px;
  border-radius:50%;
  background:var(--accent);
  margin-top:7px;
  flex-shrink:0;
}
.product-modal-price-box{
  padding:16px 18px;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  background:var(--glass-bg);
  margin-bottom:16px;
}
.product-modal-price{
  font-weight:700;
  font-size:22px;
  background:var(--metal-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.product-modal-price span{ color:var(--text-faint); font-weight:500; font-size:14px; }
.product-modal-actions{ display:flex; flex-direction:column; gap:10px; }
@media (max-width:600px){
  .product-modal-overlay{ padding:0; align-items:flex-end; }
  .product-modal{ max-width:none; border-radius:var(--radius-lg) var(--radius-lg) 0 0; max-height:92vh; overflow-y:auto; }
}

/* ---------- AI Model showcase (cartes photo 3D) ---------- */
.model-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:24px;
  max-width:620px;
  margin:0 auto;
}
.model-card{
  border-radius:var(--radius-lg);
  overflow:hidden;
  aspect-ratio:3/4;
  border:1px solid var(--glass-border);
  box-shadow:var(--shadow-soft);
  background:var(--surface);
}
.model-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
}
.model-card-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:18px;
  background:linear-gradient(to top, rgba(0,0,0,.65), transparent);
  pointer-events:none;
}
.model-card-overlay span{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--white);
  padding:6px 13px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:var(--radius-pill);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  background:rgba(255,255,255,.1);
}
@media (max-width:640px){
  .model-grid{ grid-template-columns:1fr; max-width:300px; }
}

/* ---------- Filter bar (produits page) ---------- */
.filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:44px;
}
.filter-chip{
  padding:9px 18px;
  border-radius:var(--radius-pill);
  border:1px solid var(--border-strong);
  font-size:13.5px;
  font-weight:600;
  color:var(--text-dim);
  background:transparent;
  cursor:pointer;
  transition:all .2s var(--ease);
}
.filter-chip.is-active, .filter-chip:hover{
  background:var(--white);
  color:#0a0a0b;
  border-color:var(--white);
  box-shadow:0 0 18px 1px var(--accent-glow);
}
.filter-chip-soon{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:not-allowed;
  opacity:.6;
}
.filter-chip-soon:hover{
  background:transparent;
  color:var(--text-dim);
  border-color:var(--border-strong);
  box-shadow:none;
}
.filter-chip-soon span{
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:var(--radius-pill);
  background:var(--accent-glow);
  color:var(--accent);
}

/* ---------- Stats band ---------- */
.stats-band{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:56px 0;
}
.grid-4{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
  text-align:center;
}
.stat-num{
  font-size:clamp(28px,3.4vw,40px);
  font-weight:800;
  letter-spacing:-0.02em;
  background:var(--metal-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.stat-label{
  color:var(--text-faint);
  font-size:13.5px;
  margin-top:8px;
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  padding:64px 40px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-banner::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(500px 220px at 50% 0%, rgba(34,197,94,.14), transparent 70%);
}
.cta-banner h2{
  font-size:clamp(26px,3.6vw,38px);
  position:relative;
  background:var(--metal-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
.cta-banner p{ color:var(--text-dim); margin-top:14px; position:relative; }
.cta-banner .hero-actions{ position:relative; margin-top:32px; }

/* ---------- VIP page ---------- */
.vip-hero{
  text-align:center;
  padding:120px 0 80px;
  position:relative;
  perspective:1400px;
}
.vip-hero .container{ position:relative; z-index:2; }
.vip-badge{
  width:64px;height:64px;
  margin:0 auto 28px;
  border-radius:50%;
  border:1px solid rgba(34,197,94,.35);
  background:var(--surface);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 8px var(--accent-glow);
}
.vip-benefits{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  position:relative;
}
.vip-benefit{
  display:flex;
  gap:16px;
  padding:26px;
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-md);
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  transition:border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.vip-benefit:hover{ border-color:var(--border-strong); background:var(--glass-bg-hover); box-shadow:0 0 0 1px var(--accent-glow), 0 24px 60px rgba(8,145,178,.15); }
.vip-benefit .num{
  font-family:'Instrument Serif', serif;
  font-style:italic;
  font-size:30px;
  color:var(--text-faint);
  line-height:1;
}
.vip-benefit h3{ font-size:16.5px; margin-bottom:6px; }
.vip-benefit p{ color:var(--text-dim); font-size:14px; line-height:1.6; }

.locked-panel{
  position:relative;
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  background:var(--glass-bg);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  padding:64px 32px;
  text-align:center;
  overflow:hidden;
}
.locked-panel .locked-grid{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  padding:32px;
  filter:blur(6px);
  opacity:.35;
}
.locked-panel .locked-grid div{
  aspect-ratio:1;
  border-radius:14px;
  background:linear-gradient(160deg, #26262a, #0c0c0d);
  border:1px solid var(--border);
}
.locked-panel .locked-content{
  position:relative;
  z-index:1;
}
.locked-panel h3{ font-size:22px; margin:18px 0 10px; }
.locked-panel p{ color:var(--text-dim); max-width:420px; margin:0 auto; }

.vip-form{
  display:flex;
  gap:12px;
  max-width:440px;
  margin:32px auto 0;
}
.vip-form input{
  flex:1;
  height:50px;
  padding:0 18px;
  border-radius:var(--radius-pill);
  border:1px solid var(--border-strong);
  background:var(--bg-soft);
  color:var(--white);
  font-size:14.5px;
  font-family:inherit;
}
.vip-form input::placeholder{ color:var(--text-faint); }
.vip-form input:focus{ outline:none; border-color:var(--white); }

.vip-note{
  margin-top:18px;
  font-size:12.5px;
  color:var(--text-faint);
}

/* ---------- FAQ ---------- */
.faq-item{
  border-bottom:1px solid var(--border);
}
.faq-q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 4px;
  background:none;
  border:0;
  color:var(--white);
  font-size:16px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
}
.faq-q .icon{
  flex:none;
  width:20px;height:20px;
  position:relative;
}
.faq-q .icon::before, .faq-q .icon::after{
  content:'';
  position:absolute;
  background:var(--text-dim);
  transition:transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-q .icon::before{ top:9px; left:0; width:20px; height:1.5px; }
.faq-q .icon::after{ top:0; left:9px; width:1.5px; height:20px; }
.faq-item.is-open .faq-q .icon::after{ transform:rotate(90deg); opacity:0; }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s var(--ease);
}
.faq-a p{
  padding:0 4px 22px;
  color:var(--text-dim);
  font-size:14.5px;
  line-height:1.65;
  max-width:640px;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top:1px solid var(--border);
  padding:72px 0 32px;
}
.footer-top{
  display:grid;
  grid-template-columns:1.4fr repeat(3, 1fr);
  gap:32px;
  padding-bottom:56px;
}
.footer-brand p{
  color:var(--text-dim);
  font-size:14px;
  margin-top:16px;
  max-width:260px;
  line-height:1.6;
}
.footer-col h4{
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--text-faint);
  margin-bottom:18px;
}
.footer-col ul li{ margin-bottom:12px; }
.footer-col ul li a{
  font-size:14.5px;
  color:var(--text-dim);
  transition:color .2s var(--ease);
}
.footer-col ul li a:hover{ color:var(--white); }
.footer-bottom{
  border-top:1px solid var(--border);
  padding-top:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  color:var(--text-faint);
  font-size:13px;
}
.footer-socials{ display:flex; gap:16px; }
.footer-socials a{ color:var(--text-dim); }
.footer-socials a:hover{ color:var(--white); }

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity:1; transform:none; }

/* ---------- Mobile ---------- */
@media (max-width:900px){
  .main-nav{ display:none; }
  .header-actions .link-signin{ display:none; }
  .nav-toggle{ display:flex; }
  .grid-3, .grid-products{ grid-template-columns:repeat(2,1fr); }
  .grid-4{ grid-template-columns:repeat(2,1fr); gap:32px 24px; }
  .footer-top{ grid-template-columns:repeat(2,1fr); }
  .vip-benefits{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .grid-3, .grid-products, .grid-2{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; gap:40px; }
  .hero{ padding:90px 0 60px; }
  .section{ padding:70px 0; }
  .vip-form{ flex-direction:column; }
  .cta-banner{ padding:48px 24px; }
}

/* ---------- Mobile menu overlay ---------- */
.mobile-menu{
  position:fixed;
  inset:0;
  z-index:200;
  background:var(--bg);
  display:flex;
  flex-direction:column;
  padding:24px;
  transform:translateY(-100%);
  transition:transform .35s var(--ease);
}
.mobile-menu.is-open{ transform:translateY(0); }
.mobile-menu-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:52px;
}
.mobile-menu nav{
  margin-top:40px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.mobile-menu nav a{
  font-size:26px;
  font-weight:700;
  padding:14px 4px;
  border-bottom:1px solid var(--border);
  color:var(--text);
}
.mobile-menu-actions{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* =========================================================
   3D — objet interactif, formes flottantes, tilt, parallax
   ========================================================= */

/* Hero : espace 3D + canvas Three.js */
.hero{ perspective:1400px; }
.hero-3d{
  position:absolute;
  inset:0;
  z-index:1;
  opacity:.9;
  pointer-events:none;
}
.hero-3d canvas{ display:block; width:100%; height:100%; }
.hero .container{ position:relative; z-index:2; }
.hero-glow{ z-index:0; }

/* Formes flottantes décoratives (CSS 3D) */
.shape-field{
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
  pointer-events:none;
}
.shape-wrap{
  position:absolute;
  animation:shapeFloat 9s ease-in-out infinite;
  will-change:transform;
}
.shape-wrap.delay-1{ animation-delay:-2.4s; }
.shape-wrap.delay-2{ animation-delay:-5.1s; }

.shape-cube{
  width:64px;height:64px;
  transform-style:preserve-3d;
  animation:cubeSpin 18s linear infinite;
}
.shape-cube .face{
  position:absolute;
  inset:0;
  border:1px solid rgba(34,197,94,.22);
  background:rgba(34,197,94,.02) url('../assets/logo.svg') center / cover no-repeat;
  backdrop-filter:blur(1px);
}
.shape-cube .face:nth-child(1){ transform:translateZ(32px); }
.shape-cube .face:nth-child(2){ transform:rotateY(180deg) translateZ(32px); }
.shape-cube .face:nth-child(3){ transform:rotateY(90deg) translateZ(32px); }
.shape-cube .face:nth-child(4){ transform:rotateY(-90deg) translateZ(32px); }
.shape-cube .face:nth-child(5){ transform:rotateX(90deg) translateZ(32px); }
.shape-cube .face:nth-child(6){ transform:rotateX(-90deg) translateZ(32px); }

.shape-ring{
  width:130px;height:130px;
  border:1px solid rgba(34,197,94,.28);
  border-radius:50%;
  transform-style:preserve-3d;
  transform:rotateX(68deg);
  animation:ringSpin 16s linear infinite;
}
.shape-ring::after{
  content:'';
  position:absolute;
  inset:18px;
  border:1px solid rgba(8,145,178,.2);
  border-radius:50%;
}

.shape-dot{
  width:6px;height:6px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 16px 2px var(--accent-glow);
}

@keyframes shapeFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-22px); }
}
@keyframes cubeSpin{
  from{ transform:rotateX(0) rotateY(0); }
  to{ transform:rotateX(360deg) rotateY(360deg); }
}
@keyframes ringSpin{
  from{ transform:rotateX(68deg) rotateZ(0); }
  to{ transform:rotateX(68deg) rotateZ(360deg); }
}

/* Cartes en tilt 3D (JS applique le transform inline au survol) */
[data-tilt]{
  position:relative;
  transform-style:preserve-3d;
  will-change:transform;
}
.tilt-glare{
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:transparent;
  pointer-events:none;
  z-index:3;
  mix-blend-mode:overlay;
}

/* Respect des préférences de mouvement réduit */
@media (prefers-reduced-motion:reduce){
  .shape-wrap, .shape-cube, .shape-ring, .reveal{
    animation:none !important;
    transition:none !important;
  }
  .hero-3d{ display:none; }
}

@media (max-width:900px){
  .shape-field{ display:none; }
}

/* ---------- Grille 3D en perspective (sol futuriste) ---------- */
.hero-grid{
  position:absolute;
  left:-25%; right:-25%; bottom:0;
  height:320px;
  z-index:1;
  overflow:hidden;
  pointer-events:none;
  perspective:400px;
  -webkit-mask-image:linear-gradient(to top, black 5%, transparent 88%);
          mask-image:linear-gradient(to top, black 5%, transparent 88%);
}
.hero-grid-plane{
  position:absolute;
  inset:-20% 0 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.16) 0 1px, transparent 1px 56px);
  transform:rotateX(78deg);
  transform-origin:bottom center;
  animation:gridScroll 5s linear infinite;
}
@keyframes gridScroll{
  from{ background-position:0 0, 0 0; }
  to{ background-position:0 56px, 0 0; }
}
@media (prefers-reduced-motion:reduce){
  .hero-grid-plane{ animation:none; }
}
@media (max-width:900px){
  .hero-grid{ display:none; }
}

/* ---------- Halo qui suit le curseur (global) ---------- */
.cursor-halo{
  position:fixed;
  top:0; left:0;
  width:560px; height:560px;
  margin:-280px 0 0 -280px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,.07), transparent 70%);
  pointer-events:none;
  z-index:40;
  transform:translate(-1000px,-1000px);
  will-change:transform;
}
@media (max-width:900px), (hover:none){
  .cursor-halo{ display:none; }
}

/* ---------- Profondeur multi-couches dans les cartes (JS applique le transform inline) ---------- */
[data-depth]{
  will-change:transform;
  transition:transform .15s var(--ease);
}

/* =========================================================
   STUDIO — espace de création (post-connexion)
   ========================================================= */
.studio-body{ overflow-x:hidden; }

.studio-topbar{
  position:sticky;
  top:0;
  z-index:50;
  height:64px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:0 24px;
  border-bottom:1px solid var(--border);
  background:rgba(10,10,11,.85);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.studio-topbar .logo-wide{ height:26px; }
.studio-topbar-tag{
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--accent);
  padding:4px 10px;
  border:1px solid rgba(34,197,94,.3);
  border-radius:var(--radius-pill);
}
.studio-topbar-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:16px;
}
.studio-topbar-user{
  font-size:13px;
  font-weight:600;
  color:var(--text-dim);
  padding:6px 12px;
  border:1px solid var(--glass-border);
  border-radius:var(--radius-pill);
}
.studio-exit{
  font-size:13.5px;
  font-weight:500;
  color:var(--text-dim);
  transition:color .2s var(--ease);
}
.bot-option{ position:relative; }
.bot-option.is-locked{ opacity:.5; cursor:not-allowed; }
.bot-option.is-locked:hover{ border-color:var(--glass-border); }
.bot-option-lock{
  position:absolute;
  top:10px; right:10px;
  font-size:12px;
}
.studio-exit:hover{ color:var(--white); }

.studio-shell{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:280px 1fr 16px var(--studio-right-w, 420px);
  min-height:calc(100vh - 64px);
}

.studio-resizer{
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:col-resize;
  touch-action:none;
  user-select:none;
}
.studio-resizer::before{
  content:'';
  width:2px;
  height:100%;
  background:var(--border);
  transition:background .15s var(--ease);
}
.studio-resizer:hover::before,
.studio-resizer.is-dragging::before{ background:var(--accent); }
.studio-resizer-grip{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:34px;
  border-radius:9px;
  border:1px solid var(--glass-border);
  background:var(--bg-soft);
  color:var(--text-faint);
  pointer-events:none;
}
.studio-resizer:hover .studio-resizer-grip,
.studio-resizer.is-dragging .studio-resizer-grip{ color:var(--accent); border-color:var(--accent); }
.studio-sidebar{
  padding:26px 20px;
  border-right:1px solid var(--border);
  overflow-y:auto;
}
.studio-sidebar-right{
  border-right:none;
  /* No border-left here — the resizer's own line (below) is the divider
     now; keeping both drew two lines side by side. */
}
.studio-section{ margin-bottom:26px; }
.studio-label{
  display:block;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-bottom:12px;
}

.studio-label-row{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:12px;
}
.studio-label-row .studio-label{ margin-bottom:0; }

.studio-help{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:15px;
  height:15px;
  border-radius:50%;
  border:1px solid var(--glass-border);
  background:transparent;
  color:var(--text-faint);
  font-size:10px;
  font-weight:700;
  line-height:1;
  cursor:help;
  padding:0;
  transition:border-color .2s var(--ease), color .2s var(--ease);
}
.studio-help:hover, .studio-help:focus-visible{
  border-color:var(--accent);
  color:var(--accent);
  outline:none;
}

.bot-option{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  cursor:pointer;
  margin-bottom:9px;
  transition:border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.bot-option:hover{ border-color:var(--border-strong); }
.bot-option.is-active{
  border-color:var(--accent);
  background:var(--glass-bg-hover);
  box-shadow:0 0 0 1px var(--accent-glow), 0 0 20px var(--accent-glow);
}
.bot-option-icon{
  flex:none;
  width:34px; height:34px;
  border-radius:9px;
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
}
.bot-option-title{ font-size:13.5px; font-weight:700; }
.bot-option-sub{ font-size:11.5px; color:var(--text-dim); margin-top:1px; }

.toggle-grid{ display:grid; gap:9px; }
.toggle-grid.cols-2{ grid-template-columns:1fr 1fr; }
.toggle-grid.cols-3{ grid-template-columns:1fr 1fr 1fr; }
.toggle-box{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:14px 8px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  color:var(--text-dim);
  cursor:pointer;
  text-align:center;
  transition:border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.toggle-box:hover{ border-color:var(--border-strong); }
.toggle-box.is-active{
  border-color:var(--accent);
  background:var(--glass-bg-hover);
  color:var(--white);
  box-shadow:0 0 0 1px var(--accent-glow);
}
.toggle-box-title{ font-size:12.5px; font-weight:700; color:var(--white); }
.toggle-box .sub{ font-size:10.5px; color:var(--text-faint); }
.toggle-box-badge{
  position:absolute;
  top:6px; right:6px;
  font-size:9px;
  font-weight:800;
  padding:2px 6px;
  border-radius:var(--radius-pill);
  background:var(--accent);
  color:#06120c;
}

.studio-input, .studio-select, .studio-textarea{
  width:100%;
  height:44px;
  padding:0 14px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--bg-soft);
  color:var(--white);
  font-family:inherit;
  font-size:13.5px;
}
/* Textareas size themselves from their `rows` attribute (and are
   user-resizable) instead of being squashed to the 44px single-line
   input height above — that rule was clobbering every textarea's
   height, including the AI-analyzed prompt review box in Studio. */
textarea.studio-textarea{
  height:auto;
  min-height:44px;
  padding:10px 14px;
  resize:vertical;
  line-height:1.5;
}
.studio-input::placeholder{ color:var(--text-faint); }
.studio-input:focus, .studio-select:focus{ outline:none; border-color:var(--accent); }
.studio-select{ cursor:pointer; }

.btn-generate{
  width:100%;
  height:50px;
  border:none;
  border-radius:var(--radius-pill);
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#06120c;
  font-weight:800;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-generate:hover{ transform:translateY(-2px); box-shadow:0 14px 34px var(--accent-glow); }
.btn-generate:active{ transform:translateY(0) scale(.98); }
.btn-generate[hidden]{ display:none; }
.studio-sidebar-right .btn-generate{ margin-bottom:26px; }
.studio-tabs[hidden]{ display:none; }
.studio-prompt-panel[hidden]{ display:none; }

.studio-main{
  padding:26px 32px 40px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.studio-prompt-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  color:var(--text-dim);
  font-size:13px;
}
.studio-eye{
  background:none;
  border:none;
  cursor:pointer;
  color:var(--text-dim);
  display:flex;
  padding:2px;
}
.studio-eye:hover{ color:var(--white); }
.studio-eye.is-active{ color:var(--accent); }

.studio-prompt-panel{
  padding:16px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.studio-prompt-panel .login-field{ margin:0; }
.studio-prompt-panel .btn{ align-self:flex-start; margin-top:6px; }

.studio-tabs{ display:flex; gap:8px; }
.studio-tab{
  flex:1;
  padding:12px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  color:var(--text-dim);
  font-weight:600;
  font-size:13.5px;
  cursor:pointer;
  transition:all .2s var(--ease);
}
.studio-tab.is-active{
  background:var(--white);
  color:#0a0a0b;
  border-color:var(--white);
}

.studio-dropzone{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:100px;
  border-radius:var(--radius-md);
  border:1px dashed var(--glass-border);
  color:var(--text-dim);
  font-size:13px;
  cursor:pointer;
  transition:border-color .2s var(--ease);
}
.studio-dropzone:hover{ border-color:var(--accent); }
.studio-dropzone.is-dragover{ border-color:var(--accent); border-style:solid; background:rgba(255,255,255,.03); }
.studio-dropzone.has-file{ border-style:solid; border-color:var(--accent); color:var(--text); }

.studio-video-preview{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.studio-video-preview video{
  width:100%;
  max-height:280px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:#000;
}

.studio-canvas{
  flex:1;
  min-height:360px;
  margin-bottom:22px;
  border-radius:var(--radius-lg);
  border:1px dashed var(--glass-border);
  background:var(--glass-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-faint);
  font-size:13.5px;
  text-align:center;
  padding:24px;
}

.studio-tasks-empty{
  font-size:13px;
  color:var(--text-faint);
  line-height:1.6;
}
.studio-task{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  margin-bottom:10px;
  font-size:12.5px;
}
.studio-task-spinner{
  flex:none;
  width:16px; height:16px;
  border-radius:50%;
  border:2px solid var(--border-strong);
  border-top-color:var(--accent);
  animation:studioSpin .8s linear infinite;
}
.studio-task.is-done .studio-task-spinner{
  border:none;
  background:var(--accent);
  position:relative;
}
.studio-task.is-done .studio-task-spinner::after{
  content:'';
  position:absolute;
  left:4px; top:1px;
  width:4px; height:8px;
  border:solid #06120c;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.studio-task-body{ flex:1; min-width:0; }
.studio-task-name{ font-weight:700; color:var(--white); }
.studio-task-status{ display:block; color:var(--text-faint); font-size:11px; margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.studio-task-cancel{
  flex:none;
  width:20px; height:20px;
  border-radius:50%;
  border:1px solid var(--glass-border);
  background:transparent;
  color:var(--text-faint);
  font-size:13px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.studio-task-cancel:hover{ border-color:var(--accent); color:var(--accent); }
.studio-task.is-clickable{ cursor:pointer; }
.studio-task.is-clickable:hover{ border-color:var(--accent); }
@keyframes studioSpin{ to{ transform:rotate(360deg); } }

@media (max-width:1100px){
  /* The right column holds the live generation result again, so it can't
     be hidden here — stack everything into one column instead. */
  .studio-shell{ grid-template-columns:1fr; }
  .studio-sidebar{ border-right:none; border-bottom:1px solid var(--border); }
  .studio-sidebar-right{ border-top:1px solid var(--border); }
  .studio-resizer{ display:none; }
}
@media (max-width:800px){
  .studio-shell{ grid-template-columns:1fr; }
  .studio-sidebar{ border-right:none; border-bottom:1px solid var(--border); }
}

/* ---------- Carte de connexion (page VIP) ---------- */
.login-card{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  padding:36px 32px;
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--accent-glow);
}
.login-form{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:26px;
}
.login-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.login-field span{
  font-size:12px;
  font-weight:600;
  color:var(--text-dim);
}
.login-field input{
  height:46px;
  padding:0 14px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--bg-soft);
  color:var(--white);
  font-family:inherit;
  font-size:14px;
}
.login-field input::placeholder{ color:var(--text-faint); }
.login-field input:focus{ outline:none; border-color:var(--accent); }
.login-form .btn{ margin-top:6px; }
.login-error, .settings-error{
  font-size:13px;
  color:#f87171;
  background:rgba(248,113,113,.1);
  border:1px solid rgba(248,113,113,.3);
  border-radius:var(--radius-md);
  padding:10px 12px;
  margin:0 0 14px;
}

/* =========================================================
   SETTINGS / ONBOARDING
   ========================================================= */
.settings-shell{
  max-width:640px;
  margin:0 auto;
  padding:40px 24px 80px;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.settings-banner{
  background:var(--glass-bg);
  border:1px solid rgba(34,197,94,.35);
  border-radius:var(--radius-lg);
  padding:20px 22px;
}
.settings-banner strong{ font-size:15px; }
.settings-banner p{ color:var(--text-dim); font-size:13.5px; margin-top:6px; }

.settings-section{
  background:var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  padding:26px 26px 22px;
  backdrop-filter:var(--glass-blur);
  -webkit-backdrop-filter:var(--glass-blur);
}
.settings-section h2{ font-size:18px; }
.settings-hint{ color:var(--text-dim); font-size:13px; line-height:1.6; margin-top:8px; margin-bottom:16px; }

.settings-section .login-field{ margin-bottom:14px; }
.settings-section .login-field span{ display:flex; align-items:center; gap:8px; }
.settings-section textarea.studio-textarea{
  height:auto;
  padding:10px 14px;
  resize:vertical;
  font-family:inherit;
}

/* Before/after example uploads — admin.html only */
.admin-example-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
.admin-example-col{ display:flex; flex-direction:column; gap:8px; }
.admin-example-label{ font-size:12.5px; font-weight:600; color:var(--text-dim); }
.admin-example-preview{
  aspect-ratio:16/10;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  background:var(--bg-soft);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  color:var(--text-faint);
  font-size:12px;
  text-align:center;
  padding:8px;
}
.admin-example-preview img, .admin-example-preview video{ width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:560px){
  .admin-example-row{ grid-template-columns:1fr; }
}

.settings-status{
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:2px 8px;
  border-radius:var(--radius-pill);
  background:var(--surface-2);
  color:var(--text-faint);
}
.settings-status.is-set{
  background:var(--accent-glow);
  color:var(--accent);
}

.settings-saved{
  color:var(--accent);
  font-size:12.5px;
  text-align:center;
  margin-top:10px;
}

.settings-progress-track{
  height:8px;
  border-radius:var(--radius-pill);
  background:var(--surface-2);
  overflow:hidden;
  margin-top:8px;
}
.settings-progress-fill{
  height:100%;
  width:0%;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  transition:width .4s var(--ease);
}

.settings-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.settings-row input[type="file"]{
  flex:1;
  font-size:12.5px;
  color:var(--text-dim);
}

.lora-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--glass-border);
  border-radius:var(--radius-md);
  margin-top:10px;
  font-size:13px;
}
.lora-item.is-default{ border-color:var(--accent); }
.lora-item button{
  font-size:11.5px;
  padding:5px 10px;
  border-radius:var(--radius-pill);
  border:1px solid var(--glass-border);
  background:transparent;
  color:var(--text-dim);
  cursor:pointer;
}
.lora-item button:hover{ border-color:var(--accent); color:var(--white); }

/* ========================================================================
   LINK TO VIDEO WIZARD (studio.html — real, multi-step generation flow)
   ======================================================================== */
.ltv-steps{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.ltv-step{
  font-size:11px;
  font-weight:600;
  padding:5px 12px;
  border-radius:var(--radius-pill);
  border:1px solid var(--glass-border);
  color:var(--text-faint);
}
.ltv-step.is-active{ border-color:var(--accent); color:var(--white); }
.ltv-step.is-done{ border-color:var(--accent); color:var(--accent); }

.ltv-block{ display:flex; flex-direction:column; gap:14px; width:100%; max-width:760px; margin:0 auto; text-align:left; }
.ltv-block-wide{ max-width:none; }
.ltv-hint{ color:var(--text-dim); font-size:13px; line-height:1.6; }

.ltv-loading{ display:flex; flex-direction:column; align-items:center; gap:16px; }
.ltv-spinner{
  width:32px; height:32px;
  border-radius:50%;
  border:3px solid var(--border-strong);
  border-top-color:var(--accent);
  animation:studioSpin .8s linear infinite;
}
.ltv-loading-text{ color:var(--text-dim); font-size:13px; }

.ltv-frame-preview{
  width:100%;
  max-width:220px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  margin:0 auto;
  display:block;
}

.ltv-timeline-video{
  width:100%;
  max-height:280px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:#000;
}
.ltv-filmstrip{
  position:relative;
  width:100%;
  height:56px;
  border-radius:var(--radius-sm);
  border:1px solid var(--glass-border);
  background-size:cover;
  background-position:center;
  cursor:crosshair;
  overflow:hidden;
}
.ltv-cut-marker{
  position:absolute;
  top:0; bottom:0;
  width:2px;
  background:var(--accent);
  box-shadow:0 0 8px var(--accent-glow);
}
.ltv-cutpoint-list{ display:flex; flex-wrap:wrap; gap:8px; }
.ltv-cutpoint-chip{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11.5px;
  padding:5px 8px 5px 12px;
  border-radius:var(--radius-pill);
  border:1px solid var(--glass-border);
  color:var(--text-dim);
}
.ltv-cutpoint-chip button{
  background:none; border:none; color:var(--text-faint); cursor:pointer; font-size:14px; line-height:1; padding:2px;
}
.ltv-cutpoint-chip button:hover{ color:var(--white); }
.ltv-inline-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.ltv-inline-actions .btn{ flex:none; }

.ltv-clip-grid, .ltv-image-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
  gap:14px;
  width:100%;
}
.ltv-clip-item, .ltv-image-item{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  transition:border-color .2s var(--ease);
}
.ltv-clip-item video, .ltv-image-item img{
  width:100%;
  border-radius:var(--radius-sm);
  background:#000;
  display:block;
}
.ltv-image-item{ cursor:pointer; }
.ltv-image-item.is-selected{ border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.ltv-image-item-label{ font-size:11px; color:var(--text-faint); text-align:center; }
.ltv-clip-used-badge{ font-size:11px; color:var(--accent); font-weight:700; text-align:center; }

.ltv-result-video{
  width:100%;
  max-height:460px;
  border-radius:var(--radius-md);
  border:1px solid var(--glass-border);
  background:#000;
}
.ltv-gpu-wait{ color:var(--text-faint); font-size:12px; }
.ltv-checkbox-row{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-dim); }
.ltv-checkbox-row input[type="checkbox"]{ width:16px; height:16px; accent-color:var(--accent); }

/* ========================================================================
   HISTORY (history.html)
   ======================================================================== */
.history-item{
  padding:18px;
  border-radius:var(--radius-lg);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
  margin-bottom:16px;
}
.history-item-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.history-item-title{ font-weight:700; color:var(--white); font-size:14px; }
.history-item-date{ color:var(--text-faint); font-size:12px; }
.history-item-sub{ margin-top:16px; padding-top:14px; border-top:1px solid var(--glass-border); }
.history-item-sub-label{ color:var(--text-dim); font-size:12px; margin-bottom:10px; display:block; }

/* ========================================================================
   LANGUAGE SWITCHER (js/i18n.js injects this into header-actions /
   mobile-menu-actions / studio-topbar-right on every page)
   ======================================================================== */
.lang-switcher{
  display:flex;
  gap:2px;
  padding:3px;
  border-radius:var(--radius-pill);
  border:1px solid var(--glass-border);
  background:var(--glass-bg);
}
.lang-switcher button{
  background:none;
  border:none;
  color:var(--text-faint);
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.02em;
  padding:5px 9px;
  border-radius:var(--radius-pill);
  cursor:pointer;
  transition:all .2s var(--ease);
}
.lang-switcher button:hover{ color:var(--white); }
.lang-switcher button.is-active{ background:var(--white); color:#0a0a0b; }
.mobile-menu-actions .lang-switcher{ align-self:center; margin-bottom:4px; }
.studio-topbar-right .lang-switcher{ margin-right:2px; }
