* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary: #66BCB4;
    --dark: #0e0e0e;
    --bg: #f9faf5;
    --white: #ffffff;
    --border: #e0e0e0;
    --muted: #888;
    --red: #e74c3c;
}
body { font-family: 'Inter', 'Helvetica Neue', 'Segoe UI', sans-serif; background: var(--bg); color: var(--dark); min-height: 100vh; }
nav { display: flex; align-items: center; padding: 0 40px; height: 64px; background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.logo { font-size: 22px; font-weight: 700; text-decoration: none; color: var(--primary); }
.nav-back { display: flex; align-items: center; gap: 8px; margin-left: 24px; color: var(--muted); font-size: 13px; text-decoration: none; transition: color 0.15s; }
.nav-back:hover { color: var(--dark); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btn-login { background: none; border: 1px solid var(--border); padding: 8px 18px; border-radius: 100px; font-size: 13px; cursor: pointer; font-family: inherit; }
.btn-start { background: var(--dark); color: white; border: none; padding: 9px 20px; border-radius: 100px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.tool-hero { text-align: center; padding: 60px 40px 40px; }
.tool-icon-big { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 32px; }
.tool-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.tool-hero p { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.6; }
.tool-area { max-width: 700px; margin: 0 auto; padding: 0 40px 60px; }
.drop-zone { border: 2px dashed var(--border); border-radius: 20px; padding: 60px 40px; text-align: center; cursor: pointer; transition: all 0.2s; background: white; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: #f0fffc; }
.drop-zone-icon { font-size: 40px; color: var(--primary); margin-bottom: 16px; }
.drop-zone h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.drop-zone p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.btn-select { background: var(--dark); color: white; border: none; padding: 12px 24px; border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; }
.btn-select:hover { opacity: 0.85; }
input[type="file"] { display: none; }
.files-panel { display: none; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.files-panel.visible { display: block; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.panel-title { font-size: 15px; font-weight: 600; }
.panel-count { font-size: 13px; color: var(--muted); }
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 8px; background: var(--bg); }
.file-details { flex: 1; }
.file-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.file-size { font-size: 11px; color: var(--muted); margin-top: 2px; }
.file-actions { display: flex; gap: 6px; }
.btn-del { background: none; border: 1px solid #fcc; color: var(--red); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; transition: background 0.15s; }
.btn-del:hover { background: #fff0f0; }
.btn-action { width: 100%; background: var(--primary); color: white; border: none; padding: 16px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.15s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.btn-action:hover { opacity: 0.85; }
.btn-action:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-add-more { background: none; border: 1px dashed var(--border); padding: 10px 16px; border-radius: 10px; font-size: 13px; cursor: pointer; font-family: inherit; color: var(--muted); width: 100%; margin-top: 4px; transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-add-more:hover { border-color: var(--primary); color: var(--primary); }
.progress-area { display: none; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 24px; text-align: center; }
.progress-area.visible { display: block; }
.progress-bar-wrap { background: #f0f0f0; border-radius: 100px; height: 8px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 100px; width: 0%; transition: width 0.3s ease; }
.progress-label { font-size: 13px; color: var(--muted); }
.result-area { display: none; background: white; border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.result-area.visible { display: block; }
.result-success { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 16px; background: #f0fff8; border-radius: 12px; border: 1px solid #b7e4d4; }
.result-success-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; flex-shrink: 0; }
.result-success-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.result-success-sub { font-size: 13px; color: var(--muted); }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-box { text-align: center; padding: 14px; border-radius: 12px; background: var(--bg); }
.stat-box-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-box-value { font-size: 20px; font-weight: 700; }
.stat-box-value.green { color: #16a34a; }
.result-actions { display: flex; gap: 10px; }
.btn-download { flex: 1; background: var(--dark); color: white; border: none; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-download:hover { opacity: 0.85; }
.btn-again { background: none; border: 1px solid var(--border); padding: 14px 20px; border-radius: 12px; font-size: 14px; cursor: pointer; font-family: inherit; transition: background 0.15s; }
.btn-again:hover { background: var(--bg); }
.privacy-badge { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 14px; }
.privacy-badge i { color: var(--primary); }
.error-msg { display: none; background: #fff0f0; border: 1px solid #fcc; border-radius: 12px; padding: 14px 18px; font-size: 13px; color: var(--red); margin-bottom: 16px; text-align: center; }
.error-msg.visible { display: block; }
.options-box { background: var(--bg); border-radius: 12px; padding: 16px; margin: 16px 0; }
.option-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.option-row:last-child { border-bottom: none; }
.option-label { font-size: 13px; font-weight: 500; }
.option-hint { font-size: 11px; color: var(--muted); margin-top: 2px; }
.toggle { width: 40px; height: 22px; background: #ddd; border-radius: 100px; cursor: pointer; position: relative; transition: background 0.2s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: white; border-radius: 50%; top: 3px; left: 3px; transition: transform 0.2s; }
.toggle.on { background: var(--primary); }
.toggle.on::after { transform: translateX(18px); }
.how-section { max-width: 800px; margin: 0 auto; padding: 0 40px 80px; }
.how-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 20px; text-align: center; }
.step-num { width: 32px; height: 32px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin: 0 auto 10px; }
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.coming-soon { text-align: center; padding: 60px 40px; }
.coming-soon-icon { font-size: 48px; margin-bottom: 16px; }
.coming-soon h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.coming-soon p { font-size: 15px; color: var(--muted); }
textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-family: inherit; font-size: 13px; resize: vertical; outline: none; }
textarea:focus { border-color: var(--primary); }
.url-input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; font-family: inherit; font-size: 14px; outline: none; }
.url-input:focus { border-color: var(--primary); }


/* ==================== COMPACT TOOL LAYOUT ==================== */
/* Réduction visuelle des pages d’outils uniquement : les fonctions et sélecteurs restent inchangés. */
nav { height: 56px; padding: 0 28px; }
.logo { font-size: 19px; }
.nav-back { gap: 7px; margin-left: 18px; font-size: 12px; }
.tool-hero { padding: 36px 24px 26px; }
.tool-icon-big { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px; font-size: 26px; }
.tool-hero h1 { font-size: 30px; margin-bottom: 8px; letter-spacing: -.7px; }
.tool-hero p { font-size: 14px; max-width: 480px; line-height: 1.45; }
.tool-area { max-width: 660px; padding: 0 24px 42px; }
.drop-zone { border-radius: 16px; padding: 36px 24px; }
.drop-zone-icon { font-size: 30px; margin-bottom: 10px; }
.drop-zone h3 { font-size: 16px; margin-bottom: 6px; }
.drop-zone p { font-size: 12px; margin-bottom: 12px; }
.btn-select { padding: 10px 20px; font-size: 13px; }
.files-panel { border-radius: 14px; padding: 18px; margin-bottom: 12px; }
.panel-header { margin-bottom: 12px; }
.file-item { gap: 10px; padding: 10px; margin-bottom: 6px; }
.btn-action { padding: 13px; font-size: 14px; gap: 8px; margin-top: 14px; }
.btn-add-more { padding: 9px 14px; font-size: 12px; }
.progress-area { border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.result-area { border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.result-success { gap: 12px; margin-bottom: 14px; padding: 12px; }
.result-success-icon { width: 38px; height: 38px; font-size: 16px; }
.result-stats { gap: 8px; margin-bottom: 14px; }
.stat-box { padding: 11px; }
.stat-box-value { font-size: 18px; }
.result-actions { gap: 8px; }
.btn-download { padding: 12px; font-size: 13px; }
.btn-again { padding: 12px 16px; font-size: 13px; }
.options-box { border-radius: 10px; padding: 13px; margin: 12px 0; }
.option-row { padding: 8px 0; }
.how-section { padding: 0 24px 52px; }
.how-section h2 { font-size: 20px; margin-bottom: 16px; }
.steps { gap: 12px; }
.step { border-radius: 12px; padding: 16px; }
.coming-soon { padding: 40px 24px; }
.coming-soon-icon { font-size: 40px; margin-bottom: 12px; }
.coming-soon h2 { font-size: 22px; margin-bottom: 6px; }
.coming-soon p { font-size: 14px; }

@media (max-width: 720px) {
    nav { height: 52px; padding: 0 18px; }
    .nav-back { margin-left: 12px; font-size: 11px; }
    .tool-hero { padding: 28px 18px 22px; }
    .tool-icon-big { width: 50px; height: 50px; font-size: 23px; margin-bottom: 11px; }
    .tool-hero h1 { font-size: 26px; }
    .tool-hero p { font-size: 13px; }
    .tool-area { padding: 0 18px 32px; }
    .drop-zone { padding: 28px 18px; }
    .result-actions { flex-direction: column; }
    .steps { grid-template-columns: 1fr; }
}


/* ==================== ERGONOMIE PREMIUM — AJUSTEMENT DISCRET ==================== */
:root {
    --bg: #f5f8f7;
    --border: #d8e3e0;
    --muted: #6b7780;
}

nav { box-shadow: 0 1px 10px rgba(14, 14, 14, .045); }
.drop-zone { border-color: #cbd9d6; }
.drop-zone:hover, .drop-zone.dragover { box-shadow: 0 8px 22px rgba(63, 148, 139, .08); }
.btn-select, .btn-action, .btn-download, .btn-start { box-shadow: 0 3px 9px rgba(14, 14, 14, .08); }
.btn-select:focus-visible, .btn-action:focus-visible, .btn-download:focus-visible, .btn-again:focus-visible, .btn-add-more:focus-visible, .btn-start:focus-visible, .btn-login:focus-visible, .drop-zone:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(102, 188, 180, .28);
    outline-offset: 3px;
}
