/*
Theme Name: Les Héritiers de Bastet
Theme URI: https://lesheritiersdebastet-aude.fr
Author: Les Héritiers de Bastet
Description: Thème WordPress éditable conçu pour Les Héritiers de Bastet — Aude.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: les-heritiers-de-bastet
*/

:root {
  --lhdb-forest: #183d2b;
  --lhdb-forest-deep: #0f2c20;
  --lhdb-sage: #6e8062;
  --lhdb-gold: #b78a37;
  --lhdb-gold-soft: #d7b86d;
  --lhdb-cream: #f7f1e7;
  --lhdb-cream-deep: #eee2cf;
  --lhdb-ink: #1f2a23;
  --lhdb-white: #fffdf8;
  --lhdb-border: rgba(183, 138, 55, .34);
  --lhdb-shadow: 0 18px 50px rgba(31, 42, 35, .10);
  --lhdb-radius: 24px;
  --lhdb-content: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--lhdb-ink);
  background: var(--lhdb-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}

body.admin-bar .lhdb-header { top: 32px; }

a { color: var(--lhdb-forest); }
a:hover { color: var(--lhdb-gold); }

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

h1, h2, h3, h4, .lhdb-brand-name {
  margin-top: 0;
  color: var(--lhdb-forest-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
}

h1 { font-size: clamp(2.7rem, 7vw, 5.7rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lhdb-container,
.entry-content > *:not(.alignfull) {
  width: min(calc(100% - 36px), var(--lhdb-content));
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide {
  width: min(calc(100% - 36px), 1320px);
  max-width: 1320px;
}

.entry-content > .alignfull {
  width: 100%;
  max-width: none;
}

.lhdb-topbar {
  padding: 9px 18px;
  color: var(--lhdb-cream);
  background: var(--lhdb-forest-deep);
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lhdb-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(183, 138, 55, .18);
  background: rgba(247, 241, 231, .94);
  backdrop-filter: blur(14px);
}

.lhdb-header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.lhdb-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--lhdb-forest-deep);
  text-decoration: none;
}

.lhdb-brand-mark {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  overflow: hidden;
  border: 1px solid rgba(183, 138, 55, .32);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 20px rgba(31, 42, 35, .08);
}

.lhdb-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.45);
  transform-origin: center top;
}

.lhdb-brand-copy { display: grid; }

.lhdb-brand-name {
  font-size: 1.22rem;
  letter-spacing: .015em;
}

.lhdb-brand-subtitle {
  color: #5a665e;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lhdb-nav-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lhdb-menu,
.lhdb-menu ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.lhdb-menu a {
  color: var(--lhdb-ink);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.lhdb-menu .current-menu-item > a,
.lhdb-menu a:hover { color: var(--lhdb-gold); }

.lhdb-header-cta,
.wp-block-button__link,
.lhdb-button,
button.lhdb-submit {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lhdb-forest);
  border-radius: 999px;
  background: var(--lhdb-forest);
  color: var(--lhdb-white) !important;
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.lhdb-header-cta:hover,
.wp-block-button__link:hover,
.lhdb-button:hover,
button.lhdb-submit:hover {
  background: var(--lhdb-forest-deep);
  box-shadow: 0 10px 24px rgba(24, 61, 43, .18);
  color: #fff !important;
  transform: translateY(-2px);
}

.is-style-outline > .wp-block-button__link,
.lhdb-button-outline {
  border-color: var(--lhdb-gold);
  background: transparent;
  color: var(--lhdb-forest) !important;
}

.lhdb-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--lhdb-border);
  border-radius: 50%;
  background: transparent;
  color: var(--lhdb-forest);
  font-size: 1.25rem;
}

.lhdb-main { min-height: 60vh; }

.entry-content { overflow: hidden; }

.lhdb-hero {
  position: relative;
  display: grid;
  min-height: 700px;
  padding: clamp(70px, 9vw, 130px) max(18px, calc((100vw - var(--lhdb-content)) / 2));
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  background:
    radial-gradient(circle at 8% 10%, rgba(215, 184, 109, .26), transparent 30%),
    linear-gradient(135deg, var(--lhdb-cream) 0%, #fffaf1 62%, var(--lhdb-cream-deep) 100%);
}

.lhdb-hero::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(183, 138, 55, .23);
  border-radius: 50%;
  content: "";
}

.lhdb-eyebrow {
  margin-bottom: 17px;
  color: var(--lhdb-gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.lhdb-hero p:not(.lhdb-eyebrow) {
  max-width: 680px;
  color: #46534a;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.lhdb-hero .wp-block-buttons { margin-top: 30px; }

.lhdb-hero-visual {
  position: relative;
  z-index: 1;
  padding: 13px;
  border: 1px solid var(--lhdb-border);
  border-radius: 38% 38% 24px 24px;
  background: rgba(255, 253, 248, .68);
  box-shadow: var(--lhdb-shadow);
  transform: none;
}

.lhdb-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 36% 36% 16px 16px;
  object-fit: cover;
}

.lhdb-trust-row {
  display: grid;
  padding: 24px 18px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  color: var(--lhdb-cream);
  background: var(--lhdb-forest);
}

.lhdb-trust-item {
  padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,.18);
  text-align: center;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lhdb-trust-item:last-child { border-right: 0; }

.lhdb-section {
  padding-top: clamp(72px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.lhdb-section-soft { background: var(--lhdb-white); }
.lhdb-section-green { background: var(--lhdb-forest); color: var(--lhdb-cream); }
.lhdb-section-green h2,
.lhdb-section-green h3 { color: var(--lhdb-white); }

.lhdb-section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.lhdb-section-heading.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lhdb-lead {
  color: #566258;
  font-size: 1.15rem;
}

.lhdb-card-grid,
.lhdb-price-grid,
.lhdb-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lhdb-card,
.lhdb-price-card,
.lhdb-value-card {
  position: relative;
  padding: clamp(26px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--lhdb-border);
  border-radius: var(--lhdb-radius);
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 12px 34px rgba(31, 42, 35, .06);
}

.lhdb-card::before,
.lhdb-price-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--lhdb-gold), var(--lhdb-gold-soft));
  content: "";
}

.lhdb-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--lhdb-forest);
  color: var(--lhdb-gold-soft);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.lhdb-price {
  margin: 12px 0 20px;
  color: var(--lhdb-gold);
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
}

.lhdb-price small {
  color: #6c756f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .76rem;
}

.lhdb-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.lhdb-list li {
  position: relative;
  padding: 7px 0 7px 27px;
}

.lhdb-list li::before {
  position: absolute;
  top: 8px;
  left: 0;
  color: var(--lhdb-gold);
  content: "✓";
  font-weight: 900;
}

.lhdb-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(40px, 7vw, 86px);
}

.lhdb-split-image img {
  border: 10px solid var(--lhdb-white);
  border-radius: var(--lhdb-radius);
  box-shadow: var(--lhdb-shadow);
}

.lhdb-note {
  padding: 24px 26px;
  border-left: 4px solid var(--lhdb-gold);
  border-radius: 0 18px 18px 0;
  background: rgba(215, 184, 109, .13);
}

.lhdb-cta {
  padding: clamp(44px, 7vw, 82px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 20%, rgba(215, 184, 109, .22), transparent 35%),
    var(--lhdb-forest-deep);
  color: var(--lhdb-cream);
  text-align: center;
}

.lhdb-cta h2 { color: var(--lhdb-white); }
.lhdb-cta p { max-width: 720px; margin-left: auto; margin-right: auto; }
.lhdb-cta .wp-block-buttons { justify-content: center; }

.lhdb-page-header {
  padding: clamp(70px, 9vw, 120px) 18px;
  border-bottom: 1px solid var(--lhdb-border);
  background:
    radial-gradient(circle at 70% 0%, rgba(215, 184, 109, .2), transparent 32%),
    var(--lhdb-cream-deep);
  text-align: center;
}

.lhdb-page-header h1 {
  max-width: 980px;
  margin-right: auto;
  margin-bottom: 20px;
  margin-left: auto;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.lhdb-page-header p {
  max-width: 730px;
  margin: 0 auto;
  color: #546057;
  font-size: 1.13rem;
}

.lhdb-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lhdb-border);
  border-radius: 20px;
  background: var(--lhdb-white);
}

.lhdb-table {
  width: 100%;
  border-collapse: collapse;
}

.lhdb-table th,
.lhdb-table td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(183, 138, 55, .19);
  text-align: left;
}

.lhdb-table th { background: rgba(215, 184, 109, .12); }
.lhdb-table tr:last-child td { border-bottom: 0; }

.lhdb-steps {
  display: grid;
  counter-reset: steps;
  gap: 18px;
}

.lhdb-step {
  position: relative;
  padding: 26px 26px 26px 82px;
  border: 1px solid var(--lhdb-border);
  border-radius: 20px;
  background: var(--lhdb-white);
  counter-increment: steps;
}

.lhdb-step::before {
  position: absolute;
  top: 22px;
  left: 24px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--lhdb-forest);
  color: var(--lhdb-gold-soft);
  content: counter(steps);
  font-weight: 800;
}

.lhdb-form {
  display: grid;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--lhdb-border);
  border-radius: var(--lhdb-radius);
  background: var(--lhdb-white);
  box-shadow: var(--lhdb-shadow);
  gap: 22px;
}

.lhdb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lhdb-field { display: grid; gap: 8px; }
.lhdb-field-full { grid-column: 1 / -1; }

.lhdb-field label,
.lhdb-consent {
  color: var(--lhdb-forest-deep);
  font-size: .9rem;
  font-weight: 750;
}

.lhdb-field input,
.lhdb-field select,
.lhdb-field textarea {
  width: 100%;
  min-height: 51px;
  padding: 12px 14px;
  border: 1px solid #cfc5b3;
  border-radius: 12px;
  background: #fff;
  color: var(--lhdb-ink);
  font: inherit;
}

.lhdb-field textarea { min-height: 140px; resize: vertical; }
.lhdb-field input:focus,
.lhdb-field select:focus,
.lhdb-field textarea:focus {
  border-color: var(--lhdb-gold);
  outline: 3px solid rgba(183, 138, 55, .16);
}

.lhdb-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.lhdb-consent input { margin-top: 7px; }

.lhdb-success,
.lhdb-error {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  font-weight: 700;
}

.lhdb-success { background: #dcebdd; color: #174425; }
.lhdb-error { background: #f7deda; color: #7c281e; }
.lhdb-hp { position: absolute !important; left: -9999px !important; }

.lhdb-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.lhdb-contact-card {
  padding: 28px;
  border: 1px solid var(--lhdb-border);
  border-radius: 20px;
  background: var(--lhdb-white);
  text-align: center;
}

.lhdb-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lhdb-gallery img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(31, 42, 35, .08);
}

.lhdb-family-section {
  background:
    radial-gradient(circle at 8% 8%, rgba(215, 184, 109, .24), transparent 28%),
    var(--lhdb-cream-deep);
}

.lhdb-family-gallery.has-nested-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lhdb-family-gallery.has-nested-images figure.wp-block-image {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  border: 8px solid var(--lhdb-white);
  border-radius: 22px;
  background: var(--lhdb-white);
  box-shadow: 0 13px 34px rgba(31, 42, 35, .11);
}

.lhdb-family-gallery.has-nested-images figure.wp-block-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.lhdb-family-gallery .wp-element-caption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  margin: 0;
  padding: 24px 14px 12px;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(transparent, rgba(15, 44, 32, .9));
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  text-align: left;
}

.lhdb-footer {
  padding: 65px 0 24px;
  background: #0b241a;
  color: #dcd6ca;
}

.lhdb-footer a { color: #f1d18b; }

.lhdb-footer-grid {
  display: grid;
  padding-bottom: 42px;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 50px;
}

.lhdb-footer h2,
.lhdb-footer h3 { color: #fff; }
.lhdb-footer h2 { font-size: 2rem; }
.lhdb-footer h3 { font-size: 1.05rem; }

.lhdb-footer-logo {
  width: min(100%, 300px);
  margin-bottom: 18px;
  border: 1px solid rgba(215, 184, 109, .22);
  border-radius: 18px;
}

.lhdb-footer ul { margin: 0; padding: 0; list-style: none; }
.lhdb-footer li { margin-bottom: 8px; }

.lhdb-footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: #aeb7b1;
  font-size: .82rem;
}

.lhdb-empty {
  padding: 90px 18px;
  text-align: center;
}

@media (max-width: 1080px) {
  body.admin-bar .lhdb-header { top: 46px; }
  .lhdb-menu-toggle { display: grid; place-items: center; }
  .lhdb-nav-wrap {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 24px 18px 30px;
    border-top: 1px solid var(--lhdb-border);
    background: var(--lhdb-cream);
    box-shadow: 0 16px 28px rgba(31, 42, 35, .1);
  }
  .lhdb-nav-wrap.is-open { display: grid; }
  .lhdb-menu,
  .lhdb-menu ul { display: grid; gap: 8px; }
  .lhdb-menu a { display: block; padding: 8px 0; }
  .lhdb-header-cta { width: 100%; }
  .lhdb-hero { min-height: auto; grid-template-columns: 1fr; }
  .lhdb-hero-visual { max-width: 620px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .lhdb-card-grid,
  .lhdb-price-grid,
  .lhdb-value-grid,
  .lhdb-contact-grid,
  .lhdb-gallery { grid-template-columns: 1fr; }
  .lhdb-family-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lhdb-split { grid-template-columns: 1fr; }
  .lhdb-trust-row { grid-template-columns: 1fr; }
  .lhdb-trust-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .lhdb-trust-item:last-child { border-bottom: 0; }
  .lhdb-footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  body.admin-bar .lhdb-header { top: 0; }
  .lhdb-topbar { font-size: .67rem; letter-spacing: .09em; }
  .lhdb-header-inner { min-height: 76px; }
  .lhdb-brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .lhdb-brand-name { font-size: 1rem; }
  .lhdb-brand-subtitle { font-size: .56rem; }
  .lhdb-hero { padding-top: 68px; padding-bottom: 72px; }
  .lhdb-hero-visual { border-radius: 28% 28% 20px 20px; }
  .lhdb-hero-visual img { border-radius: 26% 26% 13px 13px; }
  .lhdb-form-grid { grid-template-columns: 1fr; }
  .lhdb-field-full { grid-column: auto; }
  .lhdb-cta { padding: 44px 22px; border-radius: 22px; }
  .lhdb-step { padding-left: 70px; }
  .lhdb-step::before { left: 18px; }
  .lhdb-family-gallery.has-nested-images { gap: 10px; }
  .lhdb-family-gallery.has-nested-images figure.wp-block-image { border-width: 5px; border-radius: 16px; }
  .lhdb-family-gallery .wp-element-caption { right: 5px; bottom: 5px; left: 5px; padding: 20px 9px 8px; font-size: .88rem; }
}
