/* Dokitscript — pages-outils média (convertisseurs / découpe / compression).
   Style partagé. Tokens identiques au design system du site (violet #7c3aed). */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
:root{
  --primary:#7c3aed;--primary-hover:#6d28d9;--primary-light:#ede9fe;--primary-50:#f5f3ff;
  --bg:#e6e6e6;--surface:#e9eaf3;--border:#b6bdd4;
  --text:#0f172a;--text-muted:#475569;--text-light:#5e6a7d;
  --success:#10b981;--error:#ef4444;
  --shadow:0 4px 6px -1px rgba(0,0,0,0.07),0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md:0 10px 15px -3px rgba(0,0,0,0.08),0 4px 6px -4px rgba(0,0,0,0.05);
  --radius:12px;--radius-lg:16px;
}
html{scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif;background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;}
a{color:inherit;text-decoration:none;}
button{font-family:inherit;cursor:pointer;}
html,body{overflow-x:hidden;}

/* Header */
.header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,0.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);}
.header-inner{max-width:1100px;margin:0 auto;padding:0 24px;height:64px;display:flex;align-items:center;gap:24px;}
.logo{font-weight:800;font-size:18px;color:var(--primary);letter-spacing:-0.5px;text-decoration:none;}
.header-actions{margin-left:auto;display:flex;gap:10px;align-items:center;}
.btn-ghost{padding:7px 16px;border-radius:var(--radius);font-size:14px;font-weight:500;color:var(--text-muted);background:none;border:none;}
.btn-ghost:hover{background:var(--surface);}
.btn-primary{padding:8px 18px;border-radius:var(--radius);font-size:14px;font-weight:600;background:var(--primary);color:#fff;border:none;}
.btn-primary:hover{background:var(--primary-hover);}
.cta-short{display:none;}
@media(max-width:768px){.cta-short{display:inline;}.cta-long{display:none;}}
.mob-menu-btn{display:none;width:34px;height:34px;background:#fff;color:var(--text,#0f172a);border:1px solid var(--border,#e2e8f0);border-radius:9px;cursor:pointer;align-items:center;justify-content:center;flex-shrink:0;}
.mob-menu-btn .icon-close{display:none;}
.mob-menu-btn.open .icon-burger{display:none;}
.mob-menu-btn.open .icon-close{display:block;}
.mob-nav{display:none;flex-direction:column;background:#fff;border-top:1px solid var(--border);padding:8px 0 12px;}
.mob-nav.open{display:flex;}
.mob-nav-link{display:block;padding:11px 20px;font-size:15px;font-weight:500;color:var(--text);transition:background 0.15s,color 0.15s;}
.mob-nav-link:hover{background:var(--surface);color:var(--primary);}
.mob-nav-divider{height:1px;background:var(--border);margin:6px 20px;}
.mob-nav-contact{display:block;width:100%;text-align:left;padding:11px 20px;font-size:15px;font-weight:600;color:var(--primary);background:none;border:none;cursor:pointer;}
.mob-nav-contact:hover{background:var(--surface);}

/* Hero */
.hero{background:linear-gradient(160deg,#f5f3ff 0%,#e6e6e6 60%);padding:72px 24px 80px;text-align:center;}
.platform-badge{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--border);border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;color:var(--text-muted);margin-bottom:20px;box-shadow:var(--shadow);}
.hero h1{font-size:clamp(28px,5vw,52px);font-weight:800;line-height:1.15;letter-spacing:-0.03em;margin-bottom:16px;max-width:780px;margin-left:auto;margin-right:auto;}
.hero h1 span{color:var(--primary);}
.hero p{font-size:18px;color:var(--text-muted);max-width:600px;margin:0 auto 36px;line-height:1.65;}
.trust-note{font-size:12px;color:var(--text-light);margin-top:12px;}

/* Upload zone */
.upload-zone{max-width:640px;margin:0 auto;}
.upload-drop{border:2px dashed var(--border);border-radius:var(--radius-lg);padding:48px 24px;text-align:center;background:#fff;box-shadow:var(--shadow-md);cursor:pointer;transition:border-color 0.2s,background 0.2s;}
.upload-drop:hover,.upload-drop.dragover{border-color:var(--primary);background:var(--primary-50);}
.upload-drop-icon{margin-bottom:14px;color:var(--primary);line-height:0;}
.upload-drop h3{font-size:17px;font-weight:700;margin-bottom:6px;}
.upload-drop p{font-size:14px;color:var(--text-muted);margin-bottom:6px;}
.upload-drop small{font-size:12px;color:var(--text-light);}
.upload-file-input{display:none;}
.upload-selected{margin-top:12px;padding:10px 16px;background:var(--primary-50);border:1px solid var(--primary-light);border-radius:var(--radius);font-size:14px;color:var(--primary);display:none;word-break:break-word;}
.upload-btn{margin-top:12px;width:100%;background:var(--primary);color:#fff;border:none;border-radius:10px;padding:14px 24px;font-size:16px;font-weight:700;transition:background 0.2s;display:none;}
.upload-btn:hover{background:var(--primary-hover);}
.upload-btn:disabled{opacity:0.6;cursor:not-allowed;}

/* Tool controls (selects / time inputs) */
.tool-controls{max-width:640px;margin:14px auto 0;display:flex;flex-wrap:wrap;gap:12px;}
.tool-field{display:flex;flex-direction:column;gap:6px;text-align:left;flex:1;min-width:170px;}
.tool-field label{font-size:13px;font-weight:600;color:var(--text-muted);}
.tool-field select,.tool-field input{font-size:16px;padding:11px 14px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);font-family:inherit;width:100%;}
.tool-field select:focus,.tool-field input:focus{outline:none;border-color:var(--primary);}
.tool-field .tool-hint{font-size:12px;color:var(--text-light);font-weight:400;}

/* Progress */
.progress-wrap{max-width:640px;margin:14px auto 0;background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px 18px;display:none;box-shadow:0 1px 6px rgba(0,0,0,0.06);}
.progress-status-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:13px;color:var(--text-light);}
.progress-pct{font-size:13px;font-weight:800;color:var(--primary);}
.progress-track{height:6px;background:var(--border);border-radius:4px;overflow:hidden;}
.progress-bar{height:100%;width:0%;background:var(--primary);border-radius:4px;transition:width 0.4s ease;}

/* Result (download) */
.result-box{max-width:640px;margin:24px auto 0;background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow-md);display:none;}
.result-success{padding:30px 22px 26px;text-align:center;}
.result-success-icon{width:56px;height:56px;border-radius:50%;background:var(--primary-50);border:1px solid var(--primary-light);display:flex;align-items:center;justify-content:center;margin:0 auto 14px;color:var(--primary);}
.result-success h3{font-size:18px;font-weight:800;margin-bottom:4px;}
.result-success .result-file{font-size:13px;color:var(--text-light);margin-bottom:18px;word-break:break-word;}
.download-btn{display:inline-flex;align-items:center;gap:8px;background:var(--primary);color:#fff;border:none;border-radius:10px;padding:13px 28px;font-size:15px;font-weight:700;text-decoration:none;}
.download-btn:hover{background:var(--primary-hover);}
.result-footer{padding:12px 16px;border-top:1px solid var(--border);background:var(--surface);text-align:center;font-size:13px;color:var(--text-muted);}
.result-footer a{color:var(--primary);font-weight:600;}
.error-msg{max-width:640px;margin:16px auto 0;padding:12px 16px;background:#fef2f2;border:1px solid #fecaca;border-radius:var(--radius);font-size:14px;color:var(--error);display:none;}

/* Sections */
.section{padding:72px 24px;}
.section-inner{max-width:1100px;margin:0 auto;}
.section-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:1px;color:var(--primary);margin-bottom:12px;}
.section h2{font-size:clamp(24px,3.5vw,36px);font-weight:800;letter-spacing:-0.02em;margin-bottom:16px;}
.section p.section-sub{font-size:16px;color:var(--text-muted);max-width:600px;line-height:1.7;}
.compat-badges{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px;}
.compat-badge{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 18px;font-size:14px;font-weight:600;}
.features-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:40px;}
.feature{display:flex;gap:14px;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);}
.feature-icon{width:40px;height:40px;background:var(--primary-light);border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--primary);}
.feature h3{font-size:15px;font-weight:700;margin-bottom:4px;}
.feature p{font-size:13px;color:var(--text-muted);line-height:1.6;}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px;}
.step{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:28px 24px;}
.step-num{width:36px;height:36px;background:var(--primary);color:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;margin-bottom:16px;}
.step h3{font-size:16px;font-weight:700;margin-bottom:8px;}
.step p{font-size:14px;color:var(--text-muted);line-height:1.6;}

/* FAQ */
.faq-list{margin-top:40px;display:flex;flex-direction:column;gap:10px;}
.faq-item{border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;}
.faq-btn{color:var(--text,#0f172a);width:100%;padding:18px 20px;text-align:left;background:#fff;border:none;font-size:15px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:12px;}
.faq-btn:hover{background:var(--surface);}
.faq-chevron{color:var(--text-muted);transition:transform 0.2s;flex-shrink:0;}
.faq-answer{display:none;padding:0 20px 18px;font-size:14px;color:var(--text-muted);line-height:1.7;}
.faq-item.open .faq-chevron{transform:rotate(180deg);}
.faq-item.open .faq-answer{display:block;}

/* CTA */
.cta-section{background:linear-gradient(135deg,#7c3aed,#5b21b6);padding:72px 24px;text-align:center;}
.cta-section h2{font-size:clamp(24px,4vw,40px);font-weight:800;color:#fff;margin-bottom:14px;letter-spacing:-0.02em;}
.cta-section p{font-size:17px;color:rgba(255,255,255,0.8);margin-bottom:32px;}
.btn-white{display:inline-flex;padding:14px 32px;background:#fff;color:var(--primary);border:none;border-radius:var(--radius-lg);font-size:16px;font-weight:700;}
.btn-white:hover{background:#f5f3ff;}

/* Footer */
.footer{background:var(--surface);border-top:1px solid var(--border);padding:48px 24px 28px;}
.footer-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;padding-bottom:32px;border-bottom:1px solid var(--border);}
.footer-logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;margin-bottom:10px;}
.footer-logo-icon{width:30px;height:30px;background:var(--primary);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:15px;}
.footer-tagline{font-size:14px;color:var(--text-muted);line-height:1.6;max-width:260px;}
.footer-col-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.8px;margin-bottom:14px;}
.footer-links{list-style:none;display:flex;flex-direction:column;gap:9px;}
.footer-links a{font-size:14px;color:var(--text-muted);}
.footer-links a:hover{color:var(--primary);}
.footer-bottom{max-width:1100px;margin:24px auto 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}
.footer-bottom p{font-size:12px;color:var(--text-light);}
.footer-social{display:flex;align-items:center;gap:10px;}
.footer-social-link{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#f5f4ff;border:1px solid #e5e1f9;color:#6b7280;text-decoration:none;transition:background 0.15s,color 0.15s,border-color 0.15s;}
.footer-social-link:hover{background:#ede9fe;color:#7c3aed;border-color:#c4b5fd;}

@media(max-width:768px){
  .mob-menu-btn{display:flex;}
  .steps,.features-grid{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr 1fr;}
}
@media(max-width:480px){
  .footer-inner{grid-template-columns:1fr;}
  .btn-ghost{display:none;}
  .btn-primary{padding:7px 14px;font-size:13px;}
  .header-inner{padding:0 16px;}
}
