/*
Theme Name: RachatCreditPlus Premium
Theme URI: https://rachatcreditplus.fr
Author: Antigravity
Description: A high-end, custom WordPress theme for credit consolidation services.
Version: 1.0.0
*/

:root {
    /* Color Palette */
    --color-primary: #0a192f;
    /* Navy Blue */
    --color-secondary: #d6b06e;
    /* Gold/Bronze */
    --color-text: #333333;
    /* Dark Gray */
    --color-bg: #f9f9f9;
    /* Off-white */
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --container-width: 1200px;
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Global Image Reset */
img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--color-secondary);
}

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
    background-image: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9));
    /* Overlay */
    /* Add background image URL here later */
    background-size: cover;
    background-position: center;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--color-secondary);
}

.btn:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

/* Sections */
.section {
    padding: 2rem 0;
    /* Reduced from 5rem */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--color-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 1rem auto 0;
}

/* --- Article / Single Post Styles --- */

/* Article Hero */
.article-hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.article-hero h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.article-meta {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.article-meta a {
    color: var(--color-secondary);
}

.article-author {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.9;
}

/* Article Layout (Sidebar) */
.article-layout {
    display: flex;
    gap: 4rem;
    margin-bottom: 4rem;
}

.article-content-wrapper {
    flex: 2;
    /* Takes up 2/3 of space */
}

.sidebar {
    flex: 1;
    /* Takes up 1/3 of space */
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Typography & Content */
.entry-content {
    font-size: 1.125rem;
    /* 18px for better readability */
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Fix for overflowing images/content */
.entry-content img,
.entry-content video,
.entry-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.entry-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.entry-content blockquote {
    border-left: 4px solid var(--color-secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
    background: #fdfdfd;
    padding: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: #fff;
    padding: 2rem;
    border: 1px solid #eee;
    margin-top: 3rem;
    border-radius: 4px;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 0.8rem;
}

.widget li:last-child {
    border-bottom: none;
}

.widget-cta {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.widget-cta h3 {
    color: var(--color-secondary);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .article-layout {
        flex-direction: column;
    }

    .sidebar {
        position: static;
    }
}

/* --- News Grid (Homepage) --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-banner {
    height: 220px;
    overflow: hidden;
    background-color: #eee;
}

.news-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-banner img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-title a {
    color: var(--color-primary);
}

.news-title a:hover {
    color: var(--color-secondary);
}

.news-excerpt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Simulator Styles --- */

.simulator-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-top: 1rem;
    /* Reduced from 2rem */
    position: relative;
    overflow: hidden;
}

.simulator-header {
    padding-top: 2rem;
    padding-bottom: 1rem;
    /* Significantly reduced */
}

/* Progress Bar */
.progress-container {
    background-color: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 3rem;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--color-secondary);
    height: 100%;
    transition: width 0.4s ease;
}

/* Steps */
.sim-step {
    display: none;
    animation: fadeIn 0.5s;
}

.sim-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    text-align: center;
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

/* Choice Cards */
.grid-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.choice-card {
    background: #fdfdfd;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.choice-card:hover {
    border-color: var(--color-secondary);
    background: #fffaf0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.choice-card input {
    display: none;
}

.choice-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.choice-card .label {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Form Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #444;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--color-secondary);
    outline: none;
}

.currency {
    position: absolute;
    right: 1rem;
    color: #888;
    font-weight: bold;
}

/* Navigation Buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev {
    background: none;
    border: none;
    color: #888;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-size: 1rem;
}

.btn-prev:hover {
    color: var(--color-primary);
}

.btn-next,
.btn-submit {
    border: none;
    cursor: pointer;
}

.privacy-note {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .simulator-box {
        padding: 1.5rem;
    }

    .step-title {
        font-size: 1.5rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 1rem;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h3 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.8rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget a:hover {
    color: var(--color-white);
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}