/*
Theme Name: CerebralTec
Theme URI: https://cerebraltec.com
Description: Professional IQ Testing Platform Theme
Version: 1.0
Author: CerebralTec Team
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    max-width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 45px;
    width: auto;
}

/* Navigation in header */
.header-nav {
    display: flex;
    gap: 5px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.nav-link:hover {
    color: #2c3e50;
    background: rgba(102, 126, 234, 0.08);
}

.nav-link.active {
    color: #667eea;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

/* Separator between nav links */
.nav-link:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: #e5e7eb;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    color: #2c3e50;
}

.lang:hover {
    background: #f0f0f0;
}

.lang.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.account-btn {
    padding: 10px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.account-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 50px;
}

.start-test-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.gender-prompt {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: 600;
}

.gender-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.gender-btn {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px 40px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gender-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gender-btn.male:hover {
    border-color: #5B9BD5;
}

.gender-btn.female:hover {
    border-color: #E91E63;
}

.gender-icon {
    width: 60px;
    height: 60px;
}

.gender-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.test-duration {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.indicator .number {
    font-size: 36px;
    font-weight: 700;
}

.indicator .label {
    font-size: 14px;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s;
}

.feature:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Footer */
.site-footer {
    background: #1a1f2e;
    color: white;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    /* CORRECTION: Suppression du filtre qui rendait le logo blanc */
    /* filter: brightness(0) invert(1); - SUPPRIMÉ */
}

.footer-description {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.security-badge {
    height: 35px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.security-badge:hover {
    opacity: 1;
}

/* SSL Secure Badge Style */
.ssl-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
}

.ssl-icon {
    width: 20px;
    height: 20px;
    fill: #10b981;
}

.stripe-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: #818cf8;
    font-size: 13px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(3px);
}

.payment-text {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.payment-icon {
    width: 40px;
    height: 25px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 2px 6px;
}

.payment-visa {
    background: linear-gradient(to right, #1a1f71, #0066b2);
    color: white;
    font-weight: bold;
    font-size: 11px;
}

.payment-mastercard {
    background: linear-gradient(to right, #eb001b, #f79e1b);
    position: relative;
    overflow: hidden;
}

.payment-mastercard::before,
.payment-mastercard::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.payment-mastercard::before {
    background: rgba(235, 0, 27, 0.8);
    left: 5px;
}

.payment-mastercard::after {
    background: rgba(247, 158, 27, 0.8);
    right: 5px;
}

.payment-paypal {
    background: #003087;
    color: #009cde;
    font-weight: bold;
    font-size: 10px;
    font-style: italic;
}

.payment-amex {
    background: #006fcf;
    color: white;
    font-weight: bold;
    font-size: 10px;
}

.security-text {
    color: #9ca3af;
    font-size: 12px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-text::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
    margin: 5px 0;
}

.footer-bottom strong {
    color: white;
}

.footer-disclaimer {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .header-nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .footer-container {
        padding: 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 40px;
    }
    
    .footer-section:last-child {
        grid-column: span 4;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .footer-section:last-child h4 {
        grid-column: span 2;
    }
}

@media (max-width: 968px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .header-nav {
        display: none;
    }
    
    .logo {
        height: 40px;
    }
    
    .language-selector {
        display: none;
    }
    
    .account-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .gender-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .gender-btn {
        width: 200px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-section:first-child {
        grid-column: span 2;
        text-align: center;
    }
    
    .footer-section:last-child {
        grid-column: span 2;
        display: block;
        text-align: center;
    }
    
    .footer-badges {
        justify-content: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
    
    .security-text {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section {
        grid-column: span 1 !important;
    }
    
    .footer-section:first-child {
        grid-column: span 1;
    }
    
    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #2d3748;
    }
    
    .footer-logo {
        height: 45px;
        margin: 0 auto 15px;
    }
    
    .footer-badges {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    
    .ssl-badge,
    .stripe-badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .payment-methods {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
    
    .footer-disclaimer {
        font-size: 11px;
        padding: 0 10px;
    }
    
    .tagline {
        display: none;
    }
}

@media (max-width: 400px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}