/*
Theme Name: Certivia
Theme URI: https://certivia.pro
Author: Certivia Team
Author URI: https://certivia.pro
Description: Thème WordPress moderne et responsive pour Certivia - Plateforme de micro-learning IA. Optimisé pour la formation professionnelle avec support multilingue intégré.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: certivia
Tags: business, education, custom-menu, custom-logo, editor-style, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, full-site-editing
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

:root {
    /* Primary Brand Colors */
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    
    /* Accent Colors */
    --accent-color: #6366f1;
    --accent-light: #818cf8;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* Neutral Colors */
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Premium Gradient */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-brand: linear-gradient(135deg, #1e40af 0%, #6366f1 100%);
    --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    
    /* Spacing */
    --container-width: 1280px;
    --section-padding: 120px;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Typography Premium
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

/* ==========================================================================
   Header Premium
   ========================================================================== */

.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.site-logo img {
    max-height: 45px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lang-selector {
    display: flex;
    gap: 8px;
    background: var(--bg-gray);
    padding: 6px;
    border-radius: 12px;
}

.lang-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-medium);
}

.lang-btn.active {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Buttons Premium
   ========================================================================== */

.cta-btn,
.wp-block-button__link,
button.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    color: var(--bg-white);
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.35);
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn:active {
    transform: translateY(0);
}

.cta-btn-large {
    padding: 18px 42px;
    font-size: 18px;
    border-radius: 14px;
}

.cta-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.cta-btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* ==========================================================================
   Hero Section Premium
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 140px 0 120px;
    background: var(--gradient-subtle);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 64, 175, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.hero-section h1 {
    margin-bottom: 28px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(20px, 2.5vw, 26px);
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-description {
    font-size: 19px;
    margin-bottom: 40px;
    color: var(--text-medium);
    line-height: 1.8;
}

.hero-tag {
    font-size: 17px;
    margin-top: 32px;
    font-weight: 500;
    color: var(--text-light);
}

.hero-section .cta-btn {
    font-size: 18px;
    padding: 16px 40px;
    margin: 0 8px;
}

/* ==========================================================================
   Section Styles Premium
   ========================================================================== */

.section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.bg-light {
    background: var(--bg-light);
}

.bg-gray {
    background: var(--bg-gray);
}

.bg-white {
    background: var(--bg-white);
}

.bg-gradient {
    background: var(--gradient-subtle);
}

/* ==========================================================================
   Cards Premium
   ========================================================================== */

.column-card {
    background: var(--bg-white);
    padding: 42px 36px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    height: 100%;
}

.column-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.column-icon {
    font-size: 52px;
    margin-bottom: 24px;
    display: inline-flex;
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 18px;
}

.column-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-weight: 700;
}

.column-card p {
    color: var(--text-medium);
    font-size: 17px;
    line-height: 1.7;
}

/* ==========================================================================
   Grid Layouts Premium
   ========================================================================== */

.three-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
    margin-top: 60px;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
    margin-top: 60px;
}

/* ==========================================================================
   Media & Text Premium
   ========================================================================== */

.media-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.media-placeholder {
    background: var(--bg-gray);
    border-radius: 20px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.media-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.solution-features {
    list-style: none;
    margin-top: 32px;
}

.solution-features li {
    padding: 18px 0;
    font-size: 17px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
}

.solution-features li:last-child {
    border-bottom: none;
}

.solution-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--success);
    color: var(--bg-white);
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Step Cards Premium
   ========================================================================== */

.step-card {
    background: var(--bg-white);
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: -24px;
    left: 40px;
    background: var(--gradient-brand);
    color: var(--bg-white);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.3);
}

.step-card h3 {
    font-size: 26px;
    margin-bottom: 16px;
    margin-top: 16px;
}

.step-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* ==========================================================================
   Tools Grid Premium
   ========================================================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.tool-logo {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.tool-logo:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.tool-logo img {
    max-width: 120px;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

/* ==========================================================================
   Testimonials Premium
   ========================================================================== */

.testimonial-card {
    background: var(--bg-white);
    padding: 48px 44px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.testimonial-card::before {
    content: '"';
    font-size: 100px;
    color: var(--primary-light);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 28px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 17px;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 15px;
    margin-top: 4px;
}

/* ==========================================================================
   Qualiopi Section Premium
   ========================================================================== */

.qualiopi-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.qualiopi-logo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    padding: 48px;
    border-radius: 20px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
}

.qualiopi-logo img {
    max-width: 200px;
}

.qualiopi-text h3 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.qualiopi-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-medium);
}

/* ==========================================================================
   FAQ Premium
   ========================================================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 60px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::after {
    content: '+';
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 28px;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 28px 24px 28px;
}

.faq-answer p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 17px;
}

/* ==========================================================================
   Final CTA Premium
   ========================================================================== */

.final-cta {
    background: var(--gradient-brand);
    color: var(--bg-white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 28px;
    color: var(--bg-white);
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 44px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.7;
}

.final-cta .cta-btn-large {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.final-cta .cta-btn-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Footer Premium
   ========================================================================== */

.site-footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 80px 0 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-column h4 {
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-column a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 15px;
}

/* ==========================================================================
   Trust Badges Premium
   ========================================================================== */

.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin: 60px 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.trust-badge-icon {
    font-size: 28px;
}

.trust-badge-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* ==========================================================================
   Responsive Design Premium
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .media-text,
    .qualiopi-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .three-columns,
    .two-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .step-card {
        padding: 36px 24px;
    }
    
    .column-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0 50px;
    }
    
    .cta-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease forwards;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 20px; }
.mt-2 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 20px; }
.mb-2 { margin-bottom: 40px; }
