/*
Theme Name: Apparemment Synonyme SEO
Theme URI: https://apparemmentsynonyme.com
Author: SEO Expert
Author URI: https://apparemmentsynonyme.com
Description: Complete SEO-optimized WordPress theme with 4 auto-configured pages targeting 50+ French synonym keywords. Built-in internal linking network, schema markup, and topical authority strategy.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apparemment-seo
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Tags: seo, synonymes, french, responsive, keywords

FEATURES:
✓ Auto-creates 4 SEO pages on activation
✓ Internal linking network (multiply ranking power)
✓ Schema.org markup for rich snippets
✓ Mobile responsive design
✓ Targets 50+ French keywords
✓ Professional gradient design
✓ Fast loading & optimized
✓ WordPress standards compliant
*/

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --light-bg: #f9f9f9;
    --card-bg: #f8f9ff;
    --border-color: #e0e7ff;
    --text-color: #333;
    --text-light: #555;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header & Navigation */
.site-header {
    background: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-branding {
    padding: 10px 0;
}

.site-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: var(--secondary-color);
}

.site-title a span {
    color: var(--secondary-color);
}

/* Main Layout */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

/* Container */
.container-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 50px auto;
    max-width: 1100px;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 0;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

.quick-nav {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.quick-nav a {
    background: white;
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-nav a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Main Content */
main {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 120px;
}

/* Headings */
h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    margin-top: 40px;
}

h2:first-child {
    margin-top: 0;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
}

h4 {
    color: var(--primary-color);
    font-size: 1.05em;
    margin-bottom: 10px;
}

section {
    margin-bottom: 50px;
    scroll-margin-top: 120px;
}

/* Text Boxes */
.definition-box {
    background-color: #f0f4ff;
    border-left: 4px solid var(--primary-color);
    padding: 25px;
    margin: 25px 0;
    border-radius: 4px;
}

.definition-box strong {
    color: var(--primary-color);
    font-size: 1.05em;
}

.example {
    background-color: #fff9e6;
    border-left: 3px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-style: italic;
    color: var(--text-light);
}

.example::before {
    content: "📝 Exemple : ";
    font-weight: bold;
    color: var(--text-color);
    font-style: normal;
    margin-right: 5px;
}

/* Grids & Cards */
.synonyms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.synonym-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.synonym-card:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-4px);
}

.synonym-card h4 {
    margin-bottom: 8px;
}

.synonym-card p {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Badges & Tags */
.badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 14px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: var(--card-bg);
}

/* Sidebar */
.sidebar h3 {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.quick-list {
    list-style: none;
}

.quick-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.quick-list li:last-child {
    border-bottom: none;
}

.quick-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-list a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.sidebar-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.sidebar-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sidebar-box p {
    font-size: 0.9em;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.related-pages {
    background: #f0f4ff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.related-pages h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.related-pages ul {
    list-style: none;
    margin: 0;
}

.related-pages li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-pages li:last-child {
    border-bottom: none;
}

.related-pages a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-pages a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    padding-left: 5px;
}

/* Typography */
.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

ul {
    margin-left: 20px;
    margin-top: 10px;
}

ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Breadcrumb */
.breadcrumb {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 8px;
    text-align: center;
    margin: 50px 0;
}

.cta-section h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
    font-size: 2.2em;
}

.cta-section p {
    font-size: 1.15em;
    margin: 15px 0;
    opacity: 0.95;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 50px 0;
}

.faq-item {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.faq-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.faq-item p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 60px;
}

.site-footer p {
    margin: 10px 0;
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .synonyms-grid {
        grid-template-columns: 1fr;
    }

    .quick-nav {
        flex-direction: column;
    }

    .quick-nav a {
        width: 100%;
        text-align: center;
    }

    main, .sidebar {
        padding: 25px;
    }

    .sidebar {
        position: static;
        top: auto;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }

    .site-header .container-main {
        flex-direction: column;
    }

    .site-title {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 15px;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    main, .sidebar {
        padding: 15px;
        border-radius: 4px;
    }

    .synonym-card {
        padding: 15px;
    }

    .cta-section {
        padding: 40px 20px;
        margin: 30px 0;
    }

    .cta-section h2 {
        font-size: 1.6em;
    }
}
