/*
Theme Name: BizGenie
Theme URI: https://captionmania.com
Author: Ahmed Ali
Version: 1.0
Description: Minimal custom theme for BizGenie AI tools
*/
body {
    font-family: 'Arial', sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* MENU FIXE */
.main-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 999;
}

.main-menu .menu-items {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    margin: 0;
    list-style: none;
}

.main-menu .menu-items li a {
    text-decoration: none;
    color: #4f46e5;
    font-weight: 600;
    transition: 0.3s;
}

.main-menu .menu-items li a:hover {
    color: #3730a3;
}

/* DECALAGE POUR MENU FIXE */
body {
    padding-top: 70px;
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(90deg,#4f46e5,#6366f1);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 25px;
}

/* BOUTONS */
.btn-primary {
    padding: 15px 30px;
    font-size: 16px;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #3730a3;
}

/* TOOLS SECTION */
.all-tools {
    margin-bottom: 60px;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tool-card {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.tool-card h3 {
    margin-bottom: 10px;
}

.tool-card p {
    margin-bottom: 15px;
}

/* FORMULAIRES */
.cm-tool-form input,
.cm-tool-form select {
    padding: 10px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.results-container {
    margin-top: 15px;
}

/* LOADER */
.cm-loader {
    padding: 10px;
    background: #f3f3f3;
    border-left: 4px solid #4f46e5;
    border-radius: 5px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {opacity: 0.6;}
    50% {opacity: 1;}
    100% {opacity: 0.6;}
}

.cm-results-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.cm-result-item {
    background: #fff;
    margin: 5px 0;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fadeIn 0.4s forwards;
}

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

.cm-error {
    background: #ffe5e5;
    color: #b91c1c;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
}

/* CTA SECTION */
.cta {
    text-align: center;
    margin-bottom: 60px;
}

/* BLOG SECTION */
.blog {
    margin-bottom: 60px;
}

.blog .tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.blog-card {
    flex: 1 1 300px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* RESPONSIVE */
@media(max-width:768px){
    .tools-grid, .blog .tools-grid {
        flex-direction: column;
        align-items: center;
    }
}