/* Z-INDEX FIX */
  #cameleon-wizard-container { position: relative; z-index: 100 !important; }

  /* VARIABLES */
  :root {
    --cw-bg: #11121a; --cw-glass: rgba(255, 255, 255, 0.03); --cw-border: rgba(255, 255, 255, 0.1);
    --cw-primary: #30efa9; --cw-accent: #fde52f; --cw-text: #ffffff; --cw-text-muted: rgba(255, 255, 255, 0.6);
  }

  /* CONTAINER PRINCIPAL */
  #cameleon-wizard-container {
    width: 100%; max-width: 1100px; margin: 0 auto;
    background: var(--cw-glass); border: 1px solid var(--cw-border);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    padding: 40px; overflow: hidden; font-family: 'Figtree', sans-serif; color: var(--cw-text);
    min-height: 650px; display: flex; flex-direction: column; transition: height 0.4s ease;
  }

  /* TYPO & NAV */
  .cw-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 0.5rem; color: var(--cw-text); }
  .cw-subtitle { font-size: 1rem; text-align: center; color: var(--cw-text-muted); margin-bottom: 2.5rem; }
  .cw-label { display:block; font-size: 0.85rem; font-weight: 700; color: var(--cw-primary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
  
  .cw-step { display: none; width: 100%; height: 100%; animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .cw-step.active { display: block; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

  /* BOUTON START */
  .start-btn-wrapper { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s ease; }
  .start-btn-wrapper:hover { transform: scale(1.05); }
  .start-circle { width: 100%; height: 100%; border-radius: 50%; background: rgba(48, 239, 169, 0.1); border: 1px solid rgba(48, 239, 169, 0.3); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 30px rgba(48, 239, 169, 0.1); position: relative; z-index: 2; }
  .start-pulse { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--cw-primary); opacity: 0; animation: pulse 2s infinite; z-index: 1; }
  @keyframes pulse { 0% { width: 100%; height: 100%; opacity: 0.8; } 100% { width: 180%; height: 180%; opacity: 0; } }

  /* INPUTS & BOUTONS */
  .cw-input, .cw-select { width: 100%; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--cw-border); background: rgba(0, 0, 0, 0.3); color: white; font-size: 1.1rem; margin-bottom: 20px; transition: 0.3s; }
  .cw-input:focus { outline: none; border-color: var(--cw-primary); background: rgba(0,0,0,0.5); }
  .cw-actions { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
  .cw-btn { padding: 14px 32px; border-radius: 50px; border: none; cursor: pointer; font-weight: 700; font-size: 1rem; transition: 0.3s; text-transform: uppercase; }
  .cw-next { background: var(--cw-primary); color: #11121a; }
  .cw-next:hover { transform: translateY(-3px); background: #fff; }
  .cw-next:disabled { background: #333; color: #666; cursor: not-allowed; transform: none; }
  .cw-back { background: transparent; color: var(--cw-text-muted); border: 1px solid transparent; }
  .cw-back:hover { color: var(--cw-text); border-color: var(--cw-border); }

  /* SECTEURS */
  .sector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 25px; }
  .sector-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--cw-border); border-radius: 16px; padding: 20px; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .sector-card:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
  .sector-card.selected { border: 1px solid var(--cw-primary); background: rgba(48, 239, 169, 0.05); }
  .sector-icon { font-size: 2rem; }
  #sub-sector-container { display: none; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--cw-border); animation: slideDown 0.4s ease forwards; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
  .sub-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
  .sub-chip { padding: 10px 18px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--cw-border); border-radius: 50px; font-size: 0.9rem; color: var(--cw-text-muted); cursor: pointer; transition: 0.2s; }
  .sub-chip:hover { background: rgba(255, 255, 255, 0.1); color: var(--cw-text); }
  .sub-chip.selected { background: var(--cw-primary); color: #11121a; font-weight: 700; }

  /* STUDIO LAYOUT */
  .studio-layout { display: flex; gap: 30px; height: 500px; align-items: stretch; }
  .studio-controls { flex: 0.9; display: flex; flex-direction: column; gap: 25px; overflow-y: auto; padding-right: 10px; }
  .studio-controls::-webkit-scrollbar { width: 4px; }
  .studio-controls::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
  .studio-controls::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
  .studio-preview-wrapper { flex: 1.5; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.3); display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.1); position: relative; }
  
  /* ELEMENTS STUDIO */
  .fake-browser-header { background: #f1f1f1; padding: 10px 15px; display: flex; gap: 8px; border-bottom: 1px solid #ddd; }
  .fb-dot { width: 10px; height: 10px; border-radius: 50%; }
  .fs-container { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
  .fs-navbar { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.05); transition: 0.3s; }
  .fs-logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; }
  .fs-nav-links { display: flex; gap: 10px; }
  .fs-nav-item { width: 40px; height: 8px; background: currentColor; opacity: 0.3; border-radius: 4px; }
  .fs-hero { padding: 40px 30px; text-align: center; transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 15px; }
  .fs-tag { font-size: 0.6rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 5px 10px; border-radius: 20px; display: inline-block; }
  .fs-title { font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
  .fs-btn { padding: 10px 25px; border-radius: 5px; font-weight: 700; font-size: 0.8rem; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); cursor: default; }
  .fs-section { padding: 30px; background: #f9f9f9; flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  .fs-card { background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-align: left; }
  .fs-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
  .fs-card-line { height: 8px; background: #eee; border-radius: 4px; width: 80%; margin-bottom: 5px; }
  .fs-card-line.short { width: 50%; }

  .color-row { display: flex; gap: 10px; margin-bottom: 5px; }
  .color-input-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); padding: 12px 5px; border-radius: 10px; border: 1px solid var(--cw-border); }
  .color-preview-circle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); position: relative; overflow: hidden; cursor: pointer; transition: 0.2s; }
  .color-preview-circle:hover { transform: scale(1.1); border-color: #fff; box-shadow: 0 0 10px rgba(255,255,255,0.5); }
  .color-preview-circle input[type="color"] { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; opacity: 0; cursor: pointer; }
  
  .tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool-btn { padding: 10px; background: rgba(255,255,255,0.05); border: 1px solid var(--cw-border); border-radius: 8px; color: var(--cw-text); font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
  .tool-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--cw-primary); }
  .expert-btn { width: 100%; padding: 12px; background: transparent; border: 1px dashed rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 0.85rem; }
  .expert-btn:hover { border-color: var(--cw-primary); color: var(--cw-primary); background: rgba(48, 239, 169, 0.05); }

  /* PRESETS & TOOLTIPS */
  .presets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; margin-top: 5px; }
  .preset-btn { position: relative; height: 45px; cursor: pointer; background: transparent; border: none; padding: 0; transition: 0.2s; overflow: visible !important; }
  .preset-colors-wrap { width: 100%; height: 100%; border-radius: 8px; display: flex; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
  .preset-btn:hover { transform: translateY(-3px); }
  .preset-btn:hover .preset-colors-wrap { border-color: #fff; }
  .p-col { height: 100%; }

  .preset-tooltip { visibility: hidden; opacity: 0; position: absolute; bottom: 115%; left: 50%; transform: translateX(-50%) translateY(5px); background: #111; border: 1px solid #333; color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 0.75rem; text-align: center; white-space: nowrap; z-index: 999; pointer-events: none; transition: 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
  .preset-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #111 transparent transparent transparent; }
  .preset-btn:hover .preset-tooltip { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }
  .pt-name { display: block; font-weight: 700; color: var(--cw-primary); }
  .pt-desc { display: block; opacity: 0.7; font-size: 0.7rem; }

  @media (max-width: 768px) {
      #cameleon-wizard-container { width: 95vw; height: 85vh; padding: 20px; }
      .cw-title { font-size: 1.5rem; }
      .sector-grid { grid-template-columns: 1fr; gap: 10px; }
      .sector-card { flex-direction: row; text-align: left; }
      .studio-layout { flex-direction: column-reverse; height: auto; }
      .studio-preview-wrapper { min-height: 300px; flex: 0.8; }
      .studio-controls { flex: 1; overflow-y: visible; }
  }
