/*
Theme Name: 1Maison 1Rêve
Theme URI: https://www.1maison1reve.fr
Author: 1Maison 1Rêve
Author URI: https://www.1maison1reve.fr
Description: Thème officiel 1Maison 1Rêve (AMO construction & rénovation, Île-de-France), repris du site Base44 : header, footer, page d'accueil, charte graphique et types de contenu Modèles, Terrains, Réalisations et Fiches pratiques.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: m1r
*/

/* =========================================================
   TOKENS — charte 1M1R (repris de src/index.css)
   ========================================================= */
:root {
  --c-bordeaux-dark: #8E1B1B;
  --c-bordeaux-main: #8E1B1B;
  --c-bordeaux-accent: #A12C2C;
  --c-steel-dark: #3A5C3E;
  --c-steel-main: #4F7A54;
  --c-steel-bg: #7A9E7E;
  --c-anthracite: #2D2D2D;
  --c-anthracite-mid: #3A3A3A;
  --c-anthracite-light: #6B6B6B;
  --c-bg: #FAF8F5;
  --c-beige: #F4F1E4;
  --c-beige-dark: #E8E2D6;
  --c-text: #2C2C2C;
  --c-text-muted: #6B6B6B;
  --c-border: #E0D9CE;
  --c-card-bg: #FFFFFF;
  --c-conseil-bg: #FDF6F3;
  --c-info-bg: #F0F5F1;
  --c-retenir-bg: #FDF8ED;
  --theme-primary: #B5310D;
  --theme-dark: #2C2C2C;
  --theme-secondary: #4F7A54;
  --font-title: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Raleway', 'Montserrat', sans-serif;
  --radius: 16px;
  --shadow: 0 7px 24px rgba(45,45,45,.07);
  --shadow-hover: 0 16px 35px rgba(45,45,45,.13);
  --container: 1280px;
  --header-h: 76px;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-bordeaux-main); transition: all .2s ease; }
a:hover { color: var(--c-bordeaux-accent); }
::selection { background: var(--c-bordeaux-main); color: #fff; }
*:focus-visible { outline: 2px solid var(--c-steel-main); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--c-bordeaux-dark);
  line-height: 1.3;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 1rem; top: 1rem; z-index: 999; background: #fff; padding: .6rem 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 2.5rem; }
.container--narrow { max-width: 860px; }
@media (max-width: 768px) { .container { padding: 0 1.25rem; } }

.icon { width: 1em; height: 1em; flex-shrink: 0; vertical-align: middle; }

/* Boutons / liens (repris de Home.jsx) */
.btn, .home-primary, .home-secondary, .home-link {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 700; text-decoration: none;
  transition: filter .3s ease, background .3s ease, color .3s ease;
}
.btn, .home-primary { padding: .9rem 1.25rem; border-radius: 8px; background: var(--c-bordeaux-main); color: #fff; border: 0; cursor: pointer; }
.btn:hover, .home-primary:hover { filter: brightness(1.12); color: #fff; }
.home-secondary { padding: .9rem 1.25rem; border: 1px solid rgba(255,255,255,.8); border-radius: 8px; color: #fff; }
.home-secondary:hover { background: rgba(255,255,255,.12); color: #fff; }
.home-link { color: var(--c-bordeaux-main); }
.btn--outline { background: transparent; color: var(--c-bordeaux-main); border: 1px solid var(--c-bordeaux-main); }
.btn--outline:hover { background: var(--c-bordeaux-main); color: #fff; }

.eyebrow { color: var(--c-bordeaux-main); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 .5rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--theme-dark);
  transition: background .3s ease, box-shadow .3s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.site-branding { flex-shrink: 0; display: flex; align-items: center; }
.site-branding img, .site-branding .custom-logo { height: 52px; width: auto; object-fit: contain; }
.site-branding .site-title { font-family: var(--font-title); color: #fff; font-size: 1.2rem; text-decoration: none; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: .25rem; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .75rem; color: rgba(255,255,255,.9); font-size: .88rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.main-nav > ul > li > a:hover { color: #fff; }
.main-nav .menu-item-has-children > a::after {
  content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: .25rem; opacity: .8;
}
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 270px; padding: .5rem 0; margin-top: .25rem;
  background: #fff; border-radius: 10px; border: 1px solid var(--c-border); box-shadow: 0 10px 40px rgba(0,0,0,.13);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease; z-index: 60;
}
.main-nav li:last-child > .sub-menu { left: auto; right: 0; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { display: block; padding: .7rem 1rem; color: var(--c-anthracite); font-size: .875rem; font-weight: 600; text-decoration: none; line-height: 1.3; }
.main-nav .sub-menu a:hover { background: var(--c-bg); color: var(--theme-primary); }
.main-nav .sub-menu .menu-desc { display: block; font-size: .75rem; font-weight: 400; color: var(--c-text-muted); margin-top: .15rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex-shrink: 0; }
.header-icon-btn { background: none; border: 0; color: rgba(255,255,255,.85); padding: .5rem; cursor: pointer; display: inline-flex; font-size: 1.3rem; }
.header-icon-btn:hover { color: #fff; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; background: var(--theme-primary); color: #fff; padding: .55rem 1rem; border-radius: 8px; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: #fff; filter: brightness(1.1); }
.menu-toggle { display: none; }

/* Header transparent sur l'accueil */
.home .site-header:not(.is-scrolled) { background: transparent; }
.home .site-header.is-scrolled { background: rgba(255,255,255,.97); box-shadow: 0 3px 18px rgba(45,45,45,.1); }
.home .site-header.is-scrolled .main-nav > ul > li > a,
.home .site-header.is-scrolled .header-icon-btn,
.home .site-header.is-scrolled .site-title { color: var(--c-anthracite); }

.site-main { padding-top: var(--header-h); }
.home .site-main { padding-top: 0; }

@media (max-width: 1100px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 1rem; right: 1rem; background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.18); padding: 1rem; max-height: 75vh; overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a, .home .site-header.is-scrolled .main-nav > ul > li > a { color: var(--c-anthracite); padding: .8rem .5rem; border-top: 1px solid var(--c-border); }
  .main-nav > ul > li:first-child > a { border-top: 0 !important; }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; margin: 0; min-width: 0; }
  .main-nav .menu-item-has-children > a::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-phone span { display: none; }
}

/* Recherche plein écran */
.search-overlay { position: fixed; inset: 0; background: rgba(20,20,20,.85); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 15vh 1.25rem 0; }
.search-overlay.is-open { display: flex; }
.search-overlay form { width: 100%; max-width: 640px; display: flex; gap: .5rem; }
.search-overlay input[type=search] { flex: 1; padding: 1rem 1.2rem; border-radius: 10px; border: 0; font-size: 1.1rem; font-family: var(--font-body); }
.search-overlay__close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* =========================================================
   ACCUEIL (front-page.php — repris de src/components/home)
   ========================================================= */
.home-section { padding: 88px 0; }
.bg-white { background: #fff; }
.bg-c-bg { background: var(--c-bg); }
@media (max-width: 768px) { .home-section { padding: 58px 0; } }

.section-title { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2.25rem; }
.section-title h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); }

.home-card { background: var(--c-card-bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.home-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.home-card__img { display: block; height: 190px; overflow: hidden; background: var(--c-bg); }
.home-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.home-card:hover .home-card__img img { transform: scale(1.05); }
.home-card__body { padding: 1.5rem; }
.home-card__body h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: .6rem; }
.home-card__body h3 a { color: inherit; text-decoration: none; }
.home-card__body p { font-size: .9rem; color: rgba(45,45,45,.72); line-height: 1.65; margin-bottom: 1.2rem; }
.home-card__meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .75rem; color: rgba(45,45,45,.55); margin-bottom: .75rem; align-items: center; }
.home-card__meta .cat { color: var(--c-bordeaux-main); font-weight: 700; }
.home-card__icon { color: var(--c-bordeaux-main); font-size: 1.5rem; margin-bottom: 1rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Hero */
.home-hero { position: relative; min-height: 80vh; min-height: 80svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.home-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.84) 0%, rgba(30,30,30,.48) 43%, rgba(20,20,20,.08) 75%); }
.home-diamond { position: absolute; right: 12%; top: 25%; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.2); transform: rotate(45deg); }
.home-hero__content { position: relative; z-index: 2; width: 100%; padding-top: 9rem; padding-bottom: 9rem; }
.home-hero__eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 1.25rem; }
.home-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.5rem); line-height: 1.08; color: #fff; max-width: 36rem; margin-bottom: 1.5rem; }
.home-hero h1 .accent { color: var(--c-bordeaux-accent); }
.home-hero__lead { max-width: 28rem; font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: 2rem; }
.home-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.home-hero__band { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; background: rgba(45,45,45,.95); border-top: 1px solid rgba(255,255,255,.1); }
.home-hero__band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-hero__band div.item { display: flex; gap: .75rem; align-items: center; padding: 1.2rem 0; border-right: 1px solid rgba(255,255,255,.1); font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.9); padding-left: 1rem; }
.home-hero__band div.item:first-child { padding-left: 0; }
.home-hero__band div.item:last-child { border-right: 0; }
.home-hero__band .icon { color: var(--c-bordeaux-accent); font-size: 1.3rem; }
@media (max-width: 1024px) { .home-hero__band .container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .home-hero { min-height: 760px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(20,20,20,.78), rgba(20,20,20,.32)); }
  .home-diamond { width: 120px; height: 120px; right: 8%; top: 20%; }
}

/* À la une */
.spotlight { display: grid; grid-template-columns: 1.28fr .72fr; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(142,27,27,.1); background: #fff; box-shadow: 0 12px 34px rgba(45,45,45,.10); }
.spotlight__media { position: relative; display: block; min-height: 430px; background: var(--c-bg); overflow: hidden; }
.spotlight__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.spotlight__media:hover img { transform: scale(1.02); }
.spotlight__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 50%, transparent); }
.spotlight__badge { position: absolute; left: 1.75rem; bottom: 1.75rem; z-index: 2; background: var(--c-bordeaux-main); color: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.spotlight__body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.spotlight__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.25; }
.spotlight__body p { color: rgba(45,45,45,.72); }
.spotlight__date { display: flex; gap: .5rem; align-items: center; font-size: .78rem; color: rgba(45,45,45,.55); margin-bottom: 1.75rem; }
@media (max-width: 1024px) { .spotlight { grid-template-columns: 1fr; } .spotlight__media { min-height: 300px; } .spotlight__body { padding: 1.75rem; } }

/* Bandeau chiffres */
.metrics { background: var(--c-bordeaux-main); color: #fff; }
.metrics .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics .item { padding: 2rem 0; display: flex; align-items: center; justify-content: center; gap: 1rem; border-right: 1px solid rgba(255,255,255,.2); }
.metrics .item:last-child { border-right: 0; }
.metrics .icon { font-size: 1.75rem; color: rgba(255,255,255,.75); }
.metrics .value { font-family: var(--font-title); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; margin: 0; }
.metrics .label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: rgba(255,255,255,.75); margin: .5rem 0 0; }
@media (max-width: 1024px) { .metrics .container { grid-template-columns: repeat(2, 1fr); } .metrics .item:nth-child(2) { border-right: 0; } }

/* Bibliothèque & outils */
.library { display: grid; grid-template-columns: 1.45fr .8fr; gap: 3rem; }
.books { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; margin-bottom: 1.75rem; }
.home-book { text-decoration: none; }
.home-book-cover { height: 156px; padding: 16px 12px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, var(--c-anthracite), var(--c-bordeaux-main)); color: #fff; border-radius: 4px; box-shadow: 5px 7px 12px rgba(45,45,45,.2); transition: transform .3s ease; }
.home-book:hover .home-book-cover { transform: translateY(-4px); }
.home-book:nth-child(even) .home-book-cover { background: linear-gradient(145deg, #655550, var(--c-anthracite)); }
.home-book-cover span { font-family: var(--font-title); font-size: 12px; }
.home-book-cover strong { font-family: var(--font-title); font-size: 13px; line-height: 1.35; }
.home-book-cover small { font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.home-book p { font-size: 11px; font-weight: 700; line-height: 1.3; margin: 9px 0 0; color: var(--c-text); }
.home-tools { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 28px; background: #fff; box-shadow: 0 7px 24px rgba(45,45,45,.06); }
.home-tools a { display: flex; gap: .75rem; align-items: center; border-bottom: 1px solid rgba(142,27,27,.1); padding: .8rem 0; font-size: .9rem; font-weight: 600; color: var(--c-anthracite); text-decoration: none; }
.home-tools a:hover { color: var(--c-bordeaux-main); }
.home-tools a .icon:last-child { margin-left: auto; }
@media (max-width: 1024px) { .library { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .books { grid-template-columns: repeat(2, 1fr); } }

/* Vision */
.vision { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: stretch; }
.vision img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--radius); }
.vision__body { display: flex; flex-direction: column; justify-content: center; }
.vision__body h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.2; }
.vision__body p { color: rgba(45,45,45,.75); max-width: 36rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin-top: 2rem; }
.values div { display: flex; align-items: center; gap: .75rem; font-size: .9rem; font-weight: 700; color: var(--c-anthracite); }
.values .icon { color: var(--c-bordeaux-main); }
@media (max-width: 1024px) { .vision { grid-template-columns: 1fr; } }

/* Témoignages */
.testimonial { padding: 1.75rem; margin: 0; }
.testimonial .icon { color: var(--c-bordeaux-main); font-size: 1.6rem; margin-bottom: 1rem; }
.testimonial blockquote { margin: 0 0 1.5rem; font-size: .9rem; color: rgba(45,45,45,.75); line-height: 1.7; }
.testimonial .name { font-weight: 700; font-size: .9rem; color: var(--c-bordeaux-dark); margin: 0; }
.testimonial .meta { font-size: .75rem; color: rgba(45,45,45,.55); margin: .25rem 0 0; }
.partners-text { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; align-items: center; padding: 2.5rem 0; }
.partners-text p { text-align: center; font-weight: 700; letter-spacing: .03em; font-size: .9rem; color: rgba(45,45,45,.45); margin: 0; }
@media (max-width: 768px) { .partners-text { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   PAGES INTÉRIEURES
   ========================================================= */
.page-hero { background: linear-gradient(135deg, var(--theme-dark), var(--c-bordeaux-dark)); color: #fff; padding: 4rem 0 3.5rem; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: 8%; top: 50%; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,.15); transform: translateY(-50%) rotate(45deg); }
.page-hero h1 { color: #fff; margin: 0; max-width: 52rem; }
.page-hero .eyebrow { color: rgba(255,255,255,.75); }
.page-hero p.lead { color: rgba(255,255,255,.85); max-width: 46rem; margin: 1rem 0 0; }
.breadcrumbs { font-size: .78rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.breadcrumbs a { color: rgba(255,255,255,.85); text-decoration: none; }

.content-area { padding: 3.5rem 0 5rem; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2 { border-bottom: 2px solid var(--c-bordeaux-main); padding-bottom: .4rem; margin-top: 2.5rem; margin-bottom: 1.25rem; }
.entry-content h3 { color: var(--c-steel-dark); margin-top: 2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content blockquote { border-left: 4px solid var(--c-bordeaux-main); background: var(--c-conseil-bg); margin: 1.5rem 0; padding: 1rem 1.5rem; border-radius: 0 10px 10px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .92rem; background: #fff; }
.entry-content th { background: var(--c-anthracite); color: #fff; text-align: left; padding: .7rem .9rem; }
.entry-content td { padding: .7rem .9rem; border-bottom: 1px solid var(--c-border); }
.entry-content img { border-radius: 10px; }
.entry-content .wp-block-button__link { background: var(--c-bordeaux-main); border-radius: 8px; font-weight: 700; }
.entry-content .alignwide { max-width: 1100px; }
.entry-content .alignfull { width: 100vw; position: relative; left: 50%; margin-left: -50vw; max-width: none; }

/* Encadrés éditoriaux (classes à ajouter dans l'éditeur : encadre-conseil / encadre-info / encadre-retenir) */
.encadre-conseil, .encadre-info, .encadre-retenir { padding: 1.25rem 1.5rem; border-radius: 12px; margin: 1.5rem 0; border-left: 4px solid; }
.encadre-conseil { background: var(--c-conseil-bg); border-color: var(--c-bordeaux-main); }
.encadre-info { background: var(--c-info-bg); border-color: var(--c-steel-main); }
.encadre-retenir { background: var(--c-retenir-bg); border-color: #C9A227; }

/* Article */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }
.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.single-thumb img { width: 100%; max-height: 480px; object-fit: cover; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: rgba(255,255,255,.8); margin-top: 1rem; align-items: center; }
.sidebar .widget, .side-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.sidebar .widget-title, .side-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px solid var(--c-border); font-size: .9rem; }
.side-card--cta { background: linear-gradient(145deg, var(--c-anthracite), var(--c-bordeaux-main)); color: #fff; border: 0; }
.side-card--cta h3, .side-card--cta p { color: #fff; }
.side-card--cta .btn { background: #fff; color: var(--c-bordeaux-main); }
.post-tags a { display: inline-block; background: var(--c-beige); color: var(--c-anthracite); padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; margin: 0 .3rem .3rem 0; text-decoration: none; }
@media (max-width: 1024px) { .single-layout { grid-template-columns: 1fr; } }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters a { padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--c-border); background: #fff; color: var(--c-anthracite); font-size: .82rem; font-weight: 600; text-decoration: none; }
.filters a.is-active, .filters a:hover { background: var(--c-bordeaux-main); border-color: var(--c-bordeaux-main); color: #fff; }

/* Fiches techniques (modèles, terrains, réalisations) */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.spec { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 1rem; }
.spec .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); font-weight: 700; margin: 0; }
.spec .v { font-family: var(--font-title); color: var(--c-bordeaux-dark); font-size: 1.15rem; margin: .25rem 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.rooms-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 12px; overflow: hidden; }
.rooms-table td { padding: .55rem .9rem; border-bottom: 1px solid var(--c-border); }
.rooms-table td:last-child { text-align: right; font-weight: 700; }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--c-beige); color: var(--c-anthracite); }
.badge--disponible, .badge--termine { background: #E3EFE4; color: var(--c-steel-dark); }
.badge--reserve, .badge--en-cours { background: #FDF0DC; color: #8A5A00; }
.badge--vendu { background: #F5E1E1; color: var(--c-bordeaux-dark); }
.price { font-family: var(--font-title); color: var(--c-bordeaux-main); font-weight: 700; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7em; height: .7em; border: 2px solid var(--c-steel-main); transform: rotate(45deg); }

/* Pagination */
.pagination { margin-top: 3rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers { padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--c-border); background: #fff; text-decoration: none; color: var(--c-anthracite); font-weight: 600; font-size: .85rem; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--c-bordeaux-main); color: #fff; border-color: var(--c-bordeaux-main); }

/* Formulaires */
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=url], textarea, select {
  font-family: var(--font-body); font-size: 1rem; padding: .75rem 1rem; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: var(--c-steel-main); outline: none; }
.search-form { display: flex; gap: .5rem; }

/* Commentaires */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment-body { background: #fff; border: 1px solid var(--c-border); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.comment-form input[type=submit] { background: var(--c-bordeaux-main); color: #fff; border: 0; padding: .8rem 1.4rem; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* =========================================================
   FOOTER
   ========================================================= */
.partners { padding: 3rem 0; background: var(--c-bg); border-top: 1px solid var(--c-border); }
.partners .label { text-align: center; font-size: .75rem; font-weight: 700; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2rem; }
.partners .logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3rem; }
.partners .logos img { height: 72px; width: auto; object-fit: contain; transition: transform .3s ease; }
.partners .logos a:hover img { transform: scale(1.05); }

.site-footer { background: #2C2C2C; color: #fff; padding: 4rem 0 2rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo img { height: 96px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-style: italic; font-size: .9rem; opacity: .8; }
.site-footer p { color: rgba(255,255,255,.8); font-size: .875rem; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer ul a, .footer-contact a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .875rem; font-weight: 500; }
.site-footer ul a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.85); }
.footer-contact .row { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .row .icon { margin-top: .3em; opacity: .8; }
.footer-contact .btn { margin-top: .75rem; width: fit-content; color: #fff; }
.socials { display: flex; gap: .75rem; margin-top: 1.25rem; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.3); color: #fff; transition: all .2s ease; }
.socials a:hover { background: var(--c-bordeaux-main); border-color: var(--c-bordeaux-main); transform: scale(1.08); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.5rem; text-align: center; font-size: .85rem; }
.footer-bottom nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; margin-bottom: .75rem; }
.footer-bottom .copy { opacity: .6; margin: 0; }
@media (max-width: 1024px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr; } }

/* Réseaux sociaux flottants */
.floating-socials { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 40; display: flex; flex-direction: column; gap: .75rem; }
.floating-socials a { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); transition: transform .2s ease; font-size: 1.2rem; }
.floating-socials a:hover { transform: scale(1.1); color: #fff; }
.floating-socials .fb { background: #1877F2; }
.floating-socials .ig { background: linear-gradient(45deg, #833AB4, #E1306C, #F77737); }
.floating-socials .x { background: #000; }
.floating-socials .li { background: #0A66C2; }
@media (max-width: 768px) { .floating-socials { display: none; } }

/* Retour en haut */
.to-top { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-bordeaux-main); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.to-top.is-visible { display: inline-flex; }
.to-top .icon { transform: rotate(-90deg); }

/* Gabarit pleine largeur (simulateurs, constructeurs de pages) */
.page-template-template-fullwidth .site-main { padding-top: var(--header-h); }
.fullwidth-content > .entry-content > * + * { margin-top: 0; }
