       * { 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 */
        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;
        }

        /* HERO */
        .tool-hero { text-align: center; padding: 60px 40px 40px; }
        .tool-icon-big {
            width: 72px; height: 72px; background: #f0fff8; 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: 700; letter-spacing: -1px; margin-bottom: 10px; }
        .tool-hero p { font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto; }

        /* TOOL AREA */
        .tool-area { max-width: 800px; margin: 0 auto; padding: 0 40px 80px; }

        /* DROP ZONE */
        .drop-zone {
            border: 2px dashed var(--border); border-radius: 20px;
            padding: 60px 40px; text-align: center; cursor: pointer;
            transition: all 0.2s; background: white; margin-bottom: 24px;
        }
        .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(--primary); color: white; border: none;
            padding: 12px 28px; border-radius: 100px; font-size: 14px;
            font-weight: 600; cursor: pointer; font-family: inherit; transition: opacity 0.15s;
        }
        .btn-select:hover { opacity: 0.85; }
        #fileInput { display: none; }

        /* FILE INFO BAR */
        .file-bar {
            display: none; background: white; border: 1px solid var(--border);
            border-radius: 14px; padding: 14px 18px; margin-bottom: 20px;
            align-items: center; gap: 14px;
        }
        .file-bar.visible { display: flex; }
        .file-bar-icon {
            width: 42px; height: 42px; background: #fff0f0; border-radius: 10px;
            display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
        }
        .file-bar-details { flex: 1; min-width: 0; }
        .file-bar-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .file-bar-meta { font-size: 12px; color: var(--muted); }
        .btn-remove {
            background: none; border: 1px solid var(--border);
            width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
            color: var(--muted); font-size: 13px; transition: all 0.15s;
            display: flex; align-items: center; justify-content: center;
        }
        .btn-remove:hover { background: #fff0f0; border-color: var(--red); color: var(--red); }

        /* SPLIT OPTIONS PANEL */
        .options-panel {
            display: none; background: white; border: 1px solid var(--border);
            border-radius: 16px; padding: 24px; margin-bottom: 24px;
        }
        .options-panel.visible { display: block; }
        .options-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; }

        /* MODE TABS */
        .mode-tabs {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 8px; margin-bottom: 24px;
        }
        .mode-tab {
            border: 2px solid var(--border); border-radius: 12px;
            padding: 14px 10px; cursor: pointer; text-align: center;
            transition: all 0.15s;
        }
        .mode-tab:hover { border-color: var(--primary); }
        .mode-tab.active { border-color: var(--primary); background: #f0fffc; }
        .mode-tab-icon { font-size: 22px; margin-bottom: 6px; color: var(--primary); }
        .mode-tab-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
        .mode-tab-desc { font-size: 11px; color: var(--muted); }

        /* MODE CONTENT */
        .mode-content { display: none; }
        .mode-content.active { display: block; }

        /* PLAGES */
        .ranges-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
        .range-row {
            display: flex; align-items: center; gap: 10px;
            background: var(--bg); border-radius: 10px;
            padding: 10px 14px; border: 1px solid var(--border);
        }
        .range-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
        .range-input {
            flex: 1; border: 1px solid var(--border); border-radius: 8px;
            padding: 7px 10px; font-size: 13px; font-family: inherit;
            background: white; outline: none; transition: border-color 0.15s;
        }
        .range-input:focus { border-color: var(--primary); }
        .range-input::placeholder { color: #ccc; }
        .btn-del-range {
            background: none; border: 1px solid var(--border);
            width: 28px; height: 28px; border-radius: 7px;
            cursor: pointer; color: var(--muted); font-size: 11px;
            display: flex; align-items: center; justify-content: center; transition: all 0.15s;
        }
        .btn-del-range:hover { background: #fff0f0; border-color: var(--red); color: var(--red); }
        .btn-add-range {
            width: 100%; background: none; border: 1.5px dashed var(--border);
            border-radius: 10px; padding: 9px; font-size: 13px;
            color: var(--muted); cursor: pointer; font-family: inherit; font-weight: 500; transition: all 0.15s;
        }
        .btn-add-range:hover { border-color: var(--primary); color: var(--primary); }

        /* TOUTES LES PAGES */
        .every-page-info {
            background: #f0fffc; border: 1px solid #b7e4d4;
            border-radius: 12px; padding: 16px; font-size: 13px; color: #0e6655;
            display: flex; align-items: center; gap: 10px;
        }

        /* PAR INTERVALLES */
        .interval-row {
            display: flex; align-items: center; gap: 12px;
        }
        .interval-label { font-size: 13px; color: var(--dark); white-space: nowrap; }
        .interval-input {
            width: 80px; border: 1px solid var(--border); border-radius: 8px;
            padding: 8px 10px; font-size: 14px; font-family: inherit;
            text-align: center; outline: none; transition: border-color 0.15s;
        }
        .interval-input:focus { border-color: var(--primary); }
        .interval-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }

        /* HINT */
        .mode-hint {
            font-size: 12px; color: var(--muted); margin-top: 12px;
            padding: 10px 14px; background: var(--bg); border-radius: 8px;
            line-height: 1.6;
        }

        /* BTN SPLIT */
        .btn-split {
            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-split:hover { opacity: 0.85; }
        .btn-split:disabled { opacity: 0.5; cursor: not-allowed; }

        /* PRIVACY BADGE */
        .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 */
        .error-msg {
            display: none; background: #fff0f0; border: 1px solid #fcc;
            border-radius: 12px; padding: 12px 16px; font-size: 13px;
            color: var(--red); margin-top: 12px; text-align: center;
        }
        .error-msg.visible { display: block; }

        /* PROGRESS */
        .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 */
        .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 FILE LIST */
        .result-files { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
        .result-file-item {
            display: flex; align-items: center; gap: 12px;
            padding: 10px 14px; background: var(--bg); border-radius: 10px;
            border: 1px solid var(--border);
        }
        .result-file-icon {
            width: 36px; height: 36px; background: #fff0f0; border-radius: 8px;
            display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
        }
        .result-file-details { flex: 1; }
        .result-file-name { font-size: 13px; font-weight: 600; }
        .result-file-meta { font-size: 11px; color: var(--muted); }
        .btn-dl-one {
            background: var(--primary); color: white; border: none;
            padding: 7px 14px; border-radius: 8px; font-size: 12px;
            font-weight: 600; cursor: pointer; font-family: inherit;
            display: flex; align-items: center; gap: 6px; transition: opacity 0.15s; flex-shrink: 0;
        }
        .btn-dl-one:hover { opacity: 0.85; }

        .result-actions { display: flex; gap: 10px; }
        .btn-download-all {
            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-all: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); }

        /* HOW IT WORKS */
        .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; }