/*
Theme Name: Cession Pro
Theme URI: https://www.cession-pro.com
Description: Thème sur mesure de Cession Pro • C.H.R & Commerce (île de Ré). Fonctionne avec l'extension « Cession Pro – VisualQie ».
Version: 0.1.10
Requires at least: 6.5
Requires PHP: 8.1
Author: Cession Pro
Text Domain: cessionpro
License: GPL-2.0-or-later
*/

/* ------------------------------------------------------------------ */
/* Polices (hébergées sur le site, aucun appel à Google)               */
/* ------------------------------------------------------------------ */
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/Montserrat-Regular.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/Montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/Montserrat-Bold.woff2") format("woff2"); }

/* ------------------------------------------------------------------ */
/* Charte                                                              */
/* ------------------------------------------------------------------ */
:root {
	--cp-rouge: #E71822;
	--cp-rouge-fonce: #C3121B;
	--cp-anthracite: #4E4F50;
	--cp-encre: #2A2B2C;
	--cp-gris: #5E5F60;
	--cp-chaux: #F5F3EF;
	--cp-filet: #E4E1DB;
	--cp-bord: #D5D2CC;
	--cp-placeholder: #DEDBD5;
	--cp-blanc: #FFFFFF;
	--cp-max: 1240px;
	--cp-gouttiere: 24px;
	--cp-radius: 6px;
	--cp-radius-s: 4px;
	--cp-font: "Gotham", "Montserrat", system-ui, sans-serif;
	--cp-sigle: 90px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cp-blanc); color: var(--cp-encre); font-family: var(--cp-font); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cp-encre); text-underline-offset: 3px; }
a:hover { color: var(--cp-rouge); }
:focus-visible { outline: 3px solid var(--cp-rouge); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3vw, 32px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--cp-blanc); padding: 12px 16px; }

.cp-container { max-width: var(--cp-max); margin: 0 auto; padding-left: var(--cp-gouttiere); padding-right: var(--cp-gouttiere); }
.cp-section { padding: 80px 0; }
.cp-section--chaux { background: var(--cp-chaux); }
.cp-section--sombre { background: var(--cp-anthracite); color: var(--cp-blanc); }
.cp-section--sombre a:not(.cp-btn) { color: var(--cp-blanc); }
.cp-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.cp-section__head h2 { margin: 0 0 4px; }
.cp-section__head p { margin: 0; color: var(--cp-gris); }
.cp-surtitre { display: block; font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--cp-rouge); text-transform: uppercase; margin-bottom: 8px; }
.cp-lead { font-size: 19px; color: var(--cp-gris); max-width: 680px; }
.cp-link { font-weight: 600; }

/* Boutons */
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--cp-radius-s); font: 600 15px/1.2 var(--cp-font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.cp-btn--primary { background: var(--cp-rouge); color: var(--cp-blanc); font-weight: 700; }
.cp-btn--primary:hover { background: var(--cp-rouge-fonce); color: var(--cp-blanc); }
.cp-btn--secondary { background: var(--cp-blanc); color: var(--cp-encre); border-color: var(--cp-anthracite); }
.cp-btn--secondary:hover { background: var(--cp-encre); color: var(--cp-blanc); }
.cp-btn--dark { background: var(--cp-encre); color: var(--cp-blanc); }
.cp-btn--dark:hover { background: var(--cp-anthracite); color: var(--cp-blanc); }
.cp-btn--ghost { background: transparent; color: var(--cp-blanc); border-color: var(--cp-blanc); }
.cp-btn--ghost:hover { background: var(--cp-blanc); color: var(--cp-encre); }
.cp-btn svg { flex: 0 0 auto; }
.cp-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border-radius: 3px; background: var(--cp-blanc); color: var(--cp-encre); text-transform: uppercase; }
.cp-badge--rouge { background: var(--cp-rouge); color: var(--cp-blanc); }
.cp-badge--chaux { background: var(--cp-chaux); }
.cp-chip { display: inline-block; border: 1px solid var(--cp-bord); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--cp-blanc); }
.cp-chip:hover { border-color: var(--cp-encre); color: var(--cp-encre); }
.cp-chip.is-active { background: var(--cp-encre); border-color: var(--cp-encre); color: var(--cp-blanc); }
.cp-placeholder { background: var(--cp-placeholder); display: flex; align-items: center; justify-content: center; color: var(--cp-anthracite); font-size: 13px; text-align: center; padding: 12px; }

/* ------------------------------------------------------------------ */
/* En-tête                                                             */
/* ------------------------------------------------------------------ */
.cp-topbar { background: var(--cp-anthracite); color: var(--cp-blanc); font-size: 13px; }
.cp-topbar .cp-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.cp-topbar a { color: var(--cp-blanc); text-decoration: none; }
.cp-topbar a:hover { text-decoration: underline; color: var(--cp-blanc); }
.cp-topbar__right { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.cp-topbar__tel { font-weight: 600; }

.cp-header { background: var(--cp-blanc); border-bottom: 1px solid var(--cp-filet); position: relative; z-index: 50; }
.cp-header__top { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 16px; padding-bottom: 16px; }
.cp-header__actions { display: flex; align-items: center; gap: 20px; }
.cp-header__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; }
.cp-nav { border-top: 1px solid var(--cp-filet); }
.cp-nav__panel { display: block; }

.cp-brand { display: flex; align-items: center; gap: calc(var(--cp-sigle) * .18); text-decoration: none; flex: 0 0 auto; }
.cp-brand__sigle { height: var(--cp-sigle); width: auto; }
.cp-brand__words { display: inline-flex; flex-direction: column; gap: calc(var(--cp-sigle) * .09); width: max-content; }
/* « CESSION PRO » s'étire exactement sur la largeur de la mention en dessous. */
.cp-brand__name { display: flex; justify-content: space-between; font-size: calc(var(--cp-sigle) * .30); line-height: 1; font-weight: 500; color: var(--cp-anthracite); }
.cp-brand__name .pro { color: var(--cp-rouge); font-weight: 600; }
.cp-brand__tag { font-size: max(8px, calc(var(--cp-sigle) * .125)); line-height: 1; letter-spacing: .12em; color: var(--cp-gris); white-space: nowrap; text-transform: uppercase; }

.cp-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; list-style: none; margin: 0 0 0 -12px; padding: 0; font-size: 15px; font-weight: 600; }
.cp-nav__list > li { position: relative; }
.cp-nav__list a { display: block; padding: 14px 12px; text-decoration: none; }
.cp-nav__list > li > a { border-bottom: 3px solid transparent; }
.cp-nav__list > li > a:hover { border-bottom-color: var(--cp-rouge); color: var(--cp-encre); }
.cp-nav__list .current-menu-item > a, .cp-nav__list .current-menu-ancestor > a, .cp-nav__list .current-menu-parent > a { color: var(--cp-rouge); }
.cp-nav__list .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--cp-blanc); border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); box-shadow: 0 12px 28px rgba(0,0,0,.08); font-weight: 500; }
.cp-nav__list .sub-menu a { padding: 10px 12px; border-radius: var(--cp-radius-s); }
.cp-nav__list .sub-menu a:hover { background: var(--cp-chaux); }
/* Dans les sous-menus, seule la page affichée est en rouge (pas les rubriques de l'annonce consultée). */
.cp-nav__list .sub-menu .current-menu-parent > a, .cp-nav__list .sub-menu .current-post-parent > a, .cp-nav__list .sub-menu .current-menu-ancestor > a { color: var(--cp-encre); }
.cp-nav__list > li:hover > .sub-menu, .cp-nav__list > li:focus-within > .sub-menu { display: block; }
.cp-burger { display: none; width: 48px; height: 48px; border: 1px solid var(--cp-bord); border-radius: var(--cp-radius-s); background: var(--cp-blanc); align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 1000px) {
	.cp-burger { display: inline-flex; }
	.cp-header__tel, .cp-header__cta { display: none; }
	.cp-nav { border-top: 0; }
	.cp-nav__panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cp-blanc); border-top: 1px solid var(--cp-filet); border-bottom: 1px solid var(--cp-filet); padding-top: 8px; padding-bottom: 24px; box-shadow: 0 16px 32px rgba(0,0,0,.08); max-height: calc(100vh - 120px); overflow-y: auto; }
	.cp-nav.is-open .cp-nav__panel { display: block; }
	.cp-nav__list { flex-direction: column; align-items: stretch; font-size: 16px; margin: 0; }
	.cp-nav__list a { padding: 14px 4px; border-bottom: 1px solid var(--cp-filet); }
	.cp-nav__list > li > a { border-bottom: 1px solid var(--cp-filet); }
	.cp-nav__list .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
}
@media (max-width: 560px) {
	:root { --cp-gouttiere: 16px; }
	.cp-topbar__adresse { display: none; }
	.cp-brand__tag { letter-spacing: .06em; }
}

/* ------------------------------------------------------------------ */
/* Accueil                                                             */
/* ------------------------------------------------------------------ */
.cp-hero { position: relative; background: #3A3B3C; color: var(--cp-blanc); overflow: hidden; }
.cp-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-hero__bg + .cp-hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.72) 0%, rgba(20,20,20,.45) 55%, rgba(20,20,20,.2) 100%); }
.cp-hero .cp-container { position: relative; padding-top: 112px; padding-bottom: 88px; }
.cp-hero__kicker { font-size: 14px; letter-spacing: .16em; font-weight: 600; margin: 0 0 20px; text-transform: uppercase; }
.cp-hero h1 { max-width: 820px; margin-bottom: 20px; }
.cp-hero__text { font-size: 19px; max-width: 640px; color: #EDEBE7; }

.cp-search { margin-top: 32px; background: var(--cp-blanc); color: var(--cp-encre); border-radius: var(--cp-radius); padding: 24px; max-width: 1080px; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.cp-search__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cp-search__tab { font: 600 14px var(--cp-font); padding: 10px 16px; min-height: 44px; border-radius: var(--cp-radius-s); border: 1px solid var(--cp-bord); background: var(--cp-blanc); color: var(--cp-encre); cursor: pointer; }
.cp-search__tab[aria-selected="true"] { background: var(--cp-anthracite); border-color: var(--cp-anthracite); color: var(--cp-blanc); }
@media (max-width: 560px) {
	.cp-search { padding: 16px; }
	.cp-search__tabs { display: grid; grid-template-columns: 1fr 1fr; }
	.cp-search__tab { padding: 8px; font-size: 13px; }
	.cp-hero .cp-container { padding-top: 56px; padding-bottom: 48px; }
	.cp-search__fields .cp-btn { width: 100%; }
}
.cp-search__fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.cp-search__fields .cp-field { flex: 1 1 180px; margin: 0; }
.cp-search__fields .cp-btn { flex: 0 0 auto; }

.cp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cp-tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); background: var(--cp-blanc); min-height: 210px; text-decoration: none; transition: border-color .15s, transform .15s; }
.cp-tile:hover { border-color: var(--cp-encre); color: var(--cp-encre); }
.cp-tile__kicker { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--cp-gris); }
.cp-tile__title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.cp-tile__text { color: var(--cp-gris); font-size: 15px; }
.cp-tile__more { margin-top: auto; font-weight: 600; }
.cp-tile--chaux { background: var(--cp-chaux); }
.cp-tile--chaux .cp-tile__kicker { color: var(--cp-rouge); }
.cp-tile--sombre { background: var(--cp-anthracite); border-color: var(--cp-anthracite); color: var(--cp-blanc); }
.cp-tile--sombre .cp-tile__kicker, .cp-tile--sombre .cp-tile__text { color: #EDEBE7; }
.cp-tile--sombre:hover { color: var(--cp-blanc); border-color: var(--cp-encre); background: var(--cp-encre); }

.cp-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cp-split > * { flex: 1 1 420px; min-width: 0; }
.cp-split__media { border-radius: var(--cp-radius); overflow: hidden; min-height: 320px; }
.cp-split__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.cp-cta-band .cp-container { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.cp-cta-band h2 { margin: 0 0 8px; }
.cp-cta-band p { margin: 0; color: #EDEBE7; max-width: 640px; }

.cp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.cp-stat__value { display: block; font-size: 44px; font-weight: 700; color: var(--cp-rouge); line-height: 1; margin-bottom: 6px; }
.cp-stat__label { color: var(--cp-anthracite); }

/* Bandeau de références défilant */
.cp-refband { border-top: 1px solid var(--cp-filet); border-bottom: 1px solid var(--cp-filet); overflow: hidden; }
.cp-refband__track { display: flex; width: max-content; gap: 64px; padding: 36px 32px; align-items: center; animation: cp-defile var(--cp-refband-duree, 45s) linear infinite; }
.cp-refband:hover .cp-refband__track, .cp-refband:focus-within .cp-refband__track { animation-play-state: paused; }
.cp-refband__item { flex: 0 0 220px; height: 110px; display: flex; align-items: center; justify-content: center; }
.cp-refband__item img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.cp-refband__item:hover img, .cp-refband__item:focus img { filter: none; opacity: 1; }
@keyframes cp-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.cp-refband { overflow-x: auto; }
	.cp-refband__track { animation: none; }
	.cp-refband__item[aria-hidden="true"] { display: none; }
}

.cp-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.cp-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.cp-post-card__img, .cp-card__media, .cp-card__body, .cp-card__foot { display: block; }
.cp-card__body, .cp-card__foot { display: flex; }
.cp-post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.cp-post-card__img { aspect-ratio: 3 / 2; border-radius: var(--cp-radius); overflow: hidden; }
.cp-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cp-post-card__title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.cp-post-card__meta { font-size: 13px; color: var(--cp-gris); }

/* ------------------------------------------------------------------ */
/* Cartes annonces                                                     */
/* ------------------------------------------------------------------ */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.cp-card { display: flex; flex-direction: column; border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); overflow: hidden; background: var(--cp-blanc); text-decoration: none; color: var(--cp-encre); transition: border-color .15s, box-shadow .15s; }
.cp-card:hover { border-color: var(--cp-bord); box-shadow: 0 10px 28px rgba(0,0,0,.08); color: var(--cp-encre); }
.cp-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--cp-placeholder); }
.cp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cp-card__badge { position: absolute; bottom: 12px; left: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.cp-card__icons { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.cp-card__icon { width: 34px; height: 34px; border-radius: 50%; background: var(--cp-encre); display: flex; align-items: center; justify-content: center; }
.cp-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cp-card__type { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--cp-rouge); text-transform: uppercase; }
.cp-card__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0; }
.cp-card__meta { display: flex; align-items: center; gap: 6px; color: var(--cp-gris); font-size: 14px; }
.cp-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid #EEECE8; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cp-card__price { font-size: 20px; font-weight: 700; }
.cp-card__price small { font-size: 13px; font-weight: 500; color: var(--cp-gris); }
.cp-card__ref { font-size: 12px; color: var(--cp-gris); white-space: nowrap; }

/* Liste et filtres */
.cp-page-head { padding-top: 40px; padding-bottom: 24px; }
.cp-page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.cp-breadcrumb { font-size: 13px; color: var(--cp-gris); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.cp-breadcrumb a { color: var(--cp-gris); }
.cp-filters { background: var(--cp-chaux); border-radius: var(--cp-radius); padding: 20px; margin-bottom: 32px; }
.cp-filters form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.cp-filters .cp-field { flex: 1 1 170px; margin: 0; }
.cp-filters .cp-check { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; font-size: 14px; }
.cp-results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 20px; color: var(--cp-gris); }
.cp-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cp-empty { padding: 48px 24px; text-align: center; background: var(--cp-chaux); border-radius: var(--cp-radius); }
.cp-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.cp-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--cp-bord); border-radius: var(--cp-radius-s); text-decoration: none; padding: 0 12px; }
.cp-pagination .current { background: var(--cp-encre); color: var(--cp-blanc); border-color: var(--cp-encre); }
.cp-term-intro { max-width: 760px; color: var(--cp-anthracite); }

/* ------------------------------------------------------------------ */
/* Fiche bien                                                          */
/* ------------------------------------------------------------------ */
.cp-fiche__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 20px 0 24px; }
.cp-fiche__head h1 { font-size: clamp(28px, 3.4vw, 36px); margin: 8px 0; }
.cp-fiche__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-fiche__lieu { display: flex; align-items: center; gap: 6px; color: var(--cp-anthracite); }
.cp-iconbtn { width: 44px; height: 44px; border: 1px solid var(--cp-bord); border-radius: var(--cp-radius-s); background: var(--cp-blanc); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--cp-encre); }
.cp-iconbtn:hover { border-color: var(--cp-encre); }

.cp-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 226px 226px; gap: 8px; border-radius: var(--cp-radius); overflow: hidden; }
.cp-gallery__item { position: relative; background: var(--cp-placeholder); border: 0; padding: 0; cursor: zoom-in; overflow: hidden; }
.cp-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cp-gallery__item:hover img { transform: scale(1.02); }
.cp-gallery__item:first-child { grid-row: span 2; }
.cp-gallery__more { position: absolute; inset: 0; background: rgba(42,43,44,.72); color: var(--cp-blanc); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.cp-gallery--4 .cp-gallery__item:nth-child(4) { grid-column: span 2; }
.cp-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 460px; }
.cp-gallery--2 { grid-template-columns: 2fr 1fr; }
.cp-gallery--2 .cp-gallery__item:nth-child(2) { grid-row: span 2; }
.cp-gallery--3 { grid-template-columns: 2fr 1fr; }
@media (max-width: 760px) {
	.cp-gallery, .cp-gallery--2, .cp-gallery--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 110px; }
	.cp-gallery__item:first-child { grid-column: span 2; grid-row: auto; }
	.cp-gallery__item:nth-child(n+4) { display: none; }
	.cp-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 260px; }
	.cp-gallery--2 .cp-gallery__item:nth-child(2) { grid-row: auto; grid-column: span 2; }
}

.cp-medias { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.cp-fiche__body { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; align-items: flex-start; }
.cp-fiche__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.cp-fiche__aside { flex: 1 1 340px; min-width: 0; border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1000px) { .cp-fiche__aside { position: sticky; top: 24px; } }
.cp-fiche__main h2 { font-size: 24px; margin-bottom: 12px; }

.cp-keyfigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); overflow: hidden; }
.cp-keyfig { background: var(--cp-blanc); padding: 18px; box-shadow: 1px 1px 0 var(--cp-filet); }
.cp-keyfig__label { font-size: 12px; color: var(--cp-gris); font-weight: 600; }
.cp-keyfig__value { font-size: 19px; font-weight: 700; line-height: 1.3; }

.cp-table { border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); overflow: hidden; font-size: 15px; }
.cp-table__row { display: flex; flex-wrap: wrap; border-bottom: 1px solid #EEECE8; }
.cp-table__row:last-child { border-bottom: 0; }
.cp-table__row:nth-child(even) { background: #FAF9F7; }
.cp-table__k { flex: 1 1 220px; padding: 12px 18px; color: var(--cp-gris); font-weight: 600; }
.cp-table__v { flex: 2 1 260px; padding: 12px 18px; }
.cp-note { font-size: 13px; color: var(--cp-gris); }
.cp-table__row--full .cp-table__v { flex-basis: 100%; overflow-x: auto; padding-top: 0; }
.cp-lots table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 520px; }
.cp-lots td, .cp-lots th { border: 1px solid var(--cp-filet); padding: 8px 10px; text-align: left; }
.cp-lots tr:first-child td { font-weight: 600; background: var(--cp-chaux); }

.cp-prose { max-width: 760px; }
.cp-prose ul { padding-left: 1.2em; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-tag { border: 1px solid var(--cp-bord); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }

.cp-energy { display: flex; flex-wrap: wrap; gap: 32px; }
.cp-energy__scale { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.cp-energy__bar { display: flex; gap: 3px; align-items: center; }
.cp-energy__bar span { flex: 1; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--cp-encre); }
.cp-energy__bar span.is-current { flex: 1.6; height: 38px; font-size: 15px; outline: 2px solid var(--cp-encre); }

.cp-map { height: 300px; border-radius: var(--cp-radius); overflow: hidden; background: var(--cp-placeholder); }
.cp-map iframe { width: 100%; height: 100%; border: 0; }

.cp-price__label { font-size: 13px; color: var(--cp-gris); font-weight: 600; }
.cp-price__value { font-size: 32px; font-weight: 700; line-height: 1.2; }
.cp-price__net { font-size: 15px; color: var(--cp-encre); margin-top: 6px; }
.cp-price__hon { font-size: 13px; color: var(--cp-anthracite); margin-top: 4px; }
.cp-advisor { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #EEECE8; border-bottom: 1px solid #EEECE8; }
.cp-advisor__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--cp-chaux); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cp-advisor__avatar img { width: 34px; height: auto; }
.cp-advisor__avatar.has-photo { width: 72px; height: 72px; }
.cp-advisor__avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.cp-advisor { align-items: flex-start; }
.cp-advisor__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-advisor__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.cp-advisor__link svg { flex: 0 0 auto; }

/* Équipe (page L'agence) */
.cp-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; margin-top: 24px; }
.cp-team__card { border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); overflow: hidden; display: flex; flex-direction: column; }
.cp-team__photo { aspect-ratio: 4 / 5; background: var(--cp-chaux); }
.cp-team__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.cp-team__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.cp-team__name { font-size: 19px; margin: 0; }
.cp-team__role { color: var(--cp-rouge); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.cp-team__bio { font-size: 15px; color: var(--cp-anthracite); margin: 6px 0; }
.cp-team__bio p { margin: 0 0 .5em; }
.cp-team__link { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.cp-advisor__name { font-weight: 700; display: block; }
.cp-advisor__role { font-size: 13px; color: var(--cp-gris); display: block; }

.cp-retire { background: #FFF6E5; border: 1px solid #F2D49B; border-radius: var(--cp-radius); padding: 16px 20px; margin: 16px 0; }

/* Visionneuse photos */
.cp-lightbox { position: fixed; inset: 0; background: rgba(20,20,20,.94); z-index: 1000; display: none; align-items: center; justify-content: center; }
.cp-lightbox.is-open { display: flex; }
.cp-lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; }
.cp-lightbox__caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #EDEBE7; font-size: 14px; }
.cp-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cp-lightbox button:hover { background: rgba(255,255,255,.25); }
.cp-lightbox__close { top: 16px; right: 16px; }
.cp-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.cp-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ */
/* Formulaires                                                         */
/* ------------------------------------------------------------------ */
.cp-form { display: flex; flex-direction: column; gap: 12px; }
.cp-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-row > .cp-field { flex: 1 1 140px; }
.cp-field { display: flex; flex-direction: column; gap: 5px; }
.cp-field label { font-size: 13px; font-weight: 600; }
.cp-field input, .cp-field select, .cp-field textarea { font: 15px var(--cp-font); color: var(--cp-encre); min-height: 48px; padding: 0 12px; border: 1px solid var(--cp-bord); border-radius: var(--cp-radius-s); background: var(--cp-blanc); width: 100%; }
.cp-field textarea { padding: 10px 12px; min-height: 110px; resize: vertical; }
.cp-field input:focus, .cp-field select:focus, .cp-field textarea:focus { border-color: var(--cp-encre); outline: 2px solid var(--cp-encre); outline-offset: 0; }
.cp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--cp-anthracite); line-height: 1.5; }
.cp-consent input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--cp-rouge); }
.cp-form .cp-btn { width: 100%; }
.cp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cp-notice { padding: 14px 16px; border-radius: var(--cp-radius-s); font-size: 14px; margin-bottom: 12px; }
.cp-notice--ok { background: #EAF6EC; border: 1px solid #A9D8B1; }
.cp-notice--err { background: #FDECEC; border: 1px solid #F3B3B5; }
.cp-form-card { border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); padding: 28px; max-width: 720px; }

/* ------------------------------------------------------------------ */
/* Références (page)                                                   */
/* ------------------------------------------------------------------ */
.cp-logowall { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cp-logowall__item { flex: 0 0 190px; background: var(--cp-blanc); border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cp-logowall__item img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.cp-logowall__item:hover img { filter: none; opacity: 1; }
.cp-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; align-items: start; }
.cp-case { border: 1px solid var(--cp-filet); border-radius: var(--cp-radius); overflow: hidden; display: flex; flex-direction: column; }
.cp-case__img { aspect-ratio: 3 / 2; background: var(--cp-chaux); }
.cp-case__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) { .cp-logowall__item { flex-basis: calc(50% - 7px); } }
.cp-case__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.cp-case__logo { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
.cp-case__meta { font-size: 13px; color: var(--cp-gris); }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ */
/* Pages et articles                                                   */
/* ------------------------------------------------------------------ */
.cp-content { padding-top: 16px; padding-bottom: 80px; }
.cp-content .entry-content { max-width: 800px; }
.cp-content .entry-content > * + * { margin-top: 1em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--cp-radius); }
.entry-content .alignwide { max-width: var(--cp-max); }
.entry-content .wp-block-button__link { background: var(--cp-rouge); color: var(--cp-blanc); border-radius: var(--cp-radius-s); font-weight: 700; padding: 14px 24px; }
.cp-content--wide .entry-content { max-width: none; }

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */
.cp-footer { background: var(--cp-encre); color: #EDEBE7; font-size: 14px; }
.cp-footer a { color: #EDEBE7; text-decoration: none; }
.cp-footer a:hover { color: var(--cp-blanc); text-decoration: underline; }
.cp-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-top: 64px; padding-bottom: 32px; }
.cp-footer__col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.cp-footer__col--brand { flex-basis: 240px; gap: 16px; }
.cp-footer__title { font-weight: 700; color: var(--cp-blanc); }
.cp-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-footer__legal { border-top: 1px solid #45464A; }
.cp-footer__legal .cp-container { padding-top: 20px; padding-bottom: 20px; font-size: 12px; color: #C9C7C2; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Bouton d'appel flottant (mobile) */
.cp-callbar { display: none; }
@media (max-width: 760px) {
	.cp-callbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; gap: 8px; }
	.cp-callbar .cp-btn { flex: 1; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
	body { padding-bottom: 76px; }
}

@media print {
	.cp-topbar, .cp-header, .cp-footer, .cp-callbar, .cp-medias, .cp-fiche__aside form, .cp-iconbtn { display: none !important; }
	.cp-gallery { grid-template-rows: 180px 180px; }
}
