/* Recettio — thème par défaut — pages/demo.css
   Styles de la page Fonctionnalités (views/demo.php). */
.demo-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}
.demo-hero {
    text-align: center;
    margin-bottom: 70px;
}
.demo-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--site-title-a, #3b82f6) 0%, var(--site-title-b, #8b5cf6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.demo-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.demo-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}
.btn-demo-primary {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--site-500, #3b82f6) 0%, var(--site-600, #2563eb) 100%);
    color: var(--site-on, white);
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--site-500-rgb, 59, 130, 246), 0.3);
}
.btn-demo-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--site-500-rgb, 59, 130, 246), 0.4);
    text-decoration: none !important;
}
.btn-demo-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: #94a3b8;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid rgba(var(--line-rgb), 0.3);
    transition: all 0.3s ease;
}
.btn-demo-secondary:hover {
    color: #f1f5f9;
    border-color: rgba(var(--line-rgb), 0.6);
    text-decoration: none !important;
}
:root[data-theme="light"] .btn-demo-secondary {
    color: #1e293b;
    border-color: rgba(var(--ink-2-rgb), 0.3);
}
:root[data-theme="light"] .btn-demo-secondary:hover {
    color: #1e293b !important;
    border-color: rgba(var(--ink-2-rgb), 0.5);
    background: rgba(var(--ink-2-rgb), 0.06);
}
/* Étapes */
.demo-steps-section {
    margin-bottom: 80px;
}
.demo-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 40px;
}
.demo-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.demo-step-card {
    background: rgba(var(--ink-2-rgb), 0.5);
    border: 1px solid rgba(var(--ink-3-rgb), 0.3);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out both;
}
.demo-step-card:nth-child(1) { animation-delay: 0.1s; }
.demo-step-card:nth-child(2) { animation-delay: 0.2s; }
.demo-step-card:nth-child(3) { animation-delay: 0.3s; }
.demo-step-card:nth-child(4) { animation-delay: 0.4s; }
.demo-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(var(--site-500-rgb, 59, 130, 246), 0.15);
    border-color: rgba(var(--site-500-rgb, 59, 130, 246), 0.4);
}
.demo-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--site-500, #3b82f6) 0%, var(--site-2, #8b5cf6) 100%);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    color: var(--site-on, white);
    margin-bottom: 14px;
}
.demo-step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}
.demo-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 8px;
}
.demo-step-text {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
}
/* Fonctionnalités */
.demo-features-section {
    margin-bottom: 80px;
}
.demo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.demo-feature-block {
    position: relative;
    background: rgba(var(--ink-2-rgb), 0.4);
    border: 1px solid rgba(var(--ink-3-rgb), 0.3);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}
.demo-feature-block:hover {
    border-color: rgba(var(--site-500-rgb, 59, 130, 246), 0.3);
    background: rgba(var(--ink-2-rgb), 0.6);
}
.demo-feature-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}
.demo-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
}
.demo-feature-text {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}
.demo-feature-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(var(--site-500-rgb, 59, 130, 246), 0.15);
    color: var(--site-link, #60a5fa);
    border: 1px solid rgba(var(--site-500-rgb, 59, 130, 246), 0.2);
}
.demo-feature-tag.pro {
    background: rgba(var(--site-2-rgb, 139, 92, 246), 0.15);
    color: var(--site-title-b, #a78bfa);
    border-color: rgba(var(--site-2-rgb, 139, 92, 246), 0.2);
}
/* Thème clair : teintes plus foncées pour rester lisibles sur fond blanc */
:root[data-theme="light"] .demo-feature-tag { color: var(--site-link, #1d4ed8); }
:root[data-theme="light"] .demo-feature-tag.pro { color: var(--site-title-b, #6d28d9); }
:root[data-theme="light"] .demo-subtitle,
:root[data-theme="light"] .demo-final-cta p,
:root[data-theme="light"] .demo-pricing-link { color: #475569; }
/* CTA final */
.demo-final-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(var(--site-500-rgb, 59, 130, 246), 0.1) 0%, rgba(var(--site-2-rgb, 139, 92, 246), 0.1) 100%);
    border: 1px solid rgba(var(--site-500-rgb, 59, 130, 246), 0.2);
    border-radius: 16px;
    padding: 60px 40px;
}
.demo-final-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 12px;
}
.demo-final-cta p {
    color: #94a3b8;
    margin-bottom: 32px;
    font-size: 1.05rem;
}
.demo-pricing-link {
    display: inline-block;
    margin-top: 16px;
    color: #94a3b8;
    font-size: 0.9rem;
    text-decoration: none;
}
.demo-pricing-link:hover { color: var(--site-link, var(--c-info, #3b82f6)); text-decoration: underline; }
/* Thème clair */
:root[data-theme="light"] .demo-step-card,
:root[data-theme="light"] .demo-feature-block {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(226, 232, 240, 0.8);
}
:root[data-theme="light"] .demo-step-title,
:root[data-theme="light"] .demo-feature-title {
    color: #1e293b;
}
:root[data-theme="light"] .demo-step-text,
:root[data-theme="light"] .demo-feature-text {
    color: #64748b;
}
:root[data-theme="light"] .demo-section-title { color: #1e293b; }
:root[data-theme="light"] .demo-final-cta h2 { color: #1e293b; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .demo-title { font-size: 2rem; }
    .demo-final-cta { padding: 40px 24px; }
    .demo-final-cta h2 { font-size: 1.5rem; }
}
.demo-screenshot-wrap {
    margin: 48px auto 70px;
}
.demo-screenshot-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg, 18px);
    border: 1px solid var(--color-border, rgba(var(--line-rgb), 0.25));
    box-shadow: var(--shadow-soft, 0 18px 45px rgba(var(--ink-rgb), 0.85));
}
