/*
Theme Name:   SCI Le Chalet Piluce
Theme URI:    https://scilechalet.com
Author:       NSANA CREATIVE
Author URI:   https://scilechalet.com
Description:  Thème sur mesure pour la SCI Le Chalet Piluce (Kribi, Cameroun) — Immobilier de prestige & Tourisme de rêve. One-page d'accueil (Hero double pôle, Mot du DG, 2 pôles, Expertise, Réalisations filtrables, Témoignages, Contact unifié), réalisations et témoignages gérables dans l'admin, demandes de contact et newsletter enregistrées.
Version:      1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPLv2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  chalet-piluce
Tags:         one-page, custom-logo, custom-menu, featured-images, translation-ready
*/

/* Les styles principaux sont dans assets/css/main.css (repris du prototype HTML).
   Ce fichier ne contient que les compléments propres à WordPress. */

/* Barre d'admin WordPress : décale le header sticky */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* Menus WordPress : état actif sur les pages internes */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--forest); }

/* Logo personnalisé */
.brand-logo .custom-logo-link { display: inline-flex; }
.brand-logo img, .brand-logo .custom-logo { max-height: 56px; width: auto; }

/* Retours formulaire */
.form-feedback.is-error { background: #FDECEC; color: #9B1C1C; }
.scp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .65; cursor: progress; }

/* Pages internes (page.php, single.php, index.php, 404.php) */
.page-hero {
  background: linear-gradient(135deg, var(--forest-deep), var(--forest-dark));
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.page-hero .eyebrow { background: rgba(144, 196, 69, 0.2); color: var(--lime); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 1rem 0 0;
  color: #fff;
}
.page-hero p { color: rgba(255,255,255,.78); margin: .75rem 0 0; max-width: 680px; }
.entry-wrap { padding: 4rem 0 5rem; }
.entry-content { max-width: 820px; margin: 0 auto; color: var(--slate); font-size: 1.05rem; line-height: 1.75; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.25; margin: 2rem 0 .75rem; }
.entry-content a { color: var(--forest); text-decoration: underline; }
.entry-content img { border-radius: var(--radius-md); height: auto; }
.entry-content .alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.entry-content .alignfull { max-width: none; }
.entry-content blockquote { border-left: 4px solid var(--lime); margin: 1.5rem 0; padding: .5rem 1.25rem; background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-thumb { max-width: 1000px; margin: 0 auto 2.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.entry-thumb img { width: 100%; display: block; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.post-card-body { padding: 1.4rem; }
.post-card-body h2 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 .5rem; }
.post-card-body h2 a { color: var(--ink); }
.post-card-body p { color: var(--slate); font-size: .95rem; margin: 0 0 1rem; }
.pagination-wrap { margin-top: 3rem; text-align: center; }
.pagination-wrap .page-numbers { display: inline-block; padding: .5rem .9rem; margin: 0 .2rem; border-radius: var(--radius-pill); border: 1px solid var(--border); color: var(--ink); }
.pagination-wrap .page-numbers.current { background: var(--forest); color: #fff; border-color: var(--forest); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 1rem; top: 1rem; z-index: 100000; background: #fff; padding: .75rem 1rem; border-radius: 8px; }

/* ===== v1.1 — Compte, options, boutons flottants ===== */
.topbar-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-account { display: flex; align-items: center; gap: .9rem; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.18); }
.topbar-account .topbar-item { color: rgba(255,255,255,.88); font-weight: 600; }
.topbar-account .topbar-item:hover { color: var(--lime); }
.topbar-account .topbar-login { background: var(--lime); color: var(--forest-deep); padding: .2rem .75rem; border-radius: var(--radius-pill); }
.topbar-account .topbar-login:hover { background: #fff; color: var(--forest-deep); }
.topbar-account svg { width: 14px; height: 14px; }

.nav-account { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--forest); background: #fff; transition: background .2s, color .2s; }
.nav-account:hover { background: var(--forest); color: #fff; }
.scp-no-topbar .nav-account { display: inline-flex; }
@media (max-width: 768px) { .nav-account { display: inline-flex; } }

.scp-no-sticky .header { position: relative; top: auto; }

.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--lime); color: var(--forest-deep); }

.scp-whatsapp { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s; }
.scp-whatsapp:hover { transform: scale(1.07); color: #fff; }
.scp-backtop { position: fixed; right: 1.25rem; bottom: 5.4rem; z-index: 900; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--forest); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.scp-backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
body:not(:has(.scp-whatsapp)) .scp-backtop { bottom: 1.25rem; }

.scp-map { margin-top: 2.5rem; }
.scp-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; }
.scp-page-content .entry-content { max-width: none; }

/* ===== v1.2 — Pages des pôles ===== */
.hero-caption-link { display: inline-flex; margin-top: .6rem; color: var(--lime); font-weight: 700; font-size: .9rem; }
.hero-caption-link:hover { color: #fff; }
.pole-title a { color: inherit; }
.pole-title a:hover { color: var(--forest); }
.pole-media > a { display: block; height: 100%; }

.pole-hero { position: relative; color: #fff; padding: 4.5rem 0 8rem; background: linear-gradient(115deg, rgba(11,36,10,.94) 0%, rgba(14,79,7,.82) 45%, rgba(11,36,10,.35) 100%), var(--pole-bg) center / cover no-repeat; }
.pole-hero--tourisme { background: linear-gradient(115deg, rgba(11,36,10,.92) 0%, rgba(22,119,12,.7) 50%, rgba(11,36,10,.25) 100%), var(--pole-bg) center / cover no-repeat; }
.pole-hero-inner { max-width: var(--container); }
.pole-hero .eyebrow { background: rgba(144,196,69,.2); color: var(--lime); }
.pole-hero-title { font-family: var(--font-display); font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 1rem 0 1rem; max-width: 760px; color: #fff; }
.pole-hero-intro { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,.84); max-width: 640px; margin: 0 0 1.75rem; }
.pole-breadcrumb { display: flex; gap: .5rem; flex-wrap: wrap; font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 1.25rem; }
.pole-breadcrumb a { color: rgba(255,255,255,.85); }
.pole-breadcrumb a:hover { color: var(--lime); }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { background: #fff; color: var(--forest-deep); border-color: #fff; }

.pole-search { position: relative; z-index: 3; margin-top: -5rem; margin-bottom: 1rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.5rem 1.75rem 1.6rem; border: 1px solid var(--border); }
.pole-search-head { display: flex; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pole-search-head strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--forest-deep); }
.pole-search-head span { color: var(--muted); font-size: .9rem; }
.pole-search .sci-filters { margin: 0 !important; padding: 0; border: 0; box-shadow: none; }
.booking-search { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; align-items: end; }
.booking-search-field label { display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .35rem; }
.booking-search-field input, .booking-search-field select { width: 100%; height: 50px; box-sizing: border-box; padding: 0 .9rem; border-radius: 14px; border: 1px solid #d6e0d2; background: var(--surface); font: inherit; color: var(--ink); }
.booking-search-field input:focus, .booking-search-field select:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(22,119,12,.12); background: #fff; }
.booking-search-submit { justify-content: center; padding-top: .85rem; padding-bottom: .85rem; }
.booking-search-error { margin: .85rem 0 0; color: #9B1C1C; font-weight: 600; font-size: .9rem; }

.pole-services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.pole-service { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem 1.35rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out), box-shadow .25s; }
.pole-service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.section-surface .pole-service { background: #fff; }
.pole-service h3 { font-family: var(--font-display); font-size: 1.08rem; margin: 1rem 0 .35rem; color: var(--ink); }
.pole-service-tagline { color: var(--forest); font-weight: 600; font-size: .86rem; margin: 0 0 .6rem; }
.pole-service p { color: var(--slate); font-size: .93rem; line-height: 1.6; margin: 0; }

.pole-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; counter-reset: none; position: relative; }
.pole-steps li { position: relative; background: var(--surface); border-radius: var(--radius-md); padding: 1.5rem 1.35rem; }
.pole-steps li::after { content: ""; position: absolute; top: 2.35rem; right: -1.1rem; width: 1rem; height: 2px; background: var(--lime); }
.pole-steps li:last-child::after { display: none; }
.pole-step-num { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: #fff; font-family: var(--font-display); font-weight: 800; align-items: center; justify-content: center; }
.pole-steps h3 { font-family: var(--font-display); font-size: 1.05rem; margin: .9rem 0 .4rem; }
.pole-steps p { color: var(--slate); font-size: .92rem; line-height: 1.6; margin: 0; }

.pole-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.pole-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: .75rem; overflow: hidden; }
.pole-faq summary { cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.25rem; font-weight: 700; color: var(--ink); position: relative; }
.pole-faq summary::-webkit-details-marker { display: none; }
.pole-faq summary::after { content: "+"; position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pole-faq details[open] summary::after { content: "–"; background: var(--lime); color: var(--forest-deep); }
.pole-faq details p { margin: 0; padding: 0 1.25rem 1.15rem; color: var(--slate); line-height: 1.65; }

.pole-empty { text-align: center; background: #fff; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); padding: 2.25rem 1.5rem; }
.pole-empty h3 { font-family: var(--font-display); margin: 0 0 .5rem; }
.pole-empty p { color: var(--slate); margin: 0 auto 1.1rem; max-width: 560px; }
.pole-note { margin: 1.5rem 0 0; text-align: center; color: var(--slate); font-size: .9rem; }

@media (max-width: 1024px) {
  .pole-services-grid, .pole-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pole-steps li::after { display: none; }
  .pole-faq-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .pole-hero { padding: 3rem 0 6.5rem; }
  .pole-search { margin-top: -4rem; padding: 1.2rem; }
  .pole-services-grid, .pole-steps { grid-template-columns: 1fr; }
}
