
:root{
  /* Palette officielle ooYee */
  --ooyee-navy: #0D1B3A;
  --ooyee-green: #35F08B;
  --ooyee-turquoise: #00DCCB;
  --ooyee-cyan: #00C9F2;
  --ooyee-blue: #087BFF;
  --ooyee-white: #FFFFFF;
  --ooyee-gradient: linear-gradient(120deg, #35F08B 0%, #00DCCB 30%, #00C9F2 60%, #087BFF 100%);

  /* Thème nuit */
  --bg: #071226;
  --bg-elev-1: #0D1B3A;
  --bg-elev-2: #12264A;
  --bg-elev-3: #1A345F;
  --line: rgba(135, 180, 235, 0.10);
  --line-strong: rgba(135, 180, 235, 0.18);
  --ink: #F2F7FF;
  --ink-dim: #B2C3DB;
  --ink-faint: #8196B5;
  --accent: #00C9F2;
  --accent-bright: #35F08B;
  --gold: #35F08B;
  --accent-gradient: var(--ooyee-gradient);
  --success: #35F08B;
  --warm: #00DCCB;
  --action: #087BFF;
  --action-dark: #0064DB;
  --action-ink: #FFFFFF;
  --background: var(--bg);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-dim);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 24px;
  --shadow-soft: 0 20px 60px -20px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 44px rgba(0,201,242,0.16);
  --font-display: 'Inter', 'Tajawal', sans-serif;
  --font-body: 'Inter', 'Tajawal', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.light{
  --bg: #FFFFFF;
  --bg-elev-1: #FFFFFF;
  --bg-elev-2: #F4F8FF;
  --bg-elev-3: #EAF2FF;
  --line: rgba(13, 27, 58, 0.08);
  --line-strong: rgba(13, 27, 58, 0.16);
  --ink: #0D1B3A;
  --ink-dim: #41536F;
  --ink-faint: #64748B;
  --accent: #087BFF;
  --accent-bright: #087BFF;
  --success: #16834B;
  --warm: #008F91;
  --action: #087BFF;
  --action-dark: #0064DB;
  --action-ink: #FFFFFF;
  --background: #FFFFFF;
  --text-primary: #0D1B3A;
  --text-secondary: #64748B;
  --shadow-soft: 0 20px 60px -24px rgba(13,27,58,0.16);
  --shadow-glow: 0 0 30px rgba(8,123,255,0.10);
}

html[dir="rtl"]{
  --font-display: 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow-x: hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; border: none; background: none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; letter-spacing:-0.02em; }
.gradient-text{ background:var(--ooyee-gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

::selection{ background: var(--accent); color:#fff; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 600px){
  .wrap{ padding: 0 18px; }
}

a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================
   NAV
   ============================================ */
.nav{
  position: sticky; top:0; z-index: 40;
  padding: 14px 16px 0;
}
.nav-inner{
  max-width:1180px; margin:0 auto; padding: 12px 18px;
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
  background: color-mix(in srgb, var(--bg-elev-1) 88%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
  border:1px solid var(--line-strong);
  border-radius: 100px;
  box-shadow: var(--shadow-soft);
}
.brand{
  display:flex; align-items:center; gap:22px;
  font-family:var(--font-display); font-weight:800; font-size:1.3rem;
}
.brand-mark{
  width:107px; height:42px;
  object-fit: contain;
  flex-shrink:0;
  filter: drop-shadow(0 0 8px rgba(0,201,242,0.30));
}

.nav-links{ display:flex; align-items:center; gap:32px; }
.nav-links a{
  font-size:.88rem; font-weight:500; color: var(--ink-dim);
  transition: color .2s; position:relative;
}
.nav-links a::after{
  content:''; position:absolute; bottom:-4px; left:0; right:0;
  height:2px; background: var(--accent-gradient); border-radius:2px;
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after{ transform: scaleX(1); }

.nav-actions{ display:flex; align-items:center; gap:10px; }

.icon-btn{
  width:38px; height:38px; border-radius:10px;
  border:1px solid var(--line); background: var(--bg-elev-1);
  display:flex; align-items:center; justify-content:center;
  color: var(--ink-dim); transition: all .2s;
}
.icon-btn:hover{ border-color: var(--accent); color: var(--accent-bright); background: color-mix(in srgb, var(--accent) 8%, var(--bg-elev-1)); }
.icon-btn svg{ width:17px; height:17px; }

.lang-btn{
  font-family: var(--font-mono); font-size:.72rem; font-weight:500;
  letter-spacing: .04em; padding: 0 14px; height:38px; border-radius:10px;
  border:1px solid var(--line); background: var(--bg-elev-1); color: var(--ink-dim);
  transition: all .2s;
}
.lang-btn:hover{ border-color: var(--accent); color: var(--accent-bright); }

.btn{
  font-size:.88rem; font-weight:600; padding: 10px 22px; border-radius: 10px;
  border:1px solid transparent; transition: all .25s var(--ease); white-space:nowrap;
  display:inline-flex; align-items:center; gap:6px;
}
.btn-ghost{
  color: var(--ink); border-color: var(--line-strong); background: transparent;
}
.btn-ghost:hover{ background: var(--bg-elev-2); border-color: var(--accent); color: var(--accent-bright); }
.btn-solid{
  background: var(--action); color:#fff;
  box-shadow: 0 8px 24px -8px rgba(8,123,255,0.38);
  position:relative; overflow:hidden;
}
.btn-solid::before{
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 100%);
  opacity:0; transition: opacity .3s;
}
.btn-solid:hover{ transform: translateY(-2px); background: var(--action-dark); box-shadow: 0 12px 30px -8px rgba(8,123,255,0.55); }
.btn-solid:hover::before{ opacity:1; }
.btn-solid:active{ transform: translateY(0); }
.btn-block{ width:100%; display:flex; align-items:center; justify-content:center; }
.btn:disabled{ opacity:.4; cursor:not-allowed; transform:none; box-shadow:none; }
.btn-sm{ padding:7px 12px; font-size:.78rem; border-radius:8px; }

@media (max-width: 860px){
  .nav-links{ display:none; }
}
@media (max-width: 600px){
  .nav{ padding: 10px 10px 0; }
  .nav-inner{ padding: 10px 14px; gap: 10px; border-radius: 24px; }
  .brand span:last-child{ display:none; }
  .nav-actions{ gap: 6px; }
  .nav-actions .btn{ padding: 9px 12px; font-size: .78rem; }
  .lang-btn{ font-size: .66rem; padding: 0 8px; }
  .icon-btn, .lang-btn{ height: 36px; }
}

/* ============================================
   HERO
   ============================================ */
.hero{
  position:relative;
  padding: 100px 0 70px;
  overflow:hidden;
}
.hero::before{
  content:''; position:absolute; top:-50%; right:-20%;
  width:600px; height:600px; border-radius:50%;
  background: var(--accent-gradient); opacity:0.10; filter: blur(100px);
  pointer-events:none;
}
.hero-inner{
  display:flex; flex-direction:column; align-items:center; gap: 48px;
  position:relative;
}
.hero-visual{ width:100%; max-width: 760px; margin: 0 auto; }
@media (max-width: 600px){
  .hero{ padding: 50px 0 40px; }
  .hero-cta{ flex-direction:column; }
  .hero-cta .btn{ width:100%; justify-content:center; padding: 14px 20px; }
}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.82rem; font-weight:500;
  color: var(--ink);
  background: var(--bg-elev-1);
  border:1px solid var(--line-strong);
  padding:8px 16px; border-radius:100px; margin-bottom: 28px;
}
.eyebrow .dot{
  width:5px; height:5px; border-radius:50%; background: var(--action);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--action) 25%, transparent);
}

.hero{ text-align:center; }
.hero-inner{ justify-items:center; }
.hero h1{
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
  max-width: 780px;
}
.hero h1 em{
  font-style: normal;
  color: var(--action);
}
.hero-sub{ max-width: 560px; margin-left:auto; margin-right:auto; text-align:center; }
.hero-cta{ justify-content:center; }
.hero-proof{ justify-content:center; }
.hero-sub{
  font-size: 1.05rem; color: var(--ink-dim); max-width: 480px; line-height:1.65;
  margin-bottom: 36px;
}
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 42px; }
.hero-cta .btn{ padding: 14px 28px; font-size:.95rem; border-radius: 12px; }

.hero-proof{
  display:flex; align-items:center; gap:26px;
  color: var(--ink-faint); font-size:.82rem; flex-wrap:wrap;
}
.hero-proof strong{
  color: var(--action); font-family: var(--font-mono); font-weight:600;
  background: var(--bg-elev-2); padding:2px 8px; border-radius:6px;
}
.hero-proof span{
  display:flex; align-items:center; gap:5px;
}

/* Hero visual */
.hero-visual{
  position:relative; border-radius: var(--radius-l);
  background: var(--bg-elev-1); border:1px solid var(--line);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  padding: 20px; overflow:hidden;
}
.browser-bar{
  display:flex; align-items:center; gap:10px;
  padding: 10px 16px; margin: -20px -20px 16px;
  background: var(--bg-elev-2); border-bottom:1px solid var(--line);
}
.browser-dot{ width:9px; height:9px; border-radius:50%; background: var(--line-strong); }
.browser-dot:nth-child(1){ background:#E0543E; }
.browser-dot:nth-child(2){ background: var(--warm); }
.browser-dot:nth-child(3){ background: var(--success); }
.browser-url{
  margin-inline-start:10px; font-family: var(--font-mono); font-size:.72rem; color: var(--ink-faint);
  background: var(--bg-elev-3); padding:4px 12px; border-radius:100px; flex:1; max-width:220px;
}
.browser-planet{
  margin-inline-start:auto; display:flex; align-items:center; gap:9px;
}
.planet-label{
  font-family: var(--font-display); font-size:.76rem; font-weight:700;
  color: var(--ink-dim); letter-spacing:.01em;
}
.planet-mini{
  position:relative; width:18px; height:18px; border-radius:50%;
  background: var(--accent-gradient); flex-shrink:0;
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--accent-bright) 40%, transparent);
  animation: planetGlow 3.2s ease-in-out infinite;
}
@keyframes planetGlow{
  0%, 100%{ box-shadow: 0 0 8px 1px color-mix(in srgb, var(--accent-bright) 35%, transparent); }
  50%{ box-shadow: 0 0 14px 3px color-mix(in srgb, var(--gold) 45%, transparent); }
}
.planet-ring{
  position:absolute; left:50%; top:50%; width:32px; height:11px;
  margin:-5.5px 0 0 -16px;
  border:1.5px solid color-mix(in srgb, var(--gold) 65%, transparent);
  border-radius:50%; transform: rotate(-20deg);
  animation: planetRingSpin 7s linear infinite;
  pointer-events:none;
}
@keyframes planetRingSpin{
  from{ transform: rotate(-20deg) scaleY(1); }
  50%{ transform: rotate(-20deg) scaleY(-1); }
  to{ transform: rotate(-20deg) scaleY(1); }
}
@keyframes tickerFade{
  from{ opacity:0; transform: translateY(4px); }
  to{ opacity:1; transform:none; }
}
.visual-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr);
  gap:8px; width:100%; height:100%;
}

/* ============================================
   MOCK DASHBOARD (aperçu réaliste dans le hero)
   ============================================ */
.mock-dashboard{ display:flex; gap:14px; }
.mock-side{
  width:40px; flex-shrink:0; background: var(--bg-elev-2); border:1px solid var(--line);
  border-radius:12px; display:flex; flex-direction:column; align-items:center; gap:14px; padding:14px 0;
}
.mock-side-dot{ width:9px; height:9px; border-radius:50%; background: var(--line-strong); }
.mock-side-dot.active{ background: var(--action); box-shadow:0 0 0 3px color-mix(in srgb, var(--action) 25%, transparent); }
.mock-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:12px; }

.mock-stats-row{ display:flex; gap:10px; }
.mock-stat{
  flex:1; min-width:0; background: var(--bg-elev-2); border:1px solid var(--line);
  border-radius:12px; padding:12px 14px; display:flex; flex-direction:column; gap:4px;
}
.mock-stat-label{ font-size:.62rem; color: var(--ink-faint); }
.mock-stat-value{ font-family: var(--font-display); font-weight:800; font-size:1rem; color: var(--ink); }
.mock-stat-trend{ font-size:.62rem; color: var(--success); font-family: var(--font-mono); }

.mock-chart{
  height:110px; flex-shrink:0; background: var(--bg-elev-2); border:1px solid var(--line);
  border-radius:12px; display:flex; align-items:flex-end; gap:8px; padding:14px 16px;
}
.mock-bar{
  flex:1; border-radius:5px 5px 0 0;
  background: var(--accent-gradient);
  height: var(--h);
  animation: barGrow 1s var(--ease) both;
  opacity:.85;
}
.mock-bar:last-child{ opacity:1; }
@keyframes barGrow{
  from{ transform: scaleY(0); transform-origin: bottom; }
  to{ transform: scaleY(1); transform-origin: bottom; }
}

.mock-orders{ display:flex; flex-direction:column; gap:8px; }
.mock-order-row{
  display:flex; align-items:center; gap:10px;
  background: var(--bg-elev-2); border:1px solid var(--line);
  border-radius:10px; padding:9px 12px;
}
.mock-order-thumb{
  width:26px; height:26px; border-radius:7px; flex-shrink:0;
  background: var(--accent-gradient); opacity:.35;
}
.mock-order-name{ flex:1; min-width:0; font-size:.74rem; color: var(--ink-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mock-order-price{ font-family: var(--font-mono); font-size:.72rem; color: var(--ink-faint); flex-shrink:0; }
.mock-order-row .badge{ flex-shrink:0; }
@media (max-width:640px){
  .mock-side{ display:none; }
  .mock-stat-value{ font-size:.86rem; }
}
.vtile{
  border-radius: 10px; background: var(--bg-elev-2); border:1px solid var(--line);
  position:relative; overflow:hidden;
  transition: all .3s var(--ease);
}
.vtile:hover{
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,201,242,0.14);
}
.vtile::before{
  content:''; position:absolute; inset:0; opacity:0;
  background: var(--accent-gradient);
  transition: opacity .6s var(--ease);
}
.vtile:hover::before{ opacity:0.6; }
.vtile.span2{ grid-column: span 2; }
.vtile.spanr2{ grid-row: span 2; }
.vtile .inner-content{
  position:absolute; bottom:8px; left:8px; right:8px;
  font-size:.55rem; color: var(--ink-faint); font-family: var(--font-mono);
  opacity:0; transition: opacity .3s;
}
.vtile:hover .inner-content{ opacity:1; color: #fff; }

.visual-caption{
  position:absolute; bottom:16px; left:20px; right:20px;
  display:flex; justify-content:space-between; align-items:center;
  font-family: var(--font-mono); font-size:.65rem; color: var(--ink-faint);
  letter-spacing:.04em;
}
.pulse-dot{
  width:6px; height:6px; border-radius:50%; background: var(--success);
  display:inline-block; margin-inline-end:6px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
  50%{ box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 10%, transparent); }
}

/* ============================================
   TRUST STRIP
   ============================================ */
.strip{
  padding: 30px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background: var(--bg-elev-1);
}
.strip-inner{
  display:flex; gap:50px; justify-content:center; flex-wrap:wrap;
  color: var(--ink-faint); font-size:.82rem;
}
.strip-inner span{
  display:flex; align-items:center; gap:8px;
  padding: 6px 14px; border-radius: 8px;
  background: var(--bg-elev-2); border:1px solid var(--line);
  transition: all .2s;
}
.strip-inner span:hover{
  border-color: var(--accent); color: var(--accent-bright);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-elev-2));
}
.strip-inner svg{ width:14px; height:14px; color: var(--action); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section{ padding: 90px 0; }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom:14px;
  font-weight: 800;
}
.section-head p{
  color: var(--ink-dim); font-size:1.02rem; line-height:1.6;
}
.section-head .accent-line{
  width:40px; height:4px; border-radius:4px;
  background: var(--accent-gradient);
  margin-bottom: 20px;
}
.section-head.center .accent-line{ margin: 0 auto 20px; }
@media (max-width: 600px){
  .section{ padding: 52px 0; }
  .section-head{ margin-bottom: 36px; }
}

/* ============================================
   FEATURES
   ============================================ */
.feat-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px){ .feat-grid{ grid-template-columns: 1fr; } }
.feat-card{
  background: var(--bg-elev-1); border:1px solid var(--line);
  border-radius: var(--radius-m); padding: 30px 28px;
  transition: all .3s var(--ease);
  position:relative; overflow:hidden;
}
.feat-card::before{
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background: var(--accent-gradient);
  transform: scaleX(0); transition: transform .4s var(--ease);
  transform-origin: left;
}
.feat-card:hover{
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feat-card:hover::before{ transform: scaleX(1); }

.feat-icon{
  width:44px; height:44px; border-radius:12px; margin-bottom:18px;
  display:flex; align-items:center; justify-content:center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-bright);
  transition: all .3s;
}
.feat-card:hover .feat-icon{
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,201,242,0.30);
}
.feat-icon svg{ width:20px; height:20px; }
.feat-card h3{ font-size:1.05rem; margin-bottom:8px; font-weight:700; }
.feat-card p{ color: var(--ink-dim); font-size:.9rem; line-height:1.6; }

/* ============================================
   PRICING
   ============================================ */
.plans-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items:stretch; }
.plans-grid-2{ grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
@media (max-width: 940px){ .plans-grid{ grid-template-columns: 1fr; max-width:420px; margin:0 auto; } }
@media (max-width: 720px){ .plans-grid-2{ grid-template-columns: 1fr; max-width:420px; } }

.plan-card{
  background: var(--bg-elev-1); border:1px solid var(--line);
  border-radius: var(--radius-l); padding: 34px 30px;
  display:flex; flex-direction:column; position:relative;
  transition: all .3s var(--ease);
}
.plan-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}
.plan-card.featured{
  border-color: var(--accent);
  background: var(--bg-elev-2);
  box-shadow: 0 24px 50px -20px rgba(0,201,242,0.30);
}
.plan-badge{
  position:absolute; top:-13px; inset-inline-start: 28px;
  background: var(--accent-gradient); color:#fff;
  font-size:.68rem; font-weight:700;
  padding: 5px 16px; border-radius:100px; letter-spacing:.03em;
  box-shadow: 0 4px 12px rgba(0,201,242,0.30);
}
.plan-badge.alt{ background: linear-gradient(135deg, var(--gold), #E8A93A); color:#241605; }
.plan-name{ font-family: var(--font-display); font-size:1.1rem; font-weight:700; margin-bottom:5px; }
.plan-desc{ color: var(--ink-faint); font-size:.82rem; margin-bottom: 20px; min-height: 32px; }
.plan-price{ display:flex; align-items:baseline; gap:6px; margin-bottom: 2px; }
.plan-price .num{ font-family: var(--font-display); font-size: 2.6rem; font-weight:800; }
.plan-price .cur{ font-size:1rem; color: var(--ink-dim); font-weight:500; }
.plan-period{ color: var(--ink-faint); font-size:.8rem; margin-bottom: 24px; }
.plan-cta{ margin-bottom: 24px; }
.plan-features{ display:flex; flex-direction:column; gap:12px; }
.plan-features li{ display:flex; align-items:flex-start; gap:10px; font-size:.86rem; color: var(--ink-dim); }
.plan-features svg{
  width:15px; height:15px; flex-shrink:0; margin-top:3px;
  color: var(--gold);
}
.plan-features li.disabled{ color: var(--ink-faint); opacity:.5; }
.plan-features li.disabled svg{ color: var(--ink-faint); }
@media (max-width: 600px){
  .plan-card{ padding: 26px 20px; }
  .plan-price .num{ font-size: 2.2rem; }
}

/* ============================================
   AUTH MODAL
   ============================================ */
.overlay{
  position:fixed; inset:0;
  background: rgba(8,4,18,0.78);
  backdrop-filter: blur(8px);
  display:none; align-items:center; justify-content:center;
  z-index: 100; padding: 20px;
}
.overlay.open{ display:flex; }
.modal{
  width:100%; max-width: 400px;
  background: var(--bg-elev-1);
  border:1px solid var(--line-strong);
  border-radius: var(--radius-l);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  animation: modalIn .4s var(--ease);
  max-height: 90vh; overflow-y:auto;
}
@media (max-width: 480px){
  .modal{ padding: 28px 20px; border-radius: var(--radius-m); }
}
@keyframes modalIn{
  from{ opacity:0; transform: translateY(16px) scale(.97); }
  to{ opacity:1; transform:none; }
}
.modal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 24px; }
.modal-head h3{ font-size:1.3rem; font-weight:800; background: var(--accent-gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }
.modal-close{
  width:30px; height:30px; border-radius:8px;
  border:1px solid var(--line); background:transparent;
  color: var(--ink-dim); display:flex; align-items:center; justify-content:center;
  transition: all .2s;
}
.modal-close:hover{ color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

.auth-tabs{
  display:flex; background: var(--bg-elev-3); border-radius: 10px;
  padding:4px; margin-bottom: 24px;
}
.auth-tab{
  flex:1; text-align:center; padding: 10px;
  border-radius:8px; font-size:.86rem; font-weight:600;
  color: var(--ink-dim); background:transparent; border:none;
  transition: all .25s var(--ease);
}
.auth-tab.active{
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px rgba(0,201,242,0.30);
}

.field{ margin-bottom: 16px; }
.field.full{ grid-column:1/-1; }
.field label{
  display:block; font-size:.78rem; color: var(--ink-dim);
  margin-bottom:7px; font-weight:500;
}
.field .hint{ font-size:.74rem; color:var(--ink-faint); margin-top:6px; }
.field .err{ font-size:.74rem; color:var(--red,#E0543E); margin-top:6px; display:none; }
.field.invalid input, .field.invalid textarea{ border-color:var(--red,#E0543E); }
.field.invalid .err{ display:block; }
.field input, .field select, .field textarea{
  width:100%; padding: 12px 14px; border-radius:10px;
  border:1px solid var(--line-strong);
  background: var(--bg-elev-2); color: var(--ink);
  font-size:.9rem; font-family: inherit;
  transition: all .2s;
}
.field textarea{ resize:vertical; min-height:90px; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,201,242,0.16); }

.auth-msg{
  font-size:.8rem; padding: 10px 14px; border-radius:8px;
  margin-bottom: 16px; display:none; line-height:1.5;
}
.auth-msg.show{ display:block; }
.auth-msg.err{
  background: color-mix(in srgb, #E0543E 14%, transparent);
  color: #FF8A80;
  border:1px solid color-mix(in srgb, #E0543E 25%, transparent);
}
.auth-msg.ok{
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
  border:1px solid color-mix(in srgb, var(--success) 25%, transparent);
}

.auth-alt{ text-align:center; margin-top: 18px; font-size:.85rem; color: var(--ink-faint); }
.auth-alt button{ background:none; border:none; color: var(--accent-bright); font-weight:600; font-size:inherit; padding:0; transition: color .2s; }
.auth-alt button:hover{ color: var(--accent); }

/* ============================================
   CTA BAND
   ============================================ */
.cta-band{
  border-radius: var(--radius-l);
  background: var(--bg-elev-1);
  border:1px solid var(--line);
  padding: 60px 48px;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-band::before{
  content:''; position:absolute; width:500px; height:500px; border-radius:50%;
  background: var(--accent-gradient); opacity:0.12; filter: blur(90px);
  top:-200px; inset-inline-end:-200px;
}
.cta-band::after{
  content:''; position:absolute; width:300px; height:300px; border-radius:50%;
  background: var(--gold); opacity:0.06; filter: blur(60px);
  bottom:-150px; inset-inline-start:-100px;
}
.cta-band h2{
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom:12px; position:relative;
  font-weight: 800;
}
.cta-band p{ color: var(--ink-dim); margin-bottom: 28px; position:relative; }
.cta-band .btn{ position:relative; padding: 14px 32px; font-size:1rem; }
@media (max-width: 600px){
  .cta-band{ padding: 40px 24px; }
  .cta-band .btn{ width:100%; justify-content:center; }
}

/* ============================================
   FOOTER
   ============================================ */
footer{
  border-top:1px solid var(--line);
  padding: 44px 0 30px;
  background: var(--bg-elev-1);
}
.foot-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.foot-links{ display:flex; gap:26px; flex-wrap:wrap; color: var(--ink-faint); font-size:.85rem; }
.foot-links a{ transition: color .2s; }
.foot-links a:hover{ color: var(--accent-bright); }
@media (max-width: 600px){
  .foot-inner{ flex-direction:column; text-align:center; gap:20px; }
}
.foot-copy{ color: var(--ink-faint); font-size:.78rem; font-family: var(--font-mono); }

html[dir="rtl"] .plan-badge{ inset-inline-start:auto; inset-inline-end:28px; }
html[dir="rtl"] .visual-caption{ direction: ltr; }

/* Scrollbar styling */
::-webkit-scrollbar{ width:6px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--bg-elev-3); border-radius:3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--accent); }

/* ============================================
   STACKED PREVIEW CARDS (façon "Account Verified")
   ============================================ */
.stack-wrap{ position:relative; height: 220px; max-width: 620px; margin: 0 auto 60px; }
.stack-card{
  position:absolute; width: 78%; max-width:380px;
  background: var(--bg-elev-1); border:1px solid var(--line-strong);
  border-radius: 14px; padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  display:flex; align-items:center; gap:12px;
}
.stack-card .sc-icon{
  width:36px; height:36px; border-radius:10px; background: var(--action);
  display:flex; align-items:center; justify-content:center; color:#fff; flex-shrink:0;
}
.stack-card .sc-icon svg{ width:18px; height:18px; }
.stack-card .sc-body{ flex:1; min-width:0; }
.stack-card .sc-title{ font-size:.9rem; font-weight:600; margin-bottom:8px; }
.stack-card .sc-bar{ height:8px; border-radius:4px; background: var(--bg-elev-3); margin-bottom:6px; }
.stack-card .sc-bar.short{ width:60%; }
.stack-card .sc-badge{
  font-size:.66rem; font-weight:700; padding:3px 10px; border-radius:100px;
  background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success);
  flex-shrink:0;
}
.stack-card.c1{ top:0; inset-inline-start:0; z-index:1; transform: rotate(-4deg); }
.stack-card.c2{ top:36px; inset-inline-end:0; z-index:2; transform: rotate(3deg); }
.stack-card.c3{ top:96px; inset-inline-start:8%; z-index:3; }
@media (max-width:600px){
  .stack-wrap{ height:260px; }
  .stack-card{ width:88%; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar{
  display:flex; justify-content:center; gap:0; flex-wrap:wrap;
  background: var(--bg-elev-1); border:1px solid var(--line);
  border-radius: var(--radius-l); padding: 40px 20px;
}
.stat-item{ flex:1; min-width:150px; text-align:center; padding: 10px 24px; position:relative; }
.stat-item + .stat-item::before{
  content:''; position:absolute; inset-inline-start:0; top:10%; bottom:10%; width:1px;
  background: var(--line-strong);
}
.stat-item .num{ font-family: var(--font-display); font-size: 2.2rem; font-weight:800; color: var(--action); margin-bottom:6px; }
.stat-item .lbl{ font-size:.86rem; color: var(--ink-dim); }
@media (max-width:700px){
  .stat-item + .stat-item::before{ display:none; }
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial-wrap{ max-width: 640px; margin: 0 auto; text-align:center; }
.testimonial-stars{ display:flex; justify-content:center; gap:4px; margin-bottom:18px; }
.testimonial-stars svg{ width:20px; height:20px; color: var(--gold); }
.testimonial-quote{ font-size:1.15rem; line-height:1.6; color: var(--ink); margin-bottom:24px; }
.testimonial-person{ display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:28px; }
.testimonial-avatar{
  width:44px; height:44px; border-radius:50%; background: var(--accent-gradient);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:.9rem;
}
.testimonial-name{ font-weight:600; font-size:.92rem; }
.testimonial-role{ font-size:.78rem; color: var(--ink-faint); }
.testimonial-nav{ display:flex; justify-content:center; gap:10px; }
.testimonial-nav button{
  width:40px; height:40px; border-radius:50%; background: var(--action); color:#fff;
  display:flex; align-items:center; justify-content:center; transition: all .2s;
}
.testimonial-nav button:hover{ background: var(--action-dark); }
.testimonial-nav svg{ width:16px; height:16px; }

/* ============================================
   HOW IT WORKS (étapes numérotées)
   ============================================ */
.steps-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px){ .steps-grid{ grid-template-columns: 1fr; } }
.step-card{ position:relative; }
.step-num{
  display:inline-flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size:.8rem; font-weight:700;
  border:1.5px solid var(--action); color: var(--action);
  width:42px; height:42px; border-radius:50%; margin-bottom:18px;
}
.step-icon{
  width:52px; height:52px; border-radius:14px; background: var(--action);
  display:flex; align-items:center; justify-content:center; color:#fff; margin-bottom:18px;
}
.step-icon svg{ width:24px; height:24px; }
.step-card h3{ font-size:1.05rem; font-weight:700; margin-bottom:8px; }
.step-card p{ color: var(--ink-dim); font-size:.9rem; line-height:1.6; }

/* ============================================
   CTA BAND — solide, style référence
   ============================================ */
.cta-band.solid{
  background: linear-gradient(135deg, var(--action) 0%, var(--action-dark) 100%);
  border: none;
}
.cta-band.solid::before, .cta-band.solid::after{ display:none; }
.cta-band.solid h2, .cta-band.solid p{ color:#fff; }
.cta-band.solid p{ opacity:.9; }
.cta-band.solid .btn-solid{
  background:#fff; color: var(--action-dark);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
}
.cta-band.solid .btn-solid:hover{ background:#fff; transform: translateY(-2px); }

/* ============================================
   FOOTER ÉTENDU
   ============================================ */
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr; gap:32px; } }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:1.15rem; margin-bottom:16px; }
.footer-desc{ color: var(--ink-dim); font-size:.88rem; line-height:1.6; max-width:340px; margin-bottom:20px; }
.footer-socials{ display:flex; gap:10px; }
.footer-socials a{
  width:38px; height:38px; border-radius:50%; background: var(--action); color:#fff;
  display:flex; align-items:center; justify-content:center; transition: all .2s;
}
.footer-socials a:hover{ background: var(--action-dark); transform: translateY(-2px); }
.footer-socials svg{ width:16px; height:16px; }
.footer-col h4{ font-size:.95rem; font-weight:700; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a, .footer-col span{ font-size:.86rem; color: var(--ink-dim); transition: color .2s; }
.footer-col a:hover{ color: var(--action); }
.footer-app-btn{
  display:inline-block; margin-top:6px; font-size:.78rem; font-weight:600;
  padding: 8px 16px; border-radius:100px; border:1px solid var(--line-strong); color: var(--ink-dim);
}
.footer-divider{ border-top:1px solid var(--line); padding-top:22px; }

/* ============================================
   DASHBOARD CSS
   ============================================ */
.shell{ display:flex; min-height:100vh; }
.sidebar{ width:264px; flex-shrink:0; background:var(--bg-elev-1); border-inline-end:1px solid var(--line); display:flex; flex-direction:column; position:sticky; top:0; height:100vh; z-index:30; }
.sb-brand{ display:flex; align-items:center; gap:10px; padding:20px 22px; border-bottom:1px solid var(--line); font-family:var(--font-display); font-weight:700; font-size:1.12rem; }
.brand-mark-sm{ width:26px; height:26px; object-fit:contain; flex-shrink:0; filter: drop-shadow(0 0 6px rgba(0,201,242,0.28)); }
.sb-brand .shop-tag{ margin-inline-start:auto; font-family:var(--font-mono); font-size:.65rem; color:var(--ink-faint); border:1px solid var(--line-strong); padding:3px 7px; border-radius:100px; }
.sb-scroll{ flex:1; overflow-y:auto; padding:18px 14px; display:flex; flex-direction:column; gap:26px; }
.sb-group-label{ font-family:var(--font-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint); padding:0 10px; margin-bottom:8px; }
.sb-nav{ display:flex; flex-direction:column; gap:3px; }
.sb-item{ display:flex; align-items:center; gap:12px; padding:11px 12px; border-radius:12px; color:var(--ink-dim); font-size:.9rem; font-weight:500; background:transparent; border:1px solid transparent; width:100%; text-align:start; transition:all .18s; }
.sb-item svg{ width:18px; height:18px; flex-shrink:0; }
.sb-item:hover:not(:disabled){ background:var(--bg-elev-2); color:var(--ink); }
.sb-item:disabled{ opacity:.4; cursor:not-allowed; }
.sb-item.active{ background:color-mix(in srgb, var(--accent) 13%, transparent); border-color:color-mix(in srgb, var(--accent) 28%, transparent); color:var(--ink); }
.sb-item.active svg{ color:var(--accent-bright); }
.sb-item .count{ margin-inline-start:auto; font-family:var(--font-mono); font-size:.68rem; color:var(--ink-faint); background:var(--bg-elev-3); padding:2px 7px; border-radius:100px; }
.sb-item.main{ font-weight:600; font-size:.93rem; padding:12px 12px; }
.sb-plan{ margin:0 14px 14px; padding:14px; border-radius:14px; background:var(--bg-elev-2); border:1px solid var(--line); }
.sb-plan-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.sb-plan-name{ font-family:var(--font-display); font-weight:600; font-size:.88rem; }
.sb-plan-badge{ font-family:var(--font-mono); font-size:.63rem; color:var(--accent-bright); background:color-mix(in srgb, var(--accent) 16%, transparent); padding:2px 8px; border-radius:100px; }
.sb-plan-bar{ height:5px; border-radius:100px; background:var(--bg-elev-3); overflow:hidden; margin-bottom:8px; }
.sb-plan-bar-fill{ height:100%; background:var(--accent-gradient); width:0%; transition:width .3s; }
.sb-plan-sub{ font-size:.75rem; color:var(--ink-faint); margin-bottom:10px; }
.sb-plan-upgrade{ width:100%; text-align:center; font-size:.78rem; font-weight:600; padding:8px; border-radius:9px; background:var(--accent-gradient); color:#fff; border:none; cursor:pointer; }
.sb-footer{ border-top:1px solid var(--line); padding:12px 14px; display:flex; align-items:center; gap:10px; }
.sb-avatar{ width:34px; height:34px; border-radius:10px; background:var(--bg-elev-3); border:1px solid var(--line-strong); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:600; font-size:.85rem; flex-shrink:0; }
.sb-user{ min-width:0; flex:1; }
.sb-user-name{ font-size:.84rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-user-mail{ font-size:.72rem; color:var(--ink-faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sb-logout{ width:32px; height:32px; border-radius:9px; border:1px solid var(--line); background:transparent; color:var(--ink-dim); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.sb-logout:hover{ color:#E0543E; border-color:color-mix(in srgb, #E0543E 40%, transparent); }
.sb-logout svg{ width:15px; height:15px; }

.main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.topbar{ position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:16px; padding:16px 32px; border-bottom:1px solid var(--line); background:color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter:blur(12px); }
.topbar-title{ min-width:0; }
.topbar-title h1{ font-size:1.2rem; font-weight:700; }
.topbar-title .sub{ font-size:.8rem; color:var(--ink-faint); margin-top:2px; }
.topbar-actions{ margin-inline-start:auto; display:flex; align-items:center; gap:10px; }

.btn-danger-ghost{ color:#E0543E; border-color:color-mix(in srgb, #E0543E 35%, transparent); background:transparent; }
.btn-danger-ghost:hover{ background:color-mix(in srgb, #E0543E 10%, transparent); }
.content{ flex:1; padding:28px 32px 60px; }
.view{ display:none; animation:viewIn .3s var(--ease); }
.view.active{ display:block; }
@keyframes viewIn{ from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:none; } }
.card{ background:var(--bg-elev-1); border:1px solid var(--line); border-radius:var(--radius-m); padding:22px; }

.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:26px; }
@media (max-width:1100px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }
.stat-card{ background:var(--bg-elev-1); border:1px solid var(--line); border-radius:var(--radius-m); padding:20px; }
.stat-label{ font-size:.78rem; color:var(--ink-faint); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.stat-label svg{ width:14px; height:14px; }
.stat-value{ font-family:var(--font-display); font-size:1.7rem; font-weight:700; margin-bottom:6px; }
.stat-note{ font-size:.76rem; font-family:var(--font-mono); color:var(--ink-faint); }

.section-title{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:12px; flex-wrap:wrap; }
.section-title h2{ font-size:1.05rem; font-weight:700; }
.section-title .meta{ font-size:.8rem; color:var(--ink-faint); margin-top:3px; }

.badge{ font-family:var(--font-mono); font-size:.68rem; padding:3px 9px; border-radius:100px; font-weight:500; display:inline-flex; align-items:center; gap:5px; }
.badge.b-live{ color:var(--success); background:color-mix(in srgb, var(--success) 15%, transparent); border:1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.badge.b-draft{ color:var(--ink-faint); background:var(--bg-elev-3); border:1px solid var(--line-strong); }
.badge.b-pending{ color:var(--warm,#FDCB6E); background:color-mix(in srgb, var(--warm,#FDCB6E) 15%, transparent); border:1px solid color-mix(in srgb, var(--warm,#FDCB6E) 30%, transparent); }
.badge .dot{ width:5px; height:5px; border-radius:50%; background:currentColor; }

.tabbar{ display:flex; gap:4px; background:var(--bg-elev-2); border:1px solid var(--line); border-radius:13px; padding:4px; margin-bottom:22px; width:fit-content; max-width:100%; overflow-x:auto; }
.tabbar button{ padding:9px 16px; border-radius:9px; font-size:.86rem; font-weight:600; color:var(--ink-dim); background:transparent; border:none; white-space:nowrap; transition:all .18s; }
.tabbar button.active{ background:var(--bg-elev-1); color:var(--ink); box-shadow:0 2px 10px rgba(0,0,0,0.2); }
.tabpanel{ display:none; }
.tabpanel.active{ display:block; animation:viewIn .25s var(--ease); }

.theme-intro{ max-width:560px; margin-bottom:30px; }
.theme-intro h2{ font-size:1.4rem; margin-bottom:10px; }
.theme-intro p{ color:var(--ink-dim); font-size:.94rem; line-height:1.6; }
.theme-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:980px){ .theme-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .theme-grid{ grid-template-columns:1fr; } }
.theme-card{ border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--bg-elev-1); box-shadow:0 1px 3px rgba(20,10,30,0.08); transition:all .22s var(--ease); cursor:pointer; }
.theme-card:hover{ border-color:var(--line-strong); transform:translateY(-3px); box-shadow:0 14px 30px -14px rgba(20,10,30,0.24); }
.theme-card.selected{ border-color:var(--accent); box-shadow:0 0 0 2px var(--accent); }

/* --- Zone image (espace réservé pour ta photo) --- */
.theme-media{ position:relative; aspect-ratio:1.9/1; overflow:hidden; background:var(--bg-elev-2); }
.theme-media-fallback{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--bg-elev-2)) 0%, color-mix(in srgb, var(--gold) 12%, var(--bg-elev-2)) 100%);
  color: var(--ink-faint); font-size:.74rem; font-weight:500; text-align:center; padding:10px;
}
.theme-media-fallback svg{ width:26px; height:26px; opacity:.7; }
.theme-media img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* Pour ajouter ta photo : dépose le fichier dans images/themes/ avec le même nom que "id" du template (ex: images/themes/casablanca.jpg) */

.theme-badge{
  position:absolute; top:12px; inset-inline-start:12px; z-index:2;
  font-size:.7rem; font-weight:700; padding:5px 12px; border-radius:100px;
  box-shadow:0 4px 10px -2px rgba(0,0,0,0.3);
}
.theme-badge.tb-popular{ background:#fff; color:var(--accent); }
.theme-badge.tb-new{ background:#00B894; color:#fff; }
.theme-badge.tb-premium{ background:linear-gradient(135deg,var(--gold),#B9862A); color:#241605; }

.theme-card-body{ padding:16px 18px 18px; }
.theme-card-body h3{ font-size:1.04rem; font-weight:800; margin-bottom:3px; }
.theme-category{ display:block; font-size:.8rem; font-weight:600; margin-bottom:9px; }
.theme-desc{ font-size:.85rem; color:var(--ink-dim); line-height:1.55; margin-bottom:16px; min-height:2.6em; }
.theme-select-btn{
  width:100%; padding:11px 14px; border-radius:10px; border:1.5px solid var(--accent);
  background:transparent; color:var(--accent-bright); font-size:.86rem; font-weight:700;
  display:flex; align-items:center; justify-content:center; gap:8px; transition:all .2s var(--ease);
}
.theme-select-btn svg{ width:15px; height:15px; transition:transform .2s var(--ease); }
.theme-select-btn:hover{ background:var(--accent); color:#fff; }
.theme-select-btn:hover svg{ transform:translateX(3px); }
html[dir="rtl"] .theme-select-btn:hover svg{ transform:translateX(-3px); }

.table-wrap{ background:var(--bg-elev-1); border:1px solid var(--line); border-radius:var(--radius-m); overflow:hidden; }
table{ width:100%; border-collapse:collapse; }
thead th{ text-align:start; font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-faint); font-weight:600; padding:13px 18px; border-bottom:1px solid var(--line); font-family:var(--font-mono); }
tbody td{ padding:14px 18px; border-bottom:1px solid var(--line); font-size:.87rem; vertical-align:middle; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background:var(--bg-elev-2); }
.p-thumb{ width:38px; height:38px; border-radius:9px; background:var(--bg-elev-3); flex-shrink:0; }
.cell-flex{ display:flex; align-items:center; gap:12px; }
.p-name{ font-weight:600; font-size:.88rem; }
.price-cell{ font-family:var(--font-mono); }
.row-actions{ display:flex; gap:6px; justify-content:flex-end; }
.mini-icon-btn{ width:30px; height:30px; border-radius:8px; border:1px solid var(--line); background:transparent; color:var(--ink-dim); display:flex; align-items:center; justify-content:center; }
.mini-icon-btn:hover{ border-color:var(--line-strong); color:var(--ink); }
.mini-icon-btn svg{ width:14px; height:14px; }

.empty-state{ text-align:center; padding:60px 30px; color:var(--ink-faint); }
.empty-state svg{ width:40px; height:40px; margin:0 auto 16px; opacity:.5; }
.empty-state h3{ color:var(--ink); font-size:1rem; margin-bottom:6px; }
.empty-state p{ font-size:.86rem; max-width:360px; margin:0 auto 18px; }

.feature-list{ display:flex; flex-direction:column; gap:2px; }
.feature-row{ display:flex; align-items:center; gap:16px; padding:16px 4px; border-bottom:1px solid var(--line); }
.feature-row:last-child{ border-bottom:none; }
.feature-icon{ width:38px; height:38px; border-radius:10px; background:var(--bg-elev-2); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color:var(--accent-bright); flex-shrink:0; }
.feature-icon svg{ width:18px; height:18px; }
.feature-txt{ flex:1; min-width:0; }
.feature-txt h4{ font-size:.9rem; font-weight:600; margin-bottom:3px; }
.feature-txt p{ font-size:.8rem; color:var(--ink-faint); }

.switch{ width:44px; height:25px; border-radius:100px; background:var(--bg-elev-3); border:1px solid var(--line-strong); position:relative; flex-shrink:0; transition:background .2s; cursor:pointer; }
.switch::after{ content:''; position:absolute; width:17px; height:17px; border-radius:50%; background:var(--ink-faint); top:3px; inset-inline-start:3px; transition:all .22s var(--ease); }
.switch.on{ background:color-mix(in srgb, var(--accent) 30%, var(--bg-elev-3)); border-color:var(--accent); }
.switch.on::after{ inset-inline-start:22px; background:var(--accent-bright); }

.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:760px){ .form-grid{ grid-template-columns:1fr; } }

.upload-box{ border:1.5px dashed var(--line-strong); border-radius:12px; padding:26px; text-align:center; color:var(--ink-faint); font-size:.82rem; background:var(--bg-elev-2); transition:border-color .2s; cursor:pointer; }
.upload-box:hover{ border-color:var(--accent); color:var(--ink-dim); }
.upload-box svg{ width:22px; height:22px; margin:0 auto 10px; }
.upload-box.has-file{ color:var(--success); border-color:var(--success); border-style:solid; }
.upload-box.has-preview{ padding:0; overflow:hidden; height:90px; border-style:solid; }
.upload-box.has-preview img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-gallery{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.photo-thumb{ position:relative; width:64px; height:64px; border-radius:8px; overflow:hidden; border:1px solid var(--line); background:var(--bg-elev-2); }
.photo-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-thumb .rm{ position:absolute; top:2px; inset-inline-end:2px; width:18px; height:18px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; line-height:1; cursor:pointer; }
.photo-thumb .rm:hover{ background:var(--danger,#E74C3C); }

.form-actions{ display:flex; gap:12px; margin-top:26px; padding-top:22px; border-top:1px solid var(--line); flex-wrap:wrap; }

.lp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:980px){ .lp-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .lp-grid{ grid-template-columns:1fr; } }
.lp-card{ border:1px solid var(--line); border-radius:var(--radius-m); background:var(--bg-elev-1); overflow:hidden; transition:all .2s; }
.lp-card:hover{ border-color:var(--line-strong); transform:translateY(-3px); }
.lp-thumb{ aspect-ratio:16/10; position:relative; overflow:hidden; background:var(--bg-elev-2); }
.lp-thumb iframe{ position:absolute; top:0; left:0; width:300%; height:300%; border:none; transform:scale(.333); transform-origin:top left; pointer-events:none; background:#fff; }
.lp-thumb .badge{ position:absolute; top:10px; inset-inline-start:10px; z-index:2; }
.lp-body{ padding:15px 17px 17px; }
.lp-body h3{ font-size:.94rem; font-weight:600; margin-bottom:4px; }
.lp-body .lp-domain{ font-family:var(--font-mono); font-size:.72rem; color:var(--ink-faint); margin-bottom:12px; }
.lp-actions{ display:flex; gap:8px; }
.lp-actions .btn{ flex:1; justify-content:center; }
.lp-limit-card{ border:1.5px dashed var(--line-strong); border-radius:var(--radius-m); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:30px 20px; gap:10px; color:var(--ink-faint); cursor:pointer; }
.lp-limit-card:hover{ border-color:var(--accent); }
.lp-limit-card svg{ width:26px; height:26px; }
.lp-limit-card p{ font-size:.82rem; max-width:180px; }

.info-box{ display:flex; gap:12px; padding:14px 16px; border-radius:12px; background:color-mix(in srgb, var(--accent) 10%, transparent); border:1px solid color-mix(in srgb, var(--accent) 25%, transparent); font-size:.84rem; color:var(--ink-dim); line-height:1.55; margin-bottom:22px; }
.info-box svg{ width:18px; height:18px; color:var(--accent-bright); flex-shrink:0; margin-top:1px; }

.flex-between{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.mb-22{ margin-bottom:22px; }
.text-dim{ color:var(--ink-dim); }

.loading-overlay{ position:fixed; inset:0; background:var(--bg); display:flex; align-items:center; justify-content:center; z-index:300; flex-direction:column; gap:14px; }
.loading-overlay.hide{ display:none; }
.spinner{ width:30px; height:30px; border-radius:50%; border:3px solid var(--bg-elev-3); border-top-color:var(--accent); animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.preview-overlay{ position:fixed; inset:0; background:var(--bg); z-index:250; display:none; flex-direction:column; }
.preview-overlay.open{ display:flex; }
.preview-bar{ display:flex; align-items:center; gap:12px; padding:12px 18px; border-bottom:1px solid var(--line); background:var(--bg-elev-1); }
.preview-bar .url{ font-family:var(--font-mono); font-size:.78rem; color:var(--ink-faint); background:var(--bg-elev-2); padding:6px 12px; border-radius:8px; flex:1; overflow-x:auto; white-space:nowrap; }
.preview-frame-wrap{ flex:1; min-height:0; }
.preview-frame-wrap iframe{ width:100%; height:100%; border:none; background:#fff; }

.toast{ position:fixed; bottom:24px; inset-inline-end:24px; z-index:200; background:var(--bg-elev-2); border:1px solid var(--line-strong); border-radius:12px; padding:13px 18px; font-size:.85rem; display:flex; align-items:center; gap:10px; box-shadow:var(--shadow-soft); transform:translateY(20px); opacity:0; pointer-events:none; transition:all .3s var(--ease); max-width:360px; }
.toast.show{ transform:translateY(0); opacity:1; }
.toast svg{ width:16px; height:16px; color:var(--success); flex-shrink:0; }
.toast.err svg{ color:#E0543E; }

.domain-target{ display:flex; align-items:center; gap:14px; padding:16px 18px; border:1px solid var(--line); border-radius:14px; margin-bottom:14px; background:var(--bg-elev-1); flex-wrap:wrap; }
.domain-target .dt-icon{ width:38px; height:38px; border-radius:10px; background:var(--bg-elev-3); display:flex; align-items:center; justify-content:center; color:var(--ink-dim); flex-shrink:0; }
.domain-target .dt-icon svg{ width:18px; height:18px; }
.dt-info{ flex:1; min-width:160px; }
.dt-info h4{ font-size:.9rem; font-weight:600; margin-bottom:2px; }
.dt-info .cur-domain{ font-family:var(--font-mono); font-size:.78rem; color:var(--ink-faint); }
.dt-actions{ display:flex; gap:8px; align-items:center; }

.dns-table{ margin-top:16px; }
.dns-row{ display:grid; grid-template-columns:90px 1fr 1.4fr 70px auto; gap:12px; align-items:center; padding:11px 0; border-bottom:1px solid var(--line); font-size:.82rem; }
.dns-row:last-child{ border-bottom:none; }
.dns-row .lbl{ font-family:var(--font-mono); font-size:.68rem; color:var(--ink-faint); text-transform:uppercase; }
.dns-row .val{ font-family:var(--font-mono); color:var(--ink); background:var(--bg-elev-2); padding:6px 10px; border-radius:7px; overflow-x:auto; white-space:nowrap; }
.copy-btn{ width:28px; height:28px; border-radius:7px; border:1px solid var(--line); background:transparent; color:var(--ink-faint); display:flex; align-items:center; justify-content:center; }
.copy-btn:hover{ color:var(--ink); border-color:var(--line-strong); }
.copy-btn svg{ width:13px; height:13px; }
@media (max-width:760px){ .dns-row{ grid-template-columns:1fr; gap:6px; } }

.status-select{ font-family:var(--font-mono); font-size:.72rem; font-weight:500; padding:5px 10px 5px 9px; border-radius:100px; border:1px solid; background-color:transparent; appearance:none; }
.status-select.st-new{ color:var(--accent-bright); border-color:color-mix(in srgb, var(--accent) 35%, transparent); background:color-mix(in srgb, var(--accent) 12%, transparent); }
.status-select.st-confirmed{ color:var(--warm,#FDCB6E); border-color:color-mix(in srgb, var(--warm,#FDCB6E) 35%, transparent); background:color-mix(in srgb, var(--warm,#FDCB6E) 12%, transparent); }
.status-select.st-delivered{ color:var(--success); border-color:color-mix(in srgb, var(--success) 35%, transparent); background:color-mix(in srgb, var(--success) 12%, transparent); }
.status-select.st-cancelled{ color:#E0543E; border-color:color-mix(in srgb, #E0543E 35%, transparent); background:color-mix(in srgb, #E0543E 12%, transparent); }

.accent-sw{ width:34px;height:34px;border-radius:9px;cursor:pointer; }


.hero::before{
  animation: orbDrift 16s ease-in-out infinite;
}
@keyframes orbDrift{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-40px, 30px) scale(1.08); }
}
.cta-band.solid{ position:relative; overflow:hidden; }
.cta-band.solid::before{
  content:''; position:absolute; width:420px; height:420px; border-radius:50%;
  background: rgba(255,255,255,0.10); filter: blur(80px);
  top:-180px; inset-inline-end:-140px; display:block;
  animation: orbDrift 13s ease-in-out infinite;
}
.cta-band.solid::after{
  content:''; position:absolute; width:280px; height:280px; border-radius:50%;
  background: rgba(255,255,255,0.08); filter: blur(70px);
  bottom:-140px; inset-inline-start:-100px; display:block;
  animation: orbDrift 18s ease-in-out infinite reverse;
}


.coffee-timer{
  margin-inline-start:auto; display:flex; align-items:center; gap:10px;
}
.coffee-timer-label{
  font-family: var(--font-display); font-size:.72rem; font-weight:700;
  color: var(--ink-dim); letter-spacing:.01em; white-space:nowrap;
}
.coffee-timer-cup{ position:relative; width:26px; height:24px; flex-shrink:0; }
.coffee-timer-cup svg{ width:100%; height:100%; overflow:visible; }
.coffee-ring-track{ stroke: var(--line-strong); fill:none; }
.coffee-ring-fill{
  stroke: url(#coffeeGradient); fill:none; stroke-linecap:round;
  transform-origin:center; transform: rotate(-90deg);
  stroke-dasharray: 75.4; stroke-dashoffset: 75.4;
  animation: coffeeFill 4s var(--ease) infinite;
}
@keyframes coffeeFill{
  0%{ stroke-dashoffset:75.4; }
  85%, 100%{ stroke-dashoffset:0; }
}
.coffee-steam{
  position:absolute; left:50%; top:-3px; width:2px; height:8px;
  background: linear-gradient(to top, color-mix(in srgb, var(--ink-faint) 70%, transparent), transparent);
  border-radius:2px; transform-origin:bottom center;
  animation: steamRise 2.2s ease-in-out infinite;
}
.coffee-steam.s2{ left:42%; animation-delay:.4s; height:6px; }
.coffee-steam.s3{ left:58%; animation-delay:.8s; height:7px; }
@keyframes steamRise{
  0%{ opacity:0; transform: translateY(0) scaleY(.6) rotate(0deg); }
  30%{ opacity:.8; }
  100%{ opacity:0; transform: translateY(-10px) scaleY(1.3) rotate(6deg); }
}


.mock-bar{ animation-fill-mode: both; }
.mock-bar:nth-child(1){ animation-delay: .05s; }
.mock-bar:nth-child(2){ animation-delay: .12s; }
.mock-bar:nth-child(3){ animation-delay: .19s; }
.mock-bar:nth-child(4){ animation-delay: .26s; }
.mock-bar:nth-child(5){ animation-delay: .33s; }
.mock-bar:nth-child(6){ animation-delay: .40s; }
.mock-bar:nth-child(7){ animation-delay: .47s; }

.mock-order-row{
  opacity:0; transform: translateY(10px);
  animation: orderSlideIn .5s var(--ease) both;
}
.mock-order-row:nth-child(1){ animation-delay: .55s; }
.mock-order-row:nth-child(2){ animation-delay: .70s; }
.mock-order-row:nth-child(3){ animation-delay: .85s; }
@keyframes orderSlideIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform:none; }
}

.mock-stat-value.counting{ font-variant-numeric: tabular-nums; }

.hero-visual{
  animation: heroVisualIn .7s var(--ease) both;
}
@keyframes heroVisualIn{
  from{ opacity:0; transform: translateY(24px) scale(.98); }
  to{ opacity:1; transform:none; }
}
.hero > .wrap > div:first-child > *{
  opacity:0; transform: translateY(14px);
  animation: heroTextIn .6s var(--ease) both;
}
.hero .eyebrow{ animation-delay:.05s; }
.hero h1{ animation-delay:.13s; }
.hero .hero-sub{ animation-delay:.21s; }
.hero .hero-cta{ animation-delay:.29s; }
.hero .hero-proof{ animation-delay:.37s; }
@keyframes heroTextIn{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:1; transform:none; }
}


.stack-card{ opacity:0; }
.stack-card.c1{ animation: stackIn1 .6s var(--ease) .15s both, floatSlow 4.5s ease-in-out 1s infinite; }
.stack-card.c2{ animation: stackIn2 .6s var(--ease) .32s both, floatSlow 5s ease-in-out 1.2s infinite; }
.stack-card.c3{ animation: stackIn3 .6s var(--ease) .49s both, floatSlow 4.8s ease-in-out 1.4s infinite; }
@keyframes stackIn1{ from{ opacity:0; transform: translateY(16px) rotate(-4deg) scale(.94); } to{ opacity:1; transform: rotate(-4deg); } }
@keyframes stackIn2{ from{ opacity:0; transform: translateY(16px) rotate(3deg) scale(.94); } to{ opacity:1; transform: rotate(3deg); } }
@keyframes stackIn3{ from{ opacity:0; transform: translateY(16px) scale(.94); } to{ opacity:1; transform:none; } }
@keyframes floatSlow{
  0%, 100%{ transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%{ transform: translateY(-7px) rotate(var(--rot, 0deg)); }
}
.stack-card.c1{ --rot:-4deg; }
.stack-card.c2{ --rot:3deg; }


.reveal{
  opacity:0; transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible{ opacity:1; transform:none; }

.feat-grid .reveal:nth-child(1){ transition-delay:0s; }
.feat-grid .reveal:nth-child(2){ transition-delay:.08s; }
.feat-grid .reveal:nth-child(3){ transition-delay:.16s; }
.feat-grid .reveal:nth-child(4){ transition-delay:.24s; }
.feat-grid .reveal:nth-child(5){ transition-delay:.32s; }
.feat-grid .reveal:nth-child(6){ transition-delay:.40s; }

.steps-grid .reveal:nth-child(1){ transition-delay:0s; }
.steps-grid .reveal:nth-child(2){ transition-delay:.12s; }
.steps-grid .reveal:nth-child(3){ transition-delay:.24s; }

.plans-grid .reveal:nth-child(1){ transition-delay:0s; }
.plans-grid .reveal:nth-child(2){ transition-delay:.12s; }

.stats-bar .reveal:nth-child(1){ transition-delay:0s; }
.stats-bar .reveal:nth-child(2){ transition-delay:.1s; }
.stats-bar .reveal:nth-child(3){ transition-delay:.2s; }


.feat-card, .step-card, .plan-card{ will-change: transform; }


.sb {
  width: 260px;
  min-width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev-1);
  border-inline-end: 1px solid var(--line);
  overflow-y: auto;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px;
  font-weight: 800;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.sb-brand-mark { width: 100px; height: 40px; border-radius: 8px; }

.sb-nav {
  flex: 1;
  padding: 10px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: .86rem;
  text-align: start;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sb-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.sb-item:hover { background: var(--bg-elev-2); color: var(--ink); }
.sb-item.active { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-bright); font-weight: 600; }

/* Groupe avec sous-menu */
.sb-group { display: flex; flex-direction: column; }

.sb-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: .86rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sb-group-toggle svg:not(.chev) { width: 17px; height: 17px; flex-shrink: 0; }
.sb-group-toggle span:first-of-type { flex: 1; }
.sb-group-toggle:hover { background: var(--bg-elev-2); color: var(--ink); }

.sb-group-toggle .chev {
  width: 14px; height: 14px; flex-shrink: 0;
  transform: rotate(90deg);
  transition: transform .2s var(--ease);
}
.sb-group.open > .sb-group-toggle .chev { transform: rotate(-90deg); }

.sb-badge {
  font-size: .66rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--gold) 18%, transparent);
  color: var(--gold);
  flex-shrink: 0;
}

.sb-submenu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .22s var(--ease);
}
.sb-submenu > div,
.sb-submenu-inner { overflow: hidden; }
.sb-group.open .sb-submenu { grid-template-rows: 1fr; }
.sb-submenu { overflow: hidden; }
.sb-submenu .sb-item {
  padding-inline-start: 40px;
  font-size: .82rem;
}

/* Pied de sidebar */
.sb-footer {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sb-user { display: flex; align-items: center; gap: 10px; }
.sb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff; font-weight: 700; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
}
.sb-user-plan { font-size: .74rem; color: var(--ink-faint); }
.sb-logout {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong); color: var(--ink-faint);
  cursor: pointer; transition: all .15s;
}
.sb-logout:hover { color: var(--ink); border-color: var(--ink-faint); }
.sb-logout svg { width: 16px; height: 16px; }

/* Contenu */
.dashboard-main { flex: 1; min-width: 0; padding: 24px 28px; }
.topbar { margin-bottom: 20px; }
.topbar h1 { font-size: 1.3rem; font-weight: 800; }
.view { display: none; }
.view.active { display: block; }
.view-placeholder { color: var(--ink-faint); font-size: .88rem; }

@media (max-width: 900px) {
  .sb { position: fixed; inset-inline-start: 0; z-index: 40; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .sb.open { transform: translateX(0); }
}

/* Téléphones : champs en 16 px minimum, sinon iOS zoome sur la page dès qu'on touche un champ */
@media (max-width: 600px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea{ font-size:16px !important; }
}

/* Logo : version foncée sur fond clair, version claire sur fond sombre (pages sans nav.css) */
.on-light{ display:none !important; }
html.light .on-light{ display:block !important; }
html.light .on-dark{ display:none !important; }
