:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #14b8a6;
    --light: #f9fafb;
    --dark: #111827;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --success: #10b981;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--gray-700);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

/* Styles généraux */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-info {
    font-size: small;
    font-style: italic;
    color: #1199ff;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 16px;
}

.gap-8 {
    gap: 32px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-12 {
    margin-bottom: 48px;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

/* Header & Navigation */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo img {
    max-height: 50px;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #f9fafb 0%, #eff6ff 100%);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    top: -300px;
    right: -200px;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(56, 189, 248, 0.1) 100%);
    bottom: -200px;
    left: -100px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gray-900);
}

h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-500);
    margin-bottom: 32px;
    max-width: 600px;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary-light);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.1);
}

.btn-secondary:hover {
    background-color: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.15);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}

.tab-button {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: var(--primary);
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

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

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

input, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Link display */
.link-display {
    background-color: var(--gray-100);
    padding: 16px;
    border-radius: 8px;
    border: 1px dashed var(--gray-300);
    margin-bottom: 24px;
    position: relative;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
}

.copy-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    background-color: white;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: var(--gray-500);
}

.copy-btn:hover {
    background-color: var(--gray-100);
    color: var(--gray-700);
}

/* Features section */
.features {
    padding: 100px 0;
}

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

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Notifications */
.notification {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.notification-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* Loading indicator */
.loading {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

/* How it works section */
.how-it-works {
    background-color: var(--gray-100);
    padding: 100px 0;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
}

.step {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background-color: var(--gray-900);
    color: white;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.note-link {
    font-weight: bold;
    cursor: pointer;
    position: relative;
    line-height: 1.6rem;
}
.note-link .link {
    background-color: #c1dcf9;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #8787e5;
    border-radius: 5px;
    overflow-x: hidden;
    width: fit-content;
    max-width: 100%;
}
.note-link.clicked::after {
    content: 'copié !';
    position: absolute;
    font-weight: lighter;
    font-size: small;
    top: -1rem;
    right: 0;
    padding: 0 5px;
    border-radius: 5px;
    box-shadow: 1px 1px 3px #8080807a;
    border: 1px solid #efefef;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 140px 0 80px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .btn-group {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 768px) {
    header .container .btn {
        display: none;
    }
    .tab-button {
        padding: 15px 10px;
        font-size: 14px;
    }

    .tab-content {
        padding: 20px;
    }

    .logo img {
        max-height: 35px;
    }
}
@media (max-width: 458px) {
    .container {
        padding: 0 10px;
    }
    .logo img {
        max-height: 30px;
    }
}