:root {
    --bg-color: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --primary: #000000; /* Noir profond style Bedame */
    --accent: #2563eb; /* Bleu discret pour les actions */
    --border: #e5e5e5;
    --radius: 8px;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: #f9fafb; /* Gris très très clair */
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #9ca3af;
    text-decoration: none;
}

/* HEADER */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid transparent;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.dot { color: var(--accent); }

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    margin-left: 25px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* HERO SECTION */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(120deg, #e0f2fe 0%, #dbeafe 100%);
    padding: 0 10px;
    border-radius: 6px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* FORMULAIRE STYLE BEDAME */
.main-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.input-group label {
    display: none; /* Label caché visuellement, placeholder suffit */
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

input[type="url"] {
    flex: 1;
    border: none;
    padding: 18px 20px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-stack);
}

.btn-generate {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-generate:hover { transform: translateY(-1px); }

.options-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-bottom: 5px;
}

.check-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* RESULTATS */
.result-container {
    margin-top: 50px;
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
}

.btn-primary {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--text-main);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 300px;
}

/* FEATURES */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 80px 0;
    border-top: 1px solid var(--border);
    padding-top: 60px;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* LOADER OVERLAY */
.loader-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.loader-overlay.active { opacity: 1; visibility: visible; }

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

.spinner {
    width: 40px; height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.counter {
    margin-top: 10px;
    font-weight: 600;
    color: var(--accent);
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #9ca3af;
    font-size: 0.9rem;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .input-wrapper { flex-direction: column; }
    .btn-generate { padding: 15px; width: 100%; }
}