:root {
    --green: #0c3d2b;
    --dark: #08291d;
    --gold: #e7b93f;
    --cream: #f6f2e7;
    --ink: #17251d;
    --muted: #737c74;
    --line: #e2e7de;
    --shadow: 0 10px 30px rgba(12,49,32,.09);
  }
  
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Outfit", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
  }
  button, input, textarea, select { font: inherit; }
  button, a { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  [hidden] { display: none !important; }
  
  .app-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 245px minmax(0,1fr);
  }
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 25px 15px;
    color: white;
    background: radial-gradient(ellipse at bottom left,#1a5436,transparent 45%),var(--dark);
  }
  .brand { display:flex; align-items:center; gap:12px; padding:0 10px 32px; }
  .brand-icon { font-size:32px; }
  .brand strong { display:block; font-size:28px; line-height:1.1; }
  .brand small { color:#cbd9ce; font-size:12px; }
  .side-nav { display:grid; gap:8px; }
  .side-nav a { padding:13px; border-radius:12px; font-weight:600; }
  .side-nav a:hover,.side-nav .active { background:#254c32; color:#ffdc78; }
  .premium-box { margin-top:auto; padding:17px; border:1px solid #34513b; border-radius:16px; }
  .premium-box h3 { margin:8px 0; }
  .premium-box p { color:#d4ded5; font-size:12px; }
  .btn-gold { display:block; padding:11px; border-radius:10px; background:var(--gold); color:#17251c; text-align:center; font-weight:800; }
  
  .main-content { min-width:0; padding:24px; }
  .top-header {
    display:grid; grid-template-columns:1.2fr .8fr; gap:20px;
    align-items:center; min-height:230px; padding:26px; margin-bottom:18px;
    border-radius:22px; background:linear-gradient(110deg,#fffdf8,#f7f1df 65%,#e1ead7);
  }
  .badge-top { display:inline-block; padding:7px 12px; margin-bottom:13px; border:1px solid #efd99e; border-radius:30px; background:#fff; font-size:11px; font-weight:800; }
  h1 { margin:0 0 12px; color:var(--green); font-size:clamp(30px,3vw,43px); line-height:1.1; }
  .gold { color:#b88916; }
  .hero-text p { color:#4d5b50; }
  .features { font-size:12px; font-weight:700; }
  .hero-image { min-height:175px; display:grid; place-items:center; border-radius:17px; background:linear-gradient(145deg,#17452e1c,#e3b93b25); position:relative; overflow:hidden; }
  .hero-decoration { position:absolute; right:10px; top:0; font-size:100px; opacity:.25; }
  .stat-bubble { position:relative; padding:22px; border-radius:18px; background:#ffffffdf; box-shadow:var(--shadow); text-align:center; }
  .stat-bubble strong,.stat-bubble span { display:block; }
  .stat-bubble strong { color:var(--green); font-size:28px; }
  .app-grid { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(300px,.88fr); gap:17px; align-items:start; }
  .left-col,.right-col { min-width:0; display:grid; align-content:start; gap:17px; }
  .card { min-width:0; padding:20px; border:1px solid #fff; border-radius:18px; background:#fff; box-shadow:var(--shadow); }
  .card-header { display:flex; align-items:center; gap:11px; margin-bottom:18px; }
  .card-header h2 { margin:0; font-size:17px; line-height:1.3; }
  .card-header p { margin:4px 0 0; color:var(--muted); font-size:12px; }
  .step { width:37px; height:37px; flex:0 0 37px; display:grid; place-items:center; border-radius:50%; background:var(--green); color:white; font-weight:800; }
  .form-grid { display:grid; grid-template-columns:.88fr 1.12fr; gap:17px; align-items:start; }
  .upload-zone { min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:15px; border:1px dashed #98b1a0; border-radius:12px; background:#f4f8f2; text-align:center; cursor:pointer; overflow:hidden; }
  .upload-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:var(--green); color:white; font-size:26px; }
  .upload-zone small { color:var(--muted); font-size:10px; }
  #image-preview { width:100%; max-height:220px; object-fit:contain; }
  .fields { display:grid; gap:12px; }
  label { display:block; margin-bottom:12px; font-size:12px; font-weight:700; }
  input,textarea,select { width:100%; min-width:0; margin-top:6px; padding:11px 12px; border:1px solid #dfe5dc; border-radius:10px; background:#fcfdfa; color:var(--ink); }
  input:focus,textarea:focus,select:focus { outline:2px solid #15543a22; border-color:#4b8060; }
  .phone-input { display:flex; align-items:center; gap:7px; }
  .phone-input span { white-space:nowrap; font-size:11px; }
  .btn-primary,.btn-dark,.btn-purple,.btn-outline { display:block; width:100%; padding:13px; margin-top:10px; border:0; border-radius:10px; text-align:center; font-weight:750; }
  .btn-primary,.btn-dark { background:linear-gradient(100deg,#0c4b32,#15563b); color:#fff; }
  .btn-purple { background:linear-gradient(100deg,#6034ce,#9139dc); color:#fff; }
  .btn-primary:hover,.btn-dark:hover { background:var(--dark); }
  .btn-outline { border:1px solid var(--line); background:#f7f8f5; color:var(--ink); }
  .status { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
  .bottom-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; align-items:start; }
  #voice-player { width:100%; margin-top:10px; }
  #voice-download { display:inline-block; margin-top:10px; color:var(--green); font-weight:700; }
  .video-settings { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .canvas-wrapper { overflow:hidden; border-radius:12px; background:#edf0e8; }
  #affiche-canvas { display:block; width:100%; height:auto; }
  .full { margin-top:12px; }
  .social-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .social-item { padding:13px 10px; border:1px solid var(--line); border-radius:11px; background:white; font-weight:700; font-size:12px; }
  .social-item:hover { border-color:var(--gold); }
  .info-box { padding:12px; margin-top:14px; border-left:3px solid var(--gold); border-radius:8px; background:#fff9e8; color:#62542c; font-size:11px; }
  footer { padding:22px 5px 5px; color:var(--muted); font-size:11px; text-align:center; }
  
  @media(max-width:1200px) {
    .app-container { grid-template-columns:210px minmax(0,1fr); }
    .main-content { padding:16px; }
    .app-grid { grid-template-columns:1fr; }
    .right-col { grid-template-columns:repeat(2,minmax(0,1fr)); }
  }
  @media(max-width:800px) {
    .app-container { grid-template-columns:1fr; }
    .sidebar { position:relative; width:100%; height:auto; padding:14px; }
    .brand { padding:0 5px 13px; }
    .side-nav { display:flex; overflow-x:auto; gap:6px; }
    .side-nav a { flex:0 0 auto; padding:10px; font-size:12px; }
    .premium-box { display:none; }
    .main-content { padding:12px; }
    .top-header { grid-template-columns:1fr; padding:20px; }
    .hero-image { min-height:100px; }
    .app-grid,.right-col { grid-template-columns:1fr; }
  }
  @media(max-width:580px) {
    .bottom-cards,.form-grid,.video-settings { grid-template-columns:1fr; }
    .card { padding:15px; }
    .hero-text h1 { font-size:32px; }
  }
  /* Vidéo premium */
  [hidden] { display:none !important; }
  .premium-card { margin-top:17px; border:2px solid var(--gold); }
  .account-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px; margin-bottom:12px; border-radius:12px; background:#fff9e8; font-size:13px; }
  .account-bar span { flex:1 1 180px; overflow-wrap:anywhere; }
  .credits-badge { padding:6px 10px; border-radius:20px; background:var(--green); color:#fff; font-size:12px; }
  .account-btn { width:auto; margin:0; padding:9px 14px; border:0; cursor:pointer; text-decoration:none; }
  .packs { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:10px; margin-bottom:12px; }
  .pack-btn { padding:14px 10px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; text-align:center; font:inherit; }
  .pack-btn:hover { border-color:var(--gold); }
  .pack-btn strong { display:block; color:var(--green); font-size:18px; }
  .pack-btn span { color:var(--muted); font-size:12px; }
  #premium-count { float:right; color:var(--muted); font-weight:400; }
  #premium-player { display:block; width:100%; max-width:360px; margin:12px auto 0; border-radius:12px; background:#000; }
  .premium-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .premium-actions a { text-decoration:none; }
  .video-list { margin:0; padding:0; list-style:none; }
  .video-list li { display:flex; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); font-size:12px; }
  .video-list a { color:var(--green); font-weight:700; }

  /* Harmonisation avec le reste du site */
  .brand-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:var(--gold); color:var(--dark); font-size:20px; font-weight:900; }
  .btn-purple { background:linear-gradient(100deg,#c99a24,#e2b33c); color:var(--dark); }
  .btn-purple:hover { background:#c99a24; }
  .btn-purple:disabled, .btn-dark:disabled { opacity:.6; cursor:wait; }

  .bottom-cards { grid-template-columns:1fr; }

  /* Icônes (img/icons.svg) et en-tête sobre */
  .icon { width:1.15em; height:1.15em; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .side-nav a { display:flex; align-items:center; gap:10px; }
  .upload-icon .icon { width:26px; height:26px; }
  .premium-actions .btn-dark, .premium-actions .btn-outline { display:flex; align-items:center; justify-content:center; gap:8px; }
  .top-header { grid-template-columns:1fr; min-height:0; }
  .top-header h1 { margin-bottom:6px; }
  .tips { margin:8px 0 0; padding-left:18px; color:var(--muted); font-size:13px; line-height:1.7; }

  /* Paiement manuel Wave / Orange Money */
  .manual-pay { margin-bottom:12px; padding:16px; border:1px solid var(--gold); border-radius:12px; background:#fffdf6; }
  .manual-title { margin:0 0 10px; font-weight:700; color:var(--green); }
  .method-choice { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
  .method-option { display:flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; font-weight:700; cursor:pointer; }
  .method-option:has(input:checked) { border-color:var(--green); background:#eef5f0; }
  .method-option input { width:auto; margin:0; }
  .manual-actions { display:grid; grid-template-columns:2fr 1fr; gap:10px; }
  .pay-code { font-size:20px; letter-spacing:.06em; color:var(--dark); background:var(--gold); padding:2px 10px; border-radius:8px; }
  .pay-steps { margin:8px 0; padding-left:20px; line-height:1.8; font-size:14px; }
  .payment-list { margin:0 0 12px; padding:0; list-style:none; font-size:13px; }
  .payment-list li { display:flex; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid var(--line); }
  .payment-pending strong { color:#a16207; }
  .payment-paid strong { color:var(--green); }
  .payment-rejected strong { color:#b42318; }

  /* Choix Standard / Pro et textes de la Vidéo Pro */
  .tier-choice { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
  .tier-option { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; font-weight:400; }
  .tier-option:has(input:checked) { border-color:var(--gold); background:#fffaeb; box-shadow:0 0 0 3px #e2b33c33; }
  .tier-option input { position:absolute; opacity:0; pointer-events:none; }
  .tier-option strong { color:var(--green); font-size:14px; }
  .tier-option em { font-style:normal; color:#a16207; font-weight:700; }
  .tier-option span { color:var(--muted); font-size:12px; line-height:1.45; }
  .pro-script { display:grid; gap:2px; padding:12px; margin-top:8px; border:1px dashed var(--gold); border-radius:12px; background:#fffdf6; }
  .pro-args { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  @media (max-width:580px) { .tier-choice, .pro-args { grid-template-columns:1fr; } }
