/*
Theme Name: Captcha Fusion Demo
Theme URI: https://captchafusion.com
Author: Captcha Fusion
Author URI: https://captchafusion.com
Description: Thème pour l'instance de démonstration
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: captcha-fusion-demo
*/

:root {
    --primary-blue: #1a73e8;
    --primary-green: #34a853;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --bg-light: #f8f9fa;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

.site-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.site-logo svg {
    width: 40px;
    height: 40px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    z-index: 1000;
}

.main-nav li:hover > .sub-menu {
    display: block;
}

.main-nav .sub-menu li {
    padding: 0;
}

.main-nav .sub-menu a {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.main-nav .sub-menu a:hover {
    background: var(--bg-light);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.demo-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.demo-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.demo-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.demo-credentials {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    display: inline-block;
    margin-top: 1rem;
}

.demo-credentials h3 {
    margin-bottom: 0.75rem;
}

.demo-credentials code {
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin: 0.25rem;
    font-size: 1.1rem;
}

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

.demo-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.demo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.demo-card h2 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.demo-card p {
    color: var(--text-gray);
}

.content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.content h1 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.site-footer a {
    color: var(--primary-green);
}

.demo-banner {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 4px;
    text-align: center;
}

.demo-banner strong {
    color: #f57c00;
}

.demo-success {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 4px;
    text-align: center;
}

.demo-success strong {
    color: #2e7d32;
}

.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.comment-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.comment-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 1rem 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .main-nav a {
        padding: 1rem 2rem;
    }
    
    .main-nav .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--bg-light);
        padding: 0;
    }
    
    .main-nav li.active > .sub-menu {
        display: block;
    }
    
    .main-nav .sub-menu a {
        padding-left: 3rem;
    }
    
    .cta-button {
        display: block;
        text-align: center;
        margin: 0 2rem;
    }
    
    .demo-hero h1 {
        font-size: 2rem;
    }
    
    .demo-grid {
        grid-template-columns: 1fr;
    }
}
