/*
Theme Name: CV Elegant
Description: Thème épuré, élégant et moderne pour les sites de CV et lettres de motivation.
Author: Antigravity
Version: 1.0
*/

:root {
    --bg-body: #F7F8FA;
    --bg-paper: #FFFFFF;
    --text-main: #2D3748;
    --text-muted: #718096;
    --accent-blue: #3182CE;
    --border-light: #E2E8F0;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --radius-soft: 8px;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2B6CB0;
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--bg-paper);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.btn-primary {
    background: var(--accent-blue);
    color: #FFF;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
}

.btn-primary:hover {
    background: #2B6CB0;
    color: #FFF;
    box-shadow: var(--shadow-soft);
}

/* ==========================================================================
   HERO CATALOGUE
   ========================================================================== */
.hero-catalogue {
    background: var(--bg-paper);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
}

.hero-catalogue h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.hero-catalogue p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TEMPLATE GRID (HOME)
   ========================================================================== */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font-heading);
}

.section-cv {
    margin-bottom: 5rem;
}

.badge-type {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFF;
    z-index: 10;
    text-transform: uppercase;
}

.cv-badge {
    background: #3182CE;
}

.lm-badge {
    background: #DD6B20;
}

.template-card {
    background: var(--bg-paper);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-soft);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.template-thumbnail {
    position: relative;
    height: 350px;
    background: #E2E8F0;
    overflow: hidden;
}

.template-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.template-card:hover .template-thumbnail img {
    transform: scale(1.05);
}

.hover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(49, 130, 206, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay span {
    color: #FFF;
    font-weight: 600;
    border: 2px solid #FFF;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

.template-info {
    padding: 1.5rem;
    text-align: center;
}

.template-info h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.btn-download-small {
    display: inline-block;
    background: #EDF2F7;
    color: var(--accent-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-lm-color {
    color: #DD6B20;
}

.template-card.card-cv:hover .btn-download-small {
    background: var(--accent-blue);
    color: #FFF;
}

.template-card.card-lm:hover .btn-download-small {
    background: #DD6B20;
    color: #FFF;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.post-card .category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-main);
}

.post-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card .read-more {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   SINGLE POST (CATALOGUE STYLE)
   ========================================================================== */
.single-template-page {
    padding: 3rem 0;
}

.template-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    background: var(--bg-paper);
    padding: 3rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.template-preview {
    background: #E2E8F0;
    padding: 1rem;
    border-radius: 4px;
}

.cv-mockup {
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

.category-badge {
    background: #EBF4FF;
    color: var(--accent-blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.template-actions-area h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.template-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.features-list {
    margin-bottom: 2rem;
    background: #F7FAFC;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

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

.features-list li {
    margin-bottom: 0.5rem;
    color: #2D3748;
    font-weight: 500;
}

.btn-massive-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #DD6B20; /* Orange conversion style */
    color: #FFF;
    border: none;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(221, 107, 32, 0.4);
}

.btn-massive-download:hover {
    background: #C05621;
    transform: translateY(-2px);
}

.download-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

/* SEO CONTENT AREA */
.seo-content-area {
    background: var(--bg-paper);
    padding: 3rem;
    border-radius: var(--radius-soft);
    border: 1px solid var(--border-light);
    margin-bottom: 4rem;
}

.seo-content-area h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.pro-tips-banner {
    background: #FEFCBF;
    border: 1px solid #F6E05E;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    color: #744210;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content strong {
    color: var(--text-main);
}

/* SIDEBAR ACTIONS */
.sticky-box {
    position: sticky;
    top: 100px;
    background: var(--bg-paper);
    padding: 2.5rem;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #F0FFF4;
    color: #2F855A;
    padding: 1rem;
    border-radius: var(--radius-soft);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    border: 1px solid #C6F6D5;
}

.trust-badge svg {
    flex-shrink: 0;
}

.sticky-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.sidebar-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-action {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-soft);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-copy {
    background: #EBF4FF;
    color: var(--accent-blue);
    border: 1px solid #BEE3F8;
}

.btn-copy:hover {
    background: var(--accent-blue);
    color: #FFF;
}

.btn-word {
    background: var(--accent-blue);
    color: #FFF;
    border: 1px solid var(--accent-blue);
}

.btn-word:hover {
    background: #2B6CB0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-print {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.btn-print:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.pro-tips {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.pro-tips h4 {
    color: #D69E2E;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.pro-tips p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-paper);
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .template-showcase {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero-catalogue h1 { font-size: 2rem; }
    .seo-content-area { padding: 1.5rem; }
    .template-actions-area h1 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .paper-sheet { padding: 2rem; }
    .single-header h1 { font-size: 2rem; }
}
