* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --bg-dark: #0a0a0f;
    --bg-card: #151520;
    --bg-card-hover: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
    --glow: 0 0 30px rgba(99, 102, 241, 0.5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 100%);
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 25s infinite ease-in-out;
}

.background-animation::before {
    background: var(--primary);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.background-animation::after {
    background: var(--accent);
    bottom: -300px;
    right: -300px;
    animation-delay: 12s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, 80px) scale(1.2);
    }
    66% {
        transform: translate(-80px, -80px) scale(0.8);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.6));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        filter: hue-rotate(90deg) brightness(1.2);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--gradient-1);
    color: white;
}

.cta-button.secondary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.hero-preview {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 500px;
}

.preview-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow);
    animation: float-card 6s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
}

.preview-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.preview-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-1 {
    grid-column: 1 / -1;
    animation-delay: 0s;
}

.preview-2 {
    animation-delay: 2s;
}

.preview-3 {
    animation-delay: 4s;
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.preview-content {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.preview-meme {
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
}

.preview-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: 2px;
}

/* Tools Section */
.tools-section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.1;
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 0;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--glow);
}

.tool-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.tool-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.tool-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tool-features span {
    padding: 0.4rem 0.8rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active,
.modal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.2);
    transform: rotate(90deg);
}

.tool-nav-container button:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.tool-nav-container button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Miniatures des résultats */
.tool-result-thumbnail {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: block;
}

.tool-panel {
    display: block;
}

.tool-panel.hidden {
    display: none;
}

.tool-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.6);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-group input[type="text"]:hover,
.form-group input[type="number"]:hover,
.form-group input[type="email"]:hover,
.form-group input[type="password"]:hover,
.form-group input[type="date"]:hover,
.form-group input[type="time"]:hover,
.form-group input[type="url"]:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(10, 10, 15, 0.7);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="number"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="password"]::placeholder,
.form-group input[type="date"]::placeholder,
.form-group input[type="time"]::placeholder,
.form-group input[type="url"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(160, 160, 184, 0.6);
    opacity: 1;
}

.form-group input[type="text"]:disabled,
.form-group input[type="number"]:disabled,
.form-group input[type="email"]:disabled,
.form-group input[type="password"]:disabled,
.form-group input[type="date"]:disabled,
.form-group input[type="time"]:disabled,
.form-group input[type="url"]:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(10, 10, 15, 0.3);
    border-color: rgba(99, 102, 241, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-style: italic;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="url"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 24px rgba(99, 102, 241, 0.2);
    background: rgba(10, 10, 15, 0.9);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group textarea:focus {
    min-height: 120px;
}

/* Style spécifique pour les selects */
.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.75rem;
}

/* Style spécifique pour les inputs color */
.form-group input[type="color"] {
    width: 100%;
    height: 60px;
    padding: 0.5rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.6);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    appearance: none;
    -webkit-appearance: none;
}

.form-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.form-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.form-group input[type="color"]:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.form-group input[type="color"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 24px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.form-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(99, 102, 241, 0.3);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
}

.style-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.style-option {
    padding: 1rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(10, 10, 15, 0.5);
}

.style-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.style-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.style-preview {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.gradient-preview {
    background: var(--gradient-1);
}

.minimal-preview {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.bold-preview {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.elegant-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.neon-preview {
    background: linear-gradient(135deg, #00f2fe 0%, #ec4899 100%);
}

.pastel-preview {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.dark-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.sunset-preview {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.meme-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.meme-template-option {
    padding: 1rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(10, 10, 15, 0.5);
}

.meme-template-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.meme-template-option.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.meme-preview {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.palette-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.name-card .domain-status {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.domain-status.available {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.domain-status.taken {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.domain-status.checking {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.3);
}

.btn-primary.hidden,
.btn-secondary.hidden {
    display: none;
}

.image-result {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: rgba(10, 10, 15, 0.5);
    border-radius: 16px;
    border: 2px dashed rgba(99, 102, 241, 0.3);
}

.image-result canvas,
.image-result img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.result-box {
    background: rgba(99, 102, 241, 0.1);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.3);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    background: rgba(99, 102, 241, 0.15);
    margin: 0 -2rem;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.result-value {
    font-weight: 700;
    font-size: 1.2rem;
}

.result-value.positive {
    color: var(--success);
}

.result-value.negative {
    color: #ef4444;
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.name-card {
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.name-card:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.palette-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.color-swatch {
    aspect-ratio: 1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.color-swatch:hover {
    transform: scale(1.1) rotate(5deg);
    z-index: 10;
}

.color-swatch::after {
    content: attr(data-color);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.trending-section {
    padding: 6rem 2rem;
    background: rgba(99, 102, 241, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

footer {
    background: var(--bg-card);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-preview {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        border-top: 1px solid rgba(99, 102, 241, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .page-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .category-title {
        font-size: 1.75rem;
        flex-wrap: wrap;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .category-icon {
        font-size: 1.75rem;
    }

    .tools-header {
        padding: 6rem 1rem 2rem;
    }

    .page-subtitle {
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .tools-section {
        padding: 2rem 0;
    }

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

    .modal.active,
    .modal:not(.hidden) {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
        max-height: 95vh;
        border-radius: 16px;
    }

    .tool-panel h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .tool-panel h3 {
        font-size: 1.25rem;
    }

    .tool-panel h4 {
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .form-hint {
        font-size: 0.8rem;
        margin-top: 0.4rem;
    }

    .result-box {
        padding: 1.25rem;
        margin-top: 1.5rem;
    }

    .close-modal {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-buttons .btn-primary,
    .action-buttons .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .style-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-filters {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .category-filters-main {
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .category-filters-actions {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex: 0 0 auto;
    }

    .filter-action-btn {
        flex: 0 0 auto;
        min-width: 50px;
    }

    .search-container {
        margin-bottom: 1.5rem;
    }

    .search-input {
        padding: 1rem 2.5rem 1rem 1.2rem;
        font-size: 1rem;
    }
}

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid rgba(99, 102, 241, 0.3);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.cookie-btn-primary {
    background: var(--gradient-1);
    color: white;
}

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

.cookie-btn-secondary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.cookie-btn-secondary:hover {
    background: rgba(99, 102, 241, 0.3);
}

.cookie-btn-text {
    background: transparent;
    color: var(--text-secondary);
}

.cookie-btn-text:hover {
    color: var(--text-primary);
}

/* Cookie Customize Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
}

.cookie-modal-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-option {
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

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

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-actions {
        justify-content: stretch;
    }
    
    .cookie-btn {
        flex: 1;
    }
    
    .cookie-modal-content {
        padding: 1.5rem;
    }
}

/* Styles pour les conteneurs publicitaires */
.ad-container {
    min-height: 100px;
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container ins {
    display: block;
    margin: 0 auto;
}

/* Masquer les conteneurs vides (sans pub) */
.ad-container:empty {
    display: none;
}

/* Style pour les pubs sur mobile */
@media (max-width: 768px) {
    .ad-container {
        margin: 1.5rem auto;
        padding: 0.75rem;
        min-height: 50px;
    }
}

/* Page Outils */
.tools-header {
    padding: 8rem 2rem 3rem;
    text-align: center;
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    background: rgba(10, 10, 15, 0.8);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: rgba(10, 10, 15, 0.95);
}

.clear-search {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.2);
    border: none;
    color: var(--text-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: rgba(99, 102, 241, 0.4);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.category-filters-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.category-filters-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-action-btn {
    padding: 0.75rem 1rem !important;
    min-width: auto !important;
    width: auto !important;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 25px;
    background: rgba(10, 10, 15, 0.5);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.category-icon {
    font-size: 2.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Popular Tools Section */
.popular-tools-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
}

.popular-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.popular-tool-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.popular-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.popular-tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.popular-tool-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
    transition: transform 0.3s ease;
}

.popular-tool-card:hover .popular-tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.popular-tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.popular-tool-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.popular-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #ffc107;
    font-weight: 600;
}

/* Section CTA Buttons */
.section-cta {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
}

.section-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

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

.section-cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.section-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.categories-preview {
    padding: 6rem 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    border: 2px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    display: block;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card .category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.category-count {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.tool-card.hidden {
    display: none;
}

.tools-section {
    padding: 4rem 2rem;
}

.tools-section.hidden {
    display: none;
}

.no-results {
    padding: 2rem;
    text-align: center;
}

.features-section {
    padding: 6rem 2rem;
    background: rgba(99, 102, 241, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4));
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Styles pour les checkboxes et radio buttons */
.form-group input[type="checkbox"],
.form-group input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.form-group input[type="checkbox"]:hover,
.form-group input[type="radio"]:hover {
    transform: scale(1.1);
}

.form-group input[type="checkbox"]:focus,
.form-group input[type="radio"]:focus {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

/* Amélioration des labels pour checkboxes/radios */
.form-group label:has(input[type="checkbox"]),
.form-group label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-group label:has(input[type="checkbox"]):hover,
.form-group label:has(input[type="radio"]):hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Style pour les inputs de recherche */
.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.6);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.search-input:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(10, 10, 15, 0.7);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 8px 24px rgba(99, 102, 241, 0.2);
    background: rgba(10, 10, 15, 0.9);
}

/* ========== URL ENCODER/DECODER STYLES ========== */
.url-info-box {
    padding: 1rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    margin-bottom: 1.5rem;
}

.url-info-box h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.url-info-box p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.example-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.example-buttons button {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.url-usage-box {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(10, 10, 15, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.url-usage-box h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.url-usage-box ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.url-usage-box li {
    margin: 0.5rem 0;
}

.url-usage-box code {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary);
}

/* ========== CALCULATEUR DE SOMMEIL ========== */
.wake-times-grid {
    margin-top: 1rem;
}

.wake-times-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.wake-time-option {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.wake-time-option:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(10, 10, 15, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.wake-time-option.recommended {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
}

.wake-time-option.recommended:hover {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.15);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.wake-time-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wake-time-number {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.badge-recommended {
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.wake-time-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wake-time-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.wake-time-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sleep-advice {
    margin: 1.5rem 0;
}

.advice-box {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.sleep-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.info-box {
    padding: 1.25rem;
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.info-box h4 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.info-box p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.info-box ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.info-box li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.info-box strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Media query pour très petits écrans */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .category-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .tools-header {
        padding: 5rem 0.75rem 1.5rem;
    }

    .page-subtitle {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .tools-section {
        padding: 1.5rem 0;
    }

    .search-container {
        margin-bottom: 1.25rem;
    }

    .search-input {
        padding: 0.9rem 2.2rem 0.9rem 1.1rem;
        font-size: 0.95rem;
    }

    .category-filters {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .category-filters-main {
        width: 100%;
        gap: 0.4rem;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-filters-main::-webkit-scrollbar {
        display: none;
    }

    .category-filters-actions {
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0;
    }

    .filter-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .filter-action-btn {
        padding: 0.7rem 1rem !important;
        min-width: 48px !important;
        font-size: 1.1rem;
    }

    .modal.active,
    .modal:not(.hidden) {
        padding: 0.5rem;
    }

    .modal-content {
        padding: 1.25rem 0.75rem;
        max-height: 98vh;
        border-radius: 12px;
    }

    .tool-panel h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        line-height: 1.2;
    }

    .tool-panel h3 {
        font-size: 1.15rem;
    }

    .tool-panel h4 {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .tool-description {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    .form-hint {
        font-size: 0.75rem;
        margin-top: 0.3rem;
    }

    .result-box {
        padding: 1rem;
        margin-top: 1.25rem;
    }

    .close-modal {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 1.75rem;
        width: 32px;
        height: 32px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .wake-time-value {
        font-size: 1.25rem;
    }
    
    .wake-time-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
