/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS */
:root {
    --primary: #4F46E5;
    --secondary: #06B6D4;
    --accent: #10B981;
    --dark: #1F2937;
    --darker: #111827;
    --light: #F9FAFB;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
    padding: 15px 0;
    animation: slideDown 0.5s ease-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-brand:hover {
    color: var(--primary);
}

.navbar-brand span {
    color: var(--dark);
    transition: all 0.3s ease;
}

.navbar-brand:hover span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
}

.navbar-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: #6B7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.navbar-menu li a:hover {
    background: #F3F4F6;
    color: var(--primary);
}

.navbar-menu li a.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    z-index: 1001;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Body - Style page d'accueil */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F3F4F6;
    min-height: 100vh;
    padding: 120px 20px 40px 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    z-index: 0;
}

@keyframes move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Body dark theme - Pour les pages d'outils */
body.dark-theme {
    font-family: 'Inter', sans-serif;
    background: #F9FAFB;
    color: var(--dark);
    padding: 120px 20px 40px 20px;
}

body.dark-theme::before {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(6, 182, 212, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes bgShift {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Container */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.container.large {
    max-width: 1400px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.home-header{
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-logo {
    height: 120px;
    width: auto;
    margin-right: 10px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Titres */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    letter-spacing: -2px;
}

.dark-theme h1 {
    color: var(--dark);
    font-size: 3rem;
    letter-spacing: -2px;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    color: #6B7280;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.dark-theme .subtitle {
    color: #6B7280;
    font-size: 1rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Section Introduction */
.intro-section {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.intro-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: -1px;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
    text-align: center;
}

.intro-content p strong {
    color: var(--primary);
    font-weight: 700;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.intro-feature:hover {
    transform: translateY(-2px);
    background: #F3F4F6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.intro-feature .feature-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.intro-feature .feature-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.intro-feature .feature-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.intro-feature .feature-text span {
    font-size: 0.9rem;
    color: #64748b;
}

/* Tools Grid - Page d'accueil */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.dark-theme .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 40px 35px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
}

.dark-theme .tool-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 40px 35px;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dark-theme .tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.dark-theme .tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dark-theme .tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dark-theme .tool-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.tool-icon {
    font-size: 5rem;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

.dark-theme .tool-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.tool-card:nth-child(1) .tool-icon {
    animation-delay: 0s;
}

.tool-card:nth-child(2) .tool-icon {
    animation-delay: 0.5s;
}

.tool-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.dark-theme .tool-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.tool-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
}

.tool-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.tool-features {
    text-align: left;
    margin-bottom: 30px;
    padding: 20px;
    background: #F9FAFB;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.tool-features li {
    list-style: none;
    padding: 8px 0;
    color: #475569;
    font-size: 0.95rem;
}

.tool-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
    margin-right: 10px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}
.btn-home{
    color:#fff
}

button {
    font-family: 'JetBrains Mono', monospace;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--dark);
    border: 2px solid var(--light);
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
}

.btn-success {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 2px solid var(--danger);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.75rem;
}

/* Workspace */
.workspace {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    min-height: 400px;
    animation: fadeIn 1s ease-out 0.5s both;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Upload Zone */
.upload-zone {
    background: #F9FAFB;
    border: 2px dashed #D1D5DB;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.upload-zone::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.upload-zone:hover::after {
    width: 300px;
    height: 300px;
}

.upload-zone:hover {
    background: #F3F4F6;
    border-color: var(--primary);
}

.upload-zone.dragover {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--primary);
    transform: scale(1.01);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.upload-text {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.upload-subtext {
    color: #6B7280;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

/* PDF List */
.pdf-list {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.pdf-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: grab;
    position: relative;
}

.pdf-item:active {
    cursor: grabbing;
}

.pdf-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pdf-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.drag-handle {
    font-size: 1.5rem;
    cursor: grab;
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.drag-handle:hover {
    color: var(--primary);
}

.pdf-preview {
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    border: 1px solid #E5E7EB;
}

.pdf-info {
    flex: 1;
}

.pdf-name {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 1.1rem;
}

.pdf-details {
    color: #6B7280;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.pdf-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Page Selector */
.page-selector {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.page-selector h4 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.page-item {
    aspect-ratio: 1;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.page-item:hover {
    background: #F9FAFB;
    transform: scale(1.05);
    border-color: var(--primary);
}

.page-item.selected {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary);
    border-width: 2px;
}

.page-item.selected::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.page-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.page-label {
    font-size: 0.7rem;
    color: #6B7280;
    font-family: 'Inter', sans-serif;
}

/* Action Panel */
.action-panel {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

/* Result Zone */
.result-zone {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--success);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.result-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--success);
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 60px;
    color: #6B7280;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 1s ease-out 1s both;
}

.dark-theme .footer {
    padding: 30px;
    color: #6B7280;
    font-size: 0.85rem;
}

.badge {
    display: inline-block;
    background: white;
    padding: 12px 25px;
    border-radius: 50px;
    margin-top: 20px;
    font-weight: 600;
    border: 1px solid #E5E7EB;
    color: var(--dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.footer-links {
    margin-top: 20px;
    font-size: 0.9rem;
}

.footer-links a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links span {
    margin: 0 10px;
    color: #D1D5DB;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 30px;
    border: 2px solid var(--success);
}

/* ===== STYLES SPÉCIFIQUES COMPRESSEUR ===== */
#fileInput {
    display: none;
}

.settings {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.5s both;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.settings h3 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #E5E7EB;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-track {
    background: #E5E7EB;
    height: 8px;
    border-radius: 5px;
}

.quality-display,
.range-value {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 10px;
}

.file-list {
    animation: fadeIn 1s ease-out 0.7s both;
}

.file-item {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out both;
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.file-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark);
}

.file-size {
    color: #6B7280;
    font-size: 0.85rem;
}

.compression-result {
    color: var(--success);
    font-weight: 700;
    margin-top: 5px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.3s ease;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-remove {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    padding: 8px 15px;
    font-size: 0.8rem;
}

.btn-remove:hover {
    background: #ff6b6b;
    color: white;
}

.stats {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 1s ease-out 0.9s both;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    background: #F9FAFB;
    padding: 15px;
    border-radius: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: #6B7280;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* ===== STYLES SPÉCIFIQUES QR GENERATOR ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.panel {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.panel-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    background: #F9FAFB;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input[type="color"] {
    width: 100%;
    height: 50px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #F9FAFB;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="color"]:hover {
    border-color: var(--primary);
    transform: scale(1.02);
}

.type-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.type-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--dark);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
}

.type-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.type-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

#qrcode-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode-container canvas,
#qrcode-container img {
    max-width: 100%;
    height: auto;
}

.placeholder {
    text-align: center;
    color: #999;
    font-size: 1.1rem;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-generate {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 100%;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.info-box {
    background: rgba(20, 184, 166, 0.1);
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    color: var(--dark);
    font-size: 0.85rem;
    line-height: 1.6;
}

.info-box strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
}

.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li {
    margin: 5px 0;
}

.info-box h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-box p {
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* ===== STYLES SPÉCIFIQUES PASSPHRASE ===== */
.passphrase-display {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.passphrase-text {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    word-break: break-all;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.passphrase-placeholder {
    color: #9CA3AF;
    font-style: italic;
}

.strength-bar {
    width: 100%;
    height: 10px;
    background: #E5E7EB;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: all 0.5s ease;
    background: linear-gradient(90deg, #EF4444, #F59E0B, var(--primary));
}

.strength-label {
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--dark);
}

.actions-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.settings-panel {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.5s both;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background: #F9FAFB;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: #F3F4F6;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.copy-notification.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .type-selector {
        grid-template-columns: 1fr;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 500px;
        opacity: 1;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu li a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .home-logo {
        height: 80px;
        margin-bottom: 20px;
    }

    .navbar-logo {
        height: 32px;
    }

    .intro-section {
        padding: 30px 25px;
        margin-bottom: 40px;
    }

    .intro-content h2 {
        font-size: 1.5rem;
    }

    .intro-content p {
        font-size: 1rem;
    }

    .intro-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .intro-feature {
        padding: 15px;
    }

    .intro-feature .feature-icon {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tool-card {
        padding: 40px 30px;
    }

    .tool-name {
        font-size: 1.5rem;
    }

    .workspace {
        padding: 20px;
    }

    .pdf-item {
        flex-direction: column;
        text-align: center;
    }

    .page-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .file-item {
        flex-direction: column;
        text-align: center;
    }

    .action-buttons {
        flex-direction: column;
    }

    .passphrase-text {
        font-size: 1.5rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .actions-row {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}
/* ===== STYLES SPÉCIFIQUES TEXT DIFF TOOL ===== */
.diff-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.toolbar-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #F9FAFB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-inline:hover {
    background: #F3F4F6;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-inline span {
    font-size: 0.9rem;
    color: var(--dark);
    user-select: none;
}

.editor-wrapper {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

#diff-editor {
    height: 600px;
    width: 100%;
}

.loading-editor {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-size: 1.1rem;
}

/* ===== STYLES PAGES LÉGALES ===== */
.legal-content {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #E5E7EB;
    animation: fadeIn 1s ease-out 0.3s both;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E5E7EB;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 25px;
    margin-bottom: 15px;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 15px;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-section li {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 10px;
}

.legal-section strong {
    color: var(--primary);
    font-weight: 600;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legal-section a:hover {
    color: var(--secondary);
    text-decoration: underline;
}