:root {
    --bg: #0b0e14;
    --card: #161b22;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --accent: #7c3aed; /* Dashly Purple */
    --border: #30363d;
    --success: #238636;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

header { 
    padding: 1.2rem 0; 
    border-bottom: 1px solid var(--border); 
    background: rgba(11, 14, 20, 0.9); 
    backdrop-filter: blur(12px); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.logo { font-size: 1.5rem; font-weight: 850; color: white; text-decoration: none; letter-spacing: -1.5px; }
.logo span { color: var(--accent); }

.nav-links a { color: var(--text-dim); text-decoration: none; margin-left: 20px; font-size: 0.9rem; font-weight: 500; transition: 0.2s;}
.nav-links a:hover { color: var(--accent); }

/* --- Menu Mobile Rapide --- */
.menu-toggle {
    display: none; /* Caché sur PC */
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Version PC : Horizontale */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}



/* Version Mobile : Quand l'écran est < 768px */
@media (max-width: 680px) {
    .menu-toggle {
        display: block;
        position: relative; /* Assure que le bouton reste visible */
        z-index: 1001;      /* Doit être supérieur au z-index du nav-links */
        min-width: 100px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;          /* Se place juste sous le header */
        left: 0%;
        background: #161b22; 
        padding: 20px;
        z-index: 1000;      /* Juste en dessous du bouton */
        border-bottom: 2px solid var(--accent);
    }

    .nav-links.mobile-open {
        display: flex !important;
    }
    
    .nav-links a {
        margin-left: -1%;
    }
}



.tool-wrapper { margin-top: 50px; text-align: center; }
.tool-header h1 { font-size: 2.8rem; margin-bottom: 0.5rem; letter-spacing: -1px; }
.subtitle { color: var(--text-dim); font-size: 1.2rem; margin-bottom: 2.5rem; }

.bento-card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 24px; 
    padding: 2.5rem; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
    text-align: left;
}

textarea {
    width: 100%; height: 180px; background: #0d1117; border: 2px solid var(--border);
    border-radius: 14px; color: white; padding: 18px; box-sizing: border-box; 
    font-size: 1rem; font-family: inherit; resize: vertical; transition: border-color 0.2s;
}

textarea:focus { outline: none; border-color: var(--accent); }

button {
    background: var(--accent); color: white; border: none; padding: 16px;
    border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; 
    width: 100%; margin-top: 1.5rem; transition: transform 0.1s, background 0.2s;
}

button:active { transform: scale(0.98); }
button:hover { background: #6d28d9; }

.output-hidden { 
    display: none; margin-top: 2rem; padding: 1.5rem; 
    background: #0d1117; border-radius: 14px; border: 1px solid var(--accent); 
    word-break: break-all;
}

.footer-content { padding: 50px 0; border-top: 1px solid var(--border); text-align: center; margin-top: 80px; }
.footer-links { margin-top: 15px; }
.footer-links a { color: var(--text-dim); text-decoration: none; margin: 0 15px; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

.ad-slot { width: 100%; height: 100px; background: rgba(255,255,255,0.01); margin: 30px 0; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); color: var(--text-dim); font-size: 0.8rem; border-radius: 12px;}

.seo-content {
    margin-top: 15%;
}

/* --- CUSTOM SCROLLBAR (Fancy & Modern) --- */

/* 1. La largeur de la barre */
::-webkit-scrollbar {
    width: 10px;               /* Largeur pour la barre verticale */
    height: 10px;              /* Hauteur pour la barre horizontale (textarea) */
}

/* 2. Le fond de la barre (Track) */
::-webkit-scrollbar-track {
    background: var(--bg);     /* On utilise ta couleur de fond #030712 */
}

/* 3. La partie qui défile (Thumb) */
::-webkit-scrollbar-thumb {
    background: var(--border); /* Un gris discret par défaut */
    border-radius: 10px;       /* Bords très arrondis */
    border: 2px solid var(--bg); /* Crée un espace autour pour un look flottant */
    transition: background 0.3s ease;
}

/* 4. Effet au survol (Hover) */
::-webkit-scrollbar-thumb:hover {
    background: var(--accent); /* Devient bleue (ta couleur accent) quand on passe dessus */
    box-shadow: 0 0 10px var(--accent-glow); /* Petit effet de lueur */
}

/* Spécifique pour Firefox (qui ne supporte pas webkit) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}