/*
Theme Name: Parisian Residence Blog
Theme URI: https://www.parisian-residence.com/
Author: Simon
Description: Thème WordPress sur mesure pour le blog de l'agence immobilière Parisian Residence. Reprend l'identité graphique du site principal (logo, couleur or signature #b3a479, typographie élégante). Page d'accueil = header avec menu sur une seule ligne + liste des articles + footer.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parisian-residence-blog
*/

/* =========================================================
   1. Variables & reset
   ========================================================= */
:root {
    --pr-gold: #b3a479;
    --pr-gold-dark: #9a8a5f;
    --pr-gold-light: #cabd97;
    --pr-dark: #1f1f1f;
    --pr-text: #333333;
    --pr-muted: #7a7a7a;
    --pr-bg: #ffffff;
    --pr-bg-soft: #faf9f6;
    --pr-border: #e7e3da;
    --pr-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --pr-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    --pr-maxw: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--pr-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--pr-text);
    background: var(--pr-bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--pr-gold-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pr-gold); }

h1, h2, h3, h4 {
    font-family: var(--pr-serif);
    color: var(--pr-dark);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .5em;
}

p { margin: 0 0 1.2em; }

.pr-container {
    width: 100%;
    max-width: var(--pr-maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   2. Header
   ========================================================= */
.pr-header {
    background: var(--pr-bg);
    border-bottom: 1px solid var(--pr-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Top bar : logo + contact + réseaux sociaux */
.pr-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.pr-logo img { height: 64px; width: auto; }

.pr-header-contact {
    display: flex;
    align-items: center;
    gap: 22px;
}

.pr-phone {
    font-family: var(--pr-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--pr-dark);
    letter-spacing: .5px;
    white-space: nowrap;
}
.pr-phone:hover { color: var(--pr-gold); }

.pr-social { display: flex; align-items: center; gap: 12px; }
.pr-social a {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--pr-border);
    border-radius: 50%;
    color: var(--pr-gold-dark);
    transition: all .2s ease;
}
.pr-social a:hover { background: var(--pr-gold); color: #fff; border-color: var(--pr-gold); }
.pr-social svg { width: 15px; height: 15px; fill: currentColor; }

/* =========================================================
   3. Navigation — menu sur UNE SEULE LIGNE
   ========================================================= */
.pr-nav {
    border-top: 1px solid var(--pr-border);
    background: var(--pr-bg);
}

.pr-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;          /* force le menu sur une seule ligne */
    align-items: stretch;
    justify-content: center;
    overflow-x: auto;           /* repli élégant si l'écran est trop étroit */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pr-menu::-webkit-scrollbar { display: none; }

.pr-menu > li { position: relative; flex: 0 0 auto; }

.pr-menu > li > a {
    display: block;
    padding: 16px 18px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pr-dark);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.pr-menu > li > a:hover {
    color: var(--pr-gold-dark);
    border-bottom-color: var(--pr-gold);
}

/* Indicateur de sous-menu */
.pr-has-sub > a::after {
    content: "";
    display: inline-block;
    width: 5px; height: 5px;
    margin-left: 7px;
    border-right: 1.5px solid var(--pr-gold);
    border-bottom: 1.5px solid var(--pr-gold);
    transform: translateY(-2px) rotate(45deg);
}

/* Sous-menus déroulants */
.pr-submenu {
    list-style: none;
    margin: 0; padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--pr-bg);
    border: 1px solid var(--pr-border);
    border-top: 2px solid var(--pr-gold);
    box-shadow: 0 14px 30px rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .22s ease;
    z-index: 120;
}
.pr-has-sub:hover .pr-submenu,
.pr-has-sub:focus-within .pr-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pr-submenu a {
    display: block;
    padding: 10px 20px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pr-text);
}
.pr-submenu a:hover { background: var(--pr-bg-soft); color: var(--pr-gold-dark); }

/* =========================================================
   4. Bandeau de page
   ========================================================= */
.pr-page-banner {
    background: var(--pr-bg-soft);
    border-bottom: 1px solid var(--pr-border);
    text-align: center;
    padding: 48px 0;
}
.pr-page-banner h1 {
    font-size: 2.6rem;
    margin: 0;
}
.pr-page-banner .pr-banner-sub {
    color: var(--pr-muted);
    font-size: .82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
}
.pr-page-banner .pr-banner-sub::before,
.pr-page-banner .pr-banner-sub::after {
    content: "";
    display: inline-block;
    width: 32px; height: 1px;
    background: var(--pr-gold);
    vertical-align: middle;
    margin: 0 14px;
}

/* =========================================================
   5. Liste des articles
   ========================================================= */
.pr-main { padding: 56px 0 72px; }

.pr-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.pr-card {
    background: var(--pr-bg);
    border: 1px solid var(--pr-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.pr-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.09); transform: translateY(-4px); }

.pr-card-thumb { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--pr-bg-soft); }
.pr-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pr-card:hover .pr-card-thumb img { transform: scale(1.05); }

.pr-card-thumb--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f3efe6, #e9e3d4);
    color: var(--pr-gold);
}
.pr-card-thumb--placeholder svg { width: 54px; height: 54px; opacity: .6; }

.pr-card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }

.pr-card-meta {
    font-size: .68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pr-gold-dark);
    margin-bottom: 12px;
}

.pr-card-title { font-size: 1.5rem; margin-bottom: 12px; line-height: 1.25; }
.pr-card-title a { color: var(--pr-dark); }
.pr-card-title a:hover { color: var(--pr-gold-dark); }

.pr-card-excerpt { color: var(--pr-muted); font-size: .92rem; margin-bottom: 20px; }

.pr-readmore {
    margin-top: auto;
    align-self: flex-start;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pr-gold-dark);
    border-bottom: 1px solid var(--pr-gold);
    padding-bottom: 3px;
}
.pr-readmore:hover { color: var(--pr-gold); }

/* Pagination */
.pr-pagination {
    margin-top: 56px;
    text-align: center;
}
.pr-pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 9px 12px;
    margin: 0 4px;
    border: 1px solid var(--pr-border);
    font-size: .85rem;
    color: var(--pr-text);
}
.pr-pagination .page-numbers.current,
.pr-pagination .page-numbers:hover { background: var(--pr-gold); color: #fff; border-color: var(--pr-gold); }

/* =========================================================
   6. Article seul
   ========================================================= */
.pr-single { max-width: 760px; margin: 0 auto; padding: 56px 0 72px; }
.pr-single .pr-card-meta { text-align: center; }
.pr-single h1 { font-size: 2.6rem; text-align: center; margin-bottom: 28px; }
.pr-single-thumb { margin: 0 0 36px; }
.pr-single-content { font-size: 1.05rem; }
.pr-single-content h2 { font-size: 1.9rem; margin-top: 1.6em; }
.pr-single-content h3 { font-size: 1.45rem; margin-top: 1.4em; }
.pr-single-content img { margin: 1.5em 0; }
.pr-single-content blockquote {
    border-left: 3px solid var(--pr-gold);
    margin: 1.6em 0;
    padding: 4px 0 4px 24px;
    font-family: var(--pr-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--pr-dark);
}
.pr-back {
    display: inline-block;
    margin-top: 40px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--pr-gold-dark);
}

/* États vides / recherche */
.pr-empty { text-align: center; padding: 60px 0; color: var(--pr-muted); }

/* =========================================================
   7. Footer
   ========================================================= */
.pr-footer {
    background: var(--pr-dark);
    color: #c9c4ba;
    padding: 54px 0 0;
    font-size: .9rem;
}
.pr-footer a { color: #d9d3c5; }
.pr-footer a:hover { color: var(--pr-gold); }

.pr-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 44px;
}
.pr-footer h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 18px;
    letter-spacing: .5px;
}
.pr-footer-logo { height: 58px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .9; }
.pr-footer ul { list-style: none; margin: 0; padding: 0; }
.pr-footer ul li { margin-bottom: 9px; }

.pr-footer-hours span { display: block; }

.pr-footer-social { display: flex; gap: 12px; margin-top: 16px; }
.pr-footer-social a {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: #d9d3c5;
}
.pr-footer-social a:hover { background: var(--pr-gold); color: #fff; border-color: var(--pr-gold); }
.pr-footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.pr-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: .8rem;
    color: #8f897d;
}
.pr-footer-bottom a { color: #8f897d; }

/* =========================================================
   8. Responsive
   ========================================================= */
@media (max-width: 992px) {
    .pr-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .pr-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .pr-header-top { flex-wrap: wrap; justify-content: center; text-align: center; }
    .pr-menu { justify-content: flex-start; }   /* reste sur une ligne, défilement horizontal */
    .pr-menu > li > a { padding: 14px 13px; letter-spacing: 1px; }
    .pr-page-banner h1 { font-size: 2rem; }
    .pr-posts-grid { grid-template-columns: 1fr; }
    .pr-footer-grid { grid-template-columns: 1fr; }
    .pr-single h1 { font-size: 2rem; }
}
