/* =====================================================================
   Teranga Prestige Immo — refonte visuelle (septembre 2026)
   Chargé après style.css. Sélecteurs volontairement plus précis (body …)
   pour primer sur les <style> intégrés aux gabarits de pages.
   ===================================================================== */

html:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body h1, body h2, body h3 { letter-spacing: -0.01em; }
/* Chiffres « alignés » : Playfair dessine par défaut des chiffres bas-de-casse (150+ trop petit) */
body, body h1, body h2, body h3, body [class*="stat"], body [class*="number"], body [class*="price"], body [class*="prix"] { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

/* ---------- Bandeaux photo : voile bleu marine pour garder le texte lisible ---------- */
body .hero,
body .vente-hero, body .location-hero, body .apropos-hero, body .contact-hero,
body .diaspora-hero, body .estimation-hero, body .quartiers-hero,
body .archive-hero, body .tax-hero {
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body .hero {
  background-image:
    linear-gradient(90deg, rgba(21,37,72,.96) 0%, rgba(21,37,72,.86) 40%, rgba(21,37,72,.35) 75%, rgba(21,37,72,.15) 100%),
    url('/wp-content/uploads/tpi-design/tpi-accueil.webp');
  background-position: center 60%;
  padding: 110px 0 90px;
}
body .hero::before { display: none; }
body .hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,.25); }

/* Pages intérieures : voile uniforme, plus léger au centre */
body .vente-hero, body .location-hero, body .apropos-hero, body .contact-hero,
body .diaspora-hero, body .estimation-hero, body .quartiers-hero,
body .archive-hero, body .tax-hero {
  --tpi-veil: linear-gradient(180deg, rgba(21,37,72,.88) 0%, rgba(21,37,72,.72) 55%, rgba(21,37,72,.9) 100%);
}
body .vente-hero      { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-vente.webp'); }
body .location-hero   { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-location.webp'); }
body .apropos-hero    { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-apropos.webp'); }
body .contact-hero    { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-contact.webp'); }
body .diaspora-hero   { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-diaspora.webp'); background-position: center 30%; }
body .estimation-hero { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-estimation.webp'); }
body .quartiers-hero  { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-quartiers.webp'); }
body .archive-hero, body .tax-hero { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-biens.webp'); }
body .diaspora-hero::before, body .estimation-hero::before { opacity: .25; }

/* Téléphones : photos allégées (≈ 35 Ko au lieu de 110) */
@media (max-width: 900px) {
  body .hero {
    background-image:
      linear-gradient(180deg, rgba(21,37,72,.88) 0%, rgba(21,37,72,.62) 55%, rgba(21,37,72,.85) 100%),
      url('/wp-content/uploads/tpi-design/tpi-accueil-m.webp');
    padding: 64px 0 56px;
  }
  body .hero .hero-badge { letter-spacing: 1.5px; font-size: 11px; }
  body .vente-hero      { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-vente-m.webp'); }
  body .location-hero   { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-location-m.webp'); }
  body .apropos-hero    { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-apropos-m.webp'); }
  body .contact-hero    { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-contact-m.webp'); }
  body .diaspora-hero   { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-diaspora-m.webp'); }
  body .estimation-hero { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-estimation-m.webp'); }
  body .quartiers-hero  { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-quartiers-m.webp'); }
  body .archive-hero, body .tax-hero { background-image: var(--tpi-veil), url('/wp-content/uploads/tpi-design/tpi-biens-m.webp'); }
}

/* ---------- Barre de recherche de l'accueil : effet « carte flottante » ---------- */
body .hero .search-bar {
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  border-radius: 14px;
}

/* ---------- Titres de sections ---------- */
body .section-title { font-weight: 600; }
body .section-tag { letter-spacing: 3px; }

/* ---------- Cartes services : relief plus fin, liseré doré au survol ---------- */
body .service-card {
  border: 1px solid rgba(30,52,100,.06);
  border-top: 3px solid transparent;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body .service-card:hover { border-top-color: var(--gold); transform: translateY(-6px); box-shadow: 0 18px 40px rgba(30,52,100,.12); }

/* ---------- « Qui sommes-nous » : vraie photo ---------- */
body .about-img { box-shadow: 0 24px 60px rgba(21,37,72,.18); overflow: visible; align-self: center; border-radius: 10px; }
body .about-photo {
  display: block; width: 100%; height: 460px; object-fit: cover;
  border-radius: 10px;
}
@media (max-width: 1024px) { body .about-photo { height: 320px; } }

/* ---------- Encart « catalogue » quand aucun bien n'est publié ---------- */
.tpi-empty {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(21,37,72,.10); border: 1px solid rgba(30,52,100,.06);
}
.tpi-empty-img {
  min-height: 340px;
  background: var(--navy) url('/wp-content/uploads/tpi-design/tpi-estimation-m.webp') center/cover no-repeat;
}
.tpi-empty-txt { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.tpi-empty-txt h3 { font-family: var(--font-serif); color: var(--navy); font-size: 26px; line-height: 1.25; margin: 6px 0 14px; }
.tpi-empty-txt p { color: var(--gray-700); line-height: 1.75; margin-bottom: 24px; }
.tpi-empty-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .tpi-empty { grid-template-columns: 1fr; }
  .tpi-empty-img { min-height: 200px; }
  .tpi-empty-txt { padding: 28px 22px; }
  .tpi-empty-txt h3 { font-size: 22px; }
  .tpi-empty-cta .btn { width: 100%; justify-content: center; text-align: center; }
}

/* Boutons « Tous les biens à vendre / à louer » : alignés, même largeur sur mobile */
.tpi-btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
@media (max-width: 600px) { .tpi-btn-row .btn { width: 100%; justify-content: center; } }

/* ---------- Formulaires ---------- */
.tpi-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tpi-msg { margin-top: 16px; padding: 14px 16px; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.tpi-ok  { background: #e9f7ef; color: #1d6b3d; border: 1px solid #b7e2c7; }
.tpi-err { background: #fdecec; color: #9b2226; border: 1px solid #f3c0c0; }
body .contact-form form, body .tpi-form { position: relative; }
.tpi-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpi-form .form-group { margin-bottom: 16px; }
.tpi-form .form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 7px; }
.tpi-form input, .tpi-form select, .tpi-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid #dde2ec; border-radius: 8px;
  font: inherit; font-size: 15px; background: #fbfcfe; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.tpi-form input:focus, .tpi-form select:focus, .tpi-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,.18); background: #fff;
}
.tpi-submit { width: 100%; justify-content: center; font-size: 15px; padding: 15px; }
@media (max-width: 600px) { .tpi-form .form-row { grid-template-columns: 1fr; gap: 0; } }
body .form-group input:focus, body .form-group select:focus, body .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(212,168,67,.18);
}
body button[disabled] { opacity: .7; cursor: wait; }

/* Alerte location : champ + bouton côte à côte, empilés sur mobile */
body form.alerte-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0; }
body form.alerte-form .tpi-msg { flex-basis: 100%; }

/* ===================== Audit 05/10/2026 ===================== */
/* Les boutons n'héritent pas de la police par défaut (« Envoyer le message » s'affichait en Arial) */
button, input, select, textarea { font-family: inherit; }

/* Menu élargi (Quartiers, Diaspora, Conseils) : passage au menu « burger » plus tôt pour éviter le débordement */
body .main-nav a { padding-left: 11px; padding-right: 11px; }
@media (max-width: 1180px) {
  body .main-nav { display: none; }
  body .burger { display: flex; }
}

/* Bouton WhatsApp flottant */
.tpi-wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 20px 13px 16px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s, box-shadow .2s;
}
.tpi-wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.28); color: #fff; }
.tpi-wa-float:focus-visible { outline: 3px solid #1E3464; outline-offset: 3px; }
@media (max-width: 768px) {
  .tpi-wa-float { right: 16px; bottom: 16px; padding: 14px; }
  .tpi-wa-float span { display: none; }
}
@media print { .tpi-wa-float { display: none; } }

/* Fiche bien : atouts + biens similaires */
.bs-atouts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; }
.bs-atouts li { background: #f4efe2; color: #1E3464; font-weight: 700; font-size: .85rem; padding: 8px 14px 8px 32px; border-radius: 999px; position: relative; }
.bs-atouts li::before { content: "✓"; position: absolute; left: 13px; color: #8A6514; }
.bs-autres { margin-top: 56px; padding-top: 40px; border-top: 1px solid #eef0f5; }
.bs-autres h2 { font-family: var(--font-serif, 'Playfair Display', serif); color: #1E3464; font-size: 1.5rem; margin: 0 0 22px; }
.bs-autres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bs-autre { display: block; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 22px rgba(30,52,100,.08); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.bs-autre:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30,52,100,.14); }
.bs-autre-img { display: block; aspect-ratio: 16/10; background: #eef0f5; overflow: hidden; }
.bs-autre-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-autre-body { display: block; padding: 14px 16px 16px; }
.bs-autre-body strong { display: block; color: #1E3464; font-size: .98rem; line-height: 1.35; margin-bottom: 6px; }
.bs-autre-body em { font-style: normal; color: #8A6514; font-weight: 700; font-size: .92rem; }
.bs-autres-all { margin: 22px 0 0; text-align: right; }
.bs-autres-all a { color: #1E3464; font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .bs-autres-grid { grid-template-columns: 1fr; } }

/* Accueil : derniers conseils */
.tpi-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tpi-blog-card { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 22px rgba(30,52,100,.08); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tpi-blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(30,52,100,.14); }
.tpi-blog-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: #eef0f5; }
.tpi-blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpi-blog-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.tpi-blog-body strong { font-family: var(--font-serif, 'Playfair Display', serif); color: #1E3464; font-size: 1.15rem; line-height: 1.35; }
.tpi-blog-body span { color: #5b6476; font-size: .93rem; line-height: 1.6; }
.tpi-blog-body em { margin-top: auto; font-style: normal; color: #8A6514; font-weight: 700; font-size: .9rem; }
@media (max-width: 900px) { .tpi-blog-grid { grid-template-columns: 1fr; } }

/* Bouton menu mobile : sans le cadre gris natif du navigateur */
body button.burger { background: none; border: 0; border-radius: 6px; }
body button.burger:focus-visible { outline: 2px solid #D4A843; outline-offset: 2px; }

/* =====================================================================
   Design v4 — 01/11/2026 : finitions « premium »
   (en-tête, bandeau, cartes de biens, services, engagements, animations)
   ===================================================================== */
html:root { --tpi-ease: cubic-bezier(.2, .7, .2, 1); }
html { scroll-padding-top: 90px; }

/* ---------- En-tête : verre dépoli, compactage au défilement, lien actif ---------- */
body .site-header { background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow .3s; }
body.tpi-scrolled .site-header { box-shadow: 0 8px 28px rgba(21,37,72,.12); }
body .header-inner { transition: padding .3s var(--tpi-ease); }
body.tpi-scrolled .header-inner { padding: 8px 0; }
body .logo-icon { transition: width .3s var(--tpi-ease), height .3s var(--tpi-ease); }
body.tpi-scrolled .logo-icon { width: 42px; height: 42px; }
body .main-nav li:not(.nav-cta) a { position: relative; background: transparent; }
body .main-nav li:not(.nav-cta) a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--tpi-ease);
}
body .main-nav li:not(.nav-cta) a:hover, body .main-nav li.current:not(.nav-cta) a { background: transparent; color: var(--navy); }
body .main-nav li:not(.nav-cta) a:hover::after, body .main-nav li.current:not(.nav-cta) a::after { transform: scaleX(1); }
body .nav-cta a { border-radius: 999px !important; box-shadow: 0 6px 18px rgba(212,168,67,.32); transition: transform .2s, box-shadow .2s, background .2s; }
body .nav-cta a:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(212,168,67,.4); }

/* ---------- Boutons ---------- */
body .btn { border-radius: 10px; }
body .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Bandeau d'accueil : plus d'air, titre doré dégradé, entrée en douceur ---------- */
body .hero { padding: 120px 0 110px; }
body .hero-content { max-width: 1020px; }
body .hero h1, body .hero p, body .hero-badge { max-width: 680px; }
body .hero h1 { font-size: clamp(34px, 5.6vw, 66px); line-height: 1.08; }
body .hero h1 em { background: linear-gradient(90deg, #EFD489 0%, #D4A843 55%, #C49A35 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body .hero p { font-size: 18px; line-height: 1.7; }
body .hero-badge { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body .btn-outline-white { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes tpi-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  body .hero .hero-badge, body .hero h1, body .hero p, body .hero-actions, body .hero .search-bar { animation: tpi-up .8s var(--tpi-ease) both; }
  body .hero h1 { animation-delay: .08s; }
  body .hero p { animation-delay: .16s; }
  body .hero-actions { animation-delay: .24s; }
  body .hero .search-bar { animation-delay: .34s; }
}

/* Barre de recherche : élargie (le bouton tient sur la même ligne), sélecteurs avec chevron */
body .hero .search-bar { margin-top: 52px; padding: 22px 24px; border-radius: 16px; gap: 12px; }
body .search-field { min-width: 150px; }
body .search-field select, body .archive-filtres select, body .filtre-group select, body .tpi-form select, body .form-group select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E3464' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 15px; cursor: pointer;
}
body .search-field select { padding: 12px 38px 12px 14px; border-radius: 10px; border-color: #e2e6ef; background-color: #fbfcfe; font-weight: 500; }
body .search-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,.18); background-color: #fff; }
body .search-bar .btn-navy { padding: 13px 26px; border-radius: 10px; }

/* ---------- Bandeau chiffres : séparateurs fins, libellés en capitales ---------- */
body .stats-bar { background: linear-gradient(180deg, #152548 0%, #1A2D59 100%); padding: 34px 0; border-top: 1px solid rgba(212,168,67,.28); }
body .stat-item { position: relative; }
body .stat-item + .stat-item::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: rgba(255,255,255,.12); }
body .stat-number { font-size: 34px; }
body .stat-label { font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; margin-top: 8px; opacity: .72; }
@media (max-width: 1024px) { body .stat-item:nth-child(3)::before { display: none; } }
@media (max-width: 480px) { body .stat-number { font-size: 28px; } body .stat-label { font-size: 11px; letter-spacing: 1px; } }

/* ---------- Titres de sections : filets dorés autour de l'étiquette ---------- */
body .section-header .section-tag::before, body .section-header .section-tag::after {
  content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 12px; opacity: .8;
}
body .about-text .section-tag::before { display: none; }
body .about-text .section-tag::after { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold); vertical-align: middle; margin: 0 12px; opacity: .8; }
body .section { padding: 88px 0; }
@media (max-width: 768px) { body .section { padding: 60px 0; } }

/* ---------- Cartes de biens (accueil, /biens/, Vente, Location, quartiers) ---------- */
body .prop-card, body .bien-card {
  border-radius: 14px; border: 1px solid rgba(30,52,100,.06); box-shadow: 0 6px 22px rgba(30,52,100,.07);
  transition: transform .35s var(--tpi-ease), box-shadow .35s var(--tpi-ease);
}
body .prop-card:hover, body .bien-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(30,52,100,.16); }
body .prop-img, body .bien-img { height: auto !important; aspect-ratio: 4 / 3; }
body .prop-img img, body .bien-img img { transition: transform .8s var(--tpi-ease); }
body .prop-card:hover .prop-img img, body .bien-card:hover .bien-img img { transform: scale(1.06); }
body .prop-img::after, body .bien-img::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; pointer-events: none;
  background: linear-gradient(180deg, rgba(21,37,72,0) 0%, rgba(21,37,72,.5) 100%);
}
body .prop-badge, body .bien-badge { z-index: 1; border-radius: 999px; padding: 6px 13px; font-size: 11px; letter-spacing: 1.2px; top: 14px; left: 14px; }
body .badge-vente, body .bien-badge { background: rgba(21,37,72,.92); color: #fff; }
body .badge-location, body .bien-badge.location { background: var(--gold); color: var(--navy); }
body .bien-badge.meuble { background: #2d8a4e; color: #fff; left: auto; right: 14px; }
body .bien-badge.exclusif { left: auto; right: 14px; }
body .prop-price, body .bien-prix, body .bien-prix-mois {
  z-index: 1; bottom: 14px; right: 14px; background: rgba(255,255,255,.96); color: var(--navy);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
body .bien-prix-mois small { color: #5b6476; }
body .prop-body, body .bien-body { padding: 20px 22px 22px; }
.prop-type, body .bien-type { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
body .prop-title, body .bien-body h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
body .prop-location, body .bien-location { font-size: 13.5px; }
body .prop-features, body .bien-specs { align-items: center; padding-top: 14px; border-top: 1px solid #eef0f5; font-size: 13.5px; }
.prop-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--gold-dark); }
.prop-more::after { content: "→"; transition: transform .25s var(--tpi-ease); }
body .prop-card:hover .prop-more::after { transform: translateX(4px); }

/* ---------- Services : lecture à gauche, icône dorée sur fond marine, liseré au survol ---------- */
body .service-card { text-align: left; padding: 34px 30px 32px; border-radius: 14px; border-top: 1px solid rgba(30,52,100,.06); position: relative; overflow: hidden; }
body .service-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--tpi-ease); }
body .service-card:hover { border-top-color: rgba(30,52,100,.06); transform: translateY(-5px); }
body .service-card:hover::before { transform: scaleY(1); }
body .service-icon { margin: 0 0 20px; width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); box-shadow: 0 8px 18px rgba(30,52,100,.18); }
body .service-icon svg { color: var(--gold); }
body .service-card h3 { font-size: 21px; }
body .service-card p { font-size: 14.5px; color: #5b6476; line-height: 1.75; }

/* ---------- Qui sommes-nous : cadre doré décalé derrière la photo ---------- */
body .about-img { z-index: 0; }
body .about-img::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 2px solid rgba(212,168,67,.45); border-radius: 12px; z-index: -1; }
body .about-badge-float { border-radius: 12px; }
@media (max-width: 1024px) { body .about-img::before { inset: 14px -10px -14px 14px; } }

/* ---------- Engagements : numérotation 01 / 02 / 03 ---------- */
body .section-dark .testimonials-grid { counter-reset: tpi-eng; }
body .section-dark .testi-card { position: relative; counter-increment: tpi-eng; padding: 30px 28px 28px; border-radius: 14px; background: rgba(255,255,255,.04); transition: background .3s, border-color .3s, transform .3s var(--tpi-ease); }
body .section-dark .testi-card::before { content: "0" counter(tpi-eng); display: block; font-family: var(--font-serif); font-size: 42px; line-height: 1; color: rgba(212,168,67,.4); margin-bottom: 14px; font-variant-numeric: lining-nums; }
body .section-dark .testi-card:hover { background: rgba(255,255,255,.08); border-color: rgba(212,168,67,.55); transform: translateY(-4px); }
body .section-dark .testi-text { color: rgba(255,255,255,.82); font-size: 14.5px; margin-bottom: 0; }

/* ---------- Conseils : liseré doré ---------- */
body .tpi-blog-card { border-top: 3px solid var(--gold); border-radius: 14px; }
body .tpi-blog-body em::after { content: ""; }
body .tpi-blog-card:hover .tpi-blog-body em { color: var(--navy); }

/* ---------- Bande dorée : motif discret ---------- */
body .cta-band { position: relative; overflow: hidden; }
body .cta-band::before { content: ""; position: absolute; right: -70px; top: -110px; width: 340px; height: 340px; border-radius: 50%; border: 44px solid rgba(255,255,255,.14); pointer-events: none; }
body .cta-band::after { content: ""; position: absolute; left: -90px; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; border: 30px solid rgba(30,52,100,.08); pointer-events: none; }
body .cta-band .container { position: relative; z-index: 1; }
body .cta-band .btn-navy { border-radius: 999px; box-shadow: 0 10px 26px rgba(21,37,72,.25); }

/* ---------- Contact ---------- */
body .contact-form { border-radius: 16px; border: 1px solid rgba(30,52,100,.06); }
body .contact-item-icon { border-radius: 12px; }

/* ---------- Pied de page ---------- */
body .site-footer { border-top: 4px solid var(--gold); }
body .footer-links a:hover { padding-left: 6px; }

/* ---------- Fiche bien ---------- */
body .bs-aside { border-radius: 16px; border-top: 4px solid var(--gold); }
body .bs-gallery-main { border-radius: 14px; }
body .bs-btn { border-radius: 10px; transition: transform .2s, box-shadow .2s; }
body .bs-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
body .bs-spec { border-radius: 12px; }
body .bs-thumbs img { border-radius: 8px; }

/* ---------- Page 404 ---------- */
.tpi-404-hero { padding: 110px 0 90px; color: #fff; text-align: center; }
.tpi-404-hero .section-tag { color: var(--gold-light); }
.tpi-404-hero h1 { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 54px); line-height: 1.15; margin: 10px 0 16px; }
.tpi-404-hero p { max-width: 560px; margin: 0 auto 30px; font-size: 17px; opacity: .88; line-height: 1.7; }
.tpi-404-hero .hero-actions { justify-content: center; }
@media (max-width: 768px) { .tpi-404-hero { padding: 70px 0 60px; } }

/* ---------- Apparition au défilement (classe posée par tpi-ui-v1.js ; sans JS tout reste visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tpi-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--tpi-ease), transform .7s var(--tpi-ease); }
  .tpi-reveal.is-in { opacity: 1; transform: none; }
  .tpi-reveal:nth-child(2) { transition-delay: .08s; }
  .tpi-reveal:nth-child(3) { transition-delay: .16s; }
  .tpi-reveal:nth-child(4) { transition-delay: .24s; }
  .tpi-reveal:nth-child(5) { transition-delay: .32s; }
  .tpi-reveal:nth-child(6) { transition-delay: .40s; }
}

/* ---------- Bouton « remonter » ---------- */
.tpi-top {
  position: fixed; left: 20px; bottom: 22px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--navy); border: 1px solid rgba(30,52,100,.12); box-shadow: 0 8px 22px rgba(21,37,72,.16);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s;
}
.tpi-top.is-on { opacity: 1; visibility: visible; transform: none; }
.tpi-top:hover { background: var(--navy); color: #fff; }
@media (max-width: 768px) { .tpi-top { display: none; } }
@media print { .tpi-top { display: none; } }

/* Téléphone : barre de recherche pleine largeur (la règle min-width:150px ci-dessus primait sur style.css) */
@media (max-width: 768px) {
  body .search-field { min-width: 100%; }
  body .search-bar .btn-navy { width: 100%; justify-content: center; }
  body .hero .search-bar { padding: 18px 16px; margin-top: 36px; }
  body .hero h1 { font-size: clamp(34px, 9vw, 44px); }
}

/* ===================== SEO 01/11/2026 : articles, liste des conseils, pages quartier ===================== */
.tpi-post-hero { position: relative; color: #fff; padding: 96px 0 64px; background: var(--navy-dark) center 40% / cover no-repeat; }
.tpi-post-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,37,72,.9) 0%, rgba(21,37,72,.78) 100%); }
.tpi-post-hero .container { position: relative; max-width: 940px; }
.tpi-bc { font-size: .86rem; opacity: .9; margin-bottom: 18px; }
.tpi-bc a { color: var(--gold-light); }
.tpi-post-hero h1 { font-family: var(--font-serif); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
.tpi-post-meta { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: .9rem; opacity: .85; }
.tpi-archive-desc { max-width: 640px; font-size: 1.05rem; line-height: 1.7; opacity: .9; }
.tpi-article { max-width: 800px; margin: 0 auto; padding: 56px 20px 24px; font-size: 17px; line-height: 1.8; color: #2c3444; }
.tpi-article h2 { font-family: var(--font-serif); color: var(--navy); font-size: 1.7rem; line-height: 1.25; margin: 44px 0 14px; }
.tpi-article h3 { font-family: var(--font-serif); color: var(--navy); font-size: 1.25rem; margin: 28px 0 10px; }
.tpi-article p { margin: 0 0 18px; }
.tpi-article ul, .tpi-article ol { margin: 0 0 22px 24px; padding: 0; }
.tpi-article li { margin-bottom: 8px; }
.tpi-article a { color: var(--gold-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tpi-article a:hover { color: var(--navy); }
.tpi-article img { border-radius: 12px; margin: 10px 0 24px; }
.tpi-resume { background: #f8f7f2; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 18px 22px 8px; margin: 0 0 28px; }
.tpi-resume > strong { display: block; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.tpi-resume ul { margin-left: 20px; }
.tpi-resume li { font-size: 16px; }
.tpi-faq { margin: 8px 0 28px; }
.tpi-faq-item { border: 1px solid #e6e9f0; border-radius: 10px; margin-bottom: 10px; background: #fff; }
.tpi-faq-item summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.tpi-faq-item summary::-webkit-details-marker { display: none; }
.tpi-faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 22px; color: var(--gold-dark); transition: transform .2s; }
.tpi-faq-item[open] summary::after { transform: rotate(45deg); }
.tpi-faq-item p { padding: 0 18px 14px; margin: 0; font-size: 16px; }
.tpi-post-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 16px; padding: 26px 28px; margin-top: 36px; }
.tpi-post-cta strong { display: block; font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 4px; }
.tpi-post-cta span { font-size: .95rem; opacity: .85; }
.tpi-post-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tpi-post-cta .btn-outline-navy { color: #fff; border-color: rgba(255,255,255,.5); }
.tpi-post-cta .btn-outline-navy:hover { background: #fff; color: var(--navy); }
.tpi-blog-date { font-size: .8rem; color: #8a93a6; letter-spacing: .5px; }
.tpi-pagination { margin-top: 36px; text-align: center; }
.tpi-pagination .nav-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.tpi-pagination .page-numbers { padding: 8px 14px; border-radius: 8px; border: 1px solid #dde2ec; color: var(--navy); font-weight: 600; }
.tpi-pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 768px) { .tpi-post-hero { padding: 60px 0 44px; } .tpi-article { padding-top: 36px; font-size: 16px; } .tpi-post-cta { padding: 22px; } }

/* Pages quartier : encart éditorial + maillage */
.tpi-qintro { padding: 56px 0 8px; }
.tpi-qintro-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.tpi-qintro-txt h2 { font-family: var(--font-serif); color: var(--navy); font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 6px 0 16px; }
.tpi-qintro-txt p { color: #3b4455; line-height: 1.8; margin-bottom: 16px; }
.tpi-qintro-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tpi-qintro-more { font-weight: 700; color: var(--gold-dark); }
.tpi-qintro-side { background: #f8f7f2; border-radius: 16px; padding: 26px 26px 20px; border: 1px solid rgba(30,52,100,.06); }
.tpi-qintro-side h3 { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 12px; }
.tpi-qintro-side h3 + * { margin-bottom: 22px; }
.tpi-qintro-atouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.tpi-qintro-atouts li { position: relative; padding-left: 20px; font-size: .92rem; color: #3b4455; }
.tpi-qintro-atouts li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }
.tpi-qintro-prix { margin: 0; }
.tpi-qintro-prix div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e9e5d8; font-size: .92rem; }
.tpi-qintro-prix dt { color: #5b6476; } .tpi-qintro-prix dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.tpi-qintro-note { font-size: .85rem; color: #6b7280; margin: 10px 0 0; line-height: 1.6; }
.tpi-qintro-note a { color: var(--gold-dark); font-weight: 700; }
.tpi-tax-h2 { font-family: var(--font-serif); color: var(--navy); font-size: 1.5rem; margin: 0 0 24px; }
.tpi-tax-links h2 { font-family: var(--font-serif); color: var(--navy); font-size: 1.3rem; margin: 0 0 14px; }
.tpi-tax-links h2 + p + h2 { margin-top: 26px; }
.tpi-tax-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.tpi-tax-chips a { display: inline-block; background: #fff; border: 1px solid #dde2ec; border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; color: var(--navy); transition: .2s; }
.tpi-tax-chips a small { color: #8a93a6; font-weight: 400; }
.tpi-tax-chips a:hover { border-color: var(--gold); background: #fffaf0; }
@media (max-width: 900px) { .tpi-qintro-grid { grid-template-columns: 1fr; gap: 24px; } .tpi-qintro-atouts { grid-template-columns: 1fr; } }
