/*
 Theme Name:   Point Habitat
 Theme URI:    https://point-habitat.fr
 Description:  Theme enfant GeneratePress pour Point Habitat - Immo Automate
 Author:       Point Habitat
 Author URI:   https://point-habitat.fr
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  point-habitat
*/

/* --- Variables & Base --- */
:root {
    --ph-primary: #1E3A5F;
    --ph-accent: #E8750A;
    --ph-accent-hover: #d06a09;
    --ph-text: #0f172a;
    --ph-text-muted: #64748b;
    --ph-bg: #ffffff;
    --ph-border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ph-text);
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.ph-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ph-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ph-header-inner {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1rem;
}

.ph-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.ph-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--ph-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ph-logo-text {
    display: flex;
    flex-direction: column;
}

.ph-logo-text .name {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ph-primary);
}

.ph-logo-text .sub {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ph-text-muted);
}

.ph-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}

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

.ph-header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.ph-btn-ghost {
    background: transparent;
    color: #475569;
}

.ph-btn-ghost:hover {
    background: #f1f5f9;
    color: var(--ph-text);
}

.ph-btn-accent {
    background: var(--ph-accent);
    color: white;
}

.ph-btn-accent:hover {
    background: var(--ph-accent-hover);
    color: white;
}

.ph-btn-outline {
    background: transparent;
    border: 1px solid var(--ph-border);
    color: var(--ph-text);
}

.ph-btn-outline:hover {
    background: #f8fafc;
}

.ph-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.ph-nav-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--ph-text);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width: 768px) {
    .ph-nav, .ph-header-cta {
        display: none;
    }
    .ph-nav-toggle {
        display: block;
    }
    .ph-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        border-bottom: 1px solid var(--ph-border);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 0.75rem;
    }
}

/* --- CTA Banner --- */
.ph-cta {
    background: var(--ph-primary);
    text-align: center;
    padding: 5rem 1rem;
}

.ph-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.ph-cta h2 {
    color: white;
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.ph-cta-inner > p:first-of-type {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    margin: 0 0 2rem;
}

.ph-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ph-cta-buttons .ph-btn {
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.ph-cta-buttons .ph-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.ph-cta-sub {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* --- Footer --- */
.ph-footer {
    background: var(--ph-primary);
    color: white;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ph-footer-inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 4rem 1rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .ph-footer-inner {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.ph-footer-brand p {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.ph-footer-col h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.8);
    margin: 0 0 1rem;
    padding: 0;
}

.ph-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.ph-footer-col ul li {
    margin-bottom: 0.75rem;
}

.ph-footer-col ul li:last-child {
    margin-bottom: 0;
}

.ph-footer-col ul a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.ph-footer-col ul a:hover {
    color: var(--ph-accent);
}

.ph-footer-bottom {
    max-width: 1152px;
    margin: 0 auto;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

.ph-footer-bottom p {
    margin: 0;
}

@media (min-width: 640px) {
    .ph-footer-bottom {
        flex-direction: row;
    }
}

/* --- Content area --- */
.site-content {
    max-width: 1152px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- Blog entries --- */
.entry-title a {
    color: var(--ph-primary);
    text-decoration: none;
    font-weight: 700;
}

.entry-title a:hover {
    color: var(--ph-accent);
}

.entry-meta {
    color: var(--ph-text-muted);
    font-size: 0.875rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ph-accent);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
}

.read-more:hover {
    color: var(--ph-accent-hover);
}

/* --- WP Buttons --- */
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
    background: var(--ph-accent) !important;
    color: white !important;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background 0.2s;
}

.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--ph-accent-hover) !important;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--ph-primary);
    font-weight: 700;
}

/* --- Content links --- */
.entry-content a {
    color: var(--ph-accent);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--ph-accent-hover);
}

/* --- Hide GP default header/footer --- */
.site-header,
.site-footer {
    display: none !important;
}
