/*
Theme Name: Estimation Immo Local
Theme URI: https://example.com/estimation-immo-local-theme
Author: Estimation Immo Local
Author URI: https://example.com
Description: Theme premium pour sites d'estimation immobiliere locale - Design bleu nuit et accents dores, optimise SEO local.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estimation-immo-local-theme
Requires at least: 5.8
Requires PHP: 7.4
*/

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --color-primary: #1a3c5e;
    --color-primary-dark: #0f2644;
    --color-primary-light: #2a5478;
    --color-accent: #c9a24d;
    --color-accent-dark: #a88332;
    --color-accent-light: #d4b56a;
    --color-text: #1f2933;
    --color-text-light: #4a5568;
    --color-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f6f3ee;
    --color-border: #e5e0d8;
    --color-success: #059669;
    --color-warning: #d97706;
    --color-error: #dc2626;
    --color-white: #ffffff;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --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);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h5 { font-size: 1.125rem; margin-bottom: 0.5rem; }
h6 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1400px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.grid-5-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .grid-4, .grid-5-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5-steps {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section--primary h2,
.section--primary h3,
.section--primary h4 {
    color: var(--color-white);
}

.section--dark {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section--primary .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.card--simple {
    box-shadow: none;
    border: 1px solid var(--color-border);
}

.card--simple:hover {
    transform: none;
    box-shadow: none;
}

/* Step Cards */
.step-card {
    text-align: center;
    padding: 1.5rem;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.step-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.step-card__text {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* Testimonials */
.testimonial {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.testimonial__quote {
    font-style: italic;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.testimonial__quote::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-accent);
    line-height: 0;
    display: block;
    margin-bottom: 1rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.testimonial__name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial__location {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.testimonial__rating {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.testimonial__star {
    color: var(--color-accent);
    font-size: 1rem;
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    transition: background-color var(--transition-fast);
}

.faq__question:hover {
    background-color: var(--color-bg-alt);
}

.faq__icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--transition-base);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq__item.active .faq__answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq__answer-inner {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn--accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: none;
}

.btn--accent:hover {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    box-shadow: none;
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

.btn--outline-white {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

.btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #f7f1e6, #fffaf0);
    color: var(--color-primary);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(200, 164, 93, 0.28);
    border-bottom: 1px solid rgba(200, 164, 93, 0.28);
}

.cta-banner__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.cta-banner__text {
    font-size: 1.125rem;
    color: var(--color-text, #4a5568);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}


.btn__icon,
.blog-meta__icon,
.market-stat__icon,
.pdf-features__icon-svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    vertical-align: -0.18em;
}

.btn__icon,
.blog-meta__icon {
    margin-right: 0.375rem;
}

.pdf-features__icon-svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #c8a45d;
}

.market-stat__icon {
    color: #16a34a;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.hidden { display: none; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-title { font-size: 1.875rem; }
    .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    .section-title { font-size: 1.5rem; }
    .section { padding: 2.5rem 0; }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* WordPress Generated Classes */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* Responsive Media */
@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
